2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20210509.
5 # Copyright 2003-2020,2021 Thomas E. Dickey
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
102 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : "${ac_max_here_lines=38}"
109 ac_unique_file="ncurses.c"
111 # Initialize some variables set by options.
113 ac_init_version=false
114 # The variables have the same names as the options, with
115 # dashes changed to underlines.
123 program_transform_name=s,x,x,
131 # Installation directory options.
132 # These are left unexpanded so users can "make install exec_prefix=/foo"
133 # and all the variables that are supposed to be based on exec_prefix
134 # by default will actually change.
135 # Use braces instead of parens because sh, perl, etc. also accept them.
136 bindir='${exec_prefix}/bin'
137 sbindir='${exec_prefix}/sbin'
138 libexecdir='${exec_prefix}/libexec'
139 datarootdir='${prefix}/share'
140 datadir='${datarootdir}'
141 sysconfdir='${prefix}/etc'
142 sharedstatedir='${prefix}/com'
143 localstatedir='${prefix}/var'
144 runstatedir='${localstatedir}/run'
145 libdir='${exec_prefix}/lib'
146 includedir='${prefix}/include'
147 oldincludedir='/usr/include'
148 infodir='${datarootdir}/info'
149 mandir='${datarootdir}/man'
151 # Identity of this package.
161 # If the previous option needs an argument, assign it.
162 if test -n "$ac_prev"; then
163 eval "$ac_prev=\$ac_option"
168 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
170 # Accept the important Cygnus configure options, so we can diagnose typos.
174 -bindir | --bindir | --bindi | --bind | --bin | --bi)
176 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
179 -build | --build | --buil | --bui | --bu)
180 ac_prev=build_alias ;;
181 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
182 build_alias=$ac_optarg ;;
184 -cache-file | --cache-file | --cache-fil | --cache-fi \
185 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
186 ac_prev=cache_file ;;
187 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
188 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
189 cache_file=$ac_optarg ;;
192 cache_file=config.cache ;;
194 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
196 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
198 datadir=$ac_optarg ;;
200 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
201 | --dataroo | --dataro | --datar)
202 ac_prev=datarootdir ;;
203 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
204 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
205 datarootdir=$ac_optarg ;;
207 -disable-* | --disable-*)
208 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
209 # Reject names that are not valid shell variable names.
210 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
211 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
212 { (exit 1); exit 1; }; }
213 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
214 eval "enable_$ac_feature=no" ;;
216 -enable-* | --enable-*)
217 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
218 # Reject names that are not valid shell variable names.
219 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
220 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
221 { (exit 1); exit 1; }; }
222 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
224 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
227 eval "enable_$ac_feature='$ac_optarg'" ;;
229 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
230 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
231 | --exec | --exe | --ex)
232 ac_prev=exec_prefix ;;
233 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
234 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
235 | --exec=* | --exe=* | --ex=*)
236 exec_prefix=$ac_optarg ;;
238 -gas | --gas | --ga | --g)
239 # Obsolete; use --with-gas.
242 -help | --help | --hel | --he | -h)
244 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
245 ac_init_help=recursive ;;
246 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
247 ac_init_help=short ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host_alias ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host_alias=$ac_optarg ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir=$ac_optarg ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir=$ac_optarg ;;
266 -libdir | --libdir | --libdi | --libd)
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir=$ac_optarg ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir=$ac_optarg ;;
287 -runstatedir | --runstatedir | --runstatedi | --runstated \
288 | --runstate | --runstat | --runsta | --runst \
289 | --runs | --run | --ru)
290 ac_prev=runstatedir ;;
291 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
292 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
293 | --runs=* | --run=* | --ru=*)
294 runstatedir=$ac_optarg ;;
296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 # Obsolete; use --without-fp.
305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
315 | --oldin | --oldi | --old | --ol | --o)
316 ac_prev=oldincludedir ;;
317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
320 oldincludedir=$ac_optarg ;;
322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
327 -program-prefix | --program-prefix | --program-prefi | --program-pref \
328 | --program-pre | --program-pr | --program-p)
329 ac_prev=program_prefix ;;
330 -program-prefix=* | --program-prefix=* | --program-prefi=* \
331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
332 program_prefix=$ac_optarg ;;
334 -program-suffix | --program-suffix | --program-suffi | --program-suff \
335 | --program-suf | --program-su | --program-s)
336 ac_prev=program_suffix ;;
337 -program-suffix=* | --program-suffix=* | --program-suffi=* \
338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
339 program_suffix=$ac_optarg ;;
341 -program-transform-name | --program-transform-name \
342 | --program-transform-nam | --program-transform-na \
343 | --program-transform-n | --program-transform- \
344 | --program-transform | --program-transfor \
345 | --program-transfo | --program-transf \
346 | --program-trans | --program-tran \
347 | --progr-tra | --program-tr | --program-t)
348 ac_prev=program_transform_name ;;
349 -program-transform-name=* | --program-transform-name=* \
350 | --program-transform-nam=* | --program-transform-na=* \
351 | --program-transform-n=* | --program-transform-=* \
352 | --program-transform=* | --program-transfor=* \
353 | --program-transfo=* | --program-transf=* \
354 | --program-trans=* | --program-tran=* \
355 | --progr-tra=* | --program-tr=* | --program-t=*)
356 program_transform_name=$ac_optarg ;;
358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
359 | -silent | --silent | --silen | --sile | --sil)
362 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
364 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
366 sbindir=$ac_optarg ;;
368 -sharedstatedir | --sharedstatedir | --sharedstatedi \
369 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
370 | --sharedst | --shareds | --shared | --share | --shar \
372 ac_prev=sharedstatedir ;;
373 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
374 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
375 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
377 sharedstatedir=$ac_optarg ;;
379 -site | --site | --sit)
381 -site=* | --site=* | --sit=*)
384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
389 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
390 | --syscon | --sysco | --sysc | --sys | --sy)
391 ac_prev=sysconfdir ;;
392 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
393 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
394 sysconfdir=$ac_optarg ;;
396 -target | --target | --targe | --targ | --tar | --ta | --t)
397 ac_prev=target_alias ;;
398 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
399 target_alias=$ac_optarg ;;
401 -v | -verbose | --verbose | --verbos | --verbo | --verb)
404 -version | --version | --versio | --versi | --vers | -V)
408 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid package name: $ac_package" >&2
412 { (exit 1); exit 1; }; }
413 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "with_$ac_package='$ac_optarg'" ;;
420 -without-* | --without-*)
421 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
422 # Reject names that are not valid shell variable names.
423 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
424 { echo "$as_me: error: invalid package name: $ac_package" >&2
425 { (exit 1); exit 1; }; }
426 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
427 eval "with_$ac_package=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438 x_includes=$ac_optarg ;;
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445 x_libraries=$ac_optarg ;;
447 -*) { echo "$as_me: error: unrecognized option: $ac_option
448 Try \`$0 --help' for more information." >&2
449 { (exit 1); exit 1; }; }
453 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
454 # Reject names that are not valid shell variable names.
455 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
456 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
457 { (exit 1); exit 1; }; }
458 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
459 eval "$ac_envvar='$ac_optarg'"
460 export "$ac_envvar" ;;
463 # FIXME: should be removed in autoconf 3.0.
464 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
465 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
466 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
467 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
473 if test -n "$ac_prev"; then
474 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
475 { echo "$as_me: error: missing argument to $ac_option" >&2
476 { (exit 1); exit 1; }; }
479 # Be sure to have absolute paths.
480 for ac_var in exec_prefix prefix
482 eval ac_val=$`echo "$ac_var"`
484 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # Be sure to have absolute paths.
491 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
492 localstatedir libdir includedir oldincludedir infodir mandir
494 eval ac_val=$`echo "$ac_var"`
496 [\\/$]* | ?:[\\/]* ) ;;
497 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
498 { (exit 1); exit 1; }; };;
502 # There might be people who depend on the old broken behavior: `$host'
503 # used to hold the argument of --host etc.
508 # FIXME: should be removed in autoconf 3.0.
509 if test "x$host_alias" != x; then
510 if test "x$build_alias" = x; then
511 cross_compiling=maybe
512 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
513 If a cross compiler is detected then cross compile mode will be used." >&2
514 elif test "x$build_alias" != "x$host_alias"; then
520 test -n "$host_alias" && ac_tool_prefix=$host_alias-
522 test "$silent" = yes && exec 6>/dev/null
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
532 if test ! -r "$srcdir/$ac_unique_file"; then
536 ac_srcdir_defaulted=no
538 if test ! -r "$srcdir/$ac_unique_file"; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
541 { (exit 1); exit 1; }; }
543 { echo "$as_me: error: cannot find sources in $srcdir" >&2
544 { (exit 1); exit 1; }; }
547 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
548 ac_env_build_alias_set=${build_alias+set}
549 ac_env_build_alias_value=$build_alias
550 ac_cv_env_build_alias_set=${build_alias+set}
551 ac_cv_env_build_alias_value=$build_alias
552 ac_env_host_alias_set=${host_alias+set}
553 ac_env_host_alias_value=$host_alias
554 ac_cv_env_host_alias_set=${host_alias+set}
555 ac_cv_env_host_alias_value=$host_alias
556 ac_env_target_alias_set=${target_alias+set}
557 ac_env_target_alias_value=$target_alias
558 ac_cv_env_target_alias_set=${target_alias+set}
559 ac_cv_env_target_alias_value=$target_alias
560 ac_env_CC_set=${CC+set}
562 ac_cv_env_CC_set=${CC+set}
563 ac_cv_env_CC_value=$CC
564 ac_env_CFLAGS_set=${CFLAGS+set}
565 ac_env_CFLAGS_value=$CFLAGS
566 ac_cv_env_CFLAGS_set=${CFLAGS+set}
567 ac_cv_env_CFLAGS_value=$CFLAGS
568 ac_env_LDFLAGS_set=${LDFLAGS+set}
569 ac_env_LDFLAGS_value=$LDFLAGS
570 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
571 ac_cv_env_LDFLAGS_value=$LDFLAGS
572 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
573 ac_env_CPPFLAGS_value=$CPPFLAGS
574 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
575 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
576 ac_env_CPP_set=${CPP+set}
577 ac_env_CPP_value=$CPP
578 ac_cv_env_CPP_set=${CPP+set}
579 ac_cv_env_CPP_value=$CPP
582 # Report the --help message.
584 if test "$ac_init_help" = "long"; then
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
588 \`configure' configures this package to adapt to many kinds of systems.
590 Usage: $0 [OPTION]... [VAR=VALUE]...
592 To assign environment variables (e.g., CC, CFLAGS...), specify them as
593 VAR=VALUE. See below for descriptions of some of the useful variables.
595 Defaults for the options are specified in brackets.
598 -h, --help display this help and exit
599 --help=short display options specific to this package
600 --help=recursive display the short help of all the included packages
601 -V, --version display version information and exit
602 -q, --quiet, --silent do not print \`checking...' messages
603 --cache-file=FILE cache test results in FILE [disabled]
604 -C, --config-cache alias for \`--cache-file=config.cache'
605 -n, --no-create do not create output files
606 --srcdir=DIR find the sources in DIR [configure dir or \`..']
611 Installation directories:
612 --prefix=PREFIX install architecture-independent files in PREFIX
614 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
617 By default, \`make install' will install all the files in
618 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
619 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
620 for instance \`--prefix=\$HOME'.
622 For better control, use the options below.
624 Fine tuning of the installation directories:
625 --bindir=DIR user executables [EPREFIX/bin]
626 --sbindir=DIR system admin executables [EPREFIX/sbin]
627 --libexecdir=DIR program executables [EPREFIX/libexec]
628 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
629 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
633 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
634 --libdir=DIR object code libraries [EPREFIX/lib]
635 --includedir=DIR C header files [PREFIX/include]
636 --oldincludedir=DIR C header files for non-gcc [/usr/include]
637 --infodir=DIR info documentation [DATAROOTDIR/info]
638 --mandir=DIR man documentation [DATAROOTDIR/man]
644 --program-prefix=PREFIX prepend PREFIX to installed program names
645 --program-suffix=SUFFIX append SUFFIX to installed program names
646 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
649 --x-includes=DIR X include files are in DIR
650 --x-libraries=DIR X library files are in DIR
653 --build=BUILD configure for building on BUILD [guessed]
654 --host=HOST build programs to run on HOST [BUILD]
658 if test -n "$ac_init_help"; then
663 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
664 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
667 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
668 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
671 --disable-stripping do not strip (debug info) installed executables
672 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
673 --enable-string-hacks work around bogus compiler/loader warnings
674 --with-pkg-config{=path} enable/disable use of pkg-config
675 --disable-echo do not display "compiling" commands
676 Curses Version-dependent Options:
677 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
678 --disable-widec disable checks for wide-character functions
679 --with-curses-dir=DIR directory in which (n)curses is installed
680 --with-screen=XXX use specified curses-libraries
681 --with-ncursesw use wide ncurses-libraries
682 --with-ncurses use ncurses-libraries
683 --with-pdcurses compile/link with pdcurses X11 library
684 --with-curses-colr compile/link with HPUX 10.x color-curses
685 --with-curses-5lib compile/link with SunOS 5lib curses
686 --with-Xaw3d link with Xaw 3d library
687 --with-Xaw3dxft link with Xaw 3d xft library
688 --with-neXtaw link with neXT Athena library
689 --with-XawPlus link with Athena-Plus library
690 --with-x use the X Window System
691 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
692 --with-form-libname=XXX override form basename of library
693 --with-menu-libname=XXX override menu basename of library
694 --with-panel-libname=XXX override panel basename of library
695 --disable-panel disable checks for panel functions
696 --disable-menu disable checks for menu functions
697 --disable-form disable checks for form functions
698 Testing/development Options:
699 --enable-warnings test: turn on gcc compiler warnings
700 --with-dmalloc test: use Gray Watson's dmalloc library
701 --with-dbmalloc test: use Conor Cahill's dbmalloc library
702 --with-valgrind test: use valgrind
703 --disable-leaks test: free permanent memory, analyze leaks
704 --disable-rpath-hack don't add rpath options for additional libraries
706 Some influential environment variables:
707 CC C compiler command
708 CFLAGS C compiler flags
709 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
710 nonstandard directory <lib dir>
711 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
712 headers in a nonstandard directory <include dir>
715 Use these variables to override the choices made by `configure' or to help
716 it to find libraries and programs with nonstandard names/locations.
721 if test "$ac_init_help" = "recursive"; then
722 # If there are subdirs, report their specific --help.
724 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
726 # A "../" for each directory in /$ac_subdir.
727 ac_dots=`echo "$ac_subdir" |
728 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
731 .) # No --srcdir option. We are building in place.
732 ac_sub_srcdir="$srcdir" ;;
733 [\\/]* | ?:[\\/]* ) # Absolute path.
734 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
736 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
739 # Check for guested configure; otherwise get Cygnus style configure.
740 if test -f "$ac_sub_srcdir/configure.gnu"; then
742 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
743 elif test -f "$ac_sub_srcdir/configure"; then
745 $SHELL "$ac_sub_srcdir/configure" --help=recursive
746 elif test -f "$ac_sub_srcdir/configure.ac" ||
747 test -f "$ac_sub_srcdir/configure.in"; then
749 "$ac_configure" --help
751 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
757 test -n "$ac_init_help" && exit 0
758 if "$ac_init_version"; then
761 Copyright 2003-2020,2021 Thomas E. Dickey
762 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
763 Free Software Foundation, Inc.
764 This configure script is free software; the Free Software Foundation
765 gives unlimited permission to copy, distribute and modify it.
771 This file contains any messages produced by compilers while
772 running configure, to aid debugging if configure makes a mistake.
774 It was created by $as_me, which was
775 generated by GNU Autoconf 2.52.20210509. Invocation command line was
786 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
787 uname -m = `(uname -m) 2>/dev/null || echo unknown`
788 uname -r = `(uname -r) 2>/dev/null || echo unknown`
789 uname -s = `(uname -s) 2>/dev/null || echo unknown`
790 uname -v = `(uname -v) 2>/dev/null || echo unknown`
792 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
793 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
795 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
796 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
797 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
798 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
799 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
800 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
801 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
815 # Keep a trace of the command line.
816 # Strip out --no-create and --no-recursion so they do not pile up.
817 # Also quote any args containing shell meta-characters.
823 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
824 | --no-cr | --no-c) ;;
825 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
826 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
827 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
828 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
829 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
831 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
834 # Get rid of the leading space.
837 # When interrupted or exit'd, cleanup temporary files, and complete
838 # config.log. We remove comments because anyway the quotes in there
839 # would cause problems or look ugly.
841 # Save into config.log some information that might help in debugging.
843 echo "## ----------------- ##" >&5
844 echo "## Cache variables. ##" >&5
845 echo "## ----------------- ##" >&5
847 # The following way of writing the cache mishandles newlines in values,
850 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
853 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
858 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
862 sed "/^$/d" confdefs.h >conftest.log
863 if test -s conftest.log; then
865 echo "## ------------ ##" >&5
866 echo "## confdefs.h. ##" >&5
867 echo "## ------------ ##" >&5
872 test "$ac_signal" != 0 &&
873 echo "$as_me: caught signal $ac_signal" >&5
874 echo "$as_me: exit $exit_status" >&5
875 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
878 for ac_signal in 1 2 13 15; do
879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
884 rm -rf conftest* confdefs.h
885 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
888 # Let the site file select an alternate cache file if it wants to.
889 # Prefer explicitly selected file to automatically selected ones.
890 if test -z "$CONFIG_SITE"; then
891 if test "x$prefix" != xNONE; then
892 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
894 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
897 for ac_site_file in $CONFIG_SITE; do
898 if test -r "$ac_site_file"; then
899 { echo "$as_me:899: loading site script $ac_site_file" >&5
900 echo "$as_me: loading site script $ac_site_file" >&6;}
901 cat "$ac_site_file" >&5
906 if test -r "$cache_file"; then
907 # Some versions of bash will fail to source /dev/null (special
908 # files actually), so we avoid doing that.
909 if test -f "$cache_file"; then
910 { echo "$as_me:910: loading cache $cache_file" >&5
911 echo "$as_me: loading cache $cache_file" >&6;}
913 [\\/]* | ?:[\\/]* ) . $cache_file;;
918 { echo "$as_me:918: creating cache $cache_file" >&5
919 echo "$as_me: creating cache $cache_file" >&6;}
923 # Check that the precious variables saved in the cache have kept the same
925 ac_cache_corrupted=false
926 for ac_var in `(set) 2>&1 |
927 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
928 eval ac_old_set=\$ac_cv_env_${ac_var}_set
929 eval ac_new_set=\$ac_env_${ac_var}_set
930 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
931 eval ac_new_val="\$ac_env_${ac_var}_value"
932 case "$ac_old_set,$ac_new_set" in
934 { echo "$as_me:934: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
938 { echo "$as_me:938: error: \`$ac_var' was not set in the previous run" >&5
939 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
940 ac_cache_corrupted=: ;;
943 if test "x$ac_old_val" != "x$ac_new_val"; then
944 { echo "$as_me:944: error: \`$ac_var' has changed since the previous run:" >&5
945 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
946 { echo "$as_me:946: former value: $ac_old_val" >&5
947 echo "$as_me: former value: $ac_old_val" >&2;}
948 { echo "$as_me:948: current value: $ac_new_val" >&5
949 echo "$as_me: current value: $ac_new_val" >&2;}
953 # Pass precious variables to config.status. It doesn't matter if
954 # we pass some twice (in addition to the command line arguments).
955 if test "$ac_new_set" = set; then
956 case "$ac_new_val" in
957 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
958 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
959 ac_configure_args="$ac_configure_args '$ac_arg'"
961 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
966 if "$ac_cache_corrupted"; then
967 { echo "$as_me:967: error: changes in the environment can compromise the build" >&5
968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
969 { { echo "$as_me:969: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
971 { (exit 1); exit 1; }; }
975 ac_cpp='$CPP $CPPFLAGS'
976 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
977 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
979 ac_main_return="return"
981 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
983 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
995 echo "#! $SHELL" >conftest.sh
996 echo "exit 0" >>conftest.sh
998 if { (echo "$as_me:998: PATH=\".;.\"; conftest.sh") >&5
999 (PATH=".;."; conftest.sh) 2>&5
1001 echo "$as_me:1001: \$? = $ac_status" >&5
1002 (exit "$ac_status"); }; then
1003 ac_path_separator=';'
1007 PATH_SEPARATOR="$ac_path_separator"
1010 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
1012 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1014 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1017 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1018 if test -f "$ac_dir/install-sh"; then
1020 ac_install_sh="$ac_aux_dir/install-sh -c"
1022 elif test -f "$ac_dir/install.sh"; then
1024 ac_install_sh="$ac_aux_dir/install.sh -c"
1026 elif test -f "$ac_dir/shtool"; then
1028 ac_install_sh="$ac_aux_dir/shtool install -c"
1032 if test -z "$ac_aux_dir"; then
1033 { { echo "$as_me:1033: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1034 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1035 { (exit 1); exit 1; }; }
1037 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1038 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1039 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1041 # Make sure we can run config.sub.
1042 $ac_config_sub sun4 >/dev/null 2>&1 ||
1043 { { echo "$as_me:1043: error: cannot run $ac_config_sub" >&5
1044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1045 { (exit 1); exit 1; }; }
1047 echo "$as_me:1047: checking build system type" >&5
1048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1049 if test "${ac_cv_build+set}" = set; then
1050 echo $ECHO_N "(cached) $ECHO_C" >&6
1052 ac_cv_build_alias=$build_alias
1053 test -z "$ac_cv_build_alias" &&
1054 ac_cv_build_alias=`$ac_config_guess`
1055 test -z "$ac_cv_build_alias" &&
1056 { { echo "$as_me:1056: error: cannot guess build type; you must specify one" >&5
1057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1058 { (exit 1); exit 1; }; }
1059 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1060 { { echo "$as_me:1060: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1062 { (exit 1); exit 1; }; }
1065 echo "$as_me:1065: result: $ac_cv_build" >&5
1066 echo "${ECHO_T}$ac_cv_build" >&6
1068 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1072 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1073 echo "$as_me:1073: checking host system type" >&5
1074 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1075 if test "${ac_cv_host+set}" = set; then
1076 echo $ECHO_N "(cached) $ECHO_C" >&6
1078 ac_cv_host_alias=$host_alias
1079 test -z "$ac_cv_host_alias" &&
1080 ac_cv_host_alias=$ac_cv_build_alias
1081 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1082 { { echo "$as_me:1082: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1083 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1084 { (exit 1); exit 1; }; }
1087 echo "$as_me:1087: result: $ac_cv_host" >&5
1088 echo "${ECHO_T}$ac_cv_host" >&6
1090 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1094 system_name="$host_os"
1096 system_name="`(uname -s -r) 2>/dev/null`"
1097 if test -z "$system_name" ; then
1098 system_name="`(hostname) 2>/dev/null`"
1101 test -n "$system_name" &&
1102 cat >>confdefs.h <<EOF
1103 #define SYSTEM_NAME "$system_name"
1106 if test "${cf_cv_system_name+set}" = set; then
1107 echo $ECHO_N "(cached) $ECHO_C" >&6
1109 cf_cv_system_name="$system_name"
1112 test -z "$system_name" && system_name="$cf_cv_system_name"
1113 test -n "$cf_cv_system_name" && echo "$as_me:1113: result: Configuring for $cf_cv_system_name" >&5
1114 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1116 if test ".$system_name" != ".$cf_cv_system_name" ; then
1117 echo "$as_me:1117: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1118 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1119 { { echo "$as_me:1119: error: \"Please remove config.cache and try again.\"" >&5
1120 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1121 { (exit 1); exit 1; }; }
1124 test "$program_prefix" != NONE &&
1125 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1126 # Use a double $ so make ignores it.
1127 test "$program_suffix" != NONE &&
1128 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1129 # Double any \ or $. echo might interpret backslashes.
1130 # By default was `s,x,x', remove it if useless.
1131 cat <<\_ACEOF >conftest.sed
1132 s/[\\$]/&&/g;s/;s,x,x,$//
1134 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1137 echo "$as_me:1137: checking whether ${MAKE-make} sets \${MAKE}" >&5
1138 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1139 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1140 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1141 echo $ECHO_N "(cached) $ECHO_C" >&6
1143 cat >conftest.make <<\EOF
1145 @echo 'ac_maketemp="${MAKE}"'
1147 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1148 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1149 if test -n "$ac_maketemp"; then
1150 eval ac_cv_prog_make_${ac_make}_set=yes
1152 eval ac_cv_prog_make_${ac_make}_set=no
1156 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1157 echo "$as_me:1157: result: yes" >&5
1158 echo "${ECHO_T}yes" >&6
1161 echo "$as_me:1161: result: no" >&5
1162 echo "${ECHO_T}no" >&6
1163 SET_MAKE="MAKE=${MAKE-make}"
1167 ac_cpp='$CPP $CPPFLAGS'
1168 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1169 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1171 ac_main_return="return"
1172 if test -n "$ac_tool_prefix"; then
1173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1175 echo "$as_me:1175: checking for $ac_word" >&5
1176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1177 if test "${ac_cv_prog_CC+set}" = set; then
1178 echo $ECHO_N "(cached) $ECHO_C" >&6
1180 if test -n "$CC"; then
1181 ac_cv_prog_CC="$CC" # Let the user override the test.
1183 ac_save_IFS=$IFS; IFS=$ac_path_separator
1185 for ac_dir in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir=.
1188 $as_executable_p "$ac_dir/$ac_word" || continue
1189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1190 echo "$as_me:1190: found $ac_dir/$ac_word" >&5
1197 if test -n "$CC"; then
1198 echo "$as_me:1198: result: $CC" >&5
1199 echo "${ECHO_T}$CC" >&6
1201 echo "$as_me:1201: result: no" >&5
1202 echo "${ECHO_T}no" >&6
1206 if test -z "$ac_cv_prog_CC"; then
1208 # Extract the first word of "gcc", so it can be a program name with args.
1209 set dummy gcc; ac_word=$2
1210 echo "$as_me:1210: checking for $ac_word" >&5
1211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1213 echo $ECHO_N "(cached) $ECHO_C" >&6
1215 if test -n "$ac_ct_CC"; then
1216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1218 ac_save_IFS=$IFS; IFS=$ac_path_separator
1220 for ac_dir in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir=.
1223 $as_executable_p "$ac_dir/$ac_word" || continue
1224 ac_cv_prog_ac_ct_CC="gcc"
1225 echo "$as_me:1225: found $ac_dir/$ac_word" >&5
1231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1232 if test -n "$ac_ct_CC"; then
1233 echo "$as_me:1233: result: $ac_ct_CC" >&5
1234 echo "${ECHO_T}$ac_ct_CC" >&6
1236 echo "$as_me:1236: result: no" >&5
1237 echo "${ECHO_T}no" >&6
1245 if test -z "$CC"; then
1246 if test -n "$ac_tool_prefix"; then
1247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1248 set dummy ${ac_tool_prefix}cc; ac_word=$2
1249 echo "$as_me:1249: checking for $ac_word" >&5
1250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251 if test "${ac_cv_prog_CC+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1257 ac_save_IFS=$IFS; IFS=$ac_path_separator
1259 for ac_dir in $ac_dummy; do
1261 test -z "$ac_dir" && ac_dir=.
1262 $as_executable_p "$ac_dir/$ac_word" || continue
1263 ac_cv_prog_CC="${ac_tool_prefix}cc"
1264 echo "$as_me:1264: found $ac_dir/$ac_word" >&5
1271 if test -n "$CC"; then
1272 echo "$as_me:1272: result: $CC" >&5
1273 echo "${ECHO_T}$CC" >&6
1275 echo "$as_me:1275: result: no" >&5
1276 echo "${ECHO_T}no" >&6
1280 if test -z "$ac_cv_prog_CC"; then
1282 # Extract the first word of "cc", so it can be a program name with args.
1283 set dummy cc; ac_word=$2
1284 echo "$as_me:1284: checking for $ac_word" >&5
1285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1289 if test -n "$ac_ct_CC"; then
1290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1292 ac_save_IFS=$IFS; IFS=$ac_path_separator
1294 for ac_dir in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir=.
1297 $as_executable_p "$ac_dir/$ac_word" || continue
1298 ac_cv_prog_ac_ct_CC="cc"
1299 echo "$as_me:1299: found $ac_dir/$ac_word" >&5
1305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1306 if test -n "$ac_ct_CC"; then
1307 echo "$as_me:1307: result: $ac_ct_CC" >&5
1308 echo "${ECHO_T}$ac_ct_CC" >&6
1310 echo "$as_me:1310: result: no" >&5
1311 echo "${ECHO_T}no" >&6
1320 if test -z "$CC"; then
1321 # Extract the first word of "cc", so it can be a program name with args.
1322 set dummy cc; ac_word=$2
1323 echo "$as_me:1323: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1332 ac_save_IFS=$IFS; IFS=$ac_path_separator
1334 for ac_dir in $ac_dummy; do
1336 test -z "$ac_dir" && ac_dir=.
1337 $as_executable_p "$ac_dir/$ac_word" || continue
1338 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1339 ac_prog_rejected=yes
1343 echo "$as_me:1343: found $ac_dir/$ac_word" >&5
1347 if test "$ac_prog_rejected" = yes; then
1348 # We found a bogon in the path, so make sure we never use it.
1349 set dummy $ac_cv_prog_CC
1351 if test $# != 0; then
1352 # We chose a different compiler from the bogus one.
1353 # However, it has the same basename, so the bogon will be chosen
1354 # first if we set CC to just the basename; use the full file name.
1356 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1364 if test -n "$CC"; then
1365 echo "$as_me:1365: result: $CC" >&5
1366 echo "${ECHO_T}$CC" >&6
1368 echo "$as_me:1368: result: no" >&5
1369 echo "${ECHO_T}no" >&6
1373 if test -z "$CC"; then
1374 if test -n "$ac_tool_prefix"; then
1377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1379 echo "$as_me:1379: checking for $ac_word" >&5
1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381 if test "${ac_cv_prog_CC+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 if test -n "$CC"; then
1385 ac_cv_prog_CC="$CC" # Let the user override the test.
1387 ac_save_IFS=$IFS; IFS=$ac_path_separator
1389 for ac_dir in $ac_dummy; do
1391 test -z "$ac_dir" && ac_dir=.
1392 $as_executable_p "$ac_dir/$ac_word" || continue
1393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1394 echo "$as_me:1394: found $ac_dir/$ac_word" >&5
1401 if test -n "$CC"; then
1402 echo "$as_me:1402: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1405 echo "$as_me:1405: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1409 test -n "$CC" && break
1412 if test -z "$CC"; then
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:1418: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1426 ac_save_IFS=$IFS; IFS=$ac_path_separator
1428 for ac_dir in $ac_dummy; do
1430 test -z "$ac_dir" && ac_dir=.
1431 $as_executable_p "$ac_dir/$ac_word" || continue
1432 ac_cv_prog_ac_ct_CC="$ac_prog"
1433 echo "$as_me:1433: found $ac_dir/$ac_word" >&5
1439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440 if test -n "$ac_ct_CC"; then
1441 echo "$as_me:1441: result: $ac_ct_CC" >&5
1442 echo "${ECHO_T}$ac_ct_CC" >&6
1444 echo "$as_me:1444: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1448 test -n "$ac_ct_CC" && break
1456 test -z "$CC" && { { echo "$as_me:1456: error: no acceptable cc found in \$PATH" >&5
1457 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1458 { (exit 1); exit 1; }; }
1460 # Provide some information about the compiler.
1461 echo "$as_me:1461:" \
1462 "checking for C compiler version" >&5
1463 ac_compiler=`set X $ac_compile; echo "$2"`
1464 { (eval echo "$as_me:1464: \"$ac_compiler --version </dev/null >&5\"") >&5
1465 (eval $ac_compiler --version </dev/null >&5) 2>&5
1467 echo "$as_me:1467: \$? = $ac_status" >&5
1468 (exit "$ac_status"); }
1469 { (eval echo "$as_me:1469: \"$ac_compiler -v </dev/null >&5\"") >&5
1470 (eval $ac_compiler -v </dev/null >&5) 2>&5
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit "$ac_status"); }
1474 { (eval echo "$as_me:1474: \"$ac_compiler -V </dev/null >&5\"") >&5
1475 (eval $ac_compiler -V </dev/null >&5) 2>&5
1477 echo "$as_me:1477: \$? = $ac_status" >&5
1478 (exit "$ac_status"); }
1480 cat >"conftest.$ac_ext" <<_ACEOF
1481 #line 1481 "configure"
1482 #include "confdefs.h"
1492 ac_clean_files_save=$ac_clean_files
1493 ac_clean_files="$ac_clean_files a.out a.exe"
1494 # Try to create an executable without -o first, disregard a.out.
1495 # It will help us diagnose broken compilers, and finding out an intuition
1497 echo "$as_me:1497: checking for C compiler default output" >&5
1498 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1499 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1500 if { (eval echo "$as_me:1500: \"$ac_link_default\"") >&5
1501 (eval $ac_link_default) 2>&5
1503 echo "$as_me:1503: \$? = $ac_status" >&5
1504 (exit "$ac_status"); }; then
1505 # Find the output, starting from the most likely. This scheme is
1506 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1508 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1509 ls a.out conftest 2>/dev/null;
1510 ls a.* conftest.* 2>/dev/null`; do
1512 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1513 a.out ) # We found the default executable, but exeext='' is most
1516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1517 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1524 echo "$as_me: failed program was:" >&5
1525 cat "conftest.$ac_ext" >&5
1526 { { echo "$as_me:1526: error: C compiler cannot create executables" >&5
1527 echo "$as_me: error: C compiler cannot create executables" >&2;}
1528 { (exit 77); exit 77; }; }
1531 ac_exeext=$ac_cv_exeext
1532 echo "$as_me:1532: result: $ac_file" >&5
1533 echo "${ECHO_T}$ac_file" >&6
1535 # Check the compiler produces executables we can run. If not, either
1536 # the compiler is broken, or we cross compile.
1537 echo "$as_me:1537: checking whether the C compiler works" >&5
1538 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1540 # If not cross compiling, check that we can run a simple program.
1541 if test "$cross_compiling" != yes; then
1542 if { ac_try='./$ac_file'
1543 { (eval echo "$as_me:1543: \"$ac_try\"") >&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit "$ac_status"); }; }; then
1550 if test "$cross_compiling" = maybe; then
1553 { { echo "$as_me:1553: error: cannot run C compiled programs.
1554 If you meant to cross compile, use \`--host'." >&5
1555 echo "$as_me: error: cannot run C compiled programs.
1556 If you meant to cross compile, use \`--host'." >&2;}
1557 { (exit 1); exit 1; }; }
1561 echo "$as_me:1561: result: yes" >&5
1562 echo "${ECHO_T}yes" >&6
1564 rm -f a.out a.exe "conftest$ac_cv_exeext"
1565 ac_clean_files=$ac_clean_files_save
1566 # Check the compiler produces executables we can run. If not, either
1567 # the compiler is broken, or we cross compile.
1568 echo "$as_me:1568: checking whether we are cross compiling" >&5
1569 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1570 echo "$as_me:1570: result: $cross_compiling" >&5
1571 echo "${ECHO_T}$cross_compiling" >&6
1573 echo "$as_me:1573: checking for executable suffix" >&5
1574 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1575 if { (eval echo "$as_me:1575: \"$ac_link\"") >&5
1576 (eval $ac_link) 2>&5
1578 echo "$as_me:1578: \$? = $ac_status" >&5
1579 (exit "$ac_status"); }; then
1580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1581 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1582 # work properly (i.e., refer to `conftest.exe'), while it won't with
1584 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1586 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1587 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1594 { { echo "$as_me:1594: error: cannot compute EXEEXT: cannot compile and link" >&5
1595 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1596 { (exit 1); exit 1; }; }
1599 rm -f "conftest$ac_cv_exeext"
1600 echo "$as_me:1600: result: $ac_cv_exeext" >&5
1601 echo "${ECHO_T}$ac_cv_exeext" >&6
1603 rm -f "conftest.$ac_ext"
1604 EXEEXT=$ac_cv_exeext
1606 echo "$as_me:1606: checking for object suffix" >&5
1607 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1608 if test "${ac_cv_objext+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 cat >"conftest.$ac_ext" <<_ACEOF
1612 #line 1612 "configure"
1613 #include "confdefs.h"
1623 rm -f conftest.o conftest.obj
1624 if { (eval echo "$as_me:1624: \"$ac_compile\"") >&5
1625 (eval $ac_compile) 2>&5
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit "$ac_status"); }; then
1629 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1631 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1637 echo "$as_me: failed program was:" >&5
1638 cat "conftest.$ac_ext" >&5
1639 { { echo "$as_me:1639: error: cannot compute OBJEXT: cannot compile" >&5
1640 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1641 { (exit 1); exit 1; }; }
1644 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1646 echo "$as_me:1646: result: $ac_cv_objext" >&5
1647 echo "${ECHO_T}$ac_cv_objext" >&6
1648 OBJEXT=$ac_cv_objext
1650 echo "$as_me:1650: checking whether we are using the GNU C compiler" >&5
1651 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1652 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 cat >"conftest.$ac_ext" <<_ACEOF
1656 #line 1656 "configure"
1657 #include "confdefs.h"
1670 rm -f "conftest.$ac_objext"
1671 if { (eval echo "$as_me:1671: \"$ac_compile\"") >&5
1672 (eval $ac_compile) 2>&5
1674 echo "$as_me:1674: \$? = $ac_status" >&5
1675 (exit "$ac_status"); } &&
1676 { ac_try='test -s "conftest.$ac_objext"'
1677 { (eval echo "$as_me:1677: \"$ac_try\"") >&5
1680 echo "$as_me:1680: \$? = $ac_status" >&5
1681 (exit "$ac_status"); }; }; then
1684 echo "$as_me: failed program was:" >&5
1685 cat "conftest.$ac_ext" >&5
1688 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1692 echo "$as_me:1692: result: $ac_cv_c_compiler_gnu" >&5
1693 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1694 GCC=`test $ac_compiler_gnu = yes && echo yes`
1695 ac_test_CFLAGS=${CFLAGS+set}
1696 ac_save_CFLAGS=$CFLAGS
1698 echo "$as_me:1698: checking whether $CC accepts -g" >&5
1699 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1700 if test "${ac_cv_prog_cc_g+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 cat >"conftest.$ac_ext" <<_ACEOF
1704 #line 1704 "configure"
1705 #include "confdefs.h"
1715 rm -f "conftest.$ac_objext"
1716 if { (eval echo "$as_me:1716: \"$ac_compile\"") >&5
1717 (eval $ac_compile) 2>&5
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit "$ac_status"); } &&
1721 { ac_try='test -s "conftest.$ac_objext"'
1722 { (eval echo "$as_me:1722: \"$ac_try\"") >&5
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit "$ac_status"); }; }; then
1729 echo "$as_me: failed program was:" >&5
1730 cat "conftest.$ac_ext" >&5
1733 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1735 echo "$as_me:1735: result: $ac_cv_prog_cc_g" >&5
1736 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1737 if test "$ac_test_CFLAGS" = set; then
1738 CFLAGS=$ac_save_CFLAGS
1739 elif test $ac_cv_prog_cc_g = yes; then
1740 if test "$GCC" = yes; then
1746 if test "$GCC" = yes; then
1752 # Some people use a C++ compiler to compile C. Since we use `exit',
1753 # in C++ we need to declare it. In case someone uses the same compiler
1754 # for both compiling C and C++ we need to have the C++ compiler decide
1755 # the declaration of exit, since it's the most demanding environment.
1756 cat >"conftest.$ac_ext" <<_ACEOF
1761 rm -f "conftest.$ac_objext"
1762 if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit "$ac_status"); } &&
1767 { ac_try='test -s "conftest.$ac_objext"'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit "$ac_status"); }; }; then
1773 for ac_declaration in \
1775 '#include <stdlib.h>' \
1776 'extern "C" void std::exit (int) throw (); using std::exit;' \
1777 'extern "C" void std::exit (int); using std::exit;' \
1778 'extern "C" void exit (int) throw ();' \
1779 'extern "C" void exit (int);' \
1782 cat >"conftest.$ac_ext" <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1795 rm -f "conftest.$ac_objext"
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit "$ac_status"); } &&
1801 { ac_try='test -s "conftest.$ac_objext"'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit "$ac_status"); }; }; then
1809 echo "$as_me: failed program was:" >&5
1810 cat "conftest.$ac_ext" >&5
1813 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1814 cat >"conftest.$ac_ext" <<_ACEOF
1815 #line 1815 "configure"
1816 #include "confdefs.h"
1826 rm -f "conftest.$ac_objext"
1827 if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5
1828 (eval $ac_compile) 2>&5
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit "$ac_status"); } &&
1832 { ac_try='test -s "conftest.$ac_objext"'
1833 { (eval echo "$as_me:1833: \"$ac_try\"") >&5
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit "$ac_status"); }; }; then
1840 echo "$as_me: failed program was:" >&5
1841 cat "conftest.$ac_ext" >&5
1843 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1846 if test -n "$ac_declaration"; then
1847 echo '#ifdef __cplusplus' >>confdefs.h
1848 echo "$ac_declaration" >>confdefs.h
1849 echo '#endif' >>confdefs.h
1853 echo "$as_me: failed program was:" >&5
1854 cat "conftest.$ac_ext" >&5
1856 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1860 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 ac_main_return="return"
1865 if test "$GCC" = yes ; then
1866 echo "$as_me:1866: checking version of $CC" >&5
1867 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1868 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.].*//'`"
1869 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1870 echo "$as_me:1870: result: $GCC_VERSION" >&5
1871 echo "${ECHO_T}$GCC_VERSION" >&6
1876 if test "$GCC" = yes ; then
1879 echo "$as_me:1879: checking if this is really Intel C compiler" >&5
1880 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1881 cf_save_CFLAGS="$CFLAGS"
1882 CFLAGS="$CFLAGS -no-gcc"
1883 cat >"conftest.$ac_ext" <<_ACEOF
1884 #line 1884 "configure"
1885 #include "confdefs.h"
1891 #ifdef __INTEL_COMPILER
1900 rm -f "conftest.$ac_objext"
1901 if { (eval echo "$as_me:1901: \"$ac_compile\"") >&5
1902 (eval $ac_compile) 2>&5
1904 echo "$as_me:1904: \$? = $ac_status" >&5
1905 (exit "$ac_status"); } &&
1906 { ac_try='test -s "conftest.$ac_objext"'
1907 { (eval echo "$as_me:1907: \"$ac_try\"") >&5
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit "$ac_status"); }; }; then
1913 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1916 echo "$as_me: failed program was:" >&5
1917 cat "conftest.$ac_ext" >&5
1919 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1920 CFLAGS="$cf_save_CFLAGS"
1921 echo "$as_me:1921: result: $INTEL_COMPILER" >&5
1922 echo "${ECHO_T}$INTEL_COMPILER" >&6
1929 if test "$GCC" = yes ; then
1930 echo "$as_me:1930: checking if this is really Clang C compiler" >&5
1931 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1932 cf_save_CFLAGS="$CFLAGS"
1933 cat >"conftest.$ac_ext" <<_ACEOF
1934 #line 1934 "configure"
1935 #include "confdefs.h"
1950 rm -f "conftest.$ac_objext"
1951 if { (eval echo "$as_me:1951: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>&5
1954 echo "$as_me:1954: \$? = $ac_status" >&5
1955 (exit "$ac_status"); } &&
1956 { ac_try='test -s "conftest.$ac_objext"'
1957 { (eval echo "$as_me:1957: \"$ac_try\"") >&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit "$ac_status"); }; }; then
1965 echo "$as_me: failed program was:" >&5
1966 cat "conftest.$ac_ext" >&5
1968 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1969 CFLAGS="$cf_save_CFLAGS"
1970 echo "$as_me:1970: result: $CLANG_COMPILER" >&5
1971 echo "${ECHO_T}$CLANG_COMPILER" >&6
1976 if test "x$CLANG_COMPILER" = "xyes" ; then
1978 (c[1-9][0-9]|*/c[1-9][0-9])
1979 { echo "$as_me:1979: WARNING: replacing broken compiler alias $CC" >&5
1980 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
1981 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
1986 echo "$as_me:1986: checking version of $CC" >&5
1987 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1988 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1989 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
1990 echo "$as_me:1990: result: $CLANG_VERSION" >&5
1991 echo "${ECHO_T}$CLANG_VERSION" >&6
1993 for cf_clang_opt in \
1994 -Qunused-arguments \
1995 -Wno-error=implicit-function-declaration
1997 echo "$as_me:1997: checking if option $cf_clang_opt works" >&5
1998 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
1999 cf_save_CFLAGS="$CFLAGS"
2000 CFLAGS="$CFLAGS $cf_clang_opt"
2001 cat >"conftest.$ac_ext" <<_ACEOF
2002 #line 2002 "configure"
2003 #include "confdefs.h"
2010 printf("hello!\\n");
2015 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2016 if { (eval echo "$as_me:2016: \"$ac_link\"") >&5
2017 (eval $ac_link) 2>&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit "$ac_status"); } &&
2021 { ac_try='test -s "conftest$ac_exeext"'
2022 { (eval echo "$as_me:2022: \"$ac_try\"") >&5
2025 echo "$as_me:2025: \$? = $ac_status" >&5
2026 (exit "$ac_status"); }; }; then
2030 echo "$as_me: failed program was:" >&5
2031 cat "conftest.$ac_ext" >&5
2035 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2036 echo "$as_me:2036: result: $cf_clang_optok" >&5
2037 echo "${ECHO_T}$cf_clang_optok" >&6
2038 CFLAGS="$cf_save_CFLAGS"
2039 if test "$cf_clang_optok" = yes; then
2040 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2042 echo "${as_me:-configure}:2042: testing adding option $cf_clang_opt ..." 1>&5
2044 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2045 CFLAGS="${CFLAGS}$cf_clang_opt"
2051 echo "$as_me:2051: checking for $CC option to accept ANSI C" >&5
2052 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2053 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 ac_cv_prog_cc_stdc=no
2058 cat >"conftest.$ac_ext" <<_ACEOF
2059 #line 2059 "configure"
2060 #include "confdefs.h"
2063 #include <sys/types.h>
2064 #include <sys/stat.h>
2065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2066 struct buf { int x; };
2067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2068 static char *e (p, i)
2074 static char *f (char * (*g) (char **, int), char **p, ...)
2079 s = g (p, va_arg (v,int));
2083 int test (int i, double x);
2084 struct s1 {int (*f) (int a);};
2085 struct s2 {int (*f) (double a);};
2086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2097 # Don't try gcc -ansi; that turns off useful extensions and
2098 # breaks some systems' header files.
2099 # AIX -qlanglvl=ansi
2100 # Ultrix and OSF/1 -std1
2101 # HP-UX 10.20 and later -Ae
2102 # HP-UX older versions -Aa -D_HPUX_SOURCE
2103 # SVR4 -Xc -D__EXTENSIONS__
2104 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2106 CC="$ac_save_CC $ac_arg"
2107 rm -f "conftest.$ac_objext"
2108 if { (eval echo "$as_me:2108: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>&5
2111 echo "$as_me:2111: \$? = $ac_status" >&5
2112 (exit "$ac_status"); } &&
2113 { ac_try='test -s "conftest.$ac_objext"'
2114 { (eval echo "$as_me:2114: \"$ac_try\"") >&5
2117 echo "$as_me:2117: \$? = $ac_status" >&5
2118 (exit "$ac_status"); }; }; then
2119 ac_cv_prog_cc_stdc=$ac_arg
2122 echo "$as_me: failed program was:" >&5
2123 cat "conftest.$ac_ext" >&5
2125 rm -f "conftest.$ac_objext"
2127 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2132 case "x$ac_cv_prog_cc_stdc" in
2134 echo "$as_me:2134: result: none needed" >&5
2135 echo "${ECHO_T}none needed" >&6 ;;
2137 echo "$as_me:2137: result: $ac_cv_prog_cc_stdc" >&5
2138 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2139 CC="$CC $ac_cv_prog_cc_stdc" ;;
2142 # This should have been defined by AC_PROG_CC
2145 echo "$as_me:2145: checking \$CFLAGS variable" >&5
2146 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2149 echo "$as_me:2149: result: broken" >&5
2150 echo "${ECHO_T}broken" >&6
2151 { echo "$as_me:2151: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2152 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2155 for cf_arg in $cf_flags
2161 cf_new_extra_cppflags=
2163 for cf_add_cflags in $cf_arg
2165 case "$cf_fix_cppflags" in
2167 case "$cf_add_cflags" in
2168 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2169 case "$cf_add_cflags" in
2171 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2173 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2174 && test -z "${cf_tst_cflags}" \
2175 && cf_fix_cppflags=yes
2177 if test "$cf_fix_cppflags" = yes ; then
2179 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2180 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2183 elif test "${cf_tst_cflags}" = "\"'" ; then
2185 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2186 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2196 case "$cf_add_cflags" in
2198 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2200 CPPFLAGS=`echo "$CPPFLAGS" | \
2201 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2202 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2207 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2208 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2215 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2216 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2223 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2224 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2226 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2228 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2229 && test -z "${cf_tst_cflags}" \
2230 && cf_fix_cppflags=no
2235 if test -n "$cf_new_cflags" ; then
2237 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2238 CFLAGS="${CFLAGS}$cf_new_cflags"
2242 if test -n "$cf_new_cppflags" ; then
2244 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2245 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2249 if test -n "$cf_new_extra_cppflags" ; then
2251 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2252 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2259 echo "$as_me:2259: result: ok" >&5
2260 echo "${ECHO_T}ok" >&6
2264 echo "$as_me:2264: checking \$CC variable" >&5
2265 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2268 echo "$as_me:2268: result: broken" >&5
2269 echo "${ECHO_T}broken" >&6
2270 { echo "$as_me:2270: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2271 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2273 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2274 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2276 for cf_arg in $cf_flags
2284 cf_new_extra_cppflags=
2286 for cf_add_cflags in $cf_arg
2288 case "$cf_fix_cppflags" in
2290 case "$cf_add_cflags" in
2291 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2292 case "$cf_add_cflags" in
2294 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2296 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2297 && test -z "${cf_tst_cflags}" \
2298 && cf_fix_cppflags=yes
2300 if test "$cf_fix_cppflags" = yes ; then
2302 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2303 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2306 elif test "${cf_tst_cflags}" = "\"'" ; then
2308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2309 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2319 case "$cf_add_cflags" in
2321 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2323 CPPFLAGS=`echo "$CPPFLAGS" | \
2324 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2325 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2330 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2331 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2338 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2339 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2347 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2349 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2351 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2352 && test -z "${cf_tst_cflags}" \
2353 && cf_fix_cppflags=no
2358 if test -n "$cf_new_cflags" ; then
2360 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2361 CFLAGS="${CFLAGS}$cf_new_cflags"
2365 if test -n "$cf_new_cppflags" ; then
2367 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2368 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2372 if test -n "$cf_new_extra_cppflags" ; then
2374 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2375 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2385 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2387 echo "${as_me:-configure}:2387: testing resulting CC: '$CC' ..." 1>&5
2389 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2391 echo "${as_me:-configure}:2391: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2393 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2395 echo "${as_me:-configure}:2395: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2399 echo "$as_me:2399: result: ok" >&5
2400 echo "${ECHO_T}ok" >&6
2404 echo "$as_me:2404: checking for inline" >&5
2405 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2406 if test "${ac_cv_c_inline+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 for ac_kw in inline __inline__ __inline; do
2411 cat >"conftest.$ac_ext" <<_ACEOF
2412 #line 2412 "configure"
2413 #include "confdefs.h"
2415 static $ac_kw int static_foo () {return 0; }
2416 $ac_kw int foo () {return 0; }
2420 rm -f "conftest.$ac_objext"
2421 if { (eval echo "$as_me:2421: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>&5
2424 echo "$as_me:2424: \$? = $ac_status" >&5
2425 (exit "$ac_status"); } &&
2426 { ac_try='test -s "conftest.$ac_objext"'
2427 { (eval echo "$as_me:2427: \"$ac_try\"") >&5
2430 echo "$as_me:2430: \$? = $ac_status" >&5
2431 (exit "$ac_status"); }; }; then
2432 ac_cv_c_inline=$ac_kw; break
2434 echo "$as_me: failed program was:" >&5
2435 cat "conftest.$ac_ext" >&5
2437 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2441 echo "$as_me:2441: result: $ac_cv_c_inline" >&5
2442 echo "${ECHO_T}$ac_cv_c_inline" >&6
2443 case $ac_cv_c_inline in
2446 cat >>confdefs.h <<\EOF
2450 *) cat >>confdefs.h <<EOF
2451 #define inline $ac_cv_c_inline
2456 for ac_prog in ggrep grep
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 echo "$as_me:2460: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462 if test "${ac_cv_prog_GREP+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$GREP"; then
2466 ac_cv_prog_GREP="$GREP" # Let the user override the test.
2468 ac_save_IFS=$IFS; IFS=$ac_path_separator
2470 for ac_dir in $ac_dummy; do
2472 test -z "$ac_dir" && ac_dir=.
2473 $as_executable_p "$ac_dir/$ac_word" || continue
2474 ac_cv_prog_GREP="$ac_prog"
2475 echo "$as_me:2475: found $ac_dir/$ac_word" >&5
2481 GREP=$ac_cv_prog_GREP
2482 if test -n "$GREP"; then
2483 echo "$as_me:2483: result: $GREP" >&5
2484 echo "${ECHO_T}$GREP" >&6
2486 echo "$as_me:2486: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2490 test -n "$GREP" && break
2492 test -n "$GREP" || GREP=": "
2494 echo "$as_me:2494: checking for egrep" >&5
2495 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2496 if test "${ac_cv_path_EGREP+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2500 then ac_cv_path_EGREP="$GREP -E"
2502 for ac_prog in gegrep egrep
2504 # Extract the first word of "$ac_prog", so it can be a program name with args.
2505 set dummy $ac_prog; ac_word=$2
2506 echo "$as_me:2506: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2508 if test "${ac_cv_path_EGREP+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
2516 ac_save_IFS=$IFS; IFS=$ac_path_separator
2518 for ac_dir in $ac_dummy; do
2520 test -z "$ac_dir" && ac_dir=.
2521 if $as_executable_p "$ac_dir/$ac_word"; then
2522 ac_cv_path_EGREP="$ac_dir/$ac_word"
2523 echo "$as_me:2523: found $ac_dir/$ac_word" >&5
2531 EGREP=$ac_cv_path_EGREP
2533 if test -n "$EGREP"; then
2534 echo "$as_me:2534: result: $EGREP" >&5
2535 echo "${ECHO_T}$EGREP" >&6
2537 echo "$as_me:2537: result: no" >&5
2538 echo "${ECHO_T}no" >&6
2541 test -n "$EGREP" && break
2543 test -n "$EGREP" || EGREP=": "
2545 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2545: error: cannot find workable egrep" >&5
2546 echo "$as_me: error: cannot find workable egrep" >&2;}
2547 { (exit 1); exit 1; }; }
2550 echo "$as_me:2550: result: $ac_cv_path_EGREP" >&5
2551 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
2552 EGREP="$ac_cv_path_EGREP"
2555 ac_cpp='$CPP $CPPFLAGS'
2556 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2557 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559 ac_main_return="return"
2560 echo "$as_me:2560: checking how to run the C preprocessor" >&5
2561 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2562 # On Suns, sometimes $CPP names a directory.
2563 if test -n "$CPP" && test -d "$CPP"; then
2566 if test -z "$CPP"; then
2567 if test "${ac_cv_prog_CPP+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 # Double quotes because CPP needs to be expanded
2571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2574 for ac_c_preproc_warn_flag in '' yes
2576 # Use a header file that comes with gcc, so configuring glibc
2577 # with a fresh cross-compiler works.
2578 # On the NeXT, cc -E runs the code through the compiler's parser,
2579 # not just through cpp. "Syntax error" is here to catch this case.
2580 cat >"conftest.$ac_ext" <<_ACEOF
2581 #line 2581 "configure"
2582 #include "confdefs.h"
2586 if { (eval echo "$as_me:2586: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2587 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2589 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:2592: \$? = $ac_status" >&5
2593 (exit "$ac_status"); } >/dev/null; then
2594 if test -s conftest.err; then
2595 ac_cpp_err=$ac_c_preproc_warn_flag
2602 if test -z "$ac_cpp_err"; then
2605 echo "$as_me: failed program was:" >&5
2606 cat "conftest.$ac_ext" >&5
2607 # Broken: fails on valid input.
2610 rm -f conftest.err "conftest.$ac_ext"
2612 # OK, works on sane cases. Now check whether non-existent headers
2613 # can be detected and how.
2614 cat >"conftest.$ac_ext" <<_ACEOF
2615 #line 2615 "configure"
2616 #include "confdefs.h"
2617 #include <ac_nonexistent.h>
2619 if { (eval echo "$as_me:2619: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2620 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2622 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit "$ac_status"); } >/dev/null; then
2627 if test -s conftest.err; then
2628 ac_cpp_err=$ac_c_preproc_warn_flag
2635 if test -z "$ac_cpp_err"; then
2636 # Broken: success on invalid input.
2639 echo "$as_me: failed program was:" >&5
2640 cat "conftest.$ac_ext" >&5
2641 # Passes both tests.
2645 rm -f conftest.err "conftest.$ac_ext"
2648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2649 rm -f conftest.err "conftest.$ac_ext"
2650 if $ac_preproc_ok; then
2662 echo "$as_me:2662: result: $CPP" >&5
2663 echo "${ECHO_T}$CPP" >&6
2665 for ac_c_preproc_warn_flag in '' yes
2667 # Use a header file that comes with gcc, so configuring glibc
2668 # with a fresh cross-compiler works.
2669 # On the NeXT, cc -E runs the code through the compiler's parser,
2670 # not just through cpp. "Syntax error" is here to catch this case.
2671 cat >"conftest.$ac_ext" <<_ACEOF
2672 #line 2672 "configure"
2673 #include "confdefs.h"
2677 if { (eval echo "$as_me:2677: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2678 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2680 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2682 cat conftest.err >&5
2683 echo "$as_me:2683: \$? = $ac_status" >&5
2684 (exit "$ac_status"); } >/dev/null; then
2685 if test -s conftest.err; then
2686 ac_cpp_err=$ac_c_preproc_warn_flag
2693 if test -z "$ac_cpp_err"; then
2696 echo "$as_me: failed program was:" >&5
2697 cat "conftest.$ac_ext" >&5
2698 # Broken: fails on valid input.
2701 rm -f conftest.err "conftest.$ac_ext"
2703 # OK, works on sane cases. Now check whether non-existent headers
2704 # can be detected and how.
2705 cat >"conftest.$ac_ext" <<_ACEOF
2706 #line 2706 "configure"
2707 #include "confdefs.h"
2708 #include <ac_nonexistent.h>
2710 if { (eval echo "$as_me:2710: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2711 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2713 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:2716: \$? = $ac_status" >&5
2717 (exit "$ac_status"); } >/dev/null; then
2718 if test -s conftest.err; then
2719 ac_cpp_err=$ac_c_preproc_warn_flag
2726 if test -z "$ac_cpp_err"; then
2727 # Broken: success on invalid input.
2730 echo "$as_me: failed program was:" >&5
2731 cat "conftest.$ac_ext" >&5
2732 # Passes both tests.
2736 rm -f conftest.err "conftest.$ac_ext"
2739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2740 rm -f conftest.err "conftest.$ac_ext"
2741 if $ac_preproc_ok; then
2744 { { echo "$as_me:2744: error: C preprocessor \"$CPP\" fails sanity check" >&5
2745 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2746 { (exit 1); exit 1; }; }
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2752 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 ac_main_return="return"
2756 for ac_prog in mawk gawk nawk awk
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 echo "$as_me:2760: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_AWK+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$AWK"; then
2766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2768 ac_save_IFS=$IFS; IFS=$ac_path_separator
2770 for ac_dir in $ac_dummy; do
2772 test -z "$ac_dir" && ac_dir=.
2773 $as_executable_p "$ac_dir/$ac_word" || continue
2774 ac_cv_prog_AWK="$ac_prog"
2775 echo "$as_me:2775: found $ac_dir/$ac_word" >&5
2782 if test -n "$AWK"; then
2783 echo "$as_me:2783: result: $AWK" >&5
2784 echo "${ECHO_T}$AWK" >&6
2786 echo "$as_me:2786: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2790 test -n "$AWK" && break
2793 # Find a good install program. We prefer a C program (faster),
2794 # so one script is as good as another. But avoid the broken or
2795 # incompatible versions:
2796 # SysV /etc/install, /usr/sbin/install
2797 # SunOS /usr/etc/install
2798 # IRIX /sbin/install
2800 # AmigaOS /C/install, which installs bootblocks on floppy discs
2801 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2802 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2803 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2804 # ./install, which can be erroneously created by make from ./install.sh.
2805 echo "$as_me:2805: checking for a BSD compatible install" >&5
2806 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2807 if test -z "$INSTALL"; then
2808 if test "${ac_cv_path_install+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 ac_save_IFS=$IFS; IFS=$ac_path_separator
2812 for ac_dir in $PATH; do
2814 # Account for people who put trailing slashes in PATH elements.
2816 / | ./ | .// | /cC/* \
2817 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2820 # OSF1 and SCO ODT 3.0 have their own names for install.
2821 # Don't use installbsd from OSF since it installs stuff as root
2823 for ac_prog in ginstall scoinst install; do
2824 if $as_executable_p "$ac_dir/$ac_prog"; then
2825 if test $ac_prog = install &&
2826 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2827 # AIX install. It has an incompatible calling convention.
2829 elif test $ac_prog = install &&
2830 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2831 # program-specific install script used by HP pwplus--don't use.
2834 ac_cv_path_install="$ac_dir/$ac_prog -c"
2844 if test "${ac_cv_path_install+set}" = set; then
2845 INSTALL=$ac_cv_path_install
2847 # As a last resort, use the slow shell script. We don't cache a
2848 # path for INSTALL within a source directory, because that will
2849 # break other packages using the cache if that directory is
2850 # removed, or if the path is relative.
2851 INSTALL=$ac_install_sh
2854 echo "$as_me:2854: result: $INSTALL" >&5
2855 echo "${ECHO_T}$INSTALL" >&6
2857 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2858 # It thinks the first close brace ends the variable substitution.
2859 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2861 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2863 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2869 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
2870 test -z "$cf_dir" && cf_dir=.
2871 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
2875 echo "$as_me:2875: checking if you want to install stripped executables" >&5
2876 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2878 # Check whether --enable-stripping or --disable-stripping was given.
2879 if test "${enable_stripping+set}" = set; then
2880 enableval="$enable_stripping"
2881 test "$enableval" != no && enableval=yes
2882 if test "$enableval" != "yes" ; then
2885 enable_stripping=yes
2889 enable_stripping=yes
2892 echo "$as_me:2892: result: $enable_stripping" >&5
2893 echo "${ECHO_T}$enable_stripping" >&6
2895 if test "$enable_stripping" = yes
2902 : "${INSTALL:=install}"
2903 echo "$as_me:2903: checking if install accepts -p option" >&5
2904 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2905 if test "${cf_cv_install_p+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2915 if test -f conftest.out/conftest.in
2917 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2918 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2919 if test -s conftest.err
2934 echo "$as_me:2934: result: $cf_cv_install_p" >&5
2935 echo "${ECHO_T}$cf_cv_install_p" >&6
2937 echo "$as_me:2937: checking if install needs to be told about ownership" >&5
2938 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2939 case `$ac_config_guess` in
2948 echo "$as_me:2948: result: $with_install_o" >&5
2949 echo "${ECHO_T}$with_install_o" >&6
2950 if test "x$with_install_o" = xyes
2952 INSTALL_OPT_O="`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`"
2957 for ac_prog in lint cppcheck splint
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 echo "$as_me:2961: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_LINT+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -n "$LINT"; then
2967 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2969 ac_save_IFS=$IFS; IFS=$ac_path_separator
2971 for ac_dir in $ac_dummy; do
2973 test -z "$ac_dir" && ac_dir=.
2974 $as_executable_p "$ac_dir/$ac_word" || continue
2975 ac_cv_prog_LINT="$ac_prog"
2976 echo "$as_me:2976: found $ac_dir/$ac_word" >&5
2982 LINT=$ac_cv_prog_LINT
2983 if test -n "$LINT"; then
2984 echo "$as_me:2984: result: $LINT" >&5
2985 echo "${ECHO_T}$LINT" >&6
2987 echo "$as_me:2987: result: no" >&5
2988 echo "${ECHO_T}no" >&6
2991 test -n "$LINT" && break
2995 (xcppcheck|x*/cppcheck)
2996 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3000 echo "$as_me:3000: checking for \".PHONY\" make-support" >&5
3001 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
3002 if test "${cf_cv_make_PHONY+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 mkdir conftest || exit 1
3010 cat >makefile <<'CF_EOF'
3014 @echo "** making $@ $(DATA)"
3016 @echo "** making $@ $(DATA)"
3018 @echo "** making $@ $(DATA)"
3021 @echo "** making $@ $(DATA)"
3024 for cf_data in 1 2 3
3026 ${MAKE:-make} always DATA=$cf_data
3027 ${MAKE:-make} once DATA=$cf_data
3028 ${MAKE:-make} -t always once
3029 if test -f always ; then
3030 echo "no (case 1)" > ../conftest.tmp
3031 elif test ! -f always.out ; then
3032 echo "no (case 2)" > ../conftest.tmp
3033 elif test ! -f once.out ; then
3034 echo "no (case 3)" > ../conftest.tmp
3035 elif ! cmp -s always.out once.out ; then
3036 echo "no (case 4)" > ../conftest.tmp
3037 diff always.out once.out
3039 cf_check="`cat always.out`"
3040 if test "x$cf_check" != "x$cf_data" ; then
3041 echo "no (case 5)" > ../conftest.tmp
3043 echo yes > ../conftest.tmp
3051 cf_cv_make_PHONY="`cat conftest.tmp`"
3055 echo "$as_me:3055: result: $cf_cv_make_PHONY" >&5
3056 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
3059 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
3060 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
3062 echo "$as_me:3062: checking if filesystem supports mixed-case filenames" >&5
3063 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3064 if test "${cf_cv_mixedcase+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 if test "$cross_compiling" = yes ; then
3069 case "$target_alias" in
3070 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
3078 rm -f conftest CONFTEST
3080 if test -f CONFTEST ; then
3085 rm -f conftest CONFTEST
3089 echo "$as_me:3089: result: $cf_cv_mixedcase" >&5
3090 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3091 test "$cf_cv_mixedcase" = yes &&
3092 cat >>confdefs.h <<\EOF
3093 #define MIXEDCASE_FILENAMES 1
3096 for ac_prog in exctags ctags
3098 # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 echo "$as_me:3100: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102 if test "${ac_cv_prog_CTAGS+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 if test -n "$CTAGS"; then
3106 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3108 ac_save_IFS=$IFS; IFS=$ac_path_separator
3110 for ac_dir in $ac_dummy; do
3112 test -z "$ac_dir" && ac_dir=.
3113 $as_executable_p "$ac_dir/$ac_word" || continue
3114 ac_cv_prog_CTAGS="$ac_prog"
3115 echo "$as_me:3115: found $ac_dir/$ac_word" >&5
3121 CTAGS=$ac_cv_prog_CTAGS
3122 if test -n "$CTAGS"; then
3123 echo "$as_me:3123: result: $CTAGS" >&5
3124 echo "${ECHO_T}$CTAGS" >&6
3126 echo "$as_me:3126: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3130 test -n "$CTAGS" && break
3133 for ac_prog in exetags etags
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy $ac_prog; ac_word=$2
3137 echo "$as_me:3137: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_ETAGS+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 if test -n "$ETAGS"; then
3143 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3145 ac_save_IFS=$IFS; IFS=$ac_path_separator
3147 for ac_dir in $ac_dummy; do
3149 test -z "$ac_dir" && ac_dir=.
3150 $as_executable_p "$ac_dir/$ac_word" || continue
3151 ac_cv_prog_ETAGS="$ac_prog"
3152 echo "$as_me:3152: found $ac_dir/$ac_word" >&5
3158 ETAGS=$ac_cv_prog_ETAGS
3159 if test -n "$ETAGS"; then
3160 echo "$as_me:3160: result: $ETAGS" >&5
3161 echo "${ECHO_T}$ETAGS" >&6
3163 echo "$as_me:3163: result: no" >&5
3164 echo "${ECHO_T}no" >&6
3167 test -n "$ETAGS" && break
3170 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3171 set dummy ${CTAGS:-ctags}; ac_word=$2
3172 echo "$as_me:3172: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 if test -n "$MAKE_LOWER_TAGS"; then
3178 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3180 ac_save_IFS=$IFS; IFS=$ac_path_separator
3182 for ac_dir in $ac_dummy; do
3184 test -z "$ac_dir" && ac_dir=.
3185 $as_executable_p "$ac_dir/$ac_word" || continue
3186 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3187 echo "$as_me:3187: found $ac_dir/$ac_word" >&5
3191 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3194 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3195 if test -n "$MAKE_LOWER_TAGS"; then
3196 echo "$as_me:3196: result: $MAKE_LOWER_TAGS" >&5
3197 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3203 if test "$cf_cv_mixedcase" = yes ; then
3204 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3205 set dummy ${ETAGS:-etags}; ac_word=$2
3206 echo "$as_me:3206: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 if test -n "$MAKE_UPPER_TAGS"; then
3212 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3214 ac_save_IFS=$IFS; IFS=$ac_path_separator
3216 for ac_dir in $ac_dummy; do
3218 test -z "$ac_dir" && ac_dir=.
3219 $as_executable_p "$ac_dir/$ac_word" || continue
3220 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3221 echo "$as_me:3221: found $ac_dir/$ac_word" >&5
3225 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3228 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3229 if test -n "$MAKE_UPPER_TAGS"; then
3230 echo "$as_me:3230: result: $MAKE_UPPER_TAGS" >&5
3231 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3233 echo "$as_me:3233: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3241 if test "$MAKE_UPPER_TAGS" = yes ; then
3247 if test "$MAKE_LOWER_TAGS" = yes ; then
3253 echo "$as_me:3253: checking if -lm needed for math functions" >&5
3254 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3255 if test "${cf_cv_need_libm+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 cat >"conftest.$ac_ext" <<_ACEOF
3260 #line 3260 "configure"
3261 #include "confdefs.h"
3270 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
3275 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3276 if { (eval echo "$as_me:3276: \"$ac_link\"") >&5
3277 (eval $ac_link) 2>&5
3279 echo "$as_me:3279: \$? = $ac_status" >&5
3280 (exit "$ac_status"); } &&
3281 { ac_try='test -s "conftest$ac_exeext"'
3282 { (eval echo "$as_me:3282: \"$ac_try\"") >&5
3285 echo "$as_me:3285: \$? = $ac_status" >&5
3286 (exit "$ac_status"); }; }; then
3289 echo "$as_me: failed program was:" >&5
3290 cat "conftest.$ac_ext" >&5
3293 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3295 echo "$as_me:3295: result: $cf_cv_need_libm" >&5
3296 echo "${ECHO_T}$cf_cv_need_libm" >&6
3297 if test "$cf_cv_need_libm" = yes
3305 CC_SHARED_OPTS=unknown
3306 CPPFLAGS="$CPPFLAGS"
3308 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3309 DFT_UPR_MODEL="NORMAL"
3322 PACKAGE="ncurses-examples"
3328 TINFO_LIBS='$(LIBS_CURSES)'
3329 cf_cv_abi_version=""
3330 cf_cv_rel_version=""
3336 echo "$as_me:3336: checking for fgrep" >&5
3337 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3338 if test "${ac_cv_path_FGREP+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3342 then ac_cv_path_FGREP="$GREP -F"
3344 for ac_prog in gfgrep fgrep
3346 # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy $ac_prog; ac_word=$2
3348 echo "$as_me:3348: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_path_FGREP+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
3358 ac_save_IFS=$IFS; IFS=$ac_path_separator
3360 for ac_dir in $ac_dummy; do
3362 test -z "$ac_dir" && ac_dir=.
3363 if $as_executable_p "$ac_dir/$ac_word"; then
3364 ac_cv_path_FGREP="$ac_dir/$ac_word"
3365 echo "$as_me:3365: found $ac_dir/$ac_word" >&5
3373 FGREP=$ac_cv_path_FGREP
3375 if test -n "$FGREP"; then
3376 echo "$as_me:3376: result: $FGREP" >&5
3377 echo "${ECHO_T}$FGREP" >&6
3379 echo "$as_me:3379: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3383 test -n "$FGREP" && break
3385 test -n "$FGREP" || FGREP=": "
3387 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:3387: error: cannot find workable fgrep" >&5
3388 echo "$as_me: error: cannot find workable fgrep" >&2;}
3389 { (exit 1); exit 1; }; }
3392 echo "$as_me:3392: result: $ac_cv_path_FGREP" >&5
3393 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
3394 FGREP="$ac_cv_path_FGREP"
3396 echo "$as_me:3396: checking if you want to use C11 _Noreturn feature" >&5
3397 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
3399 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
3400 if test "${enable_stdnoreturn+set}" = set; then
3401 enableval="$enable_stdnoreturn"
3402 test "$enableval" != yes && enableval=no
3403 if test "$enableval" != "no" ; then
3404 enable_stdnoreturn=yes
3406 enable_stdnoreturn=no
3410 enable_stdnoreturn=no
3413 echo "$as_me:3413: result: $enable_stdnoreturn" >&5
3414 echo "${ECHO_T}$enable_stdnoreturn" >&6
3416 if test $enable_stdnoreturn = yes; then
3417 echo "$as_me:3417: checking for C11 _Noreturn feature" >&5
3418 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
3419 if test "${cf_cv_c11_noreturn+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 cat >"conftest.$ac_ext" <<_ACEOF
3423 #line 3423 "configure"
3424 #include "confdefs.h"
3428 #include <stdnoreturn.h>
3429 static _Noreturn void giveup(void) { exit(0); }
3434 if (feof(stdin)) giveup()
3439 rm -f "conftest.$ac_objext"
3440 if { (eval echo "$as_me:3440: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3443 echo "$as_me:3443: \$? = $ac_status" >&5
3444 (exit "$ac_status"); } &&
3445 { ac_try='test -s "conftest.$ac_objext"'
3446 { (eval echo "$as_me:3446: \"$ac_try\"") >&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit "$ac_status"); }; }; then
3451 cf_cv_c11_noreturn=yes
3453 echo "$as_me: failed program was:" >&5
3454 cat "conftest.$ac_ext" >&5
3455 cf_cv_c11_noreturn=no
3457 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3460 echo "$as_me:3460: result: $cf_cv_c11_noreturn" >&5
3461 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
3463 cf_cv_c11_noreturn=no,
3466 if test "$cf_cv_c11_noreturn" = yes; then
3468 cat >>confdefs.h <<\EOF
3469 #define HAVE_STDNORETURN_H 1
3472 cat >>confdefs.h <<EOF
3473 #define STDC_NORETURN _Noreturn
3476 HAVE_STDNORETURN_H=1
3478 HAVE_STDNORETURN_H=0
3481 if test "$GCC" = yes || test "$GXX" = yes
3483 cat > conftest.i <<EOF
3485 #define GCC_PRINTF 0
3490 #ifndef GCC_NORETURN
3491 #define GCC_NORETURN /* nothing */
3494 #define GCC_UNUSED /* nothing */
3497 if test "$GCC" = yes
3499 { echo "$as_me:3499: checking for $CC __attribute__ directives..." >&5
3500 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3501 cat > "conftest.$ac_ext" <<EOF
3502 #line 3502 "${as_me:-configure}"
3503 #include "confdefs.h"
3504 #include "conftest.h"
3505 #include "conftest.i"
3507 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3509 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3512 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3514 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3516 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3517 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
3518 extern GCC_NORETURN void foo(void);
3519 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
3521 cf_printf_attribute=no
3522 cf_scanf_attribute=no
3523 for cf_attribute in scanf printf unused noreturn
3526 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3528 cf_directive="__attribute__(($cf_attribute))"
3529 echo "checking for $CC $cf_directive" 1>&5
3531 case "$cf_attribute" in
3533 cf_printf_attribute=yes
3534 cat >conftest.h <<EOF
3535 #define GCC_$cf_ATTRIBUTE 1
3539 cf_scanf_attribute=yes
3540 cat >conftest.h <<EOF
3541 #define GCC_$cf_ATTRIBUTE 1
3545 cat >conftest.h <<EOF
3546 #define GCC_$cf_ATTRIBUTE $cf_directive
3551 if { (eval echo "$as_me:3551: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>&5
3554 echo "$as_me:3554: \$? = $ac_status" >&5
3555 (exit "$ac_status"); }; then
3556 test -n "$verbose" && echo "$as_me:3556: result: ... $cf_attribute" >&5
3557 echo "${ECHO_T}... $cf_attribute" >&6
3558 cat conftest.h >>confdefs.h
3559 case "$cf_attribute" in
3562 cat >>confdefs.h <<EOF
3563 #define GCC_NORETURN $cf_directive
3568 cf_value='/* nothing */'
3569 if test "$cf_printf_attribute" != no ; then
3570 cf_value='__attribute__((format(printf,fmt,var)))'
3572 cat >>confdefs.h <<\EOF
3573 #define GCC_PRINTF 1
3578 cat >>confdefs.h <<EOF
3579 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3584 cf_value='/* nothing */'
3585 if test "$cf_scanf_attribute" != no ; then
3586 cf_value='__attribute__((format(scanf,fmt,var)))'
3588 cat >>confdefs.h <<\EOF
3594 cat >>confdefs.h <<EOF
3595 #define GCC_SCANFLIKE(fmt,var) $cf_value
3601 cat >>confdefs.h <<EOF
3602 #define GCC_UNUSED $cf_directive
3610 ${FGREP-fgrep} define conftest.i >>confdefs.h
3615 echo "$as_me:3615: checking if you want to work around bogus compiler/loader warnings" >&5
3616 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3618 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3619 if test "${enable_string_hacks+set}" = set; then
3620 enableval="$enable_string_hacks"
3621 enable_string_hacks=$enableval
3623 enable_string_hacks=no
3625 echo "$as_me:3625: result: $enable_string_hacks" >&5
3626 echo "${ECHO_T}$enable_string_hacks" >&6
3628 if test "x$enable_string_hacks" = "xyes"; then
3630 cat >>confdefs.h <<\EOF
3631 #define USE_STRING_HACKS 1
3634 { echo "$as_me:3634: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3635 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3636 echo "$as_me:3636: checking for strlcat" >&5
3637 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3638 if test "${ac_cv_func_strlcat+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 cat >"conftest.$ac_ext" <<_ACEOF
3642 #line 3642 "configure"
3643 #include "confdefs.h"
3644 #define strlcat autoconf_temporary
3645 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3652 /* We use char because int might match the return type of a gcc2
3653 builtin and then its argument prototype would still apply. */
3654 char strlcat (void);
3660 /* The GNU C library defines stubs for functions which it implements
3661 to always fail with ENOSYS. Some functions are actually named
3662 something starting with __ and the normal name is an alias. */
3663 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3664 #error found stub for strlcat
3672 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3673 if { (eval echo "$as_me:3673: \"$ac_link\"") >&5
3674 (eval $ac_link) 2>&5
3676 echo "$as_me:3676: \$? = $ac_status" >&5
3677 (exit "$ac_status"); } &&
3678 { ac_try='test -s "conftest$ac_exeext"'
3679 { (eval echo "$as_me:3679: \"$ac_try\"") >&5
3682 echo "$as_me:3682: \$? = $ac_status" >&5
3683 (exit "$ac_status"); }; }; then
3684 ac_cv_func_strlcat=yes
3686 echo "$as_me: failed program was:" >&5
3687 cat "conftest.$ac_ext" >&5
3688 ac_cv_func_strlcat=no
3690 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3692 echo "$as_me:3692: result: $ac_cv_func_strlcat" >&5
3693 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3694 if test "$ac_cv_func_strlcat" = yes; then
3696 cat >>confdefs.h <<\EOF
3697 #define HAVE_STRLCAT 1
3702 echo "$as_me:3702: checking for strlcat in -lbsd" >&5
3703 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3704 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_check_lib_save_LIBS=$LIBS
3709 cat >"conftest.$ac_ext" <<_ACEOF
3710 #line 3710 "configure"
3711 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3717 /* We use char because int might match the return type of a gcc2
3718 builtin and then its argument prototype would still apply. */
3728 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3729 if { (eval echo "$as_me:3729: \"$ac_link\"") >&5
3730 (eval $ac_link) 2>&5
3732 echo "$as_me:3732: \$? = $ac_status" >&5
3733 (exit "$ac_status"); } &&
3734 { ac_try='test -s "conftest$ac_exeext"'
3735 { (eval echo "$as_me:3735: \"$ac_try\"") >&5
3738 echo "$as_me:3738: \$? = $ac_status" >&5
3739 (exit "$ac_status"); }; }; then
3740 ac_cv_lib_bsd_strlcat=yes
3742 echo "$as_me: failed program was:" >&5
3743 cat "conftest.$ac_ext" >&5
3744 ac_cv_lib_bsd_strlcat=no
3746 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3747 LIBS=$ac_check_lib_save_LIBS
3749 echo "$as_me:3749: result: $ac_cv_lib_bsd_strlcat" >&5
3750 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3751 if test "$ac_cv_lib_bsd_strlcat" = yes; then
3756 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3758 for cf_add_1lib in $cf_add_0lib; do
3759 for cf_add_2lib in $cf_add_libs; do
3760 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3765 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3769 for ac_header in bsd/string.h
3771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3772 echo "$as_me:3772: checking for $ac_header" >&5
3773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 cat >"conftest.$ac_ext" <<_ACEOF
3778 #line 3778 "configure"
3779 #include "confdefs.h"
3780 #include <$ac_header>
3782 if { (eval echo "$as_me:3782: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3783 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3785 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3787 cat conftest.err >&5
3788 echo "$as_me:3788: \$? = $ac_status" >&5
3789 (exit "$ac_status"); } >/dev/null; then
3790 if test -s conftest.err; then
3791 ac_cpp_err=$ac_c_preproc_warn_flag
3798 if test -z "$ac_cpp_err"; then
3799 eval "$as_ac_Header=yes"
3801 echo "$as_me: failed program was:" >&5
3802 cat "conftest.$ac_ext" >&5
3803 eval "$as_ac_Header=no"
3805 rm -f conftest.err "conftest.$ac_ext"
3807 echo "$as_me:3807: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
3808 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
3809 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
3810 cat >>confdefs.h <<EOF
3811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3817 cat >>confdefs.h <<\EOF
3818 #define HAVE_STRLCAT 1
3825 for ac_func in strlcpy snprintf
3827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3828 echo "$as_me:3828: checking for $ac_func" >&5
3829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3830 if eval "test \"\${$as_ac_var+set}\" = set"; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 cat >"conftest.$ac_ext" <<_ACEOF
3834 #line 3834 "configure"
3835 #include "confdefs.h"
3836 #define $ac_func autoconf_temporary
3837 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3846 char $ac_func (void);
3852 /* The GNU C library defines stubs for functions which it implements
3853 to always fail with ENOSYS. Some functions are actually named
3854 something starting with __ and the normal name is an alias. */
3855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3856 #error found stub for $ac_func
3864 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3865 if { (eval echo "$as_me:3865: \"$ac_link\"") >&5
3866 (eval $ac_link) 2>&5
3868 echo "$as_me:3868: \$? = $ac_status" >&5
3869 (exit "$ac_status"); } &&
3870 { ac_try='test -s "conftest$ac_exeext"'
3871 { (eval echo "$as_me:3871: \"$ac_try\"") >&5
3874 echo "$as_me:3874: \$? = $ac_status" >&5
3875 (exit "$ac_status"); }; }; then
3876 eval "$as_ac_var=yes"
3878 echo "$as_me: failed program was:" >&5
3879 cat "conftest.$ac_ext" >&5
3880 eval "$as_ac_var=no"
3882 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3884 echo "$as_me:3884: result: `eval echo '${'"$as_ac_var"'}'`" >&5
3885 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
3886 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
3887 cat >>confdefs.h <<EOF
3888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3896 echo "$as_me:3896: checking if the POSIX test-macros are already defined" >&5
3897 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3898 if test "${cf_cv_posix_visible+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 cat >"conftest.$ac_ext" <<_ACEOF
3903 #line 3903 "configure"
3904 #include "confdefs.h"
3910 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3911 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3912 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3913 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3914 #error conflicting symbols found
3921 rm -f "conftest.$ac_objext"
3922 if { (eval echo "$as_me:3922: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>&5
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit "$ac_status"); } &&
3927 { ac_try='test -s "conftest.$ac_objext"'
3928 { (eval echo "$as_me:3928: \"$ac_try\"") >&5
3931 echo "$as_me:3931: \$? = $ac_status" >&5
3932 (exit "$ac_status"); }; }; then
3933 cf_cv_posix_visible=no
3935 echo "$as_me: failed program was:" >&5
3936 cat "conftest.$ac_ext" >&5
3937 cf_cv_posix_visible=yes
3939 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3942 echo "$as_me:3942: result: $cf_cv_posix_visible" >&5
3943 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3945 if test "$cf_cv_posix_visible" = no; then
3948 cf_POSIX_C_SOURCE=199506L
3953 cf_xopen_source="-D_ALL_SOURCE"
3959 cf_xopen_source="-D_APPLE_C_SOURCE"
3962 cf_xopen_source="-D_DARWIN_C_SOURCE"
3965 (freebsd*|dragonfly*|midnightbsd*)
3966 # 5.x headers associate
3967 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3968 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3969 cf_POSIX_C_SOURCE=200112L
3971 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3974 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3977 cf_xopen_source="-D_HPUX_SOURCE"
3980 cf_xopen_source="-D_SGI_SOURCE"
3983 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3985 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3987 echo "$as_me:3987: checking if this is the GNU C library" >&5
3988 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3989 if test "${cf_cv_gnu_library+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 cat >"conftest.$ac_ext" <<_ACEOF
3994 #line 3994 "configure"
3995 #include "confdefs.h"
3996 #include <sys/types.h>
4001 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
4003 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
4006 # error not GNU C library
4012 rm -f "conftest.$ac_objext"
4013 if { (eval echo "$as_me:4013: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit "$ac_status"); } &&
4018 { ac_try='test -s "conftest.$ac_objext"'
4019 { (eval echo "$as_me:4019: \"$ac_try\"") >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit "$ac_status"); }; }; then
4024 cf_cv_gnu_library=yes
4026 echo "$as_me: failed program was:" >&5
4027 cat "conftest.$ac_ext" >&5
4028 cf_cv_gnu_library=no
4030 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4033 echo "$as_me:4033: result: $cf_cv_gnu_library" >&5
4034 echo "${ECHO_T}$cf_cv_gnu_library" >&6
4036 if test x$cf_cv_gnu_library = xyes; then
4038 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
4039 # was changed to help a little. newlib incorporated the change about 4
4041 echo "$as_me:4041: checking if _DEFAULT_SOURCE can be used as a basis" >&5
4042 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
4043 if test "${cf_cv_gnu_library_219+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4050 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4052 cat >"conftest.$ac_ext" <<_ACEOF
4053 #line 4053 "configure"
4054 #include "confdefs.h"
4055 #include <sys/types.h>
4060 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
4062 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
4065 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
4071 rm -f "conftest.$ac_objext"
4072 if { (eval echo "$as_me:4072: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4075 echo "$as_me:4075: \$? = $ac_status" >&5
4076 (exit "$ac_status"); } &&
4077 { ac_try='test -s "conftest.$ac_objext"'
4078 { (eval echo "$as_me:4078: \"$ac_try\"") >&5
4081 echo "$as_me:4081: \$? = $ac_status" >&5
4082 (exit "$ac_status"); }; }; then
4083 cf_cv_gnu_library_219=yes
4085 echo "$as_me: failed program was:" >&5
4086 cat "conftest.$ac_ext" >&5
4087 cf_cv_gnu_library_219=no
4089 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4093 echo "$as_me:4093: result: $cf_cv_gnu_library_219" >&5
4094 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
4096 if test "x$cf_cv_gnu_library_219" = xyes; then
4098 echo "$as_me:4098: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
4099 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
4100 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 cf_new_extra_cppflags=
4109 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
4111 case "$cf_fix_cppflags" in
4113 case "$cf_add_cflags" in
4114 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4115 case "$cf_add_cflags" in
4117 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4119 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4120 && test -z "${cf_tst_cflags}" \
4121 && cf_fix_cppflags=yes
4123 if test "$cf_fix_cppflags" = yes ; then
4125 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4126 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4129 elif test "${cf_tst_cflags}" = "\"'" ; then
4131 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4132 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4142 case "$cf_add_cflags" in
4144 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4146 CPPFLAGS=`echo "$CPPFLAGS" | \
4147 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4148 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4153 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4154 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4161 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4162 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4169 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4170 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4172 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4174 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4175 && test -z "${cf_tst_cflags}" \
4176 && cf_fix_cppflags=no
4181 if test -n "$cf_new_cflags" ; then
4183 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4184 CFLAGS="${CFLAGS}$cf_new_cflags"
4188 if test -n "$cf_new_cppflags" ; then
4190 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4191 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4195 if test -n "$cf_new_extra_cppflags" ; then
4197 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4198 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4202 cat >"conftest.$ac_ext" <<_ACEOF
4203 #line 4203 "configure"
4204 #include "confdefs.h"
4207 #include <sys/types.h>
4213 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
4216 # error GNU C library is too old
4222 rm -f "conftest.$ac_objext"
4223 if { (eval echo "$as_me:4223: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>&5
4226 echo "$as_me:4226: \$? = $ac_status" >&5
4227 (exit "$ac_status"); } &&
4228 { ac_try='test -s "conftest.$ac_objext"'
4229 { (eval echo "$as_me:4229: \"$ac_try\"") >&5
4232 echo "$as_me:4232: \$? = $ac_status" >&5
4233 (exit "$ac_status"); }; }; then
4234 cf_cv_gnu_dftsrc_219=yes
4236 echo "$as_me: failed program was:" >&5
4237 cat "conftest.$ac_ext" >&5
4238 cf_cv_gnu_dftsrc_219=no
4240 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4243 echo "$as_me:4243: result: $cf_cv_gnu_dftsrc_219" >&5
4244 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
4245 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
4247 cf_cv_gnu_dftsrc_219=maybe
4250 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
4252 echo "$as_me:4252: checking if we must define _GNU_SOURCE" >&5
4253 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
4254 if test "${cf_cv_gnu_source+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 cat >"conftest.$ac_ext" <<_ACEOF
4259 #line 4259 "configure"
4260 #include "confdefs.h"
4261 #include <sys/types.h>
4266 #ifndef _XOPEN_SOURCE
4267 #error expected _XOPEN_SOURCE to be defined
4273 rm -f "conftest.$ac_objext"
4274 if { (eval echo "$as_me:4274: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>&5
4277 echo "$as_me:4277: \$? = $ac_status" >&5
4278 (exit "$ac_status"); } &&
4279 { ac_try='test -s "conftest.$ac_objext"'
4280 { (eval echo "$as_me:4280: \"$ac_try\"") >&5
4283 echo "$as_me:4283: \$? = $ac_status" >&5
4284 (exit "$ac_status"); }; }; then
4287 echo "$as_me: failed program was:" >&5
4288 cat "conftest.$ac_ext" >&5
4294 cf_new_extra_cppflags=
4296 for cf_add_cflags in -D_GNU_SOURCE
4298 case "$cf_fix_cppflags" in
4300 case "$cf_add_cflags" in
4301 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4302 case "$cf_add_cflags" in
4304 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4306 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4307 && test -z "${cf_tst_cflags}" \
4308 && cf_fix_cppflags=yes
4310 if test "$cf_fix_cppflags" = yes ; then
4312 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4313 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4316 elif test "${cf_tst_cflags}" = "\"'" ; then
4318 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4319 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4329 case "$cf_add_cflags" in
4331 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4333 CPPFLAGS=`echo "$CPPFLAGS" | \
4334 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4335 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4340 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4341 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4348 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4349 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4356 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4357 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4359 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4361 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4362 && test -z "${cf_tst_cflags}" \
4363 && cf_fix_cppflags=no
4368 if test -n "$cf_new_cflags" ; then
4370 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4371 CFLAGS="${CFLAGS}$cf_new_cflags"
4375 if test -n "$cf_new_cppflags" ; then
4377 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4378 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4382 if test -n "$cf_new_extra_cppflags" ; then
4384 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4385 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4389 cat >"conftest.$ac_ext" <<_ACEOF
4390 #line 4390 "configure"
4391 #include "confdefs.h"
4392 #include <sys/types.h>
4397 #ifdef _XOPEN_SOURCE
4398 #error expected _XOPEN_SOURCE to be undefined
4404 rm -f "conftest.$ac_objext"
4405 if { (eval echo "$as_me:4405: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>&5
4408 echo "$as_me:4408: \$? = $ac_status" >&5
4409 (exit "$ac_status"); } &&
4410 { ac_try='test -s "conftest.$ac_objext"'
4411 { (eval echo "$as_me:4411: \"$ac_try\"") >&5
4414 echo "$as_me:4414: \$? = $ac_status" >&5
4415 (exit "$ac_status"); }; }; then
4418 echo "$as_me: failed program was:" >&5
4419 cat "conftest.$ac_ext" >&5
4420 cf_cv_gnu_source=yes
4422 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4426 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4429 echo "$as_me:4429: result: $cf_cv_gnu_source" >&5
4430 echo "${ECHO_T}$cf_cv_gnu_source" >&6
4432 if test "$cf_cv_gnu_source" = yes
4434 echo "$as_me:4434: checking if we should also define _DEFAULT_SOURCE" >&5
4435 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
4436 if test "${cf_cv_default_source+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4441 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
4443 cat >"conftest.$ac_ext" <<_ACEOF
4444 #line 4444 "configure"
4445 #include "confdefs.h"
4446 #include <sys/types.h>
4451 #ifdef _DEFAULT_SOURCE
4452 #error expected _DEFAULT_SOURCE to be undefined
4458 rm -f "conftest.$ac_objext"
4459 if { (eval echo "$as_me:4459: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>&5
4462 echo "$as_me:4462: \$? = $ac_status" >&5
4463 (exit "$ac_status"); } &&
4464 { ac_try='test -s "conftest.$ac_objext"'
4465 { (eval echo "$as_me:4465: \"$ac_try\"") >&5
4468 echo "$as_me:4468: \$? = $ac_status" >&5
4469 (exit "$ac_status"); }; }; then
4470 cf_cv_default_source=no
4472 echo "$as_me: failed program was:" >&5
4473 cat "conftest.$ac_ext" >&5
4474 cf_cv_default_source=yes
4476 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4479 echo "$as_me:4479: result: $cf_cv_default_source" >&5
4480 echo "${ECHO_T}$cf_cv_default_source" >&6
4481 if test "$cf_cv_default_source" = yes
4484 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4485 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4495 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
4498 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
4501 if test "$cf_cv_posix_visible" = no; then
4503 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4505 cf_save_CFLAGS="$CFLAGS"
4506 cf_save_CPPFLAGS="$CPPFLAGS"
4508 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4509 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4510 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4512 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4513 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4514 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4516 echo "$as_me:4516: checking if we should define _POSIX_C_SOURCE" >&5
4517 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4518 if test "${cf_cv_posix_c_source+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 echo "${as_me:-configure}:4522: testing if the symbol is already defined go no further ..." 1>&5
4524 cat >"conftest.$ac_ext" <<_ACEOF
4525 #line 4525 "configure"
4526 #include "confdefs.h"
4527 #include <sys/types.h>
4532 #ifndef _POSIX_C_SOURCE
4539 rm -f "conftest.$ac_objext"
4540 if { (eval echo "$as_me:4540: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>&5
4543 echo "$as_me:4543: \$? = $ac_status" >&5
4544 (exit "$ac_status"); } &&
4545 { ac_try='test -s "conftest.$ac_objext"'
4546 { (eval echo "$as_me:4546: \"$ac_try\"") >&5
4549 echo "$as_me:4549: \$? = $ac_status" >&5
4550 (exit "$ac_status"); }; }; then
4551 cf_cv_posix_c_source=no
4553 echo "$as_me: failed program was:" >&5
4554 cat "conftest.$ac_ext" >&5
4555 cf_want_posix_source=no
4556 case .$cf_POSIX_C_SOURCE in
4558 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4561 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4562 cf_want_posix_source=yes
4565 cf_want_posix_source=yes
4568 if test "$cf_want_posix_source" = yes ; then
4569 cat >"conftest.$ac_ext" <<_ACEOF
4570 #line 4570 "configure"
4571 #include "confdefs.h"
4572 #include <sys/types.h>
4577 #ifdef _POSIX_SOURCE
4584 rm -f "conftest.$ac_objext"
4585 if { (eval echo "$as_me:4585: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4588 echo "$as_me:4588: \$? = $ac_status" >&5
4589 (exit "$ac_status"); } &&
4590 { ac_try='test -s "conftest.$ac_objext"'
4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5
4594 echo "$as_me:4594: \$? = $ac_status" >&5
4595 (exit "$ac_status"); }; }; then
4598 echo "$as_me: failed program was:" >&5
4599 cat "conftest.$ac_ext" >&5
4600 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4602 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4605 echo "${as_me:-configure}:4605: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4607 CFLAGS="$cf_trim_CFLAGS"
4608 CPPFLAGS="$cf_trim_CPPFLAGS"
4610 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4611 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4613 echo "${as_me:-configure}:4613: testing if the second compile does not leave our definition intact error ..." 1>&5
4615 cat >"conftest.$ac_ext" <<_ACEOF
4616 #line 4616 "configure"
4617 #include "confdefs.h"
4618 #include <sys/types.h>
4623 #ifndef _POSIX_C_SOURCE
4630 rm -f "conftest.$ac_objext"
4631 if { (eval echo "$as_me:4631: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4634 echo "$as_me:4634: \$? = $ac_status" >&5
4635 (exit "$ac_status"); } &&
4636 { ac_try='test -s "conftest.$ac_objext"'
4637 { (eval echo "$as_me:4637: \"$ac_try\"") >&5
4640 echo "$as_me:4640: \$? = $ac_status" >&5
4641 (exit "$ac_status"); }; }; then
4644 echo "$as_me: failed program was:" >&5
4645 cat "conftest.$ac_ext" >&5
4646 cf_cv_posix_c_source=no
4648 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4649 CFLAGS="$cf_save_CFLAGS"
4650 CPPFLAGS="$cf_save_CPPFLAGS"
4653 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4656 echo "$as_me:4656: result: $cf_cv_posix_c_source" >&5
4657 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4659 if test "$cf_cv_posix_c_source" != no ; then
4660 CFLAGS="$cf_trim_CFLAGS"
4661 CPPFLAGS="$cf_trim_CPPFLAGS"
4666 cf_new_extra_cppflags=
4668 for cf_add_cflags in $cf_cv_posix_c_source
4670 case "$cf_fix_cppflags" in
4672 case "$cf_add_cflags" in
4673 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4674 case "$cf_add_cflags" in
4676 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4678 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4679 && test -z "${cf_tst_cflags}" \
4680 && cf_fix_cppflags=yes
4682 if test "$cf_fix_cppflags" = yes ; then
4684 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4685 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4688 elif test "${cf_tst_cflags}" = "\"'" ; then
4690 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4691 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4701 case "$cf_add_cflags" in
4703 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4705 CPPFLAGS=`echo "$CPPFLAGS" | \
4706 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4707 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4712 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4713 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4720 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4721 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4728 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4729 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4731 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4733 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4734 && test -z "${cf_tst_cflags}" \
4735 && cf_fix_cppflags=no
4740 if test -n "$cf_new_cflags" ; then
4742 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4743 CFLAGS="${CFLAGS}$cf_new_cflags"
4747 if test -n "$cf_new_cppflags" ; then
4749 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4750 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4754 if test -n "$cf_new_extra_cppflags" ; then
4756 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4757 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4763 fi # cf_cv_posix_visible
4767 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
4770 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
4771 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
4772 # Abusing the conformance level is a workaround.
4773 { echo "$as_me:4773: WARNING: this system does not provide usable locale support" >&5
4774 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
4775 cf_xopen_source="-D_BSD_SOURCE"
4779 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
4780 cf_xopen_source="-D_BSD_SOURCE"
4784 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
4787 cf_xopen_source="-D_OSF_SOURCE"
4790 cf_xopen_source="-D_QNX_SOURCE"
4793 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
4796 cf_xopen_source="-D__EXTENSIONS__"
4797 cf_cv_xopen_source=broken
4799 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
4805 echo "$as_me:4805: checking if we should define _XOPEN_SOURCE" >&5
4806 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4807 if test "${cf_cv_xopen_source+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 cat >"conftest.$ac_ext" <<_ACEOF
4812 #line 4812 "configure"
4813 #include "confdefs.h"
4817 #include <sys/types.h>
4823 #ifndef _XOPEN_SOURCE
4830 rm -f "conftest.$ac_objext"
4831 if { (eval echo "$as_me:4831: \"$ac_compile\"") >&5
4832 (eval $ac_compile) 2>&5
4834 echo "$as_me:4834: \$? = $ac_status" >&5
4835 (exit "$ac_status"); } &&
4836 { ac_try='test -s "conftest.$ac_objext"'
4837 { (eval echo "$as_me:4837: \"$ac_try\"") >&5
4840 echo "$as_me:4840: \$? = $ac_status" >&5
4841 (exit "$ac_status"); }; }; then
4842 cf_cv_xopen_source=no
4844 echo "$as_me: failed program was:" >&5
4845 cat "conftest.$ac_ext" >&5
4848 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4849 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4851 cat >"conftest.$ac_ext" <<_ACEOF
4852 #line 4852 "configure"
4853 #include "confdefs.h"
4857 #include <sys/types.h>
4863 #ifdef _XOPEN_SOURCE
4870 rm -f "conftest.$ac_objext"
4871 if { (eval echo "$as_me:4871: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>&5
4874 echo "$as_me:4874: \$? = $ac_status" >&5
4875 (exit "$ac_status"); } &&
4876 { ac_try='test -s "conftest.$ac_objext"'
4877 { (eval echo "$as_me:4877: \"$ac_try\"") >&5
4880 echo "$as_me:4880: \$? = $ac_status" >&5
4881 (exit "$ac_status"); }; }; then
4882 cf_cv_xopen_source=no
4884 echo "$as_me: failed program was:" >&5
4885 cat "conftest.$ac_ext" >&5
4886 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4888 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4892 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4895 echo "$as_me:4895: result: $cf_cv_xopen_source" >&5
4896 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4898 if test "$cf_cv_xopen_source" != no ; then
4900 CFLAGS=`echo "$CFLAGS" | \
4901 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4902 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4904 CPPFLAGS=`echo "$CPPFLAGS" | \
4905 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4906 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4908 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4910 for cf_add_cflags in $cf_temp_xopen_source
4912 case "x$cf_add_cflags" in
4915 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4918 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4919 test "$CFLAGS" != "$cf_old_cflag" || break
4921 CFLAGS="$cf_old_cflag"
4924 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4927 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4928 test "$CPPFLAGS" != "$cf_old_cflag" || break
4930 CPPFLAGS="$cf_old_cflag"
4939 cf_new_extra_cppflags=
4941 for cf_add_cflags in $cf_add_cflags
4943 case "$cf_fix_cppflags" in
4945 case "$cf_add_cflags" in
4946 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4947 case "$cf_add_cflags" in
4949 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4951 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4952 && test -z "${cf_tst_cflags}" \
4953 && cf_fix_cppflags=yes
4955 if test "$cf_fix_cppflags" = yes ; then
4957 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4958 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4961 elif test "${cf_tst_cflags}" = "\"'" ; then
4963 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4964 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4974 case "$cf_add_cflags" in
4976 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4978 CPPFLAGS=`echo "$CPPFLAGS" | \
4979 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4980 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4985 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4986 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4993 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4994 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5001 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5002 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5004 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5006 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5007 && test -z "${cf_tst_cflags}" \
5008 && cf_fix_cppflags=no
5013 if test -n "$cf_new_cflags" ; then
5015 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5016 CFLAGS="${CFLAGS}$cf_new_cflags"
5020 if test -n "$cf_new_cppflags" ; then
5022 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5023 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5027 if test -n "$cf_new_extra_cppflags" ; then
5029 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5030 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5038 if test "$cf_cv_posix_visible" = no; then
5040 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
5042 cf_save_CFLAGS="$CFLAGS"
5043 cf_save_CPPFLAGS="$CPPFLAGS"
5045 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
5046 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5047 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
5049 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
5050 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5051 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
5053 echo "$as_me:5053: checking if we should define _POSIX_C_SOURCE" >&5
5054 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
5055 if test "${cf_cv_posix_c_source+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 echo "${as_me:-configure}:5059: testing if the symbol is already defined go no further ..." 1>&5
5061 cat >"conftest.$ac_ext" <<_ACEOF
5062 #line 5062 "configure"
5063 #include "confdefs.h"
5064 #include <sys/types.h>
5069 #ifndef _POSIX_C_SOURCE
5076 rm -f "conftest.$ac_objext"
5077 if { (eval echo "$as_me:5077: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>&5
5080 echo "$as_me:5080: \$? = $ac_status" >&5
5081 (exit "$ac_status"); } &&
5082 { ac_try='test -s "conftest.$ac_objext"'
5083 { (eval echo "$as_me:5083: \"$ac_try\"") >&5
5086 echo "$as_me:5086: \$? = $ac_status" >&5
5087 (exit "$ac_status"); }; }; then
5088 cf_cv_posix_c_source=no
5090 echo "$as_me: failed program was:" >&5
5091 cat "conftest.$ac_ext" >&5
5092 cf_want_posix_source=no
5093 case .$cf_POSIX_C_SOURCE in
5095 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
5098 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
5099 cf_want_posix_source=yes
5102 cf_want_posix_source=yes
5105 if test "$cf_want_posix_source" = yes ; then
5106 cat >"conftest.$ac_ext" <<_ACEOF
5107 #line 5107 "configure"
5108 #include "confdefs.h"
5109 #include <sys/types.h>
5114 #ifdef _POSIX_SOURCE
5121 rm -f "conftest.$ac_objext"
5122 if { (eval echo "$as_me:5122: \"$ac_compile\"") >&5
5123 (eval $ac_compile) 2>&5
5125 echo "$as_me:5125: \$? = $ac_status" >&5
5126 (exit "$ac_status"); } &&
5127 { ac_try='test -s "conftest.$ac_objext"'
5128 { (eval echo "$as_me:5128: \"$ac_try\"") >&5
5131 echo "$as_me:5131: \$? = $ac_status" >&5
5132 (exit "$ac_status"); }; }; then
5135 echo "$as_me: failed program was:" >&5
5136 cat "conftest.$ac_ext" >&5
5137 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
5139 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5142 echo "${as_me:-configure}:5142: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
5144 CFLAGS="$cf_trim_CFLAGS"
5145 CPPFLAGS="$cf_trim_CPPFLAGS"
5147 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5148 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
5150 echo "${as_me:-configure}:5150: testing if the second compile does not leave our definition intact error ..." 1>&5
5152 cat >"conftest.$ac_ext" <<_ACEOF
5153 #line 5153 "configure"
5154 #include "confdefs.h"
5155 #include <sys/types.h>
5160 #ifndef _POSIX_C_SOURCE
5167 rm -f "conftest.$ac_objext"
5168 if { (eval echo "$as_me:5168: \"$ac_compile\"") >&5
5169 (eval $ac_compile) 2>&5
5171 echo "$as_me:5171: \$? = $ac_status" >&5
5172 (exit "$ac_status"); } &&
5173 { ac_try='test -s "conftest.$ac_objext"'
5174 { (eval echo "$as_me:5174: \"$ac_try\"") >&5
5177 echo "$as_me:5177: \$? = $ac_status" >&5
5178 (exit "$ac_status"); }; }; then
5181 echo "$as_me: failed program was:" >&5
5182 cat "conftest.$ac_ext" >&5
5183 cf_cv_posix_c_source=no
5185 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5186 CFLAGS="$cf_save_CFLAGS"
5187 CPPFLAGS="$cf_save_CPPFLAGS"
5190 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5193 echo "$as_me:5193: result: $cf_cv_posix_c_source" >&5
5194 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
5196 if test "$cf_cv_posix_c_source" != no ; then
5197 CFLAGS="$cf_trim_CFLAGS"
5198 CPPFLAGS="$cf_trim_CPPFLAGS"
5203 cf_new_extra_cppflags=
5205 for cf_add_cflags in $cf_cv_posix_c_source
5207 case "$cf_fix_cppflags" in
5209 case "$cf_add_cflags" in
5210 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5211 case "$cf_add_cflags" in
5213 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5215 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5216 && test -z "${cf_tst_cflags}" \
5217 && cf_fix_cppflags=yes
5219 if test "$cf_fix_cppflags" = yes ; then
5221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5225 elif test "${cf_tst_cflags}" = "\"'" ; then
5227 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5228 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5238 case "$cf_add_cflags" in
5240 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5242 CPPFLAGS=`echo "$CPPFLAGS" | \
5243 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5244 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5249 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5250 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5257 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5258 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5265 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5266 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5268 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5270 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5271 && test -z "${cf_tst_cflags}" \
5272 && cf_fix_cppflags=no
5277 if test -n "$cf_new_cflags" ; then
5279 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5280 CFLAGS="${CFLAGS}$cf_new_cflags"
5284 if test -n "$cf_new_cppflags" ; then
5286 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5287 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5291 if test -n "$cf_new_extra_cppflags" ; then
5293 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5294 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5300 fi # cf_cv_posix_visible
5305 if test -n "$cf_xopen_source" ; then
5307 for cf_add_cflags in $cf_xopen_source
5309 case "x$cf_add_cflags" in
5312 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5315 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
5316 test "$CFLAGS" != "$cf_old_cflag" || break
5317 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
5319 echo "${as_me:-configure}:5319: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
5321 CFLAGS="$cf_old_cflag"
5324 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5327 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
5328 test "$CPPFLAGS" != "$cf_old_cflag" || break
5329 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
5331 echo "${as_me:-configure}:5331: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
5333 CPPFLAGS="$cf_old_cflag"
5342 cf_new_extra_cppflags=
5344 for cf_add_cflags in $cf_add_cflags
5346 case "$cf_fix_cppflags" in
5348 case "$cf_add_cflags" in
5349 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5350 case "$cf_add_cflags" in
5352 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5354 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5355 && test -z "${cf_tst_cflags}" \
5356 && cf_fix_cppflags=yes
5358 if test "$cf_fix_cppflags" = yes ; then
5360 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5361 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5364 elif test "${cf_tst_cflags}" = "\"'" ; then
5366 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5367 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5377 case "$cf_add_cflags" in
5379 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5381 CPPFLAGS=`echo "$CPPFLAGS" | \
5382 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5383 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5388 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5389 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5396 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5397 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5404 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5405 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5407 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5409 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5410 && test -z "${cf_tst_cflags}" \
5411 && cf_fix_cppflags=no
5416 if test -n "$cf_new_cflags" ; then
5417 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
5419 echo "${as_me:-configure}:5419: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
5421 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5422 CFLAGS="${CFLAGS}$cf_new_cflags"
5426 if test -n "$cf_new_cppflags" ; then
5427 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
5429 echo "${as_me:-configure}:5429: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
5431 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5432 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5436 if test -n "$cf_new_extra_cppflags" ; then
5437 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
5439 echo "${as_me:-configure}:5439: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
5441 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5442 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5450 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
5451 echo "$as_me:5451: checking if _XOPEN_SOURCE really is set" >&5
5452 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
5453 cat >"conftest.$ac_ext" <<_ACEOF
5454 #line 5454 "configure"
5455 #include "confdefs.h"
5461 #ifndef _XOPEN_SOURCE
5468 rm -f "conftest.$ac_objext"
5469 if { (eval echo "$as_me:5469: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>&5
5472 echo "$as_me:5472: \$? = $ac_status" >&5
5473 (exit "$ac_status"); } &&
5474 { ac_try='test -s "conftest.$ac_objext"'
5475 { (eval echo "$as_me:5475: \"$ac_try\"") >&5
5478 echo "$as_me:5478: \$? = $ac_status" >&5
5479 (exit "$ac_status"); }; }; then
5480 cf_XOPEN_SOURCE_set=yes
5482 echo "$as_me: failed program was:" >&5
5483 cat "conftest.$ac_ext" >&5
5484 cf_XOPEN_SOURCE_set=no
5486 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5487 echo "$as_me:5487: result: $cf_XOPEN_SOURCE_set" >&5
5488 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
5489 if test "$cf_XOPEN_SOURCE_set" = yes
5491 cat >"conftest.$ac_ext" <<_ACEOF
5492 #line 5492 "configure"
5493 #include "confdefs.h"
5499 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
5506 rm -f "conftest.$ac_objext"
5507 if { (eval echo "$as_me:5507: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>&5
5510 echo "$as_me:5510: \$? = $ac_status" >&5
5511 (exit "$ac_status"); } &&
5512 { ac_try='test -s "conftest.$ac_objext"'
5513 { (eval echo "$as_me:5513: \"$ac_try\"") >&5
5516 echo "$as_me:5516: \$? = $ac_status" >&5
5517 (exit "$ac_status"); }; }; then
5518 cf_XOPEN_SOURCE_set_ok=yes
5520 echo "$as_me: failed program was:" >&5
5521 cat "conftest.$ac_ext" >&5
5522 cf_XOPEN_SOURCE_set_ok=no
5524 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5525 if test "$cf_XOPEN_SOURCE_set_ok" = no
5527 { echo "$as_me:5527: WARNING: _XOPEN_SOURCE is lower than requested" >&5
5528 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
5532 echo "$as_me:5532: checking if we should define _XOPEN_SOURCE" >&5
5533 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
5534 if test "${cf_cv_xopen_source+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cat >"conftest.$ac_ext" <<_ACEOF
5539 #line 5539 "configure"
5540 #include "confdefs.h"
5544 #include <sys/types.h>
5550 #ifndef _XOPEN_SOURCE
5557 rm -f "conftest.$ac_objext"
5558 if { (eval echo "$as_me:5558: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>&5
5561 echo "$as_me:5561: \$? = $ac_status" >&5
5562 (exit "$ac_status"); } &&
5563 { ac_try='test -s "conftest.$ac_objext"'
5564 { (eval echo "$as_me:5564: \"$ac_try\"") >&5
5567 echo "$as_me:5567: \$? = $ac_status" >&5
5568 (exit "$ac_status"); }; }; then
5569 cf_cv_xopen_source=no
5571 echo "$as_me: failed program was:" >&5
5572 cat "conftest.$ac_ext" >&5
5575 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5576 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
5578 cat >"conftest.$ac_ext" <<_ACEOF
5579 #line 5579 "configure"
5580 #include "confdefs.h"
5584 #include <sys/types.h>
5590 #ifdef _XOPEN_SOURCE
5597 rm -f "conftest.$ac_objext"
5598 if { (eval echo "$as_me:5598: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>&5
5601 echo "$as_me:5601: \$? = $ac_status" >&5
5602 (exit "$ac_status"); } &&
5603 { ac_try='test -s "conftest.$ac_objext"'
5604 { (eval echo "$as_me:5604: \"$ac_try\"") >&5
5607 echo "$as_me:5607: \$? = $ac_status" >&5
5608 (exit "$ac_status"); }; }; then
5609 cf_cv_xopen_source=no
5611 echo "$as_me: failed program was:" >&5
5612 cat "conftest.$ac_ext" >&5
5613 cf_cv_xopen_source=$cf_XOPEN_SOURCE
5615 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5619 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5622 echo "$as_me:5622: result: $cf_cv_xopen_source" >&5
5623 echo "${ECHO_T}$cf_cv_xopen_source" >&6
5625 if test "$cf_cv_xopen_source" != no ; then
5627 CFLAGS=`echo "$CFLAGS" | \
5628 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5629 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5631 CPPFLAGS=`echo "$CPPFLAGS" | \
5632 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5633 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5635 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
5637 for cf_add_cflags in $cf_temp_xopen_source
5639 case "x$cf_add_cflags" in
5642 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5645 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
5646 test "$CFLAGS" != "$cf_old_cflag" || break
5648 CFLAGS="$cf_old_cflag"
5651 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5654 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
5655 test "$CPPFLAGS" != "$cf_old_cflag" || break
5657 CPPFLAGS="$cf_old_cflag"
5666 cf_new_extra_cppflags=
5668 for cf_add_cflags in $cf_add_cflags
5670 case "$cf_fix_cppflags" in
5672 case "$cf_add_cflags" in
5673 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5674 case "$cf_add_cflags" in
5676 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5678 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5679 && test -z "${cf_tst_cflags}" \
5680 && cf_fix_cppflags=yes
5682 if test "$cf_fix_cppflags" = yes ; then
5684 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5685 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5688 elif test "${cf_tst_cflags}" = "\"'" ; then
5690 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5691 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5701 case "$cf_add_cflags" in
5703 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5705 CPPFLAGS=`echo "$CPPFLAGS" | \
5706 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5707 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5712 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5713 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5720 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5721 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5728 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5729 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5731 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5733 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5734 && test -z "${cf_tst_cflags}" \
5735 && cf_fix_cppflags=no
5740 if test -n "$cf_new_cflags" ; then
5742 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5743 CFLAGS="${CFLAGS}$cf_new_cflags"
5747 if test -n "$cf_new_cppflags" ; then
5749 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5750 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5754 if test -n "$cf_new_extra_cppflags" ; then
5756 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5757 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5767 fi # cf_cv_posix_visible
5769 echo "$as_me:5769: checking for signal global datatype" >&5
5770 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
5771 if test "${cf_cv_sig_atomic_t+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 "volatile sig_atomic_t" \
5780 cat >"conftest.$ac_ext" <<_ACEOF
5781 #line 5781 "configure"
5782 #include "confdefs.h"
5784 #include <sys/types.h>
5790 static void handler(int sig)
5798 signal(SIGINT, handler);
5804 rm -f "conftest.$ac_objext"
5805 if { (eval echo "$as_me:5805: \"$ac_compile\"") >&5
5806 (eval $ac_compile) 2>&5
5808 echo "$as_me:5808: \$? = $ac_status" >&5
5809 (exit "$ac_status"); } &&
5810 { ac_try='test -s "conftest.$ac_objext"'
5811 { (eval echo "$as_me:5811: \"$ac_try\"") >&5
5814 echo "$as_me:5814: \$? = $ac_status" >&5
5815 (exit "$ac_status"); }; }; then
5816 cf_cv_sig_atomic_t=$cf_type
5818 echo "$as_me: failed program was:" >&5
5819 cat "conftest.$ac_ext" >&5
5820 cf_cv_sig_atomic_t=no
5822 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5823 test "$cf_cv_sig_atomic_t" != no && break
5828 echo "$as_me:5828: result: $cf_cv_sig_atomic_t" >&5
5829 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
5830 test "$cf_cv_sig_atomic_t" != no &&
5831 cat >>confdefs.h <<EOF
5832 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
5835 # Work around breakage on OS X
5837 echo "$as_me:5837: checking if SIGWINCH is defined" >&5
5838 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
5839 if test "${cf_cv_define_sigwinch+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 cat >"conftest.$ac_ext" <<_ACEOF
5844 #line 5844 "configure"
5845 #include "confdefs.h"
5847 #include <sys/types.h>
5848 #include <sys/signal.h>
5853 int x = SIGWINCH; (void)x
5858 rm -f "conftest.$ac_objext"
5859 if { (eval echo "$as_me:5859: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>&5
5862 echo "$as_me:5862: \$? = $ac_status" >&5
5863 (exit "$ac_status"); } &&
5864 { ac_try='test -s "conftest.$ac_objext"'
5865 { (eval echo "$as_me:5865: \"$ac_try\"") >&5
5868 echo "$as_me:5868: \$? = $ac_status" >&5
5869 (exit "$ac_status"); }; }; then
5870 cf_cv_define_sigwinch=yes
5872 echo "$as_me: failed program was:" >&5
5873 cat "conftest.$ac_ext" >&5
5874 cat >"conftest.$ac_ext" <<_ACEOF
5875 #line 5875 "configure"
5876 #include "confdefs.h"
5878 #undef _XOPEN_SOURCE
5879 #undef _POSIX_SOURCE
5880 #undef _POSIX_C_SOURCE
5881 #include <sys/types.h>
5882 #include <sys/signal.h>
5887 int x = SIGWINCH; (void)x
5892 rm -f "conftest.$ac_objext"
5893 if { (eval echo "$as_me:5893: \"$ac_compile\"") >&5
5894 (eval $ac_compile) 2>&5
5896 echo "$as_me:5896: \$? = $ac_status" >&5
5897 (exit "$ac_status"); } &&
5898 { ac_try='test -s "conftest.$ac_objext"'
5899 { (eval echo "$as_me:5899: \"$ac_try\"") >&5
5902 echo "$as_me:5902: \$? = $ac_status" >&5
5903 (exit "$ac_status"); }; }; then
5904 cf_cv_define_sigwinch=maybe
5906 echo "$as_me: failed program was:" >&5
5907 cat "conftest.$ac_ext" >&5
5908 cf_cv_define_sigwinch=no
5910 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5913 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5916 echo "$as_me:5916: result: $cf_cv_define_sigwinch" >&5
5917 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
5919 if test "$cf_cv_define_sigwinch" = maybe ; then
5920 echo "$as_me:5920: checking for actual SIGWINCH definition" >&5
5921 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
5922 if test "${cf_cv_fixup_sigwinch+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 cf_cv_fixup_sigwinch=unknown
5928 while test "$cf_sigwinch" != 1
5930 cat >"conftest.$ac_ext" <<_ACEOF
5931 #line 5931 "configure"
5932 #include "confdefs.h"
5934 #undef _XOPEN_SOURCE
5935 #undef _POSIX_SOURCE
5936 #undef _POSIX_C_SOURCE
5937 #include <sys/types.h>
5938 #include <sys/signal.h>
5944 #if SIGWINCH != $cf_sigwinch
5947 int x = SIGWINCH; (void)x
5952 rm -f "conftest.$ac_objext"
5953 if { (eval echo "$as_me:5953: \"$ac_compile\"") >&5
5954 (eval $ac_compile) 2>&5
5956 echo "$as_me:5956: \$? = $ac_status" >&5
5957 (exit "$ac_status"); } &&
5958 { ac_try='test -s "conftest.$ac_objext"'
5959 { (eval echo "$as_me:5959: \"$ac_try\"") >&5
5962 echo "$as_me:5962: \$? = $ac_status" >&5
5963 (exit "$ac_status"); }; }; then
5964 cf_cv_fixup_sigwinch=$cf_sigwinch
5967 echo "$as_me: failed program was:" >&5
5968 cat "conftest.$ac_ext" >&5
5970 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5972 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
5976 echo "$as_me:5976: result: $cf_cv_fixup_sigwinch" >&5
5977 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
5979 if test "$cf_cv_fixup_sigwinch" != unknown ; then
5980 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
5984 # Checks for CODESET support.
5986 echo "$as_me:5986: checking for nl_langinfo and CODESET" >&5
5987 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5988 if test "${am_cv_langinfo_codeset+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 cat >"conftest.$ac_ext" <<_ACEOF
5992 #line 5992 "configure"
5993 #include "confdefs.h"
5994 #include <langinfo.h>
5998 char* cs = nl_langinfo(CODESET); (void)cs
6003 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6004 if { (eval echo "$as_me:6004: \"$ac_link\"") >&5
6005 (eval $ac_link) 2>&5
6007 echo "$as_me:6007: \$? = $ac_status" >&5
6008 (exit "$ac_status"); } &&
6009 { ac_try='test -s "conftest$ac_exeext"'
6010 { (eval echo "$as_me:6010: \"$ac_try\"") >&5
6013 echo "$as_me:6013: \$? = $ac_status" >&5
6014 (exit "$ac_status"); }; }; then
6015 am_cv_langinfo_codeset=yes
6017 echo "$as_me: failed program was:" >&5
6018 cat "conftest.$ac_ext" >&5
6019 am_cv_langinfo_codeset=no
6021 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6024 echo "$as_me:6024: result: $am_cv_langinfo_codeset" >&5
6025 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6026 if test "$am_cv_langinfo_codeset" = yes; then
6028 cat >>confdefs.h <<\EOF
6029 #define HAVE_LANGINFO_CODESET 1
6034 echo "$as_me:6034: checking if you want to use pkg-config" >&5
6035 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
6037 # Check whether --with-pkg-config or --without-pkg-config was given.
6038 if test "${with_pkg_config+set}" = set; then
6039 withval="$with_pkg_config"
6040 cf_pkg_config=$withval
6044 echo "$as_me:6044: result: $cf_pkg_config" >&5
6045 echo "${ECHO_T}$cf_pkg_config" >&6
6047 case "$cf_pkg_config" in
6053 if test -n "$ac_tool_prefix"; then
6054 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6056 echo "$as_me:6056: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6058 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6066 ac_save_IFS=$IFS; IFS=$ac_path_separator
6068 for ac_dir in $ac_dummy; do
6070 test -z "$ac_dir" && ac_dir=.
6071 if $as_executable_p "$ac_dir/$ac_word"; then
6072 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6073 echo "$as_me:6073: found $ac_dir/$ac_word" >&5
6081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6083 if test -n "$PKG_CONFIG"; then
6084 echo "$as_me:6084: result: $PKG_CONFIG" >&5
6085 echo "${ECHO_T}$PKG_CONFIG" >&6
6087 echo "$as_me:6087: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6092 if test -z "$ac_cv_path_PKG_CONFIG"; then
6093 ac_pt_PKG_CONFIG=$PKG_CONFIG
6094 # Extract the first word of "pkg-config", so it can be a program name with args.
6095 set dummy pkg-config; ac_word=$2
6096 echo "$as_me:6096: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6098 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 case $ac_pt_PKG_CONFIG in
6103 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6106 ac_save_IFS=$IFS; IFS=$ac_path_separator
6108 for ac_dir in $ac_dummy; do
6110 test -z "$ac_dir" && ac_dir=.
6111 if $as_executable_p "$ac_dir/$ac_word"; then
6112 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
6113 echo "$as_me:6113: found $ac_dir/$ac_word" >&5
6118 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
6122 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6124 if test -n "$ac_pt_PKG_CONFIG"; then
6125 echo "$as_me:6125: result: $ac_pt_PKG_CONFIG" >&5
6126 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
6128 echo "$as_me:6128: result: no" >&5
6129 echo "${ECHO_T}no" >&6
6132 PKG_CONFIG=$ac_pt_PKG_CONFIG
6134 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6143 test -z "$PKG_CONFIG" && PKG_CONFIG=none
6144 if test "$PKG_CONFIG" != none ; then
6146 if test "x$prefix" != xNONE; then
6147 cf_path_syntax="$prefix"
6149 cf_path_syntax="$ac_default_prefix"
6152 case ".$PKG_CONFIG" in
6157 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6159 (.\$\{*prefix\}*|.\$\{*dir\}*)
6160 eval PKG_CONFIG="$PKG_CONFIG"
6161 case ".$PKG_CONFIG" in
6163 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
6168 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
6171 { { echo "$as_me:6171: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
6172 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
6173 { (exit 1); exit 1; }; }
6177 elif test "x$cf_pkg_config" != xno ; then
6178 { echo "$as_me:6178: WARNING: pkg-config is not installed" >&5
6179 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
6182 echo "$as_me:6182: checking if you want to see long compiling messages" >&5
6183 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
6185 # Check whether --enable-echo or --disable-echo was given.
6186 if test "${enable_echo+set}" = set; then
6187 enableval="$enable_echo"
6188 test "$enableval" != no && enableval=yes
6189 if test "$enableval" != "yes" ; then
6192 ECHO_LD='@echo linking $@;'
6193 RULE_CC='@echo compiling $<'
6194 SHOW_CC='@echo compiling $@'
6216 echo "$as_me:6216: result: $enableval" >&5
6217 echo "${ECHO_T}$enableval" >&6
6219 echo "$as_me:6219: checking for ncurses wrap-prefix" >&5
6220 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
6222 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
6223 if test "${with_ncurses_wrap_prefix+set}" = set; then
6224 withval="$with_ncurses_wrap_prefix"
6225 NCURSES_WRAP_PREFIX=$withval
6227 NCURSES_WRAP_PREFIX=_nc_
6229 echo "$as_me:6229: result: $NCURSES_WRAP_PREFIX" >&5
6230 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
6232 echo "$as_me:6232: checking if you want to check for wide-character functions" >&5
6233 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
6235 # Check whether --enable-widec or --disable-widec was given.
6236 if test "${enable_widec+set}" = set; then
6237 enableval="$enable_widec"
6238 test "$enableval" != no && enableval=yes
6239 if test "$enableval" != "yes" ; then
6249 echo "$as_me:6249: result: $cf_enable_widec" >&5
6250 echo "${ECHO_T}$cf_enable_widec" >&6
6252 echo "$as_me:6252: checking for specific curses-directory" >&5
6253 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
6255 # Check whether --with-curses-dir or --without-curses-dir was given.
6256 if test "${with_curses_dir+set}" = set; then
6257 withval="$with_curses_dir"
6258 cf_cv_curses_dir=$withval
6262 echo "$as_me:6262: result: $cf_cv_curses_dir" >&5
6263 echo "${ECHO_T}$cf_cv_curses_dir" >&6
6265 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
6268 if test "x$prefix" != xNONE; then
6269 cf_path_syntax="$prefix"
6271 cf_path_syntax="$ac_default_prefix"
6279 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6281 (.\$\{*prefix\}*|.\$\{*dir\}*)
6282 eval withval="$withval"
6285 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
6290 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
6293 { { echo "$as_me:6293: error: expected a pathname, not \"$withval\"" >&5
6294 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6295 { (exit 1); exit 1; }; }
6299 if test -d "$cf_cv_curses_dir"
6302 if test -n "$cf_cv_curses_dir/include" ; then
6303 for cf_add_incdir in $cf_cv_curses_dir/include
6305 while test "$cf_add_incdir" != /usr/include
6307 if test -d "$cf_add_incdir"
6310 if test -n "$CFLAGS$CPPFLAGS" ; then
6311 # a loop is needed to ensure we can add subdirs of existing dirs
6312 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6313 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6314 cf_have_incdir=yes; break
6319 if test "$cf_have_incdir" = no ; then
6320 if test "$cf_add_incdir" = /usr/local/include ; then
6321 if test "$GCC" = yes
6323 cf_save_CPPFLAGS=$CPPFLAGS
6325 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6326 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
6328 cat >"conftest.$ac_ext" <<_ACEOF
6329 #line 6329 "configure"
6330 #include "confdefs.h"
6340 rm -f "conftest.$ac_objext"
6341 if { (eval echo "$as_me:6341: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>&5
6344 echo "$as_me:6344: \$? = $ac_status" >&5
6345 (exit "$ac_status"); } &&
6346 { ac_try='test -s "conftest.$ac_objext"'
6347 { (eval echo "$as_me:6347: \"$ac_try\"") >&5
6350 echo "$as_me:6350: \$? = $ac_status" >&5
6351 (exit "$ac_status"); }; }; then
6354 echo "$as_me: failed program was:" >&5
6355 cat "conftest.$ac_ext" >&5
6358 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6359 CPPFLAGS=$cf_save_CPPFLAGS
6364 if test "$cf_have_incdir" = no ; then
6365 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6367 echo "${as_me:-configure}:6367: testing adding $cf_add_incdir to include-path ..." 1>&5
6369 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6371 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
6372 test "$cf_top_incdir" = "$cf_add_incdir" && break
6373 cf_add_incdir="$cf_top_incdir"
6384 if test -n "$cf_cv_curses_dir/lib" ; then
6385 for cf_add_libdir in $cf_cv_curses_dir/lib
6387 if test "$cf_add_libdir" = /usr/lib ; then
6389 elif test -d "$cf_add_libdir"
6392 if test -n "$LDFLAGS$LIBS" ; then
6393 # a loop is needed to ensure we can add subdirs of existing dirs
6394 for cf_test_libdir in $LDFLAGS $LIBS ; do
6395 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6396 cf_have_libdir=yes; break
6400 if test "$cf_have_libdir" = no ; then
6401 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6403 echo "${as_me:-configure}:6403: testing adding $cf_add_libdir to library-path ..." 1>&5
6405 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6416 echo "$as_me:6416: checking for specified curses library type" >&5
6417 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
6419 # Check whether --with-screen or --without-screen was given.
6420 if test "${with_screen+set}" = set; then
6421 withval="$with_screen"
6422 cf_cv_screen=$withval
6425 # Check whether --with-ncursesw or --without-ncursesw was given.
6426 if test "${with_ncursesw+set}" = set; then
6427 withval="$with_ncursesw"
6428 cf_cv_screen=ncursesw
6431 # Check whether --with-ncurses or --without-ncurses was given.
6432 if test "${with_ncurses+set}" = set; then
6433 withval="$with_ncurses"
6434 cf_cv_screen=ncurses
6437 # Check whether --with-pdcurses or --without-pdcurses was given.
6438 if test "${with_pdcurses+set}" = set; then
6439 withval="$with_pdcurses"
6440 cf_cv_screen=pdcurses
6443 # Check whether --with-curses-colr or --without-curses-colr was given.
6444 if test "${with_curses_colr+set}" = set; then
6445 withval="$with_curses_colr"
6446 cf_cv_screen=curses_colr
6449 # Check whether --with-curses-5lib or --without-curses-5lib was given.
6450 if test "${with_curses_5lib+set}" = set; then
6451 withval="$with_curses_5lib"
6452 cf_cv_screen=curses_5lib
6460 echo "$as_me:6460: result: $cf_cv_screen" >&5
6461 echo "${ECHO_T}$cf_cv_screen" >&6
6463 case $cf_cv_screen in
6466 echo "$as_me:6466: checking for extra include directories" >&5
6467 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
6468 if test "${cf_cv_curses_incdir+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 cf_cv_curses_incdir=no
6475 if test "x$cf_cv_screen" = "xcurses_colr"
6477 test -d /usr/include/curses_colr && \
6478 cf_cv_curses_incdir="-I/usr/include/curses_colr"
6482 if test "x$cf_cv_screen" = "xcurses_5lib"
6484 test -d /usr/5lib && \
6485 test -d /usr/5include && \
6486 cf_cv_curses_incdir="-I/usr/5include"
6492 echo "$as_me:6492: result: $cf_cv_curses_incdir" >&5
6493 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
6494 if test "$cf_cv_curses_incdir" != no
6497 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6498 CPPFLAGS="${CPPFLAGS}$cf_cv_curses_incdir"
6502 echo "$as_me:6502: checking if we have identified curses headers" >&5
6503 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6504 if test "${cf_cv_ncurses_header+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 cf_cv_ncurses_header=none
6511 curses.h ncurses/ncurses.h ncurses/curses.h
6513 cat >"conftest.$ac_ext" <<_ACEOF
6514 #line 6514 "configure"
6515 #include "confdefs.h"
6516 #include <${cf_header}>
6520 initscr(); tgoto("?", 0,0)
6525 rm -f "conftest.$ac_objext"
6526 if { (eval echo "$as_me:6526: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>&5
6529 echo "$as_me:6529: \$? = $ac_status" >&5
6530 (exit "$ac_status"); } &&
6531 { ac_try='test -s "conftest.$ac_objext"'
6532 { (eval echo "$as_me:6532: \"$ac_try\"") >&5
6535 echo "$as_me:6535: \$? = $ac_status" >&5
6536 (exit "$ac_status"); }; }; then
6537 cf_cv_ncurses_header=$cf_header; break
6539 echo "$as_me: failed program was:" >&5
6540 cat "conftest.$ac_ext" >&5
6542 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6546 echo "$as_me:6546: result: $cf_cv_ncurses_header" >&5
6547 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6549 if test "$cf_cv_ncurses_header" = none ; then
6550 { { echo "$as_me:6550: error: No curses header-files found" >&5
6551 echo "$as_me: error: No curses header-files found" >&2;}
6552 { (exit 1); exit 1; }; }
6555 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6557 for ac_header in $cf_cv_ncurses_header
6559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560 echo "$as_me:6560: checking for $ac_header" >&5
6561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 cat >"conftest.$ac_ext" <<_ACEOF
6566 #line 6566 "configure"
6567 #include "confdefs.h"
6568 #include <$ac_header>
6570 if { (eval echo "$as_me:6570: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6571 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6573 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6575 cat conftest.err >&5
6576 echo "$as_me:6576: \$? = $ac_status" >&5
6577 (exit "$ac_status"); } >/dev/null; then
6578 if test -s conftest.err; then
6579 ac_cpp_err=$ac_c_preproc_warn_flag
6586 if test -z "$ac_cpp_err"; then
6587 eval "$as_ac_Header=yes"
6589 echo "$as_me: failed program was:" >&5
6590 cat "conftest.$ac_ext" >&5
6591 eval "$as_ac_Header=no"
6593 rm -f conftest.err "conftest.$ac_ext"
6595 echo "$as_me:6595: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6597 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6598 cat >>confdefs.h <<EOF
6599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6605 echo "$as_me:6605: checking for terminfo header" >&5
6606 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6607 if test "${cf_cv_term_header+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 case "${cf_cv_ncurses_header}" in
6612 (*/ncurses.h|*/ncursesw.h)
6613 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6616 cf_term_header=term.h
6620 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6622 cat >"conftest.$ac_ext" <<_ACEOF
6623 #line 6623 "configure"
6624 #include "confdefs.h"
6626 #include <${cf_cv_ncurses_header:-curses.h}>
6632 int x = auto_left_margin; (void)x
6637 rm -f "conftest.$ac_objext"
6638 if { (eval echo "$as_me:6638: \"$ac_compile\"") >&5
6639 (eval $ac_compile) 2>&5
6641 echo "$as_me:6641: \$? = $ac_status" >&5
6642 (exit "$ac_status"); } &&
6643 { ac_try='test -s "conftest.$ac_objext"'
6644 { (eval echo "$as_me:6644: \"$ac_try\"") >&5
6647 echo "$as_me:6647: \$? = $ac_status" >&5
6648 (exit "$ac_status"); }; }; then
6650 cf_cv_term_header="$cf_test"
6652 echo "$as_me: failed program was:" >&5
6653 cat "conftest.$ac_ext" >&5
6655 cf_cv_term_header=unknown
6658 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6659 test "$cf_cv_term_header" != unknown && break
6663 echo "$as_me:6663: result: $cf_cv_term_header" >&5
6664 echo "${ECHO_T}$cf_cv_term_header" >&6
6666 # Set definitions to allow ifdef'ing to accommodate subdirectories
6668 case "$cf_cv_term_header" in
6671 cat >>confdefs.h <<\EOF
6672 #define HAVE_TERM_H 1
6678 case "$cf_cv_term_header" in
6681 cat >>confdefs.h <<\EOF
6682 #define HAVE_NCURSES_TERM_H 1
6688 cat >>confdefs.h <<\EOF
6689 #define HAVE_NCURSESW_TERM_H 1
6695 echo "$as_me:6695: checking for ncurses version" >&5
6696 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6697 if test "${cf_cv_ncurses_version+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 cf_cv_ncurses_version=no
6703 rm -f "$cf_tempfile"
6704 if test "$cross_compiling" = yes; then
6706 # This will not work if the preprocessor splits the line after the
6707 # Autoconf token. The 'unproto' program does that.
6708 cat > "conftest.$ac_ext" <<EOF
6709 #include <${cf_cv_ncurses_header:-curses.h}>
6711 #ifdef NCURSES_VERSION
6712 Autoconf NCURSES_VERSION
6720 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6721 { (eval echo "$as_me:6721: \"$cf_try\"") >&5
6724 echo "$as_me:6724: \$? = $ac_status" >&5
6725 (exit "$ac_status"); }
6726 if test -f conftest.out ; then
6727 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
6728 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6733 cat >"conftest.$ac_ext" <<_ACEOF
6734 #line 6734 "configure"
6735 #include "confdefs.h"
6737 #include <${cf_cv_ncurses_header:-curses.h}>
6741 FILE *fp = fopen("$cf_tempfile", "w");
6742 #ifdef NCURSES_VERSION
6743 # ifdef NCURSES_VERSION_PATCH
6744 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6746 fprintf(fp, "%s\\n", NCURSES_VERSION);
6750 fprintf(fp, "old\\n");
6755 ${cf_cv_main_return:-return}(0);
6758 rm -f "conftest$ac_exeext"
6759 if { (eval echo "$as_me:6759: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>&5
6762 echo "$as_me:6762: \$? = $ac_status" >&5
6763 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6764 { (eval echo "$as_me:6764: \"$ac_try\"") >&5
6767 echo "$as_me:6767: \$? = $ac_status" >&5
6768 (exit "$ac_status"); }; }; then
6770 cf_cv_ncurses_version=`cat $cf_tempfile`
6772 echo "$as_me: program exited with status $ac_status" >&5
6773 echo "$as_me: failed program was:" >&5
6774 cat "conftest.$ac_ext" >&5
6776 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6778 rm -f "$cf_tempfile"
6781 echo "$as_me:6781: result: $cf_cv_ncurses_version" >&5
6782 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6783 test "$cf_cv_ncurses_version" = no ||
6784 cat >>confdefs.h <<\EOF
6788 echo "$as_me:6788: checking if we have identified curses libraries" >&5
6789 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
6790 cat >"conftest.$ac_ext" <<_ACEOF
6791 #line 6791 "configure"
6792 #include "confdefs.h"
6793 #include <${cf_cv_ncurses_header:-curses.h}>
6797 initscr(); tgoto("?", 0,0)
6802 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6803 if { (eval echo "$as_me:6803: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>&5
6806 echo "$as_me:6806: \$? = $ac_status" >&5
6807 (exit "$ac_status"); } &&
6808 { ac_try='test -s "conftest$ac_exeext"'
6809 { (eval echo "$as_me:6809: \"$ac_try\"") >&5
6812 echo "$as_me:6812: \$? = $ac_status" >&5
6813 (exit "$ac_status"); }; }; then
6816 echo "$as_me: failed program was:" >&5
6817 cat "conftest.$ac_ext" >&5
6820 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6821 echo "$as_me:6821: result: $cf_result" >&5
6822 echo "${ECHO_T}$cf_result" >&6
6824 if test "$cf_result" = no ; then
6827 echo "$as_me:6827: checking for tgoto in -lmytinfo" >&5
6828 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6829 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 ac_check_lib_save_LIBS=$LIBS
6833 LIBS="-lmytinfo $LIBS"
6834 cat >"conftest.$ac_ext" <<_ACEOF
6835 #line 6835 "configure"
6836 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6842 /* We use char because int might match the return type of a gcc2
6843 builtin and then its argument prototype would still apply. */
6853 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6854 if { (eval echo "$as_me:6854: \"$ac_link\"") >&5
6855 (eval $ac_link) 2>&5
6857 echo "$as_me:6857: \$? = $ac_status" >&5
6858 (exit "$ac_status"); } &&
6859 { ac_try='test -s "conftest$ac_exeext"'
6860 { (eval echo "$as_me:6860: \"$ac_try\"") >&5
6863 echo "$as_me:6863: \$? = $ac_status" >&5
6864 (exit "$ac_status"); }; }; then
6865 ac_cv_lib_mytinfo_tgoto=yes
6867 echo "$as_me: failed program was:" >&5
6868 cat "conftest.$ac_ext" >&5
6869 ac_cv_lib_mytinfo_tgoto=no
6871 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6872 LIBS=$ac_check_lib_save_LIBS
6874 echo "$as_me:6874: result: $ac_cv_lib_mytinfo_tgoto" >&5
6875 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6876 if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
6881 for cf_add_1lib in -lmytinfo; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6883 for cf_add_1lib in $cf_add_0lib; do
6884 for cf_add_2lib in $cf_add_libs; do
6885 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6890 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6898 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
6899 # next (1998), and xcurses "newer" (2000). There is no header file for
6900 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
6901 # term.h) for cur_colr
6902 if test "x$cf_cv_screen" = "xcurses_colr"
6904 echo "$as_me:6904: checking for initscr in -lcur_colr" >&5
6905 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
6906 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_check_lib_save_LIBS=$LIBS
6910 LIBS="-lcur_colr $LIBS"
6911 cat >"conftest.$ac_ext" <<_ACEOF
6912 #line 6912 "configure"
6913 #include "confdefs.h"
6915 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6930 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6931 if { (eval echo "$as_me:6931: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>&5
6934 echo "$as_me:6934: \$? = $ac_status" >&5
6935 (exit "$ac_status"); } &&
6936 { ac_try='test -s "conftest$ac_exeext"'
6937 { (eval echo "$as_me:6937: \"$ac_try\"") >&5
6940 echo "$as_me:6940: \$? = $ac_status" >&5
6941 (exit "$ac_status"); }; }; then
6942 ac_cv_lib_cur_colr_initscr=yes
6944 echo "$as_me: failed program was:" >&5
6945 cat "conftest.$ac_ext" >&5
6946 ac_cv_lib_cur_colr_initscr=no
6948 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6949 LIBS=$ac_check_lib_save_LIBS
6951 echo "$as_me:6951: result: $ac_cv_lib_cur_colr_initscr" >&5
6952 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
6953 if test "$ac_cv_lib_cur_colr_initscr" = yes; then
6958 for cf_add_1lib in -lcur_colr; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6960 for cf_add_1lib in $cf_add_0lib; do
6961 for cf_add_2lib in $cf_add_libs; do
6962 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6967 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6971 ac_cv_func_initscr=yes
6975 echo "$as_me:6975: checking for initscr in -lHcurses" >&5
6976 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
6977 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 ac_check_lib_save_LIBS=$LIBS
6981 LIBS="-lHcurses $LIBS"
6982 cat >"conftest.$ac_ext" <<_ACEOF
6983 #line 6983 "configure"
6984 #include "confdefs.h"
6986 /* Override any gcc2 internal prototype to avoid an error. */
6990 /* We use char because int might match the return type of a gcc2
6991 builtin and then its argument prototype would still apply. */
7001 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7002 if { (eval echo "$as_me:7002: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>&5
7005 echo "$as_me:7005: \$? = $ac_status" >&5
7006 (exit "$ac_status"); } &&
7007 { ac_try='test -s "conftest$ac_exeext"'
7008 { (eval echo "$as_me:7008: \"$ac_try\"") >&5
7011 echo "$as_me:7011: \$? = $ac_status" >&5
7012 (exit "$ac_status"); }; }; then
7013 ac_cv_lib_Hcurses_initscr=yes
7015 echo "$as_me: failed program was:" >&5
7016 cat "conftest.$ac_ext" >&5
7017 ac_cv_lib_Hcurses_initscr=no
7019 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7020 LIBS=$ac_check_lib_save_LIBS
7022 echo "$as_me:7022: result: $ac_cv_lib_Hcurses_initscr" >&5
7023 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7024 if test "$ac_cv_lib_Hcurses_initscr" = yes; then
7026 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7031 for cf_add_1lib in -lHcurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7033 for cf_add_1lib in $cf_add_0lib; do
7034 for cf_add_2lib in $cf_add_libs; do
7035 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7040 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7044 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7045 CPPFLAGS="${CPPFLAGS}-D__HP_CURSES -D_HP_CURSES"
7047 ac_cv_func_initscr=yes
7056 case `arch 2>/dev/null` in
7061 if test -n "/lib64" ; then
7062 for cf_add_libdir in /lib64
7064 if test "$cf_add_libdir" = /usr/lib ; then
7066 elif test -d "$cf_add_libdir"
7069 if test -n "$LDFLAGS$LIBS" ; then
7070 # a loop is needed to ensure we can add subdirs of existing dirs
7071 for cf_test_libdir in $LDFLAGS $LIBS ; do
7072 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7073 cf_have_libdir=yes; break
7077 if test "$cf_have_libdir" = no ; then
7078 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7080 echo "${as_me:-configure}:7080: testing adding $cf_add_libdir to library-path ..." 1>&5
7082 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7090 if test -n "/lib" ; then
7091 for cf_add_libdir in /lib
7093 if test "$cf_add_libdir" = /usr/lib ; then
7095 elif test -d "$cf_add_libdir"
7098 if test -n "$LDFLAGS$LIBS" ; then
7099 # a loop is needed to ensure we can add subdirs of existing dirs
7100 for cf_test_libdir in $LDFLAGS $LIBS ; do
7101 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7102 cf_have_libdir=yes; break
7106 if test "$cf_have_libdir" = no ; then
7107 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7109 echo "${as_me:-configure}:7109: testing adding $cf_add_libdir to library-path ..." 1>&5
7111 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7121 if test -n "/lib" ; then
7122 for cf_add_libdir in /lib
7124 if test "$cf_add_libdir" = /usr/lib ; then
7126 elif test -d "$cf_add_libdir"
7129 if test -n "$LDFLAGS$LIBS" ; then
7130 # a loop is needed to ensure we can add subdirs of existing dirs
7131 for cf_test_libdir in $LDFLAGS $LIBS ; do
7132 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7133 cf_have_libdir=yes; break
7137 if test "$cf_have_libdir" = no ; then
7138 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7140 echo "${as_me:-configure}:7140: testing adding $cf_add_libdir to library-path ..." 1>&5
7142 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7152 if test "x$cf_cv_screen" = "xcurses_5lib"
7154 if test -d /usr/5lib ; then
7156 if test -n "/usr/5lib" ; then
7157 for cf_add_libdir in /usr/5lib
7159 if test "$cf_add_libdir" = /usr/lib ; then
7161 elif test -d "$cf_add_libdir"
7164 if test -n "$LDFLAGS$LIBS" ; then
7165 # a loop is needed to ensure we can add subdirs of existing dirs
7166 for cf_test_libdir in $LDFLAGS $LIBS ; do
7167 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7168 cf_have_libdir=yes; break
7172 if test "$cf_have_libdir" = no ; then
7173 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7175 echo "${as_me:-configure}:7175: testing adding $cf_add_libdir to library-path ..." 1>&5
7177 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7186 for cf_add_1lib in -lcurses -ltermcap; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7188 for cf_add_1lib in $cf_add_0lib; do
7189 for cf_add_2lib in $cf_add_libs; do
7190 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7195 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7201 ac_cv_func_initscr=yes
7205 if test ".$ac_cv_func_initscr" != .yes ; then
7206 cf_save_LIBS="$LIBS"
7208 if test ".${cf_cv_ncurses_version:-no}" != .no
7210 cf_check_list="ncurses curses cursesX"
7212 cf_check_list="cursesX curses ncurses"
7215 # Check for library containing tgoto. Do this before curses library
7216 # because it may be needed to link the test-case for initscr.
7217 if test "x$cf_term_lib" = x
7219 echo "$as_me:7219: checking for tgoto" >&5
7220 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7221 if test "${ac_cv_func_tgoto+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >"conftest.$ac_ext" <<_ACEOF
7225 #line 7225 "configure"
7226 #include "confdefs.h"
7227 #define tgoto autoconf_temporary
7228 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7243 /* The GNU C library defines stubs for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7247 #error found stub for tgoto
7255 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7256 if { (eval echo "$as_me:7256: \"$ac_link\"") >&5
7257 (eval $ac_link) 2>&5
7259 echo "$as_me:7259: \$? = $ac_status" >&5
7260 (exit "$ac_status"); } &&
7261 { ac_try='test -s "conftest$ac_exeext"'
7262 { (eval echo "$as_me:7262: \"$ac_try\"") >&5
7265 echo "$as_me:7265: \$? = $ac_status" >&5
7266 (exit "$ac_status"); }; }; then
7267 ac_cv_func_tgoto=yes
7269 echo "$as_me: failed program was:" >&5
7270 cat "conftest.$ac_ext" >&5
7273 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7275 echo "$as_me:7275: result: $ac_cv_func_tgoto" >&5
7276 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7277 if test "$ac_cv_func_tgoto" = yes; then
7278 cf_term_lib=predefined
7281 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
7283 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7284 echo "$as_me:7284: checking for tgoto in -l$cf_term_lib" >&5
7285 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7286 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_check_lib_save_LIBS=$LIBS
7290 LIBS="-l$cf_term_lib $LIBS"
7291 cat >"conftest.$ac_ext" <<_ACEOF
7292 #line 7292 "configure"
7293 #include "confdefs.h"
7295 /* Override any gcc2 internal prototype to avoid an error. */
7299 /* We use char because int might match the return type of a gcc2
7300 builtin and then its argument prototype would still apply. */
7310 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7311 if { (eval echo "$as_me:7311: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7314 echo "$as_me:7314: \$? = $ac_status" >&5
7315 (exit "$ac_status"); } &&
7316 { ac_try='test -s "conftest$ac_exeext"'
7317 { (eval echo "$as_me:7317: \"$ac_try\"") >&5
7320 echo "$as_me:7320: \$? = $ac_status" >&5
7321 (exit "$ac_status"); }; }; then
7322 eval "$as_ac_Lib=yes"
7324 echo "$as_me: failed program was:" >&5
7325 cat "conftest.$ac_ext" >&5
7326 eval "$as_ac_Lib=no"
7328 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7329 LIBS=$ac_check_lib_save_LIBS
7331 echo "$as_me:7331: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
7332 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
7333 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
7335 : "${cf_nculib_root:=$cf_term_lib}"
7346 # Check for library containing initscr
7347 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7348 if test "x$cf_curs_lib" = x
7350 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
7352 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7353 if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then
7354 echo "$as_me:7354: checking if we can link with $cf_curs_lib library" >&5
7355 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7356 cat >"conftest.$ac_ext" <<_ACEOF
7357 #line 7357 "configure"
7358 #include "confdefs.h"
7359 #include <${cf_cv_ncurses_header:-curses.h}>
7368 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7369 if { (eval echo "$as_me:7369: \"$ac_link\"") >&5
7370 (eval $ac_link) 2>&5
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 (exit "$ac_status"); } &&
7374 { ac_try='test -s "conftest$ac_exeext"'
7375 { (eval echo "$as_me:7375: \"$ac_try\"") >&5
7378 echo "$as_me:7378: \$? = $ac_status" >&5
7379 (exit "$ac_status"); }; }; then
7382 echo "$as_me: failed program was:" >&5
7383 cat "conftest.$ac_ext" >&5
7386 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7387 echo "$as_me:7387: result: $cf_result" >&5
7388 echo "${ECHO_T}$cf_result" >&6
7389 test "$cf_result" = yes && break
7390 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
7392 elif test "$cf_term_lib" != predefined ; then
7393 echo "$as_me:7393: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7394 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
7395 cat >"conftest.$ac_ext" <<_ACEOF
7396 #line 7396 "configure"
7397 #include "confdefs.h"
7398 #include <${cf_cv_ncurses_header:-curses.h}>
7402 initscr(); tgoto((char *)0, 0, 0);
7407 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7408 if { (eval echo "$as_me:7408: \"$ac_link\"") >&5
7409 (eval $ac_link) 2>&5
7411 echo "$as_me:7411: \$? = $ac_status" >&5
7412 (exit "$ac_status"); } &&
7413 { ac_try='test -s "conftest$ac_exeext"'
7414 { (eval echo "$as_me:7414: \"$ac_try\"") >&5
7417 echo "$as_me:7417: \$? = $ac_status" >&5
7418 (exit "$ac_status"); }; }; then
7421 echo "$as_me: failed program was:" >&5
7422 cat "conftest.$ac_ext" >&5
7424 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7425 cat >"conftest.$ac_ext" <<_ACEOF
7426 #line 7426 "configure"
7427 #include "confdefs.h"
7428 #include <${cf_cv_ncurses_header:-curses.h}>
7437 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7438 if { (eval echo "$as_me:7438: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>&5
7441 echo "$as_me:7441: \$? = $ac_status" >&5
7442 (exit "$ac_status"); } &&
7443 { ac_try='test -s "conftest$ac_exeext"'
7444 { (eval echo "$as_me:7444: \"$ac_try\"") >&5
7447 echo "$as_me:7447: \$? = $ac_status" >&5
7448 (exit "$ac_status"); }; }; then
7451 echo "$as_me: failed program was:" >&5
7452 cat "conftest.$ac_ext" >&5
7455 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7458 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7459 echo "$as_me:7459: result: $cf_result" >&5
7460 echo "${ECHO_T}$cf_result" >&6
7461 test "$cf_result" != error && break
7465 test "$cf_curs_lib" = unknown && { { echo "$as_me:7465: error: no curses library found" >&5
7466 echo "$as_me: error: no curses library found" >&2;}
7467 { (exit 1); exit 1; }; }
7474 for ac_header in wchar.h
7476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7477 echo "$as_me:7477: checking for $ac_header" >&5
7478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 cat >"conftest.$ac_ext" <<_ACEOF
7483 #line 7483 "configure"
7484 #include "confdefs.h"
7485 #include <$ac_header>
7487 if { (eval echo "$as_me:7487: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7488 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7490 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7492 cat conftest.err >&5
7493 echo "$as_me:7493: \$? = $ac_status" >&5
7494 (exit "$ac_status"); } >/dev/null; then
7495 if test -s conftest.err; then
7496 ac_cpp_err=$ac_c_preproc_warn_flag
7503 if test -z "$ac_cpp_err"; then
7504 eval "$as_ac_Header=yes"
7506 echo "$as_me: failed program was:" >&5
7507 cat "conftest.$ac_ext" >&5
7508 eval "$as_ac_Header=no"
7510 rm -f conftest.err "conftest.$ac_ext"
7512 echo "$as_me:7512: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7513 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7514 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7515 cat >>confdefs.h <<EOF
7516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7522 echo "$as_me:7522: checking for multibyte character support" >&5
7523 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7524 if test "${cf_cv_utf8_lib+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 cf_save_LIBS="$LIBS"
7529 cat >"conftest.$ac_ext" <<_ACEOF
7530 #line 7530 "configure"
7531 #include "confdefs.h"
7547 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7548 if { (eval echo "$as_me:7548: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>&5
7551 echo "$as_me:7551: \$? = $ac_status" >&5
7552 (exit "$ac_status"); } &&
7553 { ac_try='test -s "conftest$ac_exeext"'
7554 { (eval echo "$as_me:7554: \"$ac_try\"") >&5
7557 echo "$as_me:7557: \$? = $ac_status" >&5
7558 (exit "$ac_status"); }; }; then
7561 echo "$as_me: failed program was:" >&5
7562 cat "conftest.$ac_ext" >&5
7564 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7565 # will be set on completion of the AC_TRY_LINK below.
7566 cf_cv_header_path_utf8=
7567 cf_cv_library_path_utf8=
7569 echo "${as_me:-configure}:7569: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7571 cf_save_LIBS="$LIBS"
7573 cat >"conftest.$ac_ext" <<_ACEOF
7574 #line 7574 "configure"
7575 #include "confdefs.h"
7577 #include <libutf8.h>
7586 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7587 if { (eval echo "$as_me:7587: \"$ac_link\"") >&5
7588 (eval $ac_link) 2>&5
7590 echo "$as_me:7590: \$? = $ac_status" >&5
7591 (exit "$ac_status"); } &&
7592 { ac_try='test -s "conftest$ac_exeext"'
7593 { (eval echo "$as_me:7593: \"$ac_try\"") >&5
7596 echo "$as_me:7596: \$? = $ac_status" >&5
7597 (exit "$ac_status"); }; }; then
7599 cf_cv_find_linkage_utf8=yes
7600 cf_cv_header_path_utf8=/usr/include
7601 cf_cv_library_path_utf8=/usr/lib
7604 echo "$as_me: failed program was:" >&5
7605 cat "conftest.$ac_ext" >&5
7607 LIBS="-lutf8 $cf_save_LIBS"
7609 cat >"conftest.$ac_ext" <<_ACEOF
7610 #line 7610 "configure"
7611 #include "confdefs.h"
7613 #include <libutf8.h>
7622 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7623 if { (eval echo "$as_me:7623: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>&5
7626 echo "$as_me:7626: \$? = $ac_status" >&5
7627 (exit "$ac_status"); } &&
7628 { ac_try='test -s "conftest$ac_exeext"'
7629 { (eval echo "$as_me:7629: \"$ac_try\"") >&5
7632 echo "$as_me:7632: \$? = $ac_status" >&5
7633 (exit "$ac_status"); }; }; then
7635 cf_cv_find_linkage_utf8=yes
7636 cf_cv_header_path_utf8=/usr/include
7637 cf_cv_library_path_utf8=/usr/lib
7638 cf_cv_library_file_utf8="-lutf8"
7641 echo "$as_me: failed program was:" >&5
7642 cat "conftest.$ac_ext" >&5
7644 cf_cv_find_linkage_utf8=no
7645 LIBS="$cf_save_LIBS"
7647 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7649 echo "${as_me:-configure}:7649: testing find linkage for utf8 library ..." 1>&5
7651 echo "${as_me:-configure}:7651: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7653 cf_save_CPPFLAGS="$CPPFLAGS"
7654 cf_test_CPPFLAGS="$CPPFLAGS"
7658 # collect the current set of include-directories from compiler flags
7659 cf_header_path_list=""
7660 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7661 for cf_header_path in $CPPFLAGS $CFLAGS
7663 case "$cf_header_path" in
7665 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7667 test "x$cf_header_path" != "xNONE" && \
7668 test -d "$cf_header_path" && \
7670 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7671 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
7672 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
7673 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
7674 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
7675 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7678 cf_header_path_list="$cf_header_path_list $cf_search"
7684 # add the variations for the package we are looking for
7688 test "x$prefix" != "xNONE" && \
7689 test -d "$prefix" && \
7691 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7692 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
7693 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
7694 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
7695 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
7696 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
7699 for cf_subdir_prefix in \
7708 test "x$cf_subdir_prefix" != "x$prefix" && \
7709 test -d "$cf_subdir_prefix" && \
7710 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
7711 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7712 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
7713 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
7714 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
7715 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
7716 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
7721 test "$includedir" != NONE && \
7722 test "$includedir" != "/usr/include" && \
7723 test -d "$includedir" && {
7724 test -d "$includedir" && cf_search="$cf_search $includedir"
7725 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
7728 test "$oldincludedir" != NONE && \
7729 test "$oldincludedir" != "/usr/include" && \
7730 test -d "$oldincludedir" && {
7731 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
7732 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
7735 cf_search="$cf_search $cf_header_path_list"
7737 for cf_cv_header_path_utf8 in $cf_search
7739 if test -d "$cf_cv_header_path_utf8" ; then
7740 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7742 echo "${as_me:-configure}:7742: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7744 CPPFLAGS="$cf_save_CPPFLAGS"
7746 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7747 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
7749 cat >"conftest.$ac_ext" <<_ACEOF
7750 #line 7750 "configure"
7751 #include "confdefs.h"
7753 #include <libutf8.h>
7762 rm -f "conftest.$ac_objext"
7763 if { (eval echo "$as_me:7763: \"$ac_compile\"") >&5
7764 (eval $ac_compile) 2>&5
7766 echo "$as_me:7766: \$? = $ac_status" >&5
7767 (exit "$ac_status"); } &&
7768 { ac_try='test -s "conftest.$ac_objext"'
7769 { (eval echo "$as_me:7769: \"$ac_try\"") >&5
7772 echo "$as_me:7772: \$? = $ac_status" >&5
7773 (exit "$ac_status"); }; }; then
7775 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7777 echo "${as_me:-configure}:7777: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7779 cf_cv_find_linkage_utf8=maybe
7780 cf_test_CPPFLAGS="$CPPFLAGS"
7783 echo "$as_me: failed program was:" >&5
7784 cat "conftest.$ac_ext" >&5
7786 CPPFLAGS="$cf_save_CPPFLAGS"
7789 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7793 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7795 echo "${as_me:-configure}:7795: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7797 cf_save_LIBS="$LIBS"
7798 cf_save_LDFLAGS="$LDFLAGS"
7800 if test "$cf_cv_find_linkage_utf8" != yes ; then
7803 cf_library_path_list=""
7804 if test -n "${LDFLAGS}${LIBS}" ; then
7805 for cf_library_path in $LDFLAGS $LIBS
7807 case "$cf_library_path" in
7809 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7811 test "x$cf_library_path" != "xNONE" && \
7812 test -d "$cf_library_path" && \
7814 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7815 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
7816 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
7817 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7818 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
7819 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7822 cf_library_path_list="$cf_library_path_list $cf_search"
7830 test "x$prefix" != "xNONE" && \
7831 test -d "$prefix" && \
7833 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7834 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
7835 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
7836 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
7837 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
7838 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
7841 for cf_subdir_prefix in \
7850 test "x$cf_subdir_prefix" != "x$prefix" && \
7851 test -d "$cf_subdir_prefix" && \
7852 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
7853 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7854 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
7855 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
7856 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
7857 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
7858 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
7863 cf_search="$cf_library_path_list $cf_search"
7865 for cf_cv_library_path_utf8 in $cf_search
7867 if test -d "$cf_cv_library_path_utf8" ; then
7868 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7870 echo "${as_me:-configure}:7870: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7872 CPPFLAGS="$cf_test_CPPFLAGS"
7873 LIBS="-lutf8 $cf_save_LIBS"
7874 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7875 cat >"conftest.$ac_ext" <<_ACEOF
7876 #line 7876 "configure"
7877 #include "confdefs.h"
7879 #include <libutf8.h>
7888 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7889 if { (eval echo "$as_me:7889: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit "$ac_status"); } &&
7894 { ac_try='test -s "conftest$ac_exeext"'
7895 { (eval echo "$as_me:7895: \"$ac_try\"") >&5
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 (exit "$ac_status"); }; }; then
7901 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7903 echo "${as_me:-configure}:7903: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7905 cf_cv_find_linkage_utf8=yes
7906 cf_cv_library_file_utf8="-lutf8"
7909 echo "$as_me: failed program was:" >&5
7910 cat "conftest.$ac_ext" >&5
7912 CPPFLAGS="$cf_save_CPPFLAGS"
7913 LIBS="$cf_save_LIBS"
7914 LDFLAGS="$cf_save_LDFLAGS"
7917 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7920 CPPFLAGS="$cf_save_CPPFLAGS"
7921 LDFLAGS="$cf_save_LDFLAGS"
7925 cf_cv_find_linkage_utf8=no
7929 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7932 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7934 LIBS="$cf_save_LIBS"
7936 if test "$cf_cv_find_linkage_utf8" = yes ; then
7937 cf_cv_utf8_lib=add-on
7943 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7945 echo "$as_me:7945: result: $cf_cv_utf8_lib" >&5
7946 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7948 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7950 if test "$cf_cv_utf8_lib" = "add-on" ; then
7952 cat >>confdefs.h <<\EOF
7953 #define HAVE_LIBUTF8_H 1
7956 if test -n "$cf_cv_header_path_utf8" ; then
7957 for cf_add_incdir in $cf_cv_header_path_utf8
7959 while test "$cf_add_incdir" != /usr/include
7961 if test -d "$cf_add_incdir"
7964 if test -n "$CFLAGS$CPPFLAGS" ; then
7965 # a loop is needed to ensure we can add subdirs of existing dirs
7966 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7967 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7968 cf_have_incdir=yes; break
7973 if test "$cf_have_incdir" = no ; then
7974 if test "$cf_add_incdir" = /usr/local/include ; then
7975 if test "$GCC" = yes
7977 cf_save_CPPFLAGS=$CPPFLAGS
7979 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7980 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7982 cat >"conftest.$ac_ext" <<_ACEOF
7983 #line 7983 "configure"
7984 #include "confdefs.h"
7994 rm -f "conftest.$ac_objext"
7995 if { (eval echo "$as_me:7995: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>&5
7998 echo "$as_me:7998: \$? = $ac_status" >&5
7999 (exit "$ac_status"); } &&
8000 { ac_try='test -s "conftest.$ac_objext"'
8001 { (eval echo "$as_me:8001: \"$ac_try\"") >&5
8004 echo "$as_me:8004: \$? = $ac_status" >&5
8005 (exit "$ac_status"); }; }; then
8008 echo "$as_me: failed program was:" >&5
8009 cat "conftest.$ac_ext" >&5
8012 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8013 CPPFLAGS=$cf_save_CPPFLAGS
8018 if test "$cf_have_incdir" = no ; then
8019 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8021 echo "${as_me:-configure}:8021: testing adding $cf_add_incdir to include-path ..." 1>&5
8023 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8025 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
8026 test "$cf_top_incdir" = "$cf_add_incdir" && break
8027 cf_add_incdir="$cf_top_incdir"
8038 if test -n "$cf_cv_library_path_utf8" ; then
8039 for cf_add_libdir in $cf_cv_library_path_utf8
8041 if test "$cf_add_libdir" = /usr/lib ; then
8043 elif test -d "$cf_add_libdir"
8046 if test -n "$LDFLAGS$LIBS" ; then
8047 # a loop is needed to ensure we can add subdirs of existing dirs
8048 for cf_test_libdir in $LDFLAGS $LIBS ; do
8049 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8050 cf_have_libdir=yes; break
8054 if test "$cf_have_libdir" = no ; then
8055 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8057 echo "${as_me:-configure}:8057: testing adding $cf_add_libdir to library-path ..." 1>&5
8059 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8068 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8070 for cf_add_1lib in $cf_add_0lib; do
8071 for cf_add_2lib in $cf_add_libs; do
8072 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8077 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8083 cf_ncuconfig_root=$cf_cv_screen
8084 cf_have_ncuconfig=no
8086 if test "x${PKG_CONFIG:=none}" != xnone; then
8087 echo "$as_me:8087: checking pkg-config for $cf_ncuconfig_root" >&5
8088 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8089 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8090 echo "$as_me:8090: result: yes" >&5
8091 echo "${ECHO_T}yes" >&6
8093 echo "$as_me:8093: checking if the $cf_ncuconfig_root package files work" >&5
8094 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8095 cf_have_ncuconfig=unknown
8097 cf_save_CFLAGS="$CFLAGS"
8098 cf_save_CPPFLAGS="$CPPFLAGS"
8099 cf_save_LIBS="$LIBS"
8101 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8102 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8104 # while -W for passing linker flags is prevalent, it is not "standard".
8105 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
8106 # incompatible _and_ non-standard -W option which gives an error. Work
8107 # around that pitfall.
8108 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
8114 cf_new_extra_cppflags=
8116 for cf_add_cflags in $cf_pkg_cflags
8118 case "$cf_fix_cppflags" in
8120 case "$cf_add_cflags" in
8121 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8122 case "$cf_add_cflags" in
8124 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8126 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8127 && test -z "${cf_tst_cflags}" \
8128 && cf_fix_cppflags=yes
8130 if test "$cf_fix_cppflags" = yes ; then
8132 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8133 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8136 elif test "${cf_tst_cflags}" = "\"'" ; then
8138 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8139 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8149 case "$cf_add_cflags" in
8151 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8153 CPPFLAGS=`echo "$CPPFLAGS" | \
8154 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8155 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8160 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8161 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8168 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8169 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8176 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8177 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8179 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8181 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8182 && test -z "${cf_tst_cflags}" \
8183 && cf_fix_cppflags=no
8188 if test -n "$cf_new_cflags" ; then
8190 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8191 CFLAGS="${CFLAGS}$cf_new_cflags"
8195 if test -n "$cf_new_cppflags" ; then
8197 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8198 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8202 if test -n "$cf_new_extra_cppflags" ; then
8204 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8205 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8212 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8214 for cf_add_1lib in $cf_add_0lib; do
8215 for cf_add_2lib in $cf_add_libs; do
8216 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8221 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8225 cat >"conftest.$ac_ext" <<_ACEOF
8226 #line 8226 "configure"
8227 #include "confdefs.h"
8228 #include <${cf_cv_ncurses_header:-curses.h}>
8232 initscr(); mousemask(0,0); tigetstr((char *)0);
8237 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8238 if { (eval echo "$as_me:8238: \"$ac_link\"") >&5
8239 (eval $ac_link) 2>&5
8241 echo "$as_me:8241: \$? = $ac_status" >&5
8242 (exit "$ac_status"); } &&
8243 { ac_try='test -s "conftest$ac_exeext"'
8244 { (eval echo "$as_me:8244: \"$ac_try\"") >&5
8247 echo "$as_me:8247: \$? = $ac_status" >&5
8248 (exit "$ac_status"); }; }; then
8249 if test "$cross_compiling" = yes; then
8250 cf_test_ncuconfig=maybe
8252 cat >"conftest.$ac_ext" <<_ACEOF
8253 #line 8253 "configure"
8254 #include "confdefs.h"
8255 #include <${cf_cv_ncurses_header:-curses.h}>
8257 { const char *xx = curses_version(); return (xx == 0); }
8259 rm -f "conftest$ac_exeext"
8260 if { (eval echo "$as_me:8260: \"$ac_link\"") >&5
8261 (eval $ac_link) 2>&5
8263 echo "$as_me:8263: \$? = $ac_status" >&5
8264 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
8265 { (eval echo "$as_me:8265: \"$ac_try\"") >&5
8268 echo "$as_me:8268: \$? = $ac_status" >&5
8269 (exit "$ac_status"); }; }; then
8270 cf_test_ncuconfig=yes
8272 echo "$as_me: program exited with status $ac_status" >&5
8273 echo "$as_me: failed program was:" >&5
8274 cat "conftest.$ac_ext" >&5
8275 cf_test_ncuconfig=no
8277 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8280 echo "$as_me: failed program was:" >&5
8281 cat "conftest.$ac_ext" >&5
8282 cf_test_ncuconfig=no
8284 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8286 CFLAGS="$cf_save_CFLAGS"
8287 CPPFLAGS="$cf_save_CPPFLAGS"
8288 LIBS="$cf_save_LIBS"
8290 if test "x$cf_test_ncuconfig" != xyes; then
8291 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
8292 cf_pkg_cflags="$cf_temp"
8293 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
8294 cf_pkg_libs="$cf_temp"
8299 for cf_add_cflags in $cf_pkg_cflags
8301 case "x$cf_add_cflags" in
8304 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8307 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
8308 test "$CFLAGS" != "$cf_old_cflag" || break
8310 CFLAGS="$cf_old_cflag"
8313 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8316 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
8317 test "$CPPFLAGS" != "$cf_old_cflag" || break
8319 CPPFLAGS="$cf_old_cflag"
8328 cf_new_extra_cppflags=
8330 for cf_add_cflags in $cf_add_cflags
8332 case "$cf_fix_cppflags" in
8334 case "$cf_add_cflags" in
8335 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8336 case "$cf_add_cflags" in
8338 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8340 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8341 && test -z "${cf_tst_cflags}" \
8342 && cf_fix_cppflags=yes
8344 if test "$cf_fix_cppflags" = yes ; then
8346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8347 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8350 elif test "${cf_tst_cflags}" = "\"'" ; then
8352 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8353 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8363 case "$cf_add_cflags" in
8365 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8367 CPPFLAGS=`echo "$CPPFLAGS" | \
8368 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8369 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8374 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8375 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8382 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8383 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8391 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8393 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8395 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8396 && test -z "${cf_tst_cflags}" \
8397 && cf_fix_cppflags=no
8402 if test -n "$cf_new_cflags" ; then
8404 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8405 CFLAGS="${CFLAGS}$cf_new_cflags"
8409 if test -n "$cf_new_cppflags" ; then
8411 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8412 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8416 if test -n "$cf_new_extra_cppflags" ; then
8418 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8419 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8428 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8430 for cf_add_1lib in $cf_add_0lib; do
8431 for cf_add_2lib in $cf_add_libs; do
8432 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8437 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8441 cat >"conftest.$ac_ext" <<_ACEOF
8442 #line 8442 "configure"
8443 #include "confdefs.h"
8444 #include <${cf_cv_ncurses_header:-curses.h}>
8448 initscr(); mousemask(0,0); tigetstr((char *)0);
8453 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8454 if { (eval echo "$as_me:8454: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>&5
8457 echo "$as_me:8457: \$? = $ac_status" >&5
8458 (exit "$ac_status"); } &&
8459 { ac_try='test -s "conftest$ac_exeext"'
8460 { (eval echo "$as_me:8460: \"$ac_try\"") >&5
8463 echo "$as_me:8463: \$? = $ac_status" >&5
8464 (exit "$ac_status"); }; }; then
8465 if test "$cross_compiling" = yes; then
8466 cf_have_ncuconfig=maybe
8468 cat >"conftest.$ac_ext" <<_ACEOF
8469 #line 8469 "configure"
8470 #include "confdefs.h"
8471 #include <${cf_cv_ncurses_header:-curses.h}>
8473 { const char *xx = curses_version(); return (xx == 0); }
8475 rm -f "conftest$ac_exeext"
8476 if { (eval echo "$as_me:8476: \"$ac_link\"") >&5
8477 (eval $ac_link) 2>&5
8479 echo "$as_me:8479: \$? = $ac_status" >&5
8480 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
8481 { (eval echo "$as_me:8481: \"$ac_try\"") >&5
8484 echo "$as_me:8484: \$? = $ac_status" >&5
8485 (exit "$ac_status"); }; }; then
8486 cf_have_ncuconfig=yes
8488 echo "$as_me: program exited with status $ac_status" >&5
8489 echo "$as_me: failed program was:" >&5
8490 cat "conftest.$ac_ext" >&5
8491 cf_have_ncuconfig=no
8493 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8496 echo "$as_me: failed program was:" >&5
8497 cat "conftest.$ac_ext" >&5
8498 cf_have_ncuconfig=no
8500 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8501 echo "$as_me:8501: result: $cf_have_ncuconfig" >&5
8502 echo "${ECHO_T}$cf_have_ncuconfig" >&6
8503 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
8504 if test "$cf_have_ncuconfig" != "yes"
8506 CPPFLAGS="$cf_save_CPPFLAGS"
8507 LIBS="$cf_save_LIBS"
8508 NCURSES_CONFIG_PKG=none
8511 cat >>confdefs.h <<\EOF
8515 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
8517 echo "$as_me:8517: checking for terminfo header" >&5
8518 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8519 if test "${cf_cv_term_header+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 case "${cf_cv_ncurses_header}" in
8524 (*/ncurses.h|*/ncursesw.h)
8525 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8528 cf_term_header=term.h
8532 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8534 cat >"conftest.$ac_ext" <<_ACEOF
8535 #line 8535 "configure"
8536 #include "confdefs.h"
8538 #include <${cf_cv_ncurses_header:-curses.h}>
8544 int x = auto_left_margin; (void)x
8549 rm -f "conftest.$ac_objext"
8550 if { (eval echo "$as_me:8550: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>&5
8553 echo "$as_me:8553: \$? = $ac_status" >&5
8554 (exit "$ac_status"); } &&
8555 { ac_try='test -s "conftest.$ac_objext"'
8556 { (eval echo "$as_me:8556: \"$ac_try\"") >&5
8559 echo "$as_me:8559: \$? = $ac_status" >&5
8560 (exit "$ac_status"); }; }; then
8562 cf_cv_term_header="$cf_test"
8564 echo "$as_me: failed program was:" >&5
8565 cat "conftest.$ac_ext" >&5
8567 cf_cv_term_header=unknown
8570 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8571 test "$cf_cv_term_header" != unknown && break
8575 echo "$as_me:8575: result: $cf_cv_term_header" >&5
8576 echo "${ECHO_T}$cf_cv_term_header" >&6
8578 # Set definitions to allow ifdef'ing to accommodate subdirectories
8580 case "$cf_cv_term_header" in
8583 cat >>confdefs.h <<\EOF
8584 #define HAVE_TERM_H 1
8590 case "$cf_cv_term_header" in
8593 cat >>confdefs.h <<\EOF
8594 #define HAVE_NCURSES_TERM_H 1
8600 cat >>confdefs.h <<\EOF
8601 #define HAVE_NCURSESW_TERM_H 1
8610 echo "$as_me:8610: result: no" >&5
8611 echo "${ECHO_T}no" >&6
8612 NCURSES_CONFIG_PKG=none
8615 NCURSES_CONFIG_PKG=none
8618 if test "x$cf_have_ncuconfig" = "xno"; then
8619 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
8621 if test -n "$ac_tool_prefix"; then
8622 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8626 echo "$as_me:8626: checking for $ac_word" >&5
8627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8628 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 if test -n "$NCURSES_CONFIG"; then
8632 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8634 ac_save_IFS=$IFS; IFS=$ac_path_separator
8636 for ac_dir in $ac_dummy; do
8638 test -z "$ac_dir" && ac_dir=.
8639 $as_executable_p "$ac_dir/$ac_word" || continue
8640 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8641 echo "$as_me:8641: found $ac_dir/$ac_word" >&5
8647 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8648 if test -n "$NCURSES_CONFIG"; then
8649 echo "$as_me:8649: result: $NCURSES_CONFIG" >&5
8650 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8652 echo "$as_me:8652: result: no" >&5
8653 echo "${ECHO_T}no" >&6
8656 test -n "$NCURSES_CONFIG" && break
8659 if test -z "$NCURSES_CONFIG"; then
8660 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8661 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8663 # Extract the first word of "$ac_prog", so it can be a program name with args.
8664 set dummy $ac_prog; ac_word=$2
8665 echo "$as_me:8665: checking for $ac_word" >&5
8666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8667 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 if test -n "$ac_ct_NCURSES_CONFIG"; then
8671 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8673 ac_save_IFS=$IFS; IFS=$ac_path_separator
8675 for ac_dir in $ac_dummy; do
8677 test -z "$ac_dir" && ac_dir=.
8678 $as_executable_p "$ac_dir/$ac_word" || continue
8679 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8680 echo "$as_me:8680: found $ac_dir/$ac_word" >&5
8686 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8687 if test -n "$ac_ct_NCURSES_CONFIG"; then
8688 echo "$as_me:8688: result: $ac_ct_NCURSES_CONFIG" >&5
8689 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8691 echo "$as_me:8691: result: no" >&5
8692 echo "${ECHO_T}no" >&6
8695 test -n "$ac_ct_NCURSES_CONFIG" && break
8697 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8699 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8702 if test "$NCURSES_CONFIG" != none ; then
8704 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
8706 case "x$cf_add_cflags" in
8709 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8712 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
8713 test "$CFLAGS" != "$cf_old_cflag" || break
8715 CFLAGS="$cf_old_cflag"
8718 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8721 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
8722 test "$CPPFLAGS" != "$cf_old_cflag" || break
8724 CPPFLAGS="$cf_old_cflag"
8733 cf_new_extra_cppflags=
8735 for cf_add_cflags in $cf_add_cflags
8737 case "$cf_fix_cppflags" in
8739 case "$cf_add_cflags" in
8740 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8741 case "$cf_add_cflags" in
8743 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8745 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8746 && test -z "${cf_tst_cflags}" \
8747 && cf_fix_cppflags=yes
8749 if test "$cf_fix_cppflags" = yes ; then
8751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8755 elif test "${cf_tst_cflags}" = "\"'" ; then
8757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8768 case "$cf_add_cflags" in
8770 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8772 CPPFLAGS=`echo "$CPPFLAGS" | \
8773 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8774 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8779 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8780 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8787 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8788 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8798 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8800 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8801 && test -z "${cf_tst_cflags}" \
8802 && cf_fix_cppflags=no
8807 if test -n "$cf_new_cflags" ; then
8809 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8810 CFLAGS="${CFLAGS}$cf_new_cflags"
8814 if test -n "$cf_new_cppflags" ; then
8816 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8817 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8821 if test -n "$cf_new_extra_cppflags" ; then
8823 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8824 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8833 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8835 for cf_add_1lib in $cf_add_0lib; do
8836 for cf_add_2lib in $cf_add_libs; do
8837 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8842 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8846 # even with config script, some packages use no-override for curses.h
8848 echo "$as_me:8848: checking if we have identified curses headers" >&5
8849 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8850 if test "${cf_cv_ncurses_header+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 cf_cv_ncurses_header=none
8856 ncurses.h $cf_cv_screen/ncurses.h \
8857 curses.h $cf_cv_screen/curses.h
8859 cat >"conftest.$ac_ext" <<_ACEOF
8860 #line 8860 "configure"
8861 #include "confdefs.h"
8862 #include <${cf_header}>
8866 initscr(); tgoto("?", 0,0)
8871 rm -f "conftest.$ac_objext"
8872 if { (eval echo "$as_me:8872: \"$ac_compile\"") >&5
8873 (eval $ac_compile) 2>&5
8875 echo "$as_me:8875: \$? = $ac_status" >&5
8876 (exit "$ac_status"); } &&
8877 { ac_try='test -s "conftest.$ac_objext"'
8878 { (eval echo "$as_me:8878: \"$ac_try\"") >&5
8881 echo "$as_me:8881: \$? = $ac_status" >&5
8882 (exit "$ac_status"); }; }; then
8883 cf_cv_ncurses_header=$cf_header; break
8885 echo "$as_me: failed program was:" >&5
8886 cat "conftest.$ac_ext" >&5
8888 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8892 echo "$as_me:8892: result: $cf_cv_ncurses_header" >&5
8893 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8895 if test "$cf_cv_ncurses_header" = none ; then
8896 { { echo "$as_me:8896: error: No curses header-files found" >&5
8897 echo "$as_me: error: No curses header-files found" >&2;}
8898 { (exit 1); exit 1; }; }
8901 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8903 for ac_header in $cf_cv_ncurses_header
8905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8906 echo "$as_me:8906: checking for $ac_header" >&5
8907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 cat >"conftest.$ac_ext" <<_ACEOF
8912 #line 8912 "configure"
8913 #include "confdefs.h"
8914 #include <$ac_header>
8916 if { (eval echo "$as_me:8916: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8917 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8919 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8921 cat conftest.err >&5
8922 echo "$as_me:8922: \$? = $ac_status" >&5
8923 (exit "$ac_status"); } >/dev/null; then
8924 if test -s conftest.err; then
8925 ac_cpp_err=$ac_c_preproc_warn_flag
8932 if test -z "$ac_cpp_err"; then
8933 eval "$as_ac_Header=yes"
8935 echo "$as_me: failed program was:" >&5
8936 cat "conftest.$ac_ext" >&5
8937 eval "$as_ac_Header=no"
8939 rm -f conftest.err "conftest.$ac_ext"
8941 echo "$as_me:8941: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8942 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8943 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8944 cat >>confdefs.h <<EOF
8945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951 cat >>confdefs.h <<\EOF
8955 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8957 cat >>confdefs.h <<EOF
8958 #define $cf_nculib_ROOT 1
8961 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
8965 cf_ncuhdr_root=$cf_cv_screen
8967 test -n "$cf_cv_curses_dir" && \
8968 test "$cf_cv_curses_dir" != "no" && { \
8970 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8971 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8973 while test "$cf_add_incdir" != /usr/include
8975 if test -d "$cf_add_incdir"
8978 if test -n "$CFLAGS$CPPFLAGS" ; then
8979 # a loop is needed to ensure we can add subdirs of existing dirs
8980 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8981 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8982 cf_have_incdir=yes; break
8987 if test "$cf_have_incdir" = no ; then
8988 if test "$cf_add_incdir" = /usr/local/include ; then
8989 if test "$GCC" = yes
8991 cf_save_CPPFLAGS=$CPPFLAGS
8993 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8994 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8996 cat >"conftest.$ac_ext" <<_ACEOF
8997 #line 8997 "configure"
8998 #include "confdefs.h"
9008 rm -f "conftest.$ac_objext"
9009 if { (eval echo "$as_me:9009: \"$ac_compile\"") >&5
9010 (eval $ac_compile) 2>&5
9012 echo "$as_me:9012: \$? = $ac_status" >&5
9013 (exit "$ac_status"); } &&
9014 { ac_try='test -s "conftest.$ac_objext"'
9015 { (eval echo "$as_me:9015: \"$ac_try\"") >&5
9018 echo "$as_me:9018: \$? = $ac_status" >&5
9019 (exit "$ac_status"); }; }; then
9022 echo "$as_me: failed program was:" >&5
9023 cat "conftest.$ac_ext" >&5
9026 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9027 CPPFLAGS=$cf_save_CPPFLAGS
9032 if test "$cf_have_incdir" = no ; then
9033 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9035 echo "${as_me:-configure}:9035: testing adding $cf_add_incdir to include-path ..." 1>&5
9037 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9039 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9040 test "$cf_top_incdir" = "$cf_add_incdir" && break
9041 cf_add_incdir="$cf_top_incdir"
9054 echo "$as_me:9054: checking for $cf_ncuhdr_root header in include-path" >&5
9055 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
9056 if test "${cf_cv_ncurses_h+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
9061 { test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_header_list curses.h ncurses.h"
9062 for cf_header in $cf_header_list
9065 cat >"conftest.$ac_ext" <<_ACEOF
9066 #line 9066 "configure"
9067 #include "confdefs.h"
9069 #include <$cf_header>
9074 #ifdef NCURSES_VERSION
9076 printf("%s\\n", NCURSES_VERSION);
9089 rm -f "conftest.$ac_objext"
9090 if { (eval echo "$as_me:9090: \"$ac_compile\"") >&5
9091 (eval $ac_compile) 2>&5
9093 echo "$as_me:9093: \$? = $ac_status" >&5
9094 (exit "$ac_status"); } &&
9095 { ac_try='test -s "conftest.$ac_objext"'
9096 { (eval echo "$as_me:9096: \"$ac_try\"") >&5
9099 echo "$as_me:9099: \$? = $ac_status" >&5
9100 (exit "$ac_status"); }; }; then
9101 cf_cv_ncurses_h=$cf_header
9104 echo "$as_me: failed program was:" >&5
9105 cat "conftest.$ac_ext" >&5
9108 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9110 test "$cf_cv_ncurses_h" != no && break
9114 echo "$as_me:9114: result: $cf_cv_ncurses_h" >&5
9115 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
9117 if test "$cf_cv_ncurses_h" != no ; then
9118 cf_cv_ncurses_header=$cf_cv_ncurses_h
9121 echo "$as_me:9121: checking for $cf_ncuhdr_root include-path" >&5
9122 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
9123 if test "${cf_cv_ncurses_h2+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 test -n "$verbose" && echo
9131 # collect the current set of include-directories from compiler flags
9132 cf_header_path_list=""
9133 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9134 for cf_header_path in $CPPFLAGS $CFLAGS
9136 case "$cf_header_path" in
9138 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9140 test "x$cf_header_path" != "xNONE" && \
9141 test -d "$cf_header_path" && \
9143 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9144 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
9145 test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
9146 test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
9147 test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
9148 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"
9151 cf_header_path_list="$cf_header_path_list $cf_search"
9157 # add the variations for the package we are looking for
9161 test "x$prefix" != "xNONE" && \
9162 test -d "$prefix" && \
9164 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9165 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
9166 test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
9167 test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
9168 test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
9169 test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9172 for cf_subdir_prefix in \
9181 test "x$cf_subdir_prefix" != "x$prefix" && \
9182 test -d "$cf_subdir_prefix" && \
9183 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
9184 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9185 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
9186 test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
9187 test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
9188 test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
9189 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"
9194 test "$includedir" != NONE && \
9195 test "$includedir" != "/usr/include" && \
9196 test -d "$includedir" && {
9197 test -d "$includedir" && cf_search="$cf_search $includedir"
9198 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
9201 test "$oldincludedir" != NONE && \
9202 test "$oldincludedir" != "/usr/include" && \
9203 test -d "$oldincludedir" && {
9204 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
9205 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
9208 cf_search="$cf_search $cf_header_path_list"
9210 test -n "$verbose" && echo "search path $cf_search"
9211 cf_save2_CPPFLAGS="$CPPFLAGS"
9212 for cf_incdir in $cf_search
9215 if test -n "$cf_incdir" ; then
9216 for cf_add_incdir in $cf_incdir
9218 while test "$cf_add_incdir" != /usr/include
9220 if test -d "$cf_add_incdir"
9223 if test -n "$CFLAGS$CPPFLAGS" ; then
9224 # a loop is needed to ensure we can add subdirs of existing dirs
9225 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9226 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9227 cf_have_incdir=yes; break
9232 if test "$cf_have_incdir" = no ; then
9233 if test "$cf_add_incdir" = /usr/local/include ; then
9234 if test "$GCC" = yes
9236 cf_save_CPPFLAGS=$CPPFLAGS
9238 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9239 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9241 cat >"conftest.$ac_ext" <<_ACEOF
9242 #line 9242 "configure"
9243 #include "confdefs.h"
9253 rm -f "conftest.$ac_objext"
9254 if { (eval echo "$as_me:9254: \"$ac_compile\"") >&5
9255 (eval $ac_compile) 2>&5
9257 echo "$as_me:9257: \$? = $ac_status" >&5
9258 (exit "$ac_status"); } &&
9259 { ac_try='test -s "conftest.$ac_objext"'
9260 { (eval echo "$as_me:9260: \"$ac_try\"") >&5
9263 echo "$as_me:9263: \$? = $ac_status" >&5
9264 (exit "$ac_status"); }; }; then
9267 echo "$as_me: failed program was:" >&5
9268 cat "conftest.$ac_ext" >&5
9271 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9272 CPPFLAGS=$cf_save_CPPFLAGS
9277 if test "$cf_have_incdir" = no ; then
9278 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9280 echo "${as_me:-configure}:9280: testing adding $cf_add_incdir to include-path ..." 1>&5
9282 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9284 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9285 test "$cf_top_incdir" = "$cf_add_incdir" && break
9286 cf_add_incdir="$cf_top_incdir"
9302 cat >"conftest.$ac_ext" <<_ACEOF
9303 #line 9303 "configure"
9304 #include "confdefs.h"
9306 #include <$cf_header>
9311 #ifdef NCURSES_VERSION
9313 printf("%s\\n", NCURSES_VERSION);
9326 rm -f "conftest.$ac_objext"
9327 if { (eval echo "$as_me:9327: \"$ac_compile\"") >&5
9328 (eval $ac_compile) 2>&5
9330 echo "$as_me:9330: \$? = $ac_status" >&5
9331 (exit "$ac_status"); } &&
9332 { ac_try='test -s "conftest.$ac_objext"'
9333 { (eval echo "$as_me:9333: \"$ac_try\"") >&5
9336 echo "$as_me:9336: \$? = $ac_status" >&5
9337 (exit "$ac_status"); }; }; then
9338 cf_cv_ncurses_h2=$cf_header
9341 echo "$as_me: failed program was:" >&5
9342 cat "conftest.$ac_ext" >&5
9345 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9347 if test "$cf_cv_ncurses_h2" != no ; then
9348 cf_cv_ncurses_h2=$cf_incdir/$cf_header
9349 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
9352 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
9354 CPPFLAGS="$cf_save2_CPPFLAGS"
9355 test "$cf_cv_ncurses_h2" != no && break
9357 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9357: error: not found" >&5
9358 echo "$as_me: error: not found" >&2;}
9359 { (exit 1); exit 1; }; }
9362 echo "$as_me:9362: result: $cf_cv_ncurses_h2" >&5
9363 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
9365 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
9366 cf_cv_ncurses_header="`basename "$cf_cv_ncurses_h2"`"
9367 if test "`basename "$cf_1st_incdir"`" = "$cf_ncuhdr_root" ; then
9368 cf_cv_ncurses_header="$cf_ncuhdr_root/$cf_cv_ncurses_header"
9371 if test -n "$cf_1st_incdir" ; then
9372 for cf_add_incdir in $cf_1st_incdir
9374 while test "$cf_add_incdir" != /usr/include
9376 if test -d "$cf_add_incdir"
9379 if test -n "$CFLAGS$CPPFLAGS" ; then
9380 # a loop is needed to ensure we can add subdirs of existing dirs
9381 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9382 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9383 cf_have_incdir=yes; break
9388 if test "$cf_have_incdir" = no ; then
9389 if test "$cf_add_incdir" = /usr/local/include ; then
9390 if test "$GCC" = yes
9392 cf_save_CPPFLAGS=$CPPFLAGS
9394 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9395 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9397 cat >"conftest.$ac_ext" <<_ACEOF
9398 #line 9398 "configure"
9399 #include "confdefs.h"
9409 rm -f "conftest.$ac_objext"
9410 if { (eval echo "$as_me:9410: \"$ac_compile\"") >&5
9411 (eval $ac_compile) 2>&5
9413 echo "$as_me:9413: \$? = $ac_status" >&5
9414 (exit "$ac_status"); } &&
9415 { ac_try='test -s "conftest.$ac_objext"'
9416 { (eval echo "$as_me:9416: \"$ac_try\"") >&5
9419 echo "$as_me:9419: \$? = $ac_status" >&5
9420 (exit "$ac_status"); }; }; then
9423 echo "$as_me: failed program was:" >&5
9424 cat "conftest.$ac_ext" >&5
9427 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9428 CPPFLAGS=$cf_save_CPPFLAGS
9433 if test "$cf_have_incdir" = no ; then
9434 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9436 echo "${as_me:-configure}:9436: testing adding $cf_add_incdir to include-path ..." 1>&5
9438 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9440 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9441 test "$cf_top_incdir" = "$cf_add_incdir" && break
9442 cf_add_incdir="$cf_top_incdir"
9455 # Set definitions to allow ifdef'ing for ncurses.h
9457 case "$cf_cv_ncurses_header" in
9460 cat >>confdefs.h <<\EOF
9461 #define HAVE_NCURSES_H 1
9467 case "$cf_cv_ncurses_header" in
9468 (ncurses/curses.h|ncurses/ncurses.h)
9470 cat >>confdefs.h <<\EOF
9471 #define HAVE_NCURSES_NCURSES_H 1
9475 (ncursesw/curses.h|ncursesw/ncurses.h)
9477 cat >>confdefs.h <<\EOF
9478 #define HAVE_NCURSESW_NCURSES_H 1
9484 echo "$as_me:9484: checking for terminfo header" >&5
9485 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9486 if test "${cf_cv_term_header+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 case "${cf_cv_ncurses_header}" in
9491 (*/ncurses.h|*/ncursesw.h)
9492 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9495 cf_term_header=term.h
9499 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9501 cat >"conftest.$ac_ext" <<_ACEOF
9502 #line 9502 "configure"
9503 #include "confdefs.h"
9505 #include <${cf_cv_ncurses_header:-curses.h}>
9511 int x = auto_left_margin; (void)x
9516 rm -f "conftest.$ac_objext"
9517 if { (eval echo "$as_me:9517: \"$ac_compile\"") >&5
9518 (eval $ac_compile) 2>&5
9520 echo "$as_me:9520: \$? = $ac_status" >&5
9521 (exit "$ac_status"); } &&
9522 { ac_try='test -s "conftest.$ac_objext"'
9523 { (eval echo "$as_me:9523: \"$ac_try\"") >&5
9526 echo "$as_me:9526: \$? = $ac_status" >&5
9527 (exit "$ac_status"); }; }; then
9529 cf_cv_term_header="$cf_test"
9531 echo "$as_me: failed program was:" >&5
9532 cat "conftest.$ac_ext" >&5
9534 cf_cv_term_header=unknown
9537 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9538 test "$cf_cv_term_header" != unknown && break
9542 echo "$as_me:9542: result: $cf_cv_term_header" >&5
9543 echo "${ECHO_T}$cf_cv_term_header" >&6
9545 # Set definitions to allow ifdef'ing to accommodate subdirectories
9547 case "$cf_cv_term_header" in
9550 cat >>confdefs.h <<\EOF
9551 #define HAVE_TERM_H 1
9557 case "$cf_cv_term_header" in
9560 cat >>confdefs.h <<\EOF
9561 #define HAVE_NCURSES_TERM_H 1
9567 cat >>confdefs.h <<\EOF
9568 #define HAVE_NCURSESW_TERM_H 1
9574 # some applications need this, but should check for NCURSES_VERSION
9576 cat >>confdefs.h <<\EOF
9580 echo "$as_me:9580: checking for ncurses version" >&5
9581 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
9582 if test "${cf_cv_ncurses_version+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 cf_cv_ncurses_version=no
9588 rm -f "$cf_tempfile"
9589 if test "$cross_compiling" = yes; then
9591 # This will not work if the preprocessor splits the line after the
9592 # Autoconf token. The 'unproto' program does that.
9593 cat > "conftest.$ac_ext" <<EOF
9594 #include <${cf_cv_ncurses_header:-curses.h}>
9596 #ifdef NCURSES_VERSION
9597 Autoconf NCURSES_VERSION
9605 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9606 { (eval echo "$as_me:9606: \"$cf_try\"") >&5
9609 echo "$as_me:9609: \$? = $ac_status" >&5
9610 (exit "$ac_status"); }
9611 if test -f conftest.out ; then
9612 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
9613 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9618 cat >"conftest.$ac_ext" <<_ACEOF
9619 #line 9619 "configure"
9620 #include "confdefs.h"
9622 #include <${cf_cv_ncurses_header:-curses.h}>
9626 FILE *fp = fopen("$cf_tempfile", "w");
9627 #ifdef NCURSES_VERSION
9628 # ifdef NCURSES_VERSION_PATCH
9629 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9631 fprintf(fp, "%s\\n", NCURSES_VERSION);
9635 fprintf(fp, "old\\n");
9640 ${cf_cv_main_return:-return}(0);
9643 rm -f "conftest$ac_exeext"
9644 if { (eval echo "$as_me:9644: \"$ac_link\"") >&5
9645 (eval $ac_link) 2>&5
9647 echo "$as_me:9647: \$? = $ac_status" >&5
9648 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9649 { (eval echo "$as_me:9649: \"$ac_try\"") >&5
9652 echo "$as_me:9652: \$? = $ac_status" >&5
9653 (exit "$ac_status"); }; }; then
9655 cf_cv_ncurses_version=`cat $cf_tempfile`
9657 echo "$as_me: program exited with status $ac_status" >&5
9658 echo "$as_me: failed program was:" >&5
9659 cat "conftest.$ac_ext" >&5
9661 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9663 rm -f "$cf_tempfile"
9666 echo "$as_me:9666: result: $cf_cv_ncurses_version" >&5
9667 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9668 test "$cf_cv_ncurses_version" = no ||
9669 cat >>confdefs.h <<\EOF
9673 cf_nculib_root=$cf_cv_screen
9674 # This works, except for the special case where we find gpm, but
9675 # ncurses is in a nonstandard location via $LIBS, and we really want
9678 cf_ncurses_SAVE="$LIBS"
9679 echo "$as_me:9679: checking for Gpm_Open in -lgpm" >&5
9680 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9681 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 ac_check_lib_save_LIBS=$LIBS
9686 cat >"conftest.$ac_ext" <<_ACEOF
9687 #line 9687 "configure"
9688 #include "confdefs.h"
9690 /* Override any gcc2 internal prototype to avoid an error. */
9694 /* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9705 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9706 if { (eval echo "$as_me:9706: \"$ac_link\"") >&5
9707 (eval $ac_link) 2>&5
9709 echo "$as_me:9709: \$? = $ac_status" >&5
9710 (exit "$ac_status"); } &&
9711 { ac_try='test -s "conftest$ac_exeext"'
9712 { (eval echo "$as_me:9712: \"$ac_try\"") >&5
9715 echo "$as_me:9715: \$? = $ac_status" >&5
9716 (exit "$ac_status"); }; }; then
9717 ac_cv_lib_gpm_Gpm_Open=yes
9719 echo "$as_me: failed program was:" >&5
9720 cat "conftest.$ac_ext" >&5
9721 ac_cv_lib_gpm_Gpm_Open=no
9723 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9724 LIBS=$ac_check_lib_save_LIBS
9726 echo "$as_me:9726: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9727 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9728 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
9729 echo "$as_me:9729: checking for initscr in -lgpm" >&5
9730 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9731 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 ac_check_lib_save_LIBS=$LIBS
9736 cat >"conftest.$ac_ext" <<_ACEOF
9737 #line 9737 "configure"
9738 #include "confdefs.h"
9740 /* Override any gcc2 internal prototype to avoid an error. */
9744 /* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */
9755 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9756 if { (eval echo "$as_me:9756: \"$ac_link\"") >&5
9757 (eval $ac_link) 2>&5
9759 echo "$as_me:9759: \$? = $ac_status" >&5
9760 (exit "$ac_status"); } &&
9761 { ac_try='test -s "conftest$ac_exeext"'
9762 { (eval echo "$as_me:9762: \"$ac_try\"") >&5
9765 echo "$as_me:9765: \$? = $ac_status" >&5
9766 (exit "$ac_status"); }; }; then
9767 ac_cv_lib_gpm_initscr=yes
9769 echo "$as_me: failed program was:" >&5
9770 cat "conftest.$ac_ext" >&5
9771 ac_cv_lib_gpm_initscr=no
9773 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9774 LIBS=$ac_check_lib_save_LIBS
9776 echo "$as_me:9776: result: $ac_cv_lib_gpm_initscr" >&5
9777 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9778 if test "$ac_cv_lib_gpm_initscr" = yes; then
9779 LIBS="$cf_ncurses_SAVE"
9781 cf_ncurses_LIBS="-lgpm"
9788 # This is only necessary if you are linking against an obsolete
9789 # version of ncurses (but it should do no harm, since it is static).
9790 if test "$cf_nculib_root" = ncurses ; then
9791 echo "$as_me:9791: checking for tgoto in -lmytinfo" >&5
9792 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9793 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-lmytinfo $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. */
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_mytinfo_tgoto=yes
9831 echo "$as_me: failed program was:" >&5
9832 cat "conftest.$ac_ext" >&5
9833 ac_cv_lib_mytinfo_tgoto=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_mytinfo_tgoto" >&5
9839 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9840 if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
9841 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9851 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9853 for cf_add_1lib in $cf_add_0lib; do
9854 for cf_add_2lib in $cf_add_libs; do
9855 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9860 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9864 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
9870 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9872 for cf_add_1lib in $cf_add_0lib; do
9873 for cf_add_2lib in $cf_add_libs; do
9874 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9879 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9885 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
9887 echo "$as_me:9887: checking for initscr" >&5
9888 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9889 if test "${ac_cv_func_initscr+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >"conftest.$ac_ext" <<_ACEOF
9893 #line 9893 "configure"
9894 #include "confdefs.h"
9895 #define initscr autoconf_temporary
9896 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9903 /* We use char because int might match the return type of a gcc2
9904 builtin and then its argument prototype would still apply. */
9905 char initscr (void);
9911 /* The GNU C library defines stubs for functions which it implements
9912 to always fail with ENOSYS. Some functions are actually named
9913 something starting with __ and the normal name is an alias. */
9914 #if defined (__stub_initscr) || defined (__stub___initscr)
9915 #error found stub for initscr
9923 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9924 if { (eval echo "$as_me:9924: \"$ac_link\"") >&5
9925 (eval $ac_link) 2>&5
9927 echo "$as_me:9927: \$? = $ac_status" >&5
9928 (exit "$ac_status"); } &&
9929 { ac_try='test -s "conftest$ac_exeext"'
9930 { (eval echo "$as_me:9930: \"$ac_try\"") >&5
9933 echo "$as_me:9933: \$? = $ac_status" >&5
9934 (exit "$ac_status"); }; }; then
9935 ac_cv_func_initscr=yes
9937 echo "$as_me: failed program was:" >&5
9938 cat "conftest.$ac_ext" >&5
9939 ac_cv_func_initscr=no
9941 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9943 echo "$as_me:9943: result: $ac_cv_func_initscr" >&5
9944 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9945 if test "$ac_cv_func_initscr" = yes; then
9946 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
9949 cf_save_LIBS="$LIBS"
9950 echo "$as_me:9950: checking for initscr in -l$cf_nculib_root" >&5
9951 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9952 LIBS="-l$cf_nculib_root $LIBS"
9953 cat >"conftest.$ac_ext" <<_ACEOF
9954 #line 9954 "configure"
9955 #include "confdefs.h"
9956 #include <${cf_cv_ncurses_header:-curses.h}>
9965 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9966 if { (eval echo "$as_me:9966: \"$ac_link\"") >&5
9967 (eval $ac_link) 2>&5
9969 echo "$as_me:9969: \$? = $ac_status" >&5
9970 (exit "$ac_status"); } &&
9971 { ac_try='test -s "conftest$ac_exeext"'
9972 { (eval echo "$as_me:9972: \"$ac_try\"") >&5
9975 echo "$as_me:9975: \$? = $ac_status" >&5
9976 (exit "$ac_status"); }; }; then
9977 echo "$as_me:9977: result: yes" >&5
9978 echo "${ECHO_T}yes" >&6
9979 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
9982 echo "$as_me: failed program was:" >&5
9983 cat "conftest.$ac_ext" >&5
9984 echo "$as_me:9984: result: no" >&5
9985 echo "${ECHO_T}no" >&6
9988 cf_library_path_list=""
9989 if test -n "${LDFLAGS}${LIBS}" ; then
9990 for cf_library_path in $LDFLAGS $LIBS
9992 case "$cf_library_path" in
9994 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9996 test "x$cf_library_path" != "xNONE" && \
9997 test -d "$cf_library_path" && \
9999 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10000 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
10001 test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
10002 test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
10003 test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
10004 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"
10007 cf_library_path_list="$cf_library_path_list $cf_search"
10015 test "x$prefix" != "xNONE" && \
10016 test -d "$prefix" && \
10018 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10019 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
10020 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
10021 test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
10022 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
10023 test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
10026 for cf_subdir_prefix in \
10035 test "x$cf_subdir_prefix" != "x$prefix" && \
10036 test -d "$cf_subdir_prefix" && \
10037 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
10038 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10039 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
10040 test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
10041 test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
10042 test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
10043 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"
10048 cf_search="$cf_library_path_list $cf_search"
10050 for cf_libdir in $cf_search
10052 echo "$as_me:10052: checking for -l$cf_nculib_root in $cf_libdir" >&5
10053 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
10054 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
10055 cat >"conftest.$ac_ext" <<_ACEOF
10056 #line 10056 "configure"
10057 #include "confdefs.h"
10058 #include <${cf_cv_ncurses_header:-curses.h}>
10067 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10068 if { (eval echo "$as_me:10068: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>&5
10071 echo "$as_me:10071: \$? = $ac_status" >&5
10072 (exit "$ac_status"); } &&
10073 { ac_try='test -s "conftest$ac_exeext"'
10074 { (eval echo "$as_me:10074: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:10077: \$? = $ac_status" >&5
10078 (exit "$ac_status"); }; }; then
10079 echo "$as_me:10079: result: yes" >&5
10080 echo "${ECHO_T}yes" >&6
10081 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
10084 echo "$as_me: failed program was:" >&5
10085 cat "conftest.$ac_ext" >&5
10086 echo "$as_me:10086: result: no" >&5
10087 echo "${ECHO_T}no" >&6
10088 LIBS="$cf_save_LIBS"
10090 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10094 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10098 eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
10100 if test "$cf_found_library" = no ; then
10101 { { echo "$as_me:10101: error: Cannot link $cf_nculib_root library" >&5
10102 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
10103 { (exit 1); exit 1; }; }
10108 if test -n "$cf_ncurses_LIBS" ; then
10109 echo "$as_me:10109: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
10110 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
10111 cf_ncurses_SAVE="$LIBS"
10112 for p in $cf_ncurses_LIBS ; do
10113 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
10114 if test "$q" != "$LIBS" ; then
10118 cat >"conftest.$ac_ext" <<_ACEOF
10119 #line 10119 "configure"
10120 #include "confdefs.h"
10121 #include <${cf_cv_ncurses_header:-curses.h}>
10125 initscr(); mousemask(0,0); tigetstr((char *)0);
10130 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10131 if { (eval echo "$as_me:10131: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>&5
10134 echo "$as_me:10134: \$? = $ac_status" >&5
10135 (exit "$ac_status"); } &&
10136 { ac_try='test -s "conftest$ac_exeext"'
10137 { (eval echo "$as_me:10137: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:10140: \$? = $ac_status" >&5
10141 (exit "$ac_status"); }; }; then
10142 echo "$as_me:10142: result: yes" >&5
10143 echo "${ECHO_T}yes" >&6
10145 echo "$as_me: failed program was:" >&5
10146 cat "conftest.$ac_ext" >&5
10147 echo "$as_me:10147: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10149 LIBS="$cf_ncurses_SAVE"
10151 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10154 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10156 cat >>confdefs.h <<EOF
10157 #define $cf_nculib_ROOT 1
10162 NCURSES_CONFIG=none
10168 cf_ncuconfig_root=$cf_cv_screen
10169 cf_have_ncuconfig=no
10171 if test "x${PKG_CONFIG:=none}" != xnone; then
10172 echo "$as_me:10172: checking pkg-config for $cf_ncuconfig_root" >&5
10173 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
10174 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
10175 echo "$as_me:10175: result: yes" >&5
10176 echo "${ECHO_T}yes" >&6
10178 echo "$as_me:10178: checking if the $cf_ncuconfig_root package files work" >&5
10179 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
10180 cf_have_ncuconfig=unknown
10182 cf_save_CFLAGS="$CFLAGS"
10183 cf_save_CPPFLAGS="$CPPFLAGS"
10184 cf_save_LIBS="$LIBS"
10186 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
10187 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
10189 # while -W for passing linker flags is prevalent, it is not "standard".
10190 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
10191 # incompatible _and_ non-standard -W option which gives an error. Work
10192 # around that pitfall.
10193 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
10199 cf_new_extra_cppflags=
10201 for cf_add_cflags in $cf_pkg_cflags
10203 case "$cf_fix_cppflags" in
10205 case "$cf_add_cflags" in
10206 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10207 case "$cf_add_cflags" in
10209 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10211 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10212 && test -z "${cf_tst_cflags}" \
10213 && cf_fix_cppflags=yes
10215 if test "$cf_fix_cppflags" = yes ; then
10217 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10218 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10221 elif test "${cf_tst_cflags}" = "\"'" ; then
10223 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10224 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10230 case "$CPPFLAGS" in
10234 case "$cf_add_cflags" in
10236 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10238 CPPFLAGS=`echo "$CPPFLAGS" | \
10239 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10240 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10245 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10246 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10253 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10254 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10261 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10262 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10264 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10266 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10267 && test -z "${cf_tst_cflags}" \
10268 && cf_fix_cppflags=no
10273 if test -n "$cf_new_cflags" ; then
10275 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10276 CFLAGS="${CFLAGS}$cf_new_cflags"
10280 if test -n "$cf_new_cppflags" ; then
10282 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10283 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10287 if test -n "$cf_new_extra_cppflags" ; then
10289 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10290 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10294 cf_add_libs="$LIBS"
10297 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10298 # filter duplicates
10299 for cf_add_1lib in $cf_add_0lib; do
10300 for cf_add_2lib in $cf_add_libs; do
10301 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10306 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10308 LIBS="$cf_add_libs"
10310 cat >"conftest.$ac_ext" <<_ACEOF
10311 #line 10311 "configure"
10312 #include "confdefs.h"
10313 #include <${cf_cv_ncurses_header:-curses.h}>
10317 initscr(); mousemask(0,0); tigetstr((char *)0);
10322 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10323 if { (eval echo "$as_me:10323: \"$ac_link\"") >&5
10324 (eval $ac_link) 2>&5
10326 echo "$as_me:10326: \$? = $ac_status" >&5
10327 (exit "$ac_status"); } &&
10328 { ac_try='test -s "conftest$ac_exeext"'
10329 { (eval echo "$as_me:10329: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:10332: \$? = $ac_status" >&5
10333 (exit "$ac_status"); }; }; then
10334 if test "$cross_compiling" = yes; then
10335 cf_test_ncuconfig=maybe
10337 cat >"conftest.$ac_ext" <<_ACEOF
10338 #line 10338 "configure"
10339 #include "confdefs.h"
10340 #include <${cf_cv_ncurses_header:-curses.h}>
10342 { const char *xx = curses_version(); return (xx == 0); }
10344 rm -f "conftest$ac_exeext"
10345 if { (eval echo "$as_me:10345: \"$ac_link\"") >&5
10346 (eval $ac_link) 2>&5
10348 echo "$as_me:10348: \$? = $ac_status" >&5
10349 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10350 { (eval echo "$as_me:10350: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:10353: \$? = $ac_status" >&5
10354 (exit "$ac_status"); }; }; then
10355 cf_test_ncuconfig=yes
10357 echo "$as_me: program exited with status $ac_status" >&5
10358 echo "$as_me: failed program was:" >&5
10359 cat "conftest.$ac_ext" >&5
10360 cf_test_ncuconfig=no
10362 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10365 echo "$as_me: failed program was:" >&5
10366 cat "conftest.$ac_ext" >&5
10367 cf_test_ncuconfig=no
10369 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10371 CFLAGS="$cf_save_CFLAGS"
10372 CPPFLAGS="$cf_save_CPPFLAGS"
10373 LIBS="$cf_save_LIBS"
10375 if test "x$cf_test_ncuconfig" != xyes; then
10376 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
10377 cf_pkg_cflags="$cf_temp"
10378 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
10379 cf_pkg_libs="$cf_temp"
10384 for cf_add_cflags in $cf_pkg_cflags
10386 case "x$cf_add_cflags" in
10389 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10392 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10393 test "$CFLAGS" != "$cf_old_cflag" || break
10395 CFLAGS="$cf_old_cflag"
10398 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10401 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10402 test "$CPPFLAGS" != "$cf_old_cflag" || break
10404 CPPFLAGS="$cf_old_cflag"
10413 cf_new_extra_cppflags=
10415 for cf_add_cflags in $cf_add_cflags
10417 case "$cf_fix_cppflags" in
10419 case "$cf_add_cflags" in
10420 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10421 case "$cf_add_cflags" in
10423 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10425 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10426 && test -z "${cf_tst_cflags}" \
10427 && cf_fix_cppflags=yes
10429 if test "$cf_fix_cppflags" = yes ; then
10431 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10432 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10435 elif test "${cf_tst_cflags}" = "\"'" ; then
10437 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10438 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10444 case "$CPPFLAGS" in
10448 case "$cf_add_cflags" in
10450 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10452 CPPFLAGS=`echo "$CPPFLAGS" | \
10453 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10454 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10459 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10460 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10467 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10468 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10475 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10476 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10478 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10480 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10481 && test -z "${cf_tst_cflags}" \
10482 && cf_fix_cppflags=no
10487 if test -n "$cf_new_cflags" ; then
10489 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10490 CFLAGS="${CFLAGS}$cf_new_cflags"
10494 if test -n "$cf_new_cppflags" ; then
10496 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10497 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10501 if test -n "$cf_new_extra_cppflags" ; then
10503 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10504 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10510 cf_add_libs="$LIBS"
10513 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10514 # filter duplicates
10515 for cf_add_1lib in $cf_add_0lib; do
10516 for cf_add_2lib in $cf_add_libs; do
10517 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10522 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10524 LIBS="$cf_add_libs"
10526 cat >"conftest.$ac_ext" <<_ACEOF
10527 #line 10527 "configure"
10528 #include "confdefs.h"
10529 #include <${cf_cv_ncurses_header:-curses.h}>
10533 initscr(); mousemask(0,0); tigetstr((char *)0);
10538 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10539 if { (eval echo "$as_me:10539: \"$ac_link\"") >&5
10540 (eval $ac_link) 2>&5
10542 echo "$as_me:10542: \$? = $ac_status" >&5
10543 (exit "$ac_status"); } &&
10544 { ac_try='test -s "conftest$ac_exeext"'
10545 { (eval echo "$as_me:10545: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10548 echo "$as_me:10548: \$? = $ac_status" >&5
10549 (exit "$ac_status"); }; }; then
10550 if test "$cross_compiling" = yes; then
10551 cf_have_ncuconfig=maybe
10553 cat >"conftest.$ac_ext" <<_ACEOF
10554 #line 10554 "configure"
10555 #include "confdefs.h"
10556 #include <${cf_cv_ncurses_header:-curses.h}>
10558 { const char *xx = curses_version(); return (xx == 0); }
10560 rm -f "conftest$ac_exeext"
10561 if { (eval echo "$as_me:10561: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>&5
10564 echo "$as_me:10564: \$? = $ac_status" >&5
10565 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10566 { (eval echo "$as_me:10566: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:10569: \$? = $ac_status" >&5
10570 (exit "$ac_status"); }; }; then
10571 cf_have_ncuconfig=yes
10573 echo "$as_me: program exited with status $ac_status" >&5
10574 echo "$as_me: failed program was:" >&5
10575 cat "conftest.$ac_ext" >&5
10576 cf_have_ncuconfig=no
10578 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10581 echo "$as_me: failed program was:" >&5
10582 cat "conftest.$ac_ext" >&5
10583 cf_have_ncuconfig=no
10585 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10586 echo "$as_me:10586: result: $cf_have_ncuconfig" >&5
10587 echo "${ECHO_T}$cf_have_ncuconfig" >&6
10588 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
10589 if test "$cf_have_ncuconfig" != "yes"
10591 CPPFLAGS="$cf_save_CPPFLAGS"
10592 LIBS="$cf_save_LIBS"
10593 NCURSES_CONFIG_PKG=none
10596 cat >>confdefs.h <<\EOF
10600 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
10602 echo "$as_me:10602: checking for terminfo header" >&5
10603 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
10604 if test "${cf_cv_term_header+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 case "${cf_cv_ncurses_header}" in
10609 (*/ncurses.h|*/ncursesw.h)
10610 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
10613 cf_term_header=term.h
10617 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
10619 cat >"conftest.$ac_ext" <<_ACEOF
10620 #line 10620 "configure"
10621 #include "confdefs.h"
10623 #include <${cf_cv_ncurses_header:-curses.h}>
10624 #include <$cf_test>
10629 int x = auto_left_margin; (void)x
10634 rm -f "conftest.$ac_objext"
10635 if { (eval echo "$as_me:10635: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>&5
10638 echo "$as_me:10638: \$? = $ac_status" >&5
10639 (exit "$ac_status"); } &&
10640 { ac_try='test -s "conftest.$ac_objext"'
10641 { (eval echo "$as_me:10641: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:10644: \$? = $ac_status" >&5
10645 (exit "$ac_status"); }; }; then
10647 cf_cv_term_header="$cf_test"
10649 echo "$as_me: failed program was:" >&5
10650 cat "conftest.$ac_ext" >&5
10652 cf_cv_term_header=unknown
10655 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10656 test "$cf_cv_term_header" != unknown && break
10660 echo "$as_me:10660: result: $cf_cv_term_header" >&5
10661 echo "${ECHO_T}$cf_cv_term_header" >&6
10663 # Set definitions to allow ifdef'ing to accommodate subdirectories
10665 case "$cf_cv_term_header" in
10668 cat >>confdefs.h <<\EOF
10669 #define HAVE_TERM_H 1
10675 case "$cf_cv_term_header" in
10678 cat >>confdefs.h <<\EOF
10679 #define HAVE_NCURSES_TERM_H 1
10685 cat >>confdefs.h <<\EOF
10686 #define HAVE_NCURSESW_TERM_H 1
10695 echo "$as_me:10695: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10697 NCURSES_CONFIG_PKG=none
10700 NCURSES_CONFIG_PKG=none
10703 if test "x$cf_have_ncuconfig" = "xno"; then
10704 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
10706 if test -n "$ac_tool_prefix"; then
10707 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
10709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10711 echo "$as_me:10711: checking for $ac_word" >&5
10712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10713 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 if test -n "$NCURSES_CONFIG"; then
10717 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
10719 ac_save_IFS=$IFS; IFS=$ac_path_separator
10721 for ac_dir in $ac_dummy; do
10723 test -z "$ac_dir" && ac_dir=.
10724 $as_executable_p "$ac_dir/$ac_word" || continue
10725 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
10726 echo "$as_me:10726: found $ac_dir/$ac_word" >&5
10732 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
10733 if test -n "$NCURSES_CONFIG"; then
10734 echo "$as_me:10734: result: $NCURSES_CONFIG" >&5
10735 echo "${ECHO_T}$NCURSES_CONFIG" >&6
10737 echo "$as_me:10737: result: no" >&5
10738 echo "${ECHO_T}no" >&6
10741 test -n "$NCURSES_CONFIG" && break
10744 if test -z "$NCURSES_CONFIG"; then
10745 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
10746 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
10748 # Extract the first word of "$ac_prog", so it can be a program name with args.
10749 set dummy $ac_prog; ac_word=$2
10750 echo "$as_me:10750: checking for $ac_word" >&5
10751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 if test -n "$ac_ct_NCURSES_CONFIG"; then
10756 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
10758 ac_save_IFS=$IFS; IFS=$ac_path_separator
10760 for ac_dir in $ac_dummy; do
10762 test -z "$ac_dir" && ac_dir=.
10763 $as_executable_p "$ac_dir/$ac_word" || continue
10764 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
10765 echo "$as_me:10765: found $ac_dir/$ac_word" >&5
10771 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
10772 if test -n "$ac_ct_NCURSES_CONFIG"; then
10773 echo "$as_me:10773: result: $ac_ct_NCURSES_CONFIG" >&5
10774 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
10776 echo "$as_me:10776: result: no" >&5
10777 echo "${ECHO_T}no" >&6
10780 test -n "$ac_ct_NCURSES_CONFIG" && break
10782 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
10784 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
10787 if test "$NCURSES_CONFIG" != none ; then
10789 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
10791 case "x$cf_add_cflags" in
10794 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10797 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10798 test "$CFLAGS" != "$cf_old_cflag" || break
10800 CFLAGS="$cf_old_cflag"
10803 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10806 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10807 test "$CPPFLAGS" != "$cf_old_cflag" || break
10809 CPPFLAGS="$cf_old_cflag"
10818 cf_new_extra_cppflags=
10820 for cf_add_cflags in $cf_add_cflags
10822 case "$cf_fix_cppflags" in
10824 case "$cf_add_cflags" in
10825 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10826 case "$cf_add_cflags" in
10828 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10830 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10831 && test -z "${cf_tst_cflags}" \
10832 && cf_fix_cppflags=yes
10834 if test "$cf_fix_cppflags" = yes ; then
10836 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10837 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10840 elif test "${cf_tst_cflags}" = "\"'" ; then
10842 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10843 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10849 case "$CPPFLAGS" in
10853 case "$cf_add_cflags" in
10855 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10857 CPPFLAGS=`echo "$CPPFLAGS" | \
10858 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10859 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10864 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10865 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10872 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10873 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10880 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10881 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10883 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10885 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10886 && test -z "${cf_tst_cflags}" \
10887 && cf_fix_cppflags=no
10892 if test -n "$cf_new_cflags" ; then
10894 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10895 CFLAGS="${CFLAGS}$cf_new_cflags"
10899 if test -n "$cf_new_cppflags" ; then
10901 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10902 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10906 if test -n "$cf_new_extra_cppflags" ; then
10908 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10909 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10915 cf_add_libs="$LIBS"
10918 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10919 # filter duplicates
10920 for cf_add_1lib in $cf_add_0lib; do
10921 for cf_add_2lib in $cf_add_libs; do
10922 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10927 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10929 LIBS="$cf_add_libs"
10931 # even with config script, some packages use no-override for curses.h
10933 echo "$as_me:10933: checking if we have identified curses headers" >&5
10934 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
10935 if test "${cf_cv_ncurses_header+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 cf_cv_ncurses_header=none
10941 ncurses.h $cf_cv_screen/ncurses.h \
10942 curses.h $cf_cv_screen/curses.h
10944 cat >"conftest.$ac_ext" <<_ACEOF
10945 #line 10945 "configure"
10946 #include "confdefs.h"
10947 #include <${cf_header}>
10951 initscr(); tgoto("?", 0,0)
10956 rm -f "conftest.$ac_objext"
10957 if { (eval echo "$as_me:10957: \"$ac_compile\"") >&5
10958 (eval $ac_compile) 2>&5
10960 echo "$as_me:10960: \$? = $ac_status" >&5
10961 (exit "$ac_status"); } &&
10962 { ac_try='test -s "conftest.$ac_objext"'
10963 { (eval echo "$as_me:10963: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10966 echo "$as_me:10966: \$? = $ac_status" >&5
10967 (exit "$ac_status"); }; }; then
10968 cf_cv_ncurses_header=$cf_header; break
10970 echo "$as_me: failed program was:" >&5
10971 cat "conftest.$ac_ext" >&5
10973 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10977 echo "$as_me:10977: result: $cf_cv_ncurses_header" >&5
10978 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
10980 if test "$cf_cv_ncurses_header" = none ; then
10981 { { echo "$as_me:10981: error: No curses header-files found" >&5
10982 echo "$as_me: error: No curses header-files found" >&2;}
10983 { (exit 1); exit 1; }; }
10986 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
10988 for ac_header in $cf_cv_ncurses_header
10990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10991 echo "$as_me:10991: checking for $ac_header" >&5
10992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 cat >"conftest.$ac_ext" <<_ACEOF
10997 #line 10997 "configure"
10998 #include "confdefs.h"
10999 #include <$ac_header>
11001 if { (eval echo "$as_me:11001: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11002 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11004 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11006 cat conftest.err >&5
11007 echo "$as_me:11007: \$? = $ac_status" >&5
11008 (exit "$ac_status"); } >/dev/null; then
11009 if test -s conftest.err; then
11010 ac_cpp_err=$ac_c_preproc_warn_flag
11017 if test -z "$ac_cpp_err"; then
11018 eval "$as_ac_Header=yes"
11020 echo "$as_me: failed program was:" >&5
11021 cat "conftest.$ac_ext" >&5
11022 eval "$as_ac_Header=no"
11024 rm -f conftest.err "conftest.$ac_ext"
11026 echo "$as_me:11026: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11027 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11028 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11029 cat >>confdefs.h <<EOF
11030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11036 cat >>confdefs.h <<\EOF
11040 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11042 cat >>confdefs.h <<EOF
11043 #define $cf_nculib_ROOT 1
11046 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
11050 cf_ncuhdr_root=$cf_cv_screen
11052 test -n "$cf_cv_curses_dir" && \
11053 test "$cf_cv_curses_dir" != "no" && { \
11055 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
11056 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
11058 while test "$cf_add_incdir" != /usr/include
11060 if test -d "$cf_add_incdir"
11063 if test -n "$CFLAGS$CPPFLAGS" ; then
11064 # a loop is needed to ensure we can add subdirs of existing dirs
11065 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11066 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11067 cf_have_incdir=yes; break
11072 if test "$cf_have_incdir" = no ; then
11073 if test "$cf_add_incdir" = /usr/local/include ; then
11074 if test "$GCC" = yes
11076 cf_save_CPPFLAGS=$CPPFLAGS
11078 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11079 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11081 cat >"conftest.$ac_ext" <<_ACEOF
11082 #line 11082 "configure"
11083 #include "confdefs.h"
11093 rm -f "conftest.$ac_objext"
11094 if { (eval echo "$as_me:11094: \"$ac_compile\"") >&5
11095 (eval $ac_compile) 2>&5
11097 echo "$as_me:11097: \$? = $ac_status" >&5
11098 (exit "$ac_status"); } &&
11099 { ac_try='test -s "conftest.$ac_objext"'
11100 { (eval echo "$as_me:11100: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11103 echo "$as_me:11103: \$? = $ac_status" >&5
11104 (exit "$ac_status"); }; }; then
11107 echo "$as_me: failed program was:" >&5
11108 cat "conftest.$ac_ext" >&5
11111 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11112 CPPFLAGS=$cf_save_CPPFLAGS
11117 if test "$cf_have_incdir" = no ; then
11118 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11120 echo "${as_me:-configure}:11120: testing adding $cf_add_incdir to include-path ..." 1>&5
11122 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11124 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11125 test "$cf_top_incdir" = "$cf_add_incdir" && break
11126 cf_add_incdir="$cf_top_incdir"
11139 echo "$as_me:11139: checking for $cf_ncuhdr_root header in include-path" >&5
11140 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
11141 if test "${cf_cv_ncurses_h+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
11146 { test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_header_list curses.h ncurses.h"
11147 for cf_header in $cf_header_list
11150 cat >"conftest.$ac_ext" <<_ACEOF
11151 #line 11151 "configure"
11152 #include "confdefs.h"
11154 #include <$cf_header>
11159 #ifdef NCURSES_VERSION
11161 printf("%s\\n", NCURSES_VERSION);
11174 rm -f "conftest.$ac_objext"
11175 if { (eval echo "$as_me:11175: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>&5
11178 echo "$as_me:11178: \$? = $ac_status" >&5
11179 (exit "$ac_status"); } &&
11180 { ac_try='test -s "conftest.$ac_objext"'
11181 { (eval echo "$as_me:11181: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:11184: \$? = $ac_status" >&5
11185 (exit "$ac_status"); }; }; then
11186 cf_cv_ncurses_h=$cf_header
11189 echo "$as_me: failed program was:" >&5
11190 cat "conftest.$ac_ext" >&5
11193 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11195 test "$cf_cv_ncurses_h" != no && break
11199 echo "$as_me:11199: result: $cf_cv_ncurses_h" >&5
11200 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
11202 if test "$cf_cv_ncurses_h" != no ; then
11203 cf_cv_ncurses_header=$cf_cv_ncurses_h
11206 echo "$as_me:11206: checking for $cf_ncuhdr_root include-path" >&5
11207 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
11208 if test "${cf_cv_ncurses_h2+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 test -n "$verbose" && echo
11216 # collect the current set of include-directories from compiler flags
11217 cf_header_path_list=""
11218 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11219 for cf_header_path in $CPPFLAGS $CFLAGS
11221 case "$cf_header_path" in
11223 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11225 test "x$cf_header_path" != "xNONE" && \
11226 test -d "$cf_header_path" && \
11228 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11229 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
11230 test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
11231 test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
11232 test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
11233 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"
11236 cf_header_path_list="$cf_header_path_list $cf_search"
11242 # add the variations for the package we are looking for
11246 test "x$prefix" != "xNONE" && \
11247 test -d "$prefix" && \
11249 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11250 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
11251 test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
11252 test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
11253 test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
11254 test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11257 for cf_subdir_prefix in \
11266 test "x$cf_subdir_prefix" != "x$prefix" && \
11267 test -d "$cf_subdir_prefix" && \
11268 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
11269 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
11270 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
11271 test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
11272 test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
11273 test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
11274 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"
11279 test "$includedir" != NONE && \
11280 test "$includedir" != "/usr/include" && \
11281 test -d "$includedir" && {
11282 test -d "$includedir" && cf_search="$cf_search $includedir"
11283 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
11286 test "$oldincludedir" != NONE && \
11287 test "$oldincludedir" != "/usr/include" && \
11288 test -d "$oldincludedir" && {
11289 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
11290 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
11293 cf_search="$cf_search $cf_header_path_list"
11295 test -n "$verbose" && echo "search path $cf_search"
11296 cf_save2_CPPFLAGS="$CPPFLAGS"
11297 for cf_incdir in $cf_search
11300 if test -n "$cf_incdir" ; then
11301 for cf_add_incdir in $cf_incdir
11303 while test "$cf_add_incdir" != /usr/include
11305 if test -d "$cf_add_incdir"
11308 if test -n "$CFLAGS$CPPFLAGS" ; then
11309 # a loop is needed to ensure we can add subdirs of existing dirs
11310 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11311 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11312 cf_have_incdir=yes; break
11317 if test "$cf_have_incdir" = no ; then
11318 if test "$cf_add_incdir" = /usr/local/include ; then
11319 if test "$GCC" = yes
11321 cf_save_CPPFLAGS=$CPPFLAGS
11323 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11324 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11326 cat >"conftest.$ac_ext" <<_ACEOF
11327 #line 11327 "configure"
11328 #include "confdefs.h"
11338 rm -f "conftest.$ac_objext"
11339 if { (eval echo "$as_me:11339: \"$ac_compile\"") >&5
11340 (eval $ac_compile) 2>&5
11342 echo "$as_me:11342: \$? = $ac_status" >&5
11343 (exit "$ac_status"); } &&
11344 { ac_try='test -s "conftest.$ac_objext"'
11345 { (eval echo "$as_me:11345: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:11348: \$? = $ac_status" >&5
11349 (exit "$ac_status"); }; }; then
11352 echo "$as_me: failed program was:" >&5
11353 cat "conftest.$ac_ext" >&5
11356 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11357 CPPFLAGS=$cf_save_CPPFLAGS
11362 if test "$cf_have_incdir" = no ; then
11363 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11365 echo "${as_me:-configure}:11365: testing adding $cf_add_incdir to include-path ..." 1>&5
11367 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11369 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11370 test "$cf_top_incdir" = "$cf_add_incdir" && break
11371 cf_add_incdir="$cf_top_incdir"
11387 cat >"conftest.$ac_ext" <<_ACEOF
11388 #line 11388 "configure"
11389 #include "confdefs.h"
11391 #include <$cf_header>
11396 #ifdef NCURSES_VERSION
11398 printf("%s\\n", NCURSES_VERSION);
11411 rm -f "conftest.$ac_objext"
11412 if { (eval echo "$as_me:11412: \"$ac_compile\"") >&5
11413 (eval $ac_compile) 2>&5
11415 echo "$as_me:11415: \$? = $ac_status" >&5
11416 (exit "$ac_status"); } &&
11417 { ac_try='test -s "conftest.$ac_objext"'
11418 { (eval echo "$as_me:11418: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:11421: \$? = $ac_status" >&5
11422 (exit "$ac_status"); }; }; then
11423 cf_cv_ncurses_h2=$cf_header
11426 echo "$as_me: failed program was:" >&5
11427 cat "conftest.$ac_ext" >&5
11428 cf_cv_ncurses_h2=no
11430 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11432 if test "$cf_cv_ncurses_h2" != no ; then
11433 cf_cv_ncurses_h2=$cf_incdir/$cf_header
11434 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
11437 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
11439 CPPFLAGS="$cf_save2_CPPFLAGS"
11440 test "$cf_cv_ncurses_h2" != no && break
11442 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:11442: error: not found" >&5
11443 echo "$as_me: error: not found" >&2;}
11444 { (exit 1); exit 1; }; }
11447 echo "$as_me:11447: result: $cf_cv_ncurses_h2" >&5
11448 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
11450 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
11451 cf_cv_ncurses_header="`basename "$cf_cv_ncurses_h2"`"
11452 if test "`basename "$cf_1st_incdir"`" = "$cf_ncuhdr_root" ; then
11453 cf_cv_ncurses_header="$cf_ncuhdr_root/$cf_cv_ncurses_header"
11456 if test -n "$cf_1st_incdir" ; then
11457 for cf_add_incdir in $cf_1st_incdir
11459 while test "$cf_add_incdir" != /usr/include
11461 if test -d "$cf_add_incdir"
11464 if test -n "$CFLAGS$CPPFLAGS" ; then
11465 # a loop is needed to ensure we can add subdirs of existing dirs
11466 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11467 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11468 cf_have_incdir=yes; break
11473 if test "$cf_have_incdir" = no ; then
11474 if test "$cf_add_incdir" = /usr/local/include ; then
11475 if test "$GCC" = yes
11477 cf_save_CPPFLAGS=$CPPFLAGS
11479 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11480 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11482 cat >"conftest.$ac_ext" <<_ACEOF
11483 #line 11483 "configure"
11484 #include "confdefs.h"
11494 rm -f "conftest.$ac_objext"
11495 if { (eval echo "$as_me:11495: \"$ac_compile\"") >&5
11496 (eval $ac_compile) 2>&5
11498 echo "$as_me:11498: \$? = $ac_status" >&5
11499 (exit "$ac_status"); } &&
11500 { ac_try='test -s "conftest.$ac_objext"'
11501 { (eval echo "$as_me:11501: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:11504: \$? = $ac_status" >&5
11505 (exit "$ac_status"); }; }; then
11508 echo "$as_me: failed program was:" >&5
11509 cat "conftest.$ac_ext" >&5
11512 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11513 CPPFLAGS=$cf_save_CPPFLAGS
11518 if test "$cf_have_incdir" = no ; then
11519 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11521 echo "${as_me:-configure}:11521: testing adding $cf_add_incdir to include-path ..." 1>&5
11523 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11525 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11526 test "$cf_top_incdir" = "$cf_add_incdir" && break
11527 cf_add_incdir="$cf_top_incdir"
11540 # Set definitions to allow ifdef'ing for ncurses.h
11542 case "$cf_cv_ncurses_header" in
11545 cat >>confdefs.h <<\EOF
11546 #define HAVE_NCURSES_H 1
11552 case "$cf_cv_ncurses_header" in
11553 (ncurses/curses.h|ncurses/ncurses.h)
11555 cat >>confdefs.h <<\EOF
11556 #define HAVE_NCURSES_NCURSES_H 1
11560 (ncursesw/curses.h|ncursesw/ncurses.h)
11562 cat >>confdefs.h <<\EOF
11563 #define HAVE_NCURSESW_NCURSES_H 1
11569 echo "$as_me:11569: checking for terminfo header" >&5
11570 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
11571 if test "${cf_cv_term_header+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 case "${cf_cv_ncurses_header}" in
11576 (*/ncurses.h|*/ncursesw.h)
11577 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
11580 cf_term_header=term.h
11584 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
11586 cat >"conftest.$ac_ext" <<_ACEOF
11587 #line 11587 "configure"
11588 #include "confdefs.h"
11590 #include <${cf_cv_ncurses_header:-curses.h}>
11591 #include <$cf_test>
11596 int x = auto_left_margin; (void)x
11601 rm -f "conftest.$ac_objext"
11602 if { (eval echo "$as_me:11602: \"$ac_compile\"") >&5
11603 (eval $ac_compile) 2>&5
11605 echo "$as_me:11605: \$? = $ac_status" >&5
11606 (exit "$ac_status"); } &&
11607 { ac_try='test -s "conftest.$ac_objext"'
11608 { (eval echo "$as_me:11608: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:11611: \$? = $ac_status" >&5
11612 (exit "$ac_status"); }; }; then
11614 cf_cv_term_header="$cf_test"
11616 echo "$as_me: failed program was:" >&5
11617 cat "conftest.$ac_ext" >&5
11619 cf_cv_term_header=unknown
11622 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11623 test "$cf_cv_term_header" != unknown && break
11627 echo "$as_me:11627: result: $cf_cv_term_header" >&5
11628 echo "${ECHO_T}$cf_cv_term_header" >&6
11630 # Set definitions to allow ifdef'ing to accommodate subdirectories
11632 case "$cf_cv_term_header" in
11635 cat >>confdefs.h <<\EOF
11636 #define HAVE_TERM_H 1
11642 case "$cf_cv_term_header" in
11645 cat >>confdefs.h <<\EOF
11646 #define HAVE_NCURSES_TERM_H 1
11652 cat >>confdefs.h <<\EOF
11653 #define HAVE_NCURSESW_TERM_H 1
11659 # some applications need this, but should check for NCURSES_VERSION
11661 cat >>confdefs.h <<\EOF
11665 echo "$as_me:11665: checking for ncurses version" >&5
11666 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
11667 if test "${cf_cv_ncurses_version+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 cf_cv_ncurses_version=no
11673 rm -f "$cf_tempfile"
11674 if test "$cross_compiling" = yes; then
11676 # This will not work if the preprocessor splits the line after the
11677 # Autoconf token. The 'unproto' program does that.
11678 cat > "conftest.$ac_ext" <<EOF
11679 #include <${cf_cv_ncurses_header:-curses.h}>
11681 #ifdef NCURSES_VERSION
11682 Autoconf NCURSES_VERSION
11690 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
11691 { (eval echo "$as_me:11691: \"$cf_try\"") >&5
11692 (eval $cf_try) 2>&5
11694 echo "$as_me:11694: \$? = $ac_status" >&5
11695 (exit "$ac_status"); }
11696 if test -f conftest.out ; then
11697 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
11698 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
11703 cat >"conftest.$ac_ext" <<_ACEOF
11704 #line 11704 "configure"
11705 #include "confdefs.h"
11707 #include <${cf_cv_ncurses_header:-curses.h}>
11711 FILE *fp = fopen("$cf_tempfile", "w");
11712 #ifdef NCURSES_VERSION
11713 # ifdef NCURSES_VERSION_PATCH
11714 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
11716 fprintf(fp, "%s\\n", NCURSES_VERSION);
11719 # ifdef __NCURSES_H
11720 fprintf(fp, "old\\n");
11725 ${cf_cv_main_return:-return}(0);
11728 rm -f "conftest$ac_exeext"
11729 if { (eval echo "$as_me:11729: \"$ac_link\"") >&5
11730 (eval $ac_link) 2>&5
11732 echo "$as_me:11732: \$? = $ac_status" >&5
11733 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
11734 { (eval echo "$as_me:11734: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11737 echo "$as_me:11737: \$? = $ac_status" >&5
11738 (exit "$ac_status"); }; }; then
11740 cf_cv_ncurses_version=`cat $cf_tempfile`
11742 echo "$as_me: program exited with status $ac_status" >&5
11743 echo "$as_me: failed program was:" >&5
11744 cat "conftest.$ac_ext" >&5
11746 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
11748 rm -f "$cf_tempfile"
11751 echo "$as_me:11751: result: $cf_cv_ncurses_version" >&5
11752 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
11753 test "$cf_cv_ncurses_version" = no ||
11754 cat >>confdefs.h <<\EOF
11758 cf_nculib_root=$cf_cv_screen
11759 # This works, except for the special case where we find gpm, but
11760 # ncurses is in a nonstandard location via $LIBS, and we really want
11763 cf_ncurses_SAVE="$LIBS"
11764 echo "$as_me:11764: checking for Gpm_Open in -lgpm" >&5
11765 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
11766 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 ac_check_lib_save_LIBS=$LIBS
11771 cat >"conftest.$ac_ext" <<_ACEOF
11772 #line 11772 "configure"
11773 #include "confdefs.h"
11775 /* Override any gcc2 internal prototype to avoid an error. */
11779 /* We use char because int might match the return type of a gcc2
11780 builtin and then its argument prototype would still apply. */
11790 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11791 if { (eval echo "$as_me:11791: \"$ac_link\"") >&5
11792 (eval $ac_link) 2>&5
11794 echo "$as_me:11794: \$? = $ac_status" >&5
11795 (exit "$ac_status"); } &&
11796 { ac_try='test -s "conftest$ac_exeext"'
11797 { (eval echo "$as_me:11797: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:11800: \$? = $ac_status" >&5
11801 (exit "$ac_status"); }; }; then
11802 ac_cv_lib_gpm_Gpm_Open=yes
11804 echo "$as_me: failed program was:" >&5
11805 cat "conftest.$ac_ext" >&5
11806 ac_cv_lib_gpm_Gpm_Open=no
11808 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11809 LIBS=$ac_check_lib_save_LIBS
11811 echo "$as_me:11811: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11812 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
11813 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
11814 echo "$as_me:11814: checking for initscr in -lgpm" >&5
11815 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
11816 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 ac_check_lib_save_LIBS=$LIBS
11821 cat >"conftest.$ac_ext" <<_ACEOF
11822 #line 11822 "configure"
11823 #include "confdefs.h"
11825 /* Override any gcc2 internal prototype to avoid an error. */
11829 /* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11840 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11841 if { (eval echo "$as_me:11841: \"$ac_link\"") >&5
11842 (eval $ac_link) 2>&5
11844 echo "$as_me:11844: \$? = $ac_status" >&5
11845 (exit "$ac_status"); } &&
11846 { ac_try='test -s "conftest$ac_exeext"'
11847 { (eval echo "$as_me:11847: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:11850: \$? = $ac_status" >&5
11851 (exit "$ac_status"); }; }; then
11852 ac_cv_lib_gpm_initscr=yes
11854 echo "$as_me: failed program was:" >&5
11855 cat "conftest.$ac_ext" >&5
11856 ac_cv_lib_gpm_initscr=no
11858 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11859 LIBS=$ac_check_lib_save_LIBS
11861 echo "$as_me:11861: result: $ac_cv_lib_gpm_initscr" >&5
11862 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
11863 if test "$ac_cv_lib_gpm_initscr" = yes; then
11864 LIBS="$cf_ncurses_SAVE"
11866 cf_ncurses_LIBS="-lgpm"
11873 # This is only necessary if you are linking against an obsolete
11874 # version of ncurses (but it should do no harm, since it is static).
11875 if test "$cf_nculib_root" = ncurses ; then
11876 echo "$as_me:11876: checking for tgoto in -lmytinfo" >&5
11877 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
11878 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-lmytinfo $LIBS"
11883 cat >"conftest.$ac_ext" <<_ACEOF
11884 #line 11884 "configure"
11885 #include "confdefs.h"
11887 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11902 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11903 if { (eval echo "$as_me:11903: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>&5
11906 echo "$as_me:11906: \$? = $ac_status" >&5
11907 (exit "$ac_status"); } &&
11908 { ac_try='test -s "conftest$ac_exeext"'
11909 { (eval echo "$as_me:11909: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:11912: \$? = $ac_status" >&5
11913 (exit "$ac_status"); }; }; then
11914 ac_cv_lib_mytinfo_tgoto=yes
11916 echo "$as_me: failed program was:" >&5
11917 cat "conftest.$ac_ext" >&5
11918 ac_cv_lib_mytinfo_tgoto=no
11920 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11921 LIBS=$ac_check_lib_save_LIBS
11923 echo "$as_me:11923: result: $ac_cv_lib_mytinfo_tgoto" >&5
11924 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
11925 if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
11926 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
11933 cf_add_libs="$LIBS"
11936 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11937 # filter duplicates
11938 for cf_add_1lib in $cf_add_0lib; do
11939 for cf_add_2lib in $cf_add_libs; do
11940 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11945 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11947 LIBS="$cf_add_libs"
11949 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
11952 cf_add_libs="$LIBS"
11955 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11956 # filter duplicates
11957 for cf_add_1lib in $cf_add_0lib; do
11958 for cf_add_2lib in $cf_add_libs; do
11959 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11964 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11966 LIBS="$cf_add_libs"
11970 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
11972 echo "$as_me:11972: checking for initscr" >&5
11973 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
11974 if test "${ac_cv_func_initscr+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 cat >"conftest.$ac_ext" <<_ACEOF
11978 #line 11978 "configure"
11979 #include "confdefs.h"
11980 #define initscr autoconf_temporary
11981 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11988 /* We use char because int might match the return type of a gcc2
11989 builtin and then its argument prototype would still apply. */
11990 char initscr (void);
11996 /* The GNU C library defines stubs for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999 #if defined (__stub_initscr) || defined (__stub___initscr)
12000 #error found stub for initscr
12008 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12009 if { (eval echo "$as_me:12009: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>&5
12012 echo "$as_me:12012: \$? = $ac_status" >&5
12013 (exit "$ac_status"); } &&
12014 { ac_try='test -s "conftest$ac_exeext"'
12015 { (eval echo "$as_me:12015: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:12018: \$? = $ac_status" >&5
12019 (exit "$ac_status"); }; }; then
12020 ac_cv_func_initscr=yes
12022 echo "$as_me: failed program was:" >&5
12023 cat "conftest.$ac_ext" >&5
12024 ac_cv_func_initscr=no
12026 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12028 echo "$as_me:12028: result: $ac_cv_func_initscr" >&5
12029 echo "${ECHO_T}$ac_cv_func_initscr" >&6
12030 if test "$ac_cv_func_initscr" = yes; then
12031 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12034 cf_save_LIBS="$LIBS"
12035 echo "$as_me:12035: checking for initscr in -l$cf_nculib_root" >&5
12036 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
12037 LIBS="-l$cf_nculib_root $LIBS"
12038 cat >"conftest.$ac_ext" <<_ACEOF
12039 #line 12039 "configure"
12040 #include "confdefs.h"
12041 #include <${cf_cv_ncurses_header:-curses.h}>
12050 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12051 if { (eval echo "$as_me:12051: \"$ac_link\"") >&5
12052 (eval $ac_link) 2>&5
12054 echo "$as_me:12054: \$? = $ac_status" >&5
12055 (exit "$ac_status"); } &&
12056 { ac_try='test -s "conftest$ac_exeext"'
12057 { (eval echo "$as_me:12057: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:12060: \$? = $ac_status" >&5
12061 (exit "$ac_status"); }; }; then
12062 echo "$as_me:12062: result: yes" >&5
12063 echo "${ECHO_T}yes" >&6
12064 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12067 echo "$as_me: failed program was:" >&5
12068 cat "conftest.$ac_ext" >&5
12069 echo "$as_me:12069: result: no" >&5
12070 echo "${ECHO_T}no" >&6
12073 cf_library_path_list=""
12074 if test -n "${LDFLAGS}${LIBS}" ; then
12075 for cf_library_path in $LDFLAGS $LIBS
12077 case "$cf_library_path" in
12079 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12081 test "x$cf_library_path" != "xNONE" && \
12082 test -d "$cf_library_path" && \
12084 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12085 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12086 test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
12087 test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
12088 test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
12089 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"
12092 cf_library_path_list="$cf_library_path_list $cf_search"
12100 test "x$prefix" != "xNONE" && \
12101 test -d "$prefix" && \
12103 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12104 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12105 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
12106 test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
12107 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
12108 test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
12111 for cf_subdir_prefix in \
12120 test "x$cf_subdir_prefix" != "x$prefix" && \
12121 test -d "$cf_subdir_prefix" && \
12122 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12123 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12124 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12125 test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
12126 test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
12127 test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
12128 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"
12133 cf_search="$cf_library_path_list $cf_search"
12135 for cf_libdir in $cf_search
12137 echo "$as_me:12137: checking for -l$cf_nculib_root in $cf_libdir" >&5
12138 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
12139 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
12140 cat >"conftest.$ac_ext" <<_ACEOF
12141 #line 12141 "configure"
12142 #include "confdefs.h"
12143 #include <${cf_cv_ncurses_header:-curses.h}>
12152 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12153 if { (eval echo "$as_me:12153: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>&5
12156 echo "$as_me:12156: \$? = $ac_status" >&5
12157 (exit "$ac_status"); } &&
12158 { ac_try='test -s "conftest$ac_exeext"'
12159 { (eval echo "$as_me:12159: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 echo "$as_me:12162: \$? = $ac_status" >&5
12163 (exit "$ac_status"); }; }; then
12164 echo "$as_me:12164: result: yes" >&5
12165 echo "${ECHO_T}yes" >&6
12166 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12169 echo "$as_me: failed program was:" >&5
12170 cat "conftest.$ac_ext" >&5
12171 echo "$as_me:12171: result: no" >&5
12172 echo "${ECHO_T}no" >&6
12173 LIBS="$cf_save_LIBS"
12175 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12179 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12183 eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
12185 if test "$cf_found_library" = no ; then
12186 { { echo "$as_me:12186: error: Cannot link $cf_nculib_root library" >&5
12187 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
12188 { (exit 1); exit 1; }; }
12193 if test -n "$cf_ncurses_LIBS" ; then
12194 echo "$as_me:12194: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
12195 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
12196 cf_ncurses_SAVE="$LIBS"
12197 for p in $cf_ncurses_LIBS ; do
12198 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
12199 if test "$q" != "$LIBS" ; then
12203 cat >"conftest.$ac_ext" <<_ACEOF
12204 #line 12204 "configure"
12205 #include "confdefs.h"
12206 #include <${cf_cv_ncurses_header:-curses.h}>
12210 initscr(); mousemask(0,0); tigetstr((char *)0);
12215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12216 if { (eval echo "$as_me:12216: \"$ac_link\"") >&5
12217 (eval $ac_link) 2>&5
12219 echo "$as_me:12219: \$? = $ac_status" >&5
12220 (exit "$ac_status"); } &&
12221 { ac_try='test -s "conftest$ac_exeext"'
12222 { (eval echo "$as_me:12222: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:12225: \$? = $ac_status" >&5
12226 (exit "$ac_status"); }; }; then
12227 echo "$as_me:12227: result: yes" >&5
12228 echo "${ECHO_T}yes" >&6
12230 echo "$as_me: failed program was:" >&5
12231 cat "conftest.$ac_ext" >&5
12232 echo "$as_me:12232: result: no" >&5
12233 echo "${ECHO_T}no" >&6
12234 LIBS="$cf_ncurses_SAVE"
12236 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12239 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12241 cat >>confdefs.h <<EOF
12242 #define $cf_nculib_ROOT 1
12247 NCURSES_CONFIG=none
12252 echo "$as_me:12252: checking for X" >&5
12253 echo $ECHO_N "checking for X... $ECHO_C" >&6
12255 # Check whether --with-x or --without-x was given.
12256 if test "${with_x+set}" = set; then
12260 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12261 if test "x$with_x" = xno; then
12262 # The user explicitly disabled X.
12265 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12266 # Both variables are already set.
12269 if test "${ac_cv_have_x+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 # One or both of the vars are not set, and there is no cached value.
12273 ac_x_includes=no ac_x_libraries=no
12274 rm -fr conftest.dir
12275 if mkdir conftest.dir; then
12277 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12278 cat >Imakefile <<'EOF'
12280 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12282 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12283 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12284 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
12285 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12286 for ac_extension in a so sl dylib dll; do
12287 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12288 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12289 ac_im_usrlibdir=$ac_im_libdir; break
12292 # Screen out bogus values from the imake configuration. They are
12293 # bogus both because they are the default anyway, and because
12294 # using them would break gcc on systems where it needs fixed includes.
12295 case $ac_im_incroot in
12297 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12299 case $ac_im_usrlibdir in
12300 /usr/lib | /lib) ;;
12301 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12305 rm -fr conftest.dir
12308 # Standard set of common directories for X headers.
12309 # Check X11 before X11Rn because it is often a symlink to the current release.
12326 /usr/local/X11/include
12327 /usr/local/X11R7/include
12328 /usr/local/X11R6/include
12329 /usr/local/X11R5/include
12330 /usr/local/X11R4/include
12332 /usr/local/include/X11
12333 /usr/local/include/X11R7
12334 /usr/local/include/X11R6
12335 /usr/local/include/X11R5
12336 /usr/local/include/X11R4
12340 /usr/XFree86/include/X11
12344 /usr/unsupported/include
12345 /usr/athena/include
12346 /usr/local/x11r5/include
12347 /usr/lpp/Xamples/include
12349 /usr/openwin/include
12350 /usr/openwin/share/include'
12352 if test "$ac_x_includes" = no; then
12353 # Guess where to find include files, by looking for Intrinsic.h.
12354 # First, try using that file with no special directory specified.
12355 cat >"conftest.$ac_ext" <<_ACEOF
12356 #line 12356 "configure"
12357 #include "confdefs.h"
12358 #include <X11/Intrinsic.h>
12360 if { (eval echo "$as_me:12360: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12361 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12363 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 echo "$as_me:12366: \$? = $ac_status" >&5
12367 (exit "$ac_status"); } >/dev/null; then
12368 if test -s conftest.err; then
12369 ac_cpp_err=$ac_c_preproc_warn_flag
12376 if test -z "$ac_cpp_err"; then
12377 # We can compile using X headers with no special include directory.
12380 echo "$as_me: failed program was:" >&5
12381 cat "conftest.$ac_ext" >&5
12382 for ac_dir in $ac_x_header_dirs; do
12383 if test -r "$ac_dir/X11/Intrinsic.h"; then
12384 ac_x_includes=$ac_dir
12389 rm -f conftest.err "conftest.$ac_ext"
12390 fi # $ac_x_includes = no
12392 if test "$ac_x_libraries" = no; then
12393 # Check for the libraries.
12394 # See if we find them without any special options.
12395 # Don't add to $LIBS permanently.
12398 cat >"conftest.$ac_ext" <<_ACEOF
12399 #line 12399 "configure"
12400 #include "confdefs.h"
12401 #include <X11/Intrinsic.h>
12410 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12411 if { (eval echo "$as_me:12411: \"$ac_link\"") >&5
12412 (eval $ac_link) 2>&5
12414 echo "$as_me:12414: \$? = $ac_status" >&5
12415 (exit "$ac_status"); } &&
12416 { ac_try='test -s "conftest$ac_exeext"'
12417 { (eval echo "$as_me:12417: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:12420: \$? = $ac_status" >&5
12421 (exit "$ac_status"); }; }; then
12423 # We can link X programs with no special library path.
12426 echo "$as_me: failed program was:" >&5
12427 cat "conftest.$ac_ext" >&5
12429 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12431 # Don't even attempt the hair of trying to link an X program!
12432 for ac_extension in a so sl dylib dll; do
12433 if test -r "$ac_dir/libXt.$ac_extension"; then
12434 ac_x_libraries=$ac_dir
12440 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12441 fi # $ac_x_libraries = no
12443 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
12444 # Didn't find X anywhere. Cache the known absence of X.
12445 ac_cv_have_x="have_x=no"
12447 # Record where we found X for the cache.
12448 ac_cv_have_x="have_x=yes \
12449 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12454 eval "$ac_cv_have_x"
12457 if test "$have_x" != yes; then
12458 echo "$as_me:12458: result: $have_x" >&5
12459 echo "${ECHO_T}$have_x" >&6
12462 # If each of the values was on the command line, it overrides each guess.
12463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12465 # Update the cache value to reflect the command line values.
12466 ac_cv_have_x="have_x=yes \
12467 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12468 echo "$as_me:12468: result: libraries $x_libraries, headers $x_includes" >&5
12469 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
12472 if test "$no_x" = yes; then
12473 # Not all programs may use this symbol, but it does not hurt to define it.
12475 cat >>confdefs.h <<\EOF
12476 #define X_DISPLAY_MISSING 1
12484 if test -n "$x_includes"; then
12485 X_CFLAGS="$X_CFLAGS -I$x_includes"
12488 # It would also be nice to do this for all -L options, not just this one.
12489 if test -n "$x_libraries"; then
12490 X_LIBS="$X_LIBS -L$x_libraries"
12491 # For Solaris; some versions of Sun CC require a space after -R and
12492 # others require no space. Words are not sufficient . . . .
12493 case `(uname -sr) 2>/dev/null` in
12495 echo "$as_me:12495: checking whether -R must be followed by a space" >&5
12496 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
12497 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12498 cat >"conftest.$ac_ext" <<_ACEOF
12499 #line 12499 "configure"
12500 #include "confdefs.h"
12510 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12511 if { (eval echo "$as_me:12511: \"$ac_link\"") >&5
12512 (eval $ac_link) 2>&5
12514 echo "$as_me:12514: \$? = $ac_status" >&5
12515 (exit "$ac_status"); } &&
12516 { ac_try='test -s "conftest$ac_exeext"'
12517 { (eval echo "$as_me:12517: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:12520: \$? = $ac_status" >&5
12521 (exit "$ac_status"); }; }; then
12524 echo "$as_me: failed program was:" >&5
12525 cat "conftest.$ac_ext" >&5
12528 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12529 if test $ac_R_nospace = yes; then
12530 echo "$as_me:12530: result: no" >&5
12531 echo "${ECHO_T}no" >&6
12532 X_LIBS="$X_LIBS -R$x_libraries"
12534 LIBS="$ac_xsave_LIBS -R $x_libraries"
12535 cat >"conftest.$ac_ext" <<_ACEOF
12536 #line 12536 "configure"
12537 #include "confdefs.h"
12547 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12548 if { (eval echo "$as_me:12548: \"$ac_link\"") >&5
12549 (eval $ac_link) 2>&5
12551 echo "$as_me:12551: \$? = $ac_status" >&5
12552 (exit "$ac_status"); } &&
12553 { ac_try='test -s "conftest$ac_exeext"'
12554 { (eval echo "$as_me:12554: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:12557: \$? = $ac_status" >&5
12558 (exit "$ac_status"); }; }; then
12561 echo "$as_me: failed program was:" >&5
12562 cat "conftest.$ac_ext" >&5
12565 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12566 if test $ac_R_space = yes; then
12567 echo "$as_me:12567: result: yes" >&5
12568 echo "${ECHO_T}yes" >&6
12569 X_LIBS="$X_LIBS -R $x_libraries"
12571 echo "$as_me:12571: result: neither works" >&5
12572 echo "${ECHO_T}neither works" >&6
12575 LIBS=$ac_xsave_LIBS
12579 # Check for system-dependent libraries X programs must link with.
12580 # Do this before checking for the system-independent R6 libraries
12581 # (-lICE), since we may need -lsocket or whatever for X linking.
12583 if test "$ISC" = yes; then
12584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12586 # Martyn Johnson says this is needed for Ultrix, if the X
12587 # libraries were built with DECnet support. And Karl Berry says
12588 # the Alpha needs dnet_stub (dnet does not exist).
12589 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12590 cat >"conftest.$ac_ext" <<_ACEOF
12591 #line 12591 "configure"
12592 #include "confdefs.h"
12594 /* Override any gcc2 internal prototype to avoid an error. */
12598 /* We use char because int might match the return type of a gcc2
12599 builtin and then its argument prototype would still apply. */
12600 char XOpenDisplay ();
12609 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12610 if { (eval echo "$as_me:12610: \"$ac_link\"") >&5
12611 (eval $ac_link) 2>&5
12613 echo "$as_me:12613: \$? = $ac_status" >&5
12614 (exit "$ac_status"); } &&
12615 { ac_try='test -s "conftest$ac_exeext"'
12616 { (eval echo "$as_me:12616: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:12619: \$? = $ac_status" >&5
12620 (exit "$ac_status"); }; }; then
12623 echo "$as_me: failed program was:" >&5
12624 cat "conftest.$ac_ext" >&5
12625 echo "$as_me:12625: checking for dnet_ntoa in -ldnet" >&5
12626 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
12627 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-ldnet $LIBS"
12632 cat >"conftest.$ac_ext" <<_ACEOF
12633 #line 12633 "configure"
12634 #include "confdefs.h"
12636 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12651 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12652 if { (eval echo "$as_me:12652: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>&5
12655 echo "$as_me:12655: \$? = $ac_status" >&5
12656 (exit "$ac_status"); } &&
12657 { ac_try='test -s "conftest$ac_exeext"'
12658 { (eval echo "$as_me:12658: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:12661: \$? = $ac_status" >&5
12662 (exit "$ac_status"); }; }; then
12663 ac_cv_lib_dnet_dnet_ntoa=yes
12665 echo "$as_me: failed program was:" >&5
12666 cat "conftest.$ac_ext" >&5
12667 ac_cv_lib_dnet_dnet_ntoa=no
12669 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12670 LIBS=$ac_check_lib_save_LIBS
12672 echo "$as_me:12672: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12673 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12674 if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
12675 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12678 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12679 echo "$as_me:12679: checking for dnet_ntoa in -ldnet_stub" >&5
12680 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
12681 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 ac_check_lib_save_LIBS=$LIBS
12685 LIBS="-ldnet_stub $LIBS"
12686 cat >"conftest.$ac_ext" <<_ACEOF
12687 #line 12687 "configure"
12688 #include "confdefs.h"
12690 /* Override any gcc2 internal prototype to avoid an error. */
12694 /* We use char because int might match the return type of a gcc2
12695 builtin and then its argument prototype would still apply. */
12705 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12706 if { (eval echo "$as_me:12706: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>&5
12709 echo "$as_me:12709: \$? = $ac_status" >&5
12710 (exit "$ac_status"); } &&
12711 { ac_try='test -s "conftest$ac_exeext"'
12712 { (eval echo "$as_me:12712: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:12715: \$? = $ac_status" >&5
12716 (exit "$ac_status"); }; }; then
12717 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12719 echo "$as_me: failed program was:" >&5
12720 cat "conftest.$ac_ext" >&5
12721 ac_cv_lib_dnet_stub_dnet_ntoa=no
12723 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12724 LIBS=$ac_check_lib_save_LIBS
12726 echo "$as_me:12726: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12727 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12728 if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
12729 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12734 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12735 LIBS="$ac_xsave_LIBS"
12737 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12738 # to get the SysV transport functions.
12739 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12741 # The nsl library prevents programs from opening the X display
12742 # on Irix 5.2, according to T.E. Dickey.
12743 # The functions gethostbyname, getservbyname, and inet_addr are
12744 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12745 echo "$as_me:12745: checking for gethostbyname" >&5
12746 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12747 if test "${ac_cv_func_gethostbyname+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 cat >"conftest.$ac_ext" <<_ACEOF
12751 #line 12751 "configure"
12752 #include "confdefs.h"
12753 #define gethostbyname autoconf_temporary
12754 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12755 #undef gethostbyname
12761 /* We use char because int might match the return type of a gcc2
12762 builtin and then its argument prototype would still apply. */
12763 char gethostbyname (void);
12769 /* The GNU C library defines stubs for functions which it implements
12770 to always fail with ENOSYS. Some functions are actually named
12771 something starting with __ and the normal name is an alias. */
12772 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12773 #error found stub for gethostbyname
12776 return gethostbyname ();
12781 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12782 if { (eval echo "$as_me:12782: \"$ac_link\"") >&5
12783 (eval $ac_link) 2>&5
12785 echo "$as_me:12785: \$? = $ac_status" >&5
12786 (exit "$ac_status"); } &&
12787 { ac_try='test -s "conftest$ac_exeext"'
12788 { (eval echo "$as_me:12788: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12791 echo "$as_me:12791: \$? = $ac_status" >&5
12792 (exit "$ac_status"); }; }; then
12793 ac_cv_func_gethostbyname=yes
12795 echo "$as_me: failed program was:" >&5
12796 cat "conftest.$ac_ext" >&5
12797 ac_cv_func_gethostbyname=no
12799 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12801 echo "$as_me:12801: result: $ac_cv_func_gethostbyname" >&5
12802 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12804 if test $ac_cv_func_gethostbyname = no; then
12805 echo "$as_me:12805: checking for gethostbyname in -lnsl" >&5
12806 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12807 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 ac_check_lib_save_LIBS=$LIBS
12812 cat >"conftest.$ac_ext" <<_ACEOF
12813 #line 12813 "configure"
12814 #include "confdefs.h"
12816 /* Override any gcc2 internal prototype to avoid an error. */
12820 /* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12822 char gethostbyname ();
12831 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12832 if { (eval echo "$as_me:12832: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>&5
12835 echo "$as_me:12835: \$? = $ac_status" >&5
12836 (exit "$ac_status"); } &&
12837 { ac_try='test -s "conftest$ac_exeext"'
12838 { (eval echo "$as_me:12838: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12841 echo "$as_me:12841: \$? = $ac_status" >&5
12842 (exit "$ac_status"); }; }; then
12843 ac_cv_lib_nsl_gethostbyname=yes
12845 echo "$as_me: failed program was:" >&5
12846 cat "conftest.$ac_ext" >&5
12847 ac_cv_lib_nsl_gethostbyname=no
12849 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12850 LIBS=$ac_check_lib_save_LIBS
12852 echo "$as_me:12852: result: $ac_cv_lib_nsl_gethostbyname" >&5
12853 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12854 if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
12855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12858 if test $ac_cv_lib_nsl_gethostbyname = no; then
12859 echo "$as_me:12859: checking for gethostbyname in -lbsd" >&5
12860 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12861 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 ac_check_lib_save_LIBS=$LIBS
12866 cat >"conftest.$ac_ext" <<_ACEOF
12867 #line 12867 "configure"
12868 #include "confdefs.h"
12870 /* Override any gcc2 internal prototype to avoid an error. */
12874 /* We use char because int might match the return type of a gcc2
12875 builtin and then its argument prototype would still apply. */
12876 char gethostbyname ();
12885 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12886 if { (eval echo "$as_me:12886: \"$ac_link\"") >&5
12887 (eval $ac_link) 2>&5
12889 echo "$as_me:12889: \$? = $ac_status" >&5
12890 (exit "$ac_status"); } &&
12891 { ac_try='test -s "conftest$ac_exeext"'
12892 { (eval echo "$as_me:12892: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12895 echo "$as_me:12895: \$? = $ac_status" >&5
12896 (exit "$ac_status"); }; }; then
12897 ac_cv_lib_bsd_gethostbyname=yes
12899 echo "$as_me: failed program was:" >&5
12900 cat "conftest.$ac_ext" >&5
12901 ac_cv_lib_bsd_gethostbyname=no
12903 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12904 LIBS=$ac_check_lib_save_LIBS
12906 echo "$as_me:12906: result: $ac_cv_lib_bsd_gethostbyname" >&5
12907 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12908 if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
12909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12915 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12916 # socket/setsockopt and other routines are undefined under SCO ODT
12917 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12918 # on later versions), says Simon Leinen: it contains gethostby*
12919 # variants that don't use the nameserver (or something). -lsocket
12920 # must be given before -lnsl if both are needed. We assume that
12921 # if connect needs -lnsl, so does gethostbyname.
12922 echo "$as_me:12922: checking for connect" >&5
12923 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12924 if test "${ac_cv_func_connect+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 cat >"conftest.$ac_ext" <<_ACEOF
12928 #line 12928 "configure"
12929 #include "confdefs.h"
12930 #define connect autoconf_temporary
12931 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12938 /* We use char because int might match the return type of a gcc2
12939 builtin and then its argument prototype would still apply. */
12940 char connect (void);
12946 /* The GNU C library defines stubs for functions which it implements
12947 to always fail with ENOSYS. Some functions are actually named
12948 something starting with __ and the normal name is an alias. */
12949 #if defined (__stub_connect) || defined (__stub___connect)
12950 #error found stub for connect
12958 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12959 if { (eval echo "$as_me:12959: \"$ac_link\"") >&5
12960 (eval $ac_link) 2>&5
12962 echo "$as_me:12962: \$? = $ac_status" >&5
12963 (exit "$ac_status"); } &&
12964 { ac_try='test -s "conftest$ac_exeext"'
12965 { (eval echo "$as_me:12965: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12968 echo "$as_me:12968: \$? = $ac_status" >&5
12969 (exit "$ac_status"); }; }; then
12970 ac_cv_func_connect=yes
12972 echo "$as_me: failed program was:" >&5
12973 cat "conftest.$ac_ext" >&5
12974 ac_cv_func_connect=no
12976 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12978 echo "$as_me:12978: result: $ac_cv_func_connect" >&5
12979 echo "${ECHO_T}$ac_cv_func_connect" >&6
12981 if test $ac_cv_func_connect = no; then
12982 echo "$as_me:12982: checking for connect in -lsocket" >&5
12983 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12984 if test "${ac_cv_lib_socket_connect+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 ac_check_lib_save_LIBS=$LIBS
12988 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12989 cat >"conftest.$ac_ext" <<_ACEOF
12990 #line 12990 "configure"
12991 #include "confdefs.h"
12993 /* Override any gcc2 internal prototype to avoid an error. */
12997 /* We use char because int might match the return type of a gcc2
12998 builtin and then its argument prototype would still apply. */
13008 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13009 if { (eval echo "$as_me:13009: \"$ac_link\"") >&5
13010 (eval $ac_link) 2>&5
13012 echo "$as_me:13012: \$? = $ac_status" >&5
13013 (exit "$ac_status"); } &&
13014 { ac_try='test -s "conftest$ac_exeext"'
13015 { (eval echo "$as_me:13015: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:13018: \$? = $ac_status" >&5
13019 (exit "$ac_status"); }; }; then
13020 ac_cv_lib_socket_connect=yes
13022 echo "$as_me: failed program was:" >&5
13023 cat "conftest.$ac_ext" >&5
13024 ac_cv_lib_socket_connect=no
13026 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13027 LIBS=$ac_check_lib_save_LIBS
13029 echo "$as_me:13029: result: $ac_cv_lib_socket_connect" >&5
13030 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
13031 if test "$ac_cv_lib_socket_connect" = yes; then
13032 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13037 # Guillermo Gomez says -lposix is necessary on A/UX.
13038 echo "$as_me:13038: checking for remove" >&5
13039 echo $ECHO_N "checking for remove... $ECHO_C" >&6
13040 if test "${ac_cv_func_remove+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 cat >"conftest.$ac_ext" <<_ACEOF
13044 #line 13044 "configure"
13045 #include "confdefs.h"
13046 #define remove autoconf_temporary
13047 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13054 /* We use char because int might match the return type of a gcc2
13055 builtin and then its argument prototype would still apply. */
13056 char remove (void);
13062 /* The GNU C library defines stubs for functions which it implements
13063 to always fail with ENOSYS. Some functions are actually named
13064 something starting with __ and the normal name is an alias. */
13065 #if defined (__stub_remove) || defined (__stub___remove)
13066 #error found stub for remove
13074 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13075 if { (eval echo "$as_me:13075: \"$ac_link\"") >&5
13076 (eval $ac_link) 2>&5
13078 echo "$as_me:13078: \$? = $ac_status" >&5
13079 (exit "$ac_status"); } &&
13080 { ac_try='test -s "conftest$ac_exeext"'
13081 { (eval echo "$as_me:13081: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:13084: \$? = $ac_status" >&5
13085 (exit "$ac_status"); }; }; then
13086 ac_cv_func_remove=yes
13088 echo "$as_me: failed program was:" >&5
13089 cat "conftest.$ac_ext" >&5
13090 ac_cv_func_remove=no
13092 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13094 echo "$as_me:13094: result: $ac_cv_func_remove" >&5
13095 echo "${ECHO_T}$ac_cv_func_remove" >&6
13097 if test $ac_cv_func_remove = no; then
13098 echo "$as_me:13098: checking for remove in -lposix" >&5
13099 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
13100 if test "${ac_cv_lib_posix_remove+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 ac_check_lib_save_LIBS=$LIBS
13104 LIBS="-lposix $LIBS"
13105 cat >"conftest.$ac_ext" <<_ACEOF
13106 #line 13106 "configure"
13107 #include "confdefs.h"
13109 /* Override any gcc2 internal prototype to avoid an error. */
13113 /* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13124 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13125 if { (eval echo "$as_me:13125: \"$ac_link\"") >&5
13126 (eval $ac_link) 2>&5
13128 echo "$as_me:13128: \$? = $ac_status" >&5
13129 (exit "$ac_status"); } &&
13130 { ac_try='test -s "conftest$ac_exeext"'
13131 { (eval echo "$as_me:13131: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:13134: \$? = $ac_status" >&5
13135 (exit "$ac_status"); }; }; then
13136 ac_cv_lib_posix_remove=yes
13138 echo "$as_me: failed program was:" >&5
13139 cat "conftest.$ac_ext" >&5
13140 ac_cv_lib_posix_remove=no
13142 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13143 LIBS=$ac_check_lib_save_LIBS
13145 echo "$as_me:13145: result: $ac_cv_lib_posix_remove" >&5
13146 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
13147 if test "$ac_cv_lib_posix_remove" = yes; then
13148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13153 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13154 echo "$as_me:13154: checking for shmat" >&5
13155 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
13156 if test "${ac_cv_func_shmat+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 cat >"conftest.$ac_ext" <<_ACEOF
13160 #line 13160 "configure"
13161 #include "confdefs.h"
13162 #define shmat autoconf_temporary
13163 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13170 /* We use char because int might match the return type of a gcc2
13171 builtin and then its argument prototype would still apply. */
13178 /* The GNU C library defines stubs for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181 #if defined (__stub_shmat) || defined (__stub___shmat)
13182 #error found stub for shmat
13190 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13191 if { (eval echo "$as_me:13191: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>&5
13194 echo "$as_me:13194: \$? = $ac_status" >&5
13195 (exit "$ac_status"); } &&
13196 { ac_try='test -s "conftest$ac_exeext"'
13197 { (eval echo "$as_me:13197: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:13200: \$? = $ac_status" >&5
13201 (exit "$ac_status"); }; }; then
13202 ac_cv_func_shmat=yes
13204 echo "$as_me: failed program was:" >&5
13205 cat "conftest.$ac_ext" >&5
13206 ac_cv_func_shmat=no
13208 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13210 echo "$as_me:13210: result: $ac_cv_func_shmat" >&5
13211 echo "${ECHO_T}$ac_cv_func_shmat" >&6
13213 if test $ac_cv_func_shmat = no; then
13214 echo "$as_me:13214: checking for shmat in -lipc" >&5
13215 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
13216 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 ac_check_lib_save_LIBS=$LIBS
13221 cat >"conftest.$ac_ext" <<_ACEOF
13222 #line 13222 "configure"
13223 #include "confdefs.h"
13225 /* Override any gcc2 internal prototype to avoid an error. */
13229 /* We use char because int might match the return type of a gcc2
13230 builtin and then its argument prototype would still apply. */
13240 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13241 if { (eval echo "$as_me:13241: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>&5
13244 echo "$as_me:13244: \$? = $ac_status" >&5
13245 (exit "$ac_status"); } &&
13246 { ac_try='test -s "conftest$ac_exeext"'
13247 { (eval echo "$as_me:13247: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13250 echo "$as_me:13250: \$? = $ac_status" >&5
13251 (exit "$ac_status"); }; }; then
13252 ac_cv_lib_ipc_shmat=yes
13254 echo "$as_me: failed program was:" >&5
13255 cat "conftest.$ac_ext" >&5
13256 ac_cv_lib_ipc_shmat=no
13258 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13259 LIBS=$ac_check_lib_save_LIBS
13261 echo "$as_me:13261: result: $ac_cv_lib_ipc_shmat" >&5
13262 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
13263 if test "$ac_cv_lib_ipc_shmat" = yes; then
13264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13270 # Check for libraries that X11R6 Xt/Xaw programs need.
13271 ac_save_LDFLAGS=$LDFLAGS
13272 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13273 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13274 # check for ICE first), but we must link in the order -lSM -lICE or
13275 # we get undefined symbols. So assume we have SM if we have ICE.
13276 # These have to be linked with before -lX11, unlike the other
13277 # libraries we check for below, so use a different variable.
13278 # John Interrante, Karl Berry
13279 echo "$as_me:13279: checking for IceConnectionNumber in -lICE" >&5
13280 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
13281 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 ac_check_lib_save_LIBS=$LIBS
13285 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13286 cat >"conftest.$ac_ext" <<_ACEOF
13287 #line 13287 "configure"
13288 #include "confdefs.h"
13290 /* Override any gcc2 internal prototype to avoid an error. */
13294 /* We use char because int might match the return type of a gcc2
13295 builtin and then its argument prototype would still apply. */
13296 char IceConnectionNumber ();
13300 IceConnectionNumber ();
13305 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13306 if { (eval echo "$as_me:13306: \"$ac_link\"") >&5
13307 (eval $ac_link) 2>&5
13309 echo "$as_me:13309: \$? = $ac_status" >&5
13310 (exit "$ac_status"); } &&
13311 { ac_try='test -s "conftest$ac_exeext"'
13312 { (eval echo "$as_me:13312: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:13315: \$? = $ac_status" >&5
13316 (exit "$ac_status"); }; }; then
13317 ac_cv_lib_ICE_IceConnectionNumber=yes
13319 echo "$as_me: failed program was:" >&5
13320 cat "conftest.$ac_ext" >&5
13321 ac_cv_lib_ICE_IceConnectionNumber=no
13323 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13324 LIBS=$ac_check_lib_save_LIBS
13326 echo "$as_me:13326: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13327 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
13328 if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
13329 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13332 LDFLAGS=$ac_save_LDFLAGS
13336 cf_x_athena=${cf_x_athena:-Xaw}
13338 echo "$as_me:13338: checking if you want to link with Xaw 3d library" >&5
13339 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
13342 # Check whether --with-Xaw3d or --without-Xaw3d was given.
13343 if test "${with_Xaw3d+set}" = set; then
13344 withval="$with_Xaw3d"
13347 if test "$withval" = yes ; then
13349 echo "$as_me:13349: result: yes" >&5
13350 echo "${ECHO_T}yes" >&6
13352 echo "$as_me:13352: result: no" >&5
13353 echo "${ECHO_T}no" >&6
13356 echo "$as_me:13356: checking if you want to link with Xaw 3d xft library" >&5
13357 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
13360 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
13361 if test "${with_Xaw3dxft+set}" = set; then
13362 withval="$with_Xaw3dxft"
13365 if test "$withval" = yes ; then
13366 cf_x_athena=Xaw3dxft
13367 echo "$as_me:13367: result: yes" >&5
13368 echo "${ECHO_T}yes" >&6
13370 echo "$as_me:13370: result: no" >&5
13371 echo "${ECHO_T}no" >&6
13374 echo "$as_me:13374: checking if you want to link with neXT Athena library" >&5
13375 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
13378 # Check whether --with-neXtaw or --without-neXtaw was given.
13379 if test "${with_neXtaw+set}" = set; then
13380 withval="$with_neXtaw"
13383 if test "$withval" = yes ; then
13385 echo "$as_me:13385: result: yes" >&5
13386 echo "${ECHO_T}yes" >&6
13388 echo "$as_me:13388: result: no" >&5
13389 echo "${ECHO_T}no" >&6
13392 echo "$as_me:13392: checking if you want to link with Athena-Plus library" >&5
13393 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
13396 # Check whether --with-XawPlus or --without-XawPlus was given.
13397 if test "${with_XawPlus+set}" = set; then
13398 withval="$with_XawPlus"
13401 if test "$withval" = yes ; then
13402 cf_x_athena=XawPlus
13403 echo "$as_me:13403: result: yes" >&5
13404 echo "${ECHO_T}yes" >&6
13406 echo "$as_me:13406: result: no" >&5
13407 echo "${ECHO_T}no" >&6
13412 if test "$PKG_CONFIG" != none ; then
13414 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
13415 for cf_athena_pkg in \
13418 ${cf_x_athena}-devel \
13419 lib${cf_x_athena} \
13420 lib${cf_x_athena}-devel
13423 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then
13424 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
13426 echo "${as_me:-configure}:13426: testing found package $cf_athena_pkg ..." 1>&5
13428 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`"
13429 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`"
13430 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
13432 echo "${as_me:-configure}:13432: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13434 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
13436 echo "${as_me:-configure}:13436: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
13441 cf_new_extra_cppflags=
13443 for cf_add_cflags in $cf_pkgconfig_incs
13445 case "$cf_fix_cppflags" in
13447 case "$cf_add_cflags" in
13448 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13449 case "$cf_add_cflags" in
13451 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13453 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13454 && test -z "${cf_tst_cflags}" \
13455 && cf_fix_cppflags=yes
13457 if test "$cf_fix_cppflags" = yes ; then
13459 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13460 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13463 elif test "${cf_tst_cflags}" = "\"'" ; then
13465 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13466 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13472 case "$CPPFLAGS" in
13476 case "$cf_add_cflags" in
13478 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13480 CPPFLAGS=`echo "$CPPFLAGS" | \
13481 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13482 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13487 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13488 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13495 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13496 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13503 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13504 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13506 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13508 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13509 && test -z "${cf_tst_cflags}" \
13510 && cf_fix_cppflags=no
13515 if test -n "$cf_new_cflags" ; then
13517 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13518 CFLAGS="${CFLAGS}$cf_new_cflags"
13522 if test -n "$cf_new_cppflags" ; then
13524 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13525 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13529 if test -n "$cf_new_extra_cppflags" ; then
13531 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13532 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13536 cf_add_libs="$LIBS"
13539 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13540 # filter duplicates
13541 for cf_add_1lib in $cf_add_0lib; do
13542 for cf_add_2lib in $cf_add_libs; do
13543 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13548 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13550 LIBS="$cf_add_libs"
13552 cf_x_athena_lib="$cf_pkgconfig_libs"
13554 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13556 cat >>confdefs.h <<EOF
13557 #define $cf_x_athena_LIBS 1
13560 for cf_trim_lib in Xmu Xt X11
13563 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
13564 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
13565 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
13567 echo "${as_me:-configure}:13567: testing ..trimmed $LIBS ..." 1>&5
13573 echo "$as_me:13573: checking for usable $cf_x_athena/Xmu package" >&5
13574 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
13575 if test "${cf_cv_xaw_compat+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 cat >"conftest.$ac_ext" <<_ACEOF
13580 #line 13580 "configure"
13581 #include "confdefs.h"
13583 #include <X11/Xmu/CharSet.h>
13589 int check = XmuCompareISOLatin1("big", "small");
13596 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13597 if { (eval echo "$as_me:13597: \"$ac_link\"") >&5
13598 (eval $ac_link) 2>&5
13600 echo "$as_me:13600: \$? = $ac_status" >&5
13601 (exit "$ac_status"); } &&
13602 { ac_try='test -s "conftest$ac_exeext"'
13603 { (eval echo "$as_me:13603: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:13606: \$? = $ac_status" >&5
13607 (exit "$ac_status"); }; }; then
13608 cf_cv_xaw_compat=yes
13610 echo "$as_me: failed program was:" >&5
13611 cat "conftest.$ac_ext" >&5
13612 cf_cv_xaw_compat=no
13614 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13616 echo "$as_me:13616: result: $cf_cv_xaw_compat" >&5
13617 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
13619 if test "$cf_cv_xaw_compat" = no
13621 # workaround for broken ".pc" files...
13622 case "$cf_x_athena_lib" in
13626 test -n "$verbose" && echo " work around broken package" 1>&6
13628 echo "${as_me:-configure}:13628: testing work around broken package ..." 1>&5
13630 cf_save_xmu="$LIBS"
13631 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
13633 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then
13634 test -n "$verbose" && echo " found package xmu" 1>&6
13636 echo "${as_me:-configure}:13636: testing found package xmu ..." 1>&5
13638 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`"
13639 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`"
13640 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
13642 echo "${as_me:-configure}:13642: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13644 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
13646 echo "${as_me:-configure}:13646: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
13651 cf_new_extra_cppflags=
13653 for cf_add_cflags in $cf_pkgconfig_incs
13655 case "$cf_fix_cppflags" in
13657 case "$cf_add_cflags" in
13658 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13659 case "$cf_add_cflags" in
13661 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13663 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13664 && test -z "${cf_tst_cflags}" \
13665 && cf_fix_cppflags=yes
13667 if test "$cf_fix_cppflags" = yes ; then
13669 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13670 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13673 elif test "${cf_tst_cflags}" = "\"'" ; then
13675 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13676 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13682 case "$CPPFLAGS" in
13686 case "$cf_add_cflags" in
13688 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13690 CPPFLAGS=`echo "$CPPFLAGS" | \
13691 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13692 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13697 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13698 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13705 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13706 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13713 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13714 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13716 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13718 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13719 && test -z "${cf_tst_cflags}" \
13720 && cf_fix_cppflags=no
13725 if test -n "$cf_new_cflags" ; then
13727 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13728 CFLAGS="${CFLAGS}$cf_new_cflags"
13732 if test -n "$cf_new_cppflags" ; then
13734 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13735 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13739 if test -n "$cf_new_extra_cppflags" ; then
13741 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13742 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13746 cf_add_libs="$LIBS"
13749 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13750 # filter duplicates
13751 for cf_add_1lib in $cf_add_0lib; do
13752 for cf_add_2lib in $cf_add_libs; do
13753 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13758 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13760 LIBS="$cf_add_libs"
13762 LIBS="$cf_save_xmu"
13764 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13766 echo "${as_me:-configure}:13766: testing ...before $LIBS ..." 1>&5
13768 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
13769 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13771 echo "${as_me:-configure}:13771: testing ...after $LIBS ..." 1>&5
13777 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13779 echo "${as_me:-configure}:13779: testing ...before $LIBS ..." 1>&5
13781 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
13782 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13784 echo "${as_me:-configure}:13784: testing ...after $LIBS ..." 1>&5
13788 for cf_trim_lib in Xmu Xt X11
13791 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
13792 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
13793 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
13795 echo "${as_me:-configure}:13795: testing ..trimmed $LIBS ..." 1>&5
13815 if test -z "$cf_x_athena_lib" ; then
13817 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
13818 test -n "$verbose" && echo " found package Xext" 1>&6
13820 echo "${as_me:-configure}:13820: testing found package Xext ..." 1>&5
13822 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
13823 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`"
13824 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
13826 echo "${as_me:-configure}:13826: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13828 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
13830 echo "${as_me:-configure}:13830: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
13835 cf_new_extra_cppflags=
13837 for cf_add_cflags in $cf_pkgconfig_incs
13839 case "$cf_fix_cppflags" in
13841 case "$cf_add_cflags" in
13842 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13843 case "$cf_add_cflags" in
13845 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13847 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13848 && test -z "${cf_tst_cflags}" \
13849 && cf_fix_cppflags=yes
13851 if test "$cf_fix_cppflags" = yes ; then
13853 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13854 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13857 elif test "${cf_tst_cflags}" = "\"'" ; then
13859 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13860 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13866 case "$CPPFLAGS" in
13870 case "$cf_add_cflags" in
13872 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13874 CPPFLAGS=`echo "$CPPFLAGS" | \
13875 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13876 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13881 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13882 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13889 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13890 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13897 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13898 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13900 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13902 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13903 && test -z "${cf_tst_cflags}" \
13904 && cf_fix_cppflags=no
13909 if test -n "$cf_new_cflags" ; then
13911 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13912 CFLAGS="${CFLAGS}$cf_new_cflags"
13916 if test -n "$cf_new_cppflags" ; then
13918 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13919 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13923 if test -n "$cf_new_extra_cppflags" ; then
13925 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13926 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13930 cf_add_libs="$LIBS"
13933 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13934 # filter duplicates
13935 for cf_add_1lib in $cf_add_0lib; do
13936 for cf_add_2lib in $cf_add_libs; do
13937 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13942 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13944 LIBS="$cf_add_libs"
13951 echo "$as_me:13951: checking for XextCreateExtension in -lXext" >&5
13952 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
13953 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 ac_check_lib_save_LIBS=$LIBS
13957 LIBS="-lXext $LIBS"
13958 cat >"conftest.$ac_ext" <<_ACEOF
13959 #line 13959 "configure"
13960 #include "confdefs.h"
13962 /* Override any gcc2 internal prototype to avoid an error. */
13966 /* We use char because int might match the return type of a gcc2
13967 builtin and then its argument prototype would still apply. */
13968 char XextCreateExtension ();
13972 XextCreateExtension ();
13977 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13978 if { (eval echo "$as_me:13978: \"$ac_link\"") >&5
13979 (eval $ac_link) 2>&5
13981 echo "$as_me:13981: \$? = $ac_status" >&5
13982 (exit "$ac_status"); } &&
13983 { ac_try='test -s "conftest$ac_exeext"'
13984 { (eval echo "$as_me:13984: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:13987: \$? = $ac_status" >&5
13988 (exit "$ac_status"); }; }; then
13989 ac_cv_lib_Xext_XextCreateExtension=yes
13991 echo "$as_me: failed program was:" >&5
13992 cat "conftest.$ac_ext" >&5
13993 ac_cv_lib_Xext_XextCreateExtension=no
13995 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13996 LIBS=$ac_check_lib_save_LIBS
13998 echo "$as_me:13998: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
13999 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
14000 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
14002 cf_add_libs="$LIBS"
14005 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14006 # filter duplicates
14007 for cf_add_1lib in $cf_add_0lib; do
14008 for cf_add_2lib in $cf_add_libs; do
14009 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14014 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14016 LIBS="$cf_add_libs"
14022 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
14023 # in some cases has installed dummy files in the former, other cases replaced
14024 # it with a link to the new location). This complicates the configure script.
14025 # Check for that pitfall, and recover using pkg-config
14027 # If none of these are set, the configuration is almost certainly broken.
14028 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
14031 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
14032 test -n "$verbose" && echo " found package x11" 1>&6
14034 echo "${as_me:-configure}:14034: testing found package x11 ..." 1>&5
14036 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
14037 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
14038 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
14040 echo "${as_me:-configure}:14040: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14042 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
14044 echo "${as_me:-configure}:14044: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
14049 cf_new_extra_cppflags=
14051 for cf_add_cflags in $cf_pkgconfig_incs
14053 case "$cf_fix_cppflags" in
14055 case "$cf_add_cflags" in
14056 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14057 case "$cf_add_cflags" in
14059 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14061 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14062 && test -z "${cf_tst_cflags}" \
14063 && cf_fix_cppflags=yes
14065 if test "$cf_fix_cppflags" = yes ; then
14067 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14068 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14071 elif test "${cf_tst_cflags}" = "\"'" ; then
14073 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14074 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14080 case "$CPPFLAGS" in
14084 case "$cf_add_cflags" in
14086 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14088 CPPFLAGS=`echo "$CPPFLAGS" | \
14089 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14090 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14095 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14096 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14103 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14104 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14111 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14112 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14114 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14116 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14117 && test -z "${cf_tst_cflags}" \
14118 && cf_fix_cppflags=no
14123 if test -n "$cf_new_cflags" ; then
14125 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14126 CFLAGS="${CFLAGS}$cf_new_cflags"
14130 if test -n "$cf_new_cppflags" ; then
14132 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14133 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14137 if test -n "$cf_new_extra_cppflags" ; then
14139 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14140 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14144 cf_add_libs="$LIBS"
14147 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14148 # filter duplicates
14149 for cf_add_1lib in $cf_add_0lib; do
14150 for cf_add_2lib in $cf_add_libs; do
14151 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14156 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14158 LIBS="$cf_add_libs"
14164 { echo "$as_me:14164: WARNING: unable to find X11 library" >&5
14165 echo "$as_me: WARNING: unable to find X11 library" >&2;}
14168 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
14169 test -n "$verbose" && echo " found package ice" 1>&6
14171 echo "${as_me:-configure}:14171: testing found package ice ..." 1>&5
14173 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
14174 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
14175 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
14177 echo "${as_me:-configure}:14177: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14179 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
14181 echo "${as_me:-configure}:14181: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
14186 cf_new_extra_cppflags=
14188 for cf_add_cflags in $cf_pkgconfig_incs
14190 case "$cf_fix_cppflags" in
14192 case "$cf_add_cflags" in
14193 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14194 case "$cf_add_cflags" in
14196 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14198 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14199 && test -z "${cf_tst_cflags}" \
14200 && cf_fix_cppflags=yes
14202 if test "$cf_fix_cppflags" = yes ; then
14204 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14205 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14208 elif test "${cf_tst_cflags}" = "\"'" ; then
14210 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14211 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14217 case "$CPPFLAGS" in
14221 case "$cf_add_cflags" in
14223 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14225 CPPFLAGS=`echo "$CPPFLAGS" | \
14226 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14227 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14232 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14233 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14240 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14241 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14248 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14249 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14251 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14253 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14254 && test -z "${cf_tst_cflags}" \
14255 && cf_fix_cppflags=no
14260 if test -n "$cf_new_cflags" ; then
14262 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14263 CFLAGS="${CFLAGS}$cf_new_cflags"
14267 if test -n "$cf_new_cppflags" ; then
14269 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14270 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14274 if test -n "$cf_new_extra_cppflags" ; then
14276 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14277 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14281 cf_add_libs="$LIBS"
14284 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14285 # filter duplicates
14286 for cf_add_1lib in $cf_add_0lib; do
14287 for cf_add_2lib in $cf_add_libs; do
14288 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14293 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14295 LIBS="$cf_add_libs"
14301 { echo "$as_me:14301: WARNING: unable to find ICE library" >&5
14302 echo "$as_me: WARNING: unable to find ICE library" >&2;}
14305 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
14306 test -n "$verbose" && echo " found package sm" 1>&6
14308 echo "${as_me:-configure}:14308: testing found package sm ..." 1>&5
14310 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
14311 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
14312 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
14314 echo "${as_me:-configure}:14314: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14316 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
14318 echo "${as_me:-configure}:14318: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
14323 cf_new_extra_cppflags=
14325 for cf_add_cflags in $cf_pkgconfig_incs
14327 case "$cf_fix_cppflags" in
14329 case "$cf_add_cflags" in
14330 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14331 case "$cf_add_cflags" in
14333 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14335 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14336 && test -z "${cf_tst_cflags}" \
14337 && cf_fix_cppflags=yes
14339 if test "$cf_fix_cppflags" = yes ; then
14341 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14342 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14345 elif test "${cf_tst_cflags}" = "\"'" ; then
14347 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14348 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14354 case "$CPPFLAGS" in
14358 case "$cf_add_cflags" in
14360 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14362 CPPFLAGS=`echo "$CPPFLAGS" | \
14363 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14364 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14369 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14370 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14377 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14378 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14385 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14386 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14388 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14390 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14391 && test -z "${cf_tst_cflags}" \
14392 && cf_fix_cppflags=no
14397 if test -n "$cf_new_cflags" ; then
14399 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14400 CFLAGS="${CFLAGS}$cf_new_cflags"
14404 if test -n "$cf_new_cppflags" ; then
14406 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14407 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14411 if test -n "$cf_new_extra_cppflags" ; then
14413 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14414 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14418 cf_add_libs="$LIBS"
14421 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14422 # filter duplicates
14423 for cf_add_1lib in $cf_add_0lib; do
14424 for cf_add_2lib in $cf_add_libs; do
14425 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14430 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14432 LIBS="$cf_add_libs"
14438 { echo "$as_me:14438: WARNING: unable to find SM library" >&5
14439 echo "$as_me: WARNING: unable to find SM library" >&2;}
14442 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
14443 test -n "$verbose" && echo " found package xt" 1>&6
14445 echo "${as_me:-configure}:14445: testing found package xt ..." 1>&5
14447 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
14448 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
14449 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
14451 echo "${as_me:-configure}:14451: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14453 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
14455 echo "${as_me:-configure}:14455: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
14460 cf_new_extra_cppflags=
14462 for cf_add_cflags in $cf_pkgconfig_incs
14464 case "$cf_fix_cppflags" in
14466 case "$cf_add_cflags" in
14467 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14468 case "$cf_add_cflags" in
14470 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14472 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14473 && test -z "${cf_tst_cflags}" \
14474 && cf_fix_cppflags=yes
14476 if test "$cf_fix_cppflags" = yes ; then
14478 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14479 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14482 elif test "${cf_tst_cflags}" = "\"'" ; then
14484 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14485 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14491 case "$CPPFLAGS" in
14495 case "$cf_add_cflags" in
14497 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14499 CPPFLAGS=`echo "$CPPFLAGS" | \
14500 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14501 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14506 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14507 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14514 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14515 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14522 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14523 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14525 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14527 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14528 && test -z "${cf_tst_cflags}" \
14529 && cf_fix_cppflags=no
14534 if test -n "$cf_new_cflags" ; then
14536 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14537 CFLAGS="${CFLAGS}$cf_new_cflags"
14541 if test -n "$cf_new_cppflags" ; then
14543 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14544 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14548 if test -n "$cf_new_extra_cppflags" ; then
14550 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14551 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14555 cf_add_libs="$LIBS"
14558 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14559 # filter duplicates
14560 for cf_add_1lib in $cf_add_0lib; do
14561 for cf_add_2lib in $cf_add_libs; do
14562 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14567 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14569 LIBS="$cf_add_libs"
14575 { echo "$as_me:14575: WARNING: unable to find Xt library" >&5
14576 echo "$as_me: WARNING: unable to find Xt library" >&2;}
14580 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
14585 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
14586 test -n "$verbose" && echo " found package xt" 1>&6
14588 echo "${as_me:-configure}:14588: testing found package xt ..." 1>&5
14590 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
14591 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
14592 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
14594 echo "${as_me:-configure}:14594: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14596 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
14598 echo "${as_me:-configure}:14598: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
14603 cf_new_extra_cppflags=
14605 for cf_add_cflags in $cf_pkgconfig_incs
14607 case "$cf_fix_cppflags" in
14609 case "$cf_add_cflags" in
14610 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14611 case "$cf_add_cflags" in
14613 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14615 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14616 && test -z "${cf_tst_cflags}" \
14617 && cf_fix_cppflags=yes
14619 if test "$cf_fix_cppflags" = yes ; then
14621 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14622 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14625 elif test "${cf_tst_cflags}" = "\"'" ; then
14627 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14628 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14634 case "$CPPFLAGS" in
14638 case "$cf_add_cflags" in
14640 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14642 CPPFLAGS=`echo "$CPPFLAGS" | \
14643 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14644 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14649 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14650 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14657 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14658 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14665 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14666 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14668 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14670 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14671 && test -z "${cf_tst_cflags}" \
14672 && cf_fix_cppflags=no
14677 if test -n "$cf_new_cflags" ; then
14679 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14680 CFLAGS="${CFLAGS}$cf_new_cflags"
14684 if test -n "$cf_new_cppflags" ; then
14686 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14687 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14691 if test -n "$cf_new_extra_cppflags" ; then
14693 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14694 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14698 cf_add_libs="$LIBS"
14701 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14702 # filter duplicates
14703 for cf_add_1lib in $cf_add_0lib; do
14704 for cf_add_2lib in $cf_add_libs; do
14705 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14710 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14712 LIBS="$cf_add_libs"
14718 # we have an "xt" package, but it may omit Xt's dependency on X11
14719 echo "$as_me:14719: checking for usable X dependency" >&5
14720 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
14721 if test "${cf_cv_xt_x11_compat+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 cat >"conftest.$ac_ext" <<_ACEOF
14726 #line 14726 "configure"
14727 #include "confdefs.h"
14729 #include <X11/Xlib.h>
14735 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
14736 int rc2 = XClearWindow((Display*) 0, (Window) 0);
14737 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
14738 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
14744 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14745 if { (eval echo "$as_me:14745: \"$ac_link\"") >&5
14746 (eval $ac_link) 2>&5
14748 echo "$as_me:14748: \$? = $ac_status" >&5
14749 (exit "$ac_status"); } &&
14750 { ac_try='test -s "conftest$ac_exeext"'
14751 { (eval echo "$as_me:14751: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14754 echo "$as_me:14754: \$? = $ac_status" >&5
14755 (exit "$ac_status"); }; }; then
14756 cf_cv_xt_x11_compat=yes
14758 echo "$as_me: failed program was:" >&5
14759 cat "conftest.$ac_ext" >&5
14760 cf_cv_xt_x11_compat=no
14762 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14764 echo "$as_me:14764: result: $cf_cv_xt_x11_compat" >&5
14765 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
14766 if test "$cf_cv_xt_x11_compat" = no
14768 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
14770 echo "${as_me:-configure}:14770: testing work around broken X11 dependency ..." 1>&5
14772 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
14774 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
14775 test -n "$verbose" && echo " found package x11" 1>&6
14777 echo "${as_me:-configure}:14777: testing found package x11 ..." 1>&5
14779 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
14780 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
14781 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
14783 echo "${as_me:-configure}:14783: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14785 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
14787 echo "${as_me:-configure}:14787: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
14792 cf_new_extra_cppflags=
14794 for cf_add_cflags in $cf_pkgconfig_incs
14796 case "$cf_fix_cppflags" in
14798 case "$cf_add_cflags" in
14799 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14800 case "$cf_add_cflags" in
14802 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14804 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14805 && test -z "${cf_tst_cflags}" \
14806 && cf_fix_cppflags=yes
14808 if test "$cf_fix_cppflags" = yes ; then
14810 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14811 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14814 elif test "${cf_tst_cflags}" = "\"'" ; then
14816 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14817 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14823 case "$CPPFLAGS" in
14827 case "$cf_add_cflags" in
14829 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14831 CPPFLAGS=`echo "$CPPFLAGS" | \
14832 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14833 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14838 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14839 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14846 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14847 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14854 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14855 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14857 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14859 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14860 && test -z "${cf_tst_cflags}" \
14861 && cf_fix_cppflags=no
14866 if test -n "$cf_new_cflags" ; then
14868 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14869 CFLAGS="${CFLAGS}$cf_new_cflags"
14873 if test -n "$cf_new_cppflags" ; then
14875 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14876 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14880 if test -n "$cf_new_extra_cppflags" ; then
14882 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14883 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14887 cf_add_libs="$LIBS"
14890 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14891 # filter duplicates
14892 for cf_add_1lib in $cf_add_0lib; do
14893 for cf_add_2lib in $cf_add_libs; do
14894 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14899 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14901 LIBS="$cf_add_libs"
14908 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14910 echo "${as_me:-configure}:14910: testing ...before $LIBS ..." 1>&5
14912 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
14913 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14915 echo "${as_me:-configure}:14915: testing ...after $LIBS ..." 1>&5
14923 echo "$as_me:14923: checking for usable X Toolkit package" >&5
14924 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
14925 if test "${cf_cv_xt_ice_compat+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 cat >"conftest.$ac_ext" <<_ACEOF
14930 #line 14930 "configure"
14931 #include "confdefs.h"
14933 #include <X11/Shell.h>
14938 int num = IceConnectionNumber(0); (void) num
14944 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14945 if { (eval echo "$as_me:14945: \"$ac_link\"") >&5
14946 (eval $ac_link) 2>&5
14948 echo "$as_me:14948: \$? = $ac_status" >&5
14949 (exit "$ac_status"); } &&
14950 { ac_try='test -s "conftest$ac_exeext"'
14951 { (eval echo "$as_me:14951: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:14954: \$? = $ac_status" >&5
14955 (exit "$ac_status"); }; }; then
14956 cf_cv_xt_ice_compat=yes
14958 echo "$as_me: failed program was:" >&5
14959 cat "conftest.$ac_ext" >&5
14960 cf_cv_xt_ice_compat=no
14962 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14964 echo "$as_me:14964: result: $cf_cv_xt_ice_compat" >&5
14965 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
14967 if test "$cf_cv_xt_ice_compat" = no
14969 # workaround for broken ".pc" files used for X Toolkit.
14970 case "x$X_PRE_LIBS" in
14976 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
14978 echo "${as_me:-configure}:14978: testing work around broken ICE dependency ..." 1>&5
14980 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
14981 test -n "$verbose" && echo " found package ice" 1>&6
14983 echo "${as_me:-configure}:14983: testing found package ice ..." 1>&5
14985 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
14986 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
14987 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
14989 echo "${as_me:-configure}:14989: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14991 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
14993 echo "${as_me:-configure}:14993: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
14998 cf_new_extra_cppflags=
15000 for cf_add_cflags in $cf_pkgconfig_incs
15002 case "$cf_fix_cppflags" in
15004 case "$cf_add_cflags" in
15005 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15006 case "$cf_add_cflags" in
15008 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15010 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15011 && test -z "${cf_tst_cflags}" \
15012 && cf_fix_cppflags=yes
15014 if test "$cf_fix_cppflags" = yes ; then
15016 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15017 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15020 elif test "${cf_tst_cflags}" = "\"'" ; then
15022 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15023 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15029 case "$CPPFLAGS" in
15033 case "$cf_add_cflags" in
15035 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15037 CPPFLAGS=`echo "$CPPFLAGS" | \
15038 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15039 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15044 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15045 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15052 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15053 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15060 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15061 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15063 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15065 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15066 && test -z "${cf_tst_cflags}" \
15067 && cf_fix_cppflags=no
15072 if test -n "$cf_new_cflags" ; then
15074 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15075 CFLAGS="${CFLAGS}$cf_new_cflags"
15079 if test -n "$cf_new_cppflags" ; then
15081 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15082 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15086 if test -n "$cf_new_extra_cppflags" ; then
15088 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15089 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15093 cf_add_libs="$LIBS"
15096 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15097 # filter duplicates
15098 for cf_add_1lib in $cf_add_0lib; do
15099 for cf_add_2lib in $cf_add_libs; do
15100 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15105 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15107 LIBS="$cf_add_libs"
15109 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
15110 test -n "$verbose" && echo " found package sm" 1>&6
15112 echo "${as_me:-configure}:15112: testing found package sm ..." 1>&5
15114 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
15115 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
15116 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
15118 echo "${as_me:-configure}:15118: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15120 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
15122 echo "${as_me:-configure}:15122: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
15127 cf_new_extra_cppflags=
15129 for cf_add_cflags in $cf_pkgconfig_incs
15131 case "$cf_fix_cppflags" in
15133 case "$cf_add_cflags" in
15134 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15135 case "$cf_add_cflags" in
15137 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15139 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15140 && test -z "${cf_tst_cflags}" \
15141 && cf_fix_cppflags=yes
15143 if test "$cf_fix_cppflags" = yes ; then
15145 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15146 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15149 elif test "${cf_tst_cflags}" = "\"'" ; then
15151 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15152 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15158 case "$CPPFLAGS" in
15162 case "$cf_add_cflags" in
15164 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15166 CPPFLAGS=`echo "$CPPFLAGS" | \
15167 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15168 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15173 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15174 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15181 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15182 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15189 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15190 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15192 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15194 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15195 && test -z "${cf_tst_cflags}" \
15196 && cf_fix_cppflags=no
15201 if test -n "$cf_new_cflags" ; then
15203 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15204 CFLAGS="${CFLAGS}$cf_new_cflags"
15208 if test -n "$cf_new_cppflags" ; then
15210 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15211 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15215 if test -n "$cf_new_extra_cppflags" ; then
15217 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15218 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15222 cf_add_libs="$LIBS"
15225 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15226 # filter duplicates
15227 for cf_add_1lib in $cf_add_0lib; do
15228 for cf_add_2lib in $cf_add_libs; do
15229 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15234 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15236 LIBS="$cf_add_libs"
15249 test -n "$verbose" && echo " ...before $LIBS" 1>&6
15251 echo "${as_me:-configure}:15251: testing ...before $LIBS ..." 1>&5
15253 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
15254 test -n "$verbose" && echo " ...after $LIBS" 1>&6
15256 echo "${as_me:-configure}:15256: testing ...after $LIBS ..." 1>&5
15272 LDFLAGS="$X_LIBS $LDFLAGS"
15274 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
15276 echo "${as_me:-configure}:15276: testing checking additions to CFLAGS ..." 1>&5
15278 cf_check_cflags="$CFLAGS"
15279 cf_check_cppflags="$CPPFLAGS"
15284 cf_new_extra_cppflags=
15286 for cf_add_cflags in $X_CFLAGS
15288 case "$cf_fix_cppflags" in
15290 case "$cf_add_cflags" in
15291 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15292 case "$cf_add_cflags" in
15294 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15296 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15297 && test -z "${cf_tst_cflags}" \
15298 && cf_fix_cppflags=yes
15300 if test "$cf_fix_cppflags" = yes ; then
15302 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15303 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15306 elif test "${cf_tst_cflags}" = "\"'" ; then
15308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15309 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15315 case "$CPPFLAGS" in
15319 case "$cf_add_cflags" in
15321 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15323 CPPFLAGS=`echo "$CPPFLAGS" | \
15324 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15325 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15330 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15331 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15338 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15339 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15347 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15349 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15351 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15352 && test -z "${cf_tst_cflags}" \
15353 && cf_fix_cppflags=no
15358 if test -n "$cf_new_cflags" ; then
15359 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
15361 echo "${as_me:-configure}:15361: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
15363 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15364 CFLAGS="${CFLAGS}$cf_new_cflags"
15368 if test -n "$cf_new_cppflags" ; then
15369 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
15371 echo "${as_me:-configure}:15371: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
15373 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15374 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15378 if test -n "$cf_new_extra_cppflags" ; then
15379 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
15381 echo "${as_me:-configure}:15381: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
15383 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15384 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15388 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
15389 cat >"conftest.$ac_ext" <<_ACEOF
15390 #line 15390 "configure"
15391 #include "confdefs.h"
15396 printf("Hello world");
15401 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15402 if { (eval echo "$as_me:15402: \"$ac_link\"") >&5
15403 (eval $ac_link) 2>&5
15405 echo "$as_me:15405: \$? = $ac_status" >&5
15406 (exit "$ac_status"); } &&
15407 { ac_try='test -s "conftest$ac_exeext"'
15408 { (eval echo "$as_me:15408: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:15411: \$? = $ac_status" >&5
15412 (exit "$ac_status"); }; }; then
15415 echo "$as_me: failed program was:" >&5
15416 cat "conftest.$ac_ext" >&5
15417 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
15419 echo "${as_me:-configure}:15419: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
15421 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
15422 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
15424 echo "${as_me:-configure}:15424: testing but keeping change to \$CPPFLAGS ..." 1>&5
15427 CFLAGS="$cf_check_cflags"
15429 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15432 echo "$as_me:15432: checking for XOpenDisplay" >&5
15433 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
15434 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 cat >"conftest.$ac_ext" <<_ACEOF
15438 #line 15438 "configure"
15439 #include "confdefs.h"
15440 #define XOpenDisplay autoconf_temporary
15441 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15442 #undef XOpenDisplay
15448 /* We use char because int might match the return type of a gcc2
15449 builtin and then its argument prototype would still apply. */
15450 char XOpenDisplay (void);
15456 /* The GNU C library defines stubs for functions which it implements
15457 to always fail with ENOSYS. Some functions are actually named
15458 something starting with __ and the normal name is an alias. */
15459 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
15460 #error found stub for XOpenDisplay
15463 return XOpenDisplay ();
15468 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15469 if { (eval echo "$as_me:15469: \"$ac_link\"") >&5
15470 (eval $ac_link) 2>&5
15472 echo "$as_me:15472: \$? = $ac_status" >&5
15473 (exit "$ac_status"); } &&
15474 { ac_try='test -s "conftest$ac_exeext"'
15475 { (eval echo "$as_me:15475: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:15478: \$? = $ac_status" >&5
15479 (exit "$ac_status"); }; }; then
15480 ac_cv_func_XOpenDisplay=yes
15482 echo "$as_me: failed program was:" >&5
15483 cat "conftest.$ac_ext" >&5
15484 ac_cv_func_XOpenDisplay=no
15486 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15488 echo "$as_me:15488: result: $ac_cv_func_XOpenDisplay" >&5
15489 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
15490 if test "$ac_cv_func_XOpenDisplay" = yes; then
15494 echo "$as_me:15494: checking for XOpenDisplay in -lX11" >&5
15495 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
15496 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 ac_check_lib_save_LIBS=$LIBS
15501 cat >"conftest.$ac_ext" <<_ACEOF
15502 #line 15502 "configure"
15503 #include "confdefs.h"
15505 /* Override any gcc2 internal prototype to avoid an error. */
15509 /* We use char because int might match the return type of a gcc2
15510 builtin and then its argument prototype would still apply. */
15511 char XOpenDisplay ();
15520 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15521 if { (eval echo "$as_me:15521: \"$ac_link\"") >&5
15522 (eval $ac_link) 2>&5
15524 echo "$as_me:15524: \$? = $ac_status" >&5
15525 (exit "$ac_status"); } &&
15526 { ac_try='test -s "conftest$ac_exeext"'
15527 { (eval echo "$as_me:15527: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:15530: \$? = $ac_status" >&5
15531 (exit "$ac_status"); }; }; then
15532 ac_cv_lib_X11_XOpenDisplay=yes
15534 echo "$as_me: failed program was:" >&5
15535 cat "conftest.$ac_ext" >&5
15536 ac_cv_lib_X11_XOpenDisplay=no
15538 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15539 LIBS=$ac_check_lib_save_LIBS
15541 echo "$as_me:15541: result: $ac_cv_lib_X11_XOpenDisplay" >&5
15542 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
15543 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
15545 cf_add_libs="$LIBS"
15548 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15549 # filter duplicates
15550 for cf_add_1lib in $cf_add_0lib; do
15551 for cf_add_2lib in $cf_add_libs; do
15552 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15557 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15559 LIBS="$cf_add_libs"
15565 echo "$as_me:15565: checking for XtAppInitialize" >&5
15566 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
15567 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 cat >"conftest.$ac_ext" <<_ACEOF
15571 #line 15571 "configure"
15572 #include "confdefs.h"
15573 #define XtAppInitialize autoconf_temporary
15574 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15575 #undef XtAppInitialize
15581 /* We use char because int might match the return type of a gcc2
15582 builtin and then its argument prototype would still apply. */
15583 char XtAppInitialize (void);
15589 /* The GNU C library defines stubs for functions which it implements
15590 to always fail with ENOSYS. Some functions are actually named
15591 something starting with __ and the normal name is an alias. */
15592 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
15593 #error found stub for XtAppInitialize
15596 return XtAppInitialize ();
15601 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15602 if { (eval echo "$as_me:15602: \"$ac_link\"") >&5
15603 (eval $ac_link) 2>&5
15605 echo "$as_me:15605: \$? = $ac_status" >&5
15606 (exit "$ac_status"); } &&
15607 { ac_try='test -s "conftest$ac_exeext"'
15608 { (eval echo "$as_me:15608: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:15611: \$? = $ac_status" >&5
15612 (exit "$ac_status"); }; }; then
15613 ac_cv_func_XtAppInitialize=yes
15615 echo "$as_me: failed program was:" >&5
15616 cat "conftest.$ac_ext" >&5
15617 ac_cv_func_XtAppInitialize=no
15619 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15621 echo "$as_me:15621: result: $ac_cv_func_XtAppInitialize" >&5
15622 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
15623 if test "$ac_cv_func_XtAppInitialize" = yes; then
15627 echo "$as_me:15627: checking for XtAppInitialize in -lXt" >&5
15628 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
15629 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 ac_check_lib_save_LIBS=$LIBS
15634 cat >"conftest.$ac_ext" <<_ACEOF
15635 #line 15635 "configure"
15636 #include "confdefs.h"
15638 /* Override any gcc2 internal prototype to avoid an error. */
15642 /* We use char because int might match the return type of a gcc2
15643 builtin and then its argument prototype would still apply. */
15644 char XtAppInitialize ();
15648 XtAppInitialize ();
15653 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15654 if { (eval echo "$as_me:15654: \"$ac_link\"") >&5
15655 (eval $ac_link) 2>&5
15657 echo "$as_me:15657: \$? = $ac_status" >&5
15658 (exit "$ac_status"); } &&
15659 { ac_try='test -s "conftest$ac_exeext"'
15660 { (eval echo "$as_me:15660: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:15663: \$? = $ac_status" >&5
15664 (exit "$ac_status"); }; }; then
15665 ac_cv_lib_Xt_XtAppInitialize=yes
15667 echo "$as_me: failed program was:" >&5
15668 cat "conftest.$ac_ext" >&5
15669 ac_cv_lib_Xt_XtAppInitialize=no
15671 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15672 LIBS=$ac_check_lib_save_LIBS
15674 echo "$as_me:15674: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
15675 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
15676 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
15678 cat >>confdefs.h <<\EOF
15679 #define HAVE_LIBXT 1
15690 if test "$cf_have_X_LIBS" = no ; then
15691 { echo "$as_me:15691: WARNING: Unable to successfully link X Toolkit library (-lXt) with
15692 test program. You will have to check and add the proper libraries by hand
15694 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
15695 test program. You will have to check and add the proper libraries by hand
15696 to makefile." >&2;}
15699 cf_x_athena_root=$cf_x_athena
15702 for cf_path in default \
15703 /usr/contrib/X11R6 \
15704 /usr/contrib/X11R5 \
15708 if test -z "$cf_x_athena_inc" ; then
15710 cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS"
15711 cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS"
15712 cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS"
15713 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15714 for cf_X_CFLAGS in $X_CFLAGS
15716 case "x$cf_X_CFLAGS" in
15718 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15721 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15726 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
15727 if test "$cf_path" != default ; then
15729 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15730 CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
15732 echo "$as_me:15732: checking for $cf_test in $cf_path" >&5
15733 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
15735 echo "$as_me:15735: checking for $cf_test" >&5
15736 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
15738 cat >"conftest.$ac_ext" <<_ACEOF
15739 #line 15739 "configure"
15740 #include "confdefs.h"
15742 #include <X11/Intrinsic.h>
15743 #include <$cf_test>
15752 rm -f "conftest.$ac_objext"
15753 if { (eval echo "$as_me:15753: \"$ac_compile\"") >&5
15754 (eval $ac_compile) 2>&5
15756 echo "$as_me:15756: \$? = $ac_status" >&5
15757 (exit "$ac_status"); } &&
15758 { ac_try='test -s "conftest.$ac_objext"'
15759 { (eval echo "$as_me:15759: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:15762: \$? = $ac_status" >&5
15763 (exit "$ac_status"); }; }; then
15766 echo "$as_me: failed program was:" >&5
15767 cat "conftest.$ac_ext" >&5
15770 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15771 echo "$as_me:15771: result: $cf_result" >&5
15772 echo "${ECHO_T}$cf_result" >&6
15774 LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS"
15775 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS"
15776 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS"
15778 if test "$cf_result" = yes ; then
15779 test "$cf_path" = default && cf_x_athena_inc=default
15780 test "$cf_path" != default && cf_x_athena_inc="$cf_path/include"
15786 if test -z "$cf_x_athena_inc" ; then
15787 { echo "$as_me:15787: WARNING: Unable to find Athena header files" >&5
15788 echo "$as_me: WARNING: Unable to find Athena header files" >&2;}
15789 elif test "$cf_x_athena_inc" != default ; then
15791 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15792 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
15796 cf_x_athena_root=$cf_x_athena
15799 for cf_path in default \
15800 /usr/contrib/X11R6 \
15801 /usr/contrib/X11R5 \
15806 ${cf_x_athena_root} \
15807 ${cf_x_athena_root}7 \
15808 ${cf_x_athena_root}6
15811 "-l$cf_lib -lXmu" \
15812 "-l$cf_lib -lXpm -lXmu" \
15813 "-l${cf_lib}_s -lXmu_s"
15815 test -n "$cf_x_athena_lib" && break
15817 cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS"
15818 cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS"
15819 cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS"
15820 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15821 for cf_X_CFLAGS in $X_CFLAGS
15823 case "x$cf_X_CFLAGS" in
15825 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15828 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15833 cf_test=XawSimpleMenuAddGlobalActions
15834 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
15836 cf_add_libs="$LIBS"
15839 for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15840 # filter duplicates
15841 for cf_add_1lib in $cf_add_0lib; do
15842 for cf_add_2lib in $cf_add_libs; do
15843 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15848 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15850 LIBS="$cf_add_libs"
15852 echo "$as_me:15852: checking for $cf_test in $cf_libs" >&5
15853 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
15854 cat >"conftest.$ac_ext" <<_ACEOF
15855 #line 15855 "configure"
15856 #include "confdefs.h"
15858 #include <X11/Intrinsic.h>
15859 #include <X11/$cf_x_athena_root/SimpleMenu.h>
15865 $cf_test((XtAppContext) 0)
15870 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15871 if { (eval echo "$as_me:15871: \"$ac_link\"") >&5
15872 (eval $ac_link) 2>&5
15874 echo "$as_me:15874: \$? = $ac_status" >&5
15875 (exit "$ac_status"); } &&
15876 { ac_try='test -s "conftest$ac_exeext"'
15877 { (eval echo "$as_me:15877: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15880 echo "$as_me:15880: \$? = $ac_status" >&5
15881 (exit "$ac_status"); }; }; then
15884 echo "$as_me: failed program was:" >&5
15885 cat "conftest.$ac_ext" >&5
15888 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15889 echo "$as_me:15889: result: $cf_result" >&5
15890 echo "${ECHO_T}$cf_result" >&6
15892 LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS"
15893 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS"
15894 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS"
15896 if test "$cf_result" = yes ; then
15897 cf_x_athena_lib="$cf_libs"
15901 test -n "$cf_x_athena_lib" && break
15905 if test -z "$cf_x_athena_lib" ; then
15906 { { echo "$as_me:15906: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
15907 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
15908 { (exit 1); exit 1; }; }
15911 cf_add_libs="$LIBS"
15914 for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15915 # filter duplicates
15916 for cf_add_1lib in $cf_add_0lib; do
15917 for cf_add_2lib in $cf_add_libs; do
15918 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15923 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15925 LIBS="$cf_add_libs"
15927 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15929 cat >>confdefs.h <<EOF
15930 #define $cf_x_athena_LIBS 1
15935 if test -n "$ac_tool_prefix"; then
15936 for ac_prog in xcurses-config
15938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15940 echo "$as_me:15940: checking for $ac_word" >&5
15941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15942 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 if test -n "$XCURSES_CONFIG"; then
15946 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
15948 ac_save_IFS=$IFS; IFS=$ac_path_separator
15950 for ac_dir in $ac_dummy; do
15952 test -z "$ac_dir" && ac_dir=.
15953 $as_executable_p "$ac_dir/$ac_word" || continue
15954 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
15955 echo "$as_me:15955: found $ac_dir/$ac_word" >&5
15961 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
15962 if test -n "$XCURSES_CONFIG"; then
15963 echo "$as_me:15963: result: $XCURSES_CONFIG" >&5
15964 echo "${ECHO_T}$XCURSES_CONFIG" >&6
15966 echo "$as_me:15966: result: no" >&5
15967 echo "${ECHO_T}no" >&6
15970 test -n "$XCURSES_CONFIG" && break
15973 if test -z "$XCURSES_CONFIG"; then
15974 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
15975 for ac_prog in xcurses-config
15977 # Extract the first word of "$ac_prog", so it can be a program name with args.
15978 set dummy $ac_prog; ac_word=$2
15979 echo "$as_me:15979: checking for $ac_word" >&5
15980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15981 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 if test -n "$ac_ct_XCURSES_CONFIG"; then
15985 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
15987 ac_save_IFS=$IFS; IFS=$ac_path_separator
15989 for ac_dir in $ac_dummy; do
15991 test -z "$ac_dir" && ac_dir=.
15992 $as_executable_p "$ac_dir/$ac_word" || continue
15993 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
15994 echo "$as_me:15994: found $ac_dir/$ac_word" >&5
16000 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
16001 if test -n "$ac_ct_XCURSES_CONFIG"; then
16002 echo "$as_me:16002: result: $ac_ct_XCURSES_CONFIG" >&5
16003 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
16005 echo "$as_me:16005: result: no" >&5
16006 echo "${ECHO_T}no" >&6
16009 test -n "$ac_ct_XCURSES_CONFIG" && break
16011 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
16013 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
16016 if test "$XCURSES_CONFIG" != none ; then
16021 cf_new_extra_cppflags=
16023 for cf_add_cflags in `$XCURSES_CONFIG --cflags`
16025 case "$cf_fix_cppflags" in
16027 case "$cf_add_cflags" in
16028 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16029 case "$cf_add_cflags" in
16031 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16033 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16034 && test -z "${cf_tst_cflags}" \
16035 && cf_fix_cppflags=yes
16037 if test "$cf_fix_cppflags" = yes ; then
16039 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16040 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16043 elif test "${cf_tst_cflags}" = "\"'" ; then
16045 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16046 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16052 case "$CPPFLAGS" in
16056 case "$cf_add_cflags" in
16058 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16060 CPPFLAGS=`echo "$CPPFLAGS" | \
16061 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16062 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16067 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16068 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16075 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16076 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16083 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16084 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16086 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16088 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16089 && test -z "${cf_tst_cflags}" \
16090 && cf_fix_cppflags=no
16095 if test -n "$cf_new_cflags" ; then
16097 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16098 CFLAGS="${CFLAGS}$cf_new_cflags"
16102 if test -n "$cf_new_cppflags" ; then
16104 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16105 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16109 if test -n "$cf_new_extra_cppflags" ; then
16111 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16112 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16116 cf_add_libs="$LIBS"
16119 for cf_add_1lib in `$XCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16120 # filter duplicates
16121 for cf_add_1lib in $cf_add_0lib; do
16122 for cf_add_2lib in $cf_add_libs; do
16123 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16128 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16130 LIBS="$cf_add_libs"
16132 cf_cv_lib_XCurses=yes
16136 LDFLAGS="$LDFLAGS $X_LIBS"
16138 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
16140 echo "${as_me:-configure}:16140: testing checking additions to CFLAGS ..." 1>&5
16142 cf_check_cflags="$CFLAGS"
16143 cf_check_cppflags="$CPPFLAGS"
16148 cf_new_extra_cppflags=
16150 for cf_add_cflags in $X_CFLAGS
16152 case "$cf_fix_cppflags" in
16154 case "$cf_add_cflags" in
16155 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16156 case "$cf_add_cflags" in
16158 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16160 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16161 && test -z "${cf_tst_cflags}" \
16162 && cf_fix_cppflags=yes
16164 if test "$cf_fix_cppflags" = yes ; then
16166 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16167 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16170 elif test "${cf_tst_cflags}" = "\"'" ; then
16172 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16173 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16179 case "$CPPFLAGS" in
16183 case "$cf_add_cflags" in
16185 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16187 CPPFLAGS=`echo "$CPPFLAGS" | \
16188 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16189 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16194 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16195 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16202 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16203 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16210 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16211 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16213 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16215 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16216 && test -z "${cf_tst_cflags}" \
16217 && cf_fix_cppflags=no
16222 if test -n "$cf_new_cflags" ; then
16223 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
16225 echo "${as_me:-configure}:16225: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
16227 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16228 CFLAGS="${CFLAGS}$cf_new_cflags"
16232 if test -n "$cf_new_cppflags" ; then
16233 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
16235 echo "${as_me:-configure}:16235: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
16237 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16238 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16242 if test -n "$cf_new_extra_cppflags" ; then
16243 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
16245 echo "${as_me:-configure}:16245: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
16247 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16248 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16252 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
16253 cat >"conftest.$ac_ext" <<_ACEOF
16254 #line 16254 "configure"
16255 #include "confdefs.h"
16260 printf("Hello world");
16265 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16266 if { (eval echo "$as_me:16266: \"$ac_link\"") >&5
16267 (eval $ac_link) 2>&5
16269 echo "$as_me:16269: \$? = $ac_status" >&5
16270 (exit "$ac_status"); } &&
16271 { ac_try='test -s "conftest$ac_exeext"'
16272 { (eval echo "$as_me:16272: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:16275: \$? = $ac_status" >&5
16276 (exit "$ac_status"); }; }; then
16279 echo "$as_me: failed program was:" >&5
16280 cat "conftest.$ac_ext" >&5
16281 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
16283 echo "${as_me:-configure}:16283: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
16285 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
16286 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
16288 echo "${as_me:-configure}:16288: testing but keeping change to \$CPPFLAGS ..." 1>&5
16291 CFLAGS="$cf_check_cflags"
16293 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16296 echo "$as_me:16296: checking for XOpenDisplay in -lX11" >&5
16297 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
16298 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 ac_check_lib_save_LIBS=$LIBS
16302 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
16303 cat >"conftest.$ac_ext" <<_ACEOF
16304 #line 16304 "configure"
16305 #include "confdefs.h"
16307 /* Override any gcc2 internal prototype to avoid an error. */
16311 /* We use char because int might match the return type of a gcc2
16312 builtin and then its argument prototype would still apply. */
16313 char XOpenDisplay ();
16322 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16323 if { (eval echo "$as_me:16323: \"$ac_link\"") >&5
16324 (eval $ac_link) 2>&5
16326 echo "$as_me:16326: \$? = $ac_status" >&5
16327 (exit "$ac_status"); } &&
16328 { ac_try='test -s "conftest$ac_exeext"'
16329 { (eval echo "$as_me:16329: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:16332: \$? = $ac_status" >&5
16333 (exit "$ac_status"); }; }; then
16334 ac_cv_lib_X11_XOpenDisplay=yes
16336 echo "$as_me: failed program was:" >&5
16337 cat "conftest.$ac_ext" >&5
16338 ac_cv_lib_X11_XOpenDisplay=no
16340 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16341 LIBS=$ac_check_lib_save_LIBS
16343 echo "$as_me:16343: result: $ac_cv_lib_X11_XOpenDisplay" >&5
16344 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
16345 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
16347 cf_add_libs="$LIBS"
16350 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16351 # filter duplicates
16352 for cf_add_1lib in $cf_add_0lib; do
16353 for cf_add_2lib in $cf_add_libs; do
16354 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16359 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16361 LIBS="$cf_add_libs"
16365 echo "$as_me:16365: checking for XCurses library" >&5
16366 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
16367 if test "${cf_cv_lib_XCurses+set}" = set; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 cf_add_libs="$LIBS"
16374 for cf_add_1lib in -lXCurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16375 # filter duplicates
16376 for cf_add_1lib in $cf_add_0lib; do
16377 for cf_add_2lib in $cf_add_libs; do
16378 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16383 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16385 LIBS="$cf_add_libs"
16387 cat >"conftest.$ac_ext" <<_ACEOF
16388 #line 16388 "configure"
16389 #include "confdefs.h"
16391 #include <xcurses.h>
16392 char *XCursesProgramName = "test";
16402 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16403 if { (eval echo "$as_me:16403: \"$ac_link\"") >&5
16404 (eval $ac_link) 2>&5
16406 echo "$as_me:16406: \$? = $ac_status" >&5
16407 (exit "$ac_status"); } &&
16408 { ac_try='test -s "conftest$ac_exeext"'
16409 { (eval echo "$as_me:16409: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16412 echo "$as_me:16412: \$? = $ac_status" >&5
16413 (exit "$ac_status"); }; }; then
16414 cf_cv_lib_XCurses=yes
16416 echo "$as_me: failed program was:" >&5
16417 cat "conftest.$ac_ext" >&5
16418 cf_cv_lib_XCurses=no
16420 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16423 echo "$as_me:16423: result: $cf_cv_lib_XCurses" >&5
16424 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
16428 if test "$cf_cv_lib_XCurses" = yes ; then
16430 cat >>confdefs.h <<\EOF
16434 cat >>confdefs.h <<\EOF
16438 echo "$as_me:16438: checking for xcurses.h" >&5
16439 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
16440 if test "${ac_cv_header_xcurses_h+set}" = set; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 cat >"conftest.$ac_ext" <<_ACEOF
16444 #line 16444 "configure"
16445 #include "confdefs.h"
16446 #include <xcurses.h>
16448 if { (eval echo "$as_me:16448: \"$ac_cpp "conftest.$ac_ext"\"") >&5
16449 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
16451 $EGREP -v '^ *\+' conftest.er1 >conftest.err
16453 cat conftest.err >&5
16454 echo "$as_me:16454: \$? = $ac_status" >&5
16455 (exit "$ac_status"); } >/dev/null; then
16456 if test -s conftest.err; then
16457 ac_cpp_err=$ac_c_preproc_warn_flag
16464 if test -z "$ac_cpp_err"; then
16465 ac_cv_header_xcurses_h=yes
16467 echo "$as_me: failed program was:" >&5
16468 cat "conftest.$ac_ext" >&5
16469 ac_cv_header_xcurses_h=no
16471 rm -f conftest.err "conftest.$ac_ext"
16473 echo "$as_me:16473: result: $ac_cv_header_xcurses_h" >&5
16474 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
16475 if test "$ac_cv_header_xcurses_h" = yes; then
16477 cat >>confdefs.h <<\EOF
16478 #define HAVE_XCURSES 1
16484 { { echo "$as_me:16484: error: Cannot link with XCurses" >&5
16485 echo "$as_me: error: Cannot link with XCurses" >&2;}
16486 { (exit 1); exit 1; }; }
16491 { { echo "$as_me:16491: error: unexpected screen-value: $cf_cv_screen" >&5
16492 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
16493 { (exit 1); exit 1; }; }
16497 : ${cf_nculib_root:=$cf_cv_screen}
16498 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
16499 echo "$as_me:16499: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
16500 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
16501 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 ac_check_lib_save_LIBS=$LIBS
16505 LIBS="-l$cf_nculib_root $LIBS"
16506 cat >"conftest.$ac_ext" <<_ACEOF
16507 #line 16507 "configure"
16508 #include "confdefs.h"
16510 /* Override any gcc2 internal prototype to avoid an error. */
16514 /* We use char because int might match the return type of a gcc2
16515 builtin and then its argument prototype would still apply. */
16516 char _nc_init_pthreads ();
16520 _nc_init_pthreads ();
16525 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16526 if { (eval echo "$as_me:16526: \"$ac_link\"") >&5
16527 (eval $ac_link) 2>&5
16529 echo "$as_me:16529: \$? = $ac_status" >&5
16530 (exit "$ac_status"); } &&
16531 { ac_try='test -s "conftest$ac_exeext"'
16532 { (eval echo "$as_me:16532: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16535 echo "$as_me:16535: \$? = $ac_status" >&5
16536 (exit "$ac_status"); }; }; then
16537 eval "$as_ac_Lib=yes"
16539 echo "$as_me: failed program was:" >&5
16540 cat "conftest.$ac_ext" >&5
16541 eval "$as_ac_Lib=no"
16543 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16544 LIBS=$ac_check_lib_save_LIBS
16546 echo "$as_me:16546: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
16547 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
16548 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
16549 cf_cv_ncurses_pthreads=yes
16551 cf_cv_ncurses_pthreads=no
16554 if test "$cf_cv_ncurses_pthreads" = yes
16557 cf_add_libs="$LIBS"
16560 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16561 # filter duplicates
16562 for cf_add_1lib in $cf_add_0lib; do
16563 for cf_add_2lib in $cf_add_libs; do
16564 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16569 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16571 LIBS="$cf_add_libs"
16575 case $cf_cv_screen in
16577 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
16581 echo "$as_me:16581: checking for X11 rgb file" >&5
16582 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
16584 # Check whether --with-x11-rgb or --without-x11-rgb was given.
16585 if test "${with_x11_rgb+set}" = set; then
16586 withval="$with_x11_rgb"
16592 if test "x$RGB_PATH" = xauto
16594 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
16596 /opt/local/share/X11/rgb.txt \
16597 /opt/X11/share/X11/rgb.txt \
16598 /usr/share/X11/rgb.txt \
16599 /usr/X11/share/X11/rgb.txt \
16600 /usr/X11/lib/X11/rgb.txt \
16601 /usr/lib/X11/rgb.txt \
16603 /usr/pkg/lib/X11/rgb.txt \
16604 /usr/X11R7/lib/X11/rgb.txt \
16605 /usr/X11R6/lib/X11/rgb.txt \
16606 /usr/X11R5/lib/X11/rgb.txt \
16607 /usr/X11R4/lib/X11/rgb.txt \
16608 /usr/local/lib/X11/rgb.txt \
16609 /usr/local/share/X11/rgb.txt \
16610 /usr/lib64/X11/rgb.txt
16612 if test -f "$cf_path" ; then
16613 RGB_PATH="$cf_path"
16620 if test "x$prefix" != xNONE; then
16621 cf_path_syntax="$prefix"
16623 cf_path_syntax="$ac_default_prefix"
16626 case ".$cf_path" in
16627 (.\$\(*\)*|.\'*\'*)
16631 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
16633 (.\$\{*prefix\}*|.\$\{*dir\}*)
16634 eval cf_path="$cf_path"
16635 case ".$cf_path" in
16637 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
16642 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
16645 { { echo "$as_me:16645: error: expected a pathname, not \"$cf_path\"" >&5
16646 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
16647 { (exit 1); exit 1; }; }
16653 echo "$as_me:16653: result: $RGB_PATH" >&5
16654 echo "${ECHO_T}$RGB_PATH" >&6
16656 cat >>confdefs.h <<EOF
16657 #define RGB_PATH "$cf_path"
16661 if test "$RGB_PATH" = no
16668 case $cf_cv_screen in
16670 cf_default_panel=no
16673 cf_default_tinfo=no
16675 (xcurses|bsdcurses)
16676 cf_default_panel=no
16679 cf_default_tinfo=yes
16682 cf_default_panel=yes
16683 cf_default_form=yes
16684 cf_default_menu=yes
16685 cf_default_tinfo=yes
16686 case $cf_cv_screen in
16688 cf_curses_headers="nc_alloc.h nomacros.h term_entry.h"
16694 echo "$as_me:16694: checking for desired basename for form library" >&5
16695 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
16697 # Check whether --with-form-libname or --without-form-libname was given.
16698 if test "${with_form_libname+set}" = set; then
16699 withval="$with_form_libname"
16700 with_lib_basename=$withval
16702 with_lib_basename=form
16704 FORM_NAME="$with_lib_basename"
16706 case "x$FORM_NAME" in
16714 echo "$as_me:16714: result: $FORM_NAME" >&5
16715 echo "${ECHO_T}$FORM_NAME" >&6
16717 echo "$as_me:16717: checking for desired basename for menu library" >&5
16718 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
16720 # Check whether --with-menu-libname or --without-menu-libname was given.
16721 if test "${with_menu_libname+set}" = set; then
16722 withval="$with_menu_libname"
16723 with_lib_basename=$withval
16725 with_lib_basename=menu
16727 MENU_NAME="$with_lib_basename"
16729 case "x$MENU_NAME" in
16737 echo "$as_me:16737: result: $MENU_NAME" >&5
16738 echo "${ECHO_T}$MENU_NAME" >&6
16740 echo "$as_me:16740: checking for desired basename for panel library" >&5
16741 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
16743 # Check whether --with-panel-libname or --without-panel-libname was given.
16744 if test "${with_panel_libname+set}" = set; then
16745 withval="$with_panel_libname"
16746 with_lib_basename=$withval
16748 with_lib_basename=panel
16750 PANEL_NAME="$with_lib_basename"
16752 case "x$PANEL_NAME" in
16760 echo "$as_me:16760: result: $PANEL_NAME" >&5
16761 echo "${ECHO_T}$PANEL_NAME" >&6
16763 echo "$as_me:16763: checking if you want to check for panel functions" >&5
16764 echo $ECHO_N "checking if you want to check for panel functions... $ECHO_C" >&6
16766 # Check whether --enable-panel or --disable-panel was given.
16767 if test "${enable_panel+set}" = set; then
16768 enableval="$enable_panel"
16769 test "$enableval" != no && enableval=yes
16770 if test "$enableval" != "yes" ; then
16773 cf_enable_panel=$cf_default_panel
16777 cf_enable_panel=$cf_default_panel
16780 echo "$as_me:16780: result: $cf_enable_panel" >&5
16781 echo "${ECHO_T}$cf_enable_panel" >&6
16782 if test $cf_enable_panel = yes
16785 cf_have_curses_lib=no
16787 : ${NCURSES_CONFIG_PKG:=none}
16788 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
16790 elif test "x${PKG_CONFIG:=none}" != xnone; then
16791 echo "$as_me:16791: checking pkg-config for $PANEL_NAME$cf_cv_libtype" >&5
16792 echo $ECHO_N "checking pkg-config for $PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
16793 if "$PKG_CONFIG" --exists "$PANEL_NAME$cf_cv_libtype" ; then
16794 echo "$as_me:16794: result: yes" >&5
16795 echo "${ECHO_T}yes" >&6
16797 echo "$as_me:16797: checking if the $PANEL_NAME$cf_cv_libtype package files work" >&5
16798 echo $ECHO_N "checking if the $PANEL_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
16800 cf_save_CFLAGS="$CFLAGS"
16801 cf_save_CPPFLAGS="$CPPFLAGS"
16802 cf_save_LIBS="$LIBS"
16804 for cf_add_cflags in `$PKG_CONFIG --cflags "$PANEL_NAME$cf_cv_libtype"`
16806 case "x$cf_add_cflags" in
16809 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
16812 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
16813 test "$CFLAGS" != "$cf_old_cflag" || break
16815 CFLAGS="$cf_old_cflag"
16818 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
16821 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
16822 test "$CPPFLAGS" != "$cf_old_cflag" || break
16824 CPPFLAGS="$cf_old_cflag"
16833 cf_new_extra_cppflags=
16835 for cf_add_cflags in $cf_add_cflags
16837 case "$cf_fix_cppflags" in
16839 case "$cf_add_cflags" in
16840 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16841 case "$cf_add_cflags" in
16843 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16845 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16846 && test -z "${cf_tst_cflags}" \
16847 && cf_fix_cppflags=yes
16849 if test "$cf_fix_cppflags" = yes ; then
16851 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16852 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16855 elif test "${cf_tst_cflags}" = "\"'" ; then
16857 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16858 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16864 case "$CPPFLAGS" in
16868 case "$cf_add_cflags" in
16870 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16872 CPPFLAGS=`echo "$CPPFLAGS" | \
16873 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16874 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16879 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16880 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16887 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16888 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16895 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16896 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16898 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16900 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16901 && test -z "${cf_tst_cflags}" \
16902 && cf_fix_cppflags=no
16907 if test -n "$cf_new_cflags" ; then
16909 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16910 CFLAGS="${CFLAGS}$cf_new_cflags"
16914 if test -n "$cf_new_cppflags" ; then
16916 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16917 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16921 if test -n "$cf_new_extra_cppflags" ; then
16923 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16924 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16930 cf_add_libs="$LIBS"
16933 for cf_add_1lib in `$PKG_CONFIG --libs "$PANEL_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16934 # filter duplicates
16935 for cf_add_1lib in $cf_add_0lib; do
16936 for cf_add_2lib in $cf_add_libs; do
16937 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16942 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16944 LIBS="$cf_add_libs"
16946 cat >"conftest.$ac_ext" <<_ACEOF
16947 #line 16947 "configure"
16948 #include "confdefs.h"
16949 #include <$PANEL_NAME.h>
16953 (void) new_panel ( 0 );
16958 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16959 if { (eval echo "$as_me:16959: \"$ac_link\"") >&5
16960 (eval $ac_link) 2>&5
16962 echo "$as_me:16962: \$? = $ac_status" >&5
16963 (exit "$ac_status"); } &&
16964 { ac_try='test -s "conftest$ac_exeext"'
16965 { (eval echo "$as_me:16965: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:16968: \$? = $ac_status" >&5
16969 (exit "$ac_status"); }; }; then
16970 if test "$cross_compiling" = yes; then
16971 cf_have_curses_lib=maybe
16973 cat >"conftest.$ac_ext" <<_ACEOF
16974 #line 16974 "configure"
16975 #include "confdefs.h"
16976 #include <$PANEL_NAME.h>
16978 { (void) new_panel ( 0 ); return 0; }
16980 rm -f "conftest$ac_exeext"
16981 if { (eval echo "$as_me:16981: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16984 echo "$as_me:16984: \$? = $ac_status" >&5
16985 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
16986 { (eval echo "$as_me:16986: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:16989: \$? = $ac_status" >&5
16990 (exit "$ac_status"); }; }; then
16991 cf_have_curses_lib=yes
16993 echo "$as_me: program exited with status $ac_status" >&5
16994 echo "$as_me: failed program was:" >&5
16995 cat "conftest.$ac_ext" >&5
16996 cf_have_curses_lib=no
16998 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17001 echo "$as_me: failed program was:" >&5
17002 cat "conftest.$ac_ext" >&5
17003 cf_have_curses_lib=no
17005 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17006 echo "$as_me:17006: result: $cf_have_curses_lib" >&5
17007 echo "${ECHO_T}$cf_have_curses_lib" >&6
17008 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
17009 if test "$cf_have_curses_lib" = "yes"
17012 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17014 cat >>confdefs.h <<EOF
17015 #define $cf_upper 1
17019 CFLAGS="$cf_save_CFLAGS"
17020 CPPFLAGS="$cf_save_CPPFLAGS"
17021 LIBS="$cf_save_LIBS"
17025 if test "$cf_have_curses_lib" = no; then
17026 as_ac_Lib=`echo "ac_cv_lib_$PANEL_NAME$cf_cv_libtype''_new_panel" | $as_tr_sh`
17027 echo "$as_me:17027: checking for new_panel in -l$PANEL_NAME$cf_cv_libtype" >&5
17028 echo $ECHO_N "checking for new_panel in -l$PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
17029 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 ac_check_lib_save_LIBS=$LIBS
17033 LIBS="-l$PANEL_NAME$cf_cv_libtype $LIBS"
17034 cat >"conftest.$ac_ext" <<_ACEOF
17035 #line 17035 "configure"
17036 #include "confdefs.h"
17038 /* Override any gcc2 internal prototype to avoid an error. */
17042 /* We use char because int might match the return type of a gcc2
17043 builtin and then its argument prototype would still apply. */
17053 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17054 if { (eval echo "$as_me:17054: \"$ac_link\"") >&5
17055 (eval $ac_link) 2>&5
17057 echo "$as_me:17057: \$? = $ac_status" >&5
17058 (exit "$ac_status"); } &&
17059 { ac_try='test -s "conftest$ac_exeext"'
17060 { (eval echo "$as_me:17060: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:17063: \$? = $ac_status" >&5
17064 (exit "$ac_status"); }; }; then
17065 eval "$as_ac_Lib=yes"
17067 echo "$as_me: failed program was:" >&5
17068 cat "conftest.$ac_ext" >&5
17069 eval "$as_ac_Lib=no"
17071 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17072 LIBS=$ac_check_lib_save_LIBS
17074 echo "$as_me:17074: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
17075 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
17076 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
17078 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17080 cf_add_libs="$LIBS"
17083 for cf_add_1lib in -l$PANEL_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17084 # filter duplicates
17085 for cf_add_1lib in $cf_add_0lib; do
17086 for cf_add_2lib in $cf_add_libs; do
17087 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17092 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17094 LIBS="$cf_add_libs"
17096 cat >>confdefs.h <<EOF
17097 #define $cf_upper 1
17104 cf_curses_headers="$cf_curses_headers panel.h"
17107 echo "$as_me:17107: checking if you want to check for menu functions" >&5
17108 echo $ECHO_N "checking if you want to check for menu functions... $ECHO_C" >&6
17110 # Check whether --enable-menu or --disable-menu was given.
17111 if test "${enable_menu+set}" = set; then
17112 enableval="$enable_menu"
17113 test "$enableval" != no && enableval=yes
17114 if test "$enableval" != "yes" ; then
17117 cf_enable_menu=$cf_default_menu
17121 cf_enable_menu=$cf_default_menu
17124 echo "$as_me:17124: result: $cf_enable_menu" >&5
17125 echo "${ECHO_T}$cf_enable_menu" >&6
17126 if test $cf_enable_menu = yes
17128 case $cf_cv_screen in
17133 echo "$as_me:17133: checking for NetBSD menu.h" >&5
17134 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
17135 if test "${cf_cv_netbsd_menu_h+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 cat >"conftest.$ac_ext" <<_ACEOF
17140 #line 17140 "configure"
17141 #include "confdefs.h"
17143 #include <${cf_cv_ncurses_header:-curses.h}>
17151 int y = menu->max_item_width;
17157 rm -f "conftest.$ac_objext"
17158 if { (eval echo "$as_me:17158: \"$ac_compile\"") >&5
17159 (eval $ac_compile) 2>&5
17161 echo "$as_me:17161: \$? = $ac_status" >&5
17162 (exit "$ac_status"); } &&
17163 { ac_try='test -s "conftest.$ac_objext"'
17164 { (eval echo "$as_me:17164: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:17167: \$? = $ac_status" >&5
17168 (exit "$ac_status"); }; }; then
17169 cf_cv_netbsd_menu_h=yes
17172 echo "$as_me: failed program was:" >&5
17173 cat "conftest.$ac_ext" >&5
17174 cf_cv_netbsd_menu_h=no
17176 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17179 echo "$as_me:17179: result: $cf_cv_netbsd_menu_h" >&5
17180 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
17182 test "$cf_cv_netbsd_menu_h" = yes &&
17183 cat >>confdefs.h <<\EOF
17184 #define HAVE_NETBSD_MENU_H 1
17190 cf_have_curses_lib=no
17192 : ${NCURSES_CONFIG_PKG:=none}
17193 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
17195 elif test "x${PKG_CONFIG:=none}" != xnone; then
17196 echo "$as_me:17196: checking pkg-config for $MENU_NAME$cf_cv_libtype" >&5
17197 echo $ECHO_N "checking pkg-config for $MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
17198 if "$PKG_CONFIG" --exists "$MENU_NAME$cf_cv_libtype" ; then
17199 echo "$as_me:17199: result: yes" >&5
17200 echo "${ECHO_T}yes" >&6
17202 echo "$as_me:17202: checking if the $MENU_NAME$cf_cv_libtype package files work" >&5
17203 echo $ECHO_N "checking if the $MENU_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
17205 cf_save_CFLAGS="$CFLAGS"
17206 cf_save_CPPFLAGS="$CPPFLAGS"
17207 cf_save_LIBS="$LIBS"
17209 for cf_add_cflags in `$PKG_CONFIG --cflags "$MENU_NAME$cf_cv_libtype"`
17211 case "x$cf_add_cflags" in
17214 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17217 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
17218 test "$CFLAGS" != "$cf_old_cflag" || break
17220 CFLAGS="$cf_old_cflag"
17223 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17226 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
17227 test "$CPPFLAGS" != "$cf_old_cflag" || break
17229 CPPFLAGS="$cf_old_cflag"
17238 cf_new_extra_cppflags=
17240 for cf_add_cflags in $cf_add_cflags
17242 case "$cf_fix_cppflags" in
17244 case "$cf_add_cflags" in
17245 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17246 case "$cf_add_cflags" in
17248 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17250 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17251 && test -z "${cf_tst_cflags}" \
17252 && cf_fix_cppflags=yes
17254 if test "$cf_fix_cppflags" = yes ; then
17256 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17257 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17260 elif test "${cf_tst_cflags}" = "\"'" ; then
17262 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17263 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17269 case "$CPPFLAGS" in
17273 case "$cf_add_cflags" in
17275 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17277 CPPFLAGS=`echo "$CPPFLAGS" | \
17278 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17279 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17284 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17285 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17292 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17293 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17300 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17301 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17303 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17305 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17306 && test -z "${cf_tst_cflags}" \
17307 && cf_fix_cppflags=no
17312 if test -n "$cf_new_cflags" ; then
17314 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17315 CFLAGS="${CFLAGS}$cf_new_cflags"
17319 if test -n "$cf_new_cppflags" ; then
17321 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17322 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17326 if test -n "$cf_new_extra_cppflags" ; then
17328 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17329 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17335 cf_add_libs="$LIBS"
17338 for cf_add_1lib in `$PKG_CONFIG --libs "$MENU_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17339 # filter duplicates
17340 for cf_add_1lib in $cf_add_0lib; do
17341 for cf_add_2lib in $cf_add_libs; do
17342 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17347 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17349 LIBS="$cf_add_libs"
17351 cat >"conftest.$ac_ext" <<_ACEOF
17352 #line 17352 "configure"
17353 #include "confdefs.h"
17354 #include <$MENU_NAME.h>
17358 (void) menu_driver ( 0,0 );
17363 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17364 if { (eval echo "$as_me:17364: \"$ac_link\"") >&5
17365 (eval $ac_link) 2>&5
17367 echo "$as_me:17367: \$? = $ac_status" >&5
17368 (exit "$ac_status"); } &&
17369 { ac_try='test -s "conftest$ac_exeext"'
17370 { (eval echo "$as_me:17370: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17373 echo "$as_me:17373: \$? = $ac_status" >&5
17374 (exit "$ac_status"); }; }; then
17375 if test "$cross_compiling" = yes; then
17376 cf_have_curses_lib=maybe
17378 cat >"conftest.$ac_ext" <<_ACEOF
17379 #line 17379 "configure"
17380 #include "confdefs.h"
17381 #include <$MENU_NAME.h>
17383 { (void) menu_driver ( 0,0 ); return 0; }
17385 rm -f "conftest$ac_exeext"
17386 if { (eval echo "$as_me:17386: \"$ac_link\"") >&5
17387 (eval $ac_link) 2>&5
17389 echo "$as_me:17389: \$? = $ac_status" >&5
17390 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
17391 { (eval echo "$as_me:17391: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:17394: \$? = $ac_status" >&5
17395 (exit "$ac_status"); }; }; then
17396 cf_have_curses_lib=yes
17398 echo "$as_me: program exited with status $ac_status" >&5
17399 echo "$as_me: failed program was:" >&5
17400 cat "conftest.$ac_ext" >&5
17401 cf_have_curses_lib=no
17403 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17406 echo "$as_me: failed program was:" >&5
17407 cat "conftest.$ac_ext" >&5
17408 cf_have_curses_lib=no
17410 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17411 echo "$as_me:17411: result: $cf_have_curses_lib" >&5
17412 echo "${ECHO_T}$cf_have_curses_lib" >&6
17413 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
17414 if test "$cf_have_curses_lib" = "yes"
17417 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17419 cat >>confdefs.h <<EOF
17420 #define $cf_upper 1
17424 CFLAGS="$cf_save_CFLAGS"
17425 CPPFLAGS="$cf_save_CPPFLAGS"
17426 LIBS="$cf_save_LIBS"
17430 if test "$cf_have_curses_lib" = no; then
17431 as_ac_Lib=`echo "ac_cv_lib_$MENU_NAME$cf_cv_libtype''_menu_driver" | $as_tr_sh`
17432 echo "$as_me:17432: checking for menu_driver in -l$MENU_NAME$cf_cv_libtype" >&5
17433 echo $ECHO_N "checking for menu_driver in -l$MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
17434 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 ac_check_lib_save_LIBS=$LIBS
17438 LIBS="-l$MENU_NAME$cf_cv_libtype $LIBS"
17439 cat >"conftest.$ac_ext" <<_ACEOF
17440 #line 17440 "configure"
17441 #include "confdefs.h"
17443 /* Override any gcc2 internal prototype to avoid an error. */
17447 /* We use char because int might match the return type of a gcc2
17448 builtin and then its argument prototype would still apply. */
17449 char menu_driver ();
17458 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17459 if { (eval echo "$as_me:17459: \"$ac_link\"") >&5
17460 (eval $ac_link) 2>&5
17462 echo "$as_me:17462: \$? = $ac_status" >&5
17463 (exit "$ac_status"); } &&
17464 { ac_try='test -s "conftest$ac_exeext"'
17465 { (eval echo "$as_me:17465: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:17468: \$? = $ac_status" >&5
17469 (exit "$ac_status"); }; }; then
17470 eval "$as_ac_Lib=yes"
17472 echo "$as_me: failed program was:" >&5
17473 cat "conftest.$ac_ext" >&5
17474 eval "$as_ac_Lib=no"
17476 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17477 LIBS=$ac_check_lib_save_LIBS
17479 echo "$as_me:17479: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
17480 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
17481 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
17483 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17485 cf_add_libs="$LIBS"
17488 for cf_add_1lib in -l$MENU_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17489 # filter duplicates
17490 for cf_add_1lib in $cf_add_0lib; do
17491 for cf_add_2lib in $cf_add_libs; do
17492 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17497 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17499 LIBS="$cf_add_libs"
17501 cat >>confdefs.h <<EOF
17502 #define $cf_upper 1
17509 cf_curses_headers="$cf_curses_headers menu.h"
17512 echo "$as_me:17512: checking if you want to check for form functions" >&5
17513 echo $ECHO_N "checking if you want to check for form functions... $ECHO_C" >&6
17515 # Check whether --enable-form or --disable-form was given.
17516 if test "${enable_form+set}" = set; then
17517 enableval="$enable_form"
17518 test "$enableval" != no && enableval=yes
17519 if test "$enableval" != "yes" ; then
17522 cf_enable_form=$cf_default_form
17526 cf_enable_form=$cf_default_form
17529 echo "$as_me:17529: result: $cf_enable_form" >&5
17530 echo "${ECHO_T}$cf_enable_form" >&6
17531 if test $cf_enable_form = yes
17533 case $cf_cv_screen in
17538 echo "$as_me:17538: checking for NetBSD form.h" >&5
17539 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
17540 if test "${cf_cv_netbsd_form_h+set}" = set; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 cat >"conftest.$ac_ext" <<_ACEOF
17545 #line 17545 "configure"
17546 #include "confdefs.h"
17548 #include <${cf_cv_ncurses_header:-curses.h}>
17556 int y = current_field(form)->cursor_ypos;
17557 int x = current_field(form)->cursor_xpos;
17563 rm -f "conftest.$ac_objext"
17564 if { (eval echo "$as_me:17564: \"$ac_compile\"") >&5
17565 (eval $ac_compile) 2>&5
17567 echo "$as_me:17567: \$? = $ac_status" >&5
17568 (exit "$ac_status"); } &&
17569 { ac_try='test -s "conftest.$ac_objext"'
17570 { (eval echo "$as_me:17570: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17573 echo "$as_me:17573: \$? = $ac_status" >&5
17574 (exit "$ac_status"); }; }; then
17575 cf_cv_netbsd_form_h=yes
17578 echo "$as_me: failed program was:" >&5
17579 cat "conftest.$ac_ext" >&5
17580 cf_cv_netbsd_form_h=no
17582 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17585 echo "$as_me:17585: result: $cf_cv_netbsd_form_h" >&5
17586 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
17588 test "$cf_cv_netbsd_form_h" = yes &&
17589 cat >>confdefs.h <<\EOF
17590 #define HAVE_NETBSD_FORM_H 1
17596 cf_have_curses_lib=no
17598 : ${NCURSES_CONFIG_PKG:=none}
17599 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
17601 elif test "x${PKG_CONFIG:=none}" != xnone; then
17602 echo "$as_me:17602: checking pkg-config for $FORM_NAME$cf_cv_libtype" >&5
17603 echo $ECHO_N "checking pkg-config for $FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
17604 if "$PKG_CONFIG" --exists "$FORM_NAME$cf_cv_libtype" ; then
17605 echo "$as_me:17605: result: yes" >&5
17606 echo "${ECHO_T}yes" >&6
17608 echo "$as_me:17608: checking if the $FORM_NAME$cf_cv_libtype package files work" >&5
17609 echo $ECHO_N "checking if the $FORM_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
17611 cf_save_CFLAGS="$CFLAGS"
17612 cf_save_CPPFLAGS="$CPPFLAGS"
17613 cf_save_LIBS="$LIBS"
17615 for cf_add_cflags in `$PKG_CONFIG --cflags "$FORM_NAME$cf_cv_libtype"`
17617 case "x$cf_add_cflags" in
17620 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17623 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
17624 test "$CFLAGS" != "$cf_old_cflag" || break
17626 CFLAGS="$cf_old_cflag"
17629 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17632 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
17633 test "$CPPFLAGS" != "$cf_old_cflag" || break
17635 CPPFLAGS="$cf_old_cflag"
17644 cf_new_extra_cppflags=
17646 for cf_add_cflags in $cf_add_cflags
17648 case "$cf_fix_cppflags" in
17650 case "$cf_add_cflags" in
17651 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17652 case "$cf_add_cflags" in
17654 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17656 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17657 && test -z "${cf_tst_cflags}" \
17658 && cf_fix_cppflags=yes
17660 if test "$cf_fix_cppflags" = yes ; then
17662 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17663 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17666 elif test "${cf_tst_cflags}" = "\"'" ; then
17668 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17669 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17675 case "$CPPFLAGS" in
17679 case "$cf_add_cflags" in
17681 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17683 CPPFLAGS=`echo "$CPPFLAGS" | \
17684 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17685 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17690 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17691 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17698 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17699 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17706 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17707 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17709 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17711 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17712 && test -z "${cf_tst_cflags}" \
17713 && cf_fix_cppflags=no
17718 if test -n "$cf_new_cflags" ; then
17720 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17721 CFLAGS="${CFLAGS}$cf_new_cflags"
17725 if test -n "$cf_new_cppflags" ; then
17727 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17728 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17732 if test -n "$cf_new_extra_cppflags" ; then
17734 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17735 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17741 cf_add_libs="$LIBS"
17744 for cf_add_1lib in `$PKG_CONFIG --libs "$FORM_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17745 # filter duplicates
17746 for cf_add_1lib in $cf_add_0lib; do
17747 for cf_add_2lib in $cf_add_libs; do
17748 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17753 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17755 LIBS="$cf_add_libs"
17757 cat >"conftest.$ac_ext" <<_ACEOF
17758 #line 17758 "configure"
17759 #include "confdefs.h"
17760 #include <$FORM_NAME.h>
17764 (void) form_driver ( 0,0 );
17769 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17770 if { (eval echo "$as_me:17770: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>&5
17773 echo "$as_me:17773: \$? = $ac_status" >&5
17774 (exit "$ac_status"); } &&
17775 { ac_try='test -s "conftest$ac_exeext"'
17776 { (eval echo "$as_me:17776: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 echo "$as_me:17779: \$? = $ac_status" >&5
17780 (exit "$ac_status"); }; }; then
17781 if test "$cross_compiling" = yes; then
17782 cf_have_curses_lib=maybe
17784 cat >"conftest.$ac_ext" <<_ACEOF
17785 #line 17785 "configure"
17786 #include "confdefs.h"
17787 #include <$FORM_NAME.h>
17789 { (void) form_driver ( 0,0 ); return 0; }
17791 rm -f "conftest$ac_exeext"
17792 if { (eval echo "$as_me:17792: \"$ac_link\"") >&5
17793 (eval $ac_link) 2>&5
17795 echo "$as_me:17795: \$? = $ac_status" >&5
17796 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
17797 { (eval echo "$as_me:17797: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17800 echo "$as_me:17800: \$? = $ac_status" >&5
17801 (exit "$ac_status"); }; }; then
17802 cf_have_curses_lib=yes
17804 echo "$as_me: program exited with status $ac_status" >&5
17805 echo "$as_me: failed program was:" >&5
17806 cat "conftest.$ac_ext" >&5
17807 cf_have_curses_lib=no
17809 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17812 echo "$as_me: failed program was:" >&5
17813 cat "conftest.$ac_ext" >&5
17814 cf_have_curses_lib=no
17816 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17817 echo "$as_me:17817: result: $cf_have_curses_lib" >&5
17818 echo "${ECHO_T}$cf_have_curses_lib" >&6
17819 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
17820 if test "$cf_have_curses_lib" = "yes"
17823 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17825 cat >>confdefs.h <<EOF
17826 #define $cf_upper 1
17830 CFLAGS="$cf_save_CFLAGS"
17831 CPPFLAGS="$cf_save_CPPFLAGS"
17832 LIBS="$cf_save_LIBS"
17836 if test "$cf_have_curses_lib" = no; then
17837 as_ac_Lib=`echo "ac_cv_lib_$FORM_NAME$cf_cv_libtype''_form_driver" | $as_tr_sh`
17838 echo "$as_me:17838: checking for form_driver in -l$FORM_NAME$cf_cv_libtype" >&5
17839 echo $ECHO_N "checking for form_driver in -l$FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
17840 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-l$FORM_NAME$cf_cv_libtype $LIBS"
17845 cat >"conftest.$ac_ext" <<_ACEOF
17846 #line 17846 "configure"
17847 #include "confdefs.h"
17849 /* Override any gcc2 internal prototype to avoid an error. */
17853 /* We use char because int might match the return type of a gcc2
17854 builtin and then its argument prototype would still apply. */
17855 char form_driver ();
17864 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17865 if { (eval echo "$as_me:17865: \"$ac_link\"") >&5
17866 (eval $ac_link) 2>&5
17868 echo "$as_me:17868: \$? = $ac_status" >&5
17869 (exit "$ac_status"); } &&
17870 { ac_try='test -s "conftest$ac_exeext"'
17871 { (eval echo "$as_me:17871: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:17874: \$? = $ac_status" >&5
17875 (exit "$ac_status"); }; }; then
17876 eval "$as_ac_Lib=yes"
17878 echo "$as_me: failed program was:" >&5
17879 cat "conftest.$ac_ext" >&5
17880 eval "$as_ac_Lib=no"
17882 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17883 LIBS=$ac_check_lib_save_LIBS
17885 echo "$as_me:17885: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
17886 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
17887 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
17889 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17891 cf_add_libs="$LIBS"
17894 for cf_add_1lib in -l$FORM_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17895 # filter duplicates
17896 for cf_add_1lib in $cf_add_0lib; do
17897 for cf_add_2lib in $cf_add_libs; do
17898 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17903 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17905 LIBS="$cf_add_libs"
17907 cat >>confdefs.h <<EOF
17908 #define $cf_upper 1
17915 cf_curses_headers="$cf_curses_headers form.h"
17918 # look for curses-related headers
17920 for ac_header in $cf_curses_headers
17922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17923 echo "$as_me:17923: checking for $ac_header" >&5
17924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 cat >"conftest.$ac_ext" <<_ACEOF
17929 #line 17929 "configure"
17930 #include "confdefs.h"
17931 #include <$ac_header>
17933 if { (eval echo "$as_me:17933: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17934 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17936 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:17939: \$? = $ac_status" >&5
17940 (exit "$ac_status"); } >/dev/null; then
17941 if test -s conftest.err; then
17942 ac_cpp_err=$ac_c_preproc_warn_flag
17949 if test -z "$ac_cpp_err"; then
17950 eval "$as_ac_Header=yes"
17952 echo "$as_me: failed program was:" >&5
17953 cat "conftest.$ac_ext" >&5
17954 eval "$as_ac_Header=no"
17956 rm -f conftest.err "conftest.$ac_ext"
17958 echo "$as_me:17958: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
17959 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
17960 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
17961 cat >>confdefs.h <<EOF
17962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17968 echo "$as_me:17968: checking for ANSI C header files" >&5
17969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17970 if test "${ac_cv_header_stdc+set}" = set; then
17971 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 cat >"conftest.$ac_ext" <<_ACEOF
17974 #line 17974 "configure"
17975 #include "confdefs.h"
17976 #include <stdlib.h>
17977 #include <stdarg.h>
17978 #include <string.h>
17982 if { (eval echo "$as_me:17982: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17983 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17985 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17987 cat conftest.err >&5
17988 echo "$as_me:17988: \$? = $ac_status" >&5
17989 (exit "$ac_status"); } >/dev/null; then
17990 if test -s conftest.err; then
17991 ac_cpp_err=$ac_c_preproc_warn_flag
17998 if test -z "$ac_cpp_err"; then
17999 ac_cv_header_stdc=yes
18001 echo "$as_me: failed program was:" >&5
18002 cat "conftest.$ac_ext" >&5
18003 ac_cv_header_stdc=no
18005 rm -f conftest.err "conftest.$ac_ext"
18007 if test $ac_cv_header_stdc = yes; then
18008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18009 cat >"conftest.$ac_ext" <<_ACEOF
18010 #line 18010 "configure"
18011 #include "confdefs.h"
18012 #include <string.h>
18015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18016 $EGREP "memchr" >/dev/null 2>&1; then
18019 ac_cv_header_stdc=no
18025 if test $ac_cv_header_stdc = yes; then
18026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18027 cat >"conftest.$ac_ext" <<_ACEOF
18028 #line 18028 "configure"
18029 #include "confdefs.h"
18030 #include <stdlib.h>
18033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18034 $EGREP "free" >/dev/null 2>&1; then
18037 ac_cv_header_stdc=no
18043 if test $ac_cv_header_stdc = yes; then
18044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18045 if test "$cross_compiling" = yes; then
18048 cat >"conftest.$ac_ext" <<_ACEOF
18049 #line 18049 "configure"
18050 #include "confdefs.h"
18052 #if ((' ' & 0x0FF) == 0x020)
18053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18056 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18057 || ('j' <= (c) && (c) <= 'r') \
18058 || ('s' <= (c) && (c) <= 'z'))
18059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18067 for (i = 0; i < 256; i++)
18068 if (XOR (islower (i), ISLOWER (i))
18069 || toupper (i) != TOUPPER (i))
18070 $ac_main_return(2);
18071 $ac_main_return (0);
18074 rm -f "conftest$ac_exeext"
18075 if { (eval echo "$as_me:18075: \"$ac_link\"") >&5
18076 (eval $ac_link) 2>&5
18078 echo "$as_me:18078: \$? = $ac_status" >&5
18079 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18080 { (eval echo "$as_me:18080: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18083 echo "$as_me:18083: \$? = $ac_status" >&5
18084 (exit "$ac_status"); }; }; then
18087 echo "$as_me: program exited with status $ac_status" >&5
18088 echo "$as_me: failed program was:" >&5
18089 cat "conftest.$ac_ext" >&5
18090 ac_cv_header_stdc=no
18092 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18096 echo "$as_me:18096: result: $ac_cv_header_stdc" >&5
18097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18098 if test $ac_cv_header_stdc = yes; then
18100 cat >>confdefs.h <<\EOF
18101 #define STDC_HEADERS 1
18106 echo "$as_me:18106: checking whether time.h and sys/time.h may both be included" >&5
18107 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18108 if test "${ac_cv_header_time+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 cat >"conftest.$ac_ext" <<_ACEOF
18112 #line 18112 "configure"
18113 #include "confdefs.h"
18114 #include <sys/types.h>
18115 #include <sys/time.h>
18121 if ((struct tm *) 0)
18127 rm -f "conftest.$ac_objext"
18128 if { (eval echo "$as_me:18128: \"$ac_compile\"") >&5
18129 (eval $ac_compile) 2>&5
18131 echo "$as_me:18131: \$? = $ac_status" >&5
18132 (exit "$ac_status"); } &&
18133 { ac_try='test -s "conftest.$ac_objext"'
18134 { (eval echo "$as_me:18134: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18137 echo "$as_me:18137: \$? = $ac_status" >&5
18138 (exit "$ac_status"); }; }; then
18139 ac_cv_header_time=yes
18141 echo "$as_me: failed program was:" >&5
18142 cat "conftest.$ac_ext" >&5
18143 ac_cv_header_time=no
18145 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18147 echo "$as_me:18147: result: $ac_cv_header_time" >&5
18148 echo "${ECHO_T}$ac_cv_header_time" >&6
18149 if test $ac_cv_header_time = yes; then
18151 cat >>confdefs.h <<\EOF
18152 #define TIME_WITH_SYS_TIME 1
18170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18171 echo "$as_me:18171: checking for $ac_header" >&5
18172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 cat >"conftest.$ac_ext" <<_ACEOF
18177 #line 18177 "configure"
18178 #include "confdefs.h"
18179 #include <$ac_header>
18181 if { (eval echo "$as_me:18181: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18182 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18184 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:18187: \$? = $ac_status" >&5
18188 (exit "$ac_status"); } >/dev/null; then
18189 if test -s conftest.err; then
18190 ac_cpp_err=$ac_c_preproc_warn_flag
18197 if test -z "$ac_cpp_err"; then
18198 eval "$as_ac_Header=yes"
18200 echo "$as_me: failed program was:" >&5
18201 cat "conftest.$ac_ext" >&5
18202 eval "$as_ac_Header=no"
18204 rm -f conftest.err "conftest.$ac_ext"
18206 echo "$as_me:18206: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18207 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18208 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18209 cat >>confdefs.h <<EOF
18210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18216 for ac_header in unistd.h getopt.h
18218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18219 echo "$as_me:18219: checking for $ac_header" >&5
18220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 cat >"conftest.$ac_ext" <<_ACEOF
18225 #line 18225 "configure"
18226 #include "confdefs.h"
18227 #include <$ac_header>
18229 if { (eval echo "$as_me:18229: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18230 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18232 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18234 cat conftest.err >&5
18235 echo "$as_me:18235: \$? = $ac_status" >&5
18236 (exit "$ac_status"); } >/dev/null; then
18237 if test -s conftest.err; then
18238 ac_cpp_err=$ac_c_preproc_warn_flag
18245 if test -z "$ac_cpp_err"; then
18246 eval "$as_ac_Header=yes"
18248 echo "$as_me: failed program was:" >&5
18249 cat "conftest.$ac_ext" >&5
18250 eval "$as_ac_Header=no"
18252 rm -f conftest.err "conftest.$ac_ext"
18254 echo "$as_me:18254: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18255 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18256 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18257 cat >>confdefs.h <<EOF
18258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18264 echo "$as_me:18264: checking for header declaring getopt variables" >&5
18265 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
18266 if test "${cf_cv_getopt_header+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 cf_cv_getopt_header=none
18271 for cf_header in stdio.h stdlib.h unistd.h getopt.h
18273 cat >"conftest.$ac_ext" <<_ACEOF
18274 #line 18274 "configure"
18275 #include "confdefs.h"
18277 #include <$cf_header>
18281 int x = optind; char *y = optarg; (void)x; (void)y
18286 rm -f "conftest.$ac_objext"
18287 if { (eval echo "$as_me:18287: \"$ac_compile\"") >&5
18288 (eval $ac_compile) 2>&5
18290 echo "$as_me:18290: \$? = $ac_status" >&5
18291 (exit "$ac_status"); } &&
18292 { ac_try='test -s "conftest.$ac_objext"'
18293 { (eval echo "$as_me:18293: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:18296: \$? = $ac_status" >&5
18297 (exit "$ac_status"); }; }; then
18298 cf_cv_getopt_header=$cf_header
18301 echo "$as_me: failed program was:" >&5
18302 cat "conftest.$ac_ext" >&5
18304 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18308 echo "$as_me:18308: result: $cf_cv_getopt_header" >&5
18309 echo "${ECHO_T}$cf_cv_getopt_header" >&6
18310 if test "$cf_cv_getopt_header" != none ; then
18312 cat >>confdefs.h <<\EOF
18313 #define HAVE_GETOPT_HEADER 1
18317 if test "$cf_cv_getopt_header" = getopt.h ; then
18319 cat >>confdefs.h <<\EOF
18320 #define NEED_GETOPT_H 1
18334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18335 echo "$as_me:18335: checking for $ac_func" >&5
18336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18337 if eval "test \"\${$as_ac_var+set}\" = set"; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 cat >"conftest.$ac_ext" <<_ACEOF
18341 #line 18341 "configure"
18342 #include "confdefs.h"
18343 #define $ac_func autoconf_temporary
18344 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18351 /* We use char because int might match the return type of a gcc2
18352 builtin and then its argument prototype would still apply. */
18353 char $ac_func (void);
18359 /* The GNU C library defines stubs for functions which it implements
18360 to always fail with ENOSYS. Some functions are actually named
18361 something starting with __ and the normal name is an alias. */
18362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18363 #error found stub for $ac_func
18366 return $ac_func ();
18371 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18372 if { (eval echo "$as_me:18372: \"$ac_link\"") >&5
18373 (eval $ac_link) 2>&5
18375 echo "$as_me:18375: \$? = $ac_status" >&5
18376 (exit "$ac_status"); } &&
18377 { ac_try='test -s "conftest$ac_exeext"'
18378 { (eval echo "$as_me:18378: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18381 echo "$as_me:18381: \$? = $ac_status" >&5
18382 (exit "$ac_status"); }; }; then
18383 eval "$as_ac_var=yes"
18385 echo "$as_me: failed program was:" >&5
18386 cat "conftest.$ac_ext" >&5
18387 eval "$as_ac_var=no"
18389 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18391 echo "$as_me:18391: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18392 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18393 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18394 cat >>confdefs.h <<EOF
18395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18401 # use a compile-check to work with ncurses*-config and subdirectory includes
18402 echo "$as_me:18402: checking if we can use termcap.h" >&5
18403 echo $ECHO_N "checking if we can use termcap.h... $ECHO_C" >&6
18404 if test "${cf_cv_have_termcap_h+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 cat >"conftest.$ac_ext" <<_ACEOF
18409 #line 18409 "configure"
18410 #include "confdefs.h"
18412 #include <curses.h>
18413 #ifdef NCURSES_VERSION
18414 #undef NCURSES_VERSION
18416 #include <termcap.h>
18417 #ifndef NCURSES_VERSION
18418 #error wrong header
18429 rm -f "conftest.$ac_objext"
18430 if { (eval echo "$as_me:18430: \"$ac_compile\"") >&5
18431 (eval $ac_compile) 2>&5
18433 echo "$as_me:18433: \$? = $ac_status" >&5
18434 (exit "$ac_status"); } &&
18435 { ac_try='test -s "conftest.$ac_objext"'
18436 { (eval echo "$as_me:18436: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 echo "$as_me:18439: \$? = $ac_status" >&5
18440 (exit "$ac_status"); }; }; then
18441 cf_cv_have_termcap_h=yes
18443 echo "$as_me: failed program was:" >&5
18444 cat "conftest.$ac_ext" >&5
18445 cf_cv_have_termcap_h=no
18447 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18449 echo "$as_me:18449: result: $cf_cv_have_termcap_h" >&5
18450 echo "${ECHO_T}$cf_cv_have_termcap_h" >&6
18451 if test "x$cf_cv_have_termcap_h" = xyes
18454 cat >>confdefs.h <<\EOF
18455 #define HAVE_TERMCAP_H 1
18459 echo "$as_me:18459: checking if we can use ncurses/termcap.h" >&5
18460 echo $ECHO_N "checking if we can use ncurses/termcap.h... $ECHO_C" >&6
18461 if test "${cf_cv_have_ncurses_termcap_h+set}" = set; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 cat >"conftest.$ac_ext" <<_ACEOF
18466 #line 18466 "configure"
18467 #include "confdefs.h"
18469 #include <ncurses/curses.h>
18470 #ifdef NCURSES_VERSION
18471 #undef NCURSES_VERSION
18473 #include <ncurses/termcap.h>
18474 #ifndef NCURSES_VERSION
18475 #error wrong header
18486 rm -f "conftest.$ac_objext"
18487 if { (eval echo "$as_me:18487: \"$ac_compile\"") >&5
18488 (eval $ac_compile) 2>&5
18490 echo "$as_me:18490: \$? = $ac_status" >&5
18491 (exit "$ac_status"); } &&
18492 { ac_try='test -s "conftest.$ac_objext"'
18493 { (eval echo "$as_me:18493: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:18496: \$? = $ac_status" >&5
18497 (exit "$ac_status"); }; }; then
18498 cf_cv_have_ncurses_termcap_h=yes
18500 echo "$as_me: failed program was:" >&5
18501 cat "conftest.$ac_ext" >&5
18502 cf_cv_have_ncurses_termcap_h=no
18504 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18506 echo "$as_me:18506: result: $cf_cv_have_ncurses_termcap_h" >&5
18507 echo "${ECHO_T}$cf_cv_have_ncurses_termcap_h" >&6
18508 test "x$cf_cv_have_ncurses_termcap_h" = xyes &&
18509 cat >>confdefs.h <<\EOF
18510 #define HAVE_NCURSES_TERMCAP_H 1
18515 if test "x$ac_cv_func_getopt" = xno; then
18516 { { echo "$as_me:18516: error: getopt is required for building programs" >&5
18517 echo "$as_me: error: getopt is required for building programs" >&2;}
18518 { (exit 1); exit 1; }; }
18521 if test "$cf_enable_widec" = yes; then
18534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18535 echo "$as_me:18535: checking for $ac_func" >&5
18536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18537 if eval "test \"\${$as_ac_var+set}\" = set"; then
18538 echo $ECHO_N "(cached) $ECHO_C" >&6
18540 cat >"conftest.$ac_ext" <<_ACEOF
18541 #line 18541 "configure"
18542 #include "confdefs.h"
18543 #define $ac_func autoconf_temporary
18544 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18551 /* We use char because int might match the return type of a gcc2
18552 builtin and then its argument prototype would still apply. */
18553 char $ac_func (void);
18559 /* The GNU C library defines stubs for functions which it implements
18560 to always fail with ENOSYS. Some functions are actually named
18561 something starting with __ and the normal name is an alias. */
18562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18563 #error found stub for $ac_func
18566 return $ac_func ();
18571 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18572 if { (eval echo "$as_me:18572: \"$ac_link\"") >&5
18573 (eval $ac_link) 2>&5
18575 echo "$as_me:18575: \$? = $ac_status" >&5
18576 (exit "$ac_status"); } &&
18577 { ac_try='test -s "conftest$ac_exeext"'
18578 { (eval echo "$as_me:18578: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18581 echo "$as_me:18581: \$? = $ac_status" >&5
18582 (exit "$ac_status"); }; }; then
18583 eval "$as_ac_var=yes"
18585 echo "$as_me: failed program was:" >&5
18586 cat "conftest.$ac_ext" >&5
18587 eval "$as_ac_var=no"
18589 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18591 echo "$as_me:18591: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18592 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18593 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18594 cat >>confdefs.h <<EOF
18595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18603 echo "$as_me:18603: checking definition to turn on extended curses functions" >&5
18604 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
18605 if test "${cf_cv_need_xopen_extension+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 cf_cv_need_xopen_extension=unknown
18610 cat >"conftest.$ac_ext" <<_ACEOF
18611 #line 18611 "configure"
18612 #include "confdefs.h"
18614 #include <stdlib.h>
18615 #include <${cf_cv_ncurses_header:-curses.h}>
18620 #if defined(NCURSES_VERSION_PATCH)
18621 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
18625 #ifdef NCURSES_WIDECHAR
18626 make an error /* prefer to fall-through on the second checks */
18629 int check2 = curs_set((int)sizeof(check));
18630 long x = winnstr(stdscr, "", 0);
18633 getbegyx(stdscr, y1, x1);
18642 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18643 if { (eval echo "$as_me:18643: \"$ac_link\"") >&5
18644 (eval $ac_link) 2>&5
18646 echo "$as_me:18646: \$? = $ac_status" >&5
18647 (exit "$ac_status"); } &&
18648 { ac_try='test -s "conftest$ac_exeext"'
18649 { (eval echo "$as_me:18649: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18652 echo "$as_me:18652: \$? = $ac_status" >&5
18653 (exit "$ac_status"); }; }; then
18654 cf_cv_need_xopen_extension=none
18656 echo "$as_me: failed program was:" >&5
18657 cat "conftest.$ac_ext" >&5
18659 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
18661 cat >"conftest.$ac_ext" <<_ACEOF
18662 #line 18662 "configure"
18663 #include "confdefs.h"
18665 #define $cf_try_xopen_extension 1
18666 #include <stdlib.h>
18667 #include <${cf_cv_ncurses_header:-curses.h}>
18673 int check2 = curs_set((int)sizeof(check));
18674 long x = winnstr(stdscr, "", 0);
18676 getbegyx(stdscr, y1, x1);
18686 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18687 if { (eval echo "$as_me:18687: \"$ac_link\"") >&5
18688 (eval $ac_link) 2>&5
18690 echo "$as_me:18690: \$? = $ac_status" >&5
18691 (exit "$ac_status"); } &&
18692 { ac_try='test -s "conftest$ac_exeext"'
18693 { (eval echo "$as_me:18693: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18696 echo "$as_me:18696: \$? = $ac_status" >&5
18697 (exit "$ac_status"); }; }; then
18698 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
18700 echo "$as_me: failed program was:" >&5
18701 cat "conftest.$ac_ext" >&5
18703 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18707 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18710 echo "$as_me:18710: result: $cf_cv_need_xopen_extension" >&5
18711 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
18713 case "$cf_cv_need_xopen_extension" in
18716 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18717 CPPFLAGS="${CPPFLAGS}-D$cf_cv_need_xopen_extension"
18722 echo "$as_me:18722: checking for term.h" >&5
18723 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
18724 if test "${cf_cv_term_header+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18728 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
18729 # for <term.h> if we do not find the variant.
18731 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
18733 case "${cf_cv_ncurses_header:-curses.h}" in
18735 cf_header_item=`echo "${cf_cv_ncurses_header:-curses.h}" | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
18736 cf_header_list="$cf_header_item $cf_header_list"
18740 for cf_header in $cf_header_list
18742 cat >"conftest.$ac_ext" <<_ACEOF
18743 #line 18743 "configure"
18744 #include "confdefs.h"
18746 #include <${cf_cv_ncurses_header:-curses.h}>
18747 #include <${cf_header}>
18756 rm -f "conftest.$ac_objext"
18757 if { (eval echo "$as_me:18757: \"$ac_compile\"") >&5
18758 (eval $ac_compile) 2>&5
18760 echo "$as_me:18760: \$? = $ac_status" >&5
18761 (exit "$ac_status"); } &&
18762 { ac_try='test -s "conftest.$ac_objext"'
18763 { (eval echo "$as_me:18763: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18766 echo "$as_me:18766: \$? = $ac_status" >&5
18767 (exit "$ac_status"); }; }; then
18768 cf_cv_term_header=$cf_header
18771 echo "$as_me: failed program was:" >&5
18772 cat "conftest.$ac_ext" >&5
18773 cf_cv_term_header=no
18775 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18778 case "$cf_cv_term_header" in
18780 # If curses is ncurses, some packagers still mess it up by trying to make
18781 # us use GNU termcap. This handles the most common case.
18782 for cf_header in ncurses/term.h ncursesw/term.h
18784 cat >"conftest.$ac_ext" <<_ACEOF
18785 #line 18785 "configure"
18786 #include "confdefs.h"
18788 #include <${cf_cv_ncurses_header:-curses.h}>
18789 #ifdef NCURSES_VERSION
18790 #include <${cf_header}>
18802 rm -f "conftest.$ac_objext"
18803 if { (eval echo "$as_me:18803: \"$ac_compile\"") >&5
18804 (eval $ac_compile) 2>&5
18806 echo "$as_me:18806: \$? = $ac_status" >&5
18807 (exit "$ac_status"); } &&
18808 { ac_try='test -s "conftest.$ac_objext"'
18809 { (eval echo "$as_me:18809: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18812 echo "$as_me:18812: \$? = $ac_status" >&5
18813 (exit "$ac_status"); }; }; then
18814 cf_cv_term_header=$cf_header
18817 echo "$as_me: failed program was:" >&5
18818 cat "conftest.$ac_ext" >&5
18819 cf_cv_term_header=no
18821 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18827 echo "$as_me:18827: result: $cf_cv_term_header" >&5
18828 echo "${ECHO_T}$cf_cv_term_header" >&6
18830 case "$cf_cv_term_header" in
18833 cat >>confdefs.h <<\EOF
18834 #define HAVE_TERM_H 1
18840 cat >>confdefs.h <<\EOF
18841 #define HAVE_NCURSES_TERM_H 1
18847 cat >>confdefs.h <<\EOF
18848 #define HAVE_NCURSESW_TERM_H 1
18854 echo "$as_me:18854: checking for unctrl.h" >&5
18855 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
18856 if test "${cf_cv_unctrl_header+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
18861 # for <unctrl.h> if we do not find the variant.
18863 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
18865 case "${cf_cv_ncurses_header:-curses.h}" in
18867 cf_header_item=`echo "${cf_cv_ncurses_header:-curses.h}" | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
18868 cf_header_list="$cf_header_item $cf_header_list"
18872 for cf_header in $cf_header_list
18874 cat >"conftest.$ac_ext" <<_ACEOF
18875 #line 18875 "configure"
18876 #include "confdefs.h"
18878 #include <${cf_cv_ncurses_header:-curses.h}>
18879 #include <${cf_header}>
18888 rm -f "conftest.$ac_objext"
18889 if { (eval echo "$as_me:18889: \"$ac_compile\"") >&5
18890 (eval $ac_compile) 2>&5
18892 echo "$as_me:18892: \$? = $ac_status" >&5
18893 (exit "$ac_status"); } &&
18894 { ac_try='test -s "conftest.$ac_objext"'
18895 { (eval echo "$as_me:18895: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18898 echo "$as_me:18898: \$? = $ac_status" >&5
18899 (exit "$ac_status"); }; }; then
18900 cf_cv_unctrl_header=$cf_header
18903 echo "$as_me: failed program was:" >&5
18904 cat "conftest.$ac_ext" >&5
18905 cf_cv_unctrl_header=no
18907 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18911 echo "$as_me:18911: result: $cf_cv_unctrl_header" >&5
18912 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
18914 case "$cf_cv_unctrl_header" in
18916 { echo "$as_me:18916: WARNING: unctrl.h header not found" >&5
18917 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
18921 case "$cf_cv_unctrl_header" in
18924 cat >>confdefs.h <<\EOF
18925 #define HAVE_UNCTRL_H 1
18931 cat >>confdefs.h <<\EOF
18932 #define HAVE_NCURSES_UNCTRL_H 1
18936 (ncursesw/unctrl.h)
18938 cat >>confdefs.h <<\EOF
18939 #define HAVE_NCURSESW_UNCTRL_H 1
18947 assume_default_colors \
18964 init_extended_color \
18972 reset_color_pairs \
18989 use_default_colors \
18991 use_extended_names \
19007 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19009 echo "$as_me:19009: checking for ${cf_func}" >&5
19010 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
19012 echo "${as_me:-configure}:19012: testing ${cf_func} ..." 1>&5
19014 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19018 eval cf_result='$ac_cv_func_'$cf_func
19019 if test ".$cf_result" != ".no"; then
19020 cat >"conftest.$ac_ext" <<_ACEOF
19021 #line 19021 "configure"
19022 #include "confdefs.h"
19024 #ifdef HAVE_XCURSES
19025 #include <xcurses.h>
19026 char * XCursesProgramName = "test";
19028 #include <${cf_cv_ncurses_header:-curses.h}>
19029 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19030 #include <ncursesw/term.h>
19031 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19032 #include <ncurses/term.h>
19033 #elif defined(HAVE_TERM_H)
19043 long foo = (long)(&${cf_func});
19044 fprintf(stderr, "testing linkage of $cf_func:%p\\n", (void *)foo);
19045 if (foo + 1234L > 5678L)
19046 ${cf_cv_main_return:-return}(foo != 0);
19053 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19054 if { (eval echo "$as_me:19054: \"$ac_link\"") >&5
19055 (eval $ac_link) 2>&5
19057 echo "$as_me:19057: \$? = $ac_status" >&5
19058 (exit "$ac_status"); } &&
19059 { ac_try='test -s "conftest$ac_exeext"'
19060 { (eval echo "$as_me:19060: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19063 echo "$as_me:19063: \$? = $ac_status" >&5
19064 (exit "$ac_status"); }; }; then
19067 echo "$as_me: failed program was:" >&5
19068 cat "conftest.$ac_ext" >&5
19071 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19073 eval 'cf_cv_func_'$cf_func'="$cf_result"'
19077 # use the computed/retrieved cache-value:
19078 eval 'cf_result=$cf_cv_func_'$cf_func
19079 echo "$as_me:19079: result: $cf_result" >&5
19080 echo "${ECHO_T}$cf_result" >&6
19081 if test "$cf_result" != no; then
19082 cat >>confdefs.h <<EOF
19083 #define HAVE_${cf_tr_func} 1
19089 for cf_func in tputs
19092 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19094 echo "$as_me:19094: checking for ${cf_func}" >&5
19095 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
19097 echo "${as_me:-configure}:19097: testing ${cf_func} ..." 1>&5
19099 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 eval cf_result='$ac_cv_func_'$cf_func
19104 if test ".$cf_result" != ".no"; then
19105 cat >"conftest.$ac_ext" <<_ACEOF
19106 #line 19106 "configure"
19107 #include "confdefs.h"
19109 #ifdef HAVE_XCURSES
19110 #include <xcurses.h>
19111 char * XCursesProgramName = "test";
19113 #include <${cf_cv_ncurses_header:-curses.h}>
19114 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19115 #include <ncursesw/term.h>
19116 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19117 #include <ncurses/term.h>
19118 #elif defined(HAVE_TERM_H)
19128 long foo = (long)(&${cf_func});
19129 fprintf(stderr, "testing linkage of $cf_func:%p\\n", (void *)foo);
19130 if (foo + 1234L > 5678L)
19131 ${cf_cv_main_return:-return}(foo != 0);
19138 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19139 if { (eval echo "$as_me:19139: \"$ac_link\"") >&5
19140 (eval $ac_link) 2>&5
19142 echo "$as_me:19142: \$? = $ac_status" >&5
19143 (exit "$ac_status"); } &&
19144 { ac_try='test -s "conftest$ac_exeext"'
19145 { (eval echo "$as_me:19145: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19148 echo "$as_me:19148: \$? = $ac_status" >&5
19149 (exit "$ac_status"); }; }; then
19152 echo "$as_me: failed program was:" >&5
19153 cat "conftest.$ac_ext" >&5
19156 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19158 eval 'cf_cv_func_'$cf_func'="$cf_result"'
19162 # use the computed/retrieved cache-value:
19163 eval 'cf_result=$cf_cv_func_'$cf_func
19164 echo "$as_me:19164: result: $cf_result" >&5
19165 echo "${ECHO_T}$cf_result" >&6
19166 if test "$cf_result" != no; then
19167 cat >>confdefs.h <<EOF
19168 #define HAVE_${cf_tr_func} 1
19174 if test "x$cf_cv_func_tputs" = xyes
19177 for cf_arg in int char
19179 for cf_ret in int void
19181 if test "$cf_ret" = void
19183 cf_return="/* nothing */"
19185 cf_return="return value"
19187 cat >"conftest.$ac_ext" <<_ACEOF
19188 #line 19188 "configure"
19189 #include "confdefs.h"
19191 #include <${cf_cv_ncurses_header:-curses.h}>
19192 #include <$cf_cv_term_header>
19194 static $cf_ret outc($cf_arg value) { $cf_return; }
19200 tputs("hello", 0, outc);
19201 ${cf_cv_main_return:-return}(0);
19207 rm -f "conftest.$ac_objext"
19208 if { (eval echo "$as_me:19208: \"$ac_compile\"") >&5
19209 (eval $ac_compile) 2>&5
19211 echo "$as_me:19211: \$? = $ac_status" >&5
19212 (exit "$ac_status"); } &&
19213 { ac_try='test -s "conftest.$ac_objext"'
19214 { (eval echo "$as_me:19214: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19217 echo "$as_me:19217: \$? = $ac_status" >&5
19218 (exit "$ac_status"); }; }; then
19220 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
19222 echo "${as_me:-configure}:19222: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
19224 cat >>confdefs.h <<EOF
19225 #define TPUTS_ARG $cf_arg
19226 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
19227 #define TPUTS_RETURN(value) $cf_return
19233 echo "$as_me: failed program was:" >&5
19234 cat "conftest.$ac_ext" >&5
19236 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19238 test "$cf_done" = yes && break
19242 echo "$as_me:19242: checking for ncurses extended functions" >&5
19243 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
19244 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 cat >"conftest.$ac_ext" <<_ACEOF
19249 #line 19249 "configure"
19250 #include "confdefs.h"
19252 #include <${cf_cv_ncurses_header:-curses.h}>
19257 int x = NCURSES_EXT_FUNCS
19263 rm -f "conftest.$ac_objext"
19264 if { (eval echo "$as_me:19264: \"$ac_compile\"") >&5
19265 (eval $ac_compile) 2>&5
19267 echo "$as_me:19267: \$? = $ac_status" >&5
19268 (exit "$ac_status"); } &&
19269 { ac_try='test -s "conftest.$ac_objext"'
19270 { (eval echo "$as_me:19270: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:19273: \$? = $ac_status" >&5
19274 (exit "$ac_status"); }; }; then
19275 cf_cv_ncurses_ext_funcs=defined
19277 echo "$as_me: failed program was:" >&5
19278 cat "conftest.$ac_ext" >&5
19280 cat >"conftest.$ac_ext" <<_ACEOF
19281 #line 19281 "configure"
19282 #include "confdefs.h"
19284 #include <${cf_cv_ncurses_header:-curses.h}>
19289 (void) assume_default_colors (0, 0);
19290 (void) curses_version ();
19291 (void) define_key (0, 0);
19292 (void) is_term_resized (0, 0);
19293 (void) key_defined (0);
19294 (void) keybound (0, 0);
19295 (void) keyok (0, 0);
19296 (void) resize_term (0, 0);
19297 (void) resizeterm (0, 0);
19298 (void) use_default_colors ();
19299 (void) use_extended_names (0);
19300 (void) wresize (0, 0, 0);
19305 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19306 if { (eval echo "$as_me:19306: \"$ac_link\"") >&5
19307 (eval $ac_link) 2>&5
19309 echo "$as_me:19309: \$? = $ac_status" >&5
19310 (exit "$ac_status"); } &&
19311 { ac_try='test -s "conftest$ac_exeext"'
19312 { (eval echo "$as_me:19312: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:19315: \$? = $ac_status" >&5
19316 (exit "$ac_status"); }; }; then
19317 cf_cv_ncurses_ext_funcs=yes
19319 echo "$as_me: failed program was:" >&5
19320 cat "conftest.$ac_ext" >&5
19321 cf_cv_ncurses_ext_funcs=no
19323 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19326 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19329 echo "$as_me:19329: result: $cf_cv_ncurses_ext_funcs" >&5
19330 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
19331 test "$cf_cv_ncurses_ext_funcs" = yes &&
19332 cat >>confdefs.h <<\EOF
19333 #define NCURSES_EXT_FUNCS 1
19336 if test "$cf_enable_widec" = yes
19338 # workaround for systems with ncurses before 20111029, due to change of
19339 # feature test macro from _XPG5 to _XOPEN_SOURCE
19340 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
19343 echo "$as_me:19343: checking if _XPG5 should be defined to enable wide-characters" >&5
19344 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
19346 cat >"conftest.$ac_ext" <<_ACEOF
19347 #line 19347 "configure"
19348 #include "confdefs.h"
19350 #include <${cf_cv_ncurses_header:-curses.h}>
19359 rm -f "conftest.$ac_objext"
19360 if { (eval echo "$as_me:19360: \"$ac_compile\"") >&5
19361 (eval $ac_compile) 2>&5
19363 echo "$as_me:19363: \$? = $ac_status" >&5
19364 (exit "$ac_status"); } &&
19365 { ac_try='test -s "conftest.$ac_objext"'
19366 { (eval echo "$as_me:19366: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:19369: \$? = $ac_status" >&5
19370 (exit "$ac_status"); }; }; then
19373 echo "$as_me: failed program was:" >&5
19374 cat "conftest.$ac_ext" >&5
19375 cf_save_cppflags="$CPPFLAGS"
19376 CPPFLAGS="$CPPFLAGS -D_XPG5"
19377 cat >"conftest.$ac_ext" <<_ACEOF
19378 #line 19378 "configure"
19379 #include "confdefs.h"
19381 #include <${cf_cv_ncurses_header:-curses.h}>
19390 rm -f "conftest.$ac_objext"
19391 if { (eval echo "$as_me:19391: \"$ac_compile\"") >&5
19392 (eval $ac_compile) 2>&5
19394 echo "$as_me:19394: \$? = $ac_status" >&5
19395 (exit "$ac_status"); } &&
19396 { ac_try='test -s "conftest.$ac_objext"'
19397 { (eval echo "$as_me:19397: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:19400: \$? = $ac_status" >&5
19401 (exit "$ac_status"); }; }; then
19404 echo "$as_me: failed program was:" >&5
19405 cat "conftest.$ac_ext" >&5
19407 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19408 CPPFLAGS="$cf_save_cppflags"
19410 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19411 echo "$as_me:19411: result: $cf_define_xpg5" >&5
19412 echo "${ECHO_T}$cf_define_xpg5" >&6
19414 if test "$cf_define_xpg5" = yes
19416 CPPFLAGS="$CPPFLAGS -D_XPG5"
19420 echo "$as_me:19420: checking for wide-character functions" >&5
19421 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
19422 if test "${cf_cv_widechar_funcs+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 cat >"conftest.$ac_ext" <<_ACEOF
19427 #line 19427 "configure"
19428 #include "confdefs.h"
19430 #include <${cf_cv_ncurses_header:-curses.h}>
19435 static wchar_t src_wchar[2];
19436 static cchar_t dst_cchar;
19437 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
19443 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19444 if { (eval echo "$as_me:19444: \"$ac_link\"") >&5
19445 (eval $ac_link) 2>&5
19447 echo "$as_me:19447: \$? = $ac_status" >&5
19448 (exit "$ac_status"); } &&
19449 { ac_try='test -s "conftest$ac_exeext"'
19450 { (eval echo "$as_me:19450: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19453 echo "$as_me:19453: \$? = $ac_status" >&5
19454 (exit "$ac_status"); }; }; then
19455 cf_cv_widechar_funcs=yes
19457 echo "$as_me: failed program was:" >&5
19458 cat "conftest.$ac_ext" >&5
19459 cf_cv_widechar_funcs=no
19461 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19464 echo "$as_me:19464: result: $cf_cv_widechar_funcs" >&5
19465 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
19466 if test "$cf_cv_widechar_funcs" != no ; then
19468 cat >>confdefs.h <<\EOF
19469 #define USE_WIDEC_SUPPORT 1
19473 cat >>confdefs.h <<\EOF
19474 #define USE_WIDEC_SUPPORT 0
19479 cat >>confdefs.h <<\EOF
19480 #define USE_WIDEC_SUPPORT 0
19485 echo "$as_me:19485: checking if $cf_cv_screen library uses pthreads" >&5
19486 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
19487 if test "${cf_cv_use_pthreads+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 cat >"conftest.$ac_ext" <<_ACEOF
19492 #line 19492 "configure"
19493 #include "confdefs.h"
19495 #include <${cf_cv_ncurses_header:-curses.h}>
19496 extern void _nc_init_pthreads(void);
19503 _nc_init_pthreads();
19509 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19510 if { (eval echo "$as_me:19510: \"$ac_link\"") >&5
19511 (eval $ac_link) 2>&5
19513 echo "$as_me:19513: \$? = $ac_status" >&5
19514 (exit "$ac_status"); } &&
19515 { ac_try='test -s "conftest$ac_exeext"'
19516 { (eval echo "$as_me:19516: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19519 echo "$as_me:19519: \$? = $ac_status" >&5
19520 (exit "$ac_status"); }; }; then
19521 cf_cv_use_pthreads=yes
19523 echo "$as_me: failed program was:" >&5
19524 cat "conftest.$ac_ext" >&5
19525 cf_cv_use_pthreads=no
19527 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19530 echo "$as_me:19530: result: $cf_cv_use_pthreads" >&5
19531 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
19532 test $cf_cv_use_pthreads = yes &&
19533 cat >>confdefs.h <<\EOF
19534 #define USE_PTHREADS 1
19537 echo "$as_me:19537: checking if sys/time.h works with sys/select.h" >&5
19538 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
19539 if test "${cf_cv_sys_time_select+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 cat >"conftest.$ac_ext" <<_ACEOF
19544 #line 19544 "configure"
19545 #include "confdefs.h"
19547 #include <sys/types.h>
19548 #ifdef HAVE_SYS_TIME_H
19549 #include <sys/time.h>
19551 #ifdef HAVE_SYS_SELECT_H
19552 #include <sys/select.h>
19563 rm -f "conftest.$ac_objext"
19564 if { (eval echo "$as_me:19564: \"$ac_compile\"") >&5
19565 (eval $ac_compile) 2>&5
19567 echo "$as_me:19567: \$? = $ac_status" >&5
19568 (exit "$ac_status"); } &&
19569 { ac_try='test -s "conftest.$ac_objext"'
19570 { (eval echo "$as_me:19570: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19573 echo "$as_me:19573: \$? = $ac_status" >&5
19574 (exit "$ac_status"); }; }; then
19575 cf_cv_sys_time_select=yes
19577 echo "$as_me: failed program was:" >&5
19578 cat "conftest.$ac_ext" >&5
19579 cf_cv_sys_time_select=no
19581 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19585 echo "$as_me:19585: result: $cf_cv_sys_time_select" >&5
19586 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
19587 test "$cf_cv_sys_time_select" = yes &&
19588 cat >>confdefs.h <<\EOF
19589 #define HAVE_SYS_TIME_SELECT 1
19592 # special check for test/ditto.c
19594 echo "$as_me:19594: checking for openpty in -lutil" >&5
19595 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
19596 if test "${ac_cv_lib_util_openpty+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 ac_check_lib_save_LIBS=$LIBS
19600 LIBS="-lutil $LIBS"
19601 cat >"conftest.$ac_ext" <<_ACEOF
19602 #line 19602 "configure"
19603 #include "confdefs.h"
19605 /* Override any gcc2 internal prototype to avoid an error. */
19609 /* We use char because int might match the return type of a gcc2
19610 builtin and then its argument prototype would still apply. */
19620 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19621 if { (eval echo "$as_me:19621: \"$ac_link\"") >&5
19622 (eval $ac_link) 2>&5
19624 echo "$as_me:19624: \$? = $ac_status" >&5
19625 (exit "$ac_status"); } &&
19626 { ac_try='test -s "conftest$ac_exeext"'
19627 { (eval echo "$as_me:19627: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19630 echo "$as_me:19630: \$? = $ac_status" >&5
19631 (exit "$ac_status"); }; }; then
19632 ac_cv_lib_util_openpty=yes
19634 echo "$as_me: failed program was:" >&5
19635 cat "conftest.$ac_ext" >&5
19636 ac_cv_lib_util_openpty=no
19638 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19639 LIBS=$ac_check_lib_save_LIBS
19641 echo "$as_me:19641: result: $ac_cv_lib_util_openpty" >&5
19642 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
19643 if test "$ac_cv_lib_util_openpty" = yes; then
19649 echo "$as_me:19649: checking for openpty header" >&5
19650 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
19651 if test "${cf_cv_func_openpty+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 cf_save_LIBS="$LIBS"
19656 test "$cf_cv_lib_util" = yes && {
19657 cf_add_libs="$LIBS"
19660 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19661 # filter duplicates
19662 for cf_add_1lib in $cf_add_0lib; do
19663 for cf_add_2lib in $cf_add_libs; do
19664 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19669 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19671 LIBS="$cf_add_libs"
19673 for cf_header in pty.h libutil.h util.h
19675 cat >"conftest.$ac_ext" <<_ACEOF
19676 #line 19676 "configure"
19677 #include "confdefs.h"
19679 #include <$cf_header>
19685 int x = openpty((int *)0, (int *)0, (char *)0,
19686 (struct termios *)0, (struct winsize *)0);
19692 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19693 if { (eval echo "$as_me:19693: \"$ac_link\"") >&5
19694 (eval $ac_link) 2>&5
19696 echo "$as_me:19696: \$? = $ac_status" >&5
19697 (exit "$ac_status"); } &&
19698 { ac_try='test -s "conftest$ac_exeext"'
19699 { (eval echo "$as_me:19699: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19702 echo "$as_me:19702: \$? = $ac_status" >&5
19703 (exit "$ac_status"); }; }; then
19705 cf_cv_func_openpty=$cf_header
19709 echo "$as_me: failed program was:" >&5
19710 cat "conftest.$ac_ext" >&5
19712 cf_cv_func_openpty=no
19715 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19717 LIBS="$cf_save_LIBS"
19720 echo "$as_me:19720: result: $cf_cv_func_openpty" >&5
19721 echo "${ECHO_T}$cf_cv_func_openpty" >&6
19723 if test "$cf_cv_func_openpty" != no ; then
19725 cat >>confdefs.h <<EOF
19726 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
19729 cat >>confdefs.h <<\EOF
19730 #define USE_XTERM_PTY 1
19733 if test "x$cf_cv_lib_util" = xyes ; then
19735 cf_add_libs="$TEST_LIBS"
19738 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19739 # filter duplicates
19740 for cf_add_1lib in $cf_add_0lib; do
19741 for cf_add_2lib in $cf_add_libs; do
19742 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19747 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19749 TEST_LIBS="$cf_add_libs"
19754 echo "$as_me:19754: checking for function curses_version" >&5
19755 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
19756 if test "${cf_cv_func_curses_version+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 if test "$cross_compiling" = yes; then
19761 cf_cv_func_curses_version=unknown
19763 cat >"conftest.$ac_ext" <<_ACEOF
19764 #line 19764 "configure"
19765 #include "confdefs.h"
19767 #include <${cf_cv_ncurses_header:-curses.h}>
19771 sprintf(temp, "%s\\n", curses_version());
19772 ${cf_cv_main_return:-return}(0);
19776 rm -f "conftest$ac_exeext"
19777 if { (eval echo "$as_me:19777: \"$ac_link\"") >&5
19778 (eval $ac_link) 2>&5
19780 echo "$as_me:19780: \$? = $ac_status" >&5
19781 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
19782 { (eval echo "$as_me:19782: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:19785: \$? = $ac_status" >&5
19786 (exit "$ac_status"); }; }; then
19787 cf_cv_func_curses_version=yes
19790 echo "$as_me: program exited with status $ac_status" >&5
19791 echo "$as_me: failed program was:" >&5
19792 cat "conftest.$ac_ext" >&5
19793 cf_cv_func_curses_version=no
19796 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
19800 echo "$as_me:19800: result: $cf_cv_func_curses_version" >&5
19801 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
19802 test "$cf_cv_func_curses_version" = yes &&
19803 cat >>confdefs.h <<\EOF
19804 #define HAVE_CURSES_VERSION 1
19807 echo "$as_me:19807: checking for alternate character set array" >&5
19808 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
19809 if test "${cf_cv_curses_acs_map+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 cf_cv_curses_acs_map=unknown
19814 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
19816 cat >"conftest.$ac_ext" <<_ACEOF
19817 #line 19817 "configure"
19818 #include "confdefs.h"
19820 #include <${cf_cv_ncurses_header:-curses.h}>
19826 ${name}['k'] = ACS_PLUS
19832 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19833 if { (eval echo "$as_me:19833: \"$ac_link\"") >&5
19834 (eval $ac_link) 2>&5
19836 echo "$as_me:19836: \$? = $ac_status" >&5
19837 (exit "$ac_status"); } &&
19838 { ac_try='test -s "conftest$ac_exeext"'
19839 { (eval echo "$as_me:19839: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19842 echo "$as_me:19842: \$? = $ac_status" >&5
19843 (exit "$ac_status"); }; }; then
19844 cf_cv_curses_acs_map=$name; break
19846 echo "$as_me: failed program was:" >&5
19847 cat "conftest.$ac_ext" >&5
19849 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19853 echo "$as_me:19853: result: $cf_cv_curses_acs_map" >&5
19854 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
19856 test "$cf_cv_curses_acs_map" != unknown &&
19857 cat >>confdefs.h <<EOF
19858 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
19861 if test "$cf_enable_widec" = yes; then
19863 echo "$as_me:19863: checking for wide alternate character set array" >&5
19864 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
19865 if test "${cf_cv_curses_wacs_map+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 cf_cv_curses_wacs_map=unknown
19870 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
19872 cat >"conftest.$ac_ext" <<_ACEOF
19873 #line 19873 "configure"
19874 #include "confdefs.h"
19876 #ifndef _XOPEN_SOURCE_EXTENDED
19877 #define _XOPEN_SOURCE_EXTENDED
19879 #include <${cf_cv_ncurses_header:-curses.h}>
19883 void *foo = &(${name}['k']); (void)foo
19888 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19889 if { (eval echo "$as_me:19889: \"$ac_link\"") >&5
19890 (eval $ac_link) 2>&5
19892 echo "$as_me:19892: \$? = $ac_status" >&5
19893 (exit "$ac_status"); } &&
19894 { ac_try='test -s "conftest$ac_exeext"'
19895 { (eval echo "$as_me:19895: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19898 echo "$as_me:19898: \$? = $ac_status" >&5
19899 (exit "$ac_status"); }; }; then
19900 cf_cv_curses_wacs_map=$name
19903 echo "$as_me: failed program was:" >&5
19904 cat "conftest.$ac_ext" >&5
19906 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19909 echo "$as_me:19909: result: $cf_cv_curses_wacs_map" >&5
19910 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
19912 test "$cf_cv_curses_wacs_map" != unknown &&
19913 cat >>confdefs.h <<EOF
19914 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
19917 echo "$as_me:19917: checking for wide alternate character constants" >&5
19918 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
19919 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 cf_cv_curses_wacs_symbols=no
19924 if test "$cf_cv_curses_wacs_map" != unknown
19926 cat >"conftest.$ac_ext" <<_ACEOF
19927 #line 19927 "configure"
19928 #include "confdefs.h"
19930 #ifndef _XOPEN_SOURCE_EXTENDED
19931 #define _XOPEN_SOURCE_EXTENDED
19933 #include <${cf_cv_ncurses_header:-curses.h}>
19937 cchar_t *foo = WACS_PLUS;
19938 ${cf_cv_curses_wacs_map}['k'] = *WACS_PLUS; (void)foo
19943 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19944 if { (eval echo "$as_me:19944: \"$ac_link\"") >&5
19945 (eval $ac_link) 2>&5
19947 echo "$as_me:19947: \$? = $ac_status" >&5
19948 (exit "$ac_status"); } &&
19949 { ac_try='test -s "conftest$ac_exeext"'
19950 { (eval echo "$as_me:19950: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19953 echo "$as_me:19953: \$? = $ac_status" >&5
19954 (exit "$ac_status"); }; }; then
19955 cf_cv_curses_wacs_symbols=yes
19957 echo "$as_me: failed program was:" >&5
19958 cat "conftest.$ac_ext" >&5
19960 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19962 cat >"conftest.$ac_ext" <<_ACEOF
19963 #line 19963 "configure"
19964 #include "confdefs.h"
19966 #ifndef _XOPEN_SOURCE_EXTENDED
19967 #define _XOPEN_SOURCE_EXTENDED
19969 #include <${cf_cv_ncurses_header:-curses.h}>
19973 cchar_t *foo = WACS_PLUS; (void)foo
19978 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19979 if { (eval echo "$as_me:19979: \"$ac_link\"") >&5
19980 (eval $ac_link) 2>&5
19982 echo "$as_me:19982: \$? = $ac_status" >&5
19983 (exit "$ac_status"); } &&
19984 { ac_try='test -s "conftest$ac_exeext"'
19985 { (eval echo "$as_me:19985: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19988 echo "$as_me:19988: \$? = $ac_status" >&5
19989 (exit "$ac_status"); }; }; then
19990 cf_cv_curses_wacs_symbols=yes
19992 echo "$as_me: failed program was:" >&5
19993 cat "conftest.$ac_ext" >&5
19995 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19999 echo "$as_me:19999: result: $cf_cv_curses_wacs_symbols" >&5
20000 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
20002 test "$cf_cv_curses_wacs_symbols" != no &&
20003 cat >>confdefs.h <<\EOF
20004 #define CURSES_WACS_SYMBOLS 1
20009 echo "$as_me:20009: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20010 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20011 cat >"conftest.$ac_ext" <<_ACEOF
20012 #line 20012 "configure"
20013 #include "confdefs.h"
20015 #ifndef _XOPEN_SOURCE_EXTENDED
20016 #define _XOPEN_SOURCE_EXTENDED
20018 #include <${cf_cv_ncurses_header:-curses.h}>
20029 rm -f "conftest.$ac_objext"
20030 if { (eval echo "$as_me:20030: \"$ac_compile\"") >&5
20031 (eval $ac_compile) 2>&5
20033 echo "$as_me:20033: \$? = $ac_status" >&5
20034 (exit "$ac_status"); } &&
20035 { ac_try='test -s "conftest.$ac_objext"'
20036 { (eval echo "$as_me:20036: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20039 echo "$as_me:20039: \$? = $ac_status" >&5
20040 (exit "$ac_status"); }; }; then
20043 echo "$as_me: failed program was:" >&5
20044 cat "conftest.$ac_ext" >&5
20047 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20048 echo "$as_me:20048: result: $cf_result" >&5
20049 echo "${ECHO_T}$cf_result" >&6
20050 if test "$cf_result" = yes ; then
20052 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20054 cat >>confdefs.h <<EOF
20055 #define $cf_result 1
20060 cat >>confdefs.h <<EOF
20061 #define attr_t long
20066 if test "$cf_enable_widec" = yes; then
20068 # This is needed on Tru64 5.0 to declare mbstate_t
20069 echo "$as_me:20069: checking if we must include wchar.h to declare mbstate_t" >&5
20070 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
20071 if test "${cf_cv_mbstate_t+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 cat >"conftest.$ac_ext" <<_ACEOF
20076 #line 20076 "configure"
20077 #include "confdefs.h"
20079 #include <stdlib.h>
20080 #include <stdarg.h>
20082 #ifdef HAVE_LIBUTF8_H
20083 #include <libutf8.h>
20093 rm -f "conftest.$ac_objext"
20094 if { (eval echo "$as_me:20094: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>&5
20097 echo "$as_me:20097: \$? = $ac_status" >&5
20098 (exit "$ac_status"); } &&
20099 { ac_try='test -s "conftest.$ac_objext"'
20100 { (eval echo "$as_me:20100: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20103 echo "$as_me:20103: \$? = $ac_status" >&5
20104 (exit "$ac_status"); }; }; then
20107 echo "$as_me: failed program was:" >&5
20108 cat "conftest.$ac_ext" >&5
20109 cat >"conftest.$ac_ext" <<_ACEOF
20110 #line 20110 "configure"
20111 #include "confdefs.h"
20113 #include <stdlib.h>
20114 #include <stdarg.h>
20117 #ifdef HAVE_LIBUTF8_H
20118 #include <libutf8.h>
20128 rm -f "conftest.$ac_objext"
20129 if { (eval echo "$as_me:20129: \"$ac_compile\"") >&5
20130 (eval $ac_compile) 2>&5
20132 echo "$as_me:20132: \$? = $ac_status" >&5
20133 (exit "$ac_status"); } &&
20134 { ac_try='test -s "conftest.$ac_objext"'
20135 { (eval echo "$as_me:20135: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20138 echo "$as_me:20138: \$? = $ac_status" >&5
20139 (exit "$ac_status"); }; }; then
20140 cf_cv_mbstate_t=yes
20142 echo "$as_me: failed program was:" >&5
20143 cat "conftest.$ac_ext" >&5
20144 cf_cv_mbstate_t=unknown
20146 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20148 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20150 echo "$as_me:20150: result: $cf_cv_mbstate_t" >&5
20151 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
20153 if test "$cf_cv_mbstate_t" = yes ; then
20155 cat >>confdefs.h <<\EOF
20156 #define NEED_WCHAR_H 1
20162 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
20163 if test "$cf_cv_mbstate_t" = unknown ; then
20164 NCURSES_MBSTATE_T=1
20167 # if we find mbstate_t in either place, use substitution to provide a fallback.
20168 if test "$cf_cv_mbstate_t" != unknown ; then
20169 NCURSES_OK_MBSTATE_T=1
20172 # This is needed on Tru64 5.0 to declare wchar_t
20173 echo "$as_me:20173: checking if we must include wchar.h to declare wchar_t" >&5
20174 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
20175 if test "${cf_cv_wchar_t+set}" = set; then
20176 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 cat >"conftest.$ac_ext" <<_ACEOF
20180 #line 20180 "configure"
20181 #include "confdefs.h"
20183 #include <stdlib.h>
20184 #include <stdarg.h>
20186 #ifdef HAVE_LIBUTF8_H
20187 #include <libutf8.h>
20197 rm -f "conftest.$ac_objext"
20198 if { (eval echo "$as_me:20198: \"$ac_compile\"") >&5
20199 (eval $ac_compile) 2>&5
20201 echo "$as_me:20201: \$? = $ac_status" >&5
20202 (exit "$ac_status"); } &&
20203 { ac_try='test -s "conftest.$ac_objext"'
20204 { (eval echo "$as_me:20204: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20207 echo "$as_me:20207: \$? = $ac_status" >&5
20208 (exit "$ac_status"); }; }; then
20211 echo "$as_me: failed program was:" >&5
20212 cat "conftest.$ac_ext" >&5
20213 cat >"conftest.$ac_ext" <<_ACEOF
20214 #line 20214 "configure"
20215 #include "confdefs.h"
20217 #include <stdlib.h>
20218 #include <stdarg.h>
20221 #ifdef HAVE_LIBUTF8_H
20222 #include <libutf8.h>
20232 rm -f "conftest.$ac_objext"
20233 if { (eval echo "$as_me:20233: \"$ac_compile\"") >&5
20234 (eval $ac_compile) 2>&5
20236 echo "$as_me:20236: \$? = $ac_status" >&5
20237 (exit "$ac_status"); } &&
20238 { ac_try='test -s "conftest.$ac_objext"'
20239 { (eval echo "$as_me:20239: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20242 echo "$as_me:20242: \$? = $ac_status" >&5
20243 (exit "$ac_status"); }; }; then
20246 echo "$as_me: failed program was:" >&5
20247 cat "conftest.$ac_ext" >&5
20248 cf_cv_wchar_t=unknown
20250 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20252 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20254 echo "$as_me:20254: result: $cf_cv_wchar_t" >&5
20255 echo "${ECHO_T}$cf_cv_wchar_t" >&6
20257 if test "$cf_cv_wchar_t" = yes ; then
20259 cat >>confdefs.h <<\EOF
20260 #define NEED_WCHAR_H 1
20266 # if we do not find wchar_t in either place, use substitution to provide a fallback.
20267 if test "$cf_cv_wchar_t" = unknown ; then
20271 # if we find wchar_t in either place, use substitution to provide a fallback.
20272 if test "$cf_cv_wchar_t" != unknown ; then
20273 NCURSES_OK_WCHAR_T=1
20276 # This is needed on Tru64 5.0 to declare wint_t
20277 echo "$as_me:20277: checking if we must include wchar.h to declare wint_t" >&5
20278 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
20279 if test "${cf_cv_wint_t+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 cat >"conftest.$ac_ext" <<_ACEOF
20284 #line 20284 "configure"
20285 #include "confdefs.h"
20287 #include <stdlib.h>
20288 #include <stdarg.h>
20290 #ifdef HAVE_LIBUTF8_H
20291 #include <libutf8.h>
20301 rm -f "conftest.$ac_objext"
20302 if { (eval echo "$as_me:20302: \"$ac_compile\"") >&5
20303 (eval $ac_compile) 2>&5
20305 echo "$as_me:20305: \$? = $ac_status" >&5
20306 (exit "$ac_status"); } &&
20307 { ac_try='test -s "conftest.$ac_objext"'
20308 { (eval echo "$as_me:20308: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20311 echo "$as_me:20311: \$? = $ac_status" >&5
20312 (exit "$ac_status"); }; }; then
20315 echo "$as_me: failed program was:" >&5
20316 cat "conftest.$ac_ext" >&5
20317 cat >"conftest.$ac_ext" <<_ACEOF
20318 #line 20318 "configure"
20319 #include "confdefs.h"
20321 #include <stdlib.h>
20322 #include <stdarg.h>
20325 #ifdef HAVE_LIBUTF8_H
20326 #include <libutf8.h>
20336 rm -f "conftest.$ac_objext"
20337 if { (eval echo "$as_me:20337: \"$ac_compile\"") >&5
20338 (eval $ac_compile) 2>&5
20340 echo "$as_me:20340: \$? = $ac_status" >&5
20341 (exit "$ac_status"); } &&
20342 { ac_try='test -s "conftest.$ac_objext"'
20343 { (eval echo "$as_me:20343: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:20346: \$? = $ac_status" >&5
20347 (exit "$ac_status"); }; }; then
20350 echo "$as_me: failed program was:" >&5
20351 cat "conftest.$ac_ext" >&5
20352 cf_cv_wint_t=unknown
20354 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20356 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20358 echo "$as_me:20358: result: $cf_cv_wint_t" >&5
20359 echo "${ECHO_T}$cf_cv_wint_t" >&6
20361 if test "$cf_cv_wint_t" = yes ; then
20363 cat >>confdefs.h <<\EOF
20364 #define NEED_WCHAR_H 1
20370 # if we do not find wint_t in either place, use substitution to provide a fallback.
20371 if test "$cf_cv_wint_t" = unknown ; then
20375 # if we find wint_t in either place, use substitution to provide a fallback.
20376 if test "$cf_cv_wint_t" != unknown ; then
20377 NCURSES_OK_WINT_T=1
20380 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
20382 echo "$as_me:20382: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20383 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20384 cat >"conftest.$ac_ext" <<_ACEOF
20385 #line 20385 "configure"
20386 #include "confdefs.h"
20388 #ifndef _XOPEN_SOURCE_EXTENDED
20389 #define _XOPEN_SOURCE_EXTENDED
20391 #include <${cf_cv_ncurses_header:-curses.h}>
20402 rm -f "conftest.$ac_objext"
20403 if { (eval echo "$as_me:20403: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>&5
20406 echo "$as_me:20406: \$? = $ac_status" >&5
20407 (exit "$ac_status"); } &&
20408 { ac_try='test -s "conftest.$ac_objext"'
20409 { (eval echo "$as_me:20409: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20412 echo "$as_me:20412: \$? = $ac_status" >&5
20413 (exit "$ac_status"); }; }; then
20416 echo "$as_me: failed program was:" >&5
20417 cat "conftest.$ac_ext" >&5
20420 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20421 echo "$as_me:20421: result: $cf_result" >&5
20422 echo "${ECHO_T}$cf_result" >&6
20423 if test "$cf_result" = yes ; then
20425 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20427 cat >>confdefs.h <<EOF
20428 #define $cf_result 1
20433 cat >>confdefs.h <<EOF
20434 #define mbstate_t long
20441 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
20443 echo "$as_me:20443: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20444 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20445 cat >"conftest.$ac_ext" <<_ACEOF
20446 #line 20446 "configure"
20447 #include "confdefs.h"
20449 #ifndef _XOPEN_SOURCE_EXTENDED
20450 #define _XOPEN_SOURCE_EXTENDED
20452 #include <${cf_cv_ncurses_header:-curses.h}>
20463 rm -f "conftest.$ac_objext"
20464 if { (eval echo "$as_me:20464: \"$ac_compile\"") >&5
20465 (eval $ac_compile) 2>&5
20467 echo "$as_me:20467: \$? = $ac_status" >&5
20468 (exit "$ac_status"); } &&
20469 { ac_try='test -s "conftest.$ac_objext"'
20470 { (eval echo "$as_me:20470: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20473 echo "$as_me:20473: \$? = $ac_status" >&5
20474 (exit "$ac_status"); }; }; then
20477 echo "$as_me: failed program was:" >&5
20478 cat "conftest.$ac_ext" >&5
20481 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20482 echo "$as_me:20482: result: $cf_result" >&5
20483 echo "${ECHO_T}$cf_result" >&6
20484 if test "$cf_result" = yes ; then
20486 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20488 cat >>confdefs.h <<EOF
20489 #define $cf_result 1
20494 cat >>confdefs.h <<EOF
20495 #define wchar_t long
20502 if test "$NCURSES_OK_WINT_T" = 0 ; then
20504 echo "$as_me:20504: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20505 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20506 cat >"conftest.$ac_ext" <<_ACEOF
20507 #line 20507 "configure"
20508 #include "confdefs.h"
20510 #ifndef _XOPEN_SOURCE_EXTENDED
20511 #define _XOPEN_SOURCE_EXTENDED
20513 #include <${cf_cv_ncurses_header:-curses.h}>
20524 rm -f "conftest.$ac_objext"
20525 if { (eval echo "$as_me:20525: \"$ac_compile\"") >&5
20526 (eval $ac_compile) 2>&5
20528 echo "$as_me:20528: \$? = $ac_status" >&5
20529 (exit "$ac_status"); } &&
20530 { ac_try='test -s "conftest.$ac_objext"'
20531 { (eval echo "$as_me:20531: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:20534: \$? = $ac_status" >&5
20535 (exit "$ac_status"); }; }; then
20538 echo "$as_me: failed program was:" >&5
20539 cat "conftest.$ac_ext" >&5
20542 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20543 echo "$as_me:20543: result: $cf_result" >&5
20544 echo "${ECHO_T}$cf_result" >&6
20545 if test "$cf_result" = yes ; then
20547 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20549 cat >>confdefs.h <<EOF
20550 #define $cf_result 1
20555 cat >>confdefs.h <<EOF
20556 #define wint_t long
20572 echo "$as_me:20572: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
20573 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20575 cat >"conftest.$ac_ext" <<_ACEOF
20576 #line 20576 "configure"
20577 #include "confdefs.h"
20579 #ifdef HAVE_XCURSES
20580 #include <xcurses.h>
20581 char * XCursesProgramName = "test";
20583 #include <${cf_cv_ncurses_header:-curses.h}>
20584 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
20585 #include <ncursesw/term.h>
20586 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
20587 #include <ncurses/term.h>
20588 #elif defined(HAVE_TERM_H)
20597 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
20598 const void *foo = (const void *)($cf_data);
20600 const void *foo = &($cf_data);
20602 fprintf(stderr, "testing linkage of $cf_data:%p\\n", (const void *)foo);
20608 rm -f "conftest.$ac_objext"
20609 if { (eval echo "$as_me:20609: \"$ac_compile\"") >&5
20610 (eval $ac_compile) 2>&5
20612 echo "$as_me:20612: \$? = $ac_status" >&5
20613 (exit "$ac_status"); } &&
20614 { ac_try='test -s "conftest.$ac_objext"'
20615 { (eval echo "$as_me:20615: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20618 echo "$as_me:20618: \$? = $ac_status" >&5
20619 (exit "$ac_status"); }; }; then
20623 echo "$as_me: failed program was:" >&5
20624 cat "conftest.$ac_ext" >&5
20627 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20628 echo "$as_me:20628: result: $cf_result" >&5
20629 echo "${ECHO_T}$cf_result" >&6
20631 if test "$cf_result" = yes ; then
20633 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20635 cat >>confdefs.h <<EOF
20636 #define $cf_result 1
20640 echo "$as_me:20640: checking for data $cf_data in library" >&5
20641 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
20642 # BSD linkers insist on making weak linkage, but resolve at runtime.
20643 if test "$cross_compiling" = yes; then
20646 cat >"conftest.$ac_ext" <<_ACEOF
20647 #line 20647 "configure"
20648 #include "confdefs.h"
20650 #ifdef HAVE_XCURSES
20651 #include <xcurses.h>
20652 char * XCursesProgramName = "test";
20654 #include <${cf_cv_ncurses_header:-curses.h}>
20655 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
20656 #include <ncursesw/term.h>
20657 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
20658 #include <ncurses/term.h>
20659 #elif defined(HAVE_TERM_H)
20664 extern char $cf_data;
20671 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
20672 const void *foo = (const void *)($cf_data);
20674 const void *foo = &($cf_data);
20676 fprintf(stderr, "testing linkage of $cf_data:%p\\n", (const void *)foo);
20678 ${cf_cv_main_return:-return}(foo == 0);
20685 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20686 if { (eval echo "$as_me:20686: \"$ac_link\"") >&5
20687 (eval $ac_link) 2>&5
20689 echo "$as_me:20689: \$? = $ac_status" >&5
20690 (exit "$ac_status"); } &&
20691 { ac_try='test -s "conftest$ac_exeext"'
20692 { (eval echo "$as_me:20692: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20695 echo "$as_me:20695: \$? = $ac_status" >&5
20696 (exit "$ac_status"); }; }; then
20699 echo "$as_me: failed program was:" >&5
20700 cat "conftest.$ac_ext" >&5
20703 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20706 cat >"conftest.$ac_ext" <<_ACEOF
20707 #line 20707 "configure"
20708 #include "confdefs.h"
20710 #ifdef HAVE_XCURSES
20711 #include <xcurses.h>
20712 char * XCursesProgramName = "test";
20714 #include <${cf_cv_ncurses_header:-curses.h}>
20715 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
20716 #include <ncursesw/term.h>
20717 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
20718 #include <ncurses/term.h>
20719 #elif defined(HAVE_TERM_H)
20724 extern char $cf_data;
20728 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
20729 const void *foo = (const void *)($cf_data);
20731 const void *foo = &($cf_data);
20733 fprintf(stderr, "testing linkage of $cf_data:%p\\n", (const void *)foo);
20735 ${cf_cv_main_return:-return}(foo == 0);
20738 rm -f "conftest$ac_exeext"
20739 if { (eval echo "$as_me:20739: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>&5
20742 echo "$as_me:20742: \$? = $ac_status" >&5
20743 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20744 { (eval echo "$as_me:20744: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20747 echo "$as_me:20747: \$? = $ac_status" >&5
20748 (exit "$ac_status"); }; }; then
20752 echo "$as_me: program exited with status $ac_status" >&5
20753 echo "$as_me: failed program was:" >&5
20754 cat "conftest.$ac_ext" >&5
20757 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20759 echo "$as_me:20759: result: $cf_result" >&5
20760 echo "${ECHO_T}$cf_result" >&6
20761 if test "$cf_result" = yes ; then
20763 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20765 cat >>confdefs.h <<EOF
20766 #define $cf_result 1
20769 # do not exit loop here, since we prefer system's declarations
20774 if test -n "$with_screen" && test "x$with_screen" = "xpdcurses"
20776 echo "$as_me:20776: checking for X" >&5
20777 echo $ECHO_N "checking for X... $ECHO_C" >&6
20779 # Check whether --with-x or --without-x was given.
20780 if test "${with_x+set}" = set; then
20784 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20785 if test "x$with_x" = xno; then
20786 # The user explicitly disabled X.
20789 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20790 # Both variables are already set.
20793 if test "${ac_cv_have_x+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 # One or both of the vars are not set, and there is no cached value.
20797 ac_x_includes=no ac_x_libraries=no
20798 rm -fr conftest.dir
20799 if mkdir conftest.dir; then
20801 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20802 cat >Imakefile <<'EOF'
20804 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20806 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20808 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
20809 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20810 for ac_extension in a so sl dylib dll; do
20811 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20812 test -f "$ac_im_libdir/libX11.$ac_extension"; then
20813 ac_im_usrlibdir=$ac_im_libdir; break
20816 # Screen out bogus values from the imake configuration. They are
20817 # bogus both because they are the default anyway, and because
20818 # using them would break gcc on systems where it needs fixed includes.
20819 case $ac_im_incroot in
20821 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20823 case $ac_im_usrlibdir in
20824 /usr/lib | /lib) ;;
20825 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20829 rm -fr conftest.dir
20832 # Standard set of common directories for X headers.
20833 # Check X11 before X11Rn because it is often a symlink to the current release.
20850 /usr/local/X11/include
20851 /usr/local/X11R7/include
20852 /usr/local/X11R6/include
20853 /usr/local/X11R5/include
20854 /usr/local/X11R4/include
20856 /usr/local/include/X11
20857 /usr/local/include/X11R7
20858 /usr/local/include/X11R6
20859 /usr/local/include/X11R5
20860 /usr/local/include/X11R4
20864 /usr/XFree86/include/X11
20868 /usr/unsupported/include
20869 /usr/athena/include
20870 /usr/local/x11r5/include
20871 /usr/lpp/Xamples/include
20873 /usr/openwin/include
20874 /usr/openwin/share/include'
20876 if test "$ac_x_includes" = no; then
20877 # Guess where to find include files, by looking for Intrinsic.h.
20878 # First, try using that file with no special directory specified.
20879 cat >"conftest.$ac_ext" <<_ACEOF
20880 #line 20880 "configure"
20881 #include "confdefs.h"
20882 #include <X11/Intrinsic.h>
20884 if { (eval echo "$as_me:20884: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20885 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20887 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:20890: \$? = $ac_status" >&5
20891 (exit "$ac_status"); } >/dev/null; then
20892 if test -s conftest.err; then
20893 ac_cpp_err=$ac_c_preproc_warn_flag
20900 if test -z "$ac_cpp_err"; then
20901 # We can compile using X headers with no special include directory.
20904 echo "$as_me: failed program was:" >&5
20905 cat "conftest.$ac_ext" >&5
20906 for ac_dir in $ac_x_header_dirs; do
20907 if test -r "$ac_dir/X11/Intrinsic.h"; then
20908 ac_x_includes=$ac_dir
20913 rm -f conftest.err "conftest.$ac_ext"
20914 fi # $ac_x_includes = no
20916 if test "$ac_x_libraries" = no; then
20917 # Check for the libraries.
20918 # See if we find them without any special options.
20919 # Don't add to $LIBS permanently.
20922 cat >"conftest.$ac_ext" <<_ACEOF
20923 #line 20923 "configure"
20924 #include "confdefs.h"
20925 #include <X11/Intrinsic.h>
20934 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20935 if { (eval echo "$as_me:20935: \"$ac_link\"") >&5
20936 (eval $ac_link) 2>&5
20938 echo "$as_me:20938: \$? = $ac_status" >&5
20939 (exit "$ac_status"); } &&
20940 { ac_try='test -s "conftest$ac_exeext"'
20941 { (eval echo "$as_me:20941: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20944 echo "$as_me:20944: \$? = $ac_status" >&5
20945 (exit "$ac_status"); }; }; then
20947 # We can link X programs with no special library path.
20950 echo "$as_me: failed program was:" >&5
20951 cat "conftest.$ac_ext" >&5
20953 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20955 # Don't even attempt the hair of trying to link an X program!
20956 for ac_extension in a so sl dylib dll; do
20957 if test -r "$ac_dir/libXt.$ac_extension"; then
20958 ac_x_libraries=$ac_dir
20964 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20965 fi # $ac_x_libraries = no
20967 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20968 # Didn't find X anywhere. Cache the known absence of X.
20969 ac_cv_have_x="have_x=no"
20971 # Record where we found X for the cache.
20972 ac_cv_have_x="have_x=yes \
20973 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20978 eval "$ac_cv_have_x"
20981 if test "$have_x" != yes; then
20982 echo "$as_me:20982: result: $have_x" >&5
20983 echo "${ECHO_T}$have_x" >&6
20986 # If each of the values was on the command line, it overrides each guess.
20987 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20988 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20989 # Update the cache value to reflect the command line values.
20990 ac_cv_have_x="have_x=yes \
20991 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20992 echo "$as_me:20992: result: libraries $x_libraries, headers $x_includes" >&5
20993 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20996 if test "$no_x" = yes; then
20997 # Not all programs may use this symbol, but it does not hurt to define it.
20999 cat >>confdefs.h <<\EOF
21000 #define X_DISPLAY_MISSING 1
21008 if test -n "$x_includes"; then
21009 X_CFLAGS="$X_CFLAGS -I$x_includes"
21012 # It would also be nice to do this for all -L options, not just this one.
21013 if test -n "$x_libraries"; then
21014 X_LIBS="$X_LIBS -L$x_libraries"
21015 # For Solaris; some versions of Sun CC require a space after -R and
21016 # others require no space. Words are not sufficient . . . .
21017 case `(uname -sr) 2>/dev/null` in
21019 echo "$as_me:21019: checking whether -R must be followed by a space" >&5
21020 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21021 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21022 cat >"conftest.$ac_ext" <<_ACEOF
21023 #line 21023 "configure"
21024 #include "confdefs.h"
21034 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21035 if { (eval echo "$as_me:21035: \"$ac_link\"") >&5
21036 (eval $ac_link) 2>&5
21038 echo "$as_me:21038: \$? = $ac_status" >&5
21039 (exit "$ac_status"); } &&
21040 { ac_try='test -s "conftest$ac_exeext"'
21041 { (eval echo "$as_me:21041: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21044 echo "$as_me:21044: \$? = $ac_status" >&5
21045 (exit "$ac_status"); }; }; then
21048 echo "$as_me: failed program was:" >&5
21049 cat "conftest.$ac_ext" >&5
21052 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21053 if test $ac_R_nospace = yes; then
21054 echo "$as_me:21054: result: no" >&5
21055 echo "${ECHO_T}no" >&6
21056 X_LIBS="$X_LIBS -R$x_libraries"
21058 LIBS="$ac_xsave_LIBS -R $x_libraries"
21059 cat >"conftest.$ac_ext" <<_ACEOF
21060 #line 21060 "configure"
21061 #include "confdefs.h"
21071 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21072 if { (eval echo "$as_me:21072: \"$ac_link\"") >&5
21073 (eval $ac_link) 2>&5
21075 echo "$as_me:21075: \$? = $ac_status" >&5
21076 (exit "$ac_status"); } &&
21077 { ac_try='test -s "conftest$ac_exeext"'
21078 { (eval echo "$as_me:21078: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:21081: \$? = $ac_status" >&5
21082 (exit "$ac_status"); }; }; then
21085 echo "$as_me: failed program was:" >&5
21086 cat "conftest.$ac_ext" >&5
21089 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21090 if test $ac_R_space = yes; then
21091 echo "$as_me:21091: result: yes" >&5
21092 echo "${ECHO_T}yes" >&6
21093 X_LIBS="$X_LIBS -R $x_libraries"
21095 echo "$as_me:21095: result: neither works" >&5
21096 echo "${ECHO_T}neither works" >&6
21099 LIBS=$ac_xsave_LIBS
21103 # Check for system-dependent libraries X programs must link with.
21104 # Do this before checking for the system-independent R6 libraries
21105 # (-lICE), since we may need -lsocket or whatever for X linking.
21107 if test "$ISC" = yes; then
21108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21110 # Martyn Johnson says this is needed for Ultrix, if the X
21111 # libraries were built with DECnet support. And Karl Berry says
21112 # the Alpha needs dnet_stub (dnet does not exist).
21113 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21114 cat >"conftest.$ac_ext" <<_ACEOF
21115 #line 21115 "configure"
21116 #include "confdefs.h"
21118 /* Override any gcc2 internal prototype to avoid an error. */
21122 /* We use char because int might match the return type of a gcc2
21123 builtin and then its argument prototype would still apply. */
21124 char XOpenDisplay ();
21133 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21134 if { (eval echo "$as_me:21134: \"$ac_link\"") >&5
21135 (eval $ac_link) 2>&5
21137 echo "$as_me:21137: \$? = $ac_status" >&5
21138 (exit "$ac_status"); } &&
21139 { ac_try='test -s "conftest$ac_exeext"'
21140 { (eval echo "$as_me:21140: \"$ac_try\"") >&5
21141 (eval $ac_try) 2>&5
21143 echo "$as_me:21143: \$? = $ac_status" >&5
21144 (exit "$ac_status"); }; }; then
21147 echo "$as_me: failed program was:" >&5
21148 cat "conftest.$ac_ext" >&5
21149 echo "$as_me:21149: checking for dnet_ntoa in -ldnet" >&5
21150 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21151 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 ac_check_lib_save_LIBS=$LIBS
21155 LIBS="-ldnet $LIBS"
21156 cat >"conftest.$ac_ext" <<_ACEOF
21157 #line 21157 "configure"
21158 #include "confdefs.h"
21160 /* Override any gcc2 internal prototype to avoid an error. */
21164 /* We use char because int might match the return type of a gcc2
21165 builtin and then its argument prototype would still apply. */
21175 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21176 if { (eval echo "$as_me:21176: \"$ac_link\"") >&5
21177 (eval $ac_link) 2>&5
21179 echo "$as_me:21179: \$? = $ac_status" >&5
21180 (exit "$ac_status"); } &&
21181 { ac_try='test -s "conftest$ac_exeext"'
21182 { (eval echo "$as_me:21182: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21185 echo "$as_me:21185: \$? = $ac_status" >&5
21186 (exit "$ac_status"); }; }; then
21187 ac_cv_lib_dnet_dnet_ntoa=yes
21189 echo "$as_me: failed program was:" >&5
21190 cat "conftest.$ac_ext" >&5
21191 ac_cv_lib_dnet_dnet_ntoa=no
21193 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21194 LIBS=$ac_check_lib_save_LIBS
21196 echo "$as_me:21196: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21197 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21198 if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
21199 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21202 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21203 echo "$as_me:21203: checking for dnet_ntoa in -ldnet_stub" >&5
21204 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21205 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 ac_check_lib_save_LIBS=$LIBS
21209 LIBS="-ldnet_stub $LIBS"
21210 cat >"conftest.$ac_ext" <<_ACEOF
21211 #line 21211 "configure"
21212 #include "confdefs.h"
21214 /* Override any gcc2 internal prototype to avoid an error. */
21218 /* We use char because int might match the return type of a gcc2
21219 builtin and then its argument prototype would still apply. */
21229 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21230 if { (eval echo "$as_me:21230: \"$ac_link\"") >&5
21231 (eval $ac_link) 2>&5
21233 echo "$as_me:21233: \$? = $ac_status" >&5
21234 (exit "$ac_status"); } &&
21235 { ac_try='test -s "conftest$ac_exeext"'
21236 { (eval echo "$as_me:21236: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21239 echo "$as_me:21239: \$? = $ac_status" >&5
21240 (exit "$ac_status"); }; }; then
21241 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21243 echo "$as_me: failed program was:" >&5
21244 cat "conftest.$ac_ext" >&5
21245 ac_cv_lib_dnet_stub_dnet_ntoa=no
21247 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21248 LIBS=$ac_check_lib_save_LIBS
21250 echo "$as_me:21250: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21251 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21252 if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
21253 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21258 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21259 LIBS="$ac_xsave_LIBS"
21261 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21262 # to get the SysV transport functions.
21263 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21265 # The nsl library prevents programs from opening the X display
21266 # on Irix 5.2, according to T.E. Dickey.
21267 # The functions gethostbyname, getservbyname, and inet_addr are
21268 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21269 echo "$as_me:21269: checking for gethostbyname" >&5
21270 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21271 if test "${ac_cv_func_gethostbyname+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 cat >"conftest.$ac_ext" <<_ACEOF
21275 #line 21275 "configure"
21276 #include "confdefs.h"
21277 #define gethostbyname autoconf_temporary
21278 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21279 #undef gethostbyname
21285 /* We use char because int might match the return type of a gcc2
21286 builtin and then its argument prototype would still apply. */
21287 char gethostbyname (void);
21293 /* The GNU C library defines stubs for functions which it implements
21294 to always fail with ENOSYS. Some functions are actually named
21295 something starting with __ and the normal name is an alias. */
21296 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21297 #error found stub for gethostbyname
21300 return gethostbyname ();
21305 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21306 if { (eval echo "$as_me:21306: \"$ac_link\"") >&5
21307 (eval $ac_link) 2>&5
21309 echo "$as_me:21309: \$? = $ac_status" >&5
21310 (exit "$ac_status"); } &&
21311 { ac_try='test -s "conftest$ac_exeext"'
21312 { (eval echo "$as_me:21312: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21315 echo "$as_me:21315: \$? = $ac_status" >&5
21316 (exit "$ac_status"); }; }; then
21317 ac_cv_func_gethostbyname=yes
21319 echo "$as_me: failed program was:" >&5
21320 cat "conftest.$ac_ext" >&5
21321 ac_cv_func_gethostbyname=no
21323 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21325 echo "$as_me:21325: result: $ac_cv_func_gethostbyname" >&5
21326 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21328 if test $ac_cv_func_gethostbyname = no; then
21329 echo "$as_me:21329: checking for gethostbyname in -lnsl" >&5
21330 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21331 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 ac_check_lib_save_LIBS=$LIBS
21336 cat >"conftest.$ac_ext" <<_ACEOF
21337 #line 21337 "configure"
21338 #include "confdefs.h"
21340 /* Override any gcc2 internal prototype to avoid an error. */
21344 /* We use char because int might match the return type of a gcc2
21345 builtin and then its argument prototype would still apply. */
21346 char gethostbyname ();
21355 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21356 if { (eval echo "$as_me:21356: \"$ac_link\"") >&5
21357 (eval $ac_link) 2>&5
21359 echo "$as_me:21359: \$? = $ac_status" >&5
21360 (exit "$ac_status"); } &&
21361 { ac_try='test -s "conftest$ac_exeext"'
21362 { (eval echo "$as_me:21362: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21365 echo "$as_me:21365: \$? = $ac_status" >&5
21366 (exit "$ac_status"); }; }; then
21367 ac_cv_lib_nsl_gethostbyname=yes
21369 echo "$as_me: failed program was:" >&5
21370 cat "conftest.$ac_ext" >&5
21371 ac_cv_lib_nsl_gethostbyname=no
21373 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21374 LIBS=$ac_check_lib_save_LIBS
21376 echo "$as_me:21376: result: $ac_cv_lib_nsl_gethostbyname" >&5
21377 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21378 if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
21379 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21382 if test $ac_cv_lib_nsl_gethostbyname = no; then
21383 echo "$as_me:21383: checking for gethostbyname in -lbsd" >&5
21384 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21385 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 ac_check_lib_save_LIBS=$LIBS
21390 cat >"conftest.$ac_ext" <<_ACEOF
21391 #line 21391 "configure"
21392 #include "confdefs.h"
21394 /* Override any gcc2 internal prototype to avoid an error. */
21398 /* We use char because int might match the return type of a gcc2
21399 builtin and then its argument prototype would still apply. */
21400 char gethostbyname ();
21409 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21410 if { (eval echo "$as_me:21410: \"$ac_link\"") >&5
21411 (eval $ac_link) 2>&5
21413 echo "$as_me:21413: \$? = $ac_status" >&5
21414 (exit "$ac_status"); } &&
21415 { ac_try='test -s "conftest$ac_exeext"'
21416 { (eval echo "$as_me:21416: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21419 echo "$as_me:21419: \$? = $ac_status" >&5
21420 (exit "$ac_status"); }; }; then
21421 ac_cv_lib_bsd_gethostbyname=yes
21423 echo "$as_me: failed program was:" >&5
21424 cat "conftest.$ac_ext" >&5
21425 ac_cv_lib_bsd_gethostbyname=no
21427 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21428 LIBS=$ac_check_lib_save_LIBS
21430 echo "$as_me:21430: result: $ac_cv_lib_bsd_gethostbyname" >&5
21431 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21432 if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
21433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21439 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21440 # socket/setsockopt and other routines are undefined under SCO ODT
21441 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
21442 # on later versions), says Simon Leinen: it contains gethostby*
21443 # variants that don't use the nameserver (or something). -lsocket
21444 # must be given before -lnsl if both are needed. We assume that
21445 # if connect needs -lnsl, so does gethostbyname.
21446 echo "$as_me:21446: checking for connect" >&5
21447 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21448 if test "${ac_cv_func_connect+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 cat >"conftest.$ac_ext" <<_ACEOF
21452 #line 21452 "configure"
21453 #include "confdefs.h"
21454 #define connect autoconf_temporary
21455 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21462 /* We use char because int might match the return type of a gcc2
21463 builtin and then its argument prototype would still apply. */
21464 char connect (void);
21470 /* The GNU C library defines stubs for functions which it implements
21471 to always fail with ENOSYS. Some functions are actually named
21472 something starting with __ and the normal name is an alias. */
21473 #if defined (__stub_connect) || defined (__stub___connect)
21474 #error found stub for connect
21482 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21483 if { (eval echo "$as_me:21483: \"$ac_link\"") >&5
21484 (eval $ac_link) 2>&5
21486 echo "$as_me:21486: \$? = $ac_status" >&5
21487 (exit "$ac_status"); } &&
21488 { ac_try='test -s "conftest$ac_exeext"'
21489 { (eval echo "$as_me:21489: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21492 echo "$as_me:21492: \$? = $ac_status" >&5
21493 (exit "$ac_status"); }; }; then
21494 ac_cv_func_connect=yes
21496 echo "$as_me: failed program was:" >&5
21497 cat "conftest.$ac_ext" >&5
21498 ac_cv_func_connect=no
21500 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21502 echo "$as_me:21502: result: $ac_cv_func_connect" >&5
21503 echo "${ECHO_T}$ac_cv_func_connect" >&6
21505 if test $ac_cv_func_connect = no; then
21506 echo "$as_me:21506: checking for connect in -lsocket" >&5
21507 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21508 if test "${ac_cv_lib_socket_connect+set}" = set; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21511 ac_check_lib_save_LIBS=$LIBS
21512 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21513 cat >"conftest.$ac_ext" <<_ACEOF
21514 #line 21514 "configure"
21515 #include "confdefs.h"
21517 /* Override any gcc2 internal prototype to avoid an error. */
21521 /* We use char because int might match the return type of a gcc2
21522 builtin and then its argument prototype would still apply. */
21532 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21533 if { (eval echo "$as_me:21533: \"$ac_link\"") >&5
21534 (eval $ac_link) 2>&5
21536 echo "$as_me:21536: \$? = $ac_status" >&5
21537 (exit "$ac_status"); } &&
21538 { ac_try='test -s "conftest$ac_exeext"'
21539 { (eval echo "$as_me:21539: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:21542: \$? = $ac_status" >&5
21543 (exit "$ac_status"); }; }; then
21544 ac_cv_lib_socket_connect=yes
21546 echo "$as_me: failed program was:" >&5
21547 cat "conftest.$ac_ext" >&5
21548 ac_cv_lib_socket_connect=no
21550 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21551 LIBS=$ac_check_lib_save_LIBS
21553 echo "$as_me:21553: result: $ac_cv_lib_socket_connect" >&5
21554 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21555 if test "$ac_cv_lib_socket_connect" = yes; then
21556 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21561 # Guillermo Gomez says -lposix is necessary on A/UX.
21562 echo "$as_me:21562: checking for remove" >&5
21563 echo $ECHO_N "checking for remove... $ECHO_C" >&6
21564 if test "${ac_cv_func_remove+set}" = set; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 cat >"conftest.$ac_ext" <<_ACEOF
21568 #line 21568 "configure"
21569 #include "confdefs.h"
21570 #define remove autoconf_temporary
21571 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21578 /* We use char because int might match the return type of a gcc2
21579 builtin and then its argument prototype would still apply. */
21580 char remove (void);
21586 /* The GNU C library defines stubs for functions which it implements
21587 to always fail with ENOSYS. Some functions are actually named
21588 something starting with __ and the normal name is an alias. */
21589 #if defined (__stub_remove) || defined (__stub___remove)
21590 #error found stub for remove
21598 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21599 if { (eval echo "$as_me:21599: \"$ac_link\"") >&5
21600 (eval $ac_link) 2>&5
21602 echo "$as_me:21602: \$? = $ac_status" >&5
21603 (exit "$ac_status"); } &&
21604 { ac_try='test -s "conftest$ac_exeext"'
21605 { (eval echo "$as_me:21605: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21608 echo "$as_me:21608: \$? = $ac_status" >&5
21609 (exit "$ac_status"); }; }; then
21610 ac_cv_func_remove=yes
21612 echo "$as_me: failed program was:" >&5
21613 cat "conftest.$ac_ext" >&5
21614 ac_cv_func_remove=no
21616 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21618 echo "$as_me:21618: result: $ac_cv_func_remove" >&5
21619 echo "${ECHO_T}$ac_cv_func_remove" >&6
21621 if test $ac_cv_func_remove = no; then
21622 echo "$as_me:21622: checking for remove in -lposix" >&5
21623 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21624 if test "${ac_cv_lib_posix_remove+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 ac_check_lib_save_LIBS=$LIBS
21628 LIBS="-lposix $LIBS"
21629 cat >"conftest.$ac_ext" <<_ACEOF
21630 #line 21630 "configure"
21631 #include "confdefs.h"
21633 /* Override any gcc2 internal prototype to avoid an error. */
21637 /* We use char because int might match the return type of a gcc2
21638 builtin and then its argument prototype would still apply. */
21648 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21649 if { (eval echo "$as_me:21649: \"$ac_link\"") >&5
21650 (eval $ac_link) 2>&5
21652 echo "$as_me:21652: \$? = $ac_status" >&5
21653 (exit "$ac_status"); } &&
21654 { ac_try='test -s "conftest$ac_exeext"'
21655 { (eval echo "$as_me:21655: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21658 echo "$as_me:21658: \$? = $ac_status" >&5
21659 (exit "$ac_status"); }; }; then
21660 ac_cv_lib_posix_remove=yes
21662 echo "$as_me: failed program was:" >&5
21663 cat "conftest.$ac_ext" >&5
21664 ac_cv_lib_posix_remove=no
21666 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21667 LIBS=$ac_check_lib_save_LIBS
21669 echo "$as_me:21669: result: $ac_cv_lib_posix_remove" >&5
21670 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21671 if test "$ac_cv_lib_posix_remove" = yes; then
21672 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21677 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21678 echo "$as_me:21678: checking for shmat" >&5
21679 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21680 if test "${ac_cv_func_shmat+set}" = set; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 cat >"conftest.$ac_ext" <<_ACEOF
21684 #line 21684 "configure"
21685 #include "confdefs.h"
21686 #define shmat autoconf_temporary
21687 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21694 /* We use char because int might match the return type of a gcc2
21695 builtin and then its argument prototype would still apply. */
21702 /* The GNU C library defines stubs for functions which it implements
21703 to always fail with ENOSYS. Some functions are actually named
21704 something starting with __ and the normal name is an alias. */
21705 #if defined (__stub_shmat) || defined (__stub___shmat)
21706 #error found stub for shmat
21714 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21715 if { (eval echo "$as_me:21715: \"$ac_link\"") >&5
21716 (eval $ac_link) 2>&5
21718 echo "$as_me:21718: \$? = $ac_status" >&5
21719 (exit "$ac_status"); } &&
21720 { ac_try='test -s "conftest$ac_exeext"'
21721 { (eval echo "$as_me:21721: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21724 echo "$as_me:21724: \$? = $ac_status" >&5
21725 (exit "$ac_status"); }; }; then
21726 ac_cv_func_shmat=yes
21728 echo "$as_me: failed program was:" >&5
21729 cat "conftest.$ac_ext" >&5
21730 ac_cv_func_shmat=no
21732 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21734 echo "$as_me:21734: result: $ac_cv_func_shmat" >&5
21735 echo "${ECHO_T}$ac_cv_func_shmat" >&6
21737 if test $ac_cv_func_shmat = no; then
21738 echo "$as_me:21738: checking for shmat in -lipc" >&5
21739 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21740 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 ac_check_lib_save_LIBS=$LIBS
21745 cat >"conftest.$ac_ext" <<_ACEOF
21746 #line 21746 "configure"
21747 #include "confdefs.h"
21749 /* Override any gcc2 internal prototype to avoid an error. */
21753 /* We use char because int might match the return type of a gcc2
21754 builtin and then its argument prototype would still apply. */
21764 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21765 if { (eval echo "$as_me:21765: \"$ac_link\"") >&5
21766 (eval $ac_link) 2>&5
21768 echo "$as_me:21768: \$? = $ac_status" >&5
21769 (exit "$ac_status"); } &&
21770 { ac_try='test -s "conftest$ac_exeext"'
21771 { (eval echo "$as_me:21771: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21774 echo "$as_me:21774: \$? = $ac_status" >&5
21775 (exit "$ac_status"); }; }; then
21776 ac_cv_lib_ipc_shmat=yes
21778 echo "$as_me: failed program was:" >&5
21779 cat "conftest.$ac_ext" >&5
21780 ac_cv_lib_ipc_shmat=no
21782 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21783 LIBS=$ac_check_lib_save_LIBS
21785 echo "$as_me:21785: result: $ac_cv_lib_ipc_shmat" >&5
21786 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21787 if test "$ac_cv_lib_ipc_shmat" = yes; then
21788 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21794 # Check for libraries that X11R6 Xt/Xaw programs need.
21795 ac_save_LDFLAGS=$LDFLAGS
21796 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21797 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21798 # check for ICE first), but we must link in the order -lSM -lICE or
21799 # we get undefined symbols. So assume we have SM if we have ICE.
21800 # These have to be linked with before -lX11, unlike the other
21801 # libraries we check for below, so use a different variable.
21802 # John Interrante, Karl Berry
21803 echo "$as_me:21803: checking for IceConnectionNumber in -lICE" >&5
21804 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21805 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 ac_check_lib_save_LIBS=$LIBS
21809 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21810 cat >"conftest.$ac_ext" <<_ACEOF
21811 #line 21811 "configure"
21812 #include "confdefs.h"
21814 /* Override any gcc2 internal prototype to avoid an error. */
21818 /* We use char because int might match the return type of a gcc2
21819 builtin and then its argument prototype would still apply. */
21820 char IceConnectionNumber ();
21824 IceConnectionNumber ();
21829 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21830 if { (eval echo "$as_me:21830: \"$ac_link\"") >&5
21831 (eval $ac_link) 2>&5
21833 echo "$as_me:21833: \$? = $ac_status" >&5
21834 (exit "$ac_status"); } &&
21835 { ac_try='test -s "conftest$ac_exeext"'
21836 { (eval echo "$as_me:21836: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21839 echo "$as_me:21839: \$? = $ac_status" >&5
21840 (exit "$ac_status"); }; }; then
21841 ac_cv_lib_ICE_IceConnectionNumber=yes
21843 echo "$as_me: failed program was:" >&5
21844 cat "conftest.$ac_ext" >&5
21845 ac_cv_lib_ICE_IceConnectionNumber=no
21847 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21848 LIBS=$ac_check_lib_save_LIBS
21850 echo "$as_me:21850: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21851 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21852 if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
21853 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21856 LDFLAGS=$ac_save_LDFLAGS
21862 if test "$GCC" = yes || test "$GXX" = yes
21865 if test "$GCC" = yes || test "$GXX" = yes
21870 for cf_temp_scan in $CFLAGS
21872 case "x$cf_temp_scan" in
21875 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21876 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21881 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
21882 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
21887 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21888 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21893 if test "x$CFLAGS" != "x$cf_temp_flags"
21895 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
21897 echo "${as_me:-configure}:21897: testing repairing CFLAGS: $CFLAGS ..." 1>&5
21899 CFLAGS="$cf_temp_flags"
21900 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
21902 echo "${as_me:-configure}:21902: testing ... fixed $CFLAGS ..." 1>&5
21904 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
21906 echo "${as_me:-configure}:21906: testing ... extra $EXTRA_CFLAGS ..." 1>&5
21913 if test "$GCC" = yes || test "$GXX" = yes
21918 for cf_temp_scan in $CPPFLAGS
21920 case "x$cf_temp_scan" in
21923 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21924 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21929 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
21930 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
21935 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21936 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21941 if test "x$CPPFLAGS" != "x$cf_temp_flags"
21943 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
21945 echo "${as_me:-configure}:21945: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
21947 CPPFLAGS="$cf_temp_flags"
21948 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
21950 echo "${as_me:-configure}:21950: testing ... fixed $CPPFLAGS ..." 1>&5
21952 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
21954 echo "${as_me:-configure}:21954: testing ... extra $EXTRA_CFLAGS ..." 1>&5
21961 if test "$GCC" = yes || test "$GXX" = yes
21966 for cf_temp_scan in $LDFLAGS
21968 case "x$cf_temp_scan" in
21971 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21972 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21977 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
21978 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
21983 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21984 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21989 if test "x$LDFLAGS" != "x$cf_temp_flags"
21991 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
21993 echo "${as_me:-configure}:21993: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
21995 LDFLAGS="$cf_temp_flags"
21996 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
21998 echo "${as_me:-configure}:21998: testing ... fixed $LDFLAGS ..." 1>&5
22000 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
22002 echo "${as_me:-configure}:22002: testing ... extra $EXTRA_CFLAGS ..." 1>&5
22009 echo "$as_me:22009: checking if you want to turn on gcc warnings" >&5
22010 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
22012 # Check whether --enable-warnings or --disable-warnings was given.
22013 if test "${enable_warnings+set}" = set; then
22014 enableval="$enable_warnings"
22015 test "$enableval" != yes && enableval=no
22016 if test "$enableval" != "no" ; then
22017 enable_warnings=yes
22026 echo "$as_me:22026: result: $enable_warnings" >&5
22027 echo "${ECHO_T}$enable_warnings" >&6
22028 if test "$enable_warnings" = "yes"
22031 if test "$GCC" = yes || test "$GXX" = yes
22033 cat > conftest.i <<EOF
22035 #define GCC_PRINTF 0
22038 #define GCC_SCANF 0
22040 #ifndef GCC_NORETURN
22041 #define GCC_NORETURN /* nothing */
22044 #define GCC_UNUSED /* nothing */
22047 if test "$GCC" = yes
22049 { echo "$as_me:22049: checking for $CC __attribute__ directives..." >&5
22050 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
22051 cat > "conftest.$ac_ext" <<EOF
22052 #line 22052 "${as_me:-configure}"
22053 #include "confdefs.h"
22054 #include "conftest.h"
22055 #include "conftest.i"
22057 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
22059 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
22062 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
22064 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
22066 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
22067 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
22068 extern GCC_NORETURN void foo(void);
22069 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
22071 cf_printf_attribute=no
22072 cf_scanf_attribute=no
22073 for cf_attribute in scanf printf unused noreturn
22076 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22078 cf_directive="__attribute__(($cf_attribute))"
22079 echo "checking for $CC $cf_directive" 1>&5
22081 case "$cf_attribute" in
22083 cf_printf_attribute=yes
22084 cat >conftest.h <<EOF
22085 #define GCC_$cf_ATTRIBUTE 1
22089 cf_scanf_attribute=yes
22090 cat >conftest.h <<EOF
22091 #define GCC_$cf_ATTRIBUTE 1
22095 cat >conftest.h <<EOF
22096 #define GCC_$cf_ATTRIBUTE $cf_directive
22101 if { (eval echo "$as_me:22101: \"$ac_compile\"") >&5
22102 (eval $ac_compile) 2>&5
22104 echo "$as_me:22104: \$? = $ac_status" >&5
22105 (exit "$ac_status"); }; then
22106 test -n "$verbose" && echo "$as_me:22106: result: ... $cf_attribute" >&5
22107 echo "${ECHO_T}... $cf_attribute" >&6
22108 cat conftest.h >>confdefs.h
22109 case "$cf_attribute" in
22112 cat >>confdefs.h <<EOF
22113 #define GCC_NORETURN $cf_directive
22118 cf_value='/* nothing */'
22119 if test "$cf_printf_attribute" != no ; then
22120 cf_value='__attribute__((format(printf,fmt,var)))'
22122 cat >>confdefs.h <<\EOF
22123 #define GCC_PRINTF 1
22128 cat >>confdefs.h <<EOF
22129 #define GCC_PRINTFLIKE(fmt,var) $cf_value
22134 cf_value='/* nothing */'
22135 if test "$cf_scanf_attribute" != no ; then
22136 cf_value='__attribute__((format(scanf,fmt,var)))'
22138 cat >>confdefs.h <<\EOF
22139 #define GCC_SCANF 1
22144 cat >>confdefs.h <<EOF
22145 #define GCC_SCANFLIKE(fmt,var) $cf_value
22151 cat >>confdefs.h <<EOF
22152 #define GCC_UNUSED $cf_directive
22160 ${FGREP-fgrep} define conftest.i >>confdefs.h
22165 if test "x$have_x" = xyes; then
22167 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
22168 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
22169 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
22170 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
22171 for cf_X_CFLAGS in $X_CFLAGS
22173 case "x$cf_X_CFLAGS" in
22175 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
22178 CFLAGS="$CFLAGS $cf_X_CFLAGS"
22183 cat >"conftest.$ac_ext" <<_ACEOF
22184 #line 22184 "configure"
22185 #include "confdefs.h"
22187 #include <stdlib.h>
22188 #include <X11/Intrinsic.h>
22193 String foo = malloc(1); free((void*)foo)
22198 rm -f "conftest.$ac_objext"
22199 if { (eval echo "$as_me:22199: \"$ac_compile\"") >&5
22200 (eval $ac_compile) 2>&5
22202 echo "$as_me:22202: \$? = $ac_status" >&5
22203 (exit "$ac_status"); } &&
22204 { ac_try='test -s "conftest.$ac_objext"'
22205 { (eval echo "$as_me:22205: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22208 echo "$as_me:22208: \$? = $ac_status" >&5
22209 (exit "$ac_status"); }; }; then
22211 echo "$as_me:22211: checking for X11/Xt const-feature" >&5
22212 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
22213 if test "${cf_cv_const_x_string+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 cat >"conftest.$ac_ext" <<_ACEOF
22218 #line 22218 "configure"
22219 #include "confdefs.h"
22221 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
22222 #undef XTSTRINGDEFINES /* X11R5 and later */
22223 #include <stdlib.h>
22224 #include <X11/Intrinsic.h>
22229 String foo = malloc(1); *foo = 0
22234 rm -f "conftest.$ac_objext"
22235 if { (eval echo "$as_me:22235: \"$ac_compile\"") >&5
22236 (eval $ac_compile) 2>&5
22238 echo "$as_me:22238: \$? = $ac_status" >&5
22239 (exit "$ac_status"); } &&
22240 { ac_try='test -s "conftest.$ac_objext"'
22241 { (eval echo "$as_me:22241: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22244 echo "$as_me:22244: \$? = $ac_status" >&5
22245 (exit "$ac_status"); }; }; then
22247 cf_cv_const_x_string=no
22250 echo "$as_me: failed program was:" >&5
22251 cat "conftest.$ac_ext" >&5
22253 cf_cv_const_x_string=yes
22256 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22259 echo "$as_me:22259: result: $cf_cv_const_x_string" >&5
22260 echo "${ECHO_T}$cf_cv_const_x_string" >&6
22262 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
22263 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
22264 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
22266 case "$cf_cv_const_x_string" in
22269 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22270 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
22275 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22276 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
22282 echo "$as_me: failed program was:" >&5
22283 cat "conftest.$ac_ext" >&5
22285 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22287 cat > "conftest.$ac_ext" <<EOF
22288 #line 22288 "${as_me:-configure}"
22289 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
22291 if test "$INTEL_COMPILER" = yes
22293 # The "-wdXXX" options suppress warnings:
22294 # remark #1419: external declaration in primary source file
22295 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
22296 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
22297 # remark #193: zero used for undefined preprocessing identifier
22298 # remark #593: variable "curs_sb_left_arrow" was set but never used
22299 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
22300 # remark #869: parameter "tw" was never referenced
22301 # remark #981: operands are evaluated in unspecified order
22302 # warning #279: controlling expression is constant
22304 { echo "$as_me:22304: checking for $CC warning options..." >&5
22305 echo "$as_me: checking for $CC warning options..." >&6;}
22306 cf_save_CFLAGS="$CFLAGS"
22307 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
22319 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
22320 if { (eval echo "$as_me:22320: \"$ac_compile\"") >&5
22321 (eval $ac_compile) 2>&5
22323 echo "$as_me:22323: \$? = $ac_status" >&5
22324 (exit "$ac_status"); }; then
22325 test -n "$verbose" && echo "$as_me:22325: result: ... -$cf_opt" >&5
22326 echo "${ECHO_T}... -$cf_opt" >&6
22327 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
22330 CFLAGS="$cf_save_CFLAGS"
22331 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
22333 { echo "$as_me:22333: checking for $CC warning options..." >&5
22334 echo "$as_me: checking for $CC warning options..." >&6;}
22335 cf_save_CFLAGS="$CFLAGS"
22337 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
22338 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
22339 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
22340 for cf_opt in W Wall \
22341 Wbad-function-cast \
22344 Wdeclaration-after-statement \
22347 Wmissing-declarations \
22348 Wmissing-prototypes \
22352 Wstrict-prototypes \
22353 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas
22355 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
22356 if { (eval echo "$as_me:22356: \"$ac_compile\"") >&5
22357 (eval $ac_compile) 2>&5
22359 echo "$as_me:22359: \$? = $ac_status" >&5
22360 (exit "$ac_status"); }; then
22361 test -n "$verbose" && echo "$as_me:22361: result: ... -$cf_opt" >&5
22362 echo "${ECHO_T}... -$cf_opt" >&6
22365 case "$GCC_VERSION" in
22367 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
22369 echo "${as_me:-configure}:22369: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
22375 case "$GCC_VERSION" in
22377 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
22379 echo "${as_me:-configure}:22379: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
22385 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
22388 CFLAGS="$cf_save_CFLAGS"
22396 echo "$as_me:22396: checking if you want to use dmalloc for testing" >&5
22397 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
22399 # Check whether --with-dmalloc or --without-dmalloc was given.
22400 if test "${with_dmalloc+set}" = set; then
22401 withval="$with_dmalloc"
22402 case "x$withval" in
22405 : "${with_cflags:=-g}"
22406 : "${enable_leaks:=no}"
22409 cat >>confdefs.h <<EOF
22410 #define USE_DMALLOC 1
22418 echo "$as_me:22418: result: ${with_dmalloc:-no}" >&5
22419 echo "${ECHO_T}${with_dmalloc:-no}" >&6
22421 case ".$with_cflags" in
22431 cf_new_extra_cppflags=
22433 for cf_add_cflags in -g
22435 case "$cf_fix_cppflags" in
22437 case "$cf_add_cflags" in
22438 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22439 case "$cf_add_cflags" in
22441 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22443 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22444 && test -z "${cf_tst_cflags}" \
22445 && cf_fix_cppflags=yes
22447 if test "$cf_fix_cppflags" = yes ; then
22449 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22450 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22453 elif test "${cf_tst_cflags}" = "\"'" ; then
22455 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22456 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22462 case "$CPPFLAGS" in
22466 case "$cf_add_cflags" in
22468 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22470 CPPFLAGS=`echo "$CPPFLAGS" | \
22471 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22472 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22477 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22478 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
22485 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
22486 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
22493 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22494 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22496 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
22498 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22499 && test -z "${cf_tst_cflags}" \
22500 && cf_fix_cppflags=no
22505 if test -n "$cf_new_cflags" ; then
22507 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
22508 CFLAGS="${CFLAGS}$cf_new_cflags"
22512 if test -n "$cf_new_cppflags" ; then
22514 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22515 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
22519 if test -n "$cf_new_extra_cppflags" ; then
22521 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
22522 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
22531 if test "$with_dmalloc" = yes ; then
22532 echo "$as_me:22532: checking for dmalloc.h" >&5
22533 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
22534 if test "${ac_cv_header_dmalloc_h+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 cat >"conftest.$ac_ext" <<_ACEOF
22538 #line 22538 "configure"
22539 #include "confdefs.h"
22540 #include <dmalloc.h>
22542 if { (eval echo "$as_me:22542: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22543 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22545 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22547 cat conftest.err >&5
22548 echo "$as_me:22548: \$? = $ac_status" >&5
22549 (exit "$ac_status"); } >/dev/null; then
22550 if test -s conftest.err; then
22551 ac_cpp_err=$ac_c_preproc_warn_flag
22558 if test -z "$ac_cpp_err"; then
22559 ac_cv_header_dmalloc_h=yes
22561 echo "$as_me: failed program was:" >&5
22562 cat "conftest.$ac_ext" >&5
22563 ac_cv_header_dmalloc_h=no
22565 rm -f conftest.err "conftest.$ac_ext"
22567 echo "$as_me:22567: result: $ac_cv_header_dmalloc_h" >&5
22568 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
22569 if test "$ac_cv_header_dmalloc_h" = yes; then
22571 echo "$as_me:22571: checking for dmalloc_debug in -ldmalloc" >&5
22572 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
22573 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 ac_check_lib_save_LIBS=$LIBS
22577 LIBS="-ldmalloc $LIBS"
22578 cat >"conftest.$ac_ext" <<_ACEOF
22579 #line 22579 "configure"
22580 #include "confdefs.h"
22582 /* Override any gcc2 internal prototype to avoid an error. */
22586 /* We use char because int might match the return type of a gcc2
22587 builtin and then its argument prototype would still apply. */
22588 char dmalloc_debug ();
22597 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22598 if { (eval echo "$as_me:22598: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22601 echo "$as_me:22601: \$? = $ac_status" >&5
22602 (exit "$ac_status"); } &&
22603 { ac_try='test -s "conftest$ac_exeext"'
22604 { (eval echo "$as_me:22604: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22607 echo "$as_me:22607: \$? = $ac_status" >&5
22608 (exit "$ac_status"); }; }; then
22609 ac_cv_lib_dmalloc_dmalloc_debug=yes
22611 echo "$as_me: failed program was:" >&5
22612 cat "conftest.$ac_ext" >&5
22613 ac_cv_lib_dmalloc_dmalloc_debug=no
22615 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22616 LIBS=$ac_check_lib_save_LIBS
22618 echo "$as_me:22618: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
22619 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
22620 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
22621 cat >>confdefs.h <<EOF
22622 #define HAVE_LIBDMALLOC 1
22625 LIBS="-ldmalloc $LIBS"
22633 echo "$as_me:22633: checking if you want to use dbmalloc for testing" >&5
22634 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
22636 # Check whether --with-dbmalloc or --without-dbmalloc was given.
22637 if test "${with_dbmalloc+set}" = set; then
22638 withval="$with_dbmalloc"
22639 case "x$withval" in
22642 : "${with_cflags:=-g}"
22643 : "${enable_leaks:=no}"
22646 cat >>confdefs.h <<EOF
22647 #define USE_DBMALLOC 1
22655 echo "$as_me:22655: result: ${with_dbmalloc:-no}" >&5
22656 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
22658 case ".$with_cflags" in
22668 cf_new_extra_cppflags=
22670 for cf_add_cflags in -g
22672 case "$cf_fix_cppflags" in
22674 case "$cf_add_cflags" in
22675 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22676 case "$cf_add_cflags" in
22678 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22680 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22681 && test -z "${cf_tst_cflags}" \
22682 && cf_fix_cppflags=yes
22684 if test "$cf_fix_cppflags" = yes ; then
22686 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22687 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22690 elif test "${cf_tst_cflags}" = "\"'" ; then
22692 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22693 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22699 case "$CPPFLAGS" in
22703 case "$cf_add_cflags" in
22705 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22707 CPPFLAGS=`echo "$CPPFLAGS" | \
22708 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22709 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22714 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22715 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
22722 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
22723 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
22730 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22731 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22733 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
22735 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22736 && test -z "${cf_tst_cflags}" \
22737 && cf_fix_cppflags=no
22742 if test -n "$cf_new_cflags" ; then
22744 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
22745 CFLAGS="${CFLAGS}$cf_new_cflags"
22749 if test -n "$cf_new_cppflags" ; then
22751 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22752 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
22756 if test -n "$cf_new_extra_cppflags" ; then
22758 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
22759 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
22768 if test "$with_dbmalloc" = yes ; then
22769 echo "$as_me:22769: checking for dbmalloc.h" >&5
22770 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
22771 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 cat >"conftest.$ac_ext" <<_ACEOF
22775 #line 22775 "configure"
22776 #include "confdefs.h"
22777 #include <dbmalloc.h>
22779 if { (eval echo "$as_me:22779: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22780 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22782 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 echo "$as_me:22785: \$? = $ac_status" >&5
22786 (exit "$ac_status"); } >/dev/null; then
22787 if test -s conftest.err; then
22788 ac_cpp_err=$ac_c_preproc_warn_flag
22795 if test -z "$ac_cpp_err"; then
22796 ac_cv_header_dbmalloc_h=yes
22798 echo "$as_me: failed program was:" >&5
22799 cat "conftest.$ac_ext" >&5
22800 ac_cv_header_dbmalloc_h=no
22802 rm -f conftest.err "conftest.$ac_ext"
22804 echo "$as_me:22804: result: $ac_cv_header_dbmalloc_h" >&5
22805 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
22806 if test "$ac_cv_header_dbmalloc_h" = yes; then
22808 echo "$as_me:22808: checking for debug_malloc in -ldbmalloc" >&5
22809 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
22810 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
22811 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 ac_check_lib_save_LIBS=$LIBS
22814 LIBS="-ldbmalloc $LIBS"
22815 cat >"conftest.$ac_ext" <<_ACEOF
22816 #line 22816 "configure"
22817 #include "confdefs.h"
22819 /* Override any gcc2 internal prototype to avoid an error. */
22823 /* We use char because int might match the return type of a gcc2
22824 builtin and then its argument prototype would still apply. */
22825 char debug_malloc ();
22834 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22835 if { (eval echo "$as_me:22835: \"$ac_link\"") >&5
22836 (eval $ac_link) 2>&5
22838 echo "$as_me:22838: \$? = $ac_status" >&5
22839 (exit "$ac_status"); } &&
22840 { ac_try='test -s "conftest$ac_exeext"'
22841 { (eval echo "$as_me:22841: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22844 echo "$as_me:22844: \$? = $ac_status" >&5
22845 (exit "$ac_status"); }; }; then
22846 ac_cv_lib_dbmalloc_debug_malloc=yes
22848 echo "$as_me: failed program was:" >&5
22849 cat "conftest.$ac_ext" >&5
22850 ac_cv_lib_dbmalloc_debug_malloc=no
22852 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22853 LIBS=$ac_check_lib_save_LIBS
22855 echo "$as_me:22855: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
22856 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
22857 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
22858 cat >>confdefs.h <<EOF
22859 #define HAVE_LIBDBMALLOC 1
22862 LIBS="-ldbmalloc $LIBS"
22870 echo "$as_me:22870: checking if you want to use valgrind for testing" >&5
22871 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
22873 # Check whether --with-valgrind or --without-valgrind was given.
22874 if test "${with_valgrind+set}" = set; then
22875 withval="$with_valgrind"
22876 case "x$withval" in
22879 : "${with_cflags:=-g}"
22880 : "${enable_leaks:=no}"
22883 cat >>confdefs.h <<EOF
22884 #define USE_VALGRIND 1
22892 echo "$as_me:22892: result: ${with_valgrind:-no}" >&5
22893 echo "${ECHO_T}${with_valgrind:-no}" >&6
22895 case ".$with_cflags" in
22905 cf_new_extra_cppflags=
22907 for cf_add_cflags in -g
22909 case "$cf_fix_cppflags" in
22911 case "$cf_add_cflags" in
22912 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22913 case "$cf_add_cflags" in
22915 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22917 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22918 && test -z "${cf_tst_cflags}" \
22919 && cf_fix_cppflags=yes
22921 if test "$cf_fix_cppflags" = yes ; then
22923 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22924 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22927 elif test "${cf_tst_cflags}" = "\"'" ; then
22929 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22930 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22936 case "$CPPFLAGS" in
22940 case "$cf_add_cflags" in
22942 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22944 CPPFLAGS=`echo "$CPPFLAGS" | \
22945 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22946 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22951 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22952 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
22959 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
22960 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
22967 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22968 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22970 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
22972 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22973 && test -z "${cf_tst_cflags}" \
22974 && cf_fix_cppflags=no
22979 if test -n "$cf_new_cflags" ; then
22981 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
22982 CFLAGS="${CFLAGS}$cf_new_cflags"
22986 if test -n "$cf_new_cppflags" ; then
22988 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22989 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
22993 if test -n "$cf_new_extra_cppflags" ; then
22995 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
22996 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
23005 echo "$as_me:23005: checking if you want to perform memory-leak testing" >&5
23006 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
23008 # Check whether --enable-leaks or --disable-leaks was given.
23009 if test "${enable_leaks+set}" = set; then
23010 enableval="$enable_leaks"
23011 enable_leaks=$enableval
23015 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
23016 echo "$as_me:23016: result: $with_no_leaks" >&5
23017 echo "${ECHO_T}$with_no_leaks" >&6
23019 if test "$enable_leaks" = no ; then
23021 cat >>confdefs.h <<\EOF
23025 cat >>confdefs.h <<\EOF
23026 #define YY_NO_LEAKS 1
23032 if test "x$cf_cv_enable_rpath" != xno
23034 echo "$as_me:23034: checking for an rpath option" >&5
23035 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
23036 case "$cf_cv_system_name" in
23038 if test "$GCC" = yes; then
23039 LD_RPATH_OPT="-Wl,-rpath,"
23041 LD_RPATH_OPT="-rpath "
23044 (linux*|gnu*|k*bsd*-gnu|freebsd*)
23045 LD_RPATH_OPT="-Wl,-rpath,"
23047 (openbsd[2-9].*|mirbsd*)
23048 LD_RPATH_OPT="-Wl,-rpath,"
23051 LD_RPATH_OPT="-rpath "
23054 LD_RPATH_OPT="-Wl,-rpath,"
23057 LD_RPATH_OPT="-rpath "
23065 echo "$as_me:23065: result: $LD_RPATH_OPT" >&5
23066 echo "${ECHO_T}$LD_RPATH_OPT" >&6
23068 case "x$LD_RPATH_OPT" in
23070 echo "$as_me:23070: checking if we need a space after rpath option" >&5
23071 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
23072 cf_save_LIBS="$LIBS"
23074 cf_add_libs="$LIBS"
23077 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23078 # filter duplicates
23079 for cf_add_1lib in $cf_add_0lib; do
23080 for cf_add_2lib in $cf_add_libs; do
23081 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23086 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23088 LIBS="$cf_add_libs"
23090 cat >"conftest.$ac_ext" <<_ACEOF
23091 #line 23091 "configure"
23092 #include "confdefs.h"
23102 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23103 if { (eval echo "$as_me:23103: \"$ac_link\"") >&5
23104 (eval $ac_link) 2>&5
23106 echo "$as_me:23106: \$? = $ac_status" >&5
23107 (exit "$ac_status"); } &&
23108 { ac_try='test -s "conftest$ac_exeext"'
23109 { (eval echo "$as_me:23109: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23112 echo "$as_me:23112: \$? = $ac_status" >&5
23113 (exit "$ac_status"); }; }; then
23116 echo "$as_me: failed program was:" >&5
23117 cat "conftest.$ac_ext" >&5
23120 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23121 LIBS="$cf_save_LIBS"
23122 echo "$as_me:23122: result: $cf_rpath_space" >&5
23123 echo "${ECHO_T}$cf_rpath_space" >&6
23124 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
23129 echo "$as_me:23129: checking if rpath-hack should be disabled" >&5
23130 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
23132 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
23133 if test "${enable_rpath_hack+set}" = set; then
23134 enableval="$enable_rpath_hack"
23135 test "$enableval" != no && enableval=yes
23136 if test "$enableval" != "yes" ; then
23137 enable_rpath_hack=no
23139 enable_rpath_hack=yes
23143 enable_rpath_hack=yes
23146 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
23147 echo "$as_me:23147: result: $cf_disable_rpath_hack" >&5
23148 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
23150 if test "$enable_rpath_hack" = yes ; then
23152 echo "$as_me:23152: checking for updated LDFLAGS" >&5
23153 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
23154 if test -n "$LD_RPATH_OPT" ; then
23155 echo "$as_me:23155: result: maybe" >&5
23156 echo "${ECHO_T}maybe" >&6
23160 # Extract the first word of "$ac_prog", so it can be a program name with args.
23161 set dummy $ac_prog; ac_word=$2
23162 echo "$as_me:23162: checking for $ac_word" >&5
23163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23164 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 if test -n "$cf_ldd_prog"; then
23168 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
23170 ac_save_IFS=$IFS; IFS=$ac_path_separator
23172 for ac_dir in $ac_dummy; do
23174 test -z "$ac_dir" && ac_dir=.
23175 $as_executable_p "$ac_dir/$ac_word" || continue
23176 ac_cv_prog_cf_ldd_prog="$ac_prog"
23177 echo "$as_me:23177: found $ac_dir/$ac_word" >&5
23183 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
23184 if test -n "$cf_ldd_prog"; then
23185 echo "$as_me:23185: result: $cf_ldd_prog" >&5
23186 echo "${ECHO_T}$cf_ldd_prog" >&6
23188 echo "$as_me:23188: result: no" >&5
23189 echo "${ECHO_T}no" >&6
23192 test -n "$cf_ldd_prog" && break
23194 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
23196 cf_rpath_list="/usr/lib /lib"
23197 if test "$cf_ldd_prog" != no
23201 cat >"conftest.$ac_ext" <<_ACEOF
23202 #line 23202 "configure"
23203 #include "confdefs.h"
23213 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23214 if { (eval echo "$as_me:23214: \"$ac_link\"") >&5
23215 (eval $ac_link) 2>&5
23217 echo "$as_me:23217: \$? = $ac_status" >&5
23218 (exit "$ac_status"); } &&
23219 { ac_try='test -s "conftest$ac_exeext"'
23220 { (eval echo "$as_me:23220: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23223 echo "$as_me:23223: \$? = $ac_status" >&5
23224 (exit "$ac_status"); }; }; then
23225 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
23226 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
23228 echo "$as_me: failed program was:" >&5
23229 cat "conftest.$ac_ext" >&5
23231 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23233 # If we passed the link-test, but get a "not found" on a given library,
23234 # this could be due to inept reconfiguration of gcc to make it only
23235 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
23236 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
23237 # /usr/local libraries.
23238 if test -n "$cf_rpath_oops"
23240 for cf_rpath_src in $cf_rpath_oops
23242 for cf_rpath_dir in \
23247 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
23249 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
23251 echo "${as_me:-configure}:23251: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
23253 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
23261 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
23263 echo "${as_me:-configure}:23263: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
23265 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
23267 echo "${as_me:-configure}:23267: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
23270 for cf_rpath_src in $LDFLAGS
23272 case "$cf_rpath_src" in
23275 # check if this refers to a directory which we will ignore
23277 if test -n "$cf_rpath_list"
23279 for cf_rpath_item in $cf_rpath_list
23281 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
23289 if test "$cf_rpath_skip" = no
23291 # transform the option
23292 if test "$LD_RPATH_OPT" = "-R " ; then
23293 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
23295 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
23298 # if we have not already added this, add it now
23299 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
23300 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
23302 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
23304 echo "${as_me:-configure}:23304: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
23306 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
23311 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
23313 LDFLAGS=$cf_rpath_dst
23315 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
23317 echo "${as_me:-configure}:23317: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
23319 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
23321 echo "${as_me:-configure}:23321: testing ...checking LIBS $LIBS ..." 1>&5
23324 for cf_rpath_src in $LIBS
23326 case "$cf_rpath_src" in
23329 # check if this refers to a directory which we will ignore
23331 if test -n "$cf_rpath_list"
23333 for cf_rpath_item in $cf_rpath_list
23335 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
23343 if test "$cf_rpath_skip" = no
23345 # transform the option
23346 if test "$LD_RPATH_OPT" = "-R " ; then
23347 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
23349 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
23352 # if we have not already added this, add it now
23353 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
23354 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
23356 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
23358 echo "${as_me:-configure}:23358: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
23360 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
23365 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
23369 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
23371 echo "${as_me:-configure}:23371: testing ...checked LIBS $LIBS ..." 1>&5
23373 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
23375 echo "${as_me:-configure}:23375: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
23378 echo "$as_me:23378: result: no" >&5
23379 echo "${ECHO_T}no" >&6
23387 ac_config_files="$ac_config_files Makefile"
23388 ac_config_commands="$ac_config_commands default"
23389 cat >confcache <<\_ACEOF
23390 # This file is a shell script that caches the results of configure
23391 # tests run on this system so they can be shared between configure
23392 # scripts and configure runs, see configure's option --config-cache.
23393 # It is not useful on other systems. If it contains results you don't
23394 # want to keep, you may remove or edit it.
23396 # config.status only pays attention to the cache file if you give it
23397 # the --recheck option to rerun configure.
23399 # `ac_cv_env_foo' variables (set or unset) will be overriden when
23400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23401 # following values.
23405 # The following way of writing the cache mishandles newlines in values,
23406 # but we know of no workaround that is simple, portable, and efficient.
23407 # So, don't put newlines in cache variables' values.
23408 # Ultrix sh set writes to stderr and can't be redirected directly,
23409 # and sets the high bit in the cache file unless we assign to the vars.
23412 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23414 # `set' does not quote correctly, so add quotes (double-quote
23415 # substitution turns \\\\ into \\, and sed turns \\ into \).
23418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23421 # `set' quotes correctly as required by POSIX, so do not add quotes.
23423 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23432 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23434 if cmp -s $cache_file confcache; then :; else
23435 if test -w $cache_file; then
23436 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23437 cat confcache >$cache_file
23439 echo "not updating unwritable cache $cache_file"
23444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23445 # Let make expand exec_prefix.
23446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23448 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23449 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23450 # trailing colons and then remove the whole line if VPATH becomes empty
23451 # (actually we leave an empty line to preserve line numbers).
23452 if test "x$srcdir" = x.; then
23453 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23454 s/:*\$(srcdir):*/:/;
23455 s/:*\${srcdir}:*/:/;
23457 s/^\([^=]*=[ ]*\):*/\1/;
23463 DEFS=-DHAVE_CONFIG_H
23465 : "${CONFIG_STATUS=./config.status}"
23466 ac_clean_files_save=$ac_clean_files
23467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23468 { echo "$as_me:23468: creating $CONFIG_STATUS" >&5
23469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23470 cat >"$CONFIG_STATUS" <<_ACEOF
23472 # Generated automatically by configure.
23473 # Run this file to recreate the current configuration.
23474 # Compiler output produced by configure, useful for debugging
23475 # configure, is in config.log if it exists.
23478 SHELL=\${CONFIG_SHELL-$SHELL}
23479 ac_cs_invocation="\$0 \$@"
23481 CLICOLOR_FORCE= GREP_OPTIONS=
23482 unset CLICOLOR_FORCE GREP_OPTIONS
23485 cat >>"$CONFIG_STATUS" <<\_ACEOF
23486 # Be Bourne compatible
23487 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23494 # Name of the executable.
23495 as_me=`echo "$0" |sed 's,.*[\\/],,'`
23497 if expr a : '\(a\)' >/dev/null 2>&1; then
23503 rm -f conf$$ conf$$.exe conf$$.file
23505 if ln -s conf$$.file conf$$ 2>/dev/null; then
23506 # We could just check for DJGPP; but this test a) works b) is more generic
23507 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23508 if test -f conf$$.exe; then
23509 # Don't use ln at all; we don't have any links
23514 elif ln conf$$.file conf$$ 2>/dev/null; then
23519 rm -f conf$$ conf$$.exe conf$$.file
23521 as_executable_p="test -f"
23523 # Support unset when possible.
23524 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23531 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
23532 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
23533 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
23534 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
23535 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
23536 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
23537 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
23538 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
23541 # We need space, tab and new line, in precisely that order.
23547 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
23553 # Files that config.status was made for.
23554 if test -n "$ac_config_files"; then
23555 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
23558 if test -n "$ac_config_headers"; then
23559 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
23562 if test -n "$ac_config_links"; then
23563 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
23566 if test -n "$ac_config_commands"; then
23567 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
23570 cat >>"$CONFIG_STATUS" <<\EOF
23573 \`$as_me' instantiates files from templates according to the
23574 current configuration.
23576 Usage: $0 [OPTIONS] [FILE]...
23578 -h, --help print this help, then exit
23579 -V, --version print version number, then exit
23580 -d, --debug don't remove temporary files
23581 --recheck update $as_me by reconfiguring in the same conditions
23582 --file=FILE[:TEMPLATE]
23583 instantiate the configuration file FILE
23584 --header=FILE[:TEMPLATE]
23585 instantiate the configuration header FILE
23587 Configuration files:
23590 Configuration headers:
23593 Configuration commands:
23596 Report bugs to <dickey@invisible-island.net>."
23599 cat >>"$CONFIG_STATUS" <<EOF
23602 configured by $0, generated by GNU Autoconf 2.52.20210509,
23603 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23605 Copyright 2003-2020,2021 Thomas E. Dickey
23606 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23607 Free Software Foundation, Inc.
23608 This config.status script is free software; the Free Software Foundation
23609 gives unlimited permission to copy, distribute and modify it."
23614 cat >>"$CONFIG_STATUS" <<\EOF
23615 # If no file are specified by the user, then we need to provide default
23616 # value. By we need to know if files were specified by the user.
23622 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23623 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23625 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
23629 *) # This is not an option, so the user has probably given explicit
23631 ac_need_defaults=false;;
23635 # Handling of the options.
23637 cat >>"$CONFIG_STATUS" <<EOF
23638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23639 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23640 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23642 cat >>"$CONFIG_STATUS" <<\EOF
23643 --version | --vers* | -V )
23644 echo "$ac_cs_version"; exit 0 ;;
23646 # Conflict between --help and --header
23647 { { echo "$as_me:23647: error: ambiguous option: $1
23648 Try \`$0 --help' for more information." >&5
23649 echo "$as_me: error: ambiguous option: $1
23650 Try \`$0 --help' for more information." >&2;}
23651 { (exit 1); exit 1; }; };;
23652 --help | --hel | -h )
23653 echo "$ac_cs_usage"; exit 0 ;;
23654 --debug | --d* | -d )
23656 --file | --fil | --fi | --f )
23658 CONFIG_FILES="$CONFIG_FILES $1"
23659 ac_need_defaults=false;;
23660 --header | --heade | --head | --hea )
23662 CONFIG_HEADERS="$CONFIG_HEADERS $1"
23663 ac_need_defaults=false;;
23665 # This is an error.
23666 -*) { { echo "$as_me:23666: error: unrecognized option: $1
23667 Try \`$0 --help' for more information." >&5
23668 echo "$as_me: error: unrecognized option: $1
23669 Try \`$0 --help' for more information." >&2;}
23670 { (exit 1); exit 1; }; } ;;
23672 *) ac_config_targets="$ac_config_targets $1" ;;
23681 ## ----------------------- ##
23682 ## Running config.status. ##
23683 ## ----------------------- ##
23685 This file was extended by $as_me 2.52.20210509, executed with
23686 CONFIG_FILES = $CONFIG_FILES
23687 CONFIG_HEADERS = $CONFIG_HEADERS
23688 CONFIG_LINKS = $CONFIG_LINKS
23689 CONFIG_COMMANDS = $CONFIG_COMMANDS
23690 > "$ac_cs_invocation"
23691 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23696 cat >>"$CONFIG_STATUS" <<EOF
23698 # INIT-COMMANDS section.
23708 cat >>"$CONFIG_STATUS" <<\EOF
23709 for ac_config_target in $ac_config_targets
23711 case "$ac_config_target" in
23712 # Handling of arguments.
23713 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23714 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23715 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
23716 *) { { echo "$as_me:23716: error: invalid argument: $ac_config_target" >&5
23717 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23718 { (exit 1); exit 1; }; };;
23722 # If the user did not use the arguments to specify the items to instantiate,
23723 # then the envvar interface is used. Set only those that are not.
23724 # We use the long form for the default assignment because of an extremely
23725 # bizarre bug on SunOS 4.1.3.
23726 if "$ac_need_defaults"; then
23727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23732 # Create a temporary directory, and hook for its removal unless debugging.
23735 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23736 trap '{ (exit 1); exit 1; }' 1 2 13 15
23739 # Create a (secure) tmp directory for tmp files.
23742 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23743 test -n "$tmp" && test -d "$tmp"
23746 tmp=$TMPDIR/cs$$-$RANDOM
23747 (umask 077 && mkdir $tmp)
23750 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23751 { (exit 1); exit 1; }
23756 cat >>"$CONFIG_STATUS" <<EOF
23759 # CONFIG_FILES section.
23762 # No need to generate the scripts if there are no CONFIG_FILES.
23763 # This happens for instance when ./config.status config.h
23764 if test -n "\$CONFIG_FILES"; then
23765 # Protect against being on the right side of a sed subst in config.status.
23766 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23767 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23768 s,@SHELL@,$SHELL,;t t
23769 s,@exec_prefix@,$exec_prefix,;t t
23770 s,@prefix@,$prefix,;t t
23771 s,@program_transform_name@,$program_transform_name,;t t
23772 s,@bindir@,$bindir,;t t
23773 s,@sbindir@,$sbindir,;t t
23774 s,@libexecdir@,$libexecdir,;t t
23775 s,@datarootdir@,$datarootdir,;t t
23776 s,@datadir@,$datadir,;t t
23777 s,@sysconfdir@,$sysconfdir,;t t
23778 s,@sharedstatedir@,$sharedstatedir,;t t
23779 s,@localstatedir@,$localstatedir,;t t
23780 s,@runstatedir@,$runstatedir,;t t
23781 s,@libdir@,$libdir,;t t
23782 s,@includedir@,$includedir,;t t
23783 s,@oldincludedir@,$oldincludedir,;t t
23784 s,@infodir@,$infodir,;t t
23785 s,@mandir@,$mandir,;t t
23786 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23787 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23788 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23789 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23790 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23791 s,@build_alias@,$build_alias,;t t
23792 s,@host_alias@,$host_alias,;t t
23793 s,@target_alias@,$target_alias,;t t
23794 s,@ECHO_C@,$ECHO_C,;t t
23795 s,@ECHO_N@,$ECHO_N,;t t
23796 s,@ECHO_T@,$ECHO_T,;t t
23797 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23798 s,@DEFS@,$DEFS,;t t
23799 s,@LIBS@,$LIBS,;t t
23800 s,@build@,$build,;t t
23801 s,@build_cpu@,$build_cpu,;t t
23802 s,@build_vendor@,$build_vendor,;t t
23803 s,@build_os@,$build_os,;t t
23804 s,@host@,$host,;t t
23805 s,@host_cpu@,$host_cpu,;t t
23806 s,@host_vendor@,$host_vendor,;t t
23807 s,@host_os@,$host_os,;t t
23808 s,@SET_MAKE@,$SET_MAKE,;t t
23810 s,@CFLAGS@,$CFLAGS,;t t
23811 s,@LDFLAGS@,$LDFLAGS,;t t
23812 s,@CPPFLAGS@,$CPPFLAGS,;t t
23813 s,@ac_ct_CC@,$ac_ct_CC,;t t
23814 s,@EXEEXT@,$EXEEXT,;t t
23815 s,@OBJEXT@,$OBJEXT,;t t
23816 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
23818 s,@GREP@,$GREP,;t t
23819 s,@EGREP@,$EGREP,;t t
23821 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23822 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23823 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23824 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
23825 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
23826 s,@LINT@,$LINT,;t t
23827 s,@LINT_OPTS@,$LINT_OPTS,;t t
23828 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
23829 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
23830 s,@CTAGS@,$CTAGS,;t t
23831 s,@ETAGS@,$ETAGS,;t t
23832 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
23833 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
23834 s,@MATH_LIB@,$MATH_LIB,;t t
23835 s,@top_builddir@,$top_builddir,;t t
23836 s,@CC_G_OPT@,$CC_G_OPT,;t t
23837 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
23838 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
23839 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
23840 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
23842 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
23843 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
23844 s,@LD_MODEL@,$LD_MODEL,;t t
23845 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
23846 s,@LIBTOOL@,$LIBTOOL,;t t
23847 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
23848 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
23849 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
23850 s,@LIB_LINK@,$LIB_LINK,;t t
23851 s,@LINK_TESTS@,$LINK_TESTS,;t t
23852 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
23853 s,@PACKAGE@,$PACKAGE,;t t
23854 s,@PTHREAD@,$PTHREAD,;t t
23855 s,@TEST_ARGS@,$TEST_ARGS,;t t
23856 s,@TEST_DEPS@,$TEST_DEPS,;t t
23857 s,@TEST_LIBS@,$TEST_LIBS,;t t
23858 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
23859 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
23860 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
23861 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
23862 s,@includesubdir@,$includesubdir,;t t
23863 s,@FGREP@,$FGREP,;t t
23864 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
23865 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
23866 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23867 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23868 s,@ECHO_LT@,$ECHO_LT,;t t
23869 s,@ECHO_LD@,$ECHO_LD,;t t
23870 s,@RULE_CC@,$RULE_CC,;t t
23871 s,@SHOW_CC@,$SHOW_CC,;t t
23872 s,@ECHO_CC@,$ECHO_CC,;t t
23873 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
23874 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
23875 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
23876 s,@X_CFLAGS@,$X_CFLAGS,;t t
23877 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
23878 s,@X_LIBS@,$X_LIBS,;t t
23879 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
23880 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
23881 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
23882 s,@RGB_PATH@,$RGB_PATH,;t t
23883 s,@no_x11_rgb@,$no_x11_rgb,;t t
23884 s,@FORM_NAME@,$FORM_NAME,;t t
23885 s,@MENU_NAME@,$MENU_NAME,;t t
23886 s,@PANEL_NAME@,$PANEL_NAME,;t t
23887 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
23888 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
23889 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
23894 cat >>"$CONFIG_STATUS" <<\EOF
23895 # Split the substitutions into bite-sized pieces for seds with
23896 # small command number limits, like on Digital OSF/1 and HP-UX.
23897 ac_max_sed_lines=48
23898 ac_sed_frag=1 # Number of current file.
23899 ac_beg=1 # First line for current file.
23900 ac_end=$ac_max_sed_lines # Line after last line for current file.
23903 while "$ac_more_lines"; do
23904 if test "$ac_beg" -gt 1; then
23905 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23907 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23909 if test ! -s $tmp/subs.frag; then
23910 ac_more_lines=false
23912 # The purpose of the label and of the branching condition is to
23913 # speed up the sed processing (if there are no `@' at all, there
23914 # is no need to browse any of the substitutions).
23915 # These are the two extra sed commands mentioned above.
23917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23918 # It is possible to make a multiline substitution using escaped newlines.
23919 # Ensure that we do not split the substitution between script fragments.
23921 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
23922 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
23923 if test -s $tmp/subs.next; then
23924 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
23925 if test ! -s $tmp/subs.edit; then
23926 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
23927 if test ! -s $tmp/subs.edit; then
23928 if test "$ac_beg" -gt 1; then
23929 ac_end=`expr "$ac_end" - 1`
23936 if test -z "$ac_sed_cmds"; then
23937 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23939 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23941 ac_sed_frag=`expr "$ac_sed_frag" + 1`
23943 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
23946 if test -z "$ac_sed_cmds"; then
23949 fi # test -n "$CONFIG_FILES"
23952 cat >>"$CONFIG_STATUS" <<\EOF
23953 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23956 - | *:- | *:-:* ) # input from stdin
23958 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23960 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23962 * ) ac_file_in=$ac_file.in ;;
23965 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23966 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23967 X"$ac_file" : 'X\(//\)[^/]' \| \
23968 X"$ac_file" : 'X\(//\)$' \| \
23969 X"$ac_file" : 'X\(/\)' \| \
23970 . : '\(.\)' 2>/dev/null ||
23972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23974 /^X\(\/\/\)$/{ s//\1/; q; }
23975 /^X\(\/\).*/{ s//\1/; q; }
23977 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23978 { case "$ac_dir" in
23979 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23983 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23984 case $as_mkdir_dir in
23985 # Skip DOS drivespec
23986 ?:) as_incr_dir=$as_mkdir_dir ;;
23988 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23989 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23994 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
23995 # A "../" for each directory in $ac_dir_suffix.
23996 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
23998 ac_dir_suffix= ac_dots=
24003 if test -z "$ac_dots"; then
24006 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
24008 [\\/]* | ?:[\\/]* )
24009 ac_srcdir="$srcdir$ac_dir_suffix";
24010 ac_top_srcdir="$srcdir" ;;
24011 *) # Relative path.
24012 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
24013 ac_top_srcdir="$ac_dots$srcdir" ;;
24017 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24018 *) ac_INSTALL=$ac_dots$INSTALL ;;
24021 if test x"$ac_file" != x-; then
24022 { echo "$as_me:24022: creating $ac_file" >&5
24023 echo "$as_me: creating $ac_file" >&6;}
24026 # Let's still pretend it is `configure' which instantiates (i.e., don't
24027 # use $as_me), people would be surprised to read:
24028 # /* config.h. Generated automatically by config.status. */
24029 configure_input="Generated automatically from `echo $ac_file_in |
24030 sed 's,.*/,,'` by configure."
24032 # First look for the input files in the build tree, otherwise in the
24034 ac_file_inputs=`IFS=:
24035 for f in $ac_file_in; do
24037 -) echo $tmp/stdin ;;
24039 # Absolute (can't be DOS-style, as IFS=:)
24040 test -f "$f" || { { echo "$as_me:24040: error: cannot find input file: $f" >&5
24041 echo "$as_me: error: cannot find input file: $f" >&2;}
24042 { (exit 1); exit 1; }; }
24045 if test -f "$f"; then
24048 elif test -f "$srcdir/$f"; then
24053 { { echo "$as_me:24053: error: cannot find input file: $f" >&5
24054 echo "$as_me: error: cannot find input file: $f" >&2;}
24055 { (exit 1); exit 1; }; }
24058 done` || { (exit 1); exit 1; }
24060 cat >>"$CONFIG_STATUS" <<\EOF
24061 ac_warn_datarootdir=no
24062 if test x"$ac_file" != x-; then
24063 for ac_item in $ac_file_inputs
24065 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
24066 if test -n "$ac_seen"; then
24067 ac_used=`grep '@datarootdir@' "$ac_item"`
24068 if test -z "$ac_used"; then
24069 { echo "$as_me:24069: WARNING: datarootdir was used implicitly but not set:
24071 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
24073 ac_warn_datarootdir=yes
24076 ac_seen=`grep '${datarootdir}' "$ac_item"`
24077 if test -n "$ac_seen"; then
24078 { echo "$as_me:24078: WARNING: datarootdir was used explicitly but not set:
24080 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
24082 ac_warn_datarootdir=yes
24087 if test "x$ac_warn_datarootdir" = xyes; then
24088 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
24092 cat >>"$CONFIG_STATUS" <<EOF
24096 cat >>"$CONFIG_STATUS" <<\EOF
24098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24099 s,@configure_input@,$configure_input,;t t
24100 s,@srcdir@,$ac_srcdir,;t t
24101 s,@top_srcdir@,$ac_top_srcdir,;t t
24102 s,@INSTALL@,$ac_INSTALL,;t t
24103 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24105 if test x"$ac_file" != x-; then
24106 cp "$tmp/out" "$ac_file"
24108 for ac_name in prefix exec_prefix datarootdir
24110 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
24111 if test -n "$ac_seen"; then
24112 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
24113 if test -z "$ac_init"; then
24114 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
24115 { echo "$as_me:24115: WARNING: Variable $ac_name is used but was not set:
24117 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
24122 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
24123 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
24124 if test -s $tmp/out; then
24125 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
24126 { echo "$as_me:24126: WARNING: Some variables may not be substituted:
24128 echo "$as_me: WARNING: Some variables may not be substituted:
24138 cat >>"$CONFIG_STATUS" <<\EOF
24141 # CONFIG_HEADER section.
24144 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24145 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24147 # ac_d sets the value in "#define NAME VALUE" lines.
24148 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24149 ac_dB='[ ].*$,\1#\2'
24152 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24153 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24154 ac_iB='\([ ]\),\1#\2define\3'
24157 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24158 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24159 ac_uB='$,\1#\2define\3'
24163 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24164 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24166 - | *:- | *:-:* ) # input from stdin
24168 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24170 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24172 * ) ac_file_in=$ac_file.in ;;
24175 test x"$ac_file" != x- && { echo "$as_me:24175: creating $ac_file" >&5
24176 echo "$as_me: creating $ac_file" >&6;}
24178 # First look for the input files in the build tree, otherwise in the
24180 ac_file_inputs=`IFS=:
24181 for f in $ac_file_in; do
24183 -) echo $tmp/stdin ;;
24185 # Absolute (can't be DOS-style, as IFS=:)
24186 test -f "$f" || { { echo "$as_me:24186: error: cannot find input file: $f" >&5
24187 echo "$as_me: error: cannot find input file: $f" >&2;}
24188 { (exit 1); exit 1; }; }
24191 if test -f "$f"; then
24194 elif test -f "$srcdir/$f"; then
24199 { { echo "$as_me:24199: error: cannot find input file: $f" >&5
24200 echo "$as_me: error: cannot find input file: $f" >&2;}
24201 { (exit 1); exit 1; }; }
24204 done` || { (exit 1); exit 1; }
24205 # Remove the trailing spaces.
24206 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24210 # Transform confdefs.h into a list of #define's. We won't use it as a sed
24211 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
24212 # be either 'cat' or 'sort'.
24213 cat confdefs.h | uniq >conftest.vals
24215 # Break up conftest.vals because some shells have a limit on
24216 # the size of here documents, and old seds have small limits too.
24218 rm -f conftest.tail
24219 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
24220 while grep . conftest.vals >/dev/null
24222 # Write chunks of a limited-size here document to conftest.frag.
24223 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
24224 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
24225 echo 'CEOF' >> "$CONFIG_STATUS"
24226 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
24227 rm -f conftest.vals
24228 mv conftest.tail conftest.vals
24230 rm -f conftest.vals
24232 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
24234 echo ' cat >> conftest.edit <<CEOF
24235 /@DEFS@/r conftest.frag
24238 sed -f conftest.edit $tmp/in > $tmp/out
24240 mv $tmp/out $tmp/in
24241 rm -f conftest.edit conftest.frag
24242 ' >> "$CONFIG_STATUS"
24244 cat >>"$CONFIG_STATUS" <<\EOF
24245 # Let's still pretend it is `configure' which instantiates (i.e., don't
24246 # use $as_me), people would be surprised to read:
24247 # /* config.h. Generated automatically by config.status. */
24248 if test x"$ac_file" = x-; then
24249 echo "/* Generated automatically by configure. */" >$tmp/config.h
24251 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
24253 cat $tmp/in >>$tmp/config.h
24255 if test x"$ac_file" != x-; then
24256 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
24257 { echo "$as_me:24257: $ac_file is unchanged" >&5
24258 echo "$as_me: $ac_file is unchanged" >&6;}
24260 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24261 X"$ac_file" : 'X\(//\)[^/]' \| \
24262 X"$ac_file" : 'X\(//\)$' \| \
24263 X"$ac_file" : 'X\(/\)' \| \
24264 . : '\(.\)' 2>/dev/null ||
24266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24268 /^X\(\/\/\)$/{ s//\1/; q; }
24269 /^X\(\/\).*/{ s//\1/; q; }
24271 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24272 { case "$ac_dir" in
24273 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24277 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24278 case $as_mkdir_dir in
24279 # Skip DOS drivespec
24280 ?:) as_incr_dir=$as_mkdir_dir ;;
24282 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24283 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24290 mv "$tmp/config.h" "$ac_file"
24294 rm -f $tmp/config.h
24298 cat >>"$CONFIG_STATUS" <<\EOF
24300 # CONFIG_COMMANDS section.
24302 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24303 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24304 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24311 if test ! -d "$srcdir/$cf_dir" ; then
24313 elif test -f "$srcdir/$cf_dir/programs" ; then
24314 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
24318 cat >>Makefile <<TEST_EOF
24320 # These rules are generated so we do not rely on suffix rules, which do not
24321 # work consistently for different make-programs (the '\$(MODEL)/' confuses
24322 # some, and the '\$x' confuses others).
24325 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
24328 cat >>Makefile <<TEST_EOF
24330 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
24331 \$(srcdir)/test.priv.h \\
24334 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) -DMODULE_NAME="$N" \$(srcdir)/$N.c
24338 if test -f ../config.guess && test -f ../config.sub
24340 cat >>Makefile <<TEST_EOF
24342 # if we used CF_INHERIT for getting these files, we can remove them
24344 rm -f config.guess config.sub
24352 cat >>"$CONFIG_STATUS" <<\EOF
24354 { (exit 0); exit 0; }
24356 chmod +x "$CONFIG_STATUS"
24357 ac_clean_files=$ac_clean_files_save
24359 # configure is writing to config.log, and then calls config.status.
24360 # config.status does its own redirection, appending to config.log.
24361 # Unfortunately, on DOS this fails, as config.log is still kept open
24362 # by configure, so config.status won't be able to write to it; its
24363 # output is simply discarded. So we exec the FD to /dev/null,
24364 # effectively closing config.log, so it can be properly (re)opened and
24365 # appended to by config.status. When coming back to configure, we
24366 # need to make the FD available again.
24367 if test "$no_create" != yes; then
24370 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
24372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24373 # would make configure fail if this is the last instruction.
24374 "$ac_cs_success" || { (exit 1); exit 1; }