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
3298 if test "$cf_cv_need_libm" = yes
3301 cf_save_LIBS="$LIBS"
3303 echo "$as_me:3303: checking if -lm is available for math functions" >&5
3304 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
3305 if test "${cf_cv_have_libm+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 cat >"conftest.$ac_ext" <<_ACEOF
3310 #line 3310 "configure"
3311 #include "confdefs.h"
3320 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
3325 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3326 if { (eval echo "$as_me:3326: \"$ac_link\"") >&5
3327 (eval $ac_link) 2>&5
3329 echo "$as_me:3329: \$? = $ac_status" >&5
3330 (exit "$ac_status"); } &&
3331 { ac_try='test -s "conftest$ac_exeext"'
3332 { (eval echo "$as_me:3332: \"$ac_try\"") >&5
3335 echo "$as_me:3335: \$? = $ac_status" >&5
3336 (exit "$ac_status"); }; }; then
3339 echo "$as_me: failed program was:" >&5
3340 cat "conftest.$ac_ext" >&5
3343 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3345 echo "$as_me:3345: result: $cf_cv_have_libm" >&5
3346 echo "${ECHO_T}$cf_cv_have_libm" >&6
3347 LIBS="$cf_save_LIBS"
3349 if test "$cf_cv_have_libm" = yes
3357 if test "$cf_cv_have_libm" = yes
3360 cat >>confdefs.h <<\EOF
3361 #define HAVE_MATH_FUNCS 1
3369 CC_SHARED_OPTS=unknown
3370 CPPFLAGS="$CPPFLAGS"
3372 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3373 DFT_UPR_MODEL="NORMAL"
3386 PACKAGE="ncurses-examples"
3392 TINFO_LIBS='$(LIBS_CURSES)'
3393 cf_cv_abi_version=""
3394 cf_cv_rel_version=""
3400 echo "$as_me:3400: checking for fgrep" >&5
3401 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3402 if test "${ac_cv_path_FGREP+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3406 then ac_cv_path_FGREP="$GREP -F"
3408 for ac_prog in gfgrep fgrep
3410 # Extract the first word of "$ac_prog", so it can be a program name with args.
3411 set dummy $ac_prog; ac_word=$2
3412 echo "$as_me:3412: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_path_FGREP+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
3422 ac_save_IFS=$IFS; IFS=$ac_path_separator
3424 for ac_dir in $ac_dummy; do
3426 test -z "$ac_dir" && ac_dir=.
3427 if $as_executable_p "$ac_dir/$ac_word"; then
3428 ac_cv_path_FGREP="$ac_dir/$ac_word"
3429 echo "$as_me:3429: found $ac_dir/$ac_word" >&5
3437 FGREP=$ac_cv_path_FGREP
3439 if test -n "$FGREP"; then
3440 echo "$as_me:3440: result: $FGREP" >&5
3441 echo "${ECHO_T}$FGREP" >&6
3443 echo "$as_me:3443: result: no" >&5
3444 echo "${ECHO_T}no" >&6
3447 test -n "$FGREP" && break
3449 test -n "$FGREP" || FGREP=": "
3451 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:3451: error: cannot find workable fgrep" >&5
3452 echo "$as_me: error: cannot find workable fgrep" >&2;}
3453 { (exit 1); exit 1; }; }
3456 echo "$as_me:3456: result: $ac_cv_path_FGREP" >&5
3457 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
3458 FGREP="$ac_cv_path_FGREP"
3460 echo "$as_me:3460: checking if you want to use C11 _Noreturn feature" >&5
3461 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
3463 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
3464 if test "${enable_stdnoreturn+set}" = set; then
3465 enableval="$enable_stdnoreturn"
3466 test "$enableval" != yes && enableval=no
3467 if test "$enableval" != "no" ; then
3468 enable_stdnoreturn=yes
3470 enable_stdnoreturn=no
3474 enable_stdnoreturn=no
3477 echo "$as_me:3477: result: $enable_stdnoreturn" >&5
3478 echo "${ECHO_T}$enable_stdnoreturn" >&6
3480 if test $enable_stdnoreturn = yes; then
3481 echo "$as_me:3481: checking for C11 _Noreturn feature" >&5
3482 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
3483 if test "${cf_cv_c11_noreturn+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 cat >"conftest.$ac_ext" <<_ACEOF
3487 #line 3487 "configure"
3488 #include "confdefs.h"
3492 #include <stdnoreturn.h>
3493 static _Noreturn void giveup(void) { exit(0); }
3498 if (feof(stdin)) giveup()
3503 rm -f "conftest.$ac_objext"
3504 if { (eval echo "$as_me:3504: \"$ac_compile\"") >&5
3505 (eval $ac_compile) 2>&5
3507 echo "$as_me:3507: \$? = $ac_status" >&5
3508 (exit "$ac_status"); } &&
3509 { ac_try='test -s "conftest.$ac_objext"'
3510 { (eval echo "$as_me:3510: \"$ac_try\"") >&5
3513 echo "$as_me:3513: \$? = $ac_status" >&5
3514 (exit "$ac_status"); }; }; then
3515 cf_cv_c11_noreturn=yes
3517 echo "$as_me: failed program was:" >&5
3518 cat "conftest.$ac_ext" >&5
3519 cf_cv_c11_noreturn=no
3521 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3524 echo "$as_me:3524: result: $cf_cv_c11_noreturn" >&5
3525 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
3527 cf_cv_c11_noreturn=no,
3530 if test "$cf_cv_c11_noreturn" = yes; then
3532 cat >>confdefs.h <<\EOF
3533 #define HAVE_STDNORETURN_H 1
3536 cat >>confdefs.h <<EOF
3537 #define STDC_NORETURN _Noreturn
3540 HAVE_STDNORETURN_H=1
3542 HAVE_STDNORETURN_H=0
3545 if test "$GCC" = yes || test "$GXX" = yes
3547 cat > conftest.i <<EOF
3549 #define GCC_PRINTF 0
3554 #ifndef GCC_NORETURN
3555 #define GCC_NORETURN /* nothing */
3558 #define GCC_UNUSED /* nothing */
3561 if test "$GCC" = yes
3563 { echo "$as_me:3563: checking for $CC __attribute__ directives..." >&5
3564 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3565 cat > "conftest.$ac_ext" <<EOF
3566 #line 3566 "${as_me:-configure}"
3567 #include "confdefs.h"
3568 #include "conftest.h"
3569 #include "conftest.i"
3571 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3573 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3576 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3578 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3580 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3581 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
3582 extern GCC_NORETURN void foo(void);
3583 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
3585 cf_printf_attribute=no
3586 cf_scanf_attribute=no
3587 for cf_attribute in scanf printf unused noreturn
3590 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3592 cf_directive="__attribute__(($cf_attribute))"
3593 echo "checking for $CC $cf_directive" 1>&5
3595 case "$cf_attribute" in
3597 cf_printf_attribute=yes
3598 cat >conftest.h <<EOF
3599 #define GCC_$cf_ATTRIBUTE 1
3603 cf_scanf_attribute=yes
3604 cat >conftest.h <<EOF
3605 #define GCC_$cf_ATTRIBUTE 1
3609 cat >conftest.h <<EOF
3610 #define GCC_$cf_ATTRIBUTE $cf_directive
3615 if { (eval echo "$as_me:3615: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>&5
3618 echo "$as_me:3618: \$? = $ac_status" >&5
3619 (exit "$ac_status"); }; then
3620 test -n "$verbose" && echo "$as_me:3620: result: ... $cf_attribute" >&5
3621 echo "${ECHO_T}... $cf_attribute" >&6
3622 cat conftest.h >>confdefs.h
3623 case "$cf_attribute" in
3626 cat >>confdefs.h <<EOF
3627 #define GCC_NORETURN $cf_directive
3632 cf_value='/* nothing */'
3633 if test "$cf_printf_attribute" != no ; then
3634 cf_value='__attribute__((format(printf,fmt,var)))'
3636 cat >>confdefs.h <<\EOF
3637 #define GCC_PRINTF 1
3642 cat >>confdefs.h <<EOF
3643 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3648 cf_value='/* nothing */'
3649 if test "$cf_scanf_attribute" != no ; then
3650 cf_value='__attribute__((format(scanf,fmt,var)))'
3652 cat >>confdefs.h <<\EOF
3658 cat >>confdefs.h <<EOF
3659 #define GCC_SCANFLIKE(fmt,var) $cf_value
3665 cat >>confdefs.h <<EOF
3666 #define GCC_UNUSED $cf_directive
3674 ${FGREP-fgrep} define conftest.i >>confdefs.h
3679 echo "$as_me:3679: checking if you want to work around bogus compiler/loader warnings" >&5
3680 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3682 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3683 if test "${enable_string_hacks+set}" = set; then
3684 enableval="$enable_string_hacks"
3685 enable_string_hacks=$enableval
3687 enable_string_hacks=no
3689 echo "$as_me:3689: result: $enable_string_hacks" >&5
3690 echo "${ECHO_T}$enable_string_hacks" >&6
3692 if test "x$enable_string_hacks" = "xyes"; then
3694 cat >>confdefs.h <<\EOF
3695 #define USE_STRING_HACKS 1
3698 { echo "$as_me:3698: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3699 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3700 echo "$as_me:3700: checking for strlcat" >&5
3701 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3702 if test "${ac_cv_func_strlcat+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 cat >"conftest.$ac_ext" <<_ACEOF
3706 #line 3706 "configure"
3707 #include "confdefs.h"
3708 #define strlcat autoconf_temporary
3709 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3718 char strlcat (void);
3724 /* The GNU C library defines stubs for functions which it implements
3725 to always fail with ENOSYS. Some functions are actually named
3726 something starting with __ and the normal name is an alias. */
3727 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3728 #error found stub for strlcat
3736 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3737 if { (eval echo "$as_me:3737: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>&5
3740 echo "$as_me:3740: \$? = $ac_status" >&5
3741 (exit "$ac_status"); } &&
3742 { ac_try='test -s "conftest$ac_exeext"'
3743 { (eval echo "$as_me:3743: \"$ac_try\"") >&5
3746 echo "$as_me:3746: \$? = $ac_status" >&5
3747 (exit "$ac_status"); }; }; then
3748 ac_cv_func_strlcat=yes
3750 echo "$as_me: failed program was:" >&5
3751 cat "conftest.$ac_ext" >&5
3752 ac_cv_func_strlcat=no
3754 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3756 echo "$as_me:3756: result: $ac_cv_func_strlcat" >&5
3757 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3758 if test "$ac_cv_func_strlcat" = yes; then
3760 cat >>confdefs.h <<\EOF
3761 #define HAVE_STRLCAT 1
3766 echo "$as_me:3766: checking for strlcat in -lbsd" >&5
3767 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3768 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 ac_check_lib_save_LIBS=$LIBS
3773 cat >"conftest.$ac_ext" <<_ACEOF
3774 #line 3774 "configure"
3775 #include "confdefs.h"
3777 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3792 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3793 if { (eval echo "$as_me:3793: \"$ac_link\"") >&5
3794 (eval $ac_link) 2>&5
3796 echo "$as_me:3796: \$? = $ac_status" >&5
3797 (exit "$ac_status"); } &&
3798 { ac_try='test -s "conftest$ac_exeext"'
3799 { (eval echo "$as_me:3799: \"$ac_try\"") >&5
3802 echo "$as_me:3802: \$? = $ac_status" >&5
3803 (exit "$ac_status"); }; }; then
3804 ac_cv_lib_bsd_strlcat=yes
3806 echo "$as_me: failed program was:" >&5
3807 cat "conftest.$ac_ext" >&5
3808 ac_cv_lib_bsd_strlcat=no
3810 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3811 LIBS=$ac_check_lib_save_LIBS
3813 echo "$as_me:3813: result: $ac_cv_lib_bsd_strlcat" >&5
3814 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3815 if test "$ac_cv_lib_bsd_strlcat" = yes; then
3820 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3822 for cf_add_1lib in $cf_add_0lib; do
3823 for cf_add_2lib in $cf_add_libs; do
3824 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3829 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3833 for ac_header in bsd/string.h
3835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3836 echo "$as_me:3836: checking for $ac_header" >&5
3837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >"conftest.$ac_ext" <<_ACEOF
3842 #line 3842 "configure"
3843 #include "confdefs.h"
3844 #include <$ac_header>
3846 if { (eval echo "$as_me:3846: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3847 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3849 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:3852: \$? = $ac_status" >&5
3853 (exit "$ac_status"); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
3862 if test -z "$ac_cpp_err"; then
3863 eval "$as_ac_Header=yes"
3865 echo "$as_me: failed program was:" >&5
3866 cat "conftest.$ac_ext" >&5
3867 eval "$as_ac_Header=no"
3869 rm -f conftest.err "conftest.$ac_ext"
3871 echo "$as_me:3871: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
3872 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
3873 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
3874 cat >>confdefs.h <<EOF
3875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3881 cat >>confdefs.h <<\EOF
3882 #define HAVE_STRLCAT 1
3889 for ac_func in strlcpy snprintf
3891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3892 echo "$as_me:3892: checking for $ac_func" >&5
3893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3894 if eval "test \"\${$as_ac_var+set}\" = set"; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 cat >"conftest.$ac_ext" <<_ACEOF
3898 #line 3898 "configure"
3899 #include "confdefs.h"
3900 #define $ac_func autoconf_temporary
3901 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3908 /* We use char because int might match the return type of a gcc2
3909 builtin and then its argument prototype would still apply. */
3910 char $ac_func (void);
3916 /* The GNU C library defines stubs for functions which it implements
3917 to always fail with ENOSYS. Some functions are actually named
3918 something starting with __ and the normal name is an alias. */
3919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3920 #error found stub for $ac_func
3928 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3929 if { (eval echo "$as_me:3929: \"$ac_link\"") >&5
3930 (eval $ac_link) 2>&5
3932 echo "$as_me:3932: \$? = $ac_status" >&5
3933 (exit "$ac_status"); } &&
3934 { ac_try='test -s "conftest$ac_exeext"'
3935 { (eval echo "$as_me:3935: \"$ac_try\"") >&5
3938 echo "$as_me:3938: \$? = $ac_status" >&5
3939 (exit "$ac_status"); }; }; then
3940 eval "$as_ac_var=yes"
3942 echo "$as_me: failed program was:" >&5
3943 cat "conftest.$ac_ext" >&5
3944 eval "$as_ac_var=no"
3946 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3948 echo "$as_me:3948: result: `eval echo '${'"$as_ac_var"'}'`" >&5
3949 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
3950 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
3951 cat >>confdefs.h <<EOF
3952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3960 echo "$as_me:3960: checking if the POSIX test-macros are already defined" >&5
3961 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3962 if test "${cf_cv_posix_visible+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 cat >"conftest.$ac_ext" <<_ACEOF
3967 #line 3967 "configure"
3968 #include "confdefs.h"
3974 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3975 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3976 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3977 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3978 #error conflicting symbols found
3985 rm -f "conftest.$ac_objext"
3986 if { (eval echo "$as_me:3986: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>&5
3989 echo "$as_me:3989: \$? = $ac_status" >&5
3990 (exit "$ac_status"); } &&
3991 { ac_try='test -s "conftest.$ac_objext"'
3992 { (eval echo "$as_me:3992: \"$ac_try\"") >&5
3995 echo "$as_me:3995: \$? = $ac_status" >&5
3996 (exit "$ac_status"); }; }; then
3997 cf_cv_posix_visible=no
3999 echo "$as_me: failed program was:" >&5
4000 cat "conftest.$ac_ext" >&5
4001 cf_cv_posix_visible=yes
4003 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4006 echo "$as_me:4006: result: $cf_cv_posix_visible" >&5
4007 echo "${ECHO_T}$cf_cv_posix_visible" >&6
4009 if test "$cf_cv_posix_visible" = no; then
4012 cf_POSIX_C_SOURCE=199506L
4017 cf_xopen_source="-D_ALL_SOURCE"
4023 cf_xopen_source="-D_APPLE_C_SOURCE"
4026 cf_xopen_source="-D_DARWIN_C_SOURCE"
4029 (freebsd*|dragonfly*|midnightbsd*)
4030 # 5.x headers associate
4031 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
4032 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
4033 cf_POSIX_C_SOURCE=200112L
4035 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4038 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
4041 cf_xopen_source="-D_HPUX_SOURCE"
4044 cf_xopen_source="-D_SGI_SOURCE"
4047 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
4049 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
4051 echo "$as_me:4051: checking if this is the GNU C library" >&5
4052 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
4053 if test "${cf_cv_gnu_library+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 cat >"conftest.$ac_ext" <<_ACEOF
4058 #line 4058 "configure"
4059 #include "confdefs.h"
4060 #include <sys/types.h>
4065 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
4067 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
4070 # error not GNU C library
4076 rm -f "conftest.$ac_objext"
4077 if { (eval echo "$as_me:4077: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>&5
4080 echo "$as_me:4080: \$? = $ac_status" >&5
4081 (exit "$ac_status"); } &&
4082 { ac_try='test -s "conftest.$ac_objext"'
4083 { (eval echo "$as_me:4083: \"$ac_try\"") >&5
4086 echo "$as_me:4086: \$? = $ac_status" >&5
4087 (exit "$ac_status"); }; }; then
4088 cf_cv_gnu_library=yes
4090 echo "$as_me: failed program was:" >&5
4091 cat "conftest.$ac_ext" >&5
4092 cf_cv_gnu_library=no
4094 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4097 echo "$as_me:4097: result: $cf_cv_gnu_library" >&5
4098 echo "${ECHO_T}$cf_cv_gnu_library" >&6
4100 if test x$cf_cv_gnu_library = xyes; then
4102 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
4103 # was changed to help a little. newlib incorporated the change about 4
4105 echo "$as_me:4105: checking if _DEFAULT_SOURCE can be used as a basis" >&5
4106 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
4107 if test "${cf_cv_gnu_library_219+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4114 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4116 cat >"conftest.$ac_ext" <<_ACEOF
4117 #line 4117 "configure"
4118 #include "confdefs.h"
4119 #include <sys/types.h>
4124 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
4126 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
4129 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
4135 rm -f "conftest.$ac_objext"
4136 if { (eval echo "$as_me:4136: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>&5
4139 echo "$as_me:4139: \$? = $ac_status" >&5
4140 (exit "$ac_status"); } &&
4141 { ac_try='test -s "conftest.$ac_objext"'
4142 { (eval echo "$as_me:4142: \"$ac_try\"") >&5
4145 echo "$as_me:4145: \$? = $ac_status" >&5
4146 (exit "$ac_status"); }; }; then
4147 cf_cv_gnu_library_219=yes
4149 echo "$as_me: failed program was:" >&5
4150 cat "conftest.$ac_ext" >&5
4151 cf_cv_gnu_library_219=no
4153 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4157 echo "$as_me:4157: result: $cf_cv_gnu_library_219" >&5
4158 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
4160 if test "x$cf_cv_gnu_library_219" = xyes; then
4162 echo "$as_me:4162: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
4163 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
4164 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 cf_new_extra_cppflags=
4173 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
4175 case "$cf_fix_cppflags" in
4177 case "$cf_add_cflags" in
4178 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4179 case "$cf_add_cflags" in
4181 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4183 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4184 && test -z "${cf_tst_cflags}" \
4185 && cf_fix_cppflags=yes
4187 if test "$cf_fix_cppflags" = yes ; then
4189 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4190 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4193 elif test "${cf_tst_cflags}" = "\"'" ; then
4195 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4196 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4206 case "$cf_add_cflags" in
4208 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4210 CPPFLAGS=`echo "$CPPFLAGS" | \
4211 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4212 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4217 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4218 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4225 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4226 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4233 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4234 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4236 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4238 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4239 && test -z "${cf_tst_cflags}" \
4240 && cf_fix_cppflags=no
4245 if test -n "$cf_new_cflags" ; then
4247 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4248 CFLAGS="${CFLAGS}$cf_new_cflags"
4252 if test -n "$cf_new_cppflags" ; then
4254 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4255 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4259 if test -n "$cf_new_extra_cppflags" ; then
4261 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4262 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4266 cat >"conftest.$ac_ext" <<_ACEOF
4267 #line 4267 "configure"
4268 #include "confdefs.h"
4271 #include <sys/types.h>
4277 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
4280 # error GNU C library is too old
4286 rm -f "conftest.$ac_objext"
4287 if { (eval echo "$as_me:4287: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>&5
4290 echo "$as_me:4290: \$? = $ac_status" >&5
4291 (exit "$ac_status"); } &&
4292 { ac_try='test -s "conftest.$ac_objext"'
4293 { (eval echo "$as_me:4293: \"$ac_try\"") >&5
4296 echo "$as_me:4296: \$? = $ac_status" >&5
4297 (exit "$ac_status"); }; }; then
4298 cf_cv_gnu_dftsrc_219=yes
4300 echo "$as_me: failed program was:" >&5
4301 cat "conftest.$ac_ext" >&5
4302 cf_cv_gnu_dftsrc_219=no
4304 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4307 echo "$as_me:4307: result: $cf_cv_gnu_dftsrc_219" >&5
4308 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
4309 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
4311 cf_cv_gnu_dftsrc_219=maybe
4314 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
4316 echo "$as_me:4316: checking if we must define _GNU_SOURCE" >&5
4317 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
4318 if test "${cf_cv_gnu_source+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 cat >"conftest.$ac_ext" <<_ACEOF
4323 #line 4323 "configure"
4324 #include "confdefs.h"
4325 #include <sys/types.h>
4330 #ifndef _XOPEN_SOURCE
4331 #error expected _XOPEN_SOURCE to be defined
4337 rm -f "conftest.$ac_objext"
4338 if { (eval echo "$as_me:4338: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>&5
4341 echo "$as_me:4341: \$? = $ac_status" >&5
4342 (exit "$ac_status"); } &&
4343 { ac_try='test -s "conftest.$ac_objext"'
4344 { (eval echo "$as_me:4344: \"$ac_try\"") >&5
4347 echo "$as_me:4347: \$? = $ac_status" >&5
4348 (exit "$ac_status"); }; }; then
4351 echo "$as_me: failed program was:" >&5
4352 cat "conftest.$ac_ext" >&5
4358 cf_new_extra_cppflags=
4360 for cf_add_cflags in -D_GNU_SOURCE
4362 case "$cf_fix_cppflags" in
4364 case "$cf_add_cflags" in
4365 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4366 case "$cf_add_cflags" in
4368 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4370 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4371 && test -z "${cf_tst_cflags}" \
4372 && cf_fix_cppflags=yes
4374 if test "$cf_fix_cppflags" = yes ; then
4376 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4377 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4380 elif test "${cf_tst_cflags}" = "\"'" ; then
4382 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4383 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4393 case "$cf_add_cflags" in
4395 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4397 CPPFLAGS=`echo "$CPPFLAGS" | \
4398 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4399 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4404 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4405 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4412 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4413 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4423 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4425 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4426 && test -z "${cf_tst_cflags}" \
4427 && cf_fix_cppflags=no
4432 if test -n "$cf_new_cflags" ; then
4434 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4435 CFLAGS="${CFLAGS}$cf_new_cflags"
4439 if test -n "$cf_new_cppflags" ; then
4441 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4442 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4446 if test -n "$cf_new_extra_cppflags" ; then
4448 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4449 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4453 cat >"conftest.$ac_ext" <<_ACEOF
4454 #line 4454 "configure"
4455 #include "confdefs.h"
4456 #include <sys/types.h>
4461 #ifdef _XOPEN_SOURCE
4462 #error expected _XOPEN_SOURCE to be undefined
4468 rm -f "conftest.$ac_objext"
4469 if { (eval echo "$as_me:4469: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>&5
4472 echo "$as_me:4472: \$? = $ac_status" >&5
4473 (exit "$ac_status"); } &&
4474 { ac_try='test -s "conftest.$ac_objext"'
4475 { (eval echo "$as_me:4475: \"$ac_try\"") >&5
4478 echo "$as_me:4478: \$? = $ac_status" >&5
4479 (exit "$ac_status"); }; }; then
4482 echo "$as_me: failed program was:" >&5
4483 cat "conftest.$ac_ext" >&5
4484 cf_cv_gnu_source=yes
4486 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4490 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4493 echo "$as_me:4493: result: $cf_cv_gnu_source" >&5
4494 echo "${ECHO_T}$cf_cv_gnu_source" >&6
4496 if test "$cf_cv_gnu_source" = yes
4498 echo "$as_me:4498: checking if we should also define _DEFAULT_SOURCE" >&5
4499 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
4500 if test "${cf_cv_default_source+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4505 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
4507 cat >"conftest.$ac_ext" <<_ACEOF
4508 #line 4508 "configure"
4509 #include "confdefs.h"
4510 #include <sys/types.h>
4515 #ifdef _DEFAULT_SOURCE
4516 #error expected _DEFAULT_SOURCE to be undefined
4522 rm -f "conftest.$ac_objext"
4523 if { (eval echo "$as_me:4523: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>&5
4526 echo "$as_me:4526: \$? = $ac_status" >&5
4527 (exit "$ac_status"); } &&
4528 { ac_try='test -s "conftest.$ac_objext"'
4529 { (eval echo "$as_me:4529: \"$ac_try\"") >&5
4532 echo "$as_me:4532: \$? = $ac_status" >&5
4533 (exit "$ac_status"); }; }; then
4534 cf_cv_default_source=no
4536 echo "$as_me: failed program was:" >&5
4537 cat "conftest.$ac_ext" >&5
4538 cf_cv_default_source=yes
4540 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4543 echo "$as_me:4543: result: $cf_cv_default_source" >&5
4544 echo "${ECHO_T}$cf_cv_default_source" >&6
4545 if test "$cf_cv_default_source" = yes
4548 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4549 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4559 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
4562 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
4565 if test "$cf_cv_posix_visible" = no; then
4567 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4569 cf_save_CFLAGS="$CFLAGS"
4570 cf_save_CPPFLAGS="$CPPFLAGS"
4572 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4573 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4574 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4576 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4577 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4578 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4580 echo "$as_me:4580: checking if we should define _POSIX_C_SOURCE" >&5
4581 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4582 if test "${cf_cv_posix_c_source+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 echo "${as_me:-configure}:4586: testing if the symbol is already defined go no further ..." 1>&5
4588 cat >"conftest.$ac_ext" <<_ACEOF
4589 #line 4589 "configure"
4590 #include "confdefs.h"
4591 #include <sys/types.h>
4596 #ifndef _POSIX_C_SOURCE
4603 rm -f "conftest.$ac_objext"
4604 if { (eval echo "$as_me:4604: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit "$ac_status"); } &&
4609 { ac_try='test -s "conftest.$ac_objext"'
4610 { (eval echo "$as_me:4610: \"$ac_try\"") >&5
4613 echo "$as_me:4613: \$? = $ac_status" >&5
4614 (exit "$ac_status"); }; }; then
4615 cf_cv_posix_c_source=no
4617 echo "$as_me: failed program was:" >&5
4618 cat "conftest.$ac_ext" >&5
4619 cf_want_posix_source=no
4620 case .$cf_POSIX_C_SOURCE in
4622 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4625 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4626 cf_want_posix_source=yes
4629 cf_want_posix_source=yes
4632 if test "$cf_want_posix_source" = yes ; then
4633 cat >"conftest.$ac_ext" <<_ACEOF
4634 #line 4634 "configure"
4635 #include "confdefs.h"
4636 #include <sys/types.h>
4641 #ifdef _POSIX_SOURCE
4648 rm -f "conftest.$ac_objext"
4649 if { (eval echo "$as_me:4649: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>&5
4652 echo "$as_me:4652: \$? = $ac_status" >&5
4653 (exit "$ac_status"); } &&
4654 { ac_try='test -s "conftest.$ac_objext"'
4655 { (eval echo "$as_me:4655: \"$ac_try\"") >&5
4658 echo "$as_me:4658: \$? = $ac_status" >&5
4659 (exit "$ac_status"); }; }; then
4662 echo "$as_me: failed program was:" >&5
4663 cat "conftest.$ac_ext" >&5
4664 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4666 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4669 echo "${as_me:-configure}:4669: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4671 CFLAGS="$cf_trim_CFLAGS"
4672 CPPFLAGS="$cf_trim_CPPFLAGS"
4674 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4675 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4677 echo "${as_me:-configure}:4677: testing if the second compile does not leave our definition intact error ..." 1>&5
4679 cat >"conftest.$ac_ext" <<_ACEOF
4680 #line 4680 "configure"
4681 #include "confdefs.h"
4682 #include <sys/types.h>
4687 #ifndef _POSIX_C_SOURCE
4694 rm -f "conftest.$ac_objext"
4695 if { (eval echo "$as_me:4695: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4698 echo "$as_me:4698: \$? = $ac_status" >&5
4699 (exit "$ac_status"); } &&
4700 { ac_try='test -s "conftest.$ac_objext"'
4701 { (eval echo "$as_me:4701: \"$ac_try\"") >&5
4704 echo "$as_me:4704: \$? = $ac_status" >&5
4705 (exit "$ac_status"); }; }; then
4708 echo "$as_me: failed program was:" >&5
4709 cat "conftest.$ac_ext" >&5
4710 cf_cv_posix_c_source=no
4712 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4713 CFLAGS="$cf_save_CFLAGS"
4714 CPPFLAGS="$cf_save_CPPFLAGS"
4717 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4720 echo "$as_me:4720: result: $cf_cv_posix_c_source" >&5
4721 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4723 if test "$cf_cv_posix_c_source" != no ; then
4724 CFLAGS="$cf_trim_CFLAGS"
4725 CPPFLAGS="$cf_trim_CPPFLAGS"
4730 cf_new_extra_cppflags=
4732 for cf_add_cflags in $cf_cv_posix_c_source
4734 case "$cf_fix_cppflags" in
4736 case "$cf_add_cflags" in
4737 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4738 case "$cf_add_cflags" in
4740 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4742 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4743 && test -z "${cf_tst_cflags}" \
4744 && cf_fix_cppflags=yes
4746 if test "$cf_fix_cppflags" = yes ; then
4748 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4749 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4752 elif test "${cf_tst_cflags}" = "\"'" ; then
4754 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4755 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4765 case "$cf_add_cflags" in
4767 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4769 CPPFLAGS=`echo "$CPPFLAGS" | \
4770 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4771 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4776 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4777 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4784 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4785 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4792 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4793 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4795 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4797 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4798 && test -z "${cf_tst_cflags}" \
4799 && cf_fix_cppflags=no
4804 if test -n "$cf_new_cflags" ; then
4806 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4807 CFLAGS="${CFLAGS}$cf_new_cflags"
4811 if test -n "$cf_new_cppflags" ; then
4813 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4814 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4818 if test -n "$cf_new_extra_cppflags" ; then
4820 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4821 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4827 fi # cf_cv_posix_visible
4831 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
4834 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
4835 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
4836 # Abusing the conformance level is a workaround.
4837 { echo "$as_me:4837: WARNING: this system does not provide usable locale support" >&5
4838 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
4839 cf_xopen_source="-D_BSD_SOURCE"
4843 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
4844 cf_xopen_source="-D_BSD_SOURCE"
4848 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
4851 cf_xopen_source="-D_OSF_SOURCE"
4854 cf_xopen_source="-D_QNX_SOURCE"
4857 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
4860 cf_xopen_source="-D__EXTENSIONS__"
4861 cf_cv_xopen_source=broken
4863 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
4869 echo "$as_me:4869: checking if we should define _XOPEN_SOURCE" >&5
4870 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4871 if test "${cf_cv_xopen_source+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 cat >"conftest.$ac_ext" <<_ACEOF
4876 #line 4876 "configure"
4877 #include "confdefs.h"
4881 #include <sys/types.h>
4887 #ifndef _XOPEN_SOURCE
4894 rm -f "conftest.$ac_objext"
4895 if { (eval echo "$as_me:4895: \"$ac_compile\"") >&5
4896 (eval $ac_compile) 2>&5
4898 echo "$as_me:4898: \$? = $ac_status" >&5
4899 (exit "$ac_status"); } &&
4900 { ac_try='test -s "conftest.$ac_objext"'
4901 { (eval echo "$as_me:4901: \"$ac_try\"") >&5
4904 echo "$as_me:4904: \$? = $ac_status" >&5
4905 (exit "$ac_status"); }; }; then
4906 cf_cv_xopen_source=no
4908 echo "$as_me: failed program was:" >&5
4909 cat "conftest.$ac_ext" >&5
4912 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4913 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4915 cat >"conftest.$ac_ext" <<_ACEOF
4916 #line 4916 "configure"
4917 #include "confdefs.h"
4921 #include <sys/types.h>
4927 #ifdef _XOPEN_SOURCE
4934 rm -f "conftest.$ac_objext"
4935 if { (eval echo "$as_me:4935: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
4938 echo "$as_me:4938: \$? = $ac_status" >&5
4939 (exit "$ac_status"); } &&
4940 { ac_try='test -s "conftest.$ac_objext"'
4941 { (eval echo "$as_me:4941: \"$ac_try\"") >&5
4944 echo "$as_me:4944: \$? = $ac_status" >&5
4945 (exit "$ac_status"); }; }; then
4946 cf_cv_xopen_source=no
4948 echo "$as_me: failed program was:" >&5
4949 cat "conftest.$ac_ext" >&5
4950 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4952 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4956 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4959 echo "$as_me:4959: result: $cf_cv_xopen_source" >&5
4960 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4962 if test "$cf_cv_xopen_source" != no ; then
4964 CFLAGS=`echo "$CFLAGS" | \
4965 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4966 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4968 CPPFLAGS=`echo "$CPPFLAGS" | \
4969 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4970 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4972 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4974 for cf_add_cflags in $cf_temp_xopen_source
4976 case "x$cf_add_cflags" in
4979 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4982 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'`
4983 test "$CFLAGS" != "$cf_old_cflag" || break
4985 CFLAGS="$cf_old_cflag"
4988 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4991 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'`
4992 test "$CPPFLAGS" != "$cf_old_cflag" || break
4994 CPPFLAGS="$cf_old_cflag"
5003 cf_new_extra_cppflags=
5005 for cf_add_cflags in $cf_add_cflags
5007 case "$cf_fix_cppflags" in
5009 case "$cf_add_cflags" in
5010 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5011 case "$cf_add_cflags" in
5013 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5015 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5016 && test -z "${cf_tst_cflags}" \
5017 && cf_fix_cppflags=yes
5019 if test "$cf_fix_cppflags" = yes ; then
5021 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5022 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5025 elif test "${cf_tst_cflags}" = "\"'" ; then
5027 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5028 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5038 case "$cf_add_cflags" in
5040 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5042 CPPFLAGS=`echo "$CPPFLAGS" | \
5043 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5044 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5049 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5050 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5057 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5058 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5065 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5066 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5068 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5070 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5071 && test -z "${cf_tst_cflags}" \
5072 && cf_fix_cppflags=no
5077 if test -n "$cf_new_cflags" ; then
5079 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5080 CFLAGS="${CFLAGS}$cf_new_cflags"
5084 if test -n "$cf_new_cppflags" ; then
5086 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5087 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5091 if test -n "$cf_new_extra_cppflags" ; then
5093 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5094 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5102 if test "$cf_cv_posix_visible" = no; then
5104 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
5106 cf_save_CFLAGS="$CFLAGS"
5107 cf_save_CPPFLAGS="$CPPFLAGS"
5109 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
5110 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5111 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
5113 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
5114 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5115 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
5117 echo "$as_me:5117: checking if we should define _POSIX_C_SOURCE" >&5
5118 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
5119 if test "${cf_cv_posix_c_source+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 echo "${as_me:-configure}:5123: testing if the symbol is already defined go no further ..." 1>&5
5125 cat >"conftest.$ac_ext" <<_ACEOF
5126 #line 5126 "configure"
5127 #include "confdefs.h"
5128 #include <sys/types.h>
5133 #ifndef _POSIX_C_SOURCE
5140 rm -f "conftest.$ac_objext"
5141 if { (eval echo "$as_me:5141: \"$ac_compile\"") >&5
5142 (eval $ac_compile) 2>&5
5144 echo "$as_me:5144: \$? = $ac_status" >&5
5145 (exit "$ac_status"); } &&
5146 { ac_try='test -s "conftest.$ac_objext"'
5147 { (eval echo "$as_me:5147: \"$ac_try\"") >&5
5150 echo "$as_me:5150: \$? = $ac_status" >&5
5151 (exit "$ac_status"); }; }; then
5152 cf_cv_posix_c_source=no
5154 echo "$as_me: failed program was:" >&5
5155 cat "conftest.$ac_ext" >&5
5156 cf_want_posix_source=no
5157 case .$cf_POSIX_C_SOURCE in
5159 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
5162 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
5163 cf_want_posix_source=yes
5166 cf_want_posix_source=yes
5169 if test "$cf_want_posix_source" = yes ; then
5170 cat >"conftest.$ac_ext" <<_ACEOF
5171 #line 5171 "configure"
5172 #include "confdefs.h"
5173 #include <sys/types.h>
5178 #ifdef _POSIX_SOURCE
5185 rm -f "conftest.$ac_objext"
5186 if { (eval echo "$as_me:5186: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>&5
5189 echo "$as_me:5189: \$? = $ac_status" >&5
5190 (exit "$ac_status"); } &&
5191 { ac_try='test -s "conftest.$ac_objext"'
5192 { (eval echo "$as_me:5192: \"$ac_try\"") >&5
5195 echo "$as_me:5195: \$? = $ac_status" >&5
5196 (exit "$ac_status"); }; }; then
5199 echo "$as_me: failed program was:" >&5
5200 cat "conftest.$ac_ext" >&5
5201 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
5203 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5206 echo "${as_me:-configure}:5206: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
5208 CFLAGS="$cf_trim_CFLAGS"
5209 CPPFLAGS="$cf_trim_CPPFLAGS"
5211 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5212 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
5214 echo "${as_me:-configure}:5214: testing if the second compile does not leave our definition intact error ..." 1>&5
5216 cat >"conftest.$ac_ext" <<_ACEOF
5217 #line 5217 "configure"
5218 #include "confdefs.h"
5219 #include <sys/types.h>
5224 #ifndef _POSIX_C_SOURCE
5231 rm -f "conftest.$ac_objext"
5232 if { (eval echo "$as_me:5232: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5235 echo "$as_me:5235: \$? = $ac_status" >&5
5236 (exit "$ac_status"); } &&
5237 { ac_try='test -s "conftest.$ac_objext"'
5238 { (eval echo "$as_me:5238: \"$ac_try\"") >&5
5241 echo "$as_me:5241: \$? = $ac_status" >&5
5242 (exit "$ac_status"); }; }; then
5245 echo "$as_me: failed program was:" >&5
5246 cat "conftest.$ac_ext" >&5
5247 cf_cv_posix_c_source=no
5249 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5250 CFLAGS="$cf_save_CFLAGS"
5251 CPPFLAGS="$cf_save_CPPFLAGS"
5254 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5257 echo "$as_me:5257: result: $cf_cv_posix_c_source" >&5
5258 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
5260 if test "$cf_cv_posix_c_source" != no ; then
5261 CFLAGS="$cf_trim_CFLAGS"
5262 CPPFLAGS="$cf_trim_CPPFLAGS"
5267 cf_new_extra_cppflags=
5269 for cf_add_cflags in $cf_cv_posix_c_source
5271 case "$cf_fix_cppflags" in
5273 case "$cf_add_cflags" in
5274 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5275 case "$cf_add_cflags" in
5277 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5279 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5280 && test -z "${cf_tst_cflags}" \
5281 && cf_fix_cppflags=yes
5283 if test "$cf_fix_cppflags" = yes ; then
5285 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5286 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5289 elif test "${cf_tst_cflags}" = "\"'" ; then
5291 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5292 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5302 case "$cf_add_cflags" in
5304 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5306 CPPFLAGS=`echo "$CPPFLAGS" | \
5307 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5308 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5313 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5314 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5321 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5322 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5329 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5330 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5332 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5334 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5335 && test -z "${cf_tst_cflags}" \
5336 && cf_fix_cppflags=no
5341 if test -n "$cf_new_cflags" ; then
5343 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5344 CFLAGS="${CFLAGS}$cf_new_cflags"
5348 if test -n "$cf_new_cppflags" ; then
5350 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5351 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5355 if test -n "$cf_new_extra_cppflags" ; then
5357 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5358 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5364 fi # cf_cv_posix_visible
5369 if test -n "$cf_xopen_source" ; then
5371 for cf_add_cflags in $cf_xopen_source
5373 case "x$cf_add_cflags" in
5376 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5379 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'`
5380 test "$CFLAGS" != "$cf_old_cflag" || break
5381 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
5383 echo "${as_me:-configure}:5383: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
5385 CFLAGS="$cf_old_cflag"
5388 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5391 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'`
5392 test "$CPPFLAGS" != "$cf_old_cflag" || break
5393 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
5395 echo "${as_me:-configure}:5395: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
5397 CPPFLAGS="$cf_old_cflag"
5406 cf_new_extra_cppflags=
5408 for cf_add_cflags in $cf_add_cflags
5410 case "$cf_fix_cppflags" in
5412 case "$cf_add_cflags" in
5413 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5414 case "$cf_add_cflags" in
5416 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5418 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5419 && test -z "${cf_tst_cflags}" \
5420 && cf_fix_cppflags=yes
5422 if test "$cf_fix_cppflags" = yes ; then
5424 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5425 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5428 elif test "${cf_tst_cflags}" = "\"'" ; then
5430 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5431 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5441 case "$cf_add_cflags" in
5443 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5445 CPPFLAGS=`echo "$CPPFLAGS" | \
5446 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5447 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5452 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5453 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5460 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5461 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5468 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5469 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5471 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5473 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5474 && test -z "${cf_tst_cflags}" \
5475 && cf_fix_cppflags=no
5480 if test -n "$cf_new_cflags" ; then
5481 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
5483 echo "${as_me:-configure}:5483: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
5485 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5486 CFLAGS="${CFLAGS}$cf_new_cflags"
5490 if test -n "$cf_new_cppflags" ; then
5491 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
5493 echo "${as_me:-configure}:5493: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
5495 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5496 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5500 if test -n "$cf_new_extra_cppflags" ; then
5501 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
5503 echo "${as_me:-configure}:5503: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
5505 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5506 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5514 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
5515 echo "$as_me:5515: checking if _XOPEN_SOURCE really is set" >&5
5516 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
5517 cat >"conftest.$ac_ext" <<_ACEOF
5518 #line 5518 "configure"
5519 #include "confdefs.h"
5525 #ifndef _XOPEN_SOURCE
5532 rm -f "conftest.$ac_objext"
5533 if { (eval echo "$as_me:5533: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>&5
5536 echo "$as_me:5536: \$? = $ac_status" >&5
5537 (exit "$ac_status"); } &&
5538 { ac_try='test -s "conftest.$ac_objext"'
5539 { (eval echo "$as_me:5539: \"$ac_try\"") >&5
5542 echo "$as_me:5542: \$? = $ac_status" >&5
5543 (exit "$ac_status"); }; }; then
5544 cf_XOPEN_SOURCE_set=yes
5546 echo "$as_me: failed program was:" >&5
5547 cat "conftest.$ac_ext" >&5
5548 cf_XOPEN_SOURCE_set=no
5550 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5551 echo "$as_me:5551: result: $cf_XOPEN_SOURCE_set" >&5
5552 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
5553 if test "$cf_XOPEN_SOURCE_set" = yes
5555 cat >"conftest.$ac_ext" <<_ACEOF
5556 #line 5556 "configure"
5557 #include "confdefs.h"
5563 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
5570 rm -f "conftest.$ac_objext"
5571 if { (eval echo "$as_me:5571: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>&5
5574 echo "$as_me:5574: \$? = $ac_status" >&5
5575 (exit "$ac_status"); } &&
5576 { ac_try='test -s "conftest.$ac_objext"'
5577 { (eval echo "$as_me:5577: \"$ac_try\"") >&5
5580 echo "$as_me:5580: \$? = $ac_status" >&5
5581 (exit "$ac_status"); }; }; then
5582 cf_XOPEN_SOURCE_set_ok=yes
5584 echo "$as_me: failed program was:" >&5
5585 cat "conftest.$ac_ext" >&5
5586 cf_XOPEN_SOURCE_set_ok=no
5588 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5589 if test "$cf_XOPEN_SOURCE_set_ok" = no
5591 { echo "$as_me:5591: WARNING: _XOPEN_SOURCE is lower than requested" >&5
5592 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
5596 echo "$as_me:5596: checking if we should define _XOPEN_SOURCE" >&5
5597 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
5598 if test "${cf_cv_xopen_source+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 cat >"conftest.$ac_ext" <<_ACEOF
5603 #line 5603 "configure"
5604 #include "confdefs.h"
5608 #include <sys/types.h>
5614 #ifndef _XOPEN_SOURCE
5621 rm -f "conftest.$ac_objext"
5622 if { (eval echo "$as_me:5622: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>&5
5625 echo "$as_me:5625: \$? = $ac_status" >&5
5626 (exit "$ac_status"); } &&
5627 { ac_try='test -s "conftest.$ac_objext"'
5628 { (eval echo "$as_me:5628: \"$ac_try\"") >&5
5631 echo "$as_me:5631: \$? = $ac_status" >&5
5632 (exit "$ac_status"); }; }; then
5633 cf_cv_xopen_source=no
5635 echo "$as_me: failed program was:" >&5
5636 cat "conftest.$ac_ext" >&5
5639 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5640 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
5642 cat >"conftest.$ac_ext" <<_ACEOF
5643 #line 5643 "configure"
5644 #include "confdefs.h"
5648 #include <sys/types.h>
5654 #ifdef _XOPEN_SOURCE
5661 rm -f "conftest.$ac_objext"
5662 if { (eval echo "$as_me:5662: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>&5
5665 echo "$as_me:5665: \$? = $ac_status" >&5
5666 (exit "$ac_status"); } &&
5667 { ac_try='test -s "conftest.$ac_objext"'
5668 { (eval echo "$as_me:5668: \"$ac_try\"") >&5
5671 echo "$as_me:5671: \$? = $ac_status" >&5
5672 (exit "$ac_status"); }; }; then
5673 cf_cv_xopen_source=no
5675 echo "$as_me: failed program was:" >&5
5676 cat "conftest.$ac_ext" >&5
5677 cf_cv_xopen_source=$cf_XOPEN_SOURCE
5679 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5683 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5686 echo "$as_me:5686: result: $cf_cv_xopen_source" >&5
5687 echo "${ECHO_T}$cf_cv_xopen_source" >&6
5689 if test "$cf_cv_xopen_source" != no ; then
5691 CFLAGS=`echo "$CFLAGS" | \
5692 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5693 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5695 CPPFLAGS=`echo "$CPPFLAGS" | \
5696 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5697 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5699 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
5701 for cf_add_cflags in $cf_temp_xopen_source
5703 case "x$cf_add_cflags" in
5706 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5709 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'`
5710 test "$CFLAGS" != "$cf_old_cflag" || break
5712 CFLAGS="$cf_old_cflag"
5715 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5718 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'`
5719 test "$CPPFLAGS" != "$cf_old_cflag" || break
5721 CPPFLAGS="$cf_old_cflag"
5730 cf_new_extra_cppflags=
5732 for cf_add_cflags in $cf_add_cflags
5734 case "$cf_fix_cppflags" in
5736 case "$cf_add_cflags" in
5737 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5738 case "$cf_add_cflags" in
5740 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5742 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5743 && test -z "${cf_tst_cflags}" \
5744 && cf_fix_cppflags=yes
5746 if test "$cf_fix_cppflags" = yes ; then
5748 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5749 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5752 elif test "${cf_tst_cflags}" = "\"'" ; then
5754 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5755 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5765 case "$cf_add_cflags" in
5767 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5769 CPPFLAGS=`echo "$CPPFLAGS" | \
5770 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5771 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5776 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5777 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5784 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5785 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5792 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5793 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5795 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5797 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5798 && test -z "${cf_tst_cflags}" \
5799 && cf_fix_cppflags=no
5804 if test -n "$cf_new_cflags" ; then
5806 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5807 CFLAGS="${CFLAGS}$cf_new_cflags"
5811 if test -n "$cf_new_cppflags" ; then
5813 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5814 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5818 if test -n "$cf_new_extra_cppflags" ; then
5820 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5821 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5831 fi # cf_cv_posix_visible
5833 echo "$as_me:5833: checking for signal global datatype" >&5
5834 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
5835 if test "${cf_cv_sig_atomic_t+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 "volatile sig_atomic_t" \
5844 cat >"conftest.$ac_ext" <<_ACEOF
5845 #line 5845 "configure"
5846 #include "confdefs.h"
5848 #include <sys/types.h>
5854 static void handler(int sig)
5862 signal(SIGINT, handler);
5868 rm -f "conftest.$ac_objext"
5869 if { (eval echo "$as_me:5869: \"$ac_compile\"") >&5
5870 (eval $ac_compile) 2>&5
5872 echo "$as_me:5872: \$? = $ac_status" >&5
5873 (exit "$ac_status"); } &&
5874 { ac_try='test -s "conftest.$ac_objext"'
5875 { (eval echo "$as_me:5875: \"$ac_try\"") >&5
5878 echo "$as_me:5878: \$? = $ac_status" >&5
5879 (exit "$ac_status"); }; }; then
5880 cf_cv_sig_atomic_t=$cf_type
5882 echo "$as_me: failed program was:" >&5
5883 cat "conftest.$ac_ext" >&5
5884 cf_cv_sig_atomic_t=no
5886 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5887 test "$cf_cv_sig_atomic_t" != no && break
5892 echo "$as_me:5892: result: $cf_cv_sig_atomic_t" >&5
5893 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
5894 test "$cf_cv_sig_atomic_t" != no &&
5895 cat >>confdefs.h <<EOF
5896 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
5899 # Work around breakage on OS X
5901 echo "$as_me:5901: checking if SIGWINCH is defined" >&5
5902 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
5903 if test "${cf_cv_define_sigwinch+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 cat >"conftest.$ac_ext" <<_ACEOF
5908 #line 5908 "configure"
5909 #include "confdefs.h"
5911 #include <sys/types.h>
5912 #include <sys/signal.h>
5917 int x = SIGWINCH; (void)x
5922 rm -f "conftest.$ac_objext"
5923 if { (eval echo "$as_me:5923: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>&5
5926 echo "$as_me:5926: \$? = $ac_status" >&5
5927 (exit "$ac_status"); } &&
5928 { ac_try='test -s "conftest.$ac_objext"'
5929 { (eval echo "$as_me:5929: \"$ac_try\"") >&5
5932 echo "$as_me:5932: \$? = $ac_status" >&5
5933 (exit "$ac_status"); }; }; then
5934 cf_cv_define_sigwinch=yes
5936 echo "$as_me: failed program was:" >&5
5937 cat "conftest.$ac_ext" >&5
5938 cat >"conftest.$ac_ext" <<_ACEOF
5939 #line 5939 "configure"
5940 #include "confdefs.h"
5942 #undef _XOPEN_SOURCE
5943 #undef _POSIX_SOURCE
5944 #undef _POSIX_C_SOURCE
5945 #include <sys/types.h>
5946 #include <sys/signal.h>
5951 int x = SIGWINCH; (void)x
5956 rm -f "conftest.$ac_objext"
5957 if { (eval echo "$as_me:5957: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5960 echo "$as_me:5960: \$? = $ac_status" >&5
5961 (exit "$ac_status"); } &&
5962 { ac_try='test -s "conftest.$ac_objext"'
5963 { (eval echo "$as_me:5963: \"$ac_try\"") >&5
5966 echo "$as_me:5966: \$? = $ac_status" >&5
5967 (exit "$ac_status"); }; }; then
5968 cf_cv_define_sigwinch=maybe
5970 echo "$as_me: failed program was:" >&5
5971 cat "conftest.$ac_ext" >&5
5972 cf_cv_define_sigwinch=no
5974 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5977 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5980 echo "$as_me:5980: result: $cf_cv_define_sigwinch" >&5
5981 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
5983 if test "$cf_cv_define_sigwinch" = maybe ; then
5984 echo "$as_me:5984: checking for actual SIGWINCH definition" >&5
5985 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
5986 if test "${cf_cv_fixup_sigwinch+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 cf_cv_fixup_sigwinch=unknown
5992 while test "$cf_sigwinch" != 1
5994 cat >"conftest.$ac_ext" <<_ACEOF
5995 #line 5995 "configure"
5996 #include "confdefs.h"
5998 #undef _XOPEN_SOURCE
5999 #undef _POSIX_SOURCE
6000 #undef _POSIX_C_SOURCE
6001 #include <sys/types.h>
6002 #include <sys/signal.h>
6008 #if SIGWINCH != $cf_sigwinch
6011 int x = SIGWINCH; (void)x
6016 rm -f "conftest.$ac_objext"
6017 if { (eval echo "$as_me:6017: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>&5
6020 echo "$as_me:6020: \$? = $ac_status" >&5
6021 (exit "$ac_status"); } &&
6022 { ac_try='test -s "conftest.$ac_objext"'
6023 { (eval echo "$as_me:6023: \"$ac_try\"") >&5
6026 echo "$as_me:6026: \$? = $ac_status" >&5
6027 (exit "$ac_status"); }; }; then
6028 cf_cv_fixup_sigwinch=$cf_sigwinch
6031 echo "$as_me: failed program was:" >&5
6032 cat "conftest.$ac_ext" >&5
6034 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6036 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
6040 echo "$as_me:6040: result: $cf_cv_fixup_sigwinch" >&5
6041 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
6043 if test "$cf_cv_fixup_sigwinch" != unknown ; then
6044 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
6048 # Checks for CODESET support.
6050 echo "$as_me:6050: checking for nl_langinfo and CODESET" >&5
6051 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6052 if test "${am_cv_langinfo_codeset+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >"conftest.$ac_ext" <<_ACEOF
6056 #line 6056 "configure"
6057 #include "confdefs.h"
6058 #include <langinfo.h>
6062 char* cs = nl_langinfo(CODESET); (void)cs
6067 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6068 if { (eval echo "$as_me:6068: \"$ac_link\"") >&5
6069 (eval $ac_link) 2>&5
6071 echo "$as_me:6071: \$? = $ac_status" >&5
6072 (exit "$ac_status"); } &&
6073 { ac_try='test -s "conftest$ac_exeext"'
6074 { (eval echo "$as_me:6074: \"$ac_try\"") >&5
6077 echo "$as_me:6077: \$? = $ac_status" >&5
6078 (exit "$ac_status"); }; }; then
6079 am_cv_langinfo_codeset=yes
6081 echo "$as_me: failed program was:" >&5
6082 cat "conftest.$ac_ext" >&5
6083 am_cv_langinfo_codeset=no
6085 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6088 echo "$as_me:6088: result: $am_cv_langinfo_codeset" >&5
6089 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6090 if test "$am_cv_langinfo_codeset" = yes; then
6092 cat >>confdefs.h <<\EOF
6093 #define HAVE_LANGINFO_CODESET 1
6098 echo "$as_me:6098: checking if you want to use pkg-config" >&5
6099 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
6101 # Check whether --with-pkg-config or --without-pkg-config was given.
6102 if test "${with_pkg_config+set}" = set; then
6103 withval="$with_pkg_config"
6104 cf_pkg_config=$withval
6108 echo "$as_me:6108: result: $cf_pkg_config" >&5
6109 echo "${ECHO_T}$cf_pkg_config" >&6
6111 case "$cf_pkg_config" in
6117 if test -n "$ac_tool_prefix"; then
6118 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6120 echo "$as_me:6120: checking for $ac_word" >&5
6121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6122 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6130 ac_save_IFS=$IFS; IFS=$ac_path_separator
6132 for ac_dir in $ac_dummy; do
6134 test -z "$ac_dir" && ac_dir=.
6135 if $as_executable_p "$ac_dir/$ac_word"; then
6136 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6137 echo "$as_me:6137: found $ac_dir/$ac_word" >&5
6145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6147 if test -n "$PKG_CONFIG"; then
6148 echo "$as_me:6148: result: $PKG_CONFIG" >&5
6149 echo "${ECHO_T}$PKG_CONFIG" >&6
6151 echo "$as_me:6151: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6156 if test -z "$ac_cv_path_PKG_CONFIG"; then
6157 ac_pt_PKG_CONFIG=$PKG_CONFIG
6158 # Extract the first word of "pkg-config", so it can be a program name with args.
6159 set dummy pkg-config; ac_word=$2
6160 echo "$as_me:6160: checking for $ac_word" >&5
6161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 case $ac_pt_PKG_CONFIG in
6167 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6170 ac_save_IFS=$IFS; IFS=$ac_path_separator
6172 for ac_dir in $ac_dummy; do
6174 test -z "$ac_dir" && ac_dir=.
6175 if $as_executable_p "$ac_dir/$ac_word"; then
6176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
6177 echo "$as_me:6177: found $ac_dir/$ac_word" >&5
6182 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
6186 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6188 if test -n "$ac_pt_PKG_CONFIG"; then
6189 echo "$as_me:6189: result: $ac_pt_PKG_CONFIG" >&5
6190 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
6192 echo "$as_me:6192: result: no" >&5
6193 echo "${ECHO_T}no" >&6
6196 PKG_CONFIG=$ac_pt_PKG_CONFIG
6198 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6207 test -z "$PKG_CONFIG" && PKG_CONFIG=none
6208 if test "$PKG_CONFIG" != none ; then
6210 if test "x$prefix" != xNONE; then
6211 cf_path_syntax="$prefix"
6213 cf_path_syntax="$ac_default_prefix"
6216 case ".$PKG_CONFIG" in
6221 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6223 (.\$\{*prefix\}*|.\$\{*dir\}*)
6224 eval PKG_CONFIG="$PKG_CONFIG"
6225 case ".$PKG_CONFIG" in
6227 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
6232 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
6235 { { echo "$as_me:6235: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
6236 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
6237 { (exit 1); exit 1; }; }
6241 elif test "x$cf_pkg_config" != xno ; then
6242 { echo "$as_me:6242: WARNING: pkg-config is not installed" >&5
6243 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
6246 echo "$as_me:6246: checking if you want to see long compiling messages" >&5
6247 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
6249 # Check whether --enable-echo or --disable-echo was given.
6250 if test "${enable_echo+set}" = set; then
6251 enableval="$enable_echo"
6252 test "$enableval" != no && enableval=yes
6253 if test "$enableval" != "yes" ; then
6256 ECHO_LD='@echo linking $@;'
6257 RULE_CC='@echo compiling $<'
6258 SHOW_CC='@echo compiling $@'
6280 echo "$as_me:6280: result: $enableval" >&5
6281 echo "${ECHO_T}$enableval" >&6
6283 echo "$as_me:6283: checking for ncurses wrap-prefix" >&5
6284 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
6286 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
6287 if test "${with_ncurses_wrap_prefix+set}" = set; then
6288 withval="$with_ncurses_wrap_prefix"
6289 NCURSES_WRAP_PREFIX=$withval
6291 NCURSES_WRAP_PREFIX=_nc_
6293 echo "$as_me:6293: result: $NCURSES_WRAP_PREFIX" >&5
6294 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
6296 echo "$as_me:6296: checking if you want to check for wide-character functions" >&5
6297 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
6299 # Check whether --enable-widec or --disable-widec was given.
6300 if test "${enable_widec+set}" = set; then
6301 enableval="$enable_widec"
6302 test "$enableval" != no && enableval=yes
6303 if test "$enableval" != "yes" ; then
6313 echo "$as_me:6313: result: $cf_enable_widec" >&5
6314 echo "${ECHO_T}$cf_enable_widec" >&6
6316 echo "$as_me:6316: checking for specific curses-directory" >&5
6317 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
6319 # Check whether --with-curses-dir or --without-curses-dir was given.
6320 if test "${with_curses_dir+set}" = set; then
6321 withval="$with_curses_dir"
6322 cf_cv_curses_dir=$withval
6326 echo "$as_me:6326: result: $cf_cv_curses_dir" >&5
6327 echo "${ECHO_T}$cf_cv_curses_dir" >&6
6329 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
6332 if test "x$prefix" != xNONE; then
6333 cf_path_syntax="$prefix"
6335 cf_path_syntax="$ac_default_prefix"
6343 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6345 (.\$\{*prefix\}*|.\$\{*dir\}*)
6346 eval withval="$withval"
6349 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
6354 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
6357 { { echo "$as_me:6357: error: expected a pathname, not \"$withval\"" >&5
6358 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6359 { (exit 1); exit 1; }; }
6363 if test -d "$cf_cv_curses_dir"
6366 if test -n "$cf_cv_curses_dir/include" ; then
6367 for cf_add_incdir in $cf_cv_curses_dir/include
6369 while test "$cf_add_incdir" != /usr/include
6371 if test -d "$cf_add_incdir"
6374 if test -n "$CFLAGS$CPPFLAGS" ; then
6375 # a loop is needed to ensure we can add subdirs of existing dirs
6376 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6377 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6378 cf_have_incdir=yes; break
6383 if test "$cf_have_incdir" = no ; then
6384 if test "$cf_add_incdir" = /usr/local/include ; then
6385 if test "$GCC" = yes
6387 cf_save_CPPFLAGS=$CPPFLAGS
6389 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6390 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
6392 cat >"conftest.$ac_ext" <<_ACEOF
6393 #line 6393 "configure"
6394 #include "confdefs.h"
6404 rm -f "conftest.$ac_objext"
6405 if { (eval echo "$as_me:6405: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>&5
6408 echo "$as_me:6408: \$? = $ac_status" >&5
6409 (exit "$ac_status"); } &&
6410 { ac_try='test -s "conftest.$ac_objext"'
6411 { (eval echo "$as_me:6411: \"$ac_try\"") >&5
6414 echo "$as_me:6414: \$? = $ac_status" >&5
6415 (exit "$ac_status"); }; }; then
6418 echo "$as_me: failed program was:" >&5
6419 cat "conftest.$ac_ext" >&5
6422 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6423 CPPFLAGS=$cf_save_CPPFLAGS
6428 if test "$cf_have_incdir" = no ; then
6429 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6431 echo "${as_me:-configure}:6431: testing adding $cf_add_incdir to include-path ..." 1>&5
6433 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6435 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
6436 test "$cf_top_incdir" = "$cf_add_incdir" && break
6437 cf_add_incdir="$cf_top_incdir"
6448 if test -n "$cf_cv_curses_dir/lib" ; then
6449 for cf_add_libdir in $cf_cv_curses_dir/lib
6451 if test "$cf_add_libdir" = /usr/lib ; then
6453 elif test -d "$cf_add_libdir"
6456 if test -n "$LDFLAGS$LIBS" ; then
6457 # a loop is needed to ensure we can add subdirs of existing dirs
6458 for cf_test_libdir in $LDFLAGS $LIBS ; do
6459 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6460 cf_have_libdir=yes; break
6464 if test "$cf_have_libdir" = no ; then
6465 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6467 echo "${as_me:-configure}:6467: testing adding $cf_add_libdir to library-path ..." 1>&5
6469 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6480 echo "$as_me:6480: checking for specified curses library type" >&5
6481 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
6483 # Check whether --with-screen or --without-screen was given.
6484 if test "${with_screen+set}" = set; then
6485 withval="$with_screen"
6486 cf_cv_screen=$withval
6489 # Check whether --with-ncursesw or --without-ncursesw was given.
6490 if test "${with_ncursesw+set}" = set; then
6491 withval="$with_ncursesw"
6492 cf_cv_screen=ncursesw
6495 # Check whether --with-ncurses or --without-ncurses was given.
6496 if test "${with_ncurses+set}" = set; then
6497 withval="$with_ncurses"
6498 cf_cv_screen=ncurses
6501 # Check whether --with-pdcurses or --without-pdcurses was given.
6502 if test "${with_pdcurses+set}" = set; then
6503 withval="$with_pdcurses"
6504 cf_cv_screen=pdcurses
6507 # Check whether --with-curses-colr or --without-curses-colr was given.
6508 if test "${with_curses_colr+set}" = set; then
6509 withval="$with_curses_colr"
6510 cf_cv_screen=curses_colr
6513 # Check whether --with-curses-5lib or --without-curses-5lib was given.
6514 if test "${with_curses_5lib+set}" = set; then
6515 withval="$with_curses_5lib"
6516 cf_cv_screen=curses_5lib
6524 echo "$as_me:6524: result: $cf_cv_screen" >&5
6525 echo "${ECHO_T}$cf_cv_screen" >&6
6527 case $cf_cv_screen in
6530 echo "$as_me:6530: checking for extra include directories" >&5
6531 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
6532 if test "${cf_cv_curses_incdir+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 cf_cv_curses_incdir=no
6539 if test "x$cf_cv_screen" = "xcurses_colr"
6541 test -d /usr/include/curses_colr && \
6542 cf_cv_curses_incdir="-I/usr/include/curses_colr"
6546 if test "x$cf_cv_screen" = "xcurses_5lib"
6548 test -d /usr/5lib && \
6549 test -d /usr/5include && \
6550 cf_cv_curses_incdir="-I/usr/5include"
6556 echo "$as_me:6556: result: $cf_cv_curses_incdir" >&5
6557 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
6558 if test "$cf_cv_curses_incdir" != no
6561 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6562 CPPFLAGS="${CPPFLAGS}$cf_cv_curses_incdir"
6566 echo "$as_me:6566: checking if we have identified curses headers" >&5
6567 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6568 if test "${cf_cv_ncurses_header+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 cf_cv_ncurses_header=none
6575 curses.h ncurses/ncurses.h ncurses/curses.h
6577 cat >"conftest.$ac_ext" <<_ACEOF
6578 #line 6578 "configure"
6579 #include "confdefs.h"
6580 #include <${cf_header}>
6584 initscr(); tgoto("?", 0,0)
6589 rm -f "conftest.$ac_objext"
6590 if { (eval echo "$as_me:6590: \"$ac_compile\"") >&5
6591 (eval $ac_compile) 2>&5
6593 echo "$as_me:6593: \$? = $ac_status" >&5
6594 (exit "$ac_status"); } &&
6595 { ac_try='test -s "conftest.$ac_objext"'
6596 { (eval echo "$as_me:6596: \"$ac_try\"") >&5
6599 echo "$as_me:6599: \$? = $ac_status" >&5
6600 (exit "$ac_status"); }; }; then
6601 cf_cv_ncurses_header=$cf_header; break
6603 echo "$as_me: failed program was:" >&5
6604 cat "conftest.$ac_ext" >&5
6606 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6610 echo "$as_me:6610: result: $cf_cv_ncurses_header" >&5
6611 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6613 if test "$cf_cv_ncurses_header" = none ; then
6614 { { echo "$as_me:6614: error: No curses header-files found" >&5
6615 echo "$as_me: error: No curses header-files found" >&2;}
6616 { (exit 1); exit 1; }; }
6619 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6621 for ac_header in $cf_cv_ncurses_header
6623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6624 echo "$as_me:6624: checking for $ac_header" >&5
6625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 cat >"conftest.$ac_ext" <<_ACEOF
6630 #line 6630 "configure"
6631 #include "confdefs.h"
6632 #include <$ac_header>
6634 if { (eval echo "$as_me:6634: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6635 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6637 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit "$ac_status"); } >/dev/null; then
6642 if test -s conftest.err; then
6643 ac_cpp_err=$ac_c_preproc_warn_flag
6650 if test -z "$ac_cpp_err"; then
6651 eval "$as_ac_Header=yes"
6653 echo "$as_me: failed program was:" >&5
6654 cat "conftest.$ac_ext" >&5
6655 eval "$as_ac_Header=no"
6657 rm -f conftest.err "conftest.$ac_ext"
6659 echo "$as_me:6659: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6660 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6661 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6662 cat >>confdefs.h <<EOF
6663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6669 echo "$as_me:6669: checking for terminfo header" >&5
6670 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6671 if test "${cf_cv_term_header+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 case "${cf_cv_ncurses_header}" in
6676 (*/ncurses.h|*/ncursesw.h)
6677 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6680 cf_term_header=term.h
6684 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6686 cat >"conftest.$ac_ext" <<_ACEOF
6687 #line 6687 "configure"
6688 #include "confdefs.h"
6690 #include <${cf_cv_ncurses_header:-curses.h}>
6696 int x = auto_left_margin; (void)x
6701 rm -f "conftest.$ac_objext"
6702 if { (eval echo "$as_me:6702: \"$ac_compile\"") >&5
6703 (eval $ac_compile) 2>&5
6705 echo "$as_me:6705: \$? = $ac_status" >&5
6706 (exit "$ac_status"); } &&
6707 { ac_try='test -s "conftest.$ac_objext"'
6708 { (eval echo "$as_me:6708: \"$ac_try\"") >&5
6711 echo "$as_me:6711: \$? = $ac_status" >&5
6712 (exit "$ac_status"); }; }; then
6714 cf_cv_term_header="$cf_test"
6716 echo "$as_me: failed program was:" >&5
6717 cat "conftest.$ac_ext" >&5
6719 cf_cv_term_header=unknown
6722 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6723 test "$cf_cv_term_header" != unknown && break
6727 echo "$as_me:6727: result: $cf_cv_term_header" >&5
6728 echo "${ECHO_T}$cf_cv_term_header" >&6
6730 # Set definitions to allow ifdef'ing to accommodate subdirectories
6732 case "$cf_cv_term_header" in
6735 cat >>confdefs.h <<\EOF
6736 #define HAVE_TERM_H 1
6742 case "$cf_cv_term_header" in
6745 cat >>confdefs.h <<\EOF
6746 #define HAVE_NCURSES_TERM_H 1
6752 cat >>confdefs.h <<\EOF
6753 #define HAVE_NCURSESW_TERM_H 1
6759 echo "$as_me:6759: checking for ncurses version" >&5
6760 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6761 if test "${cf_cv_ncurses_version+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 cf_cv_ncurses_version=no
6767 rm -f "$cf_tempfile"
6768 if test "$cross_compiling" = yes; then
6770 # This will not work if the preprocessor splits the line after the
6771 # Autoconf token. The 'unproto' program does that.
6772 cat > "conftest.$ac_ext" <<EOF
6773 #include <${cf_cv_ncurses_header:-curses.h}>
6775 #ifdef NCURSES_VERSION
6776 Autoconf NCURSES_VERSION
6784 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6785 { (eval echo "$as_me:6785: \"$cf_try\"") >&5
6788 echo "$as_me:6788: \$? = $ac_status" >&5
6789 (exit "$ac_status"); }
6790 if test -f conftest.out ; then
6791 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
6792 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6797 cat >"conftest.$ac_ext" <<_ACEOF
6798 #line 6798 "configure"
6799 #include "confdefs.h"
6801 #include <${cf_cv_ncurses_header:-curses.h}>
6805 FILE *fp = fopen("$cf_tempfile", "w");
6806 #ifdef NCURSES_VERSION
6807 # ifdef NCURSES_VERSION_PATCH
6808 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6810 fprintf(fp, "%s\\n", NCURSES_VERSION);
6814 fprintf(fp, "old\\n");
6819 ${cf_cv_main_return:-return}(0);
6822 rm -f "conftest$ac_exeext"
6823 if { (eval echo "$as_me:6823: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>&5
6826 echo "$as_me:6826: \$? = $ac_status" >&5
6827 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6828 { (eval echo "$as_me:6828: \"$ac_try\"") >&5
6831 echo "$as_me:6831: \$? = $ac_status" >&5
6832 (exit "$ac_status"); }; }; then
6834 cf_cv_ncurses_version=`cat $cf_tempfile`
6836 echo "$as_me: program exited with status $ac_status" >&5
6837 echo "$as_me: failed program was:" >&5
6838 cat "conftest.$ac_ext" >&5
6840 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6842 rm -f "$cf_tempfile"
6845 echo "$as_me:6845: result: $cf_cv_ncurses_version" >&5
6846 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6847 test "$cf_cv_ncurses_version" = no ||
6848 cat >>confdefs.h <<\EOF
6852 echo "$as_me:6852: checking if we have identified curses libraries" >&5
6853 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
6854 cat >"conftest.$ac_ext" <<_ACEOF
6855 #line 6855 "configure"
6856 #include "confdefs.h"
6857 #include <${cf_cv_ncurses_header:-curses.h}>
6861 initscr(); tgoto("?", 0,0)
6866 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6867 if { (eval echo "$as_me:6867: \"$ac_link\"") >&5
6868 (eval $ac_link) 2>&5
6870 echo "$as_me:6870: \$? = $ac_status" >&5
6871 (exit "$ac_status"); } &&
6872 { ac_try='test -s "conftest$ac_exeext"'
6873 { (eval echo "$as_me:6873: \"$ac_try\"") >&5
6876 echo "$as_me:6876: \$? = $ac_status" >&5
6877 (exit "$ac_status"); }; }; then
6880 echo "$as_me: failed program was:" >&5
6881 cat "conftest.$ac_ext" >&5
6884 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6885 echo "$as_me:6885: result: $cf_result" >&5
6886 echo "${ECHO_T}$cf_result" >&6
6888 if test "$cf_result" = no ; then
6891 echo "$as_me:6891: checking for tgoto in -lmytinfo" >&5
6892 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6893 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 ac_check_lib_save_LIBS=$LIBS
6897 LIBS="-lmytinfo $LIBS"
6898 cat >"conftest.$ac_ext" <<_ACEOF
6899 #line 6899 "configure"
6900 #include "confdefs.h"
6902 /* Override any gcc2 internal prototype to avoid an error. */
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6917 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6918 if { (eval echo "$as_me:6918: \"$ac_link\"") >&5
6919 (eval $ac_link) 2>&5
6921 echo "$as_me:6921: \$? = $ac_status" >&5
6922 (exit "$ac_status"); } &&
6923 { ac_try='test -s "conftest$ac_exeext"'
6924 { (eval echo "$as_me:6924: \"$ac_try\"") >&5
6927 echo "$as_me:6927: \$? = $ac_status" >&5
6928 (exit "$ac_status"); }; }; then
6929 ac_cv_lib_mytinfo_tgoto=yes
6931 echo "$as_me: failed program was:" >&5
6932 cat "conftest.$ac_ext" >&5
6933 ac_cv_lib_mytinfo_tgoto=no
6935 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6936 LIBS=$ac_check_lib_save_LIBS
6938 echo "$as_me:6938: result: $ac_cv_lib_mytinfo_tgoto" >&5
6939 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6940 if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
6945 for cf_add_1lib in -lmytinfo; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6947 for cf_add_1lib in $cf_add_0lib; do
6948 for cf_add_2lib in $cf_add_libs; do
6949 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6954 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6962 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
6963 # next (1998), and xcurses "newer" (2000). There is no header file for
6964 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
6965 # term.h) for cur_colr
6966 if test "x$cf_cv_screen" = "xcurses_colr"
6968 echo "$as_me:6968: checking for initscr in -lcur_colr" >&5
6969 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
6970 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_check_lib_save_LIBS=$LIBS
6974 LIBS="-lcur_colr $LIBS"
6975 cat >"conftest.$ac_ext" <<_ACEOF
6976 #line 6976 "configure"
6977 #include "confdefs.h"
6979 /* Override any gcc2 internal prototype to avoid an error. */
6983 /* We use char because int might match the return type of a gcc2
6984 builtin and then its argument prototype would still apply. */
6994 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6995 if { (eval echo "$as_me:6995: \"$ac_link\"") >&5
6996 (eval $ac_link) 2>&5
6998 echo "$as_me:6998: \$? = $ac_status" >&5
6999 (exit "$ac_status"); } &&
7000 { ac_try='test -s "conftest$ac_exeext"'
7001 { (eval echo "$as_me:7001: \"$ac_try\"") >&5
7004 echo "$as_me:7004: \$? = $ac_status" >&5
7005 (exit "$ac_status"); }; }; then
7006 ac_cv_lib_cur_colr_initscr=yes
7008 echo "$as_me: failed program was:" >&5
7009 cat "conftest.$ac_ext" >&5
7010 ac_cv_lib_cur_colr_initscr=no
7012 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7013 LIBS=$ac_check_lib_save_LIBS
7015 echo "$as_me:7015: result: $ac_cv_lib_cur_colr_initscr" >&5
7016 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
7017 if test "$ac_cv_lib_cur_colr_initscr" = yes; then
7022 for cf_add_1lib in -lcur_colr; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7024 for cf_add_1lib in $cf_add_0lib; do
7025 for cf_add_2lib in $cf_add_libs; do
7026 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7031 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7035 ac_cv_func_initscr=yes
7039 echo "$as_me:7039: checking for initscr in -lHcurses" >&5
7040 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7041 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 ac_check_lib_save_LIBS=$LIBS
7045 LIBS="-lHcurses $LIBS"
7046 cat >"conftest.$ac_ext" <<_ACEOF
7047 #line 7047 "configure"
7048 #include "confdefs.h"
7050 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7065 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7066 if { (eval echo "$as_me:7066: \"$ac_link\"") >&5
7067 (eval $ac_link) 2>&5
7069 echo "$as_me:7069: \$? = $ac_status" >&5
7070 (exit "$ac_status"); } &&
7071 { ac_try='test -s "conftest$ac_exeext"'
7072 { (eval echo "$as_me:7072: \"$ac_try\"") >&5
7075 echo "$as_me:7075: \$? = $ac_status" >&5
7076 (exit "$ac_status"); }; }; then
7077 ac_cv_lib_Hcurses_initscr=yes
7079 echo "$as_me: failed program was:" >&5
7080 cat "conftest.$ac_ext" >&5
7081 ac_cv_lib_Hcurses_initscr=no
7083 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7084 LIBS=$ac_check_lib_save_LIBS
7086 echo "$as_me:7086: result: $ac_cv_lib_Hcurses_initscr" >&5
7087 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7088 if test "$ac_cv_lib_Hcurses_initscr" = yes; then
7090 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7095 for cf_add_1lib in -lHcurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7097 for cf_add_1lib in $cf_add_0lib; do
7098 for cf_add_2lib in $cf_add_libs; do
7099 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7104 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7108 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7109 CPPFLAGS="${CPPFLAGS}-D__HP_CURSES -D_HP_CURSES"
7111 ac_cv_func_initscr=yes
7120 case `arch 2>/dev/null` in
7125 if test -n "/lib64" ; then
7126 for cf_add_libdir in /lib64
7128 if test "$cf_add_libdir" = /usr/lib ; then
7130 elif test -d "$cf_add_libdir"
7133 if test -n "$LDFLAGS$LIBS" ; then
7134 # a loop is needed to ensure we can add subdirs of existing dirs
7135 for cf_test_libdir in $LDFLAGS $LIBS ; do
7136 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7137 cf_have_libdir=yes; break
7141 if test "$cf_have_libdir" = no ; then
7142 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7144 echo "${as_me:-configure}:7144: testing adding $cf_add_libdir to library-path ..." 1>&5
7146 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7154 if test -n "/lib" ; then
7155 for cf_add_libdir in /lib
7157 if test "$cf_add_libdir" = /usr/lib ; then
7159 elif test -d "$cf_add_libdir"
7162 if test -n "$LDFLAGS$LIBS" ; then
7163 # a loop is needed to ensure we can add subdirs of existing dirs
7164 for cf_test_libdir in $LDFLAGS $LIBS ; do
7165 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7166 cf_have_libdir=yes; break
7170 if test "$cf_have_libdir" = no ; then
7171 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7173 echo "${as_me:-configure}:7173: testing adding $cf_add_libdir to library-path ..." 1>&5
7175 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7185 if test -n "/lib" ; then
7186 for cf_add_libdir in /lib
7188 if test "$cf_add_libdir" = /usr/lib ; then
7190 elif test -d "$cf_add_libdir"
7193 if test -n "$LDFLAGS$LIBS" ; then
7194 # a loop is needed to ensure we can add subdirs of existing dirs
7195 for cf_test_libdir in $LDFLAGS $LIBS ; do
7196 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7197 cf_have_libdir=yes; break
7201 if test "$cf_have_libdir" = no ; then
7202 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7204 echo "${as_me:-configure}:7204: testing adding $cf_add_libdir to library-path ..." 1>&5
7206 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7216 if test "x$cf_cv_screen" = "xcurses_5lib"
7218 if test -d /usr/5lib ; then
7220 if test -n "/usr/5lib" ; then
7221 for cf_add_libdir in /usr/5lib
7223 if test "$cf_add_libdir" = /usr/lib ; then
7225 elif test -d "$cf_add_libdir"
7228 if test -n "$LDFLAGS$LIBS" ; then
7229 # a loop is needed to ensure we can add subdirs of existing dirs
7230 for cf_test_libdir in $LDFLAGS $LIBS ; do
7231 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7232 cf_have_libdir=yes; break
7236 if test "$cf_have_libdir" = no ; then
7237 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7239 echo "${as_me:-configure}:7239: testing adding $cf_add_libdir to library-path ..." 1>&5
7241 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7250 for cf_add_1lib in -lcurses -ltermcap; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7252 for cf_add_1lib in $cf_add_0lib; do
7253 for cf_add_2lib in $cf_add_libs; do
7254 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7259 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7265 ac_cv_func_initscr=yes
7269 if test ".$ac_cv_func_initscr" != .yes ; then
7270 cf_save_LIBS="$LIBS"
7272 if test ".${cf_cv_ncurses_version:-no}" != .no
7274 cf_check_list="ncurses curses cursesX"
7276 cf_check_list="cursesX curses ncurses"
7279 # Check for library containing tgoto. Do this before curses library
7280 # because it may be needed to link the test-case for initscr.
7281 if test "x$cf_term_lib" = x
7283 echo "$as_me:7283: checking for tgoto" >&5
7284 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7285 if test "${ac_cv_func_tgoto+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 cat >"conftest.$ac_ext" <<_ACEOF
7289 #line 7289 "configure"
7290 #include "confdefs.h"
7291 #define tgoto autoconf_temporary
7292 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7299 /* We use char because int might match the return type of a gcc2
7300 builtin and then its argument prototype would still apply. */
7307 /* The GNU C library defines stubs for functions which it implements
7308 to always fail with ENOSYS. Some functions are actually named
7309 something starting with __ and the normal name is an alias. */
7310 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7311 #error found stub for tgoto
7319 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7320 if { (eval echo "$as_me:7320: \"$ac_link\"") >&5
7321 (eval $ac_link) 2>&5
7323 echo "$as_me:7323: \$? = $ac_status" >&5
7324 (exit "$ac_status"); } &&
7325 { ac_try='test -s "conftest$ac_exeext"'
7326 { (eval echo "$as_me:7326: \"$ac_try\"") >&5
7329 echo "$as_me:7329: \$? = $ac_status" >&5
7330 (exit "$ac_status"); }; }; then
7331 ac_cv_func_tgoto=yes
7333 echo "$as_me: failed program was:" >&5
7334 cat "conftest.$ac_ext" >&5
7337 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7339 echo "$as_me:7339: result: $ac_cv_func_tgoto" >&5
7340 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7341 if test "$ac_cv_func_tgoto" = yes; then
7342 cf_term_lib=predefined
7345 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
7347 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7348 echo "$as_me:7348: checking for tgoto in -l$cf_term_lib" >&5
7349 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7350 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_check_lib_save_LIBS=$LIBS
7354 LIBS="-l$cf_term_lib $LIBS"
7355 cat >"conftest.$ac_ext" <<_ACEOF
7356 #line 7356 "configure"
7357 #include "confdefs.h"
7359 /* Override any gcc2 internal prototype to avoid an error. */
7363 /* We use char because int might match the return type of a gcc2
7364 builtin and then its argument prototype would still apply. */
7374 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7375 if { (eval echo "$as_me:7375: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>&5
7378 echo "$as_me:7378: \$? = $ac_status" >&5
7379 (exit "$ac_status"); } &&
7380 { ac_try='test -s "conftest$ac_exeext"'
7381 { (eval echo "$as_me:7381: \"$ac_try\"") >&5
7384 echo "$as_me:7384: \$? = $ac_status" >&5
7385 (exit "$ac_status"); }; }; then
7386 eval "$as_ac_Lib=yes"
7388 echo "$as_me: failed program was:" >&5
7389 cat "conftest.$ac_ext" >&5
7390 eval "$as_ac_Lib=no"
7392 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7393 LIBS=$ac_check_lib_save_LIBS
7395 echo "$as_me:7395: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
7396 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
7397 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
7399 : "${cf_nculib_root:=$cf_term_lib}"
7410 # Check for library containing initscr
7411 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7412 if test "x$cf_curs_lib" = x
7414 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
7416 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7417 if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then
7418 echo "$as_me:7418: checking if we can link with $cf_curs_lib library" >&5
7419 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7420 cat >"conftest.$ac_ext" <<_ACEOF
7421 #line 7421 "configure"
7422 #include "confdefs.h"
7423 #include <${cf_cv_ncurses_header:-curses.h}>
7432 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7433 if { (eval echo "$as_me:7433: \"$ac_link\"") >&5
7434 (eval $ac_link) 2>&5
7436 echo "$as_me:7436: \$? = $ac_status" >&5
7437 (exit "$ac_status"); } &&
7438 { ac_try='test -s "conftest$ac_exeext"'
7439 { (eval echo "$as_me:7439: \"$ac_try\"") >&5
7442 echo "$as_me:7442: \$? = $ac_status" >&5
7443 (exit "$ac_status"); }; }; then
7446 echo "$as_me: failed program was:" >&5
7447 cat "conftest.$ac_ext" >&5
7450 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7451 echo "$as_me:7451: result: $cf_result" >&5
7452 echo "${ECHO_T}$cf_result" >&6
7453 test "$cf_result" = yes && break
7454 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
7456 elif test "$cf_term_lib" != predefined ; then
7457 echo "$as_me:7457: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7458 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
7459 cat >"conftest.$ac_ext" <<_ACEOF
7460 #line 7460 "configure"
7461 #include "confdefs.h"
7462 #include <${cf_cv_ncurses_header:-curses.h}>
7466 initscr(); tgoto((char *)0, 0, 0);
7471 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7472 if { (eval echo "$as_me:7472: \"$ac_link\"") >&5
7473 (eval $ac_link) 2>&5
7475 echo "$as_me:7475: \$? = $ac_status" >&5
7476 (exit "$ac_status"); } &&
7477 { ac_try='test -s "conftest$ac_exeext"'
7478 { (eval echo "$as_me:7478: \"$ac_try\"") >&5
7481 echo "$as_me:7481: \$? = $ac_status" >&5
7482 (exit "$ac_status"); }; }; then
7485 echo "$as_me: failed program was:" >&5
7486 cat "conftest.$ac_ext" >&5
7488 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7489 cat >"conftest.$ac_ext" <<_ACEOF
7490 #line 7490 "configure"
7491 #include "confdefs.h"
7492 #include <${cf_cv_ncurses_header:-curses.h}>
7501 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7502 if { (eval echo "$as_me:7502: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>&5
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 (exit "$ac_status"); } &&
7507 { ac_try='test -s "conftest$ac_exeext"'
7508 { (eval echo "$as_me:7508: \"$ac_try\"") >&5
7511 echo "$as_me:7511: \$? = $ac_status" >&5
7512 (exit "$ac_status"); }; }; then
7515 echo "$as_me: failed program was:" >&5
7516 cat "conftest.$ac_ext" >&5
7519 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7522 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7523 echo "$as_me:7523: result: $cf_result" >&5
7524 echo "${ECHO_T}$cf_result" >&6
7525 test "$cf_result" != error && break
7529 test "$cf_curs_lib" = unknown && { { echo "$as_me:7529: error: no curses library found" >&5
7530 echo "$as_me: error: no curses library found" >&2;}
7531 { (exit 1); exit 1; }; }
7538 for ac_header in wchar.h
7540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7541 echo "$as_me:7541: checking for $ac_header" >&5
7542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 cat >"conftest.$ac_ext" <<_ACEOF
7547 #line 7547 "configure"
7548 #include "confdefs.h"
7549 #include <$ac_header>
7551 if { (eval echo "$as_me:7551: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7552 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7554 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7556 cat conftest.err >&5
7557 echo "$as_me:7557: \$? = $ac_status" >&5
7558 (exit "$ac_status"); } >/dev/null; then
7559 if test -s conftest.err; then
7560 ac_cpp_err=$ac_c_preproc_warn_flag
7567 if test -z "$ac_cpp_err"; then
7568 eval "$as_ac_Header=yes"
7570 echo "$as_me: failed program was:" >&5
7571 cat "conftest.$ac_ext" >&5
7572 eval "$as_ac_Header=no"
7574 rm -f conftest.err "conftest.$ac_ext"
7576 echo "$as_me:7576: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7578 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7579 cat >>confdefs.h <<EOF
7580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586 echo "$as_me:7586: checking for multibyte character support" >&5
7587 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7588 if test "${cf_cv_utf8_lib+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 cf_save_LIBS="$LIBS"
7593 cat >"conftest.$ac_ext" <<_ACEOF
7594 #line 7594 "configure"
7595 #include "confdefs.h"
7611 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7612 if { (eval echo "$as_me:7612: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>&5
7615 echo "$as_me:7615: \$? = $ac_status" >&5
7616 (exit "$ac_status"); } &&
7617 { ac_try='test -s "conftest$ac_exeext"'
7618 { (eval echo "$as_me:7618: \"$ac_try\"") >&5
7621 echo "$as_me:7621: \$? = $ac_status" >&5
7622 (exit "$ac_status"); }; }; then
7625 echo "$as_me: failed program was:" >&5
7626 cat "conftest.$ac_ext" >&5
7628 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7629 # will be set on completion of the AC_TRY_LINK below.
7630 cf_cv_header_path_utf8=
7631 cf_cv_library_path_utf8=
7633 echo "${as_me:-configure}:7633: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7635 cf_save_LIBS="$LIBS"
7637 cat >"conftest.$ac_ext" <<_ACEOF
7638 #line 7638 "configure"
7639 #include "confdefs.h"
7641 #include <libutf8.h>
7650 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7651 if { (eval echo "$as_me:7651: \"$ac_link\"") >&5
7652 (eval $ac_link) 2>&5
7654 echo "$as_me:7654: \$? = $ac_status" >&5
7655 (exit "$ac_status"); } &&
7656 { ac_try='test -s "conftest$ac_exeext"'
7657 { (eval echo "$as_me:7657: \"$ac_try\"") >&5
7660 echo "$as_me:7660: \$? = $ac_status" >&5
7661 (exit "$ac_status"); }; }; then
7663 cf_cv_find_linkage_utf8=yes
7664 cf_cv_header_path_utf8=/usr/include
7665 cf_cv_library_path_utf8=/usr/lib
7668 echo "$as_me: failed program was:" >&5
7669 cat "conftest.$ac_ext" >&5
7671 LIBS="-lutf8 $cf_save_LIBS"
7673 cat >"conftest.$ac_ext" <<_ACEOF
7674 #line 7674 "configure"
7675 #include "confdefs.h"
7677 #include <libutf8.h>
7686 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7687 if { (eval echo "$as_me:7687: \"$ac_link\"") >&5
7688 (eval $ac_link) 2>&5
7690 echo "$as_me:7690: \$? = $ac_status" >&5
7691 (exit "$ac_status"); } &&
7692 { ac_try='test -s "conftest$ac_exeext"'
7693 { (eval echo "$as_me:7693: \"$ac_try\"") >&5
7696 echo "$as_me:7696: \$? = $ac_status" >&5
7697 (exit "$ac_status"); }; }; then
7699 cf_cv_find_linkage_utf8=yes
7700 cf_cv_header_path_utf8=/usr/include
7701 cf_cv_library_path_utf8=/usr/lib
7702 cf_cv_library_file_utf8="-lutf8"
7705 echo "$as_me: failed program was:" >&5
7706 cat "conftest.$ac_ext" >&5
7708 cf_cv_find_linkage_utf8=no
7709 LIBS="$cf_save_LIBS"
7711 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7713 echo "${as_me:-configure}:7713: testing find linkage for utf8 library ..." 1>&5
7715 echo "${as_me:-configure}:7715: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7717 cf_save_CPPFLAGS="$CPPFLAGS"
7718 cf_test_CPPFLAGS="$CPPFLAGS"
7722 # collect the current set of include-directories from compiler flags
7723 cf_header_path_list=""
7724 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7725 for cf_header_path in $CPPFLAGS $CFLAGS
7727 case "$cf_header_path" in
7729 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7731 test "x$cf_header_path" != "xNONE" && \
7732 test -d "$cf_header_path" && \
7734 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7735 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
7736 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
7737 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
7738 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
7739 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7742 cf_header_path_list="$cf_header_path_list $cf_search"
7748 # add the variations for the package we are looking for
7752 test "x$prefix" != "xNONE" && \
7753 test -d "$prefix" && \
7755 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7756 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
7757 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
7758 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
7759 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
7760 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
7763 for cf_subdir_prefix in \
7772 test "x$cf_subdir_prefix" != "x$prefix" && \
7773 test -d "$cf_subdir_prefix" && \
7774 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
7775 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7776 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
7777 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
7778 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
7779 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
7780 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
7785 test "$includedir" != NONE && \
7786 test "$includedir" != "/usr/include" && \
7787 test -d "$includedir" && {
7788 test -d "$includedir" && cf_search="$cf_search $includedir"
7789 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
7792 test "$oldincludedir" != NONE && \
7793 test "$oldincludedir" != "/usr/include" && \
7794 test -d "$oldincludedir" && {
7795 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
7796 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
7799 cf_search="$cf_search $cf_header_path_list"
7801 for cf_cv_header_path_utf8 in $cf_search
7803 if test -d "$cf_cv_header_path_utf8" ; then
7804 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7806 echo "${as_me:-configure}:7806: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7808 CPPFLAGS="$cf_save_CPPFLAGS"
7810 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7811 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
7813 cat >"conftest.$ac_ext" <<_ACEOF
7814 #line 7814 "configure"
7815 #include "confdefs.h"
7817 #include <libutf8.h>
7826 rm -f "conftest.$ac_objext"
7827 if { (eval echo "$as_me:7827: \"$ac_compile\"") >&5
7828 (eval $ac_compile) 2>&5
7830 echo "$as_me:7830: \$? = $ac_status" >&5
7831 (exit "$ac_status"); } &&
7832 { ac_try='test -s "conftest.$ac_objext"'
7833 { (eval echo "$as_me:7833: \"$ac_try\"") >&5
7836 echo "$as_me:7836: \$? = $ac_status" >&5
7837 (exit "$ac_status"); }; }; then
7839 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7841 echo "${as_me:-configure}:7841: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7843 cf_cv_find_linkage_utf8=maybe
7844 cf_test_CPPFLAGS="$CPPFLAGS"
7847 echo "$as_me: failed program was:" >&5
7848 cat "conftest.$ac_ext" >&5
7850 CPPFLAGS="$cf_save_CPPFLAGS"
7853 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7857 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7859 echo "${as_me:-configure}:7859: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7861 cf_save_LIBS="$LIBS"
7862 cf_save_LDFLAGS="$LDFLAGS"
7864 if test "$cf_cv_find_linkage_utf8" != yes ; then
7867 cf_library_path_list=""
7868 if test -n "${LDFLAGS}${LIBS}" ; then
7869 for cf_library_path in $LDFLAGS $LIBS
7871 case "$cf_library_path" in
7873 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7875 test "x$cf_library_path" != "xNONE" && \
7876 test -d "$cf_library_path" && \
7878 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7879 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
7880 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
7881 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7882 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
7883 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7886 cf_library_path_list="$cf_library_path_list $cf_search"
7894 test "x$prefix" != "xNONE" && \
7895 test -d "$prefix" && \
7897 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7898 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
7899 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
7900 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
7901 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
7902 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
7905 for cf_subdir_prefix in \
7914 test "x$cf_subdir_prefix" != "x$prefix" && \
7915 test -d "$cf_subdir_prefix" && \
7916 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
7917 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7918 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
7919 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
7920 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
7921 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
7922 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
7927 cf_search="$cf_library_path_list $cf_search"
7929 for cf_cv_library_path_utf8 in $cf_search
7931 if test -d "$cf_cv_library_path_utf8" ; then
7932 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7934 echo "${as_me:-configure}:7934: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7936 CPPFLAGS="$cf_test_CPPFLAGS"
7937 LIBS="-lutf8 $cf_save_LIBS"
7938 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7939 cat >"conftest.$ac_ext" <<_ACEOF
7940 #line 7940 "configure"
7941 #include "confdefs.h"
7943 #include <libutf8.h>
7952 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7953 if { (eval echo "$as_me:7953: \"$ac_link\"") >&5
7954 (eval $ac_link) 2>&5
7956 echo "$as_me:7956: \$? = $ac_status" >&5
7957 (exit "$ac_status"); } &&
7958 { ac_try='test -s "conftest$ac_exeext"'
7959 { (eval echo "$as_me:7959: \"$ac_try\"") >&5
7962 echo "$as_me:7962: \$? = $ac_status" >&5
7963 (exit "$ac_status"); }; }; then
7965 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7967 echo "${as_me:-configure}:7967: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7969 cf_cv_find_linkage_utf8=yes
7970 cf_cv_library_file_utf8="-lutf8"
7973 echo "$as_me: failed program was:" >&5
7974 cat "conftest.$ac_ext" >&5
7976 CPPFLAGS="$cf_save_CPPFLAGS"
7977 LIBS="$cf_save_LIBS"
7978 LDFLAGS="$cf_save_LDFLAGS"
7981 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7984 CPPFLAGS="$cf_save_CPPFLAGS"
7985 LDFLAGS="$cf_save_LDFLAGS"
7989 cf_cv_find_linkage_utf8=no
7993 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7996 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7998 LIBS="$cf_save_LIBS"
8000 if test "$cf_cv_find_linkage_utf8" = yes ; then
8001 cf_cv_utf8_lib=add-on
8007 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8009 echo "$as_me:8009: result: $cf_cv_utf8_lib" >&5
8010 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
8012 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
8014 if test "$cf_cv_utf8_lib" = "add-on" ; then
8016 cat >>confdefs.h <<\EOF
8017 #define HAVE_LIBUTF8_H 1
8020 if test -n "$cf_cv_header_path_utf8" ; then
8021 for cf_add_incdir in $cf_cv_header_path_utf8
8023 while test "$cf_add_incdir" != /usr/include
8025 if test -d "$cf_add_incdir"
8028 if test -n "$CFLAGS$CPPFLAGS" ; then
8029 # a loop is needed to ensure we can add subdirs of existing dirs
8030 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8031 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8032 cf_have_incdir=yes; break
8037 if test "$cf_have_incdir" = no ; then
8038 if test "$cf_add_incdir" = /usr/local/include ; then
8039 if test "$GCC" = yes
8041 cf_save_CPPFLAGS=$CPPFLAGS
8043 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8044 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8046 cat >"conftest.$ac_ext" <<_ACEOF
8047 #line 8047 "configure"
8048 #include "confdefs.h"
8058 rm -f "conftest.$ac_objext"
8059 if { (eval echo "$as_me:8059: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8062 echo "$as_me:8062: \$? = $ac_status" >&5
8063 (exit "$ac_status"); } &&
8064 { ac_try='test -s "conftest.$ac_objext"'
8065 { (eval echo "$as_me:8065: \"$ac_try\"") >&5
8068 echo "$as_me:8068: \$? = $ac_status" >&5
8069 (exit "$ac_status"); }; }; then
8072 echo "$as_me: failed program was:" >&5
8073 cat "conftest.$ac_ext" >&5
8076 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8077 CPPFLAGS=$cf_save_CPPFLAGS
8082 if test "$cf_have_incdir" = no ; then
8083 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8085 echo "${as_me:-configure}:8085: testing adding $cf_add_incdir to include-path ..." 1>&5
8087 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8089 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
8090 test "$cf_top_incdir" = "$cf_add_incdir" && break
8091 cf_add_incdir="$cf_top_incdir"
8102 if test -n "$cf_cv_library_path_utf8" ; then
8103 for cf_add_libdir in $cf_cv_library_path_utf8
8105 if test "$cf_add_libdir" = /usr/lib ; then
8107 elif test -d "$cf_add_libdir"
8110 if test -n "$LDFLAGS$LIBS" ; then
8111 # a loop is needed to ensure we can add subdirs of existing dirs
8112 for cf_test_libdir in $LDFLAGS $LIBS ; do
8113 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8114 cf_have_libdir=yes; break
8118 if test "$cf_have_libdir" = no ; then
8119 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8121 echo "${as_me:-configure}:8121: testing adding $cf_add_libdir to library-path ..." 1>&5
8123 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8132 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8134 for cf_add_1lib in $cf_add_0lib; do
8135 for cf_add_2lib in $cf_add_libs; do
8136 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8141 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8147 cf_ncuconfig_root=$cf_cv_screen
8148 cf_have_ncuconfig=no
8150 if test "x${PKG_CONFIG:=none}" != xnone; then
8151 echo "$as_me:8151: checking pkg-config for $cf_ncuconfig_root" >&5
8152 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8153 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8154 echo "$as_me:8154: result: yes" >&5
8155 echo "${ECHO_T}yes" >&6
8157 echo "$as_me:8157: checking if the $cf_ncuconfig_root package files work" >&5
8158 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8159 cf_have_ncuconfig=unknown
8161 cf_save_CFLAGS="$CFLAGS"
8162 cf_save_CPPFLAGS="$CPPFLAGS"
8163 cf_save_LIBS="$LIBS"
8165 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8166 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8168 # while -W for passing linker flags is prevalent, it is not "standard".
8169 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
8170 # incompatible _and_ non-standard -W option which gives an error. Work
8171 # around that pitfall.
8172 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
8178 cf_new_extra_cppflags=
8180 for cf_add_cflags in $cf_pkg_cflags
8182 case "$cf_fix_cppflags" in
8184 case "$cf_add_cflags" in
8185 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8186 case "$cf_add_cflags" in
8188 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8190 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8191 && test -z "${cf_tst_cflags}" \
8192 && cf_fix_cppflags=yes
8194 if test "$cf_fix_cppflags" = yes ; then
8196 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8197 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8200 elif test "${cf_tst_cflags}" = "\"'" ; then
8202 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8203 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8213 case "$cf_add_cflags" in
8215 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8217 CPPFLAGS=`echo "$CPPFLAGS" | \
8218 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8219 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8224 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8225 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8232 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8233 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8240 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8241 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8243 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8245 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8246 && test -z "${cf_tst_cflags}" \
8247 && cf_fix_cppflags=no
8252 if test -n "$cf_new_cflags" ; then
8254 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8255 CFLAGS="${CFLAGS}$cf_new_cflags"
8259 if test -n "$cf_new_cppflags" ; then
8261 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8262 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8266 if test -n "$cf_new_extra_cppflags" ; then
8268 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8269 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8276 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8278 for cf_add_1lib in $cf_add_0lib; do
8279 for cf_add_2lib in $cf_add_libs; do
8280 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8285 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8289 cat >"conftest.$ac_ext" <<_ACEOF
8290 #line 8290 "configure"
8291 #include "confdefs.h"
8292 #include <${cf_cv_ncurses_header:-curses.h}>
8296 initscr(); mousemask(0,0); tigetstr((char *)0);
8301 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8302 if { (eval echo "$as_me:8302: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>&5
8305 echo "$as_me:8305: \$? = $ac_status" >&5
8306 (exit "$ac_status"); } &&
8307 { ac_try='test -s "conftest$ac_exeext"'
8308 { (eval echo "$as_me:8308: \"$ac_try\"") >&5
8311 echo "$as_me:8311: \$? = $ac_status" >&5
8312 (exit "$ac_status"); }; }; then
8313 if test "$cross_compiling" = yes; then
8314 cf_test_ncuconfig=maybe
8316 cat >"conftest.$ac_ext" <<_ACEOF
8317 #line 8317 "configure"
8318 #include "confdefs.h"
8319 #include <${cf_cv_ncurses_header:-curses.h}>
8321 { const char *xx = curses_version(); return (xx == 0); }
8323 rm -f "conftest$ac_exeext"
8324 if { (eval echo "$as_me:8324: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>&5
8327 echo "$as_me:8327: \$? = $ac_status" >&5
8328 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
8329 { (eval echo "$as_me:8329: \"$ac_try\"") >&5
8332 echo "$as_me:8332: \$? = $ac_status" >&5
8333 (exit "$ac_status"); }; }; then
8334 cf_test_ncuconfig=yes
8336 echo "$as_me: program exited with status $ac_status" >&5
8337 echo "$as_me: failed program was:" >&5
8338 cat "conftest.$ac_ext" >&5
8339 cf_test_ncuconfig=no
8341 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8344 echo "$as_me: failed program was:" >&5
8345 cat "conftest.$ac_ext" >&5
8346 cf_test_ncuconfig=no
8348 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8350 CFLAGS="$cf_save_CFLAGS"
8351 CPPFLAGS="$cf_save_CPPFLAGS"
8352 LIBS="$cf_save_LIBS"
8354 if test "x$cf_test_ncuconfig" != xyes; then
8355 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
8356 cf_pkg_cflags="$cf_temp"
8357 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
8358 cf_pkg_libs="$cf_temp"
8363 for cf_add_cflags in $cf_pkg_cflags
8365 case "x$cf_add_cflags" in
8368 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8371 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'`
8372 test "$CFLAGS" != "$cf_old_cflag" || break
8374 CFLAGS="$cf_old_cflag"
8377 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8380 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'`
8381 test "$CPPFLAGS" != "$cf_old_cflag" || break
8383 CPPFLAGS="$cf_old_cflag"
8392 cf_new_extra_cppflags=
8394 for cf_add_cflags in $cf_add_cflags
8396 case "$cf_fix_cppflags" in
8398 case "$cf_add_cflags" in
8399 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8400 case "$cf_add_cflags" in
8402 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8404 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8405 && test -z "${cf_tst_cflags}" \
8406 && cf_fix_cppflags=yes
8408 if test "$cf_fix_cppflags" = yes ; then
8410 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8411 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8414 elif test "${cf_tst_cflags}" = "\"'" ; then
8416 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8417 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8427 case "$cf_add_cflags" in
8429 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8431 CPPFLAGS=`echo "$CPPFLAGS" | \
8432 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8433 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8438 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8439 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8446 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8447 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8454 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8455 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8457 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8459 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8460 && test -z "${cf_tst_cflags}" \
8461 && cf_fix_cppflags=no
8466 if test -n "$cf_new_cflags" ; then
8468 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8469 CFLAGS="${CFLAGS}$cf_new_cflags"
8473 if test -n "$cf_new_cppflags" ; then
8475 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8476 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8480 if test -n "$cf_new_extra_cppflags" ; then
8482 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8483 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8492 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8494 for cf_add_1lib in $cf_add_0lib; do
8495 for cf_add_2lib in $cf_add_libs; do
8496 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8501 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8505 cat >"conftest.$ac_ext" <<_ACEOF
8506 #line 8506 "configure"
8507 #include "confdefs.h"
8508 #include <${cf_cv_ncurses_header:-curses.h}>
8512 initscr(); mousemask(0,0); tigetstr((char *)0);
8517 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8518 if { (eval echo "$as_me:8518: \"$ac_link\"") >&5
8519 (eval $ac_link) 2>&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit "$ac_status"); } &&
8523 { ac_try='test -s "conftest$ac_exeext"'
8524 { (eval echo "$as_me:8524: \"$ac_try\"") >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit "$ac_status"); }; }; then
8529 if test "$cross_compiling" = yes; then
8530 cf_have_ncuconfig=maybe
8532 cat >"conftest.$ac_ext" <<_ACEOF
8533 #line 8533 "configure"
8534 #include "confdefs.h"
8535 #include <${cf_cv_ncurses_header:-curses.h}>
8537 { const char *xx = curses_version(); return (xx == 0); }
8539 rm -f "conftest$ac_exeext"
8540 if { (eval echo "$as_me:8540: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>&5
8543 echo "$as_me:8543: \$? = $ac_status" >&5
8544 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
8545 { (eval echo "$as_me:8545: \"$ac_try\"") >&5
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 (exit "$ac_status"); }; }; then
8550 cf_have_ncuconfig=yes
8552 echo "$as_me: program exited with status $ac_status" >&5
8553 echo "$as_me: failed program was:" >&5
8554 cat "conftest.$ac_ext" >&5
8555 cf_have_ncuconfig=no
8557 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8560 echo "$as_me: failed program was:" >&5
8561 cat "conftest.$ac_ext" >&5
8562 cf_have_ncuconfig=no
8564 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8565 echo "$as_me:8565: result: $cf_have_ncuconfig" >&5
8566 echo "${ECHO_T}$cf_have_ncuconfig" >&6
8567 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
8568 if test "$cf_have_ncuconfig" != "yes"
8570 CPPFLAGS="$cf_save_CPPFLAGS"
8571 LIBS="$cf_save_LIBS"
8572 NCURSES_CONFIG_PKG=none
8575 cat >>confdefs.h <<\EOF
8579 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
8581 echo "$as_me:8581: checking for terminfo header" >&5
8582 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8583 if test "${cf_cv_term_header+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 case "${cf_cv_ncurses_header}" in
8588 (*/ncurses.h|*/ncursesw.h)
8589 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8592 cf_term_header=term.h
8596 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8598 cat >"conftest.$ac_ext" <<_ACEOF
8599 #line 8599 "configure"
8600 #include "confdefs.h"
8602 #include <${cf_cv_ncurses_header:-curses.h}>
8608 int x = auto_left_margin; (void)x
8613 rm -f "conftest.$ac_objext"
8614 if { (eval echo "$as_me:8614: \"$ac_compile\"") >&5
8615 (eval $ac_compile) 2>&5
8617 echo "$as_me:8617: \$? = $ac_status" >&5
8618 (exit "$ac_status"); } &&
8619 { ac_try='test -s "conftest.$ac_objext"'
8620 { (eval echo "$as_me:8620: \"$ac_try\"") >&5
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 (exit "$ac_status"); }; }; then
8626 cf_cv_term_header="$cf_test"
8628 echo "$as_me: failed program was:" >&5
8629 cat "conftest.$ac_ext" >&5
8631 cf_cv_term_header=unknown
8634 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8635 test "$cf_cv_term_header" != unknown && break
8639 echo "$as_me:8639: result: $cf_cv_term_header" >&5
8640 echo "${ECHO_T}$cf_cv_term_header" >&6
8642 # Set definitions to allow ifdef'ing to accommodate subdirectories
8644 case "$cf_cv_term_header" in
8647 cat >>confdefs.h <<\EOF
8648 #define HAVE_TERM_H 1
8654 case "$cf_cv_term_header" in
8657 cat >>confdefs.h <<\EOF
8658 #define HAVE_NCURSES_TERM_H 1
8664 cat >>confdefs.h <<\EOF
8665 #define HAVE_NCURSESW_TERM_H 1
8674 echo "$as_me:8674: result: no" >&5
8675 echo "${ECHO_T}no" >&6
8676 NCURSES_CONFIG_PKG=none
8679 NCURSES_CONFIG_PKG=none
8682 if test "x$cf_have_ncuconfig" = "xno"; then
8683 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
8685 if test -n "$ac_tool_prefix"; then
8686 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8690 echo "$as_me:8690: checking for $ac_word" >&5
8691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8692 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 if test -n "$NCURSES_CONFIG"; then
8696 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8698 ac_save_IFS=$IFS; IFS=$ac_path_separator
8700 for ac_dir in $ac_dummy; do
8702 test -z "$ac_dir" && ac_dir=.
8703 $as_executable_p "$ac_dir/$ac_word" || continue
8704 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8705 echo "$as_me:8705: found $ac_dir/$ac_word" >&5
8711 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8712 if test -n "$NCURSES_CONFIG"; then
8713 echo "$as_me:8713: result: $NCURSES_CONFIG" >&5
8714 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8716 echo "$as_me:8716: result: no" >&5
8717 echo "${ECHO_T}no" >&6
8720 test -n "$NCURSES_CONFIG" && break
8723 if test -z "$NCURSES_CONFIG"; then
8724 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8725 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8727 # Extract the first word of "$ac_prog", so it can be a program name with args.
8728 set dummy $ac_prog; ac_word=$2
8729 echo "$as_me:8729: checking for $ac_word" >&5
8730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8731 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 if test -n "$ac_ct_NCURSES_CONFIG"; then
8735 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8737 ac_save_IFS=$IFS; IFS=$ac_path_separator
8739 for ac_dir in $ac_dummy; do
8741 test -z "$ac_dir" && ac_dir=.
8742 $as_executable_p "$ac_dir/$ac_word" || continue
8743 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8744 echo "$as_me:8744: found $ac_dir/$ac_word" >&5
8750 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8751 if test -n "$ac_ct_NCURSES_CONFIG"; then
8752 echo "$as_me:8752: result: $ac_ct_NCURSES_CONFIG" >&5
8753 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8755 echo "$as_me:8755: result: no" >&5
8756 echo "${ECHO_T}no" >&6
8759 test -n "$ac_ct_NCURSES_CONFIG" && break
8761 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8763 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8766 if test "$NCURSES_CONFIG" != none ; then
8768 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
8770 case "x$cf_add_cflags" in
8773 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8776 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'`
8777 test "$CFLAGS" != "$cf_old_cflag" || break
8779 CFLAGS="$cf_old_cflag"
8782 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8785 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'`
8786 test "$CPPFLAGS" != "$cf_old_cflag" || break
8788 CPPFLAGS="$cf_old_cflag"
8797 cf_new_extra_cppflags=
8799 for cf_add_cflags in $cf_add_cflags
8801 case "$cf_fix_cppflags" in
8803 case "$cf_add_cflags" in
8804 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8805 case "$cf_add_cflags" in
8807 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8809 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8810 && test -z "${cf_tst_cflags}" \
8811 && cf_fix_cppflags=yes
8813 if test "$cf_fix_cppflags" = yes ; then
8815 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8816 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8819 elif test "${cf_tst_cflags}" = "\"'" ; then
8821 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8822 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8832 case "$cf_add_cflags" in
8834 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8836 CPPFLAGS=`echo "$CPPFLAGS" | \
8837 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8838 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8843 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8844 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8851 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8852 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8859 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8860 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8862 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8864 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8865 && test -z "${cf_tst_cflags}" \
8866 && cf_fix_cppflags=no
8871 if test -n "$cf_new_cflags" ; then
8873 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8874 CFLAGS="${CFLAGS}$cf_new_cflags"
8878 if test -n "$cf_new_cppflags" ; then
8880 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8881 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8885 if test -n "$cf_new_extra_cppflags" ; then
8887 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8888 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8897 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8899 for cf_add_1lib in $cf_add_0lib; do
8900 for cf_add_2lib in $cf_add_libs; do
8901 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8906 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8910 # even with config script, some packages use no-override for curses.h
8912 echo "$as_me:8912: checking if we have identified curses headers" >&5
8913 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8914 if test "${cf_cv_ncurses_header+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 cf_cv_ncurses_header=none
8920 ncurses.h $cf_cv_screen/ncurses.h \
8921 curses.h $cf_cv_screen/curses.h
8923 cat >"conftest.$ac_ext" <<_ACEOF
8924 #line 8924 "configure"
8925 #include "confdefs.h"
8926 #include <${cf_header}>
8930 initscr(); tgoto("?", 0,0)
8935 rm -f "conftest.$ac_objext"
8936 if { (eval echo "$as_me:8936: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>&5
8939 echo "$as_me:8939: \$? = $ac_status" >&5
8940 (exit "$ac_status"); } &&
8941 { ac_try='test -s "conftest.$ac_objext"'
8942 { (eval echo "$as_me:8942: \"$ac_try\"") >&5
8945 echo "$as_me:8945: \$? = $ac_status" >&5
8946 (exit "$ac_status"); }; }; then
8947 cf_cv_ncurses_header=$cf_header; break
8949 echo "$as_me: failed program was:" >&5
8950 cat "conftest.$ac_ext" >&5
8952 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8956 echo "$as_me:8956: result: $cf_cv_ncurses_header" >&5
8957 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8959 if test "$cf_cv_ncurses_header" = none ; then
8960 { { echo "$as_me:8960: error: No curses header-files found" >&5
8961 echo "$as_me: error: No curses header-files found" >&2;}
8962 { (exit 1); exit 1; }; }
8965 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8967 for ac_header in $cf_cv_ncurses_header
8969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8970 echo "$as_me:8970: checking for $ac_header" >&5
8971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 cat >"conftest.$ac_ext" <<_ACEOF
8976 #line 8976 "configure"
8977 #include "confdefs.h"
8978 #include <$ac_header>
8980 if { (eval echo "$as_me:8980: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8981 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8983 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 echo "$as_me:8986: \$? = $ac_status" >&5
8987 (exit "$ac_status"); } >/dev/null; then
8988 if test -s conftest.err; then
8989 ac_cpp_err=$ac_c_preproc_warn_flag
8996 if test -z "$ac_cpp_err"; then
8997 eval "$as_ac_Header=yes"
8999 echo "$as_me: failed program was:" >&5
9000 cat "conftest.$ac_ext" >&5
9001 eval "$as_ac_Header=no"
9003 rm -f conftest.err "conftest.$ac_ext"
9005 echo "$as_me:9005: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9006 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9007 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9008 cat >>confdefs.h <<EOF
9009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9015 cat >>confdefs.h <<\EOF
9019 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9021 cat >>confdefs.h <<EOF
9022 #define $cf_nculib_ROOT 1
9025 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
9029 cf_ncuhdr_root=$cf_cv_screen
9031 test -n "$cf_cv_curses_dir" && \
9032 test "$cf_cv_curses_dir" != "no" && { \
9034 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
9035 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
9037 while test "$cf_add_incdir" != /usr/include
9039 if test -d "$cf_add_incdir"
9042 if test -n "$CFLAGS$CPPFLAGS" ; then
9043 # a loop is needed to ensure we can add subdirs of existing dirs
9044 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9045 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9046 cf_have_incdir=yes; break
9051 if test "$cf_have_incdir" = no ; then
9052 if test "$cf_add_incdir" = /usr/local/include ; then
9053 if test "$GCC" = yes
9055 cf_save_CPPFLAGS=$CPPFLAGS
9057 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9058 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9060 cat >"conftest.$ac_ext" <<_ACEOF
9061 #line 9061 "configure"
9062 #include "confdefs.h"
9072 rm -f "conftest.$ac_objext"
9073 if { (eval echo "$as_me:9073: \"$ac_compile\"") >&5
9074 (eval $ac_compile) 2>&5
9076 echo "$as_me:9076: \$? = $ac_status" >&5
9077 (exit "$ac_status"); } &&
9078 { ac_try='test -s "conftest.$ac_objext"'
9079 { (eval echo "$as_me:9079: \"$ac_try\"") >&5
9082 echo "$as_me:9082: \$? = $ac_status" >&5
9083 (exit "$ac_status"); }; }; then
9086 echo "$as_me: failed program was:" >&5
9087 cat "conftest.$ac_ext" >&5
9090 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9091 CPPFLAGS=$cf_save_CPPFLAGS
9096 if test "$cf_have_incdir" = no ; then
9097 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9099 echo "${as_me:-configure}:9099: testing adding $cf_add_incdir to include-path ..." 1>&5
9101 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9103 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9104 test "$cf_top_incdir" = "$cf_add_incdir" && break
9105 cf_add_incdir="$cf_top_incdir"
9118 echo "$as_me:9118: checking for $cf_ncuhdr_root header in include-path" >&5
9119 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
9120 if test "${cf_cv_ncurses_h+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
9125 { test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_header_list curses.h ncurses.h"
9126 for cf_header in $cf_header_list
9129 cat >"conftest.$ac_ext" <<_ACEOF
9130 #line 9130 "configure"
9131 #include "confdefs.h"
9133 #include <$cf_header>
9138 #ifdef NCURSES_VERSION
9140 printf("%s\\n", NCURSES_VERSION);
9153 rm -f "conftest.$ac_objext"
9154 if { (eval echo "$as_me:9154: \"$ac_compile\"") >&5
9155 (eval $ac_compile) 2>&5
9157 echo "$as_me:9157: \$? = $ac_status" >&5
9158 (exit "$ac_status"); } &&
9159 { ac_try='test -s "conftest.$ac_objext"'
9160 { (eval echo "$as_me:9160: \"$ac_try\"") >&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit "$ac_status"); }; }; then
9165 cf_cv_ncurses_h=$cf_header
9168 echo "$as_me: failed program was:" >&5
9169 cat "conftest.$ac_ext" >&5
9172 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9174 test "$cf_cv_ncurses_h" != no && break
9178 echo "$as_me:9178: result: $cf_cv_ncurses_h" >&5
9179 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
9181 if test "$cf_cv_ncurses_h" != no ; then
9182 cf_cv_ncurses_header=$cf_cv_ncurses_h
9185 echo "$as_me:9185: checking for $cf_ncuhdr_root include-path" >&5
9186 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
9187 if test "${cf_cv_ncurses_h2+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 test -n "$verbose" && echo
9195 # collect the current set of include-directories from compiler flags
9196 cf_header_path_list=""
9197 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9198 for cf_header_path in $CPPFLAGS $CFLAGS
9200 case "$cf_header_path" in
9202 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9204 test "x$cf_header_path" != "xNONE" && \
9205 test -d "$cf_header_path" && \
9207 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9208 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
9209 test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
9210 test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
9211 test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
9212 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"
9215 cf_header_path_list="$cf_header_path_list $cf_search"
9221 # add the variations for the package we are looking for
9225 test "x$prefix" != "xNONE" && \
9226 test -d "$prefix" && \
9228 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9229 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
9230 test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
9231 test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
9232 test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
9233 test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9236 for cf_subdir_prefix in \
9245 test "x$cf_subdir_prefix" != "x$prefix" && \
9246 test -d "$cf_subdir_prefix" && \
9247 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
9248 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9249 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
9250 test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
9251 test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
9252 test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
9253 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"
9258 test "$includedir" != NONE && \
9259 test "$includedir" != "/usr/include" && \
9260 test -d "$includedir" && {
9261 test -d "$includedir" && cf_search="$cf_search $includedir"
9262 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
9265 test "$oldincludedir" != NONE && \
9266 test "$oldincludedir" != "/usr/include" && \
9267 test -d "$oldincludedir" && {
9268 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
9269 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
9272 cf_search="$cf_search $cf_header_path_list"
9274 test -n "$verbose" && echo "search path $cf_search"
9275 cf_save2_CPPFLAGS="$CPPFLAGS"
9276 for cf_incdir in $cf_search
9279 if test -n "$cf_incdir" ; then
9280 for cf_add_incdir in $cf_incdir
9282 while test "$cf_add_incdir" != /usr/include
9284 if test -d "$cf_add_incdir"
9287 if test -n "$CFLAGS$CPPFLAGS" ; then
9288 # a loop is needed to ensure we can add subdirs of existing dirs
9289 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9290 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9291 cf_have_incdir=yes; break
9296 if test "$cf_have_incdir" = no ; then
9297 if test "$cf_add_incdir" = /usr/local/include ; then
9298 if test "$GCC" = yes
9300 cf_save_CPPFLAGS=$CPPFLAGS
9302 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9303 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9305 cat >"conftest.$ac_ext" <<_ACEOF
9306 #line 9306 "configure"
9307 #include "confdefs.h"
9317 rm -f "conftest.$ac_objext"
9318 if { (eval echo "$as_me:9318: \"$ac_compile\"") >&5
9319 (eval $ac_compile) 2>&5
9321 echo "$as_me:9321: \$? = $ac_status" >&5
9322 (exit "$ac_status"); } &&
9323 { ac_try='test -s "conftest.$ac_objext"'
9324 { (eval echo "$as_me:9324: \"$ac_try\"") >&5
9327 echo "$as_me:9327: \$? = $ac_status" >&5
9328 (exit "$ac_status"); }; }; then
9331 echo "$as_me: failed program was:" >&5
9332 cat "conftest.$ac_ext" >&5
9335 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9336 CPPFLAGS=$cf_save_CPPFLAGS
9341 if test "$cf_have_incdir" = no ; then
9342 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9344 echo "${as_me:-configure}:9344: testing adding $cf_add_incdir to include-path ..." 1>&5
9346 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9348 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9349 test "$cf_top_incdir" = "$cf_add_incdir" && break
9350 cf_add_incdir="$cf_top_incdir"
9366 cat >"conftest.$ac_ext" <<_ACEOF
9367 #line 9367 "configure"
9368 #include "confdefs.h"
9370 #include <$cf_header>
9375 #ifdef NCURSES_VERSION
9377 printf("%s\\n", NCURSES_VERSION);
9390 rm -f "conftest.$ac_objext"
9391 if { (eval echo "$as_me:9391: \"$ac_compile\"") >&5
9392 (eval $ac_compile) 2>&5
9394 echo "$as_me:9394: \$? = $ac_status" >&5
9395 (exit "$ac_status"); } &&
9396 { ac_try='test -s "conftest.$ac_objext"'
9397 { (eval echo "$as_me:9397: \"$ac_try\"") >&5
9400 echo "$as_me:9400: \$? = $ac_status" >&5
9401 (exit "$ac_status"); }; }; then
9402 cf_cv_ncurses_h2=$cf_header
9405 echo "$as_me: failed program was:" >&5
9406 cat "conftest.$ac_ext" >&5
9409 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9411 if test "$cf_cv_ncurses_h2" != no ; then
9412 cf_cv_ncurses_h2=$cf_incdir/$cf_header
9413 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
9416 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
9418 CPPFLAGS="$cf_save2_CPPFLAGS"
9419 test "$cf_cv_ncurses_h2" != no && break
9421 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9421: error: not found" >&5
9422 echo "$as_me: error: not found" >&2;}
9423 { (exit 1); exit 1; }; }
9426 echo "$as_me:9426: result: $cf_cv_ncurses_h2" >&5
9427 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
9429 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
9430 cf_cv_ncurses_header="`basename "$cf_cv_ncurses_h2"`"
9431 if test "`basename "$cf_1st_incdir"`" = "$cf_ncuhdr_root" ; then
9432 cf_cv_ncurses_header="$cf_ncuhdr_root/$cf_cv_ncurses_header"
9435 if test -n "$cf_1st_incdir" ; then
9436 for cf_add_incdir in $cf_1st_incdir
9438 while test "$cf_add_incdir" != /usr/include
9440 if test -d "$cf_add_incdir"
9443 if test -n "$CFLAGS$CPPFLAGS" ; then
9444 # a loop is needed to ensure we can add subdirs of existing dirs
9445 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9446 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9447 cf_have_incdir=yes; break
9452 if test "$cf_have_incdir" = no ; then
9453 if test "$cf_add_incdir" = /usr/local/include ; then
9454 if test "$GCC" = yes
9456 cf_save_CPPFLAGS=$CPPFLAGS
9458 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9459 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9461 cat >"conftest.$ac_ext" <<_ACEOF
9462 #line 9462 "configure"
9463 #include "confdefs.h"
9473 rm -f "conftest.$ac_objext"
9474 if { (eval echo "$as_me:9474: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>&5
9477 echo "$as_me:9477: \$? = $ac_status" >&5
9478 (exit "$ac_status"); } &&
9479 { ac_try='test -s "conftest.$ac_objext"'
9480 { (eval echo "$as_me:9480: \"$ac_try\"") >&5
9483 echo "$as_me:9483: \$? = $ac_status" >&5
9484 (exit "$ac_status"); }; }; then
9487 echo "$as_me: failed program was:" >&5
9488 cat "conftest.$ac_ext" >&5
9491 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9492 CPPFLAGS=$cf_save_CPPFLAGS
9497 if test "$cf_have_incdir" = no ; then
9498 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9500 echo "${as_me:-configure}:9500: testing adding $cf_add_incdir to include-path ..." 1>&5
9502 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9504 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9505 test "$cf_top_incdir" = "$cf_add_incdir" && break
9506 cf_add_incdir="$cf_top_incdir"
9519 # Set definitions to allow ifdef'ing for ncurses.h
9521 case "$cf_cv_ncurses_header" in
9524 cat >>confdefs.h <<\EOF
9525 #define HAVE_NCURSES_H 1
9531 case "$cf_cv_ncurses_header" in
9532 (ncurses/curses.h|ncurses/ncurses.h)
9534 cat >>confdefs.h <<\EOF
9535 #define HAVE_NCURSES_NCURSES_H 1
9539 (ncursesw/curses.h|ncursesw/ncurses.h)
9541 cat >>confdefs.h <<\EOF
9542 #define HAVE_NCURSESW_NCURSES_H 1
9548 echo "$as_me:9548: checking for terminfo header" >&5
9549 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9550 if test "${cf_cv_term_header+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 case "${cf_cv_ncurses_header}" in
9555 (*/ncurses.h|*/ncursesw.h)
9556 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9559 cf_term_header=term.h
9563 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9565 cat >"conftest.$ac_ext" <<_ACEOF
9566 #line 9566 "configure"
9567 #include "confdefs.h"
9569 #include <${cf_cv_ncurses_header:-curses.h}>
9575 int x = auto_left_margin; (void)x
9580 rm -f "conftest.$ac_objext"
9581 if { (eval echo "$as_me:9581: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9584 echo "$as_me:9584: \$? = $ac_status" >&5
9585 (exit "$ac_status"); } &&
9586 { ac_try='test -s "conftest.$ac_objext"'
9587 { (eval echo "$as_me:9587: \"$ac_try\"") >&5
9590 echo "$as_me:9590: \$? = $ac_status" >&5
9591 (exit "$ac_status"); }; }; then
9593 cf_cv_term_header="$cf_test"
9595 echo "$as_me: failed program was:" >&5
9596 cat "conftest.$ac_ext" >&5
9598 cf_cv_term_header=unknown
9601 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9602 test "$cf_cv_term_header" != unknown && break
9606 echo "$as_me:9606: result: $cf_cv_term_header" >&5
9607 echo "${ECHO_T}$cf_cv_term_header" >&6
9609 # Set definitions to allow ifdef'ing to accommodate subdirectories
9611 case "$cf_cv_term_header" in
9614 cat >>confdefs.h <<\EOF
9615 #define HAVE_TERM_H 1
9621 case "$cf_cv_term_header" in
9624 cat >>confdefs.h <<\EOF
9625 #define HAVE_NCURSES_TERM_H 1
9631 cat >>confdefs.h <<\EOF
9632 #define HAVE_NCURSESW_TERM_H 1
9638 # some applications need this, but should check for NCURSES_VERSION
9640 cat >>confdefs.h <<\EOF
9644 echo "$as_me:9644: checking for ncurses version" >&5
9645 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
9646 if test "${cf_cv_ncurses_version+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 cf_cv_ncurses_version=no
9652 rm -f "$cf_tempfile"
9653 if test "$cross_compiling" = yes; then
9655 # This will not work if the preprocessor splits the line after the
9656 # Autoconf token. The 'unproto' program does that.
9657 cat > "conftest.$ac_ext" <<EOF
9658 #include <${cf_cv_ncurses_header:-curses.h}>
9660 #ifdef NCURSES_VERSION
9661 Autoconf NCURSES_VERSION
9669 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9670 { (eval echo "$as_me:9670: \"$cf_try\"") >&5
9673 echo "$as_me:9673: \$? = $ac_status" >&5
9674 (exit "$ac_status"); }
9675 if test -f conftest.out ; then
9676 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
9677 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9682 cat >"conftest.$ac_ext" <<_ACEOF
9683 #line 9683 "configure"
9684 #include "confdefs.h"
9686 #include <${cf_cv_ncurses_header:-curses.h}>
9690 FILE *fp = fopen("$cf_tempfile", "w");
9691 #ifdef NCURSES_VERSION
9692 # ifdef NCURSES_VERSION_PATCH
9693 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9695 fprintf(fp, "%s\\n", NCURSES_VERSION);
9699 fprintf(fp, "old\\n");
9704 ${cf_cv_main_return:-return}(0);
9707 rm -f "conftest$ac_exeext"
9708 if { (eval echo "$as_me:9708: \"$ac_link\"") >&5
9709 (eval $ac_link) 2>&5
9711 echo "$as_me:9711: \$? = $ac_status" >&5
9712 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9713 { (eval echo "$as_me:9713: \"$ac_try\"") >&5
9716 echo "$as_me:9716: \$? = $ac_status" >&5
9717 (exit "$ac_status"); }; }; then
9719 cf_cv_ncurses_version=`cat $cf_tempfile`
9721 echo "$as_me: program exited with status $ac_status" >&5
9722 echo "$as_me: failed program was:" >&5
9723 cat "conftest.$ac_ext" >&5
9725 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9727 rm -f "$cf_tempfile"
9730 echo "$as_me:9730: result: $cf_cv_ncurses_version" >&5
9731 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9732 test "$cf_cv_ncurses_version" = no ||
9733 cat >>confdefs.h <<\EOF
9737 cf_nculib_root=$cf_cv_screen
9738 # This works, except for the special case where we find gpm, but
9739 # ncurses is in a nonstandard location via $LIBS, and we really want
9742 cf_ncurses_SAVE="$LIBS"
9743 echo "$as_me:9743: checking for Gpm_Open in -lgpm" >&5
9744 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9745 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_check_lib_save_LIBS=$LIBS
9750 cat >"conftest.$ac_ext" <<_ACEOF
9751 #line 9751 "configure"
9752 #include "confdefs.h"
9754 /* Override any gcc2 internal prototype to avoid an error. */
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9769 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9770 if { (eval echo "$as_me:9770: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>&5
9773 echo "$as_me:9773: \$? = $ac_status" >&5
9774 (exit "$ac_status"); } &&
9775 { ac_try='test -s "conftest$ac_exeext"'
9776 { (eval echo "$as_me:9776: \"$ac_try\"") >&5
9779 echo "$as_me:9779: \$? = $ac_status" >&5
9780 (exit "$ac_status"); }; }; then
9781 ac_cv_lib_gpm_Gpm_Open=yes
9783 echo "$as_me: failed program was:" >&5
9784 cat "conftest.$ac_ext" >&5
9785 ac_cv_lib_gpm_Gpm_Open=no
9787 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9788 LIBS=$ac_check_lib_save_LIBS
9790 echo "$as_me:9790: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9791 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9792 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
9793 echo "$as_me:9793: checking for initscr in -lgpm" >&5
9794 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9795 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 ac_check_lib_save_LIBS=$LIBS
9800 cat >"conftest.$ac_ext" <<_ACEOF
9801 #line 9801 "configure"
9802 #include "confdefs.h"
9804 /* Override any gcc2 internal prototype to avoid an error. */
9808 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9819 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9820 if { (eval echo "$as_me:9820: \"$ac_link\"") >&5
9821 (eval $ac_link) 2>&5
9823 echo "$as_me:9823: \$? = $ac_status" >&5
9824 (exit "$ac_status"); } &&
9825 { ac_try='test -s "conftest$ac_exeext"'
9826 { (eval echo "$as_me:9826: \"$ac_try\"") >&5
9829 echo "$as_me:9829: \$? = $ac_status" >&5
9830 (exit "$ac_status"); }; }; then
9831 ac_cv_lib_gpm_initscr=yes
9833 echo "$as_me: failed program was:" >&5
9834 cat "conftest.$ac_ext" >&5
9835 ac_cv_lib_gpm_initscr=no
9837 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9838 LIBS=$ac_check_lib_save_LIBS
9840 echo "$as_me:9840: result: $ac_cv_lib_gpm_initscr" >&5
9841 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9842 if test "$ac_cv_lib_gpm_initscr" = yes; then
9843 LIBS="$cf_ncurses_SAVE"
9845 cf_ncurses_LIBS="-lgpm"
9852 # This is only necessary if you are linking against an obsolete
9853 # version of ncurses (but it should do no harm, since it is static).
9854 if test "$cf_nculib_root" = ncurses ; then
9855 echo "$as_me:9855: checking for tgoto in -lmytinfo" >&5
9856 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9857 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 ac_check_lib_save_LIBS=$LIBS
9861 LIBS="-lmytinfo $LIBS"
9862 cat >"conftest.$ac_ext" <<_ACEOF
9863 #line 9863 "configure"
9864 #include "confdefs.h"
9866 /* Override any gcc2 internal prototype to avoid an error. */
9870 /* We use char because int might match the return type of a gcc2
9871 builtin and then its argument prototype would still apply. */
9881 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9882 if { (eval echo "$as_me:9882: \"$ac_link\"") >&5
9883 (eval $ac_link) 2>&5
9885 echo "$as_me:9885: \$? = $ac_status" >&5
9886 (exit "$ac_status"); } &&
9887 { ac_try='test -s "conftest$ac_exeext"'
9888 { (eval echo "$as_me:9888: \"$ac_try\"") >&5
9891 echo "$as_me:9891: \$? = $ac_status" >&5
9892 (exit "$ac_status"); }; }; then
9893 ac_cv_lib_mytinfo_tgoto=yes
9895 echo "$as_me: failed program was:" >&5
9896 cat "conftest.$ac_ext" >&5
9897 ac_cv_lib_mytinfo_tgoto=no
9899 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9900 LIBS=$ac_check_lib_save_LIBS
9902 echo "$as_me:9902: result: $ac_cv_lib_mytinfo_tgoto" >&5
9903 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9904 if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
9905 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9915 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9917 for cf_add_1lib in $cf_add_0lib; do
9918 for cf_add_2lib in $cf_add_libs; do
9919 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9924 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9928 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
9934 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9936 for cf_add_1lib in $cf_add_0lib; do
9937 for cf_add_2lib in $cf_add_libs; do
9938 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9943 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9949 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
9951 echo "$as_me:9951: checking for initscr" >&5
9952 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9953 if test "${ac_cv_func_initscr+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 cat >"conftest.$ac_ext" <<_ACEOF
9957 #line 9957 "configure"
9958 #include "confdefs.h"
9959 #define initscr autoconf_temporary
9960 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9967 /* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9969 char initscr (void);
9975 /* The GNU C library defines stubs for functions which it implements
9976 to always fail with ENOSYS. Some functions are actually named
9977 something starting with __ and the normal name is an alias. */
9978 #if defined (__stub_initscr) || defined (__stub___initscr)
9979 #error found stub for initscr
9987 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9988 if { (eval echo "$as_me:9988: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>&5
9991 echo "$as_me:9991: \$? = $ac_status" >&5
9992 (exit "$ac_status"); } &&
9993 { ac_try='test -s "conftest$ac_exeext"'
9994 { (eval echo "$as_me:9994: \"$ac_try\"") >&5
9997 echo "$as_me:9997: \$? = $ac_status" >&5
9998 (exit "$ac_status"); }; }; then
9999 ac_cv_func_initscr=yes
10001 echo "$as_me: failed program was:" >&5
10002 cat "conftest.$ac_ext" >&5
10003 ac_cv_func_initscr=no
10005 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10007 echo "$as_me:10007: result: $ac_cv_func_initscr" >&5
10008 echo "${ECHO_T}$ac_cv_func_initscr" >&6
10009 if test "$ac_cv_func_initscr" = yes; then
10010 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
10013 cf_save_LIBS="$LIBS"
10014 echo "$as_me:10014: checking for initscr in -l$cf_nculib_root" >&5
10015 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
10016 LIBS="-l$cf_nculib_root $LIBS"
10017 cat >"conftest.$ac_ext" <<_ACEOF
10018 #line 10018 "configure"
10019 #include "confdefs.h"
10020 #include <${cf_cv_ncurses_header:-curses.h}>
10029 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10030 if { (eval echo "$as_me:10030: \"$ac_link\"") >&5
10031 (eval $ac_link) 2>&5
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 (exit "$ac_status"); } &&
10035 { ac_try='test -s "conftest$ac_exeext"'
10036 { (eval echo "$as_me:10036: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:10039: \$? = $ac_status" >&5
10040 (exit "$ac_status"); }; }; then
10041 echo "$as_me:10041: result: yes" >&5
10042 echo "${ECHO_T}yes" >&6
10043 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
10046 echo "$as_me: failed program was:" >&5
10047 cat "conftest.$ac_ext" >&5
10048 echo "$as_me:10048: result: no" >&5
10049 echo "${ECHO_T}no" >&6
10052 cf_library_path_list=""
10053 if test -n "${LDFLAGS}${LIBS}" ; then
10054 for cf_library_path in $LDFLAGS $LIBS
10056 case "$cf_library_path" in
10058 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10060 test "x$cf_library_path" != "xNONE" && \
10061 test -d "$cf_library_path" && \
10063 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10064 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
10065 test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
10066 test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
10067 test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
10068 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"
10071 cf_library_path_list="$cf_library_path_list $cf_search"
10079 test "x$prefix" != "xNONE" && \
10080 test -d "$prefix" && \
10082 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10083 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
10084 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
10085 test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
10086 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
10087 test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
10090 for cf_subdir_prefix in \
10099 test "x$cf_subdir_prefix" != "x$prefix" && \
10100 test -d "$cf_subdir_prefix" && \
10101 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
10102 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10103 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
10104 test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
10105 test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
10106 test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
10107 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"
10112 cf_search="$cf_library_path_list $cf_search"
10114 for cf_libdir in $cf_search
10116 echo "$as_me:10116: checking for -l$cf_nculib_root in $cf_libdir" >&5
10117 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
10118 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
10119 cat >"conftest.$ac_ext" <<_ACEOF
10120 #line 10120 "configure"
10121 #include "confdefs.h"
10122 #include <${cf_cv_ncurses_header:-curses.h}>
10131 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10132 if { (eval echo "$as_me:10132: \"$ac_link\"") >&5
10133 (eval $ac_link) 2>&5
10135 echo "$as_me:10135: \$? = $ac_status" >&5
10136 (exit "$ac_status"); } &&
10137 { ac_try='test -s "conftest$ac_exeext"'
10138 { (eval echo "$as_me:10138: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10141 echo "$as_me:10141: \$? = $ac_status" >&5
10142 (exit "$ac_status"); }; }; then
10143 echo "$as_me:10143: result: yes" >&5
10144 echo "${ECHO_T}yes" >&6
10145 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
10148 echo "$as_me: failed program was:" >&5
10149 cat "conftest.$ac_ext" >&5
10150 echo "$as_me:10150: result: no" >&5
10151 echo "${ECHO_T}no" >&6
10152 LIBS="$cf_save_LIBS"
10154 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10158 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10162 eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
10164 if test "$cf_found_library" = no ; then
10165 { { echo "$as_me:10165: error: Cannot link $cf_nculib_root library" >&5
10166 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
10167 { (exit 1); exit 1; }; }
10172 if test -n "$cf_ncurses_LIBS" ; then
10173 echo "$as_me:10173: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
10174 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
10175 cf_ncurses_SAVE="$LIBS"
10176 for p in $cf_ncurses_LIBS ; do
10177 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
10178 if test "$q" != "$LIBS" ; then
10182 cat >"conftest.$ac_ext" <<_ACEOF
10183 #line 10183 "configure"
10184 #include "confdefs.h"
10185 #include <${cf_cv_ncurses_header:-curses.h}>
10189 initscr(); mousemask(0,0); tigetstr((char *)0);
10194 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10195 if { (eval echo "$as_me:10195: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>&5
10198 echo "$as_me:10198: \$? = $ac_status" >&5
10199 (exit "$ac_status"); } &&
10200 { ac_try='test -s "conftest$ac_exeext"'
10201 { (eval echo "$as_me:10201: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:10204: \$? = $ac_status" >&5
10205 (exit "$ac_status"); }; }; then
10206 echo "$as_me:10206: result: yes" >&5
10207 echo "${ECHO_T}yes" >&6
10209 echo "$as_me: failed program was:" >&5
10210 cat "conftest.$ac_ext" >&5
10211 echo "$as_me:10211: result: no" >&5
10212 echo "${ECHO_T}no" >&6
10213 LIBS="$cf_ncurses_SAVE"
10215 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10218 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10220 cat >>confdefs.h <<EOF
10221 #define $cf_nculib_ROOT 1
10226 NCURSES_CONFIG=none
10232 cf_ncuconfig_root=$cf_cv_screen
10233 cf_have_ncuconfig=no
10235 if test "x${PKG_CONFIG:=none}" != xnone; then
10236 echo "$as_me:10236: checking pkg-config for $cf_ncuconfig_root" >&5
10237 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
10238 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
10239 echo "$as_me:10239: result: yes" >&5
10240 echo "${ECHO_T}yes" >&6
10242 echo "$as_me:10242: checking if the $cf_ncuconfig_root package files work" >&5
10243 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
10244 cf_have_ncuconfig=unknown
10246 cf_save_CFLAGS="$CFLAGS"
10247 cf_save_CPPFLAGS="$CPPFLAGS"
10248 cf_save_LIBS="$LIBS"
10250 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
10251 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
10253 # while -W for passing linker flags is prevalent, it is not "standard".
10254 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
10255 # incompatible _and_ non-standard -W option which gives an error. Work
10256 # around that pitfall.
10257 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
10263 cf_new_extra_cppflags=
10265 for cf_add_cflags in $cf_pkg_cflags
10267 case "$cf_fix_cppflags" in
10269 case "$cf_add_cflags" in
10270 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10271 case "$cf_add_cflags" in
10273 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10275 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10276 && test -z "${cf_tst_cflags}" \
10277 && cf_fix_cppflags=yes
10279 if test "$cf_fix_cppflags" = yes ; then
10281 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10282 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10285 elif test "${cf_tst_cflags}" = "\"'" ; then
10287 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10288 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10294 case "$CPPFLAGS" in
10298 case "$cf_add_cflags" in
10300 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10302 CPPFLAGS=`echo "$CPPFLAGS" | \
10303 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10304 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10309 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10310 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10317 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10318 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10325 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10326 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10328 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10330 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10331 && test -z "${cf_tst_cflags}" \
10332 && cf_fix_cppflags=no
10337 if test -n "$cf_new_cflags" ; then
10339 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10340 CFLAGS="${CFLAGS}$cf_new_cflags"
10344 if test -n "$cf_new_cppflags" ; then
10346 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10347 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10351 if test -n "$cf_new_extra_cppflags" ; then
10353 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10354 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10358 cf_add_libs="$LIBS"
10361 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10362 # filter duplicates
10363 for cf_add_1lib in $cf_add_0lib; do
10364 for cf_add_2lib in $cf_add_libs; do
10365 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10370 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10372 LIBS="$cf_add_libs"
10374 cat >"conftest.$ac_ext" <<_ACEOF
10375 #line 10375 "configure"
10376 #include "confdefs.h"
10377 #include <${cf_cv_ncurses_header:-curses.h}>
10381 initscr(); mousemask(0,0); tigetstr((char *)0);
10386 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10387 if { (eval echo "$as_me:10387: \"$ac_link\"") >&5
10388 (eval $ac_link) 2>&5
10390 echo "$as_me:10390: \$? = $ac_status" >&5
10391 (exit "$ac_status"); } &&
10392 { ac_try='test -s "conftest$ac_exeext"'
10393 { (eval echo "$as_me:10393: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10396 echo "$as_me:10396: \$? = $ac_status" >&5
10397 (exit "$ac_status"); }; }; then
10398 if test "$cross_compiling" = yes; then
10399 cf_test_ncuconfig=maybe
10401 cat >"conftest.$ac_ext" <<_ACEOF
10402 #line 10402 "configure"
10403 #include "confdefs.h"
10404 #include <${cf_cv_ncurses_header:-curses.h}>
10406 { const char *xx = curses_version(); return (xx == 0); }
10408 rm -f "conftest$ac_exeext"
10409 if { (eval echo "$as_me:10409: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>&5
10412 echo "$as_me:10412: \$? = $ac_status" >&5
10413 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10414 { (eval echo "$as_me:10414: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 echo "$as_me:10417: \$? = $ac_status" >&5
10418 (exit "$ac_status"); }; }; then
10419 cf_test_ncuconfig=yes
10421 echo "$as_me: program exited with status $ac_status" >&5
10422 echo "$as_me: failed program was:" >&5
10423 cat "conftest.$ac_ext" >&5
10424 cf_test_ncuconfig=no
10426 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10429 echo "$as_me: failed program was:" >&5
10430 cat "conftest.$ac_ext" >&5
10431 cf_test_ncuconfig=no
10433 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10435 CFLAGS="$cf_save_CFLAGS"
10436 CPPFLAGS="$cf_save_CPPFLAGS"
10437 LIBS="$cf_save_LIBS"
10439 if test "x$cf_test_ncuconfig" != xyes; then
10440 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
10441 cf_pkg_cflags="$cf_temp"
10442 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
10443 cf_pkg_libs="$cf_temp"
10448 for cf_add_cflags in $cf_pkg_cflags
10450 case "x$cf_add_cflags" in
10453 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10456 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'`
10457 test "$CFLAGS" != "$cf_old_cflag" || break
10459 CFLAGS="$cf_old_cflag"
10462 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10465 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'`
10466 test "$CPPFLAGS" != "$cf_old_cflag" || break
10468 CPPFLAGS="$cf_old_cflag"
10477 cf_new_extra_cppflags=
10479 for cf_add_cflags in $cf_add_cflags
10481 case "$cf_fix_cppflags" in
10483 case "$cf_add_cflags" in
10484 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10485 case "$cf_add_cflags" in
10487 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10489 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10490 && test -z "${cf_tst_cflags}" \
10491 && cf_fix_cppflags=yes
10493 if test "$cf_fix_cppflags" = yes ; then
10495 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10496 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10499 elif test "${cf_tst_cflags}" = "\"'" ; then
10501 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10502 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10508 case "$CPPFLAGS" in
10512 case "$cf_add_cflags" in
10514 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10516 CPPFLAGS=`echo "$CPPFLAGS" | \
10517 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10518 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10523 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10524 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10531 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10532 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10539 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10540 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10542 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10544 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10545 && test -z "${cf_tst_cflags}" \
10546 && cf_fix_cppflags=no
10551 if test -n "$cf_new_cflags" ; then
10553 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10554 CFLAGS="${CFLAGS}$cf_new_cflags"
10558 if test -n "$cf_new_cppflags" ; then
10560 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10561 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10565 if test -n "$cf_new_extra_cppflags" ; then
10567 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10568 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10574 cf_add_libs="$LIBS"
10577 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10578 # filter duplicates
10579 for cf_add_1lib in $cf_add_0lib; do
10580 for cf_add_2lib in $cf_add_libs; do
10581 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10586 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10588 LIBS="$cf_add_libs"
10590 cat >"conftest.$ac_ext" <<_ACEOF
10591 #line 10591 "configure"
10592 #include "confdefs.h"
10593 #include <${cf_cv_ncurses_header:-curses.h}>
10597 initscr(); mousemask(0,0); tigetstr((char *)0);
10602 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10603 if { (eval echo "$as_me:10603: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>&5
10606 echo "$as_me:10606: \$? = $ac_status" >&5
10607 (exit "$ac_status"); } &&
10608 { ac_try='test -s "conftest$ac_exeext"'
10609 { (eval echo "$as_me:10609: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:10612: \$? = $ac_status" >&5
10613 (exit "$ac_status"); }; }; then
10614 if test "$cross_compiling" = yes; then
10615 cf_have_ncuconfig=maybe
10617 cat >"conftest.$ac_ext" <<_ACEOF
10618 #line 10618 "configure"
10619 #include "confdefs.h"
10620 #include <${cf_cv_ncurses_header:-curses.h}>
10622 { const char *xx = curses_version(); return (xx == 0); }
10624 rm -f "conftest$ac_exeext"
10625 if { (eval echo "$as_me:10625: \"$ac_link\"") >&5
10626 (eval $ac_link) 2>&5
10628 echo "$as_me:10628: \$? = $ac_status" >&5
10629 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10630 { (eval echo "$as_me:10630: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:10633: \$? = $ac_status" >&5
10634 (exit "$ac_status"); }; }; then
10635 cf_have_ncuconfig=yes
10637 echo "$as_me: program exited with status $ac_status" >&5
10638 echo "$as_me: failed program was:" >&5
10639 cat "conftest.$ac_ext" >&5
10640 cf_have_ncuconfig=no
10642 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10645 echo "$as_me: failed program was:" >&5
10646 cat "conftest.$ac_ext" >&5
10647 cf_have_ncuconfig=no
10649 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10650 echo "$as_me:10650: result: $cf_have_ncuconfig" >&5
10651 echo "${ECHO_T}$cf_have_ncuconfig" >&6
10652 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
10653 if test "$cf_have_ncuconfig" != "yes"
10655 CPPFLAGS="$cf_save_CPPFLAGS"
10656 LIBS="$cf_save_LIBS"
10657 NCURSES_CONFIG_PKG=none
10660 cat >>confdefs.h <<\EOF
10664 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
10666 echo "$as_me:10666: checking for terminfo header" >&5
10667 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
10668 if test "${cf_cv_term_header+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 case "${cf_cv_ncurses_header}" in
10673 (*/ncurses.h|*/ncursesw.h)
10674 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
10677 cf_term_header=term.h
10681 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
10683 cat >"conftest.$ac_ext" <<_ACEOF
10684 #line 10684 "configure"
10685 #include "confdefs.h"
10687 #include <${cf_cv_ncurses_header:-curses.h}>
10688 #include <$cf_test>
10693 int x = auto_left_margin; (void)x
10698 rm -f "conftest.$ac_objext"
10699 if { (eval echo "$as_me:10699: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>&5
10702 echo "$as_me:10702: \$? = $ac_status" >&5
10703 (exit "$ac_status"); } &&
10704 { ac_try='test -s "conftest.$ac_objext"'
10705 { (eval echo "$as_me:10705: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10708 echo "$as_me:10708: \$? = $ac_status" >&5
10709 (exit "$ac_status"); }; }; then
10711 cf_cv_term_header="$cf_test"
10713 echo "$as_me: failed program was:" >&5
10714 cat "conftest.$ac_ext" >&5
10716 cf_cv_term_header=unknown
10719 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10720 test "$cf_cv_term_header" != unknown && break
10724 echo "$as_me:10724: result: $cf_cv_term_header" >&5
10725 echo "${ECHO_T}$cf_cv_term_header" >&6
10727 # Set definitions to allow ifdef'ing to accommodate subdirectories
10729 case "$cf_cv_term_header" in
10732 cat >>confdefs.h <<\EOF
10733 #define HAVE_TERM_H 1
10739 case "$cf_cv_term_header" in
10742 cat >>confdefs.h <<\EOF
10743 #define HAVE_NCURSES_TERM_H 1
10749 cat >>confdefs.h <<\EOF
10750 #define HAVE_NCURSESW_TERM_H 1
10759 echo "$as_me:10759: result: no" >&5
10760 echo "${ECHO_T}no" >&6
10761 NCURSES_CONFIG_PKG=none
10764 NCURSES_CONFIG_PKG=none
10767 if test "x$cf_have_ncuconfig" = "xno"; then
10768 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
10770 if test -n "$ac_tool_prefix"; then
10771 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
10773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10775 echo "$as_me:10775: checking for $ac_word" >&5
10776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10777 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 if test -n "$NCURSES_CONFIG"; then
10781 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
10783 ac_save_IFS=$IFS; IFS=$ac_path_separator
10785 for ac_dir in $ac_dummy; do
10787 test -z "$ac_dir" && ac_dir=.
10788 $as_executable_p "$ac_dir/$ac_word" || continue
10789 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
10790 echo "$as_me:10790: found $ac_dir/$ac_word" >&5
10796 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
10797 if test -n "$NCURSES_CONFIG"; then
10798 echo "$as_me:10798: result: $NCURSES_CONFIG" >&5
10799 echo "${ECHO_T}$NCURSES_CONFIG" >&6
10801 echo "$as_me:10801: result: no" >&5
10802 echo "${ECHO_T}no" >&6
10805 test -n "$NCURSES_CONFIG" && break
10808 if test -z "$NCURSES_CONFIG"; then
10809 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
10810 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
10812 # Extract the first word of "$ac_prog", so it can be a program name with args.
10813 set dummy $ac_prog; ac_word=$2
10814 echo "$as_me:10814: checking for $ac_word" >&5
10815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10816 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 if test -n "$ac_ct_NCURSES_CONFIG"; then
10820 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
10822 ac_save_IFS=$IFS; IFS=$ac_path_separator
10824 for ac_dir in $ac_dummy; do
10826 test -z "$ac_dir" && ac_dir=.
10827 $as_executable_p "$ac_dir/$ac_word" || continue
10828 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
10829 echo "$as_me:10829: found $ac_dir/$ac_word" >&5
10835 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
10836 if test -n "$ac_ct_NCURSES_CONFIG"; then
10837 echo "$as_me:10837: result: $ac_ct_NCURSES_CONFIG" >&5
10838 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
10840 echo "$as_me:10840: result: no" >&5
10841 echo "${ECHO_T}no" >&6
10844 test -n "$ac_ct_NCURSES_CONFIG" && break
10846 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
10848 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
10851 if test "$NCURSES_CONFIG" != none ; then
10853 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
10855 case "x$cf_add_cflags" in
10858 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10861 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'`
10862 test "$CFLAGS" != "$cf_old_cflag" || break
10864 CFLAGS="$cf_old_cflag"
10867 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10870 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'`
10871 test "$CPPFLAGS" != "$cf_old_cflag" || break
10873 CPPFLAGS="$cf_old_cflag"
10882 cf_new_extra_cppflags=
10884 for cf_add_cflags in $cf_add_cflags
10886 case "$cf_fix_cppflags" in
10888 case "$cf_add_cflags" in
10889 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10890 case "$cf_add_cflags" in
10892 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10894 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10895 && test -z "${cf_tst_cflags}" \
10896 && cf_fix_cppflags=yes
10898 if test "$cf_fix_cppflags" = yes ; then
10900 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10901 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10904 elif test "${cf_tst_cflags}" = "\"'" ; then
10906 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10907 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10913 case "$CPPFLAGS" in
10917 case "$cf_add_cflags" in
10919 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10921 CPPFLAGS=`echo "$CPPFLAGS" | \
10922 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10923 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10928 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10929 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10936 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10937 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10944 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10945 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10947 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10949 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10950 && test -z "${cf_tst_cflags}" \
10951 && cf_fix_cppflags=no
10956 if test -n "$cf_new_cflags" ; then
10958 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10959 CFLAGS="${CFLAGS}$cf_new_cflags"
10963 if test -n "$cf_new_cppflags" ; then
10965 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10966 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10970 if test -n "$cf_new_extra_cppflags" ; then
10972 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10973 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10979 cf_add_libs="$LIBS"
10982 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10983 # filter duplicates
10984 for cf_add_1lib in $cf_add_0lib; do
10985 for cf_add_2lib in $cf_add_libs; do
10986 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10991 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10993 LIBS="$cf_add_libs"
10995 # even with config script, some packages use no-override for curses.h
10997 echo "$as_me:10997: checking if we have identified curses headers" >&5
10998 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
10999 if test "${cf_cv_ncurses_header+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 cf_cv_ncurses_header=none
11005 ncurses.h $cf_cv_screen/ncurses.h \
11006 curses.h $cf_cv_screen/curses.h
11008 cat >"conftest.$ac_ext" <<_ACEOF
11009 #line 11009 "configure"
11010 #include "confdefs.h"
11011 #include <${cf_header}>
11015 initscr(); tgoto("?", 0,0)
11020 rm -f "conftest.$ac_objext"
11021 if { (eval echo "$as_me:11021: \"$ac_compile\"") >&5
11022 (eval $ac_compile) 2>&5
11024 echo "$as_me:11024: \$? = $ac_status" >&5
11025 (exit "$ac_status"); } &&
11026 { ac_try='test -s "conftest.$ac_objext"'
11027 { (eval echo "$as_me:11027: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:11030: \$? = $ac_status" >&5
11031 (exit "$ac_status"); }; }; then
11032 cf_cv_ncurses_header=$cf_header; break
11034 echo "$as_me: failed program was:" >&5
11035 cat "conftest.$ac_ext" >&5
11037 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11041 echo "$as_me:11041: result: $cf_cv_ncurses_header" >&5
11042 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
11044 if test "$cf_cv_ncurses_header" = none ; then
11045 { { echo "$as_me:11045: error: No curses header-files found" >&5
11046 echo "$as_me: error: No curses header-files found" >&2;}
11047 { (exit 1); exit 1; }; }
11050 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
11052 for ac_header in $cf_cv_ncurses_header
11054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11055 echo "$as_me:11055: checking for $ac_header" >&5
11056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 cat >"conftest.$ac_ext" <<_ACEOF
11061 #line 11061 "configure"
11062 #include "confdefs.h"
11063 #include <$ac_header>
11065 if { (eval echo "$as_me:11065: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11066 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11068 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 echo "$as_me:11071: \$? = $ac_status" >&5
11072 (exit "$ac_status"); } >/dev/null; then
11073 if test -s conftest.err; then
11074 ac_cpp_err=$ac_c_preproc_warn_flag
11081 if test -z "$ac_cpp_err"; then
11082 eval "$as_ac_Header=yes"
11084 echo "$as_me: failed program was:" >&5
11085 cat "conftest.$ac_ext" >&5
11086 eval "$as_ac_Header=no"
11088 rm -f conftest.err "conftest.$ac_ext"
11090 echo "$as_me:11090: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11091 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11092 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11093 cat >>confdefs.h <<EOF
11094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11100 cat >>confdefs.h <<\EOF
11104 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11106 cat >>confdefs.h <<EOF
11107 #define $cf_nculib_ROOT 1
11110 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
11114 cf_ncuhdr_root=$cf_cv_screen
11116 test -n "$cf_cv_curses_dir" && \
11117 test "$cf_cv_curses_dir" != "no" && { \
11119 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
11120 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
11122 while test "$cf_add_incdir" != /usr/include
11124 if test -d "$cf_add_incdir"
11127 if test -n "$CFLAGS$CPPFLAGS" ; then
11128 # a loop is needed to ensure we can add subdirs of existing dirs
11129 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11130 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11131 cf_have_incdir=yes; break
11136 if test "$cf_have_incdir" = no ; then
11137 if test "$cf_add_incdir" = /usr/local/include ; then
11138 if test "$GCC" = yes
11140 cf_save_CPPFLAGS=$CPPFLAGS
11142 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11143 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11145 cat >"conftest.$ac_ext" <<_ACEOF
11146 #line 11146 "configure"
11147 #include "confdefs.h"
11157 rm -f "conftest.$ac_objext"
11158 if { (eval echo "$as_me:11158: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>&5
11161 echo "$as_me:11161: \$? = $ac_status" >&5
11162 (exit "$ac_status"); } &&
11163 { ac_try='test -s "conftest.$ac_objext"'
11164 { (eval echo "$as_me:11164: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:11167: \$? = $ac_status" >&5
11168 (exit "$ac_status"); }; }; then
11171 echo "$as_me: failed program was:" >&5
11172 cat "conftest.$ac_ext" >&5
11175 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11176 CPPFLAGS=$cf_save_CPPFLAGS
11181 if test "$cf_have_incdir" = no ; then
11182 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11184 echo "${as_me:-configure}:11184: testing adding $cf_add_incdir to include-path ..." 1>&5
11186 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11188 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11189 test "$cf_top_incdir" = "$cf_add_incdir" && break
11190 cf_add_incdir="$cf_top_incdir"
11203 echo "$as_me:11203: checking for $cf_ncuhdr_root header in include-path" >&5
11204 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
11205 if test "${cf_cv_ncurses_h+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
11210 { test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_header_list curses.h ncurses.h"
11211 for cf_header in $cf_header_list
11214 cat >"conftest.$ac_ext" <<_ACEOF
11215 #line 11215 "configure"
11216 #include "confdefs.h"
11218 #include <$cf_header>
11223 #ifdef NCURSES_VERSION
11225 printf("%s\\n", NCURSES_VERSION);
11238 rm -f "conftest.$ac_objext"
11239 if { (eval echo "$as_me:11239: \"$ac_compile\"") >&5
11240 (eval $ac_compile) 2>&5
11242 echo "$as_me:11242: \$? = $ac_status" >&5
11243 (exit "$ac_status"); } &&
11244 { ac_try='test -s "conftest.$ac_objext"'
11245 { (eval echo "$as_me:11245: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11248 echo "$as_me:11248: \$? = $ac_status" >&5
11249 (exit "$ac_status"); }; }; then
11250 cf_cv_ncurses_h=$cf_header
11253 echo "$as_me: failed program was:" >&5
11254 cat "conftest.$ac_ext" >&5
11257 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11259 test "$cf_cv_ncurses_h" != no && break
11263 echo "$as_me:11263: result: $cf_cv_ncurses_h" >&5
11264 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
11266 if test "$cf_cv_ncurses_h" != no ; then
11267 cf_cv_ncurses_header=$cf_cv_ncurses_h
11270 echo "$as_me:11270: checking for $cf_ncuhdr_root include-path" >&5
11271 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
11272 if test "${cf_cv_ncurses_h2+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 test -n "$verbose" && echo
11280 # collect the current set of include-directories from compiler flags
11281 cf_header_path_list=""
11282 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11283 for cf_header_path in $CPPFLAGS $CFLAGS
11285 case "$cf_header_path" in
11287 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11289 test "x$cf_header_path" != "xNONE" && \
11290 test -d "$cf_header_path" && \
11292 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11293 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
11294 test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
11295 test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
11296 test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
11297 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"
11300 cf_header_path_list="$cf_header_path_list $cf_search"
11306 # add the variations for the package we are looking for
11310 test "x$prefix" != "xNONE" && \
11311 test -d "$prefix" && \
11313 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11314 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
11315 test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
11316 test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
11317 test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
11318 test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11321 for cf_subdir_prefix in \
11330 test "x$cf_subdir_prefix" != "x$prefix" && \
11331 test -d "$cf_subdir_prefix" && \
11332 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
11333 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
11334 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
11335 test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
11336 test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
11337 test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
11338 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"
11343 test "$includedir" != NONE && \
11344 test "$includedir" != "/usr/include" && \
11345 test -d "$includedir" && {
11346 test -d "$includedir" && cf_search="$cf_search $includedir"
11347 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
11350 test "$oldincludedir" != NONE && \
11351 test "$oldincludedir" != "/usr/include" && \
11352 test -d "$oldincludedir" && {
11353 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
11354 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
11357 cf_search="$cf_search $cf_header_path_list"
11359 test -n "$verbose" && echo "search path $cf_search"
11360 cf_save2_CPPFLAGS="$CPPFLAGS"
11361 for cf_incdir in $cf_search
11364 if test -n "$cf_incdir" ; then
11365 for cf_add_incdir in $cf_incdir
11367 while test "$cf_add_incdir" != /usr/include
11369 if test -d "$cf_add_incdir"
11372 if test -n "$CFLAGS$CPPFLAGS" ; then
11373 # a loop is needed to ensure we can add subdirs of existing dirs
11374 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11375 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11376 cf_have_incdir=yes; break
11381 if test "$cf_have_incdir" = no ; then
11382 if test "$cf_add_incdir" = /usr/local/include ; then
11383 if test "$GCC" = yes
11385 cf_save_CPPFLAGS=$CPPFLAGS
11387 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11388 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11390 cat >"conftest.$ac_ext" <<_ACEOF
11391 #line 11391 "configure"
11392 #include "confdefs.h"
11402 rm -f "conftest.$ac_objext"
11403 if { (eval echo "$as_me:11403: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>&5
11406 echo "$as_me:11406: \$? = $ac_status" >&5
11407 (exit "$ac_status"); } &&
11408 { ac_try='test -s "conftest.$ac_objext"'
11409 { (eval echo "$as_me:11409: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:11412: \$? = $ac_status" >&5
11413 (exit "$ac_status"); }; }; then
11416 echo "$as_me: failed program was:" >&5
11417 cat "conftest.$ac_ext" >&5
11420 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11421 CPPFLAGS=$cf_save_CPPFLAGS
11426 if test "$cf_have_incdir" = no ; then
11427 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11429 echo "${as_me:-configure}:11429: testing adding $cf_add_incdir to include-path ..." 1>&5
11431 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11433 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11434 test "$cf_top_incdir" = "$cf_add_incdir" && break
11435 cf_add_incdir="$cf_top_incdir"
11451 cat >"conftest.$ac_ext" <<_ACEOF
11452 #line 11452 "configure"
11453 #include "confdefs.h"
11455 #include <$cf_header>
11460 #ifdef NCURSES_VERSION
11462 printf("%s\\n", NCURSES_VERSION);
11475 rm -f "conftest.$ac_objext"
11476 if { (eval echo "$as_me:11476: \"$ac_compile\"") >&5
11477 (eval $ac_compile) 2>&5
11479 echo "$as_me:11479: \$? = $ac_status" >&5
11480 (exit "$ac_status"); } &&
11481 { ac_try='test -s "conftest.$ac_objext"'
11482 { (eval echo "$as_me:11482: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:11485: \$? = $ac_status" >&5
11486 (exit "$ac_status"); }; }; then
11487 cf_cv_ncurses_h2=$cf_header
11490 echo "$as_me: failed program was:" >&5
11491 cat "conftest.$ac_ext" >&5
11492 cf_cv_ncurses_h2=no
11494 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11496 if test "$cf_cv_ncurses_h2" != no ; then
11497 cf_cv_ncurses_h2=$cf_incdir/$cf_header
11498 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
11501 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
11503 CPPFLAGS="$cf_save2_CPPFLAGS"
11504 test "$cf_cv_ncurses_h2" != no && break
11506 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:11506: error: not found" >&5
11507 echo "$as_me: error: not found" >&2;}
11508 { (exit 1); exit 1; }; }
11511 echo "$as_me:11511: result: $cf_cv_ncurses_h2" >&5
11512 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
11514 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
11515 cf_cv_ncurses_header="`basename "$cf_cv_ncurses_h2"`"
11516 if test "`basename "$cf_1st_incdir"`" = "$cf_ncuhdr_root" ; then
11517 cf_cv_ncurses_header="$cf_ncuhdr_root/$cf_cv_ncurses_header"
11520 if test -n "$cf_1st_incdir" ; then
11521 for cf_add_incdir in $cf_1st_incdir
11523 while test "$cf_add_incdir" != /usr/include
11525 if test -d "$cf_add_incdir"
11528 if test -n "$CFLAGS$CPPFLAGS" ; then
11529 # a loop is needed to ensure we can add subdirs of existing dirs
11530 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11531 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11532 cf_have_incdir=yes; break
11537 if test "$cf_have_incdir" = no ; then
11538 if test "$cf_add_incdir" = /usr/local/include ; then
11539 if test "$GCC" = yes
11541 cf_save_CPPFLAGS=$CPPFLAGS
11543 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11544 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11546 cat >"conftest.$ac_ext" <<_ACEOF
11547 #line 11547 "configure"
11548 #include "confdefs.h"
11558 rm -f "conftest.$ac_objext"
11559 if { (eval echo "$as_me:11559: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>&5
11562 echo "$as_me:11562: \$? = $ac_status" >&5
11563 (exit "$ac_status"); } &&
11564 { ac_try='test -s "conftest.$ac_objext"'
11565 { (eval echo "$as_me:11565: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:11568: \$? = $ac_status" >&5
11569 (exit "$ac_status"); }; }; then
11572 echo "$as_me: failed program was:" >&5
11573 cat "conftest.$ac_ext" >&5
11576 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11577 CPPFLAGS=$cf_save_CPPFLAGS
11582 if test "$cf_have_incdir" = no ; then
11583 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11585 echo "${as_me:-configure}:11585: testing adding $cf_add_incdir to include-path ..." 1>&5
11587 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11589 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11590 test "$cf_top_incdir" = "$cf_add_incdir" && break
11591 cf_add_incdir="$cf_top_incdir"
11604 # Set definitions to allow ifdef'ing for ncurses.h
11606 case "$cf_cv_ncurses_header" in
11609 cat >>confdefs.h <<\EOF
11610 #define HAVE_NCURSES_H 1
11616 case "$cf_cv_ncurses_header" in
11617 (ncurses/curses.h|ncurses/ncurses.h)
11619 cat >>confdefs.h <<\EOF
11620 #define HAVE_NCURSES_NCURSES_H 1
11624 (ncursesw/curses.h|ncursesw/ncurses.h)
11626 cat >>confdefs.h <<\EOF
11627 #define HAVE_NCURSESW_NCURSES_H 1
11633 echo "$as_me:11633: checking for terminfo header" >&5
11634 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
11635 if test "${cf_cv_term_header+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 case "${cf_cv_ncurses_header}" in
11640 (*/ncurses.h|*/ncursesw.h)
11641 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
11644 cf_term_header=term.h
11648 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
11650 cat >"conftest.$ac_ext" <<_ACEOF
11651 #line 11651 "configure"
11652 #include "confdefs.h"
11654 #include <${cf_cv_ncurses_header:-curses.h}>
11655 #include <$cf_test>
11660 int x = auto_left_margin; (void)x
11665 rm -f "conftest.$ac_objext"
11666 if { (eval echo "$as_me:11666: \"$ac_compile\"") >&5
11667 (eval $ac_compile) 2>&5
11669 echo "$as_me:11669: \$? = $ac_status" >&5
11670 (exit "$ac_status"); } &&
11671 { ac_try='test -s "conftest.$ac_objext"'
11672 { (eval echo "$as_me:11672: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11675 echo "$as_me:11675: \$? = $ac_status" >&5
11676 (exit "$ac_status"); }; }; then
11678 cf_cv_term_header="$cf_test"
11680 echo "$as_me: failed program was:" >&5
11681 cat "conftest.$ac_ext" >&5
11683 cf_cv_term_header=unknown
11686 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11687 test "$cf_cv_term_header" != unknown && break
11691 echo "$as_me:11691: result: $cf_cv_term_header" >&5
11692 echo "${ECHO_T}$cf_cv_term_header" >&6
11694 # Set definitions to allow ifdef'ing to accommodate subdirectories
11696 case "$cf_cv_term_header" in
11699 cat >>confdefs.h <<\EOF
11700 #define HAVE_TERM_H 1
11706 case "$cf_cv_term_header" in
11709 cat >>confdefs.h <<\EOF
11710 #define HAVE_NCURSES_TERM_H 1
11716 cat >>confdefs.h <<\EOF
11717 #define HAVE_NCURSESW_TERM_H 1
11723 # some applications need this, but should check for NCURSES_VERSION
11725 cat >>confdefs.h <<\EOF
11729 echo "$as_me:11729: checking for ncurses version" >&5
11730 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
11731 if test "${cf_cv_ncurses_version+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cf_cv_ncurses_version=no
11737 rm -f "$cf_tempfile"
11738 if test "$cross_compiling" = yes; then
11740 # This will not work if the preprocessor splits the line after the
11741 # Autoconf token. The 'unproto' program does that.
11742 cat > "conftest.$ac_ext" <<EOF
11743 #include <${cf_cv_ncurses_header:-curses.h}>
11745 #ifdef NCURSES_VERSION
11746 Autoconf NCURSES_VERSION
11754 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
11755 { (eval echo "$as_me:11755: \"$cf_try\"") >&5
11756 (eval $cf_try) 2>&5
11758 echo "$as_me:11758: \$? = $ac_status" >&5
11759 (exit "$ac_status"); }
11760 if test -f conftest.out ; then
11761 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
11762 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
11767 cat >"conftest.$ac_ext" <<_ACEOF
11768 #line 11768 "configure"
11769 #include "confdefs.h"
11771 #include <${cf_cv_ncurses_header:-curses.h}>
11775 FILE *fp = fopen("$cf_tempfile", "w");
11776 #ifdef NCURSES_VERSION
11777 # ifdef NCURSES_VERSION_PATCH
11778 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
11780 fprintf(fp, "%s\\n", NCURSES_VERSION);
11783 # ifdef __NCURSES_H
11784 fprintf(fp, "old\\n");
11789 ${cf_cv_main_return:-return}(0);
11792 rm -f "conftest$ac_exeext"
11793 if { (eval echo "$as_me:11793: \"$ac_link\"") >&5
11794 (eval $ac_link) 2>&5
11796 echo "$as_me:11796: \$? = $ac_status" >&5
11797 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
11798 { (eval echo "$as_me:11798: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:11801: \$? = $ac_status" >&5
11802 (exit "$ac_status"); }; }; then
11804 cf_cv_ncurses_version=`cat $cf_tempfile`
11806 echo "$as_me: program exited with status $ac_status" >&5
11807 echo "$as_me: failed program was:" >&5
11808 cat "conftest.$ac_ext" >&5
11810 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
11812 rm -f "$cf_tempfile"
11815 echo "$as_me:11815: result: $cf_cv_ncurses_version" >&5
11816 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
11817 test "$cf_cv_ncurses_version" = no ||
11818 cat >>confdefs.h <<\EOF
11822 cf_nculib_root=$cf_cv_screen
11823 # This works, except for the special case where we find gpm, but
11824 # ncurses is in a nonstandard location via $LIBS, and we really want
11827 cf_ncurses_SAVE="$LIBS"
11828 echo "$as_me:11828: checking for Gpm_Open in -lgpm" >&5
11829 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
11830 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 ac_check_lib_save_LIBS=$LIBS
11835 cat >"conftest.$ac_ext" <<_ACEOF
11836 #line 11836 "configure"
11837 #include "confdefs.h"
11839 /* Override any gcc2 internal prototype to avoid an error. */
11843 /* We use char because int might match the return type of a gcc2
11844 builtin and then its argument prototype would still apply. */
11854 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11855 if { (eval echo "$as_me:11855: \"$ac_link\"") >&5
11856 (eval $ac_link) 2>&5
11858 echo "$as_me:11858: \$? = $ac_status" >&5
11859 (exit "$ac_status"); } &&
11860 { ac_try='test -s "conftest$ac_exeext"'
11861 { (eval echo "$as_me:11861: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11864 echo "$as_me:11864: \$? = $ac_status" >&5
11865 (exit "$ac_status"); }; }; then
11866 ac_cv_lib_gpm_Gpm_Open=yes
11868 echo "$as_me: failed program was:" >&5
11869 cat "conftest.$ac_ext" >&5
11870 ac_cv_lib_gpm_Gpm_Open=no
11872 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11873 LIBS=$ac_check_lib_save_LIBS
11875 echo "$as_me:11875: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11876 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
11877 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
11878 echo "$as_me:11878: checking for initscr in -lgpm" >&5
11879 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
11880 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 ac_check_lib_save_LIBS=$LIBS
11885 cat >"conftest.$ac_ext" <<_ACEOF
11886 #line 11886 "configure"
11887 #include "confdefs.h"
11889 /* Override any gcc2 internal prototype to avoid an error. */
11893 /* We use char because int might match the return type of a gcc2
11894 builtin and then its argument prototype would still apply. */
11904 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11905 if { (eval echo "$as_me:11905: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>&5
11908 echo "$as_me:11908: \$? = $ac_status" >&5
11909 (exit "$ac_status"); } &&
11910 { ac_try='test -s "conftest$ac_exeext"'
11911 { (eval echo "$as_me:11911: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:11914: \$? = $ac_status" >&5
11915 (exit "$ac_status"); }; }; then
11916 ac_cv_lib_gpm_initscr=yes
11918 echo "$as_me: failed program was:" >&5
11919 cat "conftest.$ac_ext" >&5
11920 ac_cv_lib_gpm_initscr=no
11922 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11923 LIBS=$ac_check_lib_save_LIBS
11925 echo "$as_me:11925: result: $ac_cv_lib_gpm_initscr" >&5
11926 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
11927 if test "$ac_cv_lib_gpm_initscr" = yes; then
11928 LIBS="$cf_ncurses_SAVE"
11930 cf_ncurses_LIBS="-lgpm"
11937 # This is only necessary if you are linking against an obsolete
11938 # version of ncurses (but it should do no harm, since it is static).
11939 if test "$cf_nculib_root" = ncurses ; then
11940 echo "$as_me:11940: checking for tgoto in -lmytinfo" >&5
11941 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
11942 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-lmytinfo $LIBS"
11947 cat >"conftest.$ac_ext" <<_ACEOF
11948 #line 11948 "configure"
11949 #include "confdefs.h"
11951 /* Override any gcc2 internal prototype to avoid an error. */
11955 /* We use char because int might match the return type of a gcc2
11956 builtin and then its argument prototype would still apply. */
11966 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11967 if { (eval echo "$as_me:11967: \"$ac_link\"") >&5
11968 (eval $ac_link) 2>&5
11970 echo "$as_me:11970: \$? = $ac_status" >&5
11971 (exit "$ac_status"); } &&
11972 { ac_try='test -s "conftest$ac_exeext"'
11973 { (eval echo "$as_me:11973: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:11976: \$? = $ac_status" >&5
11977 (exit "$ac_status"); }; }; then
11978 ac_cv_lib_mytinfo_tgoto=yes
11980 echo "$as_me: failed program was:" >&5
11981 cat "conftest.$ac_ext" >&5
11982 ac_cv_lib_mytinfo_tgoto=no
11984 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11985 LIBS=$ac_check_lib_save_LIBS
11987 echo "$as_me:11987: result: $ac_cv_lib_mytinfo_tgoto" >&5
11988 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
11989 if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
11990 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
11997 cf_add_libs="$LIBS"
12000 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12001 # filter duplicates
12002 for cf_add_1lib in $cf_add_0lib; do
12003 for cf_add_2lib in $cf_add_libs; do
12004 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12009 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12011 LIBS="$cf_add_libs"
12013 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
12016 cf_add_libs="$LIBS"
12019 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12020 # filter duplicates
12021 for cf_add_1lib in $cf_add_0lib; do
12022 for cf_add_2lib in $cf_add_libs; do
12023 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12028 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12030 LIBS="$cf_add_libs"
12034 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
12036 echo "$as_me:12036: checking for initscr" >&5
12037 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
12038 if test "${ac_cv_func_initscr+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 cat >"conftest.$ac_ext" <<_ACEOF
12042 #line 12042 "configure"
12043 #include "confdefs.h"
12044 #define initscr autoconf_temporary
12045 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12052 /* We use char because int might match the return type of a gcc2
12053 builtin and then its argument prototype would still apply. */
12054 char initscr (void);
12060 /* The GNU C library defines stubs for functions which it implements
12061 to always fail with ENOSYS. Some functions are actually named
12062 something starting with __ and the normal name is an alias. */
12063 #if defined (__stub_initscr) || defined (__stub___initscr)
12064 #error found stub for initscr
12072 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12073 if { (eval echo "$as_me:12073: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>&5
12076 echo "$as_me:12076: \$? = $ac_status" >&5
12077 (exit "$ac_status"); } &&
12078 { ac_try='test -s "conftest$ac_exeext"'
12079 { (eval echo "$as_me:12079: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:12082: \$? = $ac_status" >&5
12083 (exit "$ac_status"); }; }; then
12084 ac_cv_func_initscr=yes
12086 echo "$as_me: failed program was:" >&5
12087 cat "conftest.$ac_ext" >&5
12088 ac_cv_func_initscr=no
12090 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12092 echo "$as_me:12092: result: $ac_cv_func_initscr" >&5
12093 echo "${ECHO_T}$ac_cv_func_initscr" >&6
12094 if test "$ac_cv_func_initscr" = yes; then
12095 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12098 cf_save_LIBS="$LIBS"
12099 echo "$as_me:12099: checking for initscr in -l$cf_nculib_root" >&5
12100 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
12101 LIBS="-l$cf_nculib_root $LIBS"
12102 cat >"conftest.$ac_ext" <<_ACEOF
12103 #line 12103 "configure"
12104 #include "confdefs.h"
12105 #include <${cf_cv_ncurses_header:-curses.h}>
12114 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12115 if { (eval echo "$as_me:12115: \"$ac_link\"") >&5
12116 (eval $ac_link) 2>&5
12118 echo "$as_me:12118: \$? = $ac_status" >&5
12119 (exit "$ac_status"); } &&
12120 { ac_try='test -s "conftest$ac_exeext"'
12121 { (eval echo "$as_me:12121: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12124 echo "$as_me:12124: \$? = $ac_status" >&5
12125 (exit "$ac_status"); }; }; then
12126 echo "$as_me:12126: result: yes" >&5
12127 echo "${ECHO_T}yes" >&6
12128 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12131 echo "$as_me: failed program was:" >&5
12132 cat "conftest.$ac_ext" >&5
12133 echo "$as_me:12133: result: no" >&5
12134 echo "${ECHO_T}no" >&6
12137 cf_library_path_list=""
12138 if test -n "${LDFLAGS}${LIBS}" ; then
12139 for cf_library_path in $LDFLAGS $LIBS
12141 case "$cf_library_path" in
12143 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12145 test "x$cf_library_path" != "xNONE" && \
12146 test -d "$cf_library_path" && \
12148 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12149 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12150 test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
12151 test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
12152 test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
12153 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"
12156 cf_library_path_list="$cf_library_path_list $cf_search"
12164 test "x$prefix" != "xNONE" && \
12165 test -d "$prefix" && \
12167 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12168 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12169 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
12170 test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
12171 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
12172 test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
12175 for cf_subdir_prefix in \
12184 test "x$cf_subdir_prefix" != "x$prefix" && \
12185 test -d "$cf_subdir_prefix" && \
12186 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12187 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12188 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12189 test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
12190 test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
12191 test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
12192 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"
12197 cf_search="$cf_library_path_list $cf_search"
12199 for cf_libdir in $cf_search
12201 echo "$as_me:12201: checking for -l$cf_nculib_root in $cf_libdir" >&5
12202 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
12203 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
12204 cat >"conftest.$ac_ext" <<_ACEOF
12205 #line 12205 "configure"
12206 #include "confdefs.h"
12207 #include <${cf_cv_ncurses_header:-curses.h}>
12216 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12217 if { (eval echo "$as_me:12217: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>&5
12220 echo "$as_me:12220: \$? = $ac_status" >&5
12221 (exit "$ac_status"); } &&
12222 { ac_try='test -s "conftest$ac_exeext"'
12223 { (eval echo "$as_me:12223: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:12226: \$? = $ac_status" >&5
12227 (exit "$ac_status"); }; }; then
12228 echo "$as_me:12228: result: yes" >&5
12229 echo "${ECHO_T}yes" >&6
12230 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12233 echo "$as_me: failed program was:" >&5
12234 cat "conftest.$ac_ext" >&5
12235 echo "$as_me:12235: result: no" >&5
12236 echo "${ECHO_T}no" >&6
12237 LIBS="$cf_save_LIBS"
12239 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12243 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12247 eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
12249 if test "$cf_found_library" = no ; then
12250 { { echo "$as_me:12250: error: Cannot link $cf_nculib_root library" >&5
12251 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
12252 { (exit 1); exit 1; }; }
12257 if test -n "$cf_ncurses_LIBS" ; then
12258 echo "$as_me:12258: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
12259 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
12260 cf_ncurses_SAVE="$LIBS"
12261 for p in $cf_ncurses_LIBS ; do
12262 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
12263 if test "$q" != "$LIBS" ; then
12267 cat >"conftest.$ac_ext" <<_ACEOF
12268 #line 12268 "configure"
12269 #include "confdefs.h"
12270 #include <${cf_cv_ncurses_header:-curses.h}>
12274 initscr(); mousemask(0,0); tigetstr((char *)0);
12279 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12280 if { (eval echo "$as_me:12280: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>&5
12283 echo "$as_me:12283: \$? = $ac_status" >&5
12284 (exit "$ac_status"); } &&
12285 { ac_try='test -s "conftest$ac_exeext"'
12286 { (eval echo "$as_me:12286: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:12289: \$? = $ac_status" >&5
12290 (exit "$ac_status"); }; }; then
12291 echo "$as_me:12291: result: yes" >&5
12292 echo "${ECHO_T}yes" >&6
12294 echo "$as_me: failed program was:" >&5
12295 cat "conftest.$ac_ext" >&5
12296 echo "$as_me:12296: result: no" >&5
12297 echo "${ECHO_T}no" >&6
12298 LIBS="$cf_ncurses_SAVE"
12300 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12303 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12305 cat >>confdefs.h <<EOF
12306 #define $cf_nculib_ROOT 1
12311 NCURSES_CONFIG=none
12316 echo "$as_me:12316: checking for X" >&5
12317 echo $ECHO_N "checking for X... $ECHO_C" >&6
12319 # Check whether --with-x or --without-x was given.
12320 if test "${with_x+set}" = set; then
12324 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12325 if test "x$with_x" = xno; then
12326 # The user explicitly disabled X.
12329 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12330 # Both variables are already set.
12333 if test "${ac_cv_have_x+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 # One or both of the vars are not set, and there is no cached value.
12337 ac_x_includes=no ac_x_libraries=no
12338 rm -fr conftest.dir
12339 if mkdir conftest.dir; then
12341 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12342 cat >Imakefile <<'EOF'
12344 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12346 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12347 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12348 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
12349 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12350 for ac_extension in a so sl dylib dll; do
12351 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12352 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12353 ac_im_usrlibdir=$ac_im_libdir; break
12356 # Screen out bogus values from the imake configuration. They are
12357 # bogus both because they are the default anyway, and because
12358 # using them would break gcc on systems where it needs fixed includes.
12359 case $ac_im_incroot in
12361 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12363 case $ac_im_usrlibdir in
12364 /usr/lib | /lib) ;;
12365 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12369 rm -fr conftest.dir
12372 # Standard set of common directories for X headers.
12373 # Check X11 before X11Rn because it is often a symlink to the current release.
12390 /usr/local/X11/include
12391 /usr/local/X11R7/include
12392 /usr/local/X11R6/include
12393 /usr/local/X11R5/include
12394 /usr/local/X11R4/include
12396 /usr/local/include/X11
12397 /usr/local/include/X11R7
12398 /usr/local/include/X11R6
12399 /usr/local/include/X11R5
12400 /usr/local/include/X11R4
12404 /usr/XFree86/include/X11
12408 /usr/unsupported/include
12409 /usr/athena/include
12410 /usr/local/x11r5/include
12411 /usr/lpp/Xamples/include
12413 /usr/openwin/include
12414 /usr/openwin/share/include'
12416 if test "$ac_x_includes" = no; then
12417 # Guess where to find include files, by looking for Intrinsic.h.
12418 # First, try using that file with no special directory specified.
12419 cat >"conftest.$ac_ext" <<_ACEOF
12420 #line 12420 "configure"
12421 #include "confdefs.h"
12422 #include <X11/Intrinsic.h>
12424 if { (eval echo "$as_me:12424: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12425 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12427 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:12430: \$? = $ac_status" >&5
12431 (exit "$ac_status"); } >/dev/null; then
12432 if test -s conftest.err; then
12433 ac_cpp_err=$ac_c_preproc_warn_flag
12440 if test -z "$ac_cpp_err"; then
12441 # We can compile using X headers with no special include directory.
12444 echo "$as_me: failed program was:" >&5
12445 cat "conftest.$ac_ext" >&5
12446 for ac_dir in $ac_x_header_dirs; do
12447 if test -r "$ac_dir/X11/Intrinsic.h"; then
12448 ac_x_includes=$ac_dir
12453 rm -f conftest.err "conftest.$ac_ext"
12454 fi # $ac_x_includes = no
12456 if test "$ac_x_libraries" = no; then
12457 # Check for the libraries.
12458 # See if we find them without any special options.
12459 # Don't add to $LIBS permanently.
12462 cat >"conftest.$ac_ext" <<_ACEOF
12463 #line 12463 "configure"
12464 #include "confdefs.h"
12465 #include <X11/Intrinsic.h>
12474 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12475 if { (eval echo "$as_me:12475: \"$ac_link\"") >&5
12476 (eval $ac_link) 2>&5
12478 echo "$as_me:12478: \$? = $ac_status" >&5
12479 (exit "$ac_status"); } &&
12480 { ac_try='test -s "conftest$ac_exeext"'
12481 { (eval echo "$as_me:12481: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:12484: \$? = $ac_status" >&5
12485 (exit "$ac_status"); }; }; then
12487 # We can link X programs with no special library path.
12490 echo "$as_me: failed program was:" >&5
12491 cat "conftest.$ac_ext" >&5
12493 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12495 # Don't even attempt the hair of trying to link an X program!
12496 for ac_extension in a so sl dylib dll; do
12497 if test -r "$ac_dir/libXt.$ac_extension"; then
12498 ac_x_libraries=$ac_dir
12504 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12505 fi # $ac_x_libraries = no
12507 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
12508 # Didn't find X anywhere. Cache the known absence of X.
12509 ac_cv_have_x="have_x=no"
12511 # Record where we found X for the cache.
12512 ac_cv_have_x="have_x=yes \
12513 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12518 eval "$ac_cv_have_x"
12521 if test "$have_x" != yes; then
12522 echo "$as_me:12522: result: $have_x" >&5
12523 echo "${ECHO_T}$have_x" >&6
12526 # If each of the values was on the command line, it overrides each guess.
12527 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12528 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12529 # Update the cache value to reflect the command line values.
12530 ac_cv_have_x="have_x=yes \
12531 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12532 echo "$as_me:12532: result: libraries $x_libraries, headers $x_includes" >&5
12533 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
12536 if test "$no_x" = yes; then
12537 # Not all programs may use this symbol, but it does not hurt to define it.
12539 cat >>confdefs.h <<\EOF
12540 #define X_DISPLAY_MISSING 1
12548 if test -n "$x_includes"; then
12549 X_CFLAGS="$X_CFLAGS -I$x_includes"
12552 # It would also be nice to do this for all -L options, not just this one.
12553 if test -n "$x_libraries"; then
12554 X_LIBS="$X_LIBS -L$x_libraries"
12555 # For Solaris; some versions of Sun CC require a space after -R and
12556 # others require no space. Words are not sufficient . . . .
12557 case `(uname -sr) 2>/dev/null` in
12559 echo "$as_me:12559: checking whether -R must be followed by a space" >&5
12560 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
12561 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12562 cat >"conftest.$ac_ext" <<_ACEOF
12563 #line 12563 "configure"
12564 #include "confdefs.h"
12574 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12575 if { (eval echo "$as_me:12575: \"$ac_link\"") >&5
12576 (eval $ac_link) 2>&5
12578 echo "$as_me:12578: \$? = $ac_status" >&5
12579 (exit "$ac_status"); } &&
12580 { ac_try='test -s "conftest$ac_exeext"'
12581 { (eval echo "$as_me:12581: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:12584: \$? = $ac_status" >&5
12585 (exit "$ac_status"); }; }; then
12588 echo "$as_me: failed program was:" >&5
12589 cat "conftest.$ac_ext" >&5
12592 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12593 if test $ac_R_nospace = yes; then
12594 echo "$as_me:12594: result: no" >&5
12595 echo "${ECHO_T}no" >&6
12596 X_LIBS="$X_LIBS -R$x_libraries"
12598 LIBS="$ac_xsave_LIBS -R $x_libraries"
12599 cat >"conftest.$ac_ext" <<_ACEOF
12600 #line 12600 "configure"
12601 #include "confdefs.h"
12611 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12612 if { (eval echo "$as_me:12612: \"$ac_link\"") >&5
12613 (eval $ac_link) 2>&5
12615 echo "$as_me:12615: \$? = $ac_status" >&5
12616 (exit "$ac_status"); } &&
12617 { ac_try='test -s "conftest$ac_exeext"'
12618 { (eval echo "$as_me:12618: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:12621: \$? = $ac_status" >&5
12622 (exit "$ac_status"); }; }; then
12625 echo "$as_me: failed program was:" >&5
12626 cat "conftest.$ac_ext" >&5
12629 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12630 if test $ac_R_space = yes; then
12631 echo "$as_me:12631: result: yes" >&5
12632 echo "${ECHO_T}yes" >&6
12633 X_LIBS="$X_LIBS -R $x_libraries"
12635 echo "$as_me:12635: result: neither works" >&5
12636 echo "${ECHO_T}neither works" >&6
12639 LIBS=$ac_xsave_LIBS
12643 # Check for system-dependent libraries X programs must link with.
12644 # Do this before checking for the system-independent R6 libraries
12645 # (-lICE), since we may need -lsocket or whatever for X linking.
12647 if test "$ISC" = yes; then
12648 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12650 # Martyn Johnson says this is needed for Ultrix, if the X
12651 # libraries were built with DECnet support. And Karl Berry says
12652 # the Alpha needs dnet_stub (dnet does not exist).
12653 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12654 cat >"conftest.$ac_ext" <<_ACEOF
12655 #line 12655 "configure"
12656 #include "confdefs.h"
12658 /* Override any gcc2 internal prototype to avoid an error. */
12662 /* We use char because int might match the return type of a gcc2
12663 builtin and then its argument prototype would still apply. */
12664 char XOpenDisplay ();
12673 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12674 if { (eval echo "$as_me:12674: \"$ac_link\"") >&5
12675 (eval $ac_link) 2>&5
12677 echo "$as_me:12677: \$? = $ac_status" >&5
12678 (exit "$ac_status"); } &&
12679 { ac_try='test -s "conftest$ac_exeext"'
12680 { (eval echo "$as_me:12680: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:12683: \$? = $ac_status" >&5
12684 (exit "$ac_status"); }; }; then
12687 echo "$as_me: failed program was:" >&5
12688 cat "conftest.$ac_ext" >&5
12689 echo "$as_me:12689: checking for dnet_ntoa in -ldnet" >&5
12690 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
12691 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 ac_check_lib_save_LIBS=$LIBS
12695 LIBS="-ldnet $LIBS"
12696 cat >"conftest.$ac_ext" <<_ACEOF
12697 #line 12697 "configure"
12698 #include "confdefs.h"
12700 /* Override any gcc2 internal prototype to avoid an error. */
12704 /* We use char because int might match the return type of a gcc2
12705 builtin and then its argument prototype would still apply. */
12715 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12716 if { (eval echo "$as_me:12716: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>&5
12719 echo "$as_me:12719: \$? = $ac_status" >&5
12720 (exit "$ac_status"); } &&
12721 { ac_try='test -s "conftest$ac_exeext"'
12722 { (eval echo "$as_me:12722: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:12725: \$? = $ac_status" >&5
12726 (exit "$ac_status"); }; }; then
12727 ac_cv_lib_dnet_dnet_ntoa=yes
12729 echo "$as_me: failed program was:" >&5
12730 cat "conftest.$ac_ext" >&5
12731 ac_cv_lib_dnet_dnet_ntoa=no
12733 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12734 LIBS=$ac_check_lib_save_LIBS
12736 echo "$as_me:12736: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12737 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12738 if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
12739 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12742 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12743 echo "$as_me:12743: checking for dnet_ntoa in -ldnet_stub" >&5
12744 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
12745 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 ac_check_lib_save_LIBS=$LIBS
12749 LIBS="-ldnet_stub $LIBS"
12750 cat >"conftest.$ac_ext" <<_ACEOF
12751 #line 12751 "configure"
12752 #include "confdefs.h"
12754 /* Override any gcc2 internal prototype to avoid an error. */
12758 /* We use char because int might match the return type of a gcc2
12759 builtin and then its argument prototype would still apply. */
12769 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12770 if { (eval echo "$as_me:12770: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>&5
12773 echo "$as_me:12773: \$? = $ac_status" >&5
12774 (exit "$ac_status"); } &&
12775 { ac_try='test -s "conftest$ac_exeext"'
12776 { (eval echo "$as_me:12776: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12779 echo "$as_me:12779: \$? = $ac_status" >&5
12780 (exit "$ac_status"); }; }; then
12781 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12783 echo "$as_me: failed program was:" >&5
12784 cat "conftest.$ac_ext" >&5
12785 ac_cv_lib_dnet_stub_dnet_ntoa=no
12787 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12788 LIBS=$ac_check_lib_save_LIBS
12790 echo "$as_me:12790: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12791 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12792 if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
12793 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12798 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12799 LIBS="$ac_xsave_LIBS"
12801 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12802 # to get the SysV transport functions.
12803 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12805 # The nsl library prevents programs from opening the X display
12806 # on Irix 5.2, according to T.E. Dickey.
12807 # The functions gethostbyname, getservbyname, and inet_addr are
12808 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12809 echo "$as_me:12809: checking for gethostbyname" >&5
12810 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12811 if test "${ac_cv_func_gethostbyname+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 cat >"conftest.$ac_ext" <<_ACEOF
12815 #line 12815 "configure"
12816 #include "confdefs.h"
12817 #define gethostbyname autoconf_temporary
12818 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12819 #undef gethostbyname
12825 /* We use char because int might match the return type of a gcc2
12826 builtin and then its argument prototype would still apply. */
12827 char gethostbyname (void);
12833 /* The GNU C library defines stubs for functions which it implements
12834 to always fail with ENOSYS. Some functions are actually named
12835 something starting with __ and the normal name is an alias. */
12836 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12837 #error found stub for gethostbyname
12840 return gethostbyname ();
12845 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12846 if { (eval echo "$as_me:12846: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12849 echo "$as_me:12849: \$? = $ac_status" >&5
12850 (exit "$ac_status"); } &&
12851 { ac_try='test -s "conftest$ac_exeext"'
12852 { (eval echo "$as_me:12852: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:12855: \$? = $ac_status" >&5
12856 (exit "$ac_status"); }; }; then
12857 ac_cv_func_gethostbyname=yes
12859 echo "$as_me: failed program was:" >&5
12860 cat "conftest.$ac_ext" >&5
12861 ac_cv_func_gethostbyname=no
12863 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12865 echo "$as_me:12865: result: $ac_cv_func_gethostbyname" >&5
12866 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12868 if test $ac_cv_func_gethostbyname = no; then
12869 echo "$as_me:12869: checking for gethostbyname in -lnsl" >&5
12870 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12871 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 ac_check_lib_save_LIBS=$LIBS
12876 cat >"conftest.$ac_ext" <<_ACEOF
12877 #line 12877 "configure"
12878 #include "confdefs.h"
12880 /* Override any gcc2 internal prototype to avoid an error. */
12884 /* We use char because int might match the return type of a gcc2
12885 builtin and then its argument prototype would still apply. */
12886 char gethostbyname ();
12895 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12896 if { (eval echo "$as_me:12896: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>&5
12899 echo "$as_me:12899: \$? = $ac_status" >&5
12900 (exit "$ac_status"); } &&
12901 { ac_try='test -s "conftest$ac_exeext"'
12902 { (eval echo "$as_me:12902: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12905 echo "$as_me:12905: \$? = $ac_status" >&5
12906 (exit "$ac_status"); }; }; then
12907 ac_cv_lib_nsl_gethostbyname=yes
12909 echo "$as_me: failed program was:" >&5
12910 cat "conftest.$ac_ext" >&5
12911 ac_cv_lib_nsl_gethostbyname=no
12913 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12914 LIBS=$ac_check_lib_save_LIBS
12916 echo "$as_me:12916: result: $ac_cv_lib_nsl_gethostbyname" >&5
12917 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12918 if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
12919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12922 if test $ac_cv_lib_nsl_gethostbyname = no; then
12923 echo "$as_me:12923: checking for gethostbyname in -lbsd" >&5
12924 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12925 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 ac_check_lib_save_LIBS=$LIBS
12930 cat >"conftest.$ac_ext" <<_ACEOF
12931 #line 12931 "configure"
12932 #include "confdefs.h"
12934 /* Override any gcc2 internal prototype to avoid an error. */
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 gethostbyname ();
12949 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12950 if { (eval echo "$as_me:12950: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>&5
12953 echo "$as_me:12953: \$? = $ac_status" >&5
12954 (exit "$ac_status"); } &&
12955 { ac_try='test -s "conftest$ac_exeext"'
12956 { (eval echo "$as_me:12956: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12959 echo "$as_me:12959: \$? = $ac_status" >&5
12960 (exit "$ac_status"); }; }; then
12961 ac_cv_lib_bsd_gethostbyname=yes
12963 echo "$as_me: failed program was:" >&5
12964 cat "conftest.$ac_ext" >&5
12965 ac_cv_lib_bsd_gethostbyname=no
12967 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12968 LIBS=$ac_check_lib_save_LIBS
12970 echo "$as_me:12970: result: $ac_cv_lib_bsd_gethostbyname" >&5
12971 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12972 if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
12973 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12979 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12980 # socket/setsockopt and other routines are undefined under SCO ODT
12981 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12982 # on later versions), says Simon Leinen: it contains gethostby*
12983 # variants that don't use the nameserver (or something). -lsocket
12984 # must be given before -lnsl if both are needed. We assume that
12985 # if connect needs -lnsl, so does gethostbyname.
12986 echo "$as_me:12986: checking for connect" >&5
12987 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12988 if test "${ac_cv_func_connect+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 cat >"conftest.$ac_ext" <<_ACEOF
12992 #line 12992 "configure"
12993 #include "confdefs.h"
12994 #define connect autoconf_temporary
12995 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13002 /* We use char because int might match the return type of a gcc2
13003 builtin and then its argument prototype would still apply. */
13004 char connect (void);
13010 /* The GNU C library defines stubs for functions which it implements
13011 to always fail with ENOSYS. Some functions are actually named
13012 something starting with __ and the normal name is an alias. */
13013 #if defined (__stub_connect) || defined (__stub___connect)
13014 #error found stub for connect
13022 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13023 if { (eval echo "$as_me:13023: \"$ac_link\"") >&5
13024 (eval $ac_link) 2>&5
13026 echo "$as_me:13026: \$? = $ac_status" >&5
13027 (exit "$ac_status"); } &&
13028 { ac_try='test -s "conftest$ac_exeext"'
13029 { (eval echo "$as_me:13029: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13032 echo "$as_me:13032: \$? = $ac_status" >&5
13033 (exit "$ac_status"); }; }; then
13034 ac_cv_func_connect=yes
13036 echo "$as_me: failed program was:" >&5
13037 cat "conftest.$ac_ext" >&5
13038 ac_cv_func_connect=no
13040 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13042 echo "$as_me:13042: result: $ac_cv_func_connect" >&5
13043 echo "${ECHO_T}$ac_cv_func_connect" >&6
13045 if test $ac_cv_func_connect = no; then
13046 echo "$as_me:13046: checking for connect in -lsocket" >&5
13047 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
13048 if test "${ac_cv_lib_socket_connect+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 ac_check_lib_save_LIBS=$LIBS
13052 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13053 cat >"conftest.$ac_ext" <<_ACEOF
13054 #line 13054 "configure"
13055 #include "confdefs.h"
13057 /* Override any gcc2 internal prototype to avoid an error. */
13061 /* We use char because int might match the return type of a gcc2
13062 builtin and then its argument prototype would still apply. */
13072 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13073 if { (eval echo "$as_me:13073: \"$ac_link\"") >&5
13074 (eval $ac_link) 2>&5
13076 echo "$as_me:13076: \$? = $ac_status" >&5
13077 (exit "$ac_status"); } &&
13078 { ac_try='test -s "conftest$ac_exeext"'
13079 { (eval echo "$as_me:13079: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:13082: \$? = $ac_status" >&5
13083 (exit "$ac_status"); }; }; then
13084 ac_cv_lib_socket_connect=yes
13086 echo "$as_me: failed program was:" >&5
13087 cat "conftest.$ac_ext" >&5
13088 ac_cv_lib_socket_connect=no
13090 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13091 LIBS=$ac_check_lib_save_LIBS
13093 echo "$as_me:13093: result: $ac_cv_lib_socket_connect" >&5
13094 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
13095 if test "$ac_cv_lib_socket_connect" = yes; then
13096 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13101 # Guillermo Gomez says -lposix is necessary on A/UX.
13102 echo "$as_me:13102: checking for remove" >&5
13103 echo $ECHO_N "checking for remove... $ECHO_C" >&6
13104 if test "${ac_cv_func_remove+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 cat >"conftest.$ac_ext" <<_ACEOF
13108 #line 13108 "configure"
13109 #include "confdefs.h"
13110 #define remove autoconf_temporary
13111 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13118 /* We use char because int might match the return type of a gcc2
13119 builtin and then its argument prototype would still apply. */
13120 char remove (void);
13126 /* The GNU C library defines stubs for functions which it implements
13127 to always fail with ENOSYS. Some functions are actually named
13128 something starting with __ and the normal name is an alias. */
13129 #if defined (__stub_remove) || defined (__stub___remove)
13130 #error found stub for remove
13138 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13139 if { (eval echo "$as_me:13139: \"$ac_link\"") >&5
13140 (eval $ac_link) 2>&5
13142 echo "$as_me:13142: \$? = $ac_status" >&5
13143 (exit "$ac_status"); } &&
13144 { ac_try='test -s "conftest$ac_exeext"'
13145 { (eval echo "$as_me:13145: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13148 echo "$as_me:13148: \$? = $ac_status" >&5
13149 (exit "$ac_status"); }; }; then
13150 ac_cv_func_remove=yes
13152 echo "$as_me: failed program was:" >&5
13153 cat "conftest.$ac_ext" >&5
13154 ac_cv_func_remove=no
13156 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13158 echo "$as_me:13158: result: $ac_cv_func_remove" >&5
13159 echo "${ECHO_T}$ac_cv_func_remove" >&6
13161 if test $ac_cv_func_remove = no; then
13162 echo "$as_me:13162: checking for remove in -lposix" >&5
13163 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
13164 if test "${ac_cv_lib_posix_remove+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lposix $LIBS"
13169 cat >"conftest.$ac_ext" <<_ACEOF
13170 #line 13170 "configure"
13171 #include "confdefs.h"
13173 /* Override any gcc2 internal prototype to avoid an error. */
13177 /* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13188 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13189 if { (eval echo "$as_me:13189: \"$ac_link\"") >&5
13190 (eval $ac_link) 2>&5
13192 echo "$as_me:13192: \$? = $ac_status" >&5
13193 (exit "$ac_status"); } &&
13194 { ac_try='test -s "conftest$ac_exeext"'
13195 { (eval echo "$as_me:13195: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13198 echo "$as_me:13198: \$? = $ac_status" >&5
13199 (exit "$ac_status"); }; }; then
13200 ac_cv_lib_posix_remove=yes
13202 echo "$as_me: failed program was:" >&5
13203 cat "conftest.$ac_ext" >&5
13204 ac_cv_lib_posix_remove=no
13206 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13207 LIBS=$ac_check_lib_save_LIBS
13209 echo "$as_me:13209: result: $ac_cv_lib_posix_remove" >&5
13210 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
13211 if test "$ac_cv_lib_posix_remove" = yes; then
13212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13217 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13218 echo "$as_me:13218: checking for shmat" >&5
13219 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
13220 if test "${ac_cv_func_shmat+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 cat >"conftest.$ac_ext" <<_ACEOF
13224 #line 13224 "configure"
13225 #include "confdefs.h"
13226 #define shmat autoconf_temporary
13227 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13234 /* We use char because int might match the return type of a gcc2
13235 builtin and then its argument prototype would still apply. */
13242 /* The GNU C library defines stubs for functions which it implements
13243 to always fail with ENOSYS. Some functions are actually named
13244 something starting with __ and the normal name is an alias. */
13245 #if defined (__stub_shmat) || defined (__stub___shmat)
13246 #error found stub for shmat
13254 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13255 if { (eval echo "$as_me:13255: \"$ac_link\"") >&5
13256 (eval $ac_link) 2>&5
13258 echo "$as_me:13258: \$? = $ac_status" >&5
13259 (exit "$ac_status"); } &&
13260 { ac_try='test -s "conftest$ac_exeext"'
13261 { (eval echo "$as_me:13261: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:13264: \$? = $ac_status" >&5
13265 (exit "$ac_status"); }; }; then
13266 ac_cv_func_shmat=yes
13268 echo "$as_me: failed program was:" >&5
13269 cat "conftest.$ac_ext" >&5
13270 ac_cv_func_shmat=no
13272 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13274 echo "$as_me:13274: result: $ac_cv_func_shmat" >&5
13275 echo "${ECHO_T}$ac_cv_func_shmat" >&6
13277 if test $ac_cv_func_shmat = no; then
13278 echo "$as_me:13278: checking for shmat in -lipc" >&5
13279 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
13280 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 ac_check_lib_save_LIBS=$LIBS
13285 cat >"conftest.$ac_ext" <<_ACEOF
13286 #line 13286 "configure"
13287 #include "confdefs.h"
13289 /* Override any gcc2 internal prototype to avoid an error. */
13293 /* We use char because int might match the return type of a gcc2
13294 builtin and then its argument prototype would still apply. */
13304 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13305 if { (eval echo "$as_me:13305: \"$ac_link\"") >&5
13306 (eval $ac_link) 2>&5
13308 echo "$as_me:13308: \$? = $ac_status" >&5
13309 (exit "$ac_status"); } &&
13310 { ac_try='test -s "conftest$ac_exeext"'
13311 { (eval echo "$as_me:13311: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13314 echo "$as_me:13314: \$? = $ac_status" >&5
13315 (exit "$ac_status"); }; }; then
13316 ac_cv_lib_ipc_shmat=yes
13318 echo "$as_me: failed program was:" >&5
13319 cat "conftest.$ac_ext" >&5
13320 ac_cv_lib_ipc_shmat=no
13322 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13323 LIBS=$ac_check_lib_save_LIBS
13325 echo "$as_me:13325: result: $ac_cv_lib_ipc_shmat" >&5
13326 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
13327 if test "$ac_cv_lib_ipc_shmat" = yes; then
13328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13334 # Check for libraries that X11R6 Xt/Xaw programs need.
13335 ac_save_LDFLAGS=$LDFLAGS
13336 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13337 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13338 # check for ICE first), but we must link in the order -lSM -lICE or
13339 # we get undefined symbols. So assume we have SM if we have ICE.
13340 # These have to be linked with before -lX11, unlike the other
13341 # libraries we check for below, so use a different variable.
13342 # John Interrante, Karl Berry
13343 echo "$as_me:13343: checking for IceConnectionNumber in -lICE" >&5
13344 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
13345 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 ac_check_lib_save_LIBS=$LIBS
13349 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13350 cat >"conftest.$ac_ext" <<_ACEOF
13351 #line 13351 "configure"
13352 #include "confdefs.h"
13354 /* Override any gcc2 internal prototype to avoid an error. */
13358 /* We use char because int might match the return type of a gcc2
13359 builtin and then its argument prototype would still apply. */
13360 char IceConnectionNumber ();
13364 IceConnectionNumber ();
13369 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13370 if { (eval echo "$as_me:13370: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>&5
13373 echo "$as_me:13373: \$? = $ac_status" >&5
13374 (exit "$ac_status"); } &&
13375 { ac_try='test -s "conftest$ac_exeext"'
13376 { (eval echo "$as_me:13376: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:13379: \$? = $ac_status" >&5
13380 (exit "$ac_status"); }; }; then
13381 ac_cv_lib_ICE_IceConnectionNumber=yes
13383 echo "$as_me: failed program was:" >&5
13384 cat "conftest.$ac_ext" >&5
13385 ac_cv_lib_ICE_IceConnectionNumber=no
13387 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13388 LIBS=$ac_check_lib_save_LIBS
13390 echo "$as_me:13390: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13391 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
13392 if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
13393 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13396 LDFLAGS=$ac_save_LDFLAGS
13400 cf_x_athena=${cf_x_athena:-Xaw}
13402 echo "$as_me:13402: checking if you want to link with Xaw 3d library" >&5
13403 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
13406 # Check whether --with-Xaw3d or --without-Xaw3d was given.
13407 if test "${with_Xaw3d+set}" = set; then
13408 withval="$with_Xaw3d"
13411 if test "$withval" = yes ; then
13413 echo "$as_me:13413: result: yes" >&5
13414 echo "${ECHO_T}yes" >&6
13416 echo "$as_me:13416: result: no" >&5
13417 echo "${ECHO_T}no" >&6
13420 echo "$as_me:13420: checking if you want to link with Xaw 3d xft library" >&5
13421 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
13424 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
13425 if test "${with_Xaw3dxft+set}" = set; then
13426 withval="$with_Xaw3dxft"
13429 if test "$withval" = yes ; then
13430 cf_x_athena=Xaw3dxft
13431 echo "$as_me:13431: result: yes" >&5
13432 echo "${ECHO_T}yes" >&6
13434 echo "$as_me:13434: result: no" >&5
13435 echo "${ECHO_T}no" >&6
13438 echo "$as_me:13438: checking if you want to link with neXT Athena library" >&5
13439 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
13442 # Check whether --with-neXtaw or --without-neXtaw was given.
13443 if test "${with_neXtaw+set}" = set; then
13444 withval="$with_neXtaw"
13447 if test "$withval" = yes ; then
13449 echo "$as_me:13449: result: yes" >&5
13450 echo "${ECHO_T}yes" >&6
13452 echo "$as_me:13452: result: no" >&5
13453 echo "${ECHO_T}no" >&6
13456 echo "$as_me:13456: checking if you want to link with Athena-Plus library" >&5
13457 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
13460 # Check whether --with-XawPlus or --without-XawPlus was given.
13461 if test "${with_XawPlus+set}" = set; then
13462 withval="$with_XawPlus"
13465 if test "$withval" = yes ; then
13466 cf_x_athena=XawPlus
13467 echo "$as_me:13467: result: yes" >&5
13468 echo "${ECHO_T}yes" >&6
13470 echo "$as_me:13470: result: no" >&5
13471 echo "${ECHO_T}no" >&6
13476 if test "$PKG_CONFIG" != none ; then
13478 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
13479 for cf_athena_pkg in \
13482 ${cf_x_athena}-devel \
13483 lib${cf_x_athena} \
13484 lib${cf_x_athena}-devel
13487 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then
13488 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
13490 echo "${as_me:-configure}:13490: testing found package $cf_athena_pkg ..." 1>&5
13492 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`"
13493 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`"
13494 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
13496 echo "${as_me:-configure}:13496: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13498 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
13500 echo "${as_me:-configure}:13500: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
13505 cf_new_extra_cppflags=
13507 for cf_add_cflags in $cf_pkgconfig_incs
13509 case "$cf_fix_cppflags" in
13511 case "$cf_add_cflags" in
13512 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13513 case "$cf_add_cflags" in
13515 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13517 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13518 && test -z "${cf_tst_cflags}" \
13519 && cf_fix_cppflags=yes
13521 if test "$cf_fix_cppflags" = yes ; then
13523 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13524 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13527 elif test "${cf_tst_cflags}" = "\"'" ; then
13529 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13530 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13536 case "$CPPFLAGS" in
13540 case "$cf_add_cflags" in
13542 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13544 CPPFLAGS=`echo "$CPPFLAGS" | \
13545 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13546 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13551 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13552 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13559 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13560 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13567 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13568 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13570 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13572 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13573 && test -z "${cf_tst_cflags}" \
13574 && cf_fix_cppflags=no
13579 if test -n "$cf_new_cflags" ; then
13581 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13582 CFLAGS="${CFLAGS}$cf_new_cflags"
13586 if test -n "$cf_new_cppflags" ; then
13588 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13589 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13593 if test -n "$cf_new_extra_cppflags" ; then
13595 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13596 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13600 cf_add_libs="$LIBS"
13603 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13604 # filter duplicates
13605 for cf_add_1lib in $cf_add_0lib; do
13606 for cf_add_2lib in $cf_add_libs; do
13607 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13612 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13614 LIBS="$cf_add_libs"
13616 cf_x_athena_lib="$cf_pkgconfig_libs"
13618 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13620 cat >>confdefs.h <<EOF
13621 #define $cf_x_athena_LIBS 1
13624 for cf_trim_lib in Xmu Xt X11
13627 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
13628 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
13629 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
13631 echo "${as_me:-configure}:13631: testing ..trimmed $LIBS ..." 1>&5
13637 echo "$as_me:13637: checking for usable $cf_x_athena/Xmu package" >&5
13638 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
13639 if test "${cf_cv_xaw_compat+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 cat >"conftest.$ac_ext" <<_ACEOF
13644 #line 13644 "configure"
13645 #include "confdefs.h"
13647 #include <X11/Xmu/CharSet.h>
13653 int check = XmuCompareISOLatin1("big", "small");
13660 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13661 if { (eval echo "$as_me:13661: \"$ac_link\"") >&5
13662 (eval $ac_link) 2>&5
13664 echo "$as_me:13664: \$? = $ac_status" >&5
13665 (exit "$ac_status"); } &&
13666 { ac_try='test -s "conftest$ac_exeext"'
13667 { (eval echo "$as_me:13667: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:13670: \$? = $ac_status" >&5
13671 (exit "$ac_status"); }; }; then
13672 cf_cv_xaw_compat=yes
13674 echo "$as_me: failed program was:" >&5
13675 cat "conftest.$ac_ext" >&5
13676 cf_cv_xaw_compat=no
13678 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13680 echo "$as_me:13680: result: $cf_cv_xaw_compat" >&5
13681 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
13683 if test "$cf_cv_xaw_compat" = no
13685 # workaround for broken ".pc" files...
13686 case "$cf_x_athena_lib" in
13690 test -n "$verbose" && echo " work around broken package" 1>&6
13692 echo "${as_me:-configure}:13692: testing work around broken package ..." 1>&5
13694 cf_save_xmu="$LIBS"
13695 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
13697 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then
13698 test -n "$verbose" && echo " found package xmu" 1>&6
13700 echo "${as_me:-configure}:13700: testing found package xmu ..." 1>&5
13702 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`"
13703 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`"
13704 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
13706 echo "${as_me:-configure}:13706: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13708 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
13710 echo "${as_me:-configure}:13710: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
13715 cf_new_extra_cppflags=
13717 for cf_add_cflags in $cf_pkgconfig_incs
13719 case "$cf_fix_cppflags" in
13721 case "$cf_add_cflags" in
13722 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13723 case "$cf_add_cflags" in
13725 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13727 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13728 && test -z "${cf_tst_cflags}" \
13729 && cf_fix_cppflags=yes
13731 if test "$cf_fix_cppflags" = yes ; then
13733 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13734 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13737 elif test "${cf_tst_cflags}" = "\"'" ; then
13739 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13740 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13746 case "$CPPFLAGS" in
13750 case "$cf_add_cflags" in
13752 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13754 CPPFLAGS=`echo "$CPPFLAGS" | \
13755 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13756 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13761 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13762 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13769 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13770 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13777 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13778 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13780 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13782 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13783 && test -z "${cf_tst_cflags}" \
13784 && cf_fix_cppflags=no
13789 if test -n "$cf_new_cflags" ; then
13791 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13792 CFLAGS="${CFLAGS}$cf_new_cflags"
13796 if test -n "$cf_new_cppflags" ; then
13798 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13799 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13803 if test -n "$cf_new_extra_cppflags" ; then
13805 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13806 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13810 cf_add_libs="$LIBS"
13813 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13814 # filter duplicates
13815 for cf_add_1lib in $cf_add_0lib; do
13816 for cf_add_2lib in $cf_add_libs; do
13817 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13822 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13824 LIBS="$cf_add_libs"
13826 LIBS="$cf_save_xmu"
13828 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13830 echo "${as_me:-configure}:13830: testing ...before $LIBS ..." 1>&5
13832 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
13833 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13835 echo "${as_me:-configure}:13835: testing ...after $LIBS ..." 1>&5
13841 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13843 echo "${as_me:-configure}:13843: testing ...before $LIBS ..." 1>&5
13845 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
13846 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13848 echo "${as_me:-configure}:13848: testing ...after $LIBS ..." 1>&5
13852 for cf_trim_lib in Xmu Xt X11
13855 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
13856 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
13857 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
13859 echo "${as_me:-configure}:13859: testing ..trimmed $LIBS ..." 1>&5
13879 if test -z "$cf_x_athena_lib" ; then
13881 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
13882 test -n "$verbose" && echo " found package Xext" 1>&6
13884 echo "${as_me:-configure}:13884: testing found package Xext ..." 1>&5
13886 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
13887 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`"
13888 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
13890 echo "${as_me:-configure}:13890: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13892 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
13894 echo "${as_me:-configure}:13894: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
13899 cf_new_extra_cppflags=
13901 for cf_add_cflags in $cf_pkgconfig_incs
13903 case "$cf_fix_cppflags" in
13905 case "$cf_add_cflags" in
13906 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13907 case "$cf_add_cflags" in
13909 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13911 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13912 && test -z "${cf_tst_cflags}" \
13913 && cf_fix_cppflags=yes
13915 if test "$cf_fix_cppflags" = yes ; then
13917 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13918 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13921 elif test "${cf_tst_cflags}" = "\"'" ; then
13923 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13924 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13930 case "$CPPFLAGS" in
13934 case "$cf_add_cflags" in
13936 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13938 CPPFLAGS=`echo "$CPPFLAGS" | \
13939 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13940 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13945 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13946 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13953 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13954 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13961 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13962 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13964 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13966 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13967 && test -z "${cf_tst_cflags}" \
13968 && cf_fix_cppflags=no
13973 if test -n "$cf_new_cflags" ; then
13975 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13976 CFLAGS="${CFLAGS}$cf_new_cflags"
13980 if test -n "$cf_new_cppflags" ; then
13982 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13983 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13987 if test -n "$cf_new_extra_cppflags" ; then
13989 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13990 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13994 cf_add_libs="$LIBS"
13997 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13998 # filter duplicates
13999 for cf_add_1lib in $cf_add_0lib; do
14000 for cf_add_2lib in $cf_add_libs; do
14001 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14006 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14008 LIBS="$cf_add_libs"
14015 echo "$as_me:14015: checking for XextCreateExtension in -lXext" >&5
14016 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
14017 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 ac_check_lib_save_LIBS=$LIBS
14021 LIBS="-lXext $LIBS"
14022 cat >"conftest.$ac_ext" <<_ACEOF
14023 #line 14023 "configure"
14024 #include "confdefs.h"
14026 /* Override any gcc2 internal prototype to avoid an error. */
14030 /* We use char because int might match the return type of a gcc2
14031 builtin and then its argument prototype would still apply. */
14032 char XextCreateExtension ();
14036 XextCreateExtension ();
14041 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14042 if { (eval echo "$as_me:14042: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>&5
14045 echo "$as_me:14045: \$? = $ac_status" >&5
14046 (exit "$ac_status"); } &&
14047 { ac_try='test -s "conftest$ac_exeext"'
14048 { (eval echo "$as_me:14048: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:14051: \$? = $ac_status" >&5
14052 (exit "$ac_status"); }; }; then
14053 ac_cv_lib_Xext_XextCreateExtension=yes
14055 echo "$as_me: failed program was:" >&5
14056 cat "conftest.$ac_ext" >&5
14057 ac_cv_lib_Xext_XextCreateExtension=no
14059 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14060 LIBS=$ac_check_lib_save_LIBS
14062 echo "$as_me:14062: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
14063 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
14064 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
14066 cf_add_libs="$LIBS"
14069 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14070 # filter duplicates
14071 for cf_add_1lib in $cf_add_0lib; do
14072 for cf_add_2lib in $cf_add_libs; do
14073 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14078 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14080 LIBS="$cf_add_libs"
14086 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
14087 # in some cases has installed dummy files in the former, other cases replaced
14088 # it with a link to the new location). This complicates the configure script.
14089 # Check for that pitfall, and recover using pkg-config
14091 # If none of these are set, the configuration is almost certainly broken.
14092 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
14095 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
14096 test -n "$verbose" && echo " found package x11" 1>&6
14098 echo "${as_me:-configure}:14098: testing found package x11 ..." 1>&5
14100 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
14101 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
14102 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
14104 echo "${as_me:-configure}:14104: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14106 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
14108 echo "${as_me:-configure}:14108: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
14113 cf_new_extra_cppflags=
14115 for cf_add_cflags in $cf_pkgconfig_incs
14117 case "$cf_fix_cppflags" in
14119 case "$cf_add_cflags" in
14120 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14121 case "$cf_add_cflags" in
14123 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14125 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14126 && test -z "${cf_tst_cflags}" \
14127 && cf_fix_cppflags=yes
14129 if test "$cf_fix_cppflags" = yes ; then
14131 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14132 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14135 elif test "${cf_tst_cflags}" = "\"'" ; then
14137 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14138 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14144 case "$CPPFLAGS" in
14148 case "$cf_add_cflags" in
14150 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14152 CPPFLAGS=`echo "$CPPFLAGS" | \
14153 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14154 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14159 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14160 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14167 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14168 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14175 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14176 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14178 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14180 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14181 && test -z "${cf_tst_cflags}" \
14182 && cf_fix_cppflags=no
14187 if test -n "$cf_new_cflags" ; then
14189 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14190 CFLAGS="${CFLAGS}$cf_new_cflags"
14194 if test -n "$cf_new_cppflags" ; then
14196 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14197 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14201 if test -n "$cf_new_extra_cppflags" ; then
14203 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14204 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14208 cf_add_libs="$LIBS"
14211 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14212 # filter duplicates
14213 for cf_add_1lib in $cf_add_0lib; do
14214 for cf_add_2lib in $cf_add_libs; do
14215 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14220 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14222 LIBS="$cf_add_libs"
14228 { echo "$as_me:14228: WARNING: unable to find X11 library" >&5
14229 echo "$as_me: WARNING: unable to find X11 library" >&2;}
14232 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
14233 test -n "$verbose" && echo " found package ice" 1>&6
14235 echo "${as_me:-configure}:14235: testing found package ice ..." 1>&5
14237 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
14238 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
14239 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
14241 echo "${as_me:-configure}:14241: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14243 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
14245 echo "${as_me:-configure}:14245: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
14250 cf_new_extra_cppflags=
14252 for cf_add_cflags in $cf_pkgconfig_incs
14254 case "$cf_fix_cppflags" in
14256 case "$cf_add_cflags" in
14257 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14258 case "$cf_add_cflags" in
14260 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14262 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14263 && test -z "${cf_tst_cflags}" \
14264 && cf_fix_cppflags=yes
14266 if test "$cf_fix_cppflags" = yes ; then
14268 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14269 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14272 elif test "${cf_tst_cflags}" = "\"'" ; then
14274 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14275 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14281 case "$CPPFLAGS" in
14285 case "$cf_add_cflags" in
14287 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14289 CPPFLAGS=`echo "$CPPFLAGS" | \
14290 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14291 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14296 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14297 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14304 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14305 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14312 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14313 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14315 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14317 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14318 && test -z "${cf_tst_cflags}" \
14319 && cf_fix_cppflags=no
14324 if test -n "$cf_new_cflags" ; then
14326 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14327 CFLAGS="${CFLAGS}$cf_new_cflags"
14331 if test -n "$cf_new_cppflags" ; then
14333 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14334 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14338 if test -n "$cf_new_extra_cppflags" ; then
14340 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14341 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14345 cf_add_libs="$LIBS"
14348 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14349 # filter duplicates
14350 for cf_add_1lib in $cf_add_0lib; do
14351 for cf_add_2lib in $cf_add_libs; do
14352 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14357 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14359 LIBS="$cf_add_libs"
14365 { echo "$as_me:14365: WARNING: unable to find ICE library" >&5
14366 echo "$as_me: WARNING: unable to find ICE library" >&2;}
14369 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
14370 test -n "$verbose" && echo " found package sm" 1>&6
14372 echo "${as_me:-configure}:14372: testing found package sm ..." 1>&5
14374 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
14375 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
14376 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
14378 echo "${as_me:-configure}:14378: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14380 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
14382 echo "${as_me:-configure}:14382: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
14387 cf_new_extra_cppflags=
14389 for cf_add_cflags in $cf_pkgconfig_incs
14391 case "$cf_fix_cppflags" in
14393 case "$cf_add_cflags" in
14394 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14395 case "$cf_add_cflags" in
14397 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14399 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14400 && test -z "${cf_tst_cflags}" \
14401 && cf_fix_cppflags=yes
14403 if test "$cf_fix_cppflags" = yes ; then
14405 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14406 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14409 elif test "${cf_tst_cflags}" = "\"'" ; then
14411 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14412 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14418 case "$CPPFLAGS" in
14422 case "$cf_add_cflags" in
14424 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14426 CPPFLAGS=`echo "$CPPFLAGS" | \
14427 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14428 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14433 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14434 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14441 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14442 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14449 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14450 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14452 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14454 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14455 && test -z "${cf_tst_cflags}" \
14456 && cf_fix_cppflags=no
14461 if test -n "$cf_new_cflags" ; then
14463 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14464 CFLAGS="${CFLAGS}$cf_new_cflags"
14468 if test -n "$cf_new_cppflags" ; then
14470 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14471 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14475 if test -n "$cf_new_extra_cppflags" ; then
14477 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14478 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14482 cf_add_libs="$LIBS"
14485 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14486 # filter duplicates
14487 for cf_add_1lib in $cf_add_0lib; do
14488 for cf_add_2lib in $cf_add_libs; do
14489 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14494 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14496 LIBS="$cf_add_libs"
14502 { echo "$as_me:14502: WARNING: unable to find SM library" >&5
14503 echo "$as_me: WARNING: unable to find SM library" >&2;}
14506 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
14507 test -n "$verbose" && echo " found package xt" 1>&6
14509 echo "${as_me:-configure}:14509: testing found package xt ..." 1>&5
14511 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
14512 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
14513 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
14515 echo "${as_me:-configure}:14515: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14517 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
14519 echo "${as_me:-configure}:14519: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
14524 cf_new_extra_cppflags=
14526 for cf_add_cflags in $cf_pkgconfig_incs
14528 case "$cf_fix_cppflags" in
14530 case "$cf_add_cflags" in
14531 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14532 case "$cf_add_cflags" in
14534 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14536 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14537 && test -z "${cf_tst_cflags}" \
14538 && cf_fix_cppflags=yes
14540 if test "$cf_fix_cppflags" = yes ; then
14542 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14543 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14546 elif test "${cf_tst_cflags}" = "\"'" ; then
14548 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14549 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14555 case "$CPPFLAGS" in
14559 case "$cf_add_cflags" in
14561 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14563 CPPFLAGS=`echo "$CPPFLAGS" | \
14564 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14565 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14570 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14571 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14578 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14579 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14586 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14587 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14589 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14591 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14592 && test -z "${cf_tst_cflags}" \
14593 && cf_fix_cppflags=no
14598 if test -n "$cf_new_cflags" ; then
14600 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14601 CFLAGS="${CFLAGS}$cf_new_cflags"
14605 if test -n "$cf_new_cppflags" ; then
14607 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14608 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14612 if test -n "$cf_new_extra_cppflags" ; then
14614 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14615 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14619 cf_add_libs="$LIBS"
14622 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14623 # filter duplicates
14624 for cf_add_1lib in $cf_add_0lib; do
14625 for cf_add_2lib in $cf_add_libs; do
14626 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14631 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14633 LIBS="$cf_add_libs"
14639 { echo "$as_me:14639: WARNING: unable to find Xt library" >&5
14640 echo "$as_me: WARNING: unable to find Xt library" >&2;}
14644 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
14649 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
14650 test -n "$verbose" && echo " found package xt" 1>&6
14652 echo "${as_me:-configure}:14652: testing found package xt ..." 1>&5
14654 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
14655 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
14656 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
14658 echo "${as_me:-configure}:14658: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14660 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
14662 echo "${as_me:-configure}:14662: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
14667 cf_new_extra_cppflags=
14669 for cf_add_cflags in $cf_pkgconfig_incs
14671 case "$cf_fix_cppflags" in
14673 case "$cf_add_cflags" in
14674 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14675 case "$cf_add_cflags" in
14677 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14679 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14680 && test -z "${cf_tst_cflags}" \
14681 && cf_fix_cppflags=yes
14683 if test "$cf_fix_cppflags" = yes ; then
14685 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14686 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14689 elif test "${cf_tst_cflags}" = "\"'" ; then
14691 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14692 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14698 case "$CPPFLAGS" in
14702 case "$cf_add_cflags" in
14704 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14706 CPPFLAGS=`echo "$CPPFLAGS" | \
14707 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14708 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14713 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14714 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14721 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14722 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14729 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14730 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14732 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14734 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14735 && test -z "${cf_tst_cflags}" \
14736 && cf_fix_cppflags=no
14741 if test -n "$cf_new_cflags" ; then
14743 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14744 CFLAGS="${CFLAGS}$cf_new_cflags"
14748 if test -n "$cf_new_cppflags" ; then
14750 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14751 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14755 if test -n "$cf_new_extra_cppflags" ; then
14757 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14758 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14762 cf_add_libs="$LIBS"
14765 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14766 # filter duplicates
14767 for cf_add_1lib in $cf_add_0lib; do
14768 for cf_add_2lib in $cf_add_libs; do
14769 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14774 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14776 LIBS="$cf_add_libs"
14782 # we have an "xt" package, but it may omit Xt's dependency on X11
14783 echo "$as_me:14783: checking for usable X dependency" >&5
14784 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
14785 if test "${cf_cv_xt_x11_compat+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 cat >"conftest.$ac_ext" <<_ACEOF
14790 #line 14790 "configure"
14791 #include "confdefs.h"
14793 #include <X11/Xlib.h>
14799 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
14800 int rc2 = XClearWindow((Display*) 0, (Window) 0);
14801 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
14802 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
14808 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14809 if { (eval echo "$as_me:14809: \"$ac_link\"") >&5
14810 (eval $ac_link) 2>&5
14812 echo "$as_me:14812: \$? = $ac_status" >&5
14813 (exit "$ac_status"); } &&
14814 { ac_try='test -s "conftest$ac_exeext"'
14815 { (eval echo "$as_me:14815: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:14818: \$? = $ac_status" >&5
14819 (exit "$ac_status"); }; }; then
14820 cf_cv_xt_x11_compat=yes
14822 echo "$as_me: failed program was:" >&5
14823 cat "conftest.$ac_ext" >&5
14824 cf_cv_xt_x11_compat=no
14826 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14828 echo "$as_me:14828: result: $cf_cv_xt_x11_compat" >&5
14829 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
14830 if test "$cf_cv_xt_x11_compat" = no
14832 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
14834 echo "${as_me:-configure}:14834: testing work around broken X11 dependency ..." 1>&5
14836 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
14838 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
14839 test -n "$verbose" && echo " found package x11" 1>&6
14841 echo "${as_me:-configure}:14841: testing found package x11 ..." 1>&5
14843 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
14844 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
14845 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
14847 echo "${as_me:-configure}:14847: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14849 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
14851 echo "${as_me:-configure}:14851: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
14856 cf_new_extra_cppflags=
14858 for cf_add_cflags in $cf_pkgconfig_incs
14860 case "$cf_fix_cppflags" in
14862 case "$cf_add_cflags" in
14863 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14864 case "$cf_add_cflags" in
14866 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14868 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14869 && test -z "${cf_tst_cflags}" \
14870 && cf_fix_cppflags=yes
14872 if test "$cf_fix_cppflags" = yes ; then
14874 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14875 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14878 elif test "${cf_tst_cflags}" = "\"'" ; then
14880 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14881 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14887 case "$CPPFLAGS" in
14891 case "$cf_add_cflags" in
14893 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14895 CPPFLAGS=`echo "$CPPFLAGS" | \
14896 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14897 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14902 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14903 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14910 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14911 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14918 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14919 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14921 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14923 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14924 && test -z "${cf_tst_cflags}" \
14925 && cf_fix_cppflags=no
14930 if test -n "$cf_new_cflags" ; then
14932 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14933 CFLAGS="${CFLAGS}$cf_new_cflags"
14937 if test -n "$cf_new_cppflags" ; then
14939 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14940 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14944 if test -n "$cf_new_extra_cppflags" ; then
14946 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14947 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14951 cf_add_libs="$LIBS"
14954 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14955 # filter duplicates
14956 for cf_add_1lib in $cf_add_0lib; do
14957 for cf_add_2lib in $cf_add_libs; do
14958 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14963 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14965 LIBS="$cf_add_libs"
14972 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14974 echo "${as_me:-configure}:14974: testing ...before $LIBS ..." 1>&5
14976 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
14977 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14979 echo "${as_me:-configure}:14979: testing ...after $LIBS ..." 1>&5
14987 echo "$as_me:14987: checking for usable X Toolkit package" >&5
14988 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
14989 if test "${cf_cv_xt_ice_compat+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 cat >"conftest.$ac_ext" <<_ACEOF
14994 #line 14994 "configure"
14995 #include "confdefs.h"
14997 #include <X11/Shell.h>
15002 int num = IceConnectionNumber(0); (void) num
15008 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15009 if { (eval echo "$as_me:15009: \"$ac_link\"") >&5
15010 (eval $ac_link) 2>&5
15012 echo "$as_me:15012: \$? = $ac_status" >&5
15013 (exit "$ac_status"); } &&
15014 { ac_try='test -s "conftest$ac_exeext"'
15015 { (eval echo "$as_me:15015: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15018 echo "$as_me:15018: \$? = $ac_status" >&5
15019 (exit "$ac_status"); }; }; then
15020 cf_cv_xt_ice_compat=yes
15022 echo "$as_me: failed program was:" >&5
15023 cat "conftest.$ac_ext" >&5
15024 cf_cv_xt_ice_compat=no
15026 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15028 echo "$as_me:15028: result: $cf_cv_xt_ice_compat" >&5
15029 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
15031 if test "$cf_cv_xt_ice_compat" = no
15033 # workaround for broken ".pc" files used for X Toolkit.
15034 case "x$X_PRE_LIBS" in
15040 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
15042 echo "${as_me:-configure}:15042: testing work around broken ICE dependency ..." 1>&5
15044 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
15045 test -n "$verbose" && echo " found package ice" 1>&6
15047 echo "${as_me:-configure}:15047: testing found package ice ..." 1>&5
15049 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
15050 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
15051 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
15053 echo "${as_me:-configure}:15053: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15055 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
15057 echo "${as_me:-configure}:15057: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
15062 cf_new_extra_cppflags=
15064 for cf_add_cflags in $cf_pkgconfig_incs
15066 case "$cf_fix_cppflags" in
15068 case "$cf_add_cflags" in
15069 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15070 case "$cf_add_cflags" in
15072 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15074 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15075 && test -z "${cf_tst_cflags}" \
15076 && cf_fix_cppflags=yes
15078 if test "$cf_fix_cppflags" = yes ; then
15080 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15081 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15084 elif test "${cf_tst_cflags}" = "\"'" ; then
15086 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15087 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15093 case "$CPPFLAGS" in
15097 case "$cf_add_cflags" in
15099 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15101 CPPFLAGS=`echo "$CPPFLAGS" | \
15102 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15103 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15108 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15109 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15116 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15117 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15124 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15125 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15127 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15129 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15130 && test -z "${cf_tst_cflags}" \
15131 && cf_fix_cppflags=no
15136 if test -n "$cf_new_cflags" ; then
15138 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15139 CFLAGS="${CFLAGS}$cf_new_cflags"
15143 if test -n "$cf_new_cppflags" ; then
15145 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15146 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15150 if test -n "$cf_new_extra_cppflags" ; then
15152 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15153 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15157 cf_add_libs="$LIBS"
15160 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15161 # filter duplicates
15162 for cf_add_1lib in $cf_add_0lib; do
15163 for cf_add_2lib in $cf_add_libs; do
15164 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15169 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15171 LIBS="$cf_add_libs"
15173 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
15174 test -n "$verbose" && echo " found package sm" 1>&6
15176 echo "${as_me:-configure}:15176: testing found package sm ..." 1>&5
15178 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
15179 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
15180 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
15182 echo "${as_me:-configure}:15182: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15184 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
15186 echo "${as_me:-configure}:15186: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
15191 cf_new_extra_cppflags=
15193 for cf_add_cflags in $cf_pkgconfig_incs
15195 case "$cf_fix_cppflags" in
15197 case "$cf_add_cflags" in
15198 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15199 case "$cf_add_cflags" in
15201 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15203 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15204 && test -z "${cf_tst_cflags}" \
15205 && cf_fix_cppflags=yes
15207 if test "$cf_fix_cppflags" = yes ; then
15209 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15210 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15213 elif test "${cf_tst_cflags}" = "\"'" ; then
15215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15222 case "$CPPFLAGS" in
15226 case "$cf_add_cflags" in
15228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15230 CPPFLAGS=`echo "$CPPFLAGS" | \
15231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15237 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15238 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15245 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15246 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15253 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15254 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15256 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15258 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15259 && test -z "${cf_tst_cflags}" \
15260 && cf_fix_cppflags=no
15265 if test -n "$cf_new_cflags" ; then
15267 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15268 CFLAGS="${CFLAGS}$cf_new_cflags"
15272 if test -n "$cf_new_cppflags" ; then
15274 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15275 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15279 if test -n "$cf_new_extra_cppflags" ; then
15281 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15282 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15286 cf_add_libs="$LIBS"
15289 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15290 # filter duplicates
15291 for cf_add_1lib in $cf_add_0lib; do
15292 for cf_add_2lib in $cf_add_libs; do
15293 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15298 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15300 LIBS="$cf_add_libs"
15313 test -n "$verbose" && echo " ...before $LIBS" 1>&6
15315 echo "${as_me:-configure}:15315: testing ...before $LIBS ..." 1>&5
15317 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
15318 test -n "$verbose" && echo " ...after $LIBS" 1>&6
15320 echo "${as_me:-configure}:15320: testing ...after $LIBS ..." 1>&5
15336 LDFLAGS="$X_LIBS $LDFLAGS"
15338 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
15340 echo "${as_me:-configure}:15340: testing checking additions to CFLAGS ..." 1>&5
15342 cf_check_cflags="$CFLAGS"
15343 cf_check_cppflags="$CPPFLAGS"
15348 cf_new_extra_cppflags=
15350 for cf_add_cflags in $X_CFLAGS
15352 case "$cf_fix_cppflags" in
15354 case "$cf_add_cflags" in
15355 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15356 case "$cf_add_cflags" in
15358 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15360 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15361 && test -z "${cf_tst_cflags}" \
15362 && cf_fix_cppflags=yes
15364 if test "$cf_fix_cppflags" = yes ; then
15366 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15367 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15370 elif test "${cf_tst_cflags}" = "\"'" ; then
15372 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15373 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15379 case "$CPPFLAGS" in
15383 case "$cf_add_cflags" in
15385 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15387 CPPFLAGS=`echo "$CPPFLAGS" | \
15388 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15389 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15394 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15395 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15402 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15403 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15410 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15411 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15413 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15415 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15416 && test -z "${cf_tst_cflags}" \
15417 && cf_fix_cppflags=no
15422 if test -n "$cf_new_cflags" ; then
15423 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
15425 echo "${as_me:-configure}:15425: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
15427 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15428 CFLAGS="${CFLAGS}$cf_new_cflags"
15432 if test -n "$cf_new_cppflags" ; then
15433 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
15435 echo "${as_me:-configure}:15435: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
15437 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15438 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15442 if test -n "$cf_new_extra_cppflags" ; then
15443 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
15445 echo "${as_me:-configure}:15445: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
15447 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15448 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15452 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
15453 cat >"conftest.$ac_ext" <<_ACEOF
15454 #line 15454 "configure"
15455 #include "confdefs.h"
15460 printf("Hello world");
15465 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15466 if { (eval echo "$as_me:15466: \"$ac_link\"") >&5
15467 (eval $ac_link) 2>&5
15469 echo "$as_me:15469: \$? = $ac_status" >&5
15470 (exit "$ac_status"); } &&
15471 { ac_try='test -s "conftest$ac_exeext"'
15472 { (eval echo "$as_me:15472: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:15475: \$? = $ac_status" >&5
15476 (exit "$ac_status"); }; }; then
15479 echo "$as_me: failed program was:" >&5
15480 cat "conftest.$ac_ext" >&5
15481 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
15483 echo "${as_me:-configure}:15483: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
15485 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
15486 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
15488 echo "${as_me:-configure}:15488: testing but keeping change to \$CPPFLAGS ..." 1>&5
15491 CFLAGS="$cf_check_cflags"
15493 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15496 echo "$as_me:15496: checking for XOpenDisplay" >&5
15497 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
15498 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 cat >"conftest.$ac_ext" <<_ACEOF
15502 #line 15502 "configure"
15503 #include "confdefs.h"
15504 #define XOpenDisplay autoconf_temporary
15505 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15506 #undef XOpenDisplay
15512 /* We use char because int might match the return type of a gcc2
15513 builtin and then its argument prototype would still apply. */
15514 char XOpenDisplay (void);
15520 /* The GNU C library defines stubs for functions which it implements
15521 to always fail with ENOSYS. Some functions are actually named
15522 something starting with __ and the normal name is an alias. */
15523 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
15524 #error found stub for XOpenDisplay
15527 return XOpenDisplay ();
15532 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15533 if { (eval echo "$as_me:15533: \"$ac_link\"") >&5
15534 (eval $ac_link) 2>&5
15536 echo "$as_me:15536: \$? = $ac_status" >&5
15537 (exit "$ac_status"); } &&
15538 { ac_try='test -s "conftest$ac_exeext"'
15539 { (eval echo "$as_me:15539: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15542 echo "$as_me:15542: \$? = $ac_status" >&5
15543 (exit "$ac_status"); }; }; then
15544 ac_cv_func_XOpenDisplay=yes
15546 echo "$as_me: failed program was:" >&5
15547 cat "conftest.$ac_ext" >&5
15548 ac_cv_func_XOpenDisplay=no
15550 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15552 echo "$as_me:15552: result: $ac_cv_func_XOpenDisplay" >&5
15553 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
15554 if test "$ac_cv_func_XOpenDisplay" = yes; then
15558 echo "$as_me:15558: checking for XOpenDisplay in -lX11" >&5
15559 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
15560 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 ac_check_lib_save_LIBS=$LIBS
15565 cat >"conftest.$ac_ext" <<_ACEOF
15566 #line 15566 "configure"
15567 #include "confdefs.h"
15569 /* Override any gcc2 internal prototype to avoid an error. */
15573 /* We use char because int might match the return type of a gcc2
15574 builtin and then its argument prototype would still apply. */
15575 char XOpenDisplay ();
15584 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15585 if { (eval echo "$as_me:15585: \"$ac_link\"") >&5
15586 (eval $ac_link) 2>&5
15588 echo "$as_me:15588: \$? = $ac_status" >&5
15589 (exit "$ac_status"); } &&
15590 { ac_try='test -s "conftest$ac_exeext"'
15591 { (eval echo "$as_me:15591: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:15594: \$? = $ac_status" >&5
15595 (exit "$ac_status"); }; }; then
15596 ac_cv_lib_X11_XOpenDisplay=yes
15598 echo "$as_me: failed program was:" >&5
15599 cat "conftest.$ac_ext" >&5
15600 ac_cv_lib_X11_XOpenDisplay=no
15602 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15603 LIBS=$ac_check_lib_save_LIBS
15605 echo "$as_me:15605: result: $ac_cv_lib_X11_XOpenDisplay" >&5
15606 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
15607 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
15609 cf_add_libs="$LIBS"
15612 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15613 # filter duplicates
15614 for cf_add_1lib in $cf_add_0lib; do
15615 for cf_add_2lib in $cf_add_libs; do
15616 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15621 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15623 LIBS="$cf_add_libs"
15629 echo "$as_me:15629: checking for XtAppInitialize" >&5
15630 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
15631 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 cat >"conftest.$ac_ext" <<_ACEOF
15635 #line 15635 "configure"
15636 #include "confdefs.h"
15637 #define XtAppInitialize autoconf_temporary
15638 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15639 #undef XtAppInitialize
15645 /* We use char because int might match the return type of a gcc2
15646 builtin and then its argument prototype would still apply. */
15647 char XtAppInitialize (void);
15653 /* The GNU C library defines stubs for functions which it implements
15654 to always fail with ENOSYS. Some functions are actually named
15655 something starting with __ and the normal name is an alias. */
15656 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
15657 #error found stub for XtAppInitialize
15660 return XtAppInitialize ();
15665 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15666 if { (eval echo "$as_me:15666: \"$ac_link\"") >&5
15667 (eval $ac_link) 2>&5
15669 echo "$as_me:15669: \$? = $ac_status" >&5
15670 (exit "$ac_status"); } &&
15671 { ac_try='test -s "conftest$ac_exeext"'
15672 { (eval echo "$as_me:15672: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15675 echo "$as_me:15675: \$? = $ac_status" >&5
15676 (exit "$ac_status"); }; }; then
15677 ac_cv_func_XtAppInitialize=yes
15679 echo "$as_me: failed program was:" >&5
15680 cat "conftest.$ac_ext" >&5
15681 ac_cv_func_XtAppInitialize=no
15683 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15685 echo "$as_me:15685: result: $ac_cv_func_XtAppInitialize" >&5
15686 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
15687 if test "$ac_cv_func_XtAppInitialize" = yes; then
15691 echo "$as_me:15691: checking for XtAppInitialize in -lXt" >&5
15692 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
15693 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 ac_check_lib_save_LIBS=$LIBS
15698 cat >"conftest.$ac_ext" <<_ACEOF
15699 #line 15699 "configure"
15700 #include "confdefs.h"
15702 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15708 char XtAppInitialize ();
15712 XtAppInitialize ();
15717 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15718 if { (eval echo "$as_me:15718: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>&5
15721 echo "$as_me:15721: \$? = $ac_status" >&5
15722 (exit "$ac_status"); } &&
15723 { ac_try='test -s "conftest$ac_exeext"'
15724 { (eval echo "$as_me:15724: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:15727: \$? = $ac_status" >&5
15728 (exit "$ac_status"); }; }; then
15729 ac_cv_lib_Xt_XtAppInitialize=yes
15731 echo "$as_me: failed program was:" >&5
15732 cat "conftest.$ac_ext" >&5
15733 ac_cv_lib_Xt_XtAppInitialize=no
15735 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15736 LIBS=$ac_check_lib_save_LIBS
15738 echo "$as_me:15738: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
15739 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
15740 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
15742 cat >>confdefs.h <<\EOF
15743 #define HAVE_LIBXT 1
15754 if test "$cf_have_X_LIBS" = no ; then
15755 { echo "$as_me:15755: WARNING: Unable to successfully link X Toolkit library (-lXt) with
15756 test program. You will have to check and add the proper libraries by hand
15758 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
15759 test program. You will have to check and add the proper libraries by hand
15760 to makefile." >&2;}
15763 cf_x_athena_root=$cf_x_athena
15766 for cf_path in default \
15767 /usr/contrib/X11R6 \
15768 /usr/contrib/X11R5 \
15772 if test -z "$cf_x_athena_inc" ; then
15774 cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS"
15775 cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS"
15776 cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS"
15777 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15778 for cf_X_CFLAGS in $X_CFLAGS
15780 case "x$cf_X_CFLAGS" in
15782 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15785 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15790 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
15791 if test "$cf_path" != default ; then
15793 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15794 CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
15796 echo "$as_me:15796: checking for $cf_test in $cf_path" >&5
15797 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
15799 echo "$as_me:15799: checking for $cf_test" >&5
15800 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
15802 cat >"conftest.$ac_ext" <<_ACEOF
15803 #line 15803 "configure"
15804 #include "confdefs.h"
15806 #include <X11/Intrinsic.h>
15807 #include <$cf_test>
15816 rm -f "conftest.$ac_objext"
15817 if { (eval echo "$as_me:15817: \"$ac_compile\"") >&5
15818 (eval $ac_compile) 2>&5
15820 echo "$as_me:15820: \$? = $ac_status" >&5
15821 (exit "$ac_status"); } &&
15822 { ac_try='test -s "conftest.$ac_objext"'
15823 { (eval echo "$as_me:15823: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:15826: \$? = $ac_status" >&5
15827 (exit "$ac_status"); }; }; then
15830 echo "$as_me: failed program was:" >&5
15831 cat "conftest.$ac_ext" >&5
15834 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15835 echo "$as_me:15835: result: $cf_result" >&5
15836 echo "${ECHO_T}$cf_result" >&6
15838 LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS"
15839 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS"
15840 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS"
15842 if test "$cf_result" = yes ; then
15843 test "$cf_path" = default && cf_x_athena_inc=default
15844 test "$cf_path" != default && cf_x_athena_inc="$cf_path/include"
15850 if test -z "$cf_x_athena_inc" ; then
15851 { echo "$as_me:15851: WARNING: Unable to find Athena header files" >&5
15852 echo "$as_me: WARNING: Unable to find Athena header files" >&2;}
15853 elif test "$cf_x_athena_inc" != default ; then
15855 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15856 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
15860 cf_x_athena_root=$cf_x_athena
15863 for cf_path in default \
15864 /usr/contrib/X11R6 \
15865 /usr/contrib/X11R5 \
15870 ${cf_x_athena_root} \
15871 ${cf_x_athena_root}7 \
15872 ${cf_x_athena_root}6
15875 "-l$cf_lib -lXmu" \
15876 "-l$cf_lib -lXpm -lXmu" \
15877 "-l${cf_lib}_s -lXmu_s"
15879 test -n "$cf_x_athena_lib" && break
15881 cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS"
15882 cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS"
15883 cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS"
15884 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15885 for cf_X_CFLAGS in $X_CFLAGS
15887 case "x$cf_X_CFLAGS" in
15889 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15892 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15897 cf_test=XawSimpleMenuAddGlobalActions
15898 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
15900 cf_add_libs="$LIBS"
15903 for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15904 # filter duplicates
15905 for cf_add_1lib in $cf_add_0lib; do
15906 for cf_add_2lib in $cf_add_libs; do
15907 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15912 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15914 LIBS="$cf_add_libs"
15916 echo "$as_me:15916: checking for $cf_test in $cf_libs" >&5
15917 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
15918 cat >"conftest.$ac_ext" <<_ACEOF
15919 #line 15919 "configure"
15920 #include "confdefs.h"
15922 #include <X11/Intrinsic.h>
15923 #include <X11/$cf_x_athena_root/SimpleMenu.h>
15929 $cf_test((XtAppContext) 0)
15934 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15935 if { (eval echo "$as_me:15935: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>&5
15938 echo "$as_me:15938: \$? = $ac_status" >&5
15939 (exit "$ac_status"); } &&
15940 { ac_try='test -s "conftest$ac_exeext"'
15941 { (eval echo "$as_me:15941: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15944 echo "$as_me:15944: \$? = $ac_status" >&5
15945 (exit "$ac_status"); }; }; then
15948 echo "$as_me: failed program was:" >&5
15949 cat "conftest.$ac_ext" >&5
15952 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15953 echo "$as_me:15953: result: $cf_result" >&5
15954 echo "${ECHO_T}$cf_result" >&6
15956 LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS"
15957 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS"
15958 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS"
15960 if test "$cf_result" = yes ; then
15961 cf_x_athena_lib="$cf_libs"
15965 test -n "$cf_x_athena_lib" && break
15969 if test -z "$cf_x_athena_lib" ; then
15970 { { echo "$as_me:15970: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
15971 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
15972 { (exit 1); exit 1; }; }
15975 cf_add_libs="$LIBS"
15978 for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15979 # filter duplicates
15980 for cf_add_1lib in $cf_add_0lib; do
15981 for cf_add_2lib in $cf_add_libs; do
15982 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15987 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15989 LIBS="$cf_add_libs"
15991 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15993 cat >>confdefs.h <<EOF
15994 #define $cf_x_athena_LIBS 1
15999 if test -n "$ac_tool_prefix"; then
16000 for ac_prog in xcurses-config
16002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16004 echo "$as_me:16004: checking for $ac_word" >&5
16005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16006 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 if test -n "$XCURSES_CONFIG"; then
16010 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
16012 ac_save_IFS=$IFS; IFS=$ac_path_separator
16014 for ac_dir in $ac_dummy; do
16016 test -z "$ac_dir" && ac_dir=.
16017 $as_executable_p "$ac_dir/$ac_word" || continue
16018 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
16019 echo "$as_me:16019: found $ac_dir/$ac_word" >&5
16025 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
16026 if test -n "$XCURSES_CONFIG"; then
16027 echo "$as_me:16027: result: $XCURSES_CONFIG" >&5
16028 echo "${ECHO_T}$XCURSES_CONFIG" >&6
16030 echo "$as_me:16030: result: no" >&5
16031 echo "${ECHO_T}no" >&6
16034 test -n "$XCURSES_CONFIG" && break
16037 if test -z "$XCURSES_CONFIG"; then
16038 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
16039 for ac_prog in xcurses-config
16041 # Extract the first word of "$ac_prog", so it can be a program name with args.
16042 set dummy $ac_prog; ac_word=$2
16043 echo "$as_me:16043: checking for $ac_word" >&5
16044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16045 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 if test -n "$ac_ct_XCURSES_CONFIG"; then
16049 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
16051 ac_save_IFS=$IFS; IFS=$ac_path_separator
16053 for ac_dir in $ac_dummy; do
16055 test -z "$ac_dir" && ac_dir=.
16056 $as_executable_p "$ac_dir/$ac_word" || continue
16057 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
16058 echo "$as_me:16058: found $ac_dir/$ac_word" >&5
16064 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
16065 if test -n "$ac_ct_XCURSES_CONFIG"; then
16066 echo "$as_me:16066: result: $ac_ct_XCURSES_CONFIG" >&5
16067 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
16069 echo "$as_me:16069: result: no" >&5
16070 echo "${ECHO_T}no" >&6
16073 test -n "$ac_ct_XCURSES_CONFIG" && break
16075 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
16077 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
16080 if test "$XCURSES_CONFIG" != none ; then
16085 cf_new_extra_cppflags=
16087 for cf_add_cflags in `$XCURSES_CONFIG --cflags`
16089 case "$cf_fix_cppflags" in
16091 case "$cf_add_cflags" in
16092 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16093 case "$cf_add_cflags" in
16095 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16097 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16098 && test -z "${cf_tst_cflags}" \
16099 && cf_fix_cppflags=yes
16101 if test "$cf_fix_cppflags" = yes ; then
16103 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16104 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16107 elif test "${cf_tst_cflags}" = "\"'" ; then
16109 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16110 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16116 case "$CPPFLAGS" in
16120 case "$cf_add_cflags" in
16122 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16124 CPPFLAGS=`echo "$CPPFLAGS" | \
16125 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16126 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16131 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16132 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16139 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16140 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16147 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16148 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16150 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16152 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16153 && test -z "${cf_tst_cflags}" \
16154 && cf_fix_cppflags=no
16159 if test -n "$cf_new_cflags" ; then
16161 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16162 CFLAGS="${CFLAGS}$cf_new_cflags"
16166 if test -n "$cf_new_cppflags" ; then
16168 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16169 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16173 if test -n "$cf_new_extra_cppflags" ; then
16175 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16176 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16180 cf_add_libs="$LIBS"
16183 for cf_add_1lib in `$XCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16184 # filter duplicates
16185 for cf_add_1lib in $cf_add_0lib; do
16186 for cf_add_2lib in $cf_add_libs; do
16187 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16192 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16194 LIBS="$cf_add_libs"
16196 cf_cv_lib_XCurses=yes
16200 LDFLAGS="$LDFLAGS $X_LIBS"
16202 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
16204 echo "${as_me:-configure}:16204: testing checking additions to CFLAGS ..." 1>&5
16206 cf_check_cflags="$CFLAGS"
16207 cf_check_cppflags="$CPPFLAGS"
16212 cf_new_extra_cppflags=
16214 for cf_add_cflags in $X_CFLAGS
16216 case "$cf_fix_cppflags" in
16218 case "$cf_add_cflags" in
16219 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16220 case "$cf_add_cflags" in
16222 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16224 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16225 && test -z "${cf_tst_cflags}" \
16226 && cf_fix_cppflags=yes
16228 if test "$cf_fix_cppflags" = yes ; then
16230 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16231 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16234 elif test "${cf_tst_cflags}" = "\"'" ; then
16236 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16237 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16243 case "$CPPFLAGS" in
16247 case "$cf_add_cflags" in
16249 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16251 CPPFLAGS=`echo "$CPPFLAGS" | \
16252 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16253 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16258 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16259 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16266 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16267 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16274 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16275 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16277 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16279 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16280 && test -z "${cf_tst_cflags}" \
16281 && cf_fix_cppflags=no
16286 if test -n "$cf_new_cflags" ; then
16287 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
16289 echo "${as_me:-configure}:16289: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
16291 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16292 CFLAGS="${CFLAGS}$cf_new_cflags"
16296 if test -n "$cf_new_cppflags" ; then
16297 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
16299 echo "${as_me:-configure}:16299: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
16301 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16302 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16306 if test -n "$cf_new_extra_cppflags" ; then
16307 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
16309 echo "${as_me:-configure}:16309: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
16311 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16312 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16316 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
16317 cat >"conftest.$ac_ext" <<_ACEOF
16318 #line 16318 "configure"
16319 #include "confdefs.h"
16324 printf("Hello world");
16329 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16330 if { (eval echo "$as_me:16330: \"$ac_link\"") >&5
16331 (eval $ac_link) 2>&5
16333 echo "$as_me:16333: \$? = $ac_status" >&5
16334 (exit "$ac_status"); } &&
16335 { ac_try='test -s "conftest$ac_exeext"'
16336 { (eval echo "$as_me:16336: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16339 echo "$as_me:16339: \$? = $ac_status" >&5
16340 (exit "$ac_status"); }; }; then
16343 echo "$as_me: failed program was:" >&5
16344 cat "conftest.$ac_ext" >&5
16345 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
16347 echo "${as_me:-configure}:16347: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
16349 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
16350 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
16352 echo "${as_me:-configure}:16352: testing but keeping change to \$CPPFLAGS ..." 1>&5
16355 CFLAGS="$cf_check_cflags"
16357 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16360 echo "$as_me:16360: checking for XOpenDisplay in -lX11" >&5
16361 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
16362 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 ac_check_lib_save_LIBS=$LIBS
16366 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
16367 cat >"conftest.$ac_ext" <<_ACEOF
16368 #line 16368 "configure"
16369 #include "confdefs.h"
16371 /* Override any gcc2 internal prototype to avoid an error. */
16375 /* We use char because int might match the return type of a gcc2
16376 builtin and then its argument prototype would still apply. */
16377 char XOpenDisplay ();
16386 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16387 if { (eval echo "$as_me:16387: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16390 echo "$as_me:16390: \$? = $ac_status" >&5
16391 (exit "$ac_status"); } &&
16392 { ac_try='test -s "conftest$ac_exeext"'
16393 { (eval echo "$as_me:16393: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:16396: \$? = $ac_status" >&5
16397 (exit "$ac_status"); }; }; then
16398 ac_cv_lib_X11_XOpenDisplay=yes
16400 echo "$as_me: failed program was:" >&5
16401 cat "conftest.$ac_ext" >&5
16402 ac_cv_lib_X11_XOpenDisplay=no
16404 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16405 LIBS=$ac_check_lib_save_LIBS
16407 echo "$as_me:16407: result: $ac_cv_lib_X11_XOpenDisplay" >&5
16408 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
16409 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
16411 cf_add_libs="$LIBS"
16414 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16415 # filter duplicates
16416 for cf_add_1lib in $cf_add_0lib; do
16417 for cf_add_2lib in $cf_add_libs; do
16418 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16423 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16425 LIBS="$cf_add_libs"
16429 echo "$as_me:16429: checking for XCurses library" >&5
16430 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
16431 if test "${cf_cv_lib_XCurses+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 cf_add_libs="$LIBS"
16438 for cf_add_1lib in -lXCurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16439 # filter duplicates
16440 for cf_add_1lib in $cf_add_0lib; do
16441 for cf_add_2lib in $cf_add_libs; do
16442 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16447 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16449 LIBS="$cf_add_libs"
16451 cat >"conftest.$ac_ext" <<_ACEOF
16452 #line 16452 "configure"
16453 #include "confdefs.h"
16455 #include <xcurses.h>
16456 char *XCursesProgramName = "test";
16466 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16467 if { (eval echo "$as_me:16467: \"$ac_link\"") >&5
16468 (eval $ac_link) 2>&5
16470 echo "$as_me:16470: \$? = $ac_status" >&5
16471 (exit "$ac_status"); } &&
16472 { ac_try='test -s "conftest$ac_exeext"'
16473 { (eval echo "$as_me:16473: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:16476: \$? = $ac_status" >&5
16477 (exit "$ac_status"); }; }; then
16478 cf_cv_lib_XCurses=yes
16480 echo "$as_me: failed program was:" >&5
16481 cat "conftest.$ac_ext" >&5
16482 cf_cv_lib_XCurses=no
16484 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16487 echo "$as_me:16487: result: $cf_cv_lib_XCurses" >&5
16488 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
16492 if test "$cf_cv_lib_XCurses" = yes ; then
16494 cat >>confdefs.h <<\EOF
16498 cat >>confdefs.h <<\EOF
16502 echo "$as_me:16502: checking for xcurses.h" >&5
16503 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
16504 if test "${ac_cv_header_xcurses_h+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 cat >"conftest.$ac_ext" <<_ACEOF
16508 #line 16508 "configure"
16509 #include "confdefs.h"
16510 #include <xcurses.h>
16512 if { (eval echo "$as_me:16512: \"$ac_cpp "conftest.$ac_ext"\"") >&5
16513 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
16515 $EGREP -v '^ *\+' conftest.er1 >conftest.err
16517 cat conftest.err >&5
16518 echo "$as_me:16518: \$? = $ac_status" >&5
16519 (exit "$ac_status"); } >/dev/null; then
16520 if test -s conftest.err; then
16521 ac_cpp_err=$ac_c_preproc_warn_flag
16528 if test -z "$ac_cpp_err"; then
16529 ac_cv_header_xcurses_h=yes
16531 echo "$as_me: failed program was:" >&5
16532 cat "conftest.$ac_ext" >&5
16533 ac_cv_header_xcurses_h=no
16535 rm -f conftest.err "conftest.$ac_ext"
16537 echo "$as_me:16537: result: $ac_cv_header_xcurses_h" >&5
16538 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
16539 if test "$ac_cv_header_xcurses_h" = yes; then
16541 cat >>confdefs.h <<\EOF
16542 #define HAVE_XCURSES 1
16548 { { echo "$as_me:16548: error: Cannot link with XCurses" >&5
16549 echo "$as_me: error: Cannot link with XCurses" >&2;}
16550 { (exit 1); exit 1; }; }
16555 { { echo "$as_me:16555: error: unexpected screen-value: $cf_cv_screen" >&5
16556 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
16557 { (exit 1); exit 1; }; }
16561 : ${cf_nculib_root:=$cf_cv_screen}
16562 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
16563 echo "$as_me:16563: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
16564 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
16565 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-l$cf_nculib_root $LIBS"
16570 cat >"conftest.$ac_ext" <<_ACEOF
16571 #line 16571 "configure"
16572 #include "confdefs.h"
16574 /* Override any gcc2 internal prototype to avoid an error. */
16578 /* We use char because int might match the return type of a gcc2
16579 builtin and then its argument prototype would still apply. */
16580 char _nc_init_pthreads ();
16584 _nc_init_pthreads ();
16589 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16590 if { (eval echo "$as_me:16590: \"$ac_link\"") >&5
16591 (eval $ac_link) 2>&5
16593 echo "$as_me:16593: \$? = $ac_status" >&5
16594 (exit "$ac_status"); } &&
16595 { ac_try='test -s "conftest$ac_exeext"'
16596 { (eval echo "$as_me:16596: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:16599: \$? = $ac_status" >&5
16600 (exit "$ac_status"); }; }; then
16601 eval "$as_ac_Lib=yes"
16603 echo "$as_me: failed program was:" >&5
16604 cat "conftest.$ac_ext" >&5
16605 eval "$as_ac_Lib=no"
16607 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16608 LIBS=$ac_check_lib_save_LIBS
16610 echo "$as_me:16610: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
16611 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
16612 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
16613 cf_cv_ncurses_pthreads=yes
16615 cf_cv_ncurses_pthreads=no
16618 if test "$cf_cv_ncurses_pthreads" = yes
16621 cf_add_libs="$LIBS"
16624 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16625 # filter duplicates
16626 for cf_add_1lib in $cf_add_0lib; do
16627 for cf_add_2lib in $cf_add_libs; do
16628 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16633 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16635 LIBS="$cf_add_libs"
16639 case $cf_cv_screen in
16641 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
16645 echo "$as_me:16645: checking for X11 rgb file" >&5
16646 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
16648 # Check whether --with-x11-rgb or --without-x11-rgb was given.
16649 if test "${with_x11_rgb+set}" = set; then
16650 withval="$with_x11_rgb"
16656 if test "x$RGB_PATH" = xauto
16658 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
16660 /opt/local/share/X11/rgb.txt \
16661 /opt/X11/share/X11/rgb.txt \
16662 /usr/share/X11/rgb.txt \
16663 /usr/X11/share/X11/rgb.txt \
16664 /usr/X11/lib/X11/rgb.txt \
16665 /usr/lib/X11/rgb.txt \
16667 /usr/pkg/lib/X11/rgb.txt \
16668 /usr/X11R7/lib/X11/rgb.txt \
16669 /usr/X11R6/lib/X11/rgb.txt \
16670 /usr/X11R5/lib/X11/rgb.txt \
16671 /usr/X11R4/lib/X11/rgb.txt \
16672 /usr/local/lib/X11/rgb.txt \
16673 /usr/local/share/X11/rgb.txt \
16674 /usr/lib64/X11/rgb.txt
16676 if test -f "$cf_path" ; then
16677 RGB_PATH="$cf_path"
16684 if test "x$prefix" != xNONE; then
16685 cf_path_syntax="$prefix"
16687 cf_path_syntax="$ac_default_prefix"
16690 case ".$cf_path" in
16691 (.\$\(*\)*|.\'*\'*)
16695 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
16697 (.\$\{*prefix\}*|.\$\{*dir\}*)
16698 eval cf_path="$cf_path"
16699 case ".$cf_path" in
16701 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
16706 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
16709 { { echo "$as_me:16709: error: expected a pathname, not \"$cf_path\"" >&5
16710 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
16711 { (exit 1); exit 1; }; }
16717 echo "$as_me:16717: result: $RGB_PATH" >&5
16718 echo "${ECHO_T}$RGB_PATH" >&6
16720 cat >>confdefs.h <<EOF
16721 #define RGB_PATH "$cf_path"
16725 if test "$RGB_PATH" = no
16732 case $cf_cv_screen in
16734 cf_default_panel=no
16737 cf_default_tinfo=no
16739 (xcurses|bsdcurses)
16740 cf_default_panel=no
16743 cf_default_tinfo=yes
16746 cf_default_panel=yes
16747 cf_default_form=yes
16748 cf_default_menu=yes
16749 cf_default_tinfo=yes
16750 case $cf_cv_screen in
16752 cf_curses_headers="nc_alloc.h nomacros.h term_entry.h"
16758 echo "$as_me:16758: checking for desired basename for form library" >&5
16759 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
16761 # Check whether --with-form-libname or --without-form-libname was given.
16762 if test "${with_form_libname+set}" = set; then
16763 withval="$with_form_libname"
16764 with_lib_basename=$withval
16766 with_lib_basename=form
16768 FORM_NAME="$with_lib_basename"
16770 case "x$FORM_NAME" in
16778 echo "$as_me:16778: result: $FORM_NAME" >&5
16779 echo "${ECHO_T}$FORM_NAME" >&6
16781 echo "$as_me:16781: checking for desired basename for menu library" >&5
16782 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
16784 # Check whether --with-menu-libname or --without-menu-libname was given.
16785 if test "${with_menu_libname+set}" = set; then
16786 withval="$with_menu_libname"
16787 with_lib_basename=$withval
16789 with_lib_basename=menu
16791 MENU_NAME="$with_lib_basename"
16793 case "x$MENU_NAME" in
16801 echo "$as_me:16801: result: $MENU_NAME" >&5
16802 echo "${ECHO_T}$MENU_NAME" >&6
16804 echo "$as_me:16804: checking for desired basename for panel library" >&5
16805 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
16807 # Check whether --with-panel-libname or --without-panel-libname was given.
16808 if test "${with_panel_libname+set}" = set; then
16809 withval="$with_panel_libname"
16810 with_lib_basename=$withval
16812 with_lib_basename=panel
16814 PANEL_NAME="$with_lib_basename"
16816 case "x$PANEL_NAME" in
16824 echo "$as_me:16824: result: $PANEL_NAME" >&5
16825 echo "${ECHO_T}$PANEL_NAME" >&6
16827 echo "$as_me:16827: checking if you want to check for panel functions" >&5
16828 echo $ECHO_N "checking if you want to check for panel functions... $ECHO_C" >&6
16830 # Check whether --enable-panel or --disable-panel was given.
16831 if test "${enable_panel+set}" = set; then
16832 enableval="$enable_panel"
16833 test "$enableval" != no && enableval=yes
16834 if test "$enableval" != "yes" ; then
16837 cf_enable_panel=$cf_default_panel
16841 cf_enable_panel=$cf_default_panel
16844 echo "$as_me:16844: result: $cf_enable_panel" >&5
16845 echo "${ECHO_T}$cf_enable_panel" >&6
16846 if test $cf_enable_panel = yes
16849 cf_have_curses_lib=no
16851 : ${NCURSES_CONFIG_PKG:=none}
16852 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
16854 elif test "x${PKG_CONFIG:=none}" != xnone; then
16855 echo "$as_me:16855: checking pkg-config for $PANEL_NAME$cf_cv_libtype" >&5
16856 echo $ECHO_N "checking pkg-config for $PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
16857 if "$PKG_CONFIG" --exists "$PANEL_NAME$cf_cv_libtype" ; then
16858 echo "$as_me:16858: result: yes" >&5
16859 echo "${ECHO_T}yes" >&6
16861 echo "$as_me:16861: checking if the $PANEL_NAME$cf_cv_libtype package files work" >&5
16862 echo $ECHO_N "checking if the $PANEL_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
16864 cf_save_CFLAGS="$CFLAGS"
16865 cf_save_CPPFLAGS="$CPPFLAGS"
16866 cf_save_LIBS="$LIBS"
16868 for cf_add_cflags in `$PKG_CONFIG --cflags "$PANEL_NAME$cf_cv_libtype"`
16870 case "x$cf_add_cflags" in
16873 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
16876 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'`
16877 test "$CFLAGS" != "$cf_old_cflag" || break
16879 CFLAGS="$cf_old_cflag"
16882 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
16885 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'`
16886 test "$CPPFLAGS" != "$cf_old_cflag" || break
16888 CPPFLAGS="$cf_old_cflag"
16897 cf_new_extra_cppflags=
16899 for cf_add_cflags in $cf_add_cflags
16901 case "$cf_fix_cppflags" in
16903 case "$cf_add_cflags" in
16904 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16905 case "$cf_add_cflags" in
16907 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16909 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16910 && test -z "${cf_tst_cflags}" \
16911 && cf_fix_cppflags=yes
16913 if test "$cf_fix_cppflags" = yes ; then
16915 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16916 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16919 elif test "${cf_tst_cflags}" = "\"'" ; then
16921 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16922 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16928 case "$CPPFLAGS" in
16932 case "$cf_add_cflags" in
16934 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16936 CPPFLAGS=`echo "$CPPFLAGS" | \
16937 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16938 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16943 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16944 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16951 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16952 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16959 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16960 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16962 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16964 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16965 && test -z "${cf_tst_cflags}" \
16966 && cf_fix_cppflags=no
16971 if test -n "$cf_new_cflags" ; then
16973 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16974 CFLAGS="${CFLAGS}$cf_new_cflags"
16978 if test -n "$cf_new_cppflags" ; then
16980 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16981 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16985 if test -n "$cf_new_extra_cppflags" ; then
16987 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16988 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16994 cf_add_libs="$LIBS"
16997 for cf_add_1lib in `$PKG_CONFIG --libs "$PANEL_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16998 # filter duplicates
16999 for cf_add_1lib in $cf_add_0lib; do
17000 for cf_add_2lib in $cf_add_libs; do
17001 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17006 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17008 LIBS="$cf_add_libs"
17010 cat >"conftest.$ac_ext" <<_ACEOF
17011 #line 17011 "configure"
17012 #include "confdefs.h"
17013 #include <$PANEL_NAME.h>
17017 (void) new_panel ( 0 );
17022 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17023 if { (eval echo "$as_me:17023: \"$ac_link\"") >&5
17024 (eval $ac_link) 2>&5
17026 echo "$as_me:17026: \$? = $ac_status" >&5
17027 (exit "$ac_status"); } &&
17028 { ac_try='test -s "conftest$ac_exeext"'
17029 { (eval echo "$as_me:17029: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:17032: \$? = $ac_status" >&5
17033 (exit "$ac_status"); }; }; then
17034 if test "$cross_compiling" = yes; then
17035 cf_have_curses_lib=maybe
17037 cat >"conftest.$ac_ext" <<_ACEOF
17038 #line 17038 "configure"
17039 #include "confdefs.h"
17040 #include <$PANEL_NAME.h>
17042 { (void) new_panel ( 0 ); return 0; }
17044 rm -f "conftest$ac_exeext"
17045 if { (eval echo "$as_me:17045: \"$ac_link\"") >&5
17046 (eval $ac_link) 2>&5
17048 echo "$as_me:17048: \$? = $ac_status" >&5
17049 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
17050 { (eval echo "$as_me:17050: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:17053: \$? = $ac_status" >&5
17054 (exit "$ac_status"); }; }; then
17055 cf_have_curses_lib=yes
17057 echo "$as_me: program exited with status $ac_status" >&5
17058 echo "$as_me: failed program was:" >&5
17059 cat "conftest.$ac_ext" >&5
17060 cf_have_curses_lib=no
17062 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17065 echo "$as_me: failed program was:" >&5
17066 cat "conftest.$ac_ext" >&5
17067 cf_have_curses_lib=no
17069 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17070 echo "$as_me:17070: result: $cf_have_curses_lib" >&5
17071 echo "${ECHO_T}$cf_have_curses_lib" >&6
17072 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
17073 if test "$cf_have_curses_lib" = "yes"
17076 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17078 cat >>confdefs.h <<EOF
17079 #define $cf_upper 1
17083 CFLAGS="$cf_save_CFLAGS"
17084 CPPFLAGS="$cf_save_CPPFLAGS"
17085 LIBS="$cf_save_LIBS"
17089 if test "$cf_have_curses_lib" = no; then
17090 as_ac_Lib=`echo "ac_cv_lib_$PANEL_NAME$cf_cv_libtype''_new_panel" | $as_tr_sh`
17091 echo "$as_me:17091: checking for new_panel in -l$PANEL_NAME$cf_cv_libtype" >&5
17092 echo $ECHO_N "checking for new_panel in -l$PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
17093 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 ac_check_lib_save_LIBS=$LIBS
17097 LIBS="-l$PANEL_NAME$cf_cv_libtype $LIBS"
17098 cat >"conftest.$ac_ext" <<_ACEOF
17099 #line 17099 "configure"
17100 #include "confdefs.h"
17102 /* Override any gcc2 internal prototype to avoid an error. */
17106 /* We use char because int might match the return type of a gcc2
17107 builtin and then its argument prototype would still apply. */
17117 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17118 if { (eval echo "$as_me:17118: \"$ac_link\"") >&5
17119 (eval $ac_link) 2>&5
17121 echo "$as_me:17121: \$? = $ac_status" >&5
17122 (exit "$ac_status"); } &&
17123 { ac_try='test -s "conftest$ac_exeext"'
17124 { (eval echo "$as_me:17124: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:17127: \$? = $ac_status" >&5
17128 (exit "$ac_status"); }; }; then
17129 eval "$as_ac_Lib=yes"
17131 echo "$as_me: failed program was:" >&5
17132 cat "conftest.$ac_ext" >&5
17133 eval "$as_ac_Lib=no"
17135 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17136 LIBS=$ac_check_lib_save_LIBS
17138 echo "$as_me:17138: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
17139 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
17140 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
17142 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17144 cf_add_libs="$LIBS"
17147 for cf_add_1lib in -l$PANEL_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17148 # filter duplicates
17149 for cf_add_1lib in $cf_add_0lib; do
17150 for cf_add_2lib in $cf_add_libs; do
17151 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17156 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17158 LIBS="$cf_add_libs"
17160 cat >>confdefs.h <<EOF
17161 #define $cf_upper 1
17168 cf_curses_headers="$cf_curses_headers panel.h"
17171 echo "$as_me:17171: checking if you want to check for menu functions" >&5
17172 echo $ECHO_N "checking if you want to check for menu functions... $ECHO_C" >&6
17174 # Check whether --enable-menu or --disable-menu was given.
17175 if test "${enable_menu+set}" = set; then
17176 enableval="$enable_menu"
17177 test "$enableval" != no && enableval=yes
17178 if test "$enableval" != "yes" ; then
17181 cf_enable_menu=$cf_default_menu
17185 cf_enable_menu=$cf_default_menu
17188 echo "$as_me:17188: result: $cf_enable_menu" >&5
17189 echo "${ECHO_T}$cf_enable_menu" >&6
17190 if test $cf_enable_menu = yes
17192 case $cf_cv_screen in
17197 echo "$as_me:17197: checking for NetBSD menu.h" >&5
17198 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
17199 if test "${cf_cv_netbsd_menu_h+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 cat >"conftest.$ac_ext" <<_ACEOF
17204 #line 17204 "configure"
17205 #include "confdefs.h"
17207 #include <${cf_cv_ncurses_header:-curses.h}>
17215 int y = menu->max_item_width;
17221 rm -f "conftest.$ac_objext"
17222 if { (eval echo "$as_me:17222: \"$ac_compile\"") >&5
17223 (eval $ac_compile) 2>&5
17225 echo "$as_me:17225: \$? = $ac_status" >&5
17226 (exit "$ac_status"); } &&
17227 { ac_try='test -s "conftest.$ac_objext"'
17228 { (eval echo "$as_me:17228: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:17231: \$? = $ac_status" >&5
17232 (exit "$ac_status"); }; }; then
17233 cf_cv_netbsd_menu_h=yes
17236 echo "$as_me: failed program was:" >&5
17237 cat "conftest.$ac_ext" >&5
17238 cf_cv_netbsd_menu_h=no
17240 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17243 echo "$as_me:17243: result: $cf_cv_netbsd_menu_h" >&5
17244 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
17246 test "$cf_cv_netbsd_menu_h" = yes &&
17247 cat >>confdefs.h <<\EOF
17248 #define HAVE_NETBSD_MENU_H 1
17254 cf_have_curses_lib=no
17256 : ${NCURSES_CONFIG_PKG:=none}
17257 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
17259 elif test "x${PKG_CONFIG:=none}" != xnone; then
17260 echo "$as_me:17260: checking pkg-config for $MENU_NAME$cf_cv_libtype" >&5
17261 echo $ECHO_N "checking pkg-config for $MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
17262 if "$PKG_CONFIG" --exists "$MENU_NAME$cf_cv_libtype" ; then
17263 echo "$as_me:17263: result: yes" >&5
17264 echo "${ECHO_T}yes" >&6
17266 echo "$as_me:17266: checking if the $MENU_NAME$cf_cv_libtype package files work" >&5
17267 echo $ECHO_N "checking if the $MENU_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
17269 cf_save_CFLAGS="$CFLAGS"
17270 cf_save_CPPFLAGS="$CPPFLAGS"
17271 cf_save_LIBS="$LIBS"
17273 for cf_add_cflags in `$PKG_CONFIG --cflags "$MENU_NAME$cf_cv_libtype"`
17275 case "x$cf_add_cflags" in
17278 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17281 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'`
17282 test "$CFLAGS" != "$cf_old_cflag" || break
17284 CFLAGS="$cf_old_cflag"
17287 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17290 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'`
17291 test "$CPPFLAGS" != "$cf_old_cflag" || break
17293 CPPFLAGS="$cf_old_cflag"
17302 cf_new_extra_cppflags=
17304 for cf_add_cflags in $cf_add_cflags
17306 case "$cf_fix_cppflags" in
17308 case "$cf_add_cflags" in
17309 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17310 case "$cf_add_cflags" in
17312 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17314 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17315 && test -z "${cf_tst_cflags}" \
17316 && cf_fix_cppflags=yes
17318 if test "$cf_fix_cppflags" = yes ; then
17320 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17321 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17324 elif test "${cf_tst_cflags}" = "\"'" ; then
17326 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17327 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17333 case "$CPPFLAGS" in
17337 case "$cf_add_cflags" in
17339 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17341 CPPFLAGS=`echo "$CPPFLAGS" | \
17342 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17343 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17348 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17349 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17356 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17357 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17364 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17365 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17367 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17369 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17370 && test -z "${cf_tst_cflags}" \
17371 && cf_fix_cppflags=no
17376 if test -n "$cf_new_cflags" ; then
17378 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17379 CFLAGS="${CFLAGS}$cf_new_cflags"
17383 if test -n "$cf_new_cppflags" ; then
17385 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17386 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17390 if test -n "$cf_new_extra_cppflags" ; then
17392 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17393 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17399 cf_add_libs="$LIBS"
17402 for cf_add_1lib in `$PKG_CONFIG --libs "$MENU_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17403 # filter duplicates
17404 for cf_add_1lib in $cf_add_0lib; do
17405 for cf_add_2lib in $cf_add_libs; do
17406 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17411 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17413 LIBS="$cf_add_libs"
17415 cat >"conftest.$ac_ext" <<_ACEOF
17416 #line 17416 "configure"
17417 #include "confdefs.h"
17418 #include <$MENU_NAME.h>
17422 (void) menu_driver ( 0,0 );
17427 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17428 if { (eval echo "$as_me:17428: \"$ac_link\"") >&5
17429 (eval $ac_link) 2>&5
17431 echo "$as_me:17431: \$? = $ac_status" >&5
17432 (exit "$ac_status"); } &&
17433 { ac_try='test -s "conftest$ac_exeext"'
17434 { (eval echo "$as_me:17434: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17437 echo "$as_me:17437: \$? = $ac_status" >&5
17438 (exit "$ac_status"); }; }; then
17439 if test "$cross_compiling" = yes; then
17440 cf_have_curses_lib=maybe
17442 cat >"conftest.$ac_ext" <<_ACEOF
17443 #line 17443 "configure"
17444 #include "confdefs.h"
17445 #include <$MENU_NAME.h>
17447 { (void) menu_driver ( 0,0 ); return 0; }
17449 rm -f "conftest$ac_exeext"
17450 if { (eval echo "$as_me:17450: \"$ac_link\"") >&5
17451 (eval $ac_link) 2>&5
17453 echo "$as_me:17453: \$? = $ac_status" >&5
17454 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
17455 { (eval echo "$as_me:17455: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 echo "$as_me:17458: \$? = $ac_status" >&5
17459 (exit "$ac_status"); }; }; then
17460 cf_have_curses_lib=yes
17462 echo "$as_me: program exited with status $ac_status" >&5
17463 echo "$as_me: failed program was:" >&5
17464 cat "conftest.$ac_ext" >&5
17465 cf_have_curses_lib=no
17467 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17470 echo "$as_me: failed program was:" >&5
17471 cat "conftest.$ac_ext" >&5
17472 cf_have_curses_lib=no
17474 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17475 echo "$as_me:17475: result: $cf_have_curses_lib" >&5
17476 echo "${ECHO_T}$cf_have_curses_lib" >&6
17477 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
17478 if test "$cf_have_curses_lib" = "yes"
17481 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17483 cat >>confdefs.h <<EOF
17484 #define $cf_upper 1
17488 CFLAGS="$cf_save_CFLAGS"
17489 CPPFLAGS="$cf_save_CPPFLAGS"
17490 LIBS="$cf_save_LIBS"
17494 if test "$cf_have_curses_lib" = no; then
17495 as_ac_Lib=`echo "ac_cv_lib_$MENU_NAME$cf_cv_libtype''_menu_driver" | $as_tr_sh`
17496 echo "$as_me:17496: checking for menu_driver in -l$MENU_NAME$cf_cv_libtype" >&5
17497 echo $ECHO_N "checking for menu_driver in -l$MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
17498 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 ac_check_lib_save_LIBS=$LIBS
17502 LIBS="-l$MENU_NAME$cf_cv_libtype $LIBS"
17503 cat >"conftest.$ac_ext" <<_ACEOF
17504 #line 17504 "configure"
17505 #include "confdefs.h"
17507 /* Override any gcc2 internal prototype to avoid an error. */
17511 /* We use char because int might match the return type of a gcc2
17512 builtin and then its argument prototype would still apply. */
17513 char menu_driver ();
17522 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17523 if { (eval echo "$as_me:17523: \"$ac_link\"") >&5
17524 (eval $ac_link) 2>&5
17526 echo "$as_me:17526: \$? = $ac_status" >&5
17527 (exit "$ac_status"); } &&
17528 { ac_try='test -s "conftest$ac_exeext"'
17529 { (eval echo "$as_me:17529: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:17532: \$? = $ac_status" >&5
17533 (exit "$ac_status"); }; }; then
17534 eval "$as_ac_Lib=yes"
17536 echo "$as_me: failed program was:" >&5
17537 cat "conftest.$ac_ext" >&5
17538 eval "$as_ac_Lib=no"
17540 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17541 LIBS=$ac_check_lib_save_LIBS
17543 echo "$as_me:17543: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
17544 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
17545 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
17547 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17549 cf_add_libs="$LIBS"
17552 for cf_add_1lib in -l$MENU_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17553 # filter duplicates
17554 for cf_add_1lib in $cf_add_0lib; do
17555 for cf_add_2lib in $cf_add_libs; do
17556 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17563 LIBS="$cf_add_libs"
17565 cat >>confdefs.h <<EOF
17566 #define $cf_upper 1
17573 cf_curses_headers="$cf_curses_headers menu.h"
17576 echo "$as_me:17576: checking if you want to check for form functions" >&5
17577 echo $ECHO_N "checking if you want to check for form functions... $ECHO_C" >&6
17579 # Check whether --enable-form or --disable-form was given.
17580 if test "${enable_form+set}" = set; then
17581 enableval="$enable_form"
17582 test "$enableval" != no && enableval=yes
17583 if test "$enableval" != "yes" ; then
17586 cf_enable_form=$cf_default_form
17590 cf_enable_form=$cf_default_form
17593 echo "$as_me:17593: result: $cf_enable_form" >&5
17594 echo "${ECHO_T}$cf_enable_form" >&6
17595 if test $cf_enable_form = yes
17597 case $cf_cv_screen in
17602 echo "$as_me:17602: checking for NetBSD form.h" >&5
17603 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
17604 if test "${cf_cv_netbsd_form_h+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 cat >"conftest.$ac_ext" <<_ACEOF
17609 #line 17609 "configure"
17610 #include "confdefs.h"
17612 #include <${cf_cv_ncurses_header:-curses.h}>
17620 int y = current_field(form)->cursor_ypos;
17621 int x = current_field(form)->cursor_xpos;
17627 rm -f "conftest.$ac_objext"
17628 if { (eval echo "$as_me:17628: \"$ac_compile\"") >&5
17629 (eval $ac_compile) 2>&5
17631 echo "$as_me:17631: \$? = $ac_status" >&5
17632 (exit "$ac_status"); } &&
17633 { ac_try='test -s "conftest.$ac_objext"'
17634 { (eval echo "$as_me:17634: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:17637: \$? = $ac_status" >&5
17638 (exit "$ac_status"); }; }; then
17639 cf_cv_netbsd_form_h=yes
17642 echo "$as_me: failed program was:" >&5
17643 cat "conftest.$ac_ext" >&5
17644 cf_cv_netbsd_form_h=no
17646 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17649 echo "$as_me:17649: result: $cf_cv_netbsd_form_h" >&5
17650 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
17652 test "$cf_cv_netbsd_form_h" = yes &&
17653 cat >>confdefs.h <<\EOF
17654 #define HAVE_NETBSD_FORM_H 1
17660 cf_have_curses_lib=no
17662 : ${NCURSES_CONFIG_PKG:=none}
17663 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
17665 elif test "x${PKG_CONFIG:=none}" != xnone; then
17666 echo "$as_me:17666: checking pkg-config for $FORM_NAME$cf_cv_libtype" >&5
17667 echo $ECHO_N "checking pkg-config for $FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
17668 if "$PKG_CONFIG" --exists "$FORM_NAME$cf_cv_libtype" ; then
17669 echo "$as_me:17669: result: yes" >&5
17670 echo "${ECHO_T}yes" >&6
17672 echo "$as_me:17672: checking if the $FORM_NAME$cf_cv_libtype package files work" >&5
17673 echo $ECHO_N "checking if the $FORM_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
17675 cf_save_CFLAGS="$CFLAGS"
17676 cf_save_CPPFLAGS="$CPPFLAGS"
17677 cf_save_LIBS="$LIBS"
17679 for cf_add_cflags in `$PKG_CONFIG --cflags "$FORM_NAME$cf_cv_libtype"`
17681 case "x$cf_add_cflags" in
17684 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17687 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'`
17688 test "$CFLAGS" != "$cf_old_cflag" || break
17690 CFLAGS="$cf_old_cflag"
17693 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17696 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'`
17697 test "$CPPFLAGS" != "$cf_old_cflag" || break
17699 CPPFLAGS="$cf_old_cflag"
17708 cf_new_extra_cppflags=
17710 for cf_add_cflags in $cf_add_cflags
17712 case "$cf_fix_cppflags" in
17714 case "$cf_add_cflags" in
17715 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17716 case "$cf_add_cflags" in
17718 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17720 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17721 && test -z "${cf_tst_cflags}" \
17722 && cf_fix_cppflags=yes
17724 if test "$cf_fix_cppflags" = yes ; then
17726 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17727 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17730 elif test "${cf_tst_cflags}" = "\"'" ; then
17732 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17733 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17739 case "$CPPFLAGS" in
17743 case "$cf_add_cflags" in
17745 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17747 CPPFLAGS=`echo "$CPPFLAGS" | \
17748 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17749 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17754 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17755 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17762 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17763 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17770 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17771 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17773 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17775 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17776 && test -z "${cf_tst_cflags}" \
17777 && cf_fix_cppflags=no
17782 if test -n "$cf_new_cflags" ; then
17784 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17785 CFLAGS="${CFLAGS}$cf_new_cflags"
17789 if test -n "$cf_new_cppflags" ; then
17791 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17792 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17796 if test -n "$cf_new_extra_cppflags" ; then
17798 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17799 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17805 cf_add_libs="$LIBS"
17808 for cf_add_1lib in `$PKG_CONFIG --libs "$FORM_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17809 # filter duplicates
17810 for cf_add_1lib in $cf_add_0lib; do
17811 for cf_add_2lib in $cf_add_libs; do
17812 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17817 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17819 LIBS="$cf_add_libs"
17821 cat >"conftest.$ac_ext" <<_ACEOF
17822 #line 17822 "configure"
17823 #include "confdefs.h"
17824 #include <$FORM_NAME.h>
17828 (void) form_driver ( 0,0 );
17833 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17834 if { (eval echo "$as_me:17834: \"$ac_link\"") >&5
17835 (eval $ac_link) 2>&5
17837 echo "$as_me:17837: \$? = $ac_status" >&5
17838 (exit "$ac_status"); } &&
17839 { ac_try='test -s "conftest$ac_exeext"'
17840 { (eval echo "$as_me:17840: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17843 echo "$as_me:17843: \$? = $ac_status" >&5
17844 (exit "$ac_status"); }; }; then
17845 if test "$cross_compiling" = yes; then
17846 cf_have_curses_lib=maybe
17848 cat >"conftest.$ac_ext" <<_ACEOF
17849 #line 17849 "configure"
17850 #include "confdefs.h"
17851 #include <$FORM_NAME.h>
17853 { (void) form_driver ( 0,0 ); return 0; }
17855 rm -f "conftest$ac_exeext"
17856 if { (eval echo "$as_me:17856: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>&5
17859 echo "$as_me:17859: \$? = $ac_status" >&5
17860 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
17861 { (eval echo "$as_me:17861: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:17864: \$? = $ac_status" >&5
17865 (exit "$ac_status"); }; }; then
17866 cf_have_curses_lib=yes
17868 echo "$as_me: program exited with status $ac_status" >&5
17869 echo "$as_me: failed program was:" >&5
17870 cat "conftest.$ac_ext" >&5
17871 cf_have_curses_lib=no
17873 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17876 echo "$as_me: failed program was:" >&5
17877 cat "conftest.$ac_ext" >&5
17878 cf_have_curses_lib=no
17880 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17881 echo "$as_me:17881: result: $cf_have_curses_lib" >&5
17882 echo "${ECHO_T}$cf_have_curses_lib" >&6
17883 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
17884 if test "$cf_have_curses_lib" = "yes"
17887 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17889 cat >>confdefs.h <<EOF
17890 #define $cf_upper 1
17894 CFLAGS="$cf_save_CFLAGS"
17895 CPPFLAGS="$cf_save_CPPFLAGS"
17896 LIBS="$cf_save_LIBS"
17900 if test "$cf_have_curses_lib" = no; then
17901 as_ac_Lib=`echo "ac_cv_lib_$FORM_NAME$cf_cv_libtype''_form_driver" | $as_tr_sh`
17902 echo "$as_me:17902: checking for form_driver in -l$FORM_NAME$cf_cv_libtype" >&5
17903 echo $ECHO_N "checking for form_driver in -l$FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
17904 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 ac_check_lib_save_LIBS=$LIBS
17908 LIBS="-l$FORM_NAME$cf_cv_libtype $LIBS"
17909 cat >"conftest.$ac_ext" <<_ACEOF
17910 #line 17910 "configure"
17911 #include "confdefs.h"
17913 /* Override any gcc2 internal prototype to avoid an error. */
17917 /* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17919 char form_driver ();
17928 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17929 if { (eval echo "$as_me:17929: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>&5
17932 echo "$as_me:17932: \$? = $ac_status" >&5
17933 (exit "$ac_status"); } &&
17934 { ac_try='test -s "conftest$ac_exeext"'
17935 { (eval echo "$as_me:17935: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17938 echo "$as_me:17938: \$? = $ac_status" >&5
17939 (exit "$ac_status"); }; }; then
17940 eval "$as_ac_Lib=yes"
17942 echo "$as_me: failed program was:" >&5
17943 cat "conftest.$ac_ext" >&5
17944 eval "$as_ac_Lib=no"
17946 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17947 LIBS=$ac_check_lib_save_LIBS
17949 echo "$as_me:17949: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
17950 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
17951 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
17953 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17955 cf_add_libs="$LIBS"
17958 for cf_add_1lib in -l$FORM_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17959 # filter duplicates
17960 for cf_add_1lib in $cf_add_0lib; do
17961 for cf_add_2lib in $cf_add_libs; do
17962 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17967 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17969 LIBS="$cf_add_libs"
17971 cat >>confdefs.h <<EOF
17972 #define $cf_upper 1
17979 cf_curses_headers="$cf_curses_headers form.h"
17982 # look for curses-related headers
17984 for ac_header in $cf_curses_headers
17986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17987 echo "$as_me:17987: checking for $ac_header" >&5
17988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 cat >"conftest.$ac_ext" <<_ACEOF
17993 #line 17993 "configure"
17994 #include "confdefs.h"
17995 #include <$ac_header>
17997 if { (eval echo "$as_me:17997: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17998 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18000 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18002 cat conftest.err >&5
18003 echo "$as_me:18003: \$? = $ac_status" >&5
18004 (exit "$ac_status"); } >/dev/null; then
18005 if test -s conftest.err; then
18006 ac_cpp_err=$ac_c_preproc_warn_flag
18013 if test -z "$ac_cpp_err"; then
18014 eval "$as_ac_Header=yes"
18016 echo "$as_me: failed program was:" >&5
18017 cat "conftest.$ac_ext" >&5
18018 eval "$as_ac_Header=no"
18020 rm -f conftest.err "conftest.$ac_ext"
18022 echo "$as_me:18022: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18023 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18024 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18025 cat >>confdefs.h <<EOF
18026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18032 echo "$as_me:18032: checking for ANSI C header files" >&5
18033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18034 if test "${ac_cv_header_stdc+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 cat >"conftest.$ac_ext" <<_ACEOF
18038 #line 18038 "configure"
18039 #include "confdefs.h"
18040 #include <stdlib.h>
18041 #include <stdarg.h>
18042 #include <string.h>
18046 if { (eval echo "$as_me:18046: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18047 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18049 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:18052: \$? = $ac_status" >&5
18053 (exit "$ac_status"); } >/dev/null; then
18054 if test -s conftest.err; then
18055 ac_cpp_err=$ac_c_preproc_warn_flag
18062 if test -z "$ac_cpp_err"; then
18063 ac_cv_header_stdc=yes
18065 echo "$as_me: failed program was:" >&5
18066 cat "conftest.$ac_ext" >&5
18067 ac_cv_header_stdc=no
18069 rm -f conftest.err "conftest.$ac_ext"
18071 if test $ac_cv_header_stdc = yes; then
18072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18073 cat >"conftest.$ac_ext" <<_ACEOF
18074 #line 18074 "configure"
18075 #include "confdefs.h"
18076 #include <string.h>
18079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18080 $EGREP "memchr" >/dev/null 2>&1; then
18083 ac_cv_header_stdc=no
18089 if test $ac_cv_header_stdc = yes; then
18090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18091 cat >"conftest.$ac_ext" <<_ACEOF
18092 #line 18092 "configure"
18093 #include "confdefs.h"
18094 #include <stdlib.h>
18097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18098 $EGREP "free" >/dev/null 2>&1; then
18101 ac_cv_header_stdc=no
18107 if test $ac_cv_header_stdc = yes; then
18108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18109 if test "$cross_compiling" = yes; then
18112 cat >"conftest.$ac_ext" <<_ACEOF
18113 #line 18113 "configure"
18114 #include "confdefs.h"
18116 #if ((' ' & 0x0FF) == 0x020)
18117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18120 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18121 || ('j' <= (c) && (c) <= 'r') \
18122 || ('s' <= (c) && (c) <= 'z'))
18123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18131 for (i = 0; i < 256; i++)
18132 if (XOR (islower (i), ISLOWER (i))
18133 || toupper (i) != TOUPPER (i))
18134 $ac_main_return(2);
18135 $ac_main_return (0);
18138 rm -f "conftest$ac_exeext"
18139 if { (eval echo "$as_me:18139: \"$ac_link\"") >&5
18140 (eval $ac_link) 2>&5
18142 echo "$as_me:18142: \$? = $ac_status" >&5
18143 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18144 { (eval echo "$as_me:18144: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18147 echo "$as_me:18147: \$? = $ac_status" >&5
18148 (exit "$ac_status"); }; }; then
18151 echo "$as_me: program exited with status $ac_status" >&5
18152 echo "$as_me: failed program was:" >&5
18153 cat "conftest.$ac_ext" >&5
18154 ac_cv_header_stdc=no
18156 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18160 echo "$as_me:18160: result: $ac_cv_header_stdc" >&5
18161 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18162 if test $ac_cv_header_stdc = yes; then
18164 cat >>confdefs.h <<\EOF
18165 #define STDC_HEADERS 1
18170 echo "$as_me:18170: checking whether time.h and sys/time.h may both be included" >&5
18171 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18172 if test "${ac_cv_header_time+set}" = set; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 cat >"conftest.$ac_ext" <<_ACEOF
18176 #line 18176 "configure"
18177 #include "confdefs.h"
18178 #include <sys/types.h>
18179 #include <sys/time.h>
18185 if ((struct tm *) 0)
18191 rm -f "conftest.$ac_objext"
18192 if { (eval echo "$as_me:18192: \"$ac_compile\"") >&5
18193 (eval $ac_compile) 2>&5
18195 echo "$as_me:18195: \$? = $ac_status" >&5
18196 (exit "$ac_status"); } &&
18197 { ac_try='test -s "conftest.$ac_objext"'
18198 { (eval echo "$as_me:18198: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18201 echo "$as_me:18201: \$? = $ac_status" >&5
18202 (exit "$ac_status"); }; }; then
18203 ac_cv_header_time=yes
18205 echo "$as_me: failed program was:" >&5
18206 cat "conftest.$ac_ext" >&5
18207 ac_cv_header_time=no
18209 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18211 echo "$as_me:18211: result: $ac_cv_header_time" >&5
18212 echo "${ECHO_T}$ac_cv_header_time" >&6
18213 if test $ac_cv_header_time = yes; then
18215 cat >>confdefs.h <<\EOF
18216 #define TIME_WITH_SYS_TIME 1
18234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18235 echo "$as_me:18235: checking for $ac_header" >&5
18236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 cat >"conftest.$ac_ext" <<_ACEOF
18241 #line 18241 "configure"
18242 #include "confdefs.h"
18243 #include <$ac_header>
18245 if { (eval echo "$as_me:18245: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18246 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18248 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18250 cat conftest.err >&5
18251 echo "$as_me:18251: \$? = $ac_status" >&5
18252 (exit "$ac_status"); } >/dev/null; then
18253 if test -s conftest.err; then
18254 ac_cpp_err=$ac_c_preproc_warn_flag
18261 if test -z "$ac_cpp_err"; then
18262 eval "$as_ac_Header=yes"
18264 echo "$as_me: failed program was:" >&5
18265 cat "conftest.$ac_ext" >&5
18266 eval "$as_ac_Header=no"
18268 rm -f conftest.err "conftest.$ac_ext"
18270 echo "$as_me:18270: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18271 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18272 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18273 cat >>confdefs.h <<EOF
18274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18280 for ac_header in unistd.h getopt.h
18282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18283 echo "$as_me:18283: checking for $ac_header" >&5
18284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 cat >"conftest.$ac_ext" <<_ACEOF
18289 #line 18289 "configure"
18290 #include "confdefs.h"
18291 #include <$ac_header>
18293 if { (eval echo "$as_me:18293: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18294 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18296 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18298 cat conftest.err >&5
18299 echo "$as_me:18299: \$? = $ac_status" >&5
18300 (exit "$ac_status"); } >/dev/null; then
18301 if test -s conftest.err; then
18302 ac_cpp_err=$ac_c_preproc_warn_flag
18309 if test -z "$ac_cpp_err"; then
18310 eval "$as_ac_Header=yes"
18312 echo "$as_me: failed program was:" >&5
18313 cat "conftest.$ac_ext" >&5
18314 eval "$as_ac_Header=no"
18316 rm -f conftest.err "conftest.$ac_ext"
18318 echo "$as_me:18318: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18319 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18320 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18321 cat >>confdefs.h <<EOF
18322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18328 echo "$as_me:18328: checking for header declaring getopt variables" >&5
18329 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
18330 if test "${cf_cv_getopt_header+set}" = set; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 cf_cv_getopt_header=none
18335 for cf_header in stdio.h stdlib.h unistd.h getopt.h
18337 cat >"conftest.$ac_ext" <<_ACEOF
18338 #line 18338 "configure"
18339 #include "confdefs.h"
18341 #include <$cf_header>
18345 int x = optind; char *y = optarg; (void)x; (void)y
18350 rm -f "conftest.$ac_objext"
18351 if { (eval echo "$as_me:18351: \"$ac_compile\"") >&5
18352 (eval $ac_compile) 2>&5
18354 echo "$as_me:18354: \$? = $ac_status" >&5
18355 (exit "$ac_status"); } &&
18356 { ac_try='test -s "conftest.$ac_objext"'
18357 { (eval echo "$as_me:18357: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18360 echo "$as_me:18360: \$? = $ac_status" >&5
18361 (exit "$ac_status"); }; }; then
18362 cf_cv_getopt_header=$cf_header
18365 echo "$as_me: failed program was:" >&5
18366 cat "conftest.$ac_ext" >&5
18368 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18372 echo "$as_me:18372: result: $cf_cv_getopt_header" >&5
18373 echo "${ECHO_T}$cf_cv_getopt_header" >&6
18374 if test "$cf_cv_getopt_header" != none ; then
18376 cat >>confdefs.h <<\EOF
18377 #define HAVE_GETOPT_HEADER 1
18381 if test "$cf_cv_getopt_header" = getopt.h ; then
18383 cat >>confdefs.h <<\EOF
18384 #define NEED_GETOPT_H 1
18399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18400 echo "$as_me:18400: checking for $ac_func" >&5
18401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18402 if eval "test \"\${$as_ac_var+set}\" = set"; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 cat >"conftest.$ac_ext" <<_ACEOF
18406 #line 18406 "configure"
18407 #include "confdefs.h"
18408 #define $ac_func autoconf_temporary
18409 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18416 /* We use char because int might match the return type of a gcc2
18417 builtin and then its argument prototype would still apply. */
18418 char $ac_func (void);
18424 /* The GNU C library defines stubs for functions which it implements
18425 to always fail with ENOSYS. Some functions are actually named
18426 something starting with __ and the normal name is an alias. */
18427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18428 #error found stub for $ac_func
18431 return $ac_func ();
18436 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18437 if { (eval echo "$as_me:18437: \"$ac_link\"") >&5
18438 (eval $ac_link) 2>&5
18440 echo "$as_me:18440: \$? = $ac_status" >&5
18441 (exit "$ac_status"); } &&
18442 { ac_try='test -s "conftest$ac_exeext"'
18443 { (eval echo "$as_me:18443: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18446 echo "$as_me:18446: \$? = $ac_status" >&5
18447 (exit "$ac_status"); }; }; then
18448 eval "$as_ac_var=yes"
18450 echo "$as_me: failed program was:" >&5
18451 cat "conftest.$ac_ext" >&5
18452 eval "$as_ac_var=no"
18454 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18456 echo "$as_me:18456: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18457 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18458 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18459 cat >>confdefs.h <<EOF
18460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18466 # use a compile-check to work with ncurses*-config and subdirectory includes
18467 echo "$as_me:18467: checking if we can use termcap.h" >&5
18468 echo $ECHO_N "checking if we can use termcap.h... $ECHO_C" >&6
18469 if test "${cf_cv_have_termcap_h+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 cat >"conftest.$ac_ext" <<_ACEOF
18474 #line 18474 "configure"
18475 #include "confdefs.h"
18477 #include <curses.h>
18478 #ifdef NCURSES_VERSION
18479 #undef NCURSES_VERSION
18481 #include <termcap.h>
18482 #ifndef NCURSES_VERSION
18483 #error wrong header
18494 rm -f "conftest.$ac_objext"
18495 if { (eval echo "$as_me:18495: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>&5
18498 echo "$as_me:18498: \$? = $ac_status" >&5
18499 (exit "$ac_status"); } &&
18500 { ac_try='test -s "conftest.$ac_objext"'
18501 { (eval echo "$as_me:18501: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18504 echo "$as_me:18504: \$? = $ac_status" >&5
18505 (exit "$ac_status"); }; }; then
18506 cf_cv_have_termcap_h=yes
18508 echo "$as_me: failed program was:" >&5
18509 cat "conftest.$ac_ext" >&5
18510 cf_cv_have_termcap_h=no
18512 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18514 echo "$as_me:18514: result: $cf_cv_have_termcap_h" >&5
18515 echo "${ECHO_T}$cf_cv_have_termcap_h" >&6
18516 if test "x$cf_cv_have_termcap_h" = xyes
18519 cat >>confdefs.h <<\EOF
18520 #define HAVE_TERMCAP_H 1
18524 echo "$as_me:18524: checking if we can use ncurses/termcap.h" >&5
18525 echo $ECHO_N "checking if we can use ncurses/termcap.h... $ECHO_C" >&6
18526 if test "${cf_cv_have_ncurses_termcap_h+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 cat >"conftest.$ac_ext" <<_ACEOF
18531 #line 18531 "configure"
18532 #include "confdefs.h"
18534 #include <ncurses/curses.h>
18535 #ifdef NCURSES_VERSION
18536 #undef NCURSES_VERSION
18538 #include <ncurses/termcap.h>
18539 #ifndef NCURSES_VERSION
18540 #error wrong header
18551 rm -f "conftest.$ac_objext"
18552 if { (eval echo "$as_me:18552: \"$ac_compile\"") >&5
18553 (eval $ac_compile) 2>&5
18555 echo "$as_me:18555: \$? = $ac_status" >&5
18556 (exit "$ac_status"); } &&
18557 { ac_try='test -s "conftest.$ac_objext"'
18558 { (eval echo "$as_me:18558: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18561 echo "$as_me:18561: \$? = $ac_status" >&5
18562 (exit "$ac_status"); }; }; then
18563 cf_cv_have_ncurses_termcap_h=yes
18565 echo "$as_me: failed program was:" >&5
18566 cat "conftest.$ac_ext" >&5
18567 cf_cv_have_ncurses_termcap_h=no
18569 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18571 echo "$as_me:18571: result: $cf_cv_have_ncurses_termcap_h" >&5
18572 echo "${ECHO_T}$cf_cv_have_ncurses_termcap_h" >&6
18573 test "x$cf_cv_have_ncurses_termcap_h" = xyes &&
18574 cat >>confdefs.h <<\EOF
18575 #define HAVE_NCURSES_TERMCAP_H 1
18580 if test "x$ac_cv_func_getopt" = xno; then
18581 { { echo "$as_me:18581: error: getopt is required for building programs" >&5
18582 echo "$as_me: error: getopt is required for building programs" >&2;}
18583 { (exit 1); exit 1; }; }
18586 if test "$cf_enable_widec" = yes; then
18599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18600 echo "$as_me:18600: checking for $ac_func" >&5
18601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18602 if eval "test \"\${$as_ac_var+set}\" = set"; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 cat >"conftest.$ac_ext" <<_ACEOF
18606 #line 18606 "configure"
18607 #include "confdefs.h"
18608 #define $ac_func autoconf_temporary
18609 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18616 /* We use char because int might match the return type of a gcc2
18617 builtin and then its argument prototype would still apply. */
18618 char $ac_func (void);
18624 /* The GNU C library defines stubs for functions which it implements
18625 to always fail with ENOSYS. Some functions are actually named
18626 something starting with __ and the normal name is an alias. */
18627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18628 #error found stub for $ac_func
18631 return $ac_func ();
18636 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18637 if { (eval echo "$as_me:18637: \"$ac_link\"") >&5
18638 (eval $ac_link) 2>&5
18640 echo "$as_me:18640: \$? = $ac_status" >&5
18641 (exit "$ac_status"); } &&
18642 { ac_try='test -s "conftest$ac_exeext"'
18643 { (eval echo "$as_me:18643: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18646 echo "$as_me:18646: \$? = $ac_status" >&5
18647 (exit "$ac_status"); }; }; then
18648 eval "$as_ac_var=yes"
18650 echo "$as_me: failed program was:" >&5
18651 cat "conftest.$ac_ext" >&5
18652 eval "$as_ac_var=no"
18654 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18656 echo "$as_me:18656: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18657 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18658 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18659 cat >>confdefs.h <<EOF
18660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18668 echo "$as_me:18668: checking definition to turn on extended curses functions" >&5
18669 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
18670 if test "${cf_cv_need_xopen_extension+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 cf_cv_need_xopen_extension=unknown
18675 cat >"conftest.$ac_ext" <<_ACEOF
18676 #line 18676 "configure"
18677 #include "confdefs.h"
18679 #include <stdlib.h>
18680 #include <${cf_cv_ncurses_header:-curses.h}>
18685 #if defined(NCURSES_VERSION_PATCH)
18686 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
18690 #ifdef NCURSES_WIDECHAR
18691 make an error /* prefer to fall-through on the second checks */
18694 int check2 = curs_set((int)sizeof(check));
18695 long x = winnstr(stdscr, "", 0);
18698 getbegyx(stdscr, y1, x1);
18707 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18708 if { (eval echo "$as_me:18708: \"$ac_link\"") >&5
18709 (eval $ac_link) 2>&5
18711 echo "$as_me:18711: \$? = $ac_status" >&5
18712 (exit "$ac_status"); } &&
18713 { ac_try='test -s "conftest$ac_exeext"'
18714 { (eval echo "$as_me:18714: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18717 echo "$as_me:18717: \$? = $ac_status" >&5
18718 (exit "$ac_status"); }; }; then
18719 cf_cv_need_xopen_extension=none
18721 echo "$as_me: failed program was:" >&5
18722 cat "conftest.$ac_ext" >&5
18724 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
18726 cat >"conftest.$ac_ext" <<_ACEOF
18727 #line 18727 "configure"
18728 #include "confdefs.h"
18730 #define $cf_try_xopen_extension 1
18731 #include <stdlib.h>
18732 #include <${cf_cv_ncurses_header:-curses.h}>
18738 int check2 = curs_set((int)sizeof(check));
18739 long x = winnstr(stdscr, "", 0);
18741 getbegyx(stdscr, y1, x1);
18751 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18752 if { (eval echo "$as_me:18752: \"$ac_link\"") >&5
18753 (eval $ac_link) 2>&5
18755 echo "$as_me:18755: \$? = $ac_status" >&5
18756 (exit "$ac_status"); } &&
18757 { ac_try='test -s "conftest$ac_exeext"'
18758 { (eval echo "$as_me:18758: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18761 echo "$as_me:18761: \$? = $ac_status" >&5
18762 (exit "$ac_status"); }; }; then
18763 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
18765 echo "$as_me: failed program was:" >&5
18766 cat "conftest.$ac_ext" >&5
18768 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18772 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18775 echo "$as_me:18775: result: $cf_cv_need_xopen_extension" >&5
18776 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
18778 case "$cf_cv_need_xopen_extension" in
18781 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18782 CPPFLAGS="${CPPFLAGS}-D$cf_cv_need_xopen_extension"
18787 echo "$as_me:18787: checking for term.h" >&5
18788 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
18789 if test "${cf_cv_term_header+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
18794 # for <term.h> if we do not find the variant.
18796 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
18798 case "${cf_cv_ncurses_header:-curses.h}" in
18800 cf_header_item=`echo "${cf_cv_ncurses_header:-curses.h}" | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
18801 cf_header_list="$cf_header_item $cf_header_list"
18805 for cf_header in $cf_header_list
18807 cat >"conftest.$ac_ext" <<_ACEOF
18808 #line 18808 "configure"
18809 #include "confdefs.h"
18811 #include <${cf_cv_ncurses_header:-curses.h}>
18812 #include <${cf_header}>
18821 rm -f "conftest.$ac_objext"
18822 if { (eval echo "$as_me:18822: \"$ac_compile\"") >&5
18823 (eval $ac_compile) 2>&5
18825 echo "$as_me:18825: \$? = $ac_status" >&5
18826 (exit "$ac_status"); } &&
18827 { ac_try='test -s "conftest.$ac_objext"'
18828 { (eval echo "$as_me:18828: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:18831: \$? = $ac_status" >&5
18832 (exit "$ac_status"); }; }; then
18833 cf_cv_term_header=$cf_header
18836 echo "$as_me: failed program was:" >&5
18837 cat "conftest.$ac_ext" >&5
18838 cf_cv_term_header=no
18840 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18843 case "$cf_cv_term_header" in
18845 # If curses is ncurses, some packagers still mess it up by trying to make
18846 # us use GNU termcap. This handles the most common case.
18847 for cf_header in ncurses/term.h ncursesw/term.h
18849 cat >"conftest.$ac_ext" <<_ACEOF
18850 #line 18850 "configure"
18851 #include "confdefs.h"
18853 #include <${cf_cv_ncurses_header:-curses.h}>
18854 #ifdef NCURSES_VERSION
18855 #include <${cf_header}>
18867 rm -f "conftest.$ac_objext"
18868 if { (eval echo "$as_me:18868: \"$ac_compile\"") >&5
18869 (eval $ac_compile) 2>&5
18871 echo "$as_me:18871: \$? = $ac_status" >&5
18872 (exit "$ac_status"); } &&
18873 { ac_try='test -s "conftest.$ac_objext"'
18874 { (eval echo "$as_me:18874: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18877 echo "$as_me:18877: \$? = $ac_status" >&5
18878 (exit "$ac_status"); }; }; then
18879 cf_cv_term_header=$cf_header
18882 echo "$as_me: failed program was:" >&5
18883 cat "conftest.$ac_ext" >&5
18884 cf_cv_term_header=no
18886 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18892 echo "$as_me:18892: result: $cf_cv_term_header" >&5
18893 echo "${ECHO_T}$cf_cv_term_header" >&6
18895 case "$cf_cv_term_header" in
18898 cat >>confdefs.h <<\EOF
18899 #define HAVE_TERM_H 1
18905 cat >>confdefs.h <<\EOF
18906 #define HAVE_NCURSES_TERM_H 1
18912 cat >>confdefs.h <<\EOF
18913 #define HAVE_NCURSESW_TERM_H 1
18919 echo "$as_me:18919: checking for unctrl.h" >&5
18920 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
18921 if test "${cf_cv_unctrl_header+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
18926 # for <unctrl.h> if we do not find the variant.
18928 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
18930 case "${cf_cv_ncurses_header:-curses.h}" in
18932 cf_header_item=`echo "${cf_cv_ncurses_header:-curses.h}" | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
18933 cf_header_list="$cf_header_item $cf_header_list"
18937 for cf_header in $cf_header_list
18939 cat >"conftest.$ac_ext" <<_ACEOF
18940 #line 18940 "configure"
18941 #include "confdefs.h"
18943 #include <${cf_cv_ncurses_header:-curses.h}>
18944 #include <${cf_header}>
18953 rm -f "conftest.$ac_objext"
18954 if { (eval echo "$as_me:18954: \"$ac_compile\"") >&5
18955 (eval $ac_compile) 2>&5
18957 echo "$as_me:18957: \$? = $ac_status" >&5
18958 (exit "$ac_status"); } &&
18959 { ac_try='test -s "conftest.$ac_objext"'
18960 { (eval echo "$as_me:18960: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:18963: \$? = $ac_status" >&5
18964 (exit "$ac_status"); }; }; then
18965 cf_cv_unctrl_header=$cf_header
18968 echo "$as_me: failed program was:" >&5
18969 cat "conftest.$ac_ext" >&5
18970 cf_cv_unctrl_header=no
18972 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18976 echo "$as_me:18976: result: $cf_cv_unctrl_header" >&5
18977 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
18979 case "$cf_cv_unctrl_header" in
18981 { echo "$as_me:18981: WARNING: unctrl.h header not found" >&5
18982 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
18986 case "$cf_cv_unctrl_header" in
18989 cat >>confdefs.h <<\EOF
18990 #define HAVE_UNCTRL_H 1
18996 cat >>confdefs.h <<\EOF
18997 #define HAVE_NCURSES_UNCTRL_H 1
19001 (ncursesw/unctrl.h)
19003 cat >>confdefs.h <<\EOF
19004 #define HAVE_NCURSESW_UNCTRL_H 1
19012 assume_default_colors \
19029 init_extended_color \
19037 reset_color_pairs \
19054 use_default_colors \
19056 use_extended_names \
19072 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19074 echo "$as_me:19074: checking for ${cf_func}" >&5
19075 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
19077 echo "${as_me:-configure}:19077: testing ${cf_func} ..." 1>&5
19079 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 eval cf_result='$ac_cv_func_'$cf_func
19084 if test ".$cf_result" != ".no"; then
19085 cat >"conftest.$ac_ext" <<_ACEOF
19086 #line 19086 "configure"
19087 #include "confdefs.h"
19089 #ifdef HAVE_XCURSES
19090 #include <xcurses.h>
19091 char * XCursesProgramName = "test";
19093 #include <${cf_cv_ncurses_header:-curses.h}>
19094 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19095 #include <ncursesw/term.h>
19096 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19097 #include <ncurses/term.h>
19098 #elif defined(HAVE_TERM_H)
19108 long foo = (long)(&${cf_func});
19109 fprintf(stderr, "testing linkage of $cf_func:%p\\n", (void *)foo);
19110 if (foo + 1234L > 5678L)
19111 ${cf_cv_main_return:-return}(foo != 0);
19118 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19119 if { (eval echo "$as_me:19119: \"$ac_link\"") >&5
19120 (eval $ac_link) 2>&5
19122 echo "$as_me:19122: \$? = $ac_status" >&5
19123 (exit "$ac_status"); } &&
19124 { ac_try='test -s "conftest$ac_exeext"'
19125 { (eval echo "$as_me:19125: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19128 echo "$as_me:19128: \$? = $ac_status" >&5
19129 (exit "$ac_status"); }; }; then
19132 echo "$as_me: failed program was:" >&5
19133 cat "conftest.$ac_ext" >&5
19136 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19138 eval 'cf_cv_func_'$cf_func'="$cf_result"'
19142 # use the computed/retrieved cache-value:
19143 eval 'cf_result=$cf_cv_func_'$cf_func
19144 echo "$as_me:19144: result: $cf_result" >&5
19145 echo "${ECHO_T}$cf_result" >&6
19146 if test "$cf_result" != no; then
19147 cat >>confdefs.h <<EOF
19148 #define HAVE_${cf_tr_func} 1
19154 for cf_func in tputs
19157 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19159 echo "$as_me:19159: checking for ${cf_func}" >&5
19160 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
19162 echo "${as_me:-configure}:19162: testing ${cf_func} ..." 1>&5
19164 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 eval cf_result='$ac_cv_func_'$cf_func
19169 if test ".$cf_result" != ".no"; then
19170 cat >"conftest.$ac_ext" <<_ACEOF
19171 #line 19171 "configure"
19172 #include "confdefs.h"
19174 #ifdef HAVE_XCURSES
19175 #include <xcurses.h>
19176 char * XCursesProgramName = "test";
19178 #include <${cf_cv_ncurses_header:-curses.h}>
19179 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19180 #include <ncursesw/term.h>
19181 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19182 #include <ncurses/term.h>
19183 #elif defined(HAVE_TERM_H)
19193 long foo = (long)(&${cf_func});
19194 fprintf(stderr, "testing linkage of $cf_func:%p\\n", (void *)foo);
19195 if (foo + 1234L > 5678L)
19196 ${cf_cv_main_return:-return}(foo != 0);
19203 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19204 if { (eval echo "$as_me:19204: \"$ac_link\"") >&5
19205 (eval $ac_link) 2>&5
19207 echo "$as_me:19207: \$? = $ac_status" >&5
19208 (exit "$ac_status"); } &&
19209 { ac_try='test -s "conftest$ac_exeext"'
19210 { (eval echo "$as_me:19210: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19213 echo "$as_me:19213: \$? = $ac_status" >&5
19214 (exit "$ac_status"); }; }; then
19217 echo "$as_me: failed program was:" >&5
19218 cat "conftest.$ac_ext" >&5
19221 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19223 eval 'cf_cv_func_'$cf_func'="$cf_result"'
19227 # use the computed/retrieved cache-value:
19228 eval 'cf_result=$cf_cv_func_'$cf_func
19229 echo "$as_me:19229: result: $cf_result" >&5
19230 echo "${ECHO_T}$cf_result" >&6
19231 if test "$cf_result" != no; then
19232 cat >>confdefs.h <<EOF
19233 #define HAVE_${cf_tr_func} 1
19239 if test "x$cf_cv_func_tputs" = xyes
19242 for cf_arg in int char
19244 for cf_ret in int void
19246 if test "$cf_ret" = void
19248 cf_return="/* nothing */"
19250 cf_return="return value"
19252 cat >"conftest.$ac_ext" <<_ACEOF
19253 #line 19253 "configure"
19254 #include "confdefs.h"
19256 #include <${cf_cv_ncurses_header:-curses.h}>
19257 #include <$cf_cv_term_header>
19259 static $cf_ret outc($cf_arg value) { $cf_return; }
19265 tputs("hello", 0, outc);
19266 ${cf_cv_main_return:-return}(0);
19272 rm -f "conftest.$ac_objext"
19273 if { (eval echo "$as_me:19273: \"$ac_compile\"") >&5
19274 (eval $ac_compile) 2>&5
19276 echo "$as_me:19276: \$? = $ac_status" >&5
19277 (exit "$ac_status"); } &&
19278 { ac_try='test -s "conftest.$ac_objext"'
19279 { (eval echo "$as_me:19279: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19282 echo "$as_me:19282: \$? = $ac_status" >&5
19283 (exit "$ac_status"); }; }; then
19285 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
19287 echo "${as_me:-configure}:19287: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
19289 cat >>confdefs.h <<EOF
19290 #define TPUTS_ARG $cf_arg
19291 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
19292 #define TPUTS_RETURN(value) $cf_return
19298 echo "$as_me: failed program was:" >&5
19299 cat "conftest.$ac_ext" >&5
19301 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19303 test "$cf_done" = yes && break
19307 echo "$as_me:19307: checking for ncurses extended functions" >&5
19308 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
19309 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19313 cat >"conftest.$ac_ext" <<_ACEOF
19314 #line 19314 "configure"
19315 #include "confdefs.h"
19317 #include <${cf_cv_ncurses_header:-curses.h}>
19322 int x = NCURSES_EXT_FUNCS
19328 rm -f "conftest.$ac_objext"
19329 if { (eval echo "$as_me:19329: \"$ac_compile\"") >&5
19330 (eval $ac_compile) 2>&5
19332 echo "$as_me:19332: \$? = $ac_status" >&5
19333 (exit "$ac_status"); } &&
19334 { ac_try='test -s "conftest.$ac_objext"'
19335 { (eval echo "$as_me:19335: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19338 echo "$as_me:19338: \$? = $ac_status" >&5
19339 (exit "$ac_status"); }; }; then
19340 cf_cv_ncurses_ext_funcs=defined
19342 echo "$as_me: failed program was:" >&5
19343 cat "conftest.$ac_ext" >&5
19345 cat >"conftest.$ac_ext" <<_ACEOF
19346 #line 19346 "configure"
19347 #include "confdefs.h"
19349 #include <${cf_cv_ncurses_header:-curses.h}>
19354 (void) assume_default_colors (0, 0);
19355 (void) curses_version ();
19356 (void) define_key (0, 0);
19357 (void) is_term_resized (0, 0);
19358 (void) key_defined (0);
19359 (void) keybound (0, 0);
19360 (void) keyok (0, 0);
19361 (void) resize_term (0, 0);
19362 (void) resizeterm (0, 0);
19363 (void) use_default_colors ();
19364 (void) use_extended_names (0);
19365 (void) wresize (0, 0, 0);
19370 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19371 if { (eval echo "$as_me:19371: \"$ac_link\"") >&5
19372 (eval $ac_link) 2>&5
19374 echo "$as_me:19374: \$? = $ac_status" >&5
19375 (exit "$ac_status"); } &&
19376 { ac_try='test -s "conftest$ac_exeext"'
19377 { (eval echo "$as_me:19377: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:19380: \$? = $ac_status" >&5
19381 (exit "$ac_status"); }; }; then
19382 cf_cv_ncurses_ext_funcs=yes
19384 echo "$as_me: failed program was:" >&5
19385 cat "conftest.$ac_ext" >&5
19386 cf_cv_ncurses_ext_funcs=no
19388 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19391 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19394 echo "$as_me:19394: result: $cf_cv_ncurses_ext_funcs" >&5
19395 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
19396 test "$cf_cv_ncurses_ext_funcs" = yes &&
19397 cat >>confdefs.h <<\EOF
19398 #define NCURSES_EXT_FUNCS 1
19401 if test "$cf_enable_widec" = yes
19403 # workaround for systems with ncurses before 20111029, due to change of
19404 # feature test macro from _XPG5 to _XOPEN_SOURCE
19405 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
19408 echo "$as_me:19408: checking if _XPG5 should be defined to enable wide-characters" >&5
19409 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
19411 cat >"conftest.$ac_ext" <<_ACEOF
19412 #line 19412 "configure"
19413 #include "confdefs.h"
19415 #include <${cf_cv_ncurses_header:-curses.h}>
19424 rm -f "conftest.$ac_objext"
19425 if { (eval echo "$as_me:19425: \"$ac_compile\"") >&5
19426 (eval $ac_compile) 2>&5
19428 echo "$as_me:19428: \$? = $ac_status" >&5
19429 (exit "$ac_status"); } &&
19430 { ac_try='test -s "conftest.$ac_objext"'
19431 { (eval echo "$as_me:19431: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:19434: \$? = $ac_status" >&5
19435 (exit "$ac_status"); }; }; then
19438 echo "$as_me: failed program was:" >&5
19439 cat "conftest.$ac_ext" >&5
19440 cf_save_cppflags="$CPPFLAGS"
19441 CPPFLAGS="$CPPFLAGS -D_XPG5"
19442 cat >"conftest.$ac_ext" <<_ACEOF
19443 #line 19443 "configure"
19444 #include "confdefs.h"
19446 #include <${cf_cv_ncurses_header:-curses.h}>
19455 rm -f "conftest.$ac_objext"
19456 if { (eval echo "$as_me:19456: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>&5
19459 echo "$as_me:19459: \$? = $ac_status" >&5
19460 (exit "$ac_status"); } &&
19461 { ac_try='test -s "conftest.$ac_objext"'
19462 { (eval echo "$as_me:19462: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19465 echo "$as_me:19465: \$? = $ac_status" >&5
19466 (exit "$ac_status"); }; }; then
19469 echo "$as_me: failed program was:" >&5
19470 cat "conftest.$ac_ext" >&5
19472 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19473 CPPFLAGS="$cf_save_cppflags"
19475 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19476 echo "$as_me:19476: result: $cf_define_xpg5" >&5
19477 echo "${ECHO_T}$cf_define_xpg5" >&6
19479 if test "$cf_define_xpg5" = yes
19481 CPPFLAGS="$CPPFLAGS -D_XPG5"
19485 echo "$as_me:19485: checking for wide-character functions" >&5
19486 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
19487 if test "${cf_cv_widechar_funcs+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}>
19500 static wchar_t src_wchar[2];
19501 static cchar_t dst_cchar;
19502 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
19508 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19509 if { (eval echo "$as_me:19509: \"$ac_link\"") >&5
19510 (eval $ac_link) 2>&5
19512 echo "$as_me:19512: \$? = $ac_status" >&5
19513 (exit "$ac_status"); } &&
19514 { ac_try='test -s "conftest$ac_exeext"'
19515 { (eval echo "$as_me:19515: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:19518: \$? = $ac_status" >&5
19519 (exit "$ac_status"); }; }; then
19520 cf_cv_widechar_funcs=yes
19522 echo "$as_me: failed program was:" >&5
19523 cat "conftest.$ac_ext" >&5
19524 cf_cv_widechar_funcs=no
19526 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19529 echo "$as_me:19529: result: $cf_cv_widechar_funcs" >&5
19530 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
19531 if test "$cf_cv_widechar_funcs" != no ; then
19533 cat >>confdefs.h <<\EOF
19534 #define USE_WIDEC_SUPPORT 1
19538 cat >>confdefs.h <<\EOF
19539 #define USE_WIDEC_SUPPORT 0
19544 cat >>confdefs.h <<\EOF
19545 #define USE_WIDEC_SUPPORT 0
19550 echo "$as_me:19550: checking if $cf_cv_screen library uses pthreads" >&5
19551 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
19552 if test "${cf_cv_use_pthreads+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 cat >"conftest.$ac_ext" <<_ACEOF
19557 #line 19557 "configure"
19558 #include "confdefs.h"
19560 #include <${cf_cv_ncurses_header:-curses.h}>
19561 extern void _nc_init_pthreads(void);
19568 _nc_init_pthreads();
19574 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19575 if { (eval echo "$as_me:19575: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>&5
19578 echo "$as_me:19578: \$? = $ac_status" >&5
19579 (exit "$ac_status"); } &&
19580 { ac_try='test -s "conftest$ac_exeext"'
19581 { (eval echo "$as_me:19581: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:19584: \$? = $ac_status" >&5
19585 (exit "$ac_status"); }; }; then
19586 cf_cv_use_pthreads=yes
19588 echo "$as_me: failed program was:" >&5
19589 cat "conftest.$ac_ext" >&5
19590 cf_cv_use_pthreads=no
19592 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19595 echo "$as_me:19595: result: $cf_cv_use_pthreads" >&5
19596 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
19597 test $cf_cv_use_pthreads = yes &&
19598 cat >>confdefs.h <<\EOF
19599 #define USE_PTHREADS 1
19602 echo "$as_me:19602: checking if sys/time.h works with sys/select.h" >&5
19603 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
19604 if test "${cf_cv_sys_time_select+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 cat >"conftest.$ac_ext" <<_ACEOF
19609 #line 19609 "configure"
19610 #include "confdefs.h"
19612 #include <sys/types.h>
19613 #ifdef HAVE_SYS_TIME_H
19614 #include <sys/time.h>
19616 #ifdef HAVE_SYS_SELECT_H
19617 #include <sys/select.h>
19628 rm -f "conftest.$ac_objext"
19629 if { (eval echo "$as_me:19629: \"$ac_compile\"") >&5
19630 (eval $ac_compile) 2>&5
19632 echo "$as_me:19632: \$? = $ac_status" >&5
19633 (exit "$ac_status"); } &&
19634 { ac_try='test -s "conftest.$ac_objext"'
19635 { (eval echo "$as_me:19635: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:19638: \$? = $ac_status" >&5
19639 (exit "$ac_status"); }; }; then
19640 cf_cv_sys_time_select=yes
19642 echo "$as_me: failed program was:" >&5
19643 cat "conftest.$ac_ext" >&5
19644 cf_cv_sys_time_select=no
19646 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19650 echo "$as_me:19650: result: $cf_cv_sys_time_select" >&5
19651 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
19652 test "$cf_cv_sys_time_select" = yes &&
19653 cat >>confdefs.h <<\EOF
19654 #define HAVE_SYS_TIME_SELECT 1
19657 # special check for test/ditto.c
19659 echo "$as_me:19659: checking for openpty in -lutil" >&5
19660 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
19661 if test "${ac_cv_lib_util_openpty+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lutil $LIBS"
19666 cat >"conftest.$ac_ext" <<_ACEOF
19667 #line 19667 "configure"
19668 #include "confdefs.h"
19670 /* Override any gcc2 internal prototype to avoid an error. */
19674 /* We use char because int might match the return type of a gcc2
19675 builtin and then its argument prototype would still apply. */
19685 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19686 if { (eval echo "$as_me:19686: \"$ac_link\"") >&5
19687 (eval $ac_link) 2>&5
19689 echo "$as_me:19689: \$? = $ac_status" >&5
19690 (exit "$ac_status"); } &&
19691 { ac_try='test -s "conftest$ac_exeext"'
19692 { (eval echo "$as_me:19692: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19695 echo "$as_me:19695: \$? = $ac_status" >&5
19696 (exit "$ac_status"); }; }; then
19697 ac_cv_lib_util_openpty=yes
19699 echo "$as_me: failed program was:" >&5
19700 cat "conftest.$ac_ext" >&5
19701 ac_cv_lib_util_openpty=no
19703 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19704 LIBS=$ac_check_lib_save_LIBS
19706 echo "$as_me:19706: result: $ac_cv_lib_util_openpty" >&5
19707 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
19708 if test "$ac_cv_lib_util_openpty" = yes; then
19714 echo "$as_me:19714: checking for openpty header" >&5
19715 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
19716 if test "${cf_cv_func_openpty+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 cf_save_LIBS="$LIBS"
19721 test "$cf_cv_lib_util" = yes && {
19722 cf_add_libs="$LIBS"
19725 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19726 # filter duplicates
19727 for cf_add_1lib in $cf_add_0lib; do
19728 for cf_add_2lib in $cf_add_libs; do
19729 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19734 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19736 LIBS="$cf_add_libs"
19738 for cf_header in pty.h libutil.h util.h
19740 cat >"conftest.$ac_ext" <<_ACEOF
19741 #line 19741 "configure"
19742 #include "confdefs.h"
19744 #include <$cf_header>
19750 int x = openpty((int *)0, (int *)0, (char *)0,
19751 (struct termios *)0, (struct winsize *)0);
19757 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19758 if { (eval echo "$as_me:19758: \"$ac_link\"") >&5
19759 (eval $ac_link) 2>&5
19761 echo "$as_me:19761: \$? = $ac_status" >&5
19762 (exit "$ac_status"); } &&
19763 { ac_try='test -s "conftest$ac_exeext"'
19764 { (eval echo "$as_me:19764: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19767 echo "$as_me:19767: \$? = $ac_status" >&5
19768 (exit "$ac_status"); }; }; then
19770 cf_cv_func_openpty=$cf_header
19774 echo "$as_me: failed program was:" >&5
19775 cat "conftest.$ac_ext" >&5
19777 cf_cv_func_openpty=no
19780 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19782 LIBS="$cf_save_LIBS"
19785 echo "$as_me:19785: result: $cf_cv_func_openpty" >&5
19786 echo "${ECHO_T}$cf_cv_func_openpty" >&6
19788 if test "$cf_cv_func_openpty" != no ; then
19790 cat >>confdefs.h <<EOF
19791 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
19794 cat >>confdefs.h <<\EOF
19795 #define USE_XTERM_PTY 1
19798 if test "x$cf_cv_lib_util" = xyes ; then
19800 cf_add_libs="$TEST_LIBS"
19803 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19804 # filter duplicates
19805 for cf_add_1lib in $cf_add_0lib; do
19806 for cf_add_2lib in $cf_add_libs; do
19807 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19812 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19814 TEST_LIBS="$cf_add_libs"
19819 echo "$as_me:19819: checking for function curses_version" >&5
19820 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
19821 if test "${cf_cv_func_curses_version+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 if test "$cross_compiling" = yes; then
19826 cf_cv_func_curses_version=unknown
19828 cat >"conftest.$ac_ext" <<_ACEOF
19829 #line 19829 "configure"
19830 #include "confdefs.h"
19832 #include <${cf_cv_ncurses_header:-curses.h}>
19836 sprintf(temp, "%s\\n", curses_version());
19837 ${cf_cv_main_return:-return}(0);
19841 rm -f "conftest$ac_exeext"
19842 if { (eval echo "$as_me:19842: \"$ac_link\"") >&5
19843 (eval $ac_link) 2>&5
19845 echo "$as_me:19845: \$? = $ac_status" >&5
19846 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
19847 { (eval echo "$as_me:19847: \"$ac_try\"") >&5
19848 (eval $ac_try) 2>&5
19850 echo "$as_me:19850: \$? = $ac_status" >&5
19851 (exit "$ac_status"); }; }; then
19852 cf_cv_func_curses_version=yes
19855 echo "$as_me: program exited with status $ac_status" >&5
19856 echo "$as_me: failed program was:" >&5
19857 cat "conftest.$ac_ext" >&5
19858 cf_cv_func_curses_version=no
19861 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
19865 echo "$as_me:19865: result: $cf_cv_func_curses_version" >&5
19866 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
19867 test "$cf_cv_func_curses_version" = yes &&
19868 cat >>confdefs.h <<\EOF
19869 #define HAVE_CURSES_VERSION 1
19872 echo "$as_me:19872: checking for alternate character set array" >&5
19873 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
19874 if test "${cf_cv_curses_acs_map+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 cf_cv_curses_acs_map=unknown
19879 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
19881 cat >"conftest.$ac_ext" <<_ACEOF
19882 #line 19882 "configure"
19883 #include "confdefs.h"
19885 #include <${cf_cv_ncurses_header:-curses.h}>
19891 ${name}['k'] = ACS_PLUS
19897 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19898 if { (eval echo "$as_me:19898: \"$ac_link\"") >&5
19899 (eval $ac_link) 2>&5
19901 echo "$as_me:19901: \$? = $ac_status" >&5
19902 (exit "$ac_status"); } &&
19903 { ac_try='test -s "conftest$ac_exeext"'
19904 { (eval echo "$as_me:19904: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19907 echo "$as_me:19907: \$? = $ac_status" >&5
19908 (exit "$ac_status"); }; }; then
19909 cf_cv_curses_acs_map=$name; break
19911 echo "$as_me: failed program was:" >&5
19912 cat "conftest.$ac_ext" >&5
19914 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19918 echo "$as_me:19918: result: $cf_cv_curses_acs_map" >&5
19919 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
19921 test "$cf_cv_curses_acs_map" != unknown &&
19922 cat >>confdefs.h <<EOF
19923 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
19926 if test "$cf_enable_widec" = yes; then
19928 echo "$as_me:19928: checking for wide alternate character set array" >&5
19929 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
19930 if test "${cf_cv_curses_wacs_map+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 cf_cv_curses_wacs_map=unknown
19935 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
19937 cat >"conftest.$ac_ext" <<_ACEOF
19938 #line 19938 "configure"
19939 #include "confdefs.h"
19941 #ifndef _XOPEN_SOURCE_EXTENDED
19942 #define _XOPEN_SOURCE_EXTENDED
19944 #include <${cf_cv_ncurses_header:-curses.h}>
19948 void *foo = &(${name}['k']); (void)foo
19953 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19954 if { (eval echo "$as_me:19954: \"$ac_link\"") >&5
19955 (eval $ac_link) 2>&5
19957 echo "$as_me:19957: \$? = $ac_status" >&5
19958 (exit "$ac_status"); } &&
19959 { ac_try='test -s "conftest$ac_exeext"'
19960 { (eval echo "$as_me:19960: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19963 echo "$as_me:19963: \$? = $ac_status" >&5
19964 (exit "$ac_status"); }; }; then
19965 cf_cv_curses_wacs_map=$name
19968 echo "$as_me: failed program was:" >&5
19969 cat "conftest.$ac_ext" >&5
19971 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19974 echo "$as_me:19974: result: $cf_cv_curses_wacs_map" >&5
19975 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
19977 test "$cf_cv_curses_wacs_map" != unknown &&
19978 cat >>confdefs.h <<EOF
19979 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
19982 echo "$as_me:19982: checking for wide alternate character constants" >&5
19983 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
19984 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 cf_cv_curses_wacs_symbols=no
19989 if test "$cf_cv_curses_wacs_map" != unknown
19991 cat >"conftest.$ac_ext" <<_ACEOF
19992 #line 19992 "configure"
19993 #include "confdefs.h"
19995 #ifndef _XOPEN_SOURCE_EXTENDED
19996 #define _XOPEN_SOURCE_EXTENDED
19998 #include <${cf_cv_ncurses_header:-curses.h}>
20002 cchar_t *foo = WACS_PLUS;
20003 ${cf_cv_curses_wacs_map}['k'] = *WACS_PLUS; (void)foo
20008 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20009 if { (eval echo "$as_me:20009: \"$ac_link\"") >&5
20010 (eval $ac_link) 2>&5
20012 echo "$as_me:20012: \$? = $ac_status" >&5
20013 (exit "$ac_status"); } &&
20014 { ac_try='test -s "conftest$ac_exeext"'
20015 { (eval echo "$as_me:20015: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:20018: \$? = $ac_status" >&5
20019 (exit "$ac_status"); }; }; then
20020 cf_cv_curses_wacs_symbols=yes
20022 echo "$as_me: failed program was:" >&5
20023 cat "conftest.$ac_ext" >&5
20025 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20027 cat >"conftest.$ac_ext" <<_ACEOF
20028 #line 20028 "configure"
20029 #include "confdefs.h"
20031 #ifndef _XOPEN_SOURCE_EXTENDED
20032 #define _XOPEN_SOURCE_EXTENDED
20034 #include <${cf_cv_ncurses_header:-curses.h}>
20038 cchar_t *foo = WACS_PLUS; (void)foo
20043 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20044 if { (eval echo "$as_me:20044: \"$ac_link\"") >&5
20045 (eval $ac_link) 2>&5
20047 echo "$as_me:20047: \$? = $ac_status" >&5
20048 (exit "$ac_status"); } &&
20049 { ac_try='test -s "conftest$ac_exeext"'
20050 { (eval echo "$as_me:20050: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:20053: \$? = $ac_status" >&5
20054 (exit "$ac_status"); }; }; then
20055 cf_cv_curses_wacs_symbols=yes
20057 echo "$as_me: failed program was:" >&5
20058 cat "conftest.$ac_ext" >&5
20060 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20064 echo "$as_me:20064: result: $cf_cv_curses_wacs_symbols" >&5
20065 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
20067 test "$cf_cv_curses_wacs_symbols" != no &&
20068 cat >>confdefs.h <<\EOF
20069 #define CURSES_WACS_SYMBOLS 1
20074 echo "$as_me:20074: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20075 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20076 cat >"conftest.$ac_ext" <<_ACEOF
20077 #line 20077 "configure"
20078 #include "confdefs.h"
20080 #ifndef _XOPEN_SOURCE_EXTENDED
20081 #define _XOPEN_SOURCE_EXTENDED
20083 #include <${cf_cv_ncurses_header:-curses.h}>
20094 rm -f "conftest.$ac_objext"
20095 if { (eval echo "$as_me:20095: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>&5
20098 echo "$as_me:20098: \$? = $ac_status" >&5
20099 (exit "$ac_status"); } &&
20100 { ac_try='test -s "conftest.$ac_objext"'
20101 { (eval echo "$as_me:20101: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20104 echo "$as_me:20104: \$? = $ac_status" >&5
20105 (exit "$ac_status"); }; }; then
20108 echo "$as_me: failed program was:" >&5
20109 cat "conftest.$ac_ext" >&5
20112 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20113 echo "$as_me:20113: result: $cf_result" >&5
20114 echo "${ECHO_T}$cf_result" >&6
20115 if test "$cf_result" = yes ; then
20117 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20119 cat >>confdefs.h <<EOF
20120 #define $cf_result 1
20125 cat >>confdefs.h <<EOF
20126 #define attr_t long
20131 if test "$cf_enable_widec" = yes; then
20133 # This is needed on Tru64 5.0 to declare mbstate_t
20134 echo "$as_me:20134: checking if we must include wchar.h to declare mbstate_t" >&5
20135 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
20136 if test "${cf_cv_mbstate_t+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 cat >"conftest.$ac_ext" <<_ACEOF
20141 #line 20141 "configure"
20142 #include "confdefs.h"
20144 #include <stdlib.h>
20145 #include <stdarg.h>
20147 #ifdef HAVE_LIBUTF8_H
20148 #include <libutf8.h>
20158 rm -f "conftest.$ac_objext"
20159 if { (eval echo "$as_me:20159: \"$ac_compile\"") >&5
20160 (eval $ac_compile) 2>&5
20162 echo "$as_me:20162: \$? = $ac_status" >&5
20163 (exit "$ac_status"); } &&
20164 { ac_try='test -s "conftest.$ac_objext"'
20165 { (eval echo "$as_me:20165: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20168 echo "$as_me:20168: \$? = $ac_status" >&5
20169 (exit "$ac_status"); }; }; then
20172 echo "$as_me: failed program was:" >&5
20173 cat "conftest.$ac_ext" >&5
20174 cat >"conftest.$ac_ext" <<_ACEOF
20175 #line 20175 "configure"
20176 #include "confdefs.h"
20178 #include <stdlib.h>
20179 #include <stdarg.h>
20182 #ifdef HAVE_LIBUTF8_H
20183 #include <libutf8.h>
20193 rm -f "conftest.$ac_objext"
20194 if { (eval echo "$as_me:20194: \"$ac_compile\"") >&5
20195 (eval $ac_compile) 2>&5
20197 echo "$as_me:20197: \$? = $ac_status" >&5
20198 (exit "$ac_status"); } &&
20199 { ac_try='test -s "conftest.$ac_objext"'
20200 { (eval echo "$as_me:20200: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 echo "$as_me:20203: \$? = $ac_status" >&5
20204 (exit "$ac_status"); }; }; then
20205 cf_cv_mbstate_t=yes
20207 echo "$as_me: failed program was:" >&5
20208 cat "conftest.$ac_ext" >&5
20209 cf_cv_mbstate_t=unknown
20211 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20213 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20215 echo "$as_me:20215: result: $cf_cv_mbstate_t" >&5
20216 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
20218 if test "$cf_cv_mbstate_t" = yes ; then
20220 cat >>confdefs.h <<\EOF
20221 #define NEED_WCHAR_H 1
20227 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
20228 if test "$cf_cv_mbstate_t" = unknown ; then
20229 NCURSES_MBSTATE_T=1
20232 # if we find mbstate_t in either place, use substitution to provide a fallback.
20233 if test "$cf_cv_mbstate_t" != unknown ; then
20234 NCURSES_OK_MBSTATE_T=1
20237 # This is needed on Tru64 5.0 to declare wchar_t
20238 echo "$as_me:20238: checking if we must include wchar.h to declare wchar_t" >&5
20239 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
20240 if test "${cf_cv_wchar_t+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 cat >"conftest.$ac_ext" <<_ACEOF
20245 #line 20245 "configure"
20246 #include "confdefs.h"
20248 #include <stdlib.h>
20249 #include <stdarg.h>
20251 #ifdef HAVE_LIBUTF8_H
20252 #include <libutf8.h>
20262 rm -f "conftest.$ac_objext"
20263 if { (eval echo "$as_me:20263: \"$ac_compile\"") >&5
20264 (eval $ac_compile) 2>&5
20266 echo "$as_me:20266: \$? = $ac_status" >&5
20267 (exit "$ac_status"); } &&
20268 { ac_try='test -s "conftest.$ac_objext"'
20269 { (eval echo "$as_me:20269: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20272 echo "$as_me:20272: \$? = $ac_status" >&5
20273 (exit "$ac_status"); }; }; then
20276 echo "$as_me: failed program was:" >&5
20277 cat "conftest.$ac_ext" >&5
20278 cat >"conftest.$ac_ext" <<_ACEOF
20279 #line 20279 "configure"
20280 #include "confdefs.h"
20282 #include <stdlib.h>
20283 #include <stdarg.h>
20286 #ifdef HAVE_LIBUTF8_H
20287 #include <libutf8.h>
20297 rm -f "conftest.$ac_objext"
20298 if { (eval echo "$as_me:20298: \"$ac_compile\"") >&5
20299 (eval $ac_compile) 2>&5
20301 echo "$as_me:20301: \$? = $ac_status" >&5
20302 (exit "$ac_status"); } &&
20303 { ac_try='test -s "conftest.$ac_objext"'
20304 { (eval echo "$as_me:20304: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:20307: \$? = $ac_status" >&5
20308 (exit "$ac_status"); }; }; then
20311 echo "$as_me: failed program was:" >&5
20312 cat "conftest.$ac_ext" >&5
20313 cf_cv_wchar_t=unknown
20315 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20317 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20319 echo "$as_me:20319: result: $cf_cv_wchar_t" >&5
20320 echo "${ECHO_T}$cf_cv_wchar_t" >&6
20322 if test "$cf_cv_wchar_t" = yes ; then
20324 cat >>confdefs.h <<\EOF
20325 #define NEED_WCHAR_H 1
20331 # if we do not find wchar_t in either place, use substitution to provide a fallback.
20332 if test "$cf_cv_wchar_t" = unknown ; then
20336 # if we find wchar_t in either place, use substitution to provide a fallback.
20337 if test "$cf_cv_wchar_t" != unknown ; then
20338 NCURSES_OK_WCHAR_T=1
20341 # This is needed on Tru64 5.0 to declare wint_t
20342 echo "$as_me:20342: checking if we must include wchar.h to declare wint_t" >&5
20343 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
20344 if test "${cf_cv_wint_t+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 cat >"conftest.$ac_ext" <<_ACEOF
20349 #line 20349 "configure"
20350 #include "confdefs.h"
20352 #include <stdlib.h>
20353 #include <stdarg.h>
20355 #ifdef HAVE_LIBUTF8_H
20356 #include <libutf8.h>
20366 rm -f "conftest.$ac_objext"
20367 if { (eval echo "$as_me:20367: \"$ac_compile\"") >&5
20368 (eval $ac_compile) 2>&5
20370 echo "$as_me:20370: \$? = $ac_status" >&5
20371 (exit "$ac_status"); } &&
20372 { ac_try='test -s "conftest.$ac_objext"'
20373 { (eval echo "$as_me:20373: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:20376: \$? = $ac_status" >&5
20377 (exit "$ac_status"); }; }; then
20380 echo "$as_me: failed program was:" >&5
20381 cat "conftest.$ac_ext" >&5
20382 cat >"conftest.$ac_ext" <<_ACEOF
20383 #line 20383 "configure"
20384 #include "confdefs.h"
20386 #include <stdlib.h>
20387 #include <stdarg.h>
20390 #ifdef HAVE_LIBUTF8_H
20391 #include <libutf8.h>
20401 rm -f "conftest.$ac_objext"
20402 if { (eval echo "$as_me:20402: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>&5
20405 echo "$as_me:20405: \$? = $ac_status" >&5
20406 (exit "$ac_status"); } &&
20407 { ac_try='test -s "conftest.$ac_objext"'
20408 { (eval echo "$as_me:20408: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:20411: \$? = $ac_status" >&5
20412 (exit "$ac_status"); }; }; then
20415 echo "$as_me: failed program was:" >&5
20416 cat "conftest.$ac_ext" >&5
20417 cf_cv_wint_t=unknown
20419 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20421 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20423 echo "$as_me:20423: result: $cf_cv_wint_t" >&5
20424 echo "${ECHO_T}$cf_cv_wint_t" >&6
20426 if test "$cf_cv_wint_t" = yes ; then
20428 cat >>confdefs.h <<\EOF
20429 #define NEED_WCHAR_H 1
20435 # if we do not find wint_t in either place, use substitution to provide a fallback.
20436 if test "$cf_cv_wint_t" = unknown ; then
20440 # if we find wint_t in either place, use substitution to provide a fallback.
20441 if test "$cf_cv_wint_t" != unknown ; then
20442 NCURSES_OK_WINT_T=1
20445 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
20447 echo "$as_me:20447: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20448 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20449 cat >"conftest.$ac_ext" <<_ACEOF
20450 #line 20450 "configure"
20451 #include "confdefs.h"
20453 #ifndef _XOPEN_SOURCE_EXTENDED
20454 #define _XOPEN_SOURCE_EXTENDED
20456 #include <${cf_cv_ncurses_header:-curses.h}>
20467 rm -f "conftest.$ac_objext"
20468 if { (eval echo "$as_me:20468: \"$ac_compile\"") >&5
20469 (eval $ac_compile) 2>&5
20471 echo "$as_me:20471: \$? = $ac_status" >&5
20472 (exit "$ac_status"); } &&
20473 { ac_try='test -s "conftest.$ac_objext"'
20474 { (eval echo "$as_me:20474: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20477 echo "$as_me:20477: \$? = $ac_status" >&5
20478 (exit "$ac_status"); }; }; then
20481 echo "$as_me: failed program was:" >&5
20482 cat "conftest.$ac_ext" >&5
20485 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20486 echo "$as_me:20486: result: $cf_result" >&5
20487 echo "${ECHO_T}$cf_result" >&6
20488 if test "$cf_result" = yes ; then
20490 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20492 cat >>confdefs.h <<EOF
20493 #define $cf_result 1
20498 cat >>confdefs.h <<EOF
20499 #define mbstate_t long
20506 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
20508 echo "$as_me:20508: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20509 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20510 cat >"conftest.$ac_ext" <<_ACEOF
20511 #line 20511 "configure"
20512 #include "confdefs.h"
20514 #ifndef _XOPEN_SOURCE_EXTENDED
20515 #define _XOPEN_SOURCE_EXTENDED
20517 #include <${cf_cv_ncurses_header:-curses.h}>
20528 rm -f "conftest.$ac_objext"
20529 if { (eval echo "$as_me:20529: \"$ac_compile\"") >&5
20530 (eval $ac_compile) 2>&5
20532 echo "$as_me:20532: \$? = $ac_status" >&5
20533 (exit "$ac_status"); } &&
20534 { ac_try='test -s "conftest.$ac_objext"'
20535 { (eval echo "$as_me:20535: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20538 echo "$as_me:20538: \$? = $ac_status" >&5
20539 (exit "$ac_status"); }; }; then
20542 echo "$as_me: failed program was:" >&5
20543 cat "conftest.$ac_ext" >&5
20546 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20547 echo "$as_me:20547: result: $cf_result" >&5
20548 echo "${ECHO_T}$cf_result" >&6
20549 if test "$cf_result" = yes ; then
20551 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20553 cat >>confdefs.h <<EOF
20554 #define $cf_result 1
20559 cat >>confdefs.h <<EOF
20560 #define wchar_t long
20567 if test "$NCURSES_OK_WINT_T" = 0 ; then
20569 echo "$as_me:20569: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20570 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20571 cat >"conftest.$ac_ext" <<_ACEOF
20572 #line 20572 "configure"
20573 #include "confdefs.h"
20575 #ifndef _XOPEN_SOURCE_EXTENDED
20576 #define _XOPEN_SOURCE_EXTENDED
20578 #include <${cf_cv_ncurses_header:-curses.h}>
20589 rm -f "conftest.$ac_objext"
20590 if { (eval echo "$as_me:20590: \"$ac_compile\"") >&5
20591 (eval $ac_compile) 2>&5
20593 echo "$as_me:20593: \$? = $ac_status" >&5
20594 (exit "$ac_status"); } &&
20595 { ac_try='test -s "conftest.$ac_objext"'
20596 { (eval echo "$as_me:20596: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:20599: \$? = $ac_status" >&5
20600 (exit "$ac_status"); }; }; then
20603 echo "$as_me: failed program was:" >&5
20604 cat "conftest.$ac_ext" >&5
20607 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20608 echo "$as_me:20608: result: $cf_result" >&5
20609 echo "${ECHO_T}$cf_result" >&6
20610 if test "$cf_result" = yes ; then
20612 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20614 cat >>confdefs.h <<EOF
20615 #define $cf_result 1
20620 cat >>confdefs.h <<EOF
20621 #define wint_t long
20637 echo "$as_me:20637: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
20638 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20640 cat >"conftest.$ac_ext" <<_ACEOF
20641 #line 20641 "configure"
20642 #include "confdefs.h"
20644 #ifdef HAVE_XCURSES
20645 #include <xcurses.h>
20646 char * XCursesProgramName = "test";
20648 #include <${cf_cv_ncurses_header:-curses.h}>
20649 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
20650 #include <ncursesw/term.h>
20651 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
20652 #include <ncurses/term.h>
20653 #elif defined(HAVE_TERM_H)
20662 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
20663 const void *foo = (const void *)($cf_data);
20665 const void *foo = &($cf_data);
20667 fprintf(stderr, "testing linkage of $cf_data:%p\\n", (const void *)foo);
20673 rm -f "conftest.$ac_objext"
20674 if { (eval echo "$as_me:20674: \"$ac_compile\"") >&5
20675 (eval $ac_compile) 2>&5
20677 echo "$as_me:20677: \$? = $ac_status" >&5
20678 (exit "$ac_status"); } &&
20679 { ac_try='test -s "conftest.$ac_objext"'
20680 { (eval echo "$as_me:20680: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20683 echo "$as_me:20683: \$? = $ac_status" >&5
20684 (exit "$ac_status"); }; }; then
20688 echo "$as_me: failed program was:" >&5
20689 cat "conftest.$ac_ext" >&5
20692 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20693 echo "$as_me:20693: result: $cf_result" >&5
20694 echo "${ECHO_T}$cf_result" >&6
20696 if test "$cf_result" = yes ; then
20698 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20700 cat >>confdefs.h <<EOF
20701 #define $cf_result 1
20705 echo "$as_me:20705: checking for data $cf_data in library" >&5
20706 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
20707 # BSD linkers insist on making weak linkage, but resolve at runtime.
20708 if test "$cross_compiling" = yes; then
20711 cat >"conftest.$ac_ext" <<_ACEOF
20712 #line 20712 "configure"
20713 #include "confdefs.h"
20715 #ifdef HAVE_XCURSES
20716 #include <xcurses.h>
20717 char * XCursesProgramName = "test";
20719 #include <${cf_cv_ncurses_header:-curses.h}>
20720 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
20721 #include <ncursesw/term.h>
20722 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
20723 #include <ncurses/term.h>
20724 #elif defined(HAVE_TERM_H)
20729 extern char $cf_data;
20736 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
20737 const void *foo = (const void *)($cf_data);
20739 const void *foo = &($cf_data);
20741 fprintf(stderr, "testing linkage of $cf_data:%p\\n", (const void *)foo);
20743 ${cf_cv_main_return:-return}(foo == 0);
20750 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20751 if { (eval echo "$as_me:20751: \"$ac_link\"") >&5
20752 (eval $ac_link) 2>&5
20754 echo "$as_me:20754: \$? = $ac_status" >&5
20755 (exit "$ac_status"); } &&
20756 { ac_try='test -s "conftest$ac_exeext"'
20757 { (eval echo "$as_me:20757: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20760 echo "$as_me:20760: \$? = $ac_status" >&5
20761 (exit "$ac_status"); }; }; then
20764 echo "$as_me: failed program was:" >&5
20765 cat "conftest.$ac_ext" >&5
20768 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20771 cat >"conftest.$ac_ext" <<_ACEOF
20772 #line 20772 "configure"
20773 #include "confdefs.h"
20775 #ifdef HAVE_XCURSES
20776 #include <xcurses.h>
20777 char * XCursesProgramName = "test";
20779 #include <${cf_cv_ncurses_header:-curses.h}>
20780 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
20781 #include <ncursesw/term.h>
20782 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
20783 #include <ncurses/term.h>
20784 #elif defined(HAVE_TERM_H)
20789 extern char $cf_data;
20793 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
20794 const void *foo = (const void *)($cf_data);
20796 const void *foo = &($cf_data);
20798 fprintf(stderr, "testing linkage of $cf_data:%p\\n", (const void *)foo);
20800 ${cf_cv_main_return:-return}(foo == 0);
20803 rm -f "conftest$ac_exeext"
20804 if { (eval echo "$as_me:20804: \"$ac_link\"") >&5
20805 (eval $ac_link) 2>&5
20807 echo "$as_me:20807: \$? = $ac_status" >&5
20808 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20809 { (eval echo "$as_me:20809: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:20812: \$? = $ac_status" >&5
20813 (exit "$ac_status"); }; }; then
20817 echo "$as_me: program exited with status $ac_status" >&5
20818 echo "$as_me: failed program was:" >&5
20819 cat "conftest.$ac_ext" >&5
20822 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20824 echo "$as_me:20824: result: $cf_result" >&5
20825 echo "${ECHO_T}$cf_result" >&6
20826 if test "$cf_result" = yes ; then
20828 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20830 cat >>confdefs.h <<EOF
20831 #define $cf_result 1
20834 # do not exit loop here, since we prefer system's declarations
20839 if test -n "$with_screen" && test "x$with_screen" = "xpdcurses"
20841 echo "$as_me:20841: checking for X" >&5
20842 echo $ECHO_N "checking for X... $ECHO_C" >&6
20844 # Check whether --with-x or --without-x was given.
20845 if test "${with_x+set}" = set; then
20849 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20850 if test "x$with_x" = xno; then
20851 # The user explicitly disabled X.
20854 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20855 # Both variables are already set.
20858 if test "${ac_cv_have_x+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 # One or both of the vars are not set, and there is no cached value.
20862 ac_x_includes=no ac_x_libraries=no
20863 rm -fr conftest.dir
20864 if mkdir conftest.dir; then
20866 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20867 cat >Imakefile <<'EOF'
20869 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20871 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20873 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
20874 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20875 for ac_extension in a so sl dylib dll; do
20876 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20877 test -f "$ac_im_libdir/libX11.$ac_extension"; then
20878 ac_im_usrlibdir=$ac_im_libdir; break
20881 # Screen out bogus values from the imake configuration. They are
20882 # bogus both because they are the default anyway, and because
20883 # using them would break gcc on systems where it needs fixed includes.
20884 case $ac_im_incroot in
20886 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20888 case $ac_im_usrlibdir in
20889 /usr/lib | /lib) ;;
20890 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20894 rm -fr conftest.dir
20897 # Standard set of common directories for X headers.
20898 # Check X11 before X11Rn because it is often a symlink to the current release.
20915 /usr/local/X11/include
20916 /usr/local/X11R7/include
20917 /usr/local/X11R6/include
20918 /usr/local/X11R5/include
20919 /usr/local/X11R4/include
20921 /usr/local/include/X11
20922 /usr/local/include/X11R7
20923 /usr/local/include/X11R6
20924 /usr/local/include/X11R5
20925 /usr/local/include/X11R4
20929 /usr/XFree86/include/X11
20933 /usr/unsupported/include
20934 /usr/athena/include
20935 /usr/local/x11r5/include
20936 /usr/lpp/Xamples/include
20938 /usr/openwin/include
20939 /usr/openwin/share/include'
20941 if test "$ac_x_includes" = no; then
20942 # Guess where to find include files, by looking for Intrinsic.h.
20943 # First, try using that file with no special directory specified.
20944 cat >"conftest.$ac_ext" <<_ACEOF
20945 #line 20945 "configure"
20946 #include "confdefs.h"
20947 #include <X11/Intrinsic.h>
20949 if { (eval echo "$as_me:20949: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20950 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20952 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:20955: \$? = $ac_status" >&5
20956 (exit "$ac_status"); } >/dev/null; then
20957 if test -s conftest.err; then
20958 ac_cpp_err=$ac_c_preproc_warn_flag
20965 if test -z "$ac_cpp_err"; then
20966 # We can compile using X headers with no special include directory.
20969 echo "$as_me: failed program was:" >&5
20970 cat "conftest.$ac_ext" >&5
20971 for ac_dir in $ac_x_header_dirs; do
20972 if test -r "$ac_dir/X11/Intrinsic.h"; then
20973 ac_x_includes=$ac_dir
20978 rm -f conftest.err "conftest.$ac_ext"
20979 fi # $ac_x_includes = no
20981 if test "$ac_x_libraries" = no; then
20982 # Check for the libraries.
20983 # See if we find them without any special options.
20984 # Don't add to $LIBS permanently.
20987 cat >"conftest.$ac_ext" <<_ACEOF
20988 #line 20988 "configure"
20989 #include "confdefs.h"
20990 #include <X11/Intrinsic.h>
20999 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21000 if { (eval echo "$as_me:21000: \"$ac_link\"") >&5
21001 (eval $ac_link) 2>&5
21003 echo "$as_me:21003: \$? = $ac_status" >&5
21004 (exit "$ac_status"); } &&
21005 { ac_try='test -s "conftest$ac_exeext"'
21006 { (eval echo "$as_me:21006: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:21009: \$? = $ac_status" >&5
21010 (exit "$ac_status"); }; }; then
21012 # We can link X programs with no special library path.
21015 echo "$as_me: failed program was:" >&5
21016 cat "conftest.$ac_ext" >&5
21018 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21020 # Don't even attempt the hair of trying to link an X program!
21021 for ac_extension in a so sl dylib dll; do
21022 if test -r "$ac_dir/libXt.$ac_extension"; then
21023 ac_x_libraries=$ac_dir
21029 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21030 fi # $ac_x_libraries = no
21032 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21033 # Didn't find X anywhere. Cache the known absence of X.
21034 ac_cv_have_x="have_x=no"
21036 # Record where we found X for the cache.
21037 ac_cv_have_x="have_x=yes \
21038 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21043 eval "$ac_cv_have_x"
21046 if test "$have_x" != yes; then
21047 echo "$as_me:21047: result: $have_x" >&5
21048 echo "${ECHO_T}$have_x" >&6
21051 # If each of the values was on the command line, it overrides each guess.
21052 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21053 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21054 # Update the cache value to reflect the command line values.
21055 ac_cv_have_x="have_x=yes \
21056 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21057 echo "$as_me:21057: result: libraries $x_libraries, headers $x_includes" >&5
21058 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21061 if test "$no_x" = yes; then
21062 # Not all programs may use this symbol, but it does not hurt to define it.
21064 cat >>confdefs.h <<\EOF
21065 #define X_DISPLAY_MISSING 1
21073 if test -n "$x_includes"; then
21074 X_CFLAGS="$X_CFLAGS -I$x_includes"
21077 # It would also be nice to do this for all -L options, not just this one.
21078 if test -n "$x_libraries"; then
21079 X_LIBS="$X_LIBS -L$x_libraries"
21080 # For Solaris; some versions of Sun CC require a space after -R and
21081 # others require no space. Words are not sufficient . . . .
21082 case `(uname -sr) 2>/dev/null` in
21084 echo "$as_me:21084: checking whether -R must be followed by a space" >&5
21085 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21086 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21087 cat >"conftest.$ac_ext" <<_ACEOF
21088 #line 21088 "configure"
21089 #include "confdefs.h"
21099 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21100 if { (eval echo "$as_me:21100: \"$ac_link\"") >&5
21101 (eval $ac_link) 2>&5
21103 echo "$as_me:21103: \$? = $ac_status" >&5
21104 (exit "$ac_status"); } &&
21105 { ac_try='test -s "conftest$ac_exeext"'
21106 { (eval echo "$as_me:21106: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21109 echo "$as_me:21109: \$? = $ac_status" >&5
21110 (exit "$ac_status"); }; }; then
21113 echo "$as_me: failed program was:" >&5
21114 cat "conftest.$ac_ext" >&5
21117 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21118 if test $ac_R_nospace = yes; then
21119 echo "$as_me:21119: result: no" >&5
21120 echo "${ECHO_T}no" >&6
21121 X_LIBS="$X_LIBS -R$x_libraries"
21123 LIBS="$ac_xsave_LIBS -R $x_libraries"
21124 cat >"conftest.$ac_ext" <<_ACEOF
21125 #line 21125 "configure"
21126 #include "confdefs.h"
21136 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21137 if { (eval echo "$as_me:21137: \"$ac_link\"") >&5
21138 (eval $ac_link) 2>&5
21140 echo "$as_me:21140: \$? = $ac_status" >&5
21141 (exit "$ac_status"); } &&
21142 { ac_try='test -s "conftest$ac_exeext"'
21143 { (eval echo "$as_me:21143: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21146 echo "$as_me:21146: \$? = $ac_status" >&5
21147 (exit "$ac_status"); }; }; then
21150 echo "$as_me: failed program was:" >&5
21151 cat "conftest.$ac_ext" >&5
21154 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21155 if test $ac_R_space = yes; then
21156 echo "$as_me:21156: result: yes" >&5
21157 echo "${ECHO_T}yes" >&6
21158 X_LIBS="$X_LIBS -R $x_libraries"
21160 echo "$as_me:21160: result: neither works" >&5
21161 echo "${ECHO_T}neither works" >&6
21164 LIBS=$ac_xsave_LIBS
21168 # Check for system-dependent libraries X programs must link with.
21169 # Do this before checking for the system-independent R6 libraries
21170 # (-lICE), since we may need -lsocket or whatever for X linking.
21172 if test "$ISC" = yes; then
21173 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21175 # Martyn Johnson says this is needed for Ultrix, if the X
21176 # libraries were built with DECnet support. And Karl Berry says
21177 # the Alpha needs dnet_stub (dnet does not exist).
21178 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21179 cat >"conftest.$ac_ext" <<_ACEOF
21180 #line 21180 "configure"
21181 #include "confdefs.h"
21183 /* Override any gcc2 internal prototype to avoid an error. */
21187 /* We use char because int might match the return type of a gcc2
21188 builtin and then its argument prototype would still apply. */
21189 char XOpenDisplay ();
21198 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21199 if { (eval echo "$as_me:21199: \"$ac_link\"") >&5
21200 (eval $ac_link) 2>&5
21202 echo "$as_me:21202: \$? = $ac_status" >&5
21203 (exit "$ac_status"); } &&
21204 { ac_try='test -s "conftest$ac_exeext"'
21205 { (eval echo "$as_me:21205: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21208 echo "$as_me:21208: \$? = $ac_status" >&5
21209 (exit "$ac_status"); }; }; then
21212 echo "$as_me: failed program was:" >&5
21213 cat "conftest.$ac_ext" >&5
21214 echo "$as_me:21214: checking for dnet_ntoa in -ldnet" >&5
21215 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21216 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 ac_check_lib_save_LIBS=$LIBS
21220 LIBS="-ldnet $LIBS"
21221 cat >"conftest.$ac_ext" <<_ACEOF
21222 #line 21222 "configure"
21223 #include "confdefs.h"
21225 /* Override any gcc2 internal prototype to avoid an error. */
21229 /* We use char because int might match the return type of a gcc2
21230 builtin and then its argument prototype would still apply. */
21240 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21241 if { (eval echo "$as_me:21241: \"$ac_link\"") >&5
21242 (eval $ac_link) 2>&5
21244 echo "$as_me:21244: \$? = $ac_status" >&5
21245 (exit "$ac_status"); } &&
21246 { ac_try='test -s "conftest$ac_exeext"'
21247 { (eval echo "$as_me:21247: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21250 echo "$as_me:21250: \$? = $ac_status" >&5
21251 (exit "$ac_status"); }; }; then
21252 ac_cv_lib_dnet_dnet_ntoa=yes
21254 echo "$as_me: failed program was:" >&5
21255 cat "conftest.$ac_ext" >&5
21256 ac_cv_lib_dnet_dnet_ntoa=no
21258 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21259 LIBS=$ac_check_lib_save_LIBS
21261 echo "$as_me:21261: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21262 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21263 if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
21264 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21267 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21268 echo "$as_me:21268: checking for dnet_ntoa in -ldnet_stub" >&5
21269 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21270 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 ac_check_lib_save_LIBS=$LIBS
21274 LIBS="-ldnet_stub $LIBS"
21275 cat >"conftest.$ac_ext" <<_ACEOF
21276 #line 21276 "configure"
21277 #include "confdefs.h"
21279 /* Override any gcc2 internal prototype to avoid an error. */
21283 /* We use char because int might match the return type of a gcc2
21284 builtin and then its argument prototype would still apply. */
21294 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21295 if { (eval echo "$as_me:21295: \"$ac_link\"") >&5
21296 (eval $ac_link) 2>&5
21298 echo "$as_me:21298: \$? = $ac_status" >&5
21299 (exit "$ac_status"); } &&
21300 { ac_try='test -s "conftest$ac_exeext"'
21301 { (eval echo "$as_me:21301: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21304 echo "$as_me:21304: \$? = $ac_status" >&5
21305 (exit "$ac_status"); }; }; then
21306 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21308 echo "$as_me: failed program was:" >&5
21309 cat "conftest.$ac_ext" >&5
21310 ac_cv_lib_dnet_stub_dnet_ntoa=no
21312 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21313 LIBS=$ac_check_lib_save_LIBS
21315 echo "$as_me:21315: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21316 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21317 if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
21318 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21323 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21324 LIBS="$ac_xsave_LIBS"
21326 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21327 # to get the SysV transport functions.
21328 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21330 # The nsl library prevents programs from opening the X display
21331 # on Irix 5.2, according to T.E. Dickey.
21332 # The functions gethostbyname, getservbyname, and inet_addr are
21333 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21334 echo "$as_me:21334: checking for gethostbyname" >&5
21335 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21336 if test "${ac_cv_func_gethostbyname+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 cat >"conftest.$ac_ext" <<_ACEOF
21340 #line 21340 "configure"
21341 #include "confdefs.h"
21342 #define gethostbyname autoconf_temporary
21343 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21344 #undef gethostbyname
21350 /* We use char because int might match the return type of a gcc2
21351 builtin and then its argument prototype would still apply. */
21352 char gethostbyname (void);
21358 /* The GNU C library defines stubs for functions which it implements
21359 to always fail with ENOSYS. Some functions are actually named
21360 something starting with __ and the normal name is an alias. */
21361 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21362 #error found stub for gethostbyname
21365 return gethostbyname ();
21370 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21371 if { (eval echo "$as_me:21371: \"$ac_link\"") >&5
21372 (eval $ac_link) 2>&5
21374 echo "$as_me:21374: \$? = $ac_status" >&5
21375 (exit "$ac_status"); } &&
21376 { ac_try='test -s "conftest$ac_exeext"'
21377 { (eval echo "$as_me:21377: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21380 echo "$as_me:21380: \$? = $ac_status" >&5
21381 (exit "$ac_status"); }; }; then
21382 ac_cv_func_gethostbyname=yes
21384 echo "$as_me: failed program was:" >&5
21385 cat "conftest.$ac_ext" >&5
21386 ac_cv_func_gethostbyname=no
21388 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21390 echo "$as_me:21390: result: $ac_cv_func_gethostbyname" >&5
21391 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21393 if test $ac_cv_func_gethostbyname = no; then
21394 echo "$as_me:21394: checking for gethostbyname in -lnsl" >&5
21395 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21396 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 ac_check_lib_save_LIBS=$LIBS
21401 cat >"conftest.$ac_ext" <<_ACEOF
21402 #line 21402 "configure"
21403 #include "confdefs.h"
21405 /* Override any gcc2 internal prototype to avoid an error. */
21409 /* We use char because int might match the return type of a gcc2
21410 builtin and then its argument prototype would still apply. */
21411 char gethostbyname ();
21420 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21421 if { (eval echo "$as_me:21421: \"$ac_link\"") >&5
21422 (eval $ac_link) 2>&5
21424 echo "$as_me:21424: \$? = $ac_status" >&5
21425 (exit "$ac_status"); } &&
21426 { ac_try='test -s "conftest$ac_exeext"'
21427 { (eval echo "$as_me:21427: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21430 echo "$as_me:21430: \$? = $ac_status" >&5
21431 (exit "$ac_status"); }; }; then
21432 ac_cv_lib_nsl_gethostbyname=yes
21434 echo "$as_me: failed program was:" >&5
21435 cat "conftest.$ac_ext" >&5
21436 ac_cv_lib_nsl_gethostbyname=no
21438 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21439 LIBS=$ac_check_lib_save_LIBS
21441 echo "$as_me:21441: result: $ac_cv_lib_nsl_gethostbyname" >&5
21442 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21443 if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
21444 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21447 if test $ac_cv_lib_nsl_gethostbyname = no; then
21448 echo "$as_me:21448: checking for gethostbyname in -lbsd" >&5
21449 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21450 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 ac_check_lib_save_LIBS=$LIBS
21455 cat >"conftest.$ac_ext" <<_ACEOF
21456 #line 21456 "configure"
21457 #include "confdefs.h"
21459 /* Override any gcc2 internal prototype to avoid an error. */
21463 /* We use char because int might match the return type of a gcc2
21464 builtin and then its argument prototype would still apply. */
21465 char gethostbyname ();
21474 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21475 if { (eval echo "$as_me:21475: \"$ac_link\"") >&5
21476 (eval $ac_link) 2>&5
21478 echo "$as_me:21478: \$? = $ac_status" >&5
21479 (exit "$ac_status"); } &&
21480 { ac_try='test -s "conftest$ac_exeext"'
21481 { (eval echo "$as_me:21481: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:21484: \$? = $ac_status" >&5
21485 (exit "$ac_status"); }; }; then
21486 ac_cv_lib_bsd_gethostbyname=yes
21488 echo "$as_me: failed program was:" >&5
21489 cat "conftest.$ac_ext" >&5
21490 ac_cv_lib_bsd_gethostbyname=no
21492 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21493 LIBS=$ac_check_lib_save_LIBS
21495 echo "$as_me:21495: result: $ac_cv_lib_bsd_gethostbyname" >&5
21496 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21497 if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
21498 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21504 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21505 # socket/setsockopt and other routines are undefined under SCO ODT
21506 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
21507 # on later versions), says Simon Leinen: it contains gethostby*
21508 # variants that don't use the nameserver (or something). -lsocket
21509 # must be given before -lnsl if both are needed. We assume that
21510 # if connect needs -lnsl, so does gethostbyname.
21511 echo "$as_me:21511: checking for connect" >&5
21512 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21513 if test "${ac_cv_func_connect+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 cat >"conftest.$ac_ext" <<_ACEOF
21517 #line 21517 "configure"
21518 #include "confdefs.h"
21519 #define connect autoconf_temporary
21520 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21527 /* We use char because int might match the return type of a gcc2
21528 builtin and then its argument prototype would still apply. */
21529 char connect (void);
21535 /* The GNU C library defines stubs for functions which it implements
21536 to always fail with ENOSYS. Some functions are actually named
21537 something starting with __ and the normal name is an alias. */
21538 #if defined (__stub_connect) || defined (__stub___connect)
21539 #error found stub for connect
21547 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21548 if { (eval echo "$as_me:21548: \"$ac_link\"") >&5
21549 (eval $ac_link) 2>&5
21551 echo "$as_me:21551: \$? = $ac_status" >&5
21552 (exit "$ac_status"); } &&
21553 { ac_try='test -s "conftest$ac_exeext"'
21554 { (eval echo "$as_me:21554: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21557 echo "$as_me:21557: \$? = $ac_status" >&5
21558 (exit "$ac_status"); }; }; then
21559 ac_cv_func_connect=yes
21561 echo "$as_me: failed program was:" >&5
21562 cat "conftest.$ac_ext" >&5
21563 ac_cv_func_connect=no
21565 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21567 echo "$as_me:21567: result: $ac_cv_func_connect" >&5
21568 echo "${ECHO_T}$ac_cv_func_connect" >&6
21570 if test $ac_cv_func_connect = no; then
21571 echo "$as_me:21571: checking for connect in -lsocket" >&5
21572 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21573 if test "${ac_cv_lib_socket_connect+set}" = set; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 ac_check_lib_save_LIBS=$LIBS
21577 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21578 cat >"conftest.$ac_ext" <<_ACEOF
21579 #line 21579 "configure"
21580 #include "confdefs.h"
21582 /* Override any gcc2 internal prototype to avoid an error. */
21586 /* We use char because int might match the return type of a gcc2
21587 builtin and then its argument prototype would still apply. */
21597 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21598 if { (eval echo "$as_me:21598: \"$ac_link\"") >&5
21599 (eval $ac_link) 2>&5
21601 echo "$as_me:21601: \$? = $ac_status" >&5
21602 (exit "$ac_status"); } &&
21603 { ac_try='test -s "conftest$ac_exeext"'
21604 { (eval echo "$as_me:21604: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21607 echo "$as_me:21607: \$? = $ac_status" >&5
21608 (exit "$ac_status"); }; }; then
21609 ac_cv_lib_socket_connect=yes
21611 echo "$as_me: failed program was:" >&5
21612 cat "conftest.$ac_ext" >&5
21613 ac_cv_lib_socket_connect=no
21615 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21616 LIBS=$ac_check_lib_save_LIBS
21618 echo "$as_me:21618: result: $ac_cv_lib_socket_connect" >&5
21619 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21620 if test "$ac_cv_lib_socket_connect" = yes; then
21621 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21626 # Guillermo Gomez says -lposix is necessary on A/UX.
21627 echo "$as_me:21627: checking for remove" >&5
21628 echo $ECHO_N "checking for remove... $ECHO_C" >&6
21629 if test "${ac_cv_func_remove+set}" = set; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 cat >"conftest.$ac_ext" <<_ACEOF
21633 #line 21633 "configure"
21634 #include "confdefs.h"
21635 #define remove autoconf_temporary
21636 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21643 /* We use char because int might match the return type of a gcc2
21644 builtin and then its argument prototype would still apply. */
21645 char remove (void);
21651 /* The GNU C library defines stubs for functions which it implements
21652 to always fail with ENOSYS. Some functions are actually named
21653 something starting with __ and the normal name is an alias. */
21654 #if defined (__stub_remove) || defined (__stub___remove)
21655 #error found stub for remove
21663 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21664 if { (eval echo "$as_me:21664: \"$ac_link\"") >&5
21665 (eval $ac_link) 2>&5
21667 echo "$as_me:21667: \$? = $ac_status" >&5
21668 (exit "$ac_status"); } &&
21669 { ac_try='test -s "conftest$ac_exeext"'
21670 { (eval echo "$as_me:21670: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21673 echo "$as_me:21673: \$? = $ac_status" >&5
21674 (exit "$ac_status"); }; }; then
21675 ac_cv_func_remove=yes
21677 echo "$as_me: failed program was:" >&5
21678 cat "conftest.$ac_ext" >&5
21679 ac_cv_func_remove=no
21681 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21683 echo "$as_me:21683: result: $ac_cv_func_remove" >&5
21684 echo "${ECHO_T}$ac_cv_func_remove" >&6
21686 if test $ac_cv_func_remove = no; then
21687 echo "$as_me:21687: checking for remove in -lposix" >&5
21688 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21689 if test "${ac_cv_lib_posix_remove+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 ac_check_lib_save_LIBS=$LIBS
21693 LIBS="-lposix $LIBS"
21694 cat >"conftest.$ac_ext" <<_ACEOF
21695 #line 21695 "configure"
21696 #include "confdefs.h"
21698 /* Override any gcc2 internal prototype to avoid an error. */
21702 /* We use char because int might match the return type of a gcc2
21703 builtin and then its argument prototype would still apply. */
21713 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21714 if { (eval echo "$as_me:21714: \"$ac_link\"") >&5
21715 (eval $ac_link) 2>&5
21717 echo "$as_me:21717: \$? = $ac_status" >&5
21718 (exit "$ac_status"); } &&
21719 { ac_try='test -s "conftest$ac_exeext"'
21720 { (eval echo "$as_me:21720: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:21723: \$? = $ac_status" >&5
21724 (exit "$ac_status"); }; }; then
21725 ac_cv_lib_posix_remove=yes
21727 echo "$as_me: failed program was:" >&5
21728 cat "conftest.$ac_ext" >&5
21729 ac_cv_lib_posix_remove=no
21731 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21732 LIBS=$ac_check_lib_save_LIBS
21734 echo "$as_me:21734: result: $ac_cv_lib_posix_remove" >&5
21735 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21736 if test "$ac_cv_lib_posix_remove" = yes; then
21737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21743 echo "$as_me:21743: checking for shmat" >&5
21744 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21745 if test "${ac_cv_func_shmat+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 cat >"conftest.$ac_ext" <<_ACEOF
21749 #line 21749 "configure"
21750 #include "confdefs.h"
21751 #define shmat autoconf_temporary
21752 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21759 /* We use char because int might match the return type of a gcc2
21760 builtin and then its argument prototype would still apply. */
21767 /* The GNU C library defines stubs for functions which it implements
21768 to always fail with ENOSYS. Some functions are actually named
21769 something starting with __ and the normal name is an alias. */
21770 #if defined (__stub_shmat) || defined (__stub___shmat)
21771 #error found stub for shmat
21779 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21780 if { (eval echo "$as_me:21780: \"$ac_link\"") >&5
21781 (eval $ac_link) 2>&5
21783 echo "$as_me:21783: \$? = $ac_status" >&5
21784 (exit "$ac_status"); } &&
21785 { ac_try='test -s "conftest$ac_exeext"'
21786 { (eval echo "$as_me:21786: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21789 echo "$as_me:21789: \$? = $ac_status" >&5
21790 (exit "$ac_status"); }; }; then
21791 ac_cv_func_shmat=yes
21793 echo "$as_me: failed program was:" >&5
21794 cat "conftest.$ac_ext" >&5
21795 ac_cv_func_shmat=no
21797 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21799 echo "$as_me:21799: result: $ac_cv_func_shmat" >&5
21800 echo "${ECHO_T}$ac_cv_func_shmat" >&6
21802 if test $ac_cv_func_shmat = no; then
21803 echo "$as_me:21803: checking for shmat in -lipc" >&5
21804 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21805 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 ac_check_lib_save_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. */
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_ipc_shmat=yes
21843 echo "$as_me: failed program was:" >&5
21844 cat "conftest.$ac_ext" >&5
21845 ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
21851 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21852 if test "$ac_cv_lib_ipc_shmat" = yes; then
21853 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21859 # Check for libraries that X11R6 Xt/Xaw programs need.
21860 ac_save_LDFLAGS=$LDFLAGS
21861 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21862 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21863 # check for ICE first), but we must link in the order -lSM -lICE or
21864 # we get undefined symbols. So assume we have SM if we have ICE.
21865 # These have to be linked with before -lX11, unlike the other
21866 # libraries we check for below, so use a different variable.
21867 # John Interrante, Karl Berry
21868 echo "$as_me:21868: checking for IceConnectionNumber in -lICE" >&5
21869 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21870 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 ac_check_lib_save_LIBS=$LIBS
21874 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21875 cat >"conftest.$ac_ext" <<_ACEOF
21876 #line 21876 "configure"
21877 #include "confdefs.h"
21879 /* Override any gcc2 internal prototype to avoid an error. */
21883 /* We use char because int might match the return type of a gcc2
21884 builtin and then its argument prototype would still apply. */
21885 char IceConnectionNumber ();
21889 IceConnectionNumber ();
21894 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21895 if { (eval echo "$as_me:21895: \"$ac_link\"") >&5
21896 (eval $ac_link) 2>&5
21898 echo "$as_me:21898: \$? = $ac_status" >&5
21899 (exit "$ac_status"); } &&
21900 { ac_try='test -s "conftest$ac_exeext"'
21901 { (eval echo "$as_me:21901: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21904 echo "$as_me:21904: \$? = $ac_status" >&5
21905 (exit "$ac_status"); }; }; then
21906 ac_cv_lib_ICE_IceConnectionNumber=yes
21908 echo "$as_me: failed program was:" >&5
21909 cat "conftest.$ac_ext" >&5
21910 ac_cv_lib_ICE_IceConnectionNumber=no
21912 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21913 LIBS=$ac_check_lib_save_LIBS
21915 echo "$as_me:21915: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21916 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21917 if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
21918 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21921 LDFLAGS=$ac_save_LDFLAGS
21927 if test "$GCC" = yes || test "$GXX" = yes
21930 if test "$GCC" = yes || test "$GXX" = yes
21935 for cf_temp_scan in $CFLAGS
21937 case "x$cf_temp_scan" in
21940 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21941 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21946 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
21947 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
21952 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21953 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21958 if test "x$CFLAGS" != "x$cf_temp_flags"
21960 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
21962 echo "${as_me:-configure}:21962: testing repairing CFLAGS: $CFLAGS ..." 1>&5
21964 CFLAGS="$cf_temp_flags"
21965 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
21967 echo "${as_me:-configure}:21967: testing ... fixed $CFLAGS ..." 1>&5
21969 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
21971 echo "${as_me:-configure}:21971: testing ... extra $EXTRA_CFLAGS ..." 1>&5
21978 if test "$GCC" = yes || test "$GXX" = yes
21983 for cf_temp_scan in $CPPFLAGS
21985 case "x$cf_temp_scan" in
21988 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
21989 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
21994 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
21995 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
22000 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22001 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
22006 if test "x$CPPFLAGS" != "x$cf_temp_flags"
22008 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
22010 echo "${as_me:-configure}:22010: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
22012 CPPFLAGS="$cf_temp_flags"
22013 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
22015 echo "${as_me:-configure}:22015: testing ... fixed $CPPFLAGS ..." 1>&5
22017 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
22019 echo "${as_me:-configure}:22019: testing ... extra $EXTRA_CFLAGS ..." 1>&5
22026 if test "$GCC" = yes || test "$GXX" = yes
22031 for cf_temp_scan in $LDFLAGS
22033 case "x$cf_temp_scan" in
22036 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22037 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
22042 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
22043 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
22048 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22049 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
22054 if test "x$LDFLAGS" != "x$cf_temp_flags"
22056 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
22058 echo "${as_me:-configure}:22058: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
22060 LDFLAGS="$cf_temp_flags"
22061 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
22063 echo "${as_me:-configure}:22063: testing ... fixed $LDFLAGS ..." 1>&5
22065 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
22067 echo "${as_me:-configure}:22067: testing ... extra $EXTRA_CFLAGS ..." 1>&5
22074 echo "$as_me:22074: checking if you want to turn on gcc warnings" >&5
22075 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
22077 # Check whether --enable-warnings or --disable-warnings was given.
22078 if test "${enable_warnings+set}" = set; then
22079 enableval="$enable_warnings"
22080 test "$enableval" != yes && enableval=no
22081 if test "$enableval" != "no" ; then
22082 enable_warnings=yes
22091 echo "$as_me:22091: result: $enable_warnings" >&5
22092 echo "${ECHO_T}$enable_warnings" >&6
22093 if test "$enable_warnings" = "yes"
22096 if test "$GCC" = yes || test "$GXX" = yes
22098 cat > conftest.i <<EOF
22100 #define GCC_PRINTF 0
22103 #define GCC_SCANF 0
22105 #ifndef GCC_NORETURN
22106 #define GCC_NORETURN /* nothing */
22109 #define GCC_UNUSED /* nothing */
22112 if test "$GCC" = yes
22114 { echo "$as_me:22114: checking for $CC __attribute__ directives..." >&5
22115 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
22116 cat > "conftest.$ac_ext" <<EOF
22117 #line 22117 "${as_me:-configure}"
22118 #include "confdefs.h"
22119 #include "conftest.h"
22120 #include "conftest.i"
22122 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
22124 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
22127 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
22129 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
22131 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
22132 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
22133 extern GCC_NORETURN void foo(void);
22134 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
22136 cf_printf_attribute=no
22137 cf_scanf_attribute=no
22138 for cf_attribute in scanf printf unused noreturn
22141 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22143 cf_directive="__attribute__(($cf_attribute))"
22144 echo "checking for $CC $cf_directive" 1>&5
22146 case "$cf_attribute" in
22148 cf_printf_attribute=yes
22149 cat >conftest.h <<EOF
22150 #define GCC_$cf_ATTRIBUTE 1
22154 cf_scanf_attribute=yes
22155 cat >conftest.h <<EOF
22156 #define GCC_$cf_ATTRIBUTE 1
22160 cat >conftest.h <<EOF
22161 #define GCC_$cf_ATTRIBUTE $cf_directive
22166 if { (eval echo "$as_me:22166: \"$ac_compile\"") >&5
22167 (eval $ac_compile) 2>&5
22169 echo "$as_me:22169: \$? = $ac_status" >&5
22170 (exit "$ac_status"); }; then
22171 test -n "$verbose" && echo "$as_me:22171: result: ... $cf_attribute" >&5
22172 echo "${ECHO_T}... $cf_attribute" >&6
22173 cat conftest.h >>confdefs.h
22174 case "$cf_attribute" in
22177 cat >>confdefs.h <<EOF
22178 #define GCC_NORETURN $cf_directive
22183 cf_value='/* nothing */'
22184 if test "$cf_printf_attribute" != no ; then
22185 cf_value='__attribute__((format(printf,fmt,var)))'
22187 cat >>confdefs.h <<\EOF
22188 #define GCC_PRINTF 1
22193 cat >>confdefs.h <<EOF
22194 #define GCC_PRINTFLIKE(fmt,var) $cf_value
22199 cf_value='/* nothing */'
22200 if test "$cf_scanf_attribute" != no ; then
22201 cf_value='__attribute__((format(scanf,fmt,var)))'
22203 cat >>confdefs.h <<\EOF
22204 #define GCC_SCANF 1
22209 cat >>confdefs.h <<EOF
22210 #define GCC_SCANFLIKE(fmt,var) $cf_value
22216 cat >>confdefs.h <<EOF
22217 #define GCC_UNUSED $cf_directive
22225 ${FGREP-fgrep} define conftest.i >>confdefs.h
22230 if test "x$have_x" = xyes; then
22232 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
22233 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
22234 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
22235 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
22236 for cf_X_CFLAGS in $X_CFLAGS
22238 case "x$cf_X_CFLAGS" in
22240 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
22243 CFLAGS="$CFLAGS $cf_X_CFLAGS"
22248 cat >"conftest.$ac_ext" <<_ACEOF
22249 #line 22249 "configure"
22250 #include "confdefs.h"
22252 #include <stdlib.h>
22253 #include <X11/Intrinsic.h>
22258 String foo = malloc(1); free((void*)foo)
22263 rm -f "conftest.$ac_objext"
22264 if { (eval echo "$as_me:22264: \"$ac_compile\"") >&5
22265 (eval $ac_compile) 2>&5
22267 echo "$as_me:22267: \$? = $ac_status" >&5
22268 (exit "$ac_status"); } &&
22269 { ac_try='test -s "conftest.$ac_objext"'
22270 { (eval echo "$as_me:22270: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22273 echo "$as_me:22273: \$? = $ac_status" >&5
22274 (exit "$ac_status"); }; }; then
22276 echo "$as_me:22276: checking for X11/Xt const-feature" >&5
22277 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
22278 if test "${cf_cv_const_x_string+set}" = set; then
22279 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 cat >"conftest.$ac_ext" <<_ACEOF
22283 #line 22283 "configure"
22284 #include "confdefs.h"
22286 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
22287 #undef XTSTRINGDEFINES /* X11R5 and later */
22288 #include <stdlib.h>
22289 #include <X11/Intrinsic.h>
22294 String foo = malloc(1); *foo = 0
22299 rm -f "conftest.$ac_objext"
22300 if { (eval echo "$as_me:22300: \"$ac_compile\"") >&5
22301 (eval $ac_compile) 2>&5
22303 echo "$as_me:22303: \$? = $ac_status" >&5
22304 (exit "$ac_status"); } &&
22305 { ac_try='test -s "conftest.$ac_objext"'
22306 { (eval echo "$as_me:22306: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22309 echo "$as_me:22309: \$? = $ac_status" >&5
22310 (exit "$ac_status"); }; }; then
22312 cf_cv_const_x_string=no
22315 echo "$as_me: failed program was:" >&5
22316 cat "conftest.$ac_ext" >&5
22318 cf_cv_const_x_string=yes
22321 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22324 echo "$as_me:22324: result: $cf_cv_const_x_string" >&5
22325 echo "${ECHO_T}$cf_cv_const_x_string" >&6
22327 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
22328 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
22329 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
22331 case "$cf_cv_const_x_string" in
22334 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22335 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
22340 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22341 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
22347 echo "$as_me: failed program was:" >&5
22348 cat "conftest.$ac_ext" >&5
22350 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22352 cat > "conftest.$ac_ext" <<EOF
22353 #line 22353 "${as_me:-configure}"
22354 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
22356 if test "$INTEL_COMPILER" = yes
22358 # The "-wdXXX" options suppress warnings:
22359 # remark #1419: external declaration in primary source file
22360 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
22361 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
22362 # remark #193: zero used for undefined preprocessing identifier
22363 # remark #593: variable "curs_sb_left_arrow" was set but never used
22364 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
22365 # remark #869: parameter "tw" was never referenced
22366 # remark #981: operands are evaluated in unspecified order
22367 # warning #279: controlling expression is constant
22369 { echo "$as_me:22369: checking for $CC warning options..." >&5
22370 echo "$as_me: checking for $CC warning options..." >&6;}
22371 cf_save_CFLAGS="$CFLAGS"
22372 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
22384 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
22385 if { (eval echo "$as_me:22385: \"$ac_compile\"") >&5
22386 (eval $ac_compile) 2>&5
22388 echo "$as_me:22388: \$? = $ac_status" >&5
22389 (exit "$ac_status"); }; then
22390 test -n "$verbose" && echo "$as_me:22390: result: ... -$cf_opt" >&5
22391 echo "${ECHO_T}... -$cf_opt" >&6
22392 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
22395 CFLAGS="$cf_save_CFLAGS"
22396 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
22398 { echo "$as_me:22398: checking for $CC warning options..." >&5
22399 echo "$as_me: checking for $CC warning options..." >&6;}
22400 cf_save_CFLAGS="$CFLAGS"
22402 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
22403 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
22404 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
22405 for cf_opt in W Wall \
22406 Wbad-function-cast \
22409 Wdeclaration-after-statement \
22412 Wmissing-declarations \
22413 Wmissing-prototypes \
22417 Wstrict-prototypes \
22418 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas
22420 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
22421 if { (eval echo "$as_me:22421: \"$ac_compile\"") >&5
22422 (eval $ac_compile) 2>&5
22424 echo "$as_me:22424: \$? = $ac_status" >&5
22425 (exit "$ac_status"); }; then
22426 test -n "$verbose" && echo "$as_me:22426: result: ... -$cf_opt" >&5
22427 echo "${ECHO_T}... -$cf_opt" >&6
22430 case "$GCC_VERSION" in
22432 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
22434 echo "${as_me:-configure}:22434: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
22440 case "$GCC_VERSION" in
22442 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
22444 echo "${as_me:-configure}:22444: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
22450 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
22453 CFLAGS="$cf_save_CFLAGS"
22461 echo "$as_me:22461: checking if you want to use dmalloc for testing" >&5
22462 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
22464 # Check whether --with-dmalloc or --without-dmalloc was given.
22465 if test "${with_dmalloc+set}" = set; then
22466 withval="$with_dmalloc"
22467 case "x$withval" in
22470 : "${with_cflags:=-g}"
22471 : "${enable_leaks:=no}"
22474 cat >>confdefs.h <<EOF
22475 #define USE_DMALLOC 1
22483 echo "$as_me:22483: result: ${with_dmalloc:-no}" >&5
22484 echo "${ECHO_T}${with_dmalloc:-no}" >&6
22486 case ".$with_cflags" in
22496 cf_new_extra_cppflags=
22498 for cf_add_cflags in -g
22500 case "$cf_fix_cppflags" in
22502 case "$cf_add_cflags" in
22503 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22504 case "$cf_add_cflags" in
22506 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22508 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22509 && test -z "${cf_tst_cflags}" \
22510 && cf_fix_cppflags=yes
22512 if test "$cf_fix_cppflags" = yes ; then
22514 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22515 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22518 elif test "${cf_tst_cflags}" = "\"'" ; then
22520 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22521 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22527 case "$CPPFLAGS" in
22531 case "$cf_add_cflags" in
22533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22535 CPPFLAGS=`echo "$CPPFLAGS" | \
22536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22542 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22543 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
22550 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
22551 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
22558 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22559 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22561 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
22563 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22564 && test -z "${cf_tst_cflags}" \
22565 && cf_fix_cppflags=no
22570 if test -n "$cf_new_cflags" ; then
22572 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
22573 CFLAGS="${CFLAGS}$cf_new_cflags"
22577 if test -n "$cf_new_cppflags" ; then
22579 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22580 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
22584 if test -n "$cf_new_extra_cppflags" ; then
22586 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
22587 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
22596 if test "$with_dmalloc" = yes ; then
22597 echo "$as_me:22597: checking for dmalloc.h" >&5
22598 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
22599 if test "${ac_cv_header_dmalloc_h+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22602 cat >"conftest.$ac_ext" <<_ACEOF
22603 #line 22603 "configure"
22604 #include "confdefs.h"
22605 #include <dmalloc.h>
22607 if { (eval echo "$as_me:22607: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22608 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22610 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22612 cat conftest.err >&5
22613 echo "$as_me:22613: \$? = $ac_status" >&5
22614 (exit "$ac_status"); } >/dev/null; then
22615 if test -s conftest.err; then
22616 ac_cpp_err=$ac_c_preproc_warn_flag
22623 if test -z "$ac_cpp_err"; then
22624 ac_cv_header_dmalloc_h=yes
22626 echo "$as_me: failed program was:" >&5
22627 cat "conftest.$ac_ext" >&5
22628 ac_cv_header_dmalloc_h=no
22630 rm -f conftest.err "conftest.$ac_ext"
22632 echo "$as_me:22632: result: $ac_cv_header_dmalloc_h" >&5
22633 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
22634 if test "$ac_cv_header_dmalloc_h" = yes; then
22636 echo "$as_me:22636: checking for dmalloc_debug in -ldmalloc" >&5
22637 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
22638 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 ac_check_lib_save_LIBS=$LIBS
22642 LIBS="-ldmalloc $LIBS"
22643 cat >"conftest.$ac_ext" <<_ACEOF
22644 #line 22644 "configure"
22645 #include "confdefs.h"
22647 /* Override any gcc2 internal prototype to avoid an error. */
22651 /* We use char because int might match the return type of a gcc2
22652 builtin and then its argument prototype would still apply. */
22653 char dmalloc_debug ();
22662 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22663 if { (eval echo "$as_me:22663: \"$ac_link\"") >&5
22664 (eval $ac_link) 2>&5
22666 echo "$as_me:22666: \$? = $ac_status" >&5
22667 (exit "$ac_status"); } &&
22668 { ac_try='test -s "conftest$ac_exeext"'
22669 { (eval echo "$as_me:22669: \"$ac_try\"") >&5
22670 (eval $ac_try) 2>&5
22672 echo "$as_me:22672: \$? = $ac_status" >&5
22673 (exit "$ac_status"); }; }; then
22674 ac_cv_lib_dmalloc_dmalloc_debug=yes
22676 echo "$as_me: failed program was:" >&5
22677 cat "conftest.$ac_ext" >&5
22678 ac_cv_lib_dmalloc_dmalloc_debug=no
22680 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22681 LIBS=$ac_check_lib_save_LIBS
22683 echo "$as_me:22683: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
22684 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
22685 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
22686 cat >>confdefs.h <<EOF
22687 #define HAVE_LIBDMALLOC 1
22690 LIBS="-ldmalloc $LIBS"
22698 echo "$as_me:22698: checking if you want to use dbmalloc for testing" >&5
22699 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
22701 # Check whether --with-dbmalloc or --without-dbmalloc was given.
22702 if test "${with_dbmalloc+set}" = set; then
22703 withval="$with_dbmalloc"
22704 case "x$withval" in
22707 : "${with_cflags:=-g}"
22708 : "${enable_leaks:=no}"
22711 cat >>confdefs.h <<EOF
22712 #define USE_DBMALLOC 1
22720 echo "$as_me:22720: result: ${with_dbmalloc:-no}" >&5
22721 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
22723 case ".$with_cflags" in
22733 cf_new_extra_cppflags=
22735 for cf_add_cflags in -g
22737 case "$cf_fix_cppflags" in
22739 case "$cf_add_cflags" in
22740 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22741 case "$cf_add_cflags" in
22743 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22745 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22746 && test -z "${cf_tst_cflags}" \
22747 && cf_fix_cppflags=yes
22749 if test "$cf_fix_cppflags" = yes ; then
22751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22755 elif test "${cf_tst_cflags}" = "\"'" ; then
22757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22764 case "$CPPFLAGS" in
22768 case "$cf_add_cflags" in
22770 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22772 CPPFLAGS=`echo "$CPPFLAGS" | \
22773 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22774 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22779 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22780 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
22787 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
22788 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
22795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22798 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
22800 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22801 && test -z "${cf_tst_cflags}" \
22802 && cf_fix_cppflags=no
22807 if test -n "$cf_new_cflags" ; then
22809 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
22810 CFLAGS="${CFLAGS}$cf_new_cflags"
22814 if test -n "$cf_new_cppflags" ; then
22816 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22817 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
22821 if test -n "$cf_new_extra_cppflags" ; then
22823 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
22824 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
22833 if test "$with_dbmalloc" = yes ; then
22834 echo "$as_me:22834: checking for dbmalloc.h" >&5
22835 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
22836 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22839 cat >"conftest.$ac_ext" <<_ACEOF
22840 #line 22840 "configure"
22841 #include "confdefs.h"
22842 #include <dbmalloc.h>
22844 if { (eval echo "$as_me:22844: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22845 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22847 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 echo "$as_me:22850: \$? = $ac_status" >&5
22851 (exit "$ac_status"); } >/dev/null; then
22852 if test -s conftest.err; then
22853 ac_cpp_err=$ac_c_preproc_warn_flag
22860 if test -z "$ac_cpp_err"; then
22861 ac_cv_header_dbmalloc_h=yes
22863 echo "$as_me: failed program was:" >&5
22864 cat "conftest.$ac_ext" >&5
22865 ac_cv_header_dbmalloc_h=no
22867 rm -f conftest.err "conftest.$ac_ext"
22869 echo "$as_me:22869: result: $ac_cv_header_dbmalloc_h" >&5
22870 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
22871 if test "$ac_cv_header_dbmalloc_h" = yes; then
22873 echo "$as_me:22873: checking for debug_malloc in -ldbmalloc" >&5
22874 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
22875 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
22876 echo $ECHO_N "(cached) $ECHO_C" >&6
22878 ac_check_lib_save_LIBS=$LIBS
22879 LIBS="-ldbmalloc $LIBS"
22880 cat >"conftest.$ac_ext" <<_ACEOF
22881 #line 22881 "configure"
22882 #include "confdefs.h"
22884 /* Override any gcc2 internal prototype to avoid an error. */
22888 /* We use char because int might match the return type of a gcc2
22889 builtin and then its argument prototype would still apply. */
22890 char debug_malloc ();
22899 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22900 if { (eval echo "$as_me:22900: \"$ac_link\"") >&5
22901 (eval $ac_link) 2>&5
22903 echo "$as_me:22903: \$? = $ac_status" >&5
22904 (exit "$ac_status"); } &&
22905 { ac_try='test -s "conftest$ac_exeext"'
22906 { (eval echo "$as_me:22906: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22909 echo "$as_me:22909: \$? = $ac_status" >&5
22910 (exit "$ac_status"); }; }; then
22911 ac_cv_lib_dbmalloc_debug_malloc=yes
22913 echo "$as_me: failed program was:" >&5
22914 cat "conftest.$ac_ext" >&5
22915 ac_cv_lib_dbmalloc_debug_malloc=no
22917 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22918 LIBS=$ac_check_lib_save_LIBS
22920 echo "$as_me:22920: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
22921 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
22922 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
22923 cat >>confdefs.h <<EOF
22924 #define HAVE_LIBDBMALLOC 1
22927 LIBS="-ldbmalloc $LIBS"
22935 echo "$as_me:22935: checking if you want to use valgrind for testing" >&5
22936 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
22938 # Check whether --with-valgrind or --without-valgrind was given.
22939 if test "${with_valgrind+set}" = set; then
22940 withval="$with_valgrind"
22941 case "x$withval" in
22944 : "${with_cflags:=-g}"
22945 : "${enable_leaks:=no}"
22948 cat >>confdefs.h <<EOF
22949 #define USE_VALGRIND 1
22957 echo "$as_me:22957: result: ${with_valgrind:-no}" >&5
22958 echo "${ECHO_T}${with_valgrind:-no}" >&6
22960 case ".$with_cflags" in
22970 cf_new_extra_cppflags=
22972 for cf_add_cflags in -g
22974 case "$cf_fix_cppflags" in
22976 case "$cf_add_cflags" in
22977 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22978 case "$cf_add_cflags" in
22980 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22982 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22983 && test -z "${cf_tst_cflags}" \
22984 && cf_fix_cppflags=yes
22986 if test "$cf_fix_cppflags" = yes ; then
22988 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22989 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22992 elif test "${cf_tst_cflags}" = "\"'" ; then
22994 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22995 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23001 case "$CPPFLAGS" in
23005 case "$cf_add_cflags" in
23007 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23009 CPPFLAGS=`echo "$CPPFLAGS" | \
23010 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23011 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23016 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23017 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
23024 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23025 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
23032 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23033 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23035 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
23037 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23038 && test -z "${cf_tst_cflags}" \
23039 && cf_fix_cppflags=no
23044 if test -n "$cf_new_cflags" ; then
23046 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23047 CFLAGS="${CFLAGS}$cf_new_cflags"
23051 if test -n "$cf_new_cppflags" ; then
23053 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23054 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
23058 if test -n "$cf_new_extra_cppflags" ; then
23060 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23061 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
23070 echo "$as_me:23070: checking if you want to perform memory-leak testing" >&5
23071 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
23073 # Check whether --enable-leaks or --disable-leaks was given.
23074 if test "${enable_leaks+set}" = set; then
23075 enableval="$enable_leaks"
23076 enable_leaks=$enableval
23080 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
23081 echo "$as_me:23081: result: $with_no_leaks" >&5
23082 echo "${ECHO_T}$with_no_leaks" >&6
23084 if test "$enable_leaks" = no ; then
23086 cat >>confdefs.h <<\EOF
23090 cat >>confdefs.h <<\EOF
23091 #define YY_NO_LEAKS 1
23097 if test "x$cf_cv_enable_rpath" != xno
23099 echo "$as_me:23099: checking for an rpath option" >&5
23100 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
23101 case "$cf_cv_system_name" in
23103 if test "$GCC" = yes; then
23104 LD_RPATH_OPT="-Wl,-rpath,"
23106 LD_RPATH_OPT="-rpath "
23109 (linux*|gnu*|k*bsd*-gnu|freebsd*)
23110 LD_RPATH_OPT="-Wl,-rpath,"
23112 (openbsd[2-9].*|mirbsd*)
23113 LD_RPATH_OPT="-Wl,-rpath,"
23116 LD_RPATH_OPT="-rpath "
23119 LD_RPATH_OPT="-Wl,-rpath,"
23122 LD_RPATH_OPT="-rpath "
23130 echo "$as_me:23130: result: $LD_RPATH_OPT" >&5
23131 echo "${ECHO_T}$LD_RPATH_OPT" >&6
23133 case "x$LD_RPATH_OPT" in
23135 echo "$as_me:23135: checking if we need a space after rpath option" >&5
23136 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
23137 cf_save_LIBS="$LIBS"
23139 cf_add_libs="$LIBS"
23142 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23143 # filter duplicates
23144 for cf_add_1lib in $cf_add_0lib; do
23145 for cf_add_2lib in $cf_add_libs; do
23146 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23151 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23153 LIBS="$cf_add_libs"
23155 cat >"conftest.$ac_ext" <<_ACEOF
23156 #line 23156 "configure"
23157 #include "confdefs.h"
23167 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23168 if { (eval echo "$as_me:23168: \"$ac_link\"") >&5
23169 (eval $ac_link) 2>&5
23171 echo "$as_me:23171: \$? = $ac_status" >&5
23172 (exit "$ac_status"); } &&
23173 { ac_try='test -s "conftest$ac_exeext"'
23174 { (eval echo "$as_me:23174: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23177 echo "$as_me:23177: \$? = $ac_status" >&5
23178 (exit "$ac_status"); }; }; then
23181 echo "$as_me: failed program was:" >&5
23182 cat "conftest.$ac_ext" >&5
23185 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23186 LIBS="$cf_save_LIBS"
23187 echo "$as_me:23187: result: $cf_rpath_space" >&5
23188 echo "${ECHO_T}$cf_rpath_space" >&6
23189 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
23194 echo "$as_me:23194: checking if rpath-hack should be disabled" >&5
23195 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
23197 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
23198 if test "${enable_rpath_hack+set}" = set; then
23199 enableval="$enable_rpath_hack"
23200 test "$enableval" != no && enableval=yes
23201 if test "$enableval" != "yes" ; then
23202 enable_rpath_hack=no
23204 enable_rpath_hack=yes
23208 enable_rpath_hack=yes
23211 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
23212 echo "$as_me:23212: result: $cf_disable_rpath_hack" >&5
23213 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
23215 if test "$enable_rpath_hack" = yes ; then
23217 echo "$as_me:23217: checking for updated LDFLAGS" >&5
23218 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
23219 if test -n "$LD_RPATH_OPT" ; then
23220 echo "$as_me:23220: result: maybe" >&5
23221 echo "${ECHO_T}maybe" >&6
23225 # Extract the first word of "$ac_prog", so it can be a program name with args.
23226 set dummy $ac_prog; ac_word=$2
23227 echo "$as_me:23227: checking for $ac_word" >&5
23228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23229 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 if test -n "$cf_ldd_prog"; then
23233 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
23235 ac_save_IFS=$IFS; IFS=$ac_path_separator
23237 for ac_dir in $ac_dummy; do
23239 test -z "$ac_dir" && ac_dir=.
23240 $as_executable_p "$ac_dir/$ac_word" || continue
23241 ac_cv_prog_cf_ldd_prog="$ac_prog"
23242 echo "$as_me:23242: found $ac_dir/$ac_word" >&5
23248 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
23249 if test -n "$cf_ldd_prog"; then
23250 echo "$as_me:23250: result: $cf_ldd_prog" >&5
23251 echo "${ECHO_T}$cf_ldd_prog" >&6
23253 echo "$as_me:23253: result: no" >&5
23254 echo "${ECHO_T}no" >&6
23257 test -n "$cf_ldd_prog" && break
23259 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
23261 cf_rpath_list="/usr/lib /lib"
23262 if test "$cf_ldd_prog" != no
23266 cat >"conftest.$ac_ext" <<_ACEOF
23267 #line 23267 "configure"
23268 #include "confdefs.h"
23278 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23279 if { (eval echo "$as_me:23279: \"$ac_link\"") >&5
23280 (eval $ac_link) 2>&5
23282 echo "$as_me:23282: \$? = $ac_status" >&5
23283 (exit "$ac_status"); } &&
23284 { ac_try='test -s "conftest$ac_exeext"'
23285 { (eval echo "$as_me:23285: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23288 echo "$as_me:23288: \$? = $ac_status" >&5
23289 (exit "$ac_status"); }; }; then
23290 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
23291 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
23293 echo "$as_me: failed program was:" >&5
23294 cat "conftest.$ac_ext" >&5
23296 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23298 # If we passed the link-test, but get a "not found" on a given library,
23299 # this could be due to inept reconfiguration of gcc to make it only
23300 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
23301 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
23302 # /usr/local libraries.
23303 if test -n "$cf_rpath_oops"
23305 for cf_rpath_src in $cf_rpath_oops
23307 for cf_rpath_dir in \
23312 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
23314 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
23316 echo "${as_me:-configure}:23316: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
23318 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
23326 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
23328 echo "${as_me:-configure}:23328: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
23330 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
23332 echo "${as_me:-configure}:23332: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
23335 for cf_rpath_src in $LDFLAGS
23337 case "$cf_rpath_src" in
23340 # check if this refers to a directory which we will ignore
23342 if test -n "$cf_rpath_list"
23344 for cf_rpath_item in $cf_rpath_list
23346 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
23354 if test "$cf_rpath_skip" = no
23356 # transform the option
23357 if test "$LD_RPATH_OPT" = "-R " ; then
23358 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
23360 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
23363 # if we have not already added this, add it now
23364 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
23365 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
23367 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
23369 echo "${as_me:-configure}:23369: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
23371 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
23376 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
23378 LDFLAGS=$cf_rpath_dst
23380 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
23382 echo "${as_me:-configure}:23382: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
23384 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
23386 echo "${as_me:-configure}:23386: testing ...checking LIBS $LIBS ..." 1>&5
23389 for cf_rpath_src in $LIBS
23391 case "$cf_rpath_src" in
23394 # check if this refers to a directory which we will ignore
23396 if test -n "$cf_rpath_list"
23398 for cf_rpath_item in $cf_rpath_list
23400 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
23408 if test "$cf_rpath_skip" = no
23410 # transform the option
23411 if test "$LD_RPATH_OPT" = "-R " ; then
23412 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
23414 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
23417 # if we have not already added this, add it now
23418 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
23419 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
23421 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
23423 echo "${as_me:-configure}:23423: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
23425 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
23430 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
23434 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
23436 echo "${as_me:-configure}:23436: testing ...checked LIBS $LIBS ..." 1>&5
23438 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
23440 echo "${as_me:-configure}:23440: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
23443 echo "$as_me:23443: result: no" >&5
23444 echo "${ECHO_T}no" >&6
23452 ac_config_files="$ac_config_files Makefile"
23453 ac_config_commands="$ac_config_commands default"
23454 cat >confcache <<\_ACEOF
23455 # This file is a shell script that caches the results of configure
23456 # tests run on this system so they can be shared between configure
23457 # scripts and configure runs, see configure's option --config-cache.
23458 # It is not useful on other systems. If it contains results you don't
23459 # want to keep, you may remove or edit it.
23461 # config.status only pays attention to the cache file if you give it
23462 # the --recheck option to rerun configure.
23464 # `ac_cv_env_foo' variables (set or unset) will be overriden when
23465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23466 # following values.
23470 # The following way of writing the cache mishandles newlines in values,
23471 # but we know of no workaround that is simple, portable, and efficient.
23472 # So, don't put newlines in cache variables' values.
23473 # Ultrix sh set writes to stderr and can't be redirected directly,
23474 # and sets the high bit in the cache file unless we assign to the vars.
23477 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23479 # `set' does not quote correctly, so add quotes (double-quote
23480 # substitution turns \\\\ into \\, and sed turns \\ into \).
23483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23486 # `set' quotes correctly as required by POSIX, so do not add quotes.
23488 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23497 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23499 if cmp -s $cache_file confcache; then :; else
23500 if test -w $cache_file; then
23501 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23502 cat confcache >$cache_file
23504 echo "not updating unwritable cache $cache_file"
23509 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23510 # Let make expand exec_prefix.
23511 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23513 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23514 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23515 # trailing colons and then remove the whole line if VPATH becomes empty
23516 # (actually we leave an empty line to preserve line numbers).
23517 if test "x$srcdir" = x.; then
23518 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23519 s/:*\$(srcdir):*/:/;
23520 s/:*\${srcdir}:*/:/;
23522 s/^\([^=]*=[ ]*\):*/\1/;
23528 DEFS=-DHAVE_CONFIG_H
23530 : "${CONFIG_STATUS=./config.status}"
23531 ac_clean_files_save=$ac_clean_files
23532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23533 { echo "$as_me:23533: creating $CONFIG_STATUS" >&5
23534 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23535 cat >"$CONFIG_STATUS" <<_ACEOF
23537 # Generated automatically by configure.
23538 # Run this file to recreate the current configuration.
23539 # Compiler output produced by configure, useful for debugging
23540 # configure, is in config.log if it exists.
23543 SHELL=\${CONFIG_SHELL-$SHELL}
23544 ac_cs_invocation="\$0 \$@"
23546 CLICOLOR_FORCE= GREP_OPTIONS=
23547 unset CLICOLOR_FORCE GREP_OPTIONS
23550 cat >>"$CONFIG_STATUS" <<\_ACEOF
23551 # Be Bourne compatible
23552 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23555 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23559 # Name of the executable.
23560 as_me=`echo "$0" |sed 's,.*[\\/],,'`
23562 if expr a : '\(a\)' >/dev/null 2>&1; then
23568 rm -f conf$$ conf$$.exe conf$$.file
23570 if ln -s conf$$.file conf$$ 2>/dev/null; then
23571 # We could just check for DJGPP; but this test a) works b) is more generic
23572 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23573 if test -f conf$$.exe; then
23574 # Don't use ln at all; we don't have any links
23579 elif ln conf$$.file conf$$ 2>/dev/null; then
23584 rm -f conf$$ conf$$.exe conf$$.file
23586 as_executable_p="test -f"
23588 # Support unset when possible.
23589 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23596 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
23597 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
23598 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
23599 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
23600 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
23601 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
23602 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
23603 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
23606 # We need space, tab and new line, in precisely that order.
23612 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
23618 # Files that config.status was made for.
23619 if test -n "$ac_config_files"; then
23620 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
23623 if test -n "$ac_config_headers"; then
23624 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
23627 if test -n "$ac_config_links"; then
23628 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
23631 if test -n "$ac_config_commands"; then
23632 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
23635 cat >>"$CONFIG_STATUS" <<\EOF
23638 \`$as_me' instantiates files from templates according to the
23639 current configuration.
23641 Usage: $0 [OPTIONS] [FILE]...
23643 -h, --help print this help, then exit
23644 -V, --version print version number, then exit
23645 -d, --debug don't remove temporary files
23646 --recheck update $as_me by reconfiguring in the same conditions
23647 --file=FILE[:TEMPLATE]
23648 instantiate the configuration file FILE
23649 --header=FILE[:TEMPLATE]
23650 instantiate the configuration header FILE
23652 Configuration files:
23655 Configuration headers:
23658 Configuration commands:
23661 Report bugs to <dickey@invisible-island.net>."
23664 cat >>"$CONFIG_STATUS" <<EOF
23667 configured by $0, generated by GNU Autoconf 2.52.20210509,
23668 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23670 Copyright 2003-2020,2021 Thomas E. Dickey
23671 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23672 Free Software Foundation, Inc.
23673 This config.status script is free software; the Free Software Foundation
23674 gives unlimited permission to copy, distribute and modify it."
23679 cat >>"$CONFIG_STATUS" <<\EOF
23680 # If no file are specified by the user, then we need to provide default
23681 # value. By we need to know if files were specified by the user.
23687 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23688 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23690 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
23694 *) # This is not an option, so the user has probably given explicit
23696 ac_need_defaults=false;;
23700 # Handling of the options.
23702 cat >>"$CONFIG_STATUS" <<EOF
23703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23704 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23705 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23707 cat >>"$CONFIG_STATUS" <<\EOF
23708 --version | --vers* | -V )
23709 echo "$ac_cs_version"; exit 0 ;;
23711 # Conflict between --help and --header
23712 { { echo "$as_me:23712: error: ambiguous option: $1
23713 Try \`$0 --help' for more information." >&5
23714 echo "$as_me: error: ambiguous option: $1
23715 Try \`$0 --help' for more information." >&2;}
23716 { (exit 1); exit 1; }; };;
23717 --help | --hel | -h )
23718 echo "$ac_cs_usage"; exit 0 ;;
23719 --debug | --d* | -d )
23721 --file | --fil | --fi | --f )
23723 CONFIG_FILES="$CONFIG_FILES $1"
23724 ac_need_defaults=false;;
23725 --header | --heade | --head | --hea )
23727 CONFIG_HEADERS="$CONFIG_HEADERS $1"
23728 ac_need_defaults=false;;
23730 # This is an error.
23731 -*) { { echo "$as_me:23731: error: unrecognized option: $1
23732 Try \`$0 --help' for more information." >&5
23733 echo "$as_me: error: unrecognized option: $1
23734 Try \`$0 --help' for more information." >&2;}
23735 { (exit 1); exit 1; }; } ;;
23737 *) ac_config_targets="$ac_config_targets $1" ;;
23746 ## ----------------------- ##
23747 ## Running config.status. ##
23748 ## ----------------------- ##
23750 This file was extended by $as_me 2.52.20210509, executed with
23751 CONFIG_FILES = $CONFIG_FILES
23752 CONFIG_HEADERS = $CONFIG_HEADERS
23753 CONFIG_LINKS = $CONFIG_LINKS
23754 CONFIG_COMMANDS = $CONFIG_COMMANDS
23755 > "$ac_cs_invocation"
23756 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23761 cat >>"$CONFIG_STATUS" <<EOF
23763 # INIT-COMMANDS section.
23773 cat >>"$CONFIG_STATUS" <<\EOF
23774 for ac_config_target in $ac_config_targets
23776 case "$ac_config_target" in
23777 # Handling of arguments.
23778 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23779 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23780 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
23781 *) { { echo "$as_me:23781: error: invalid argument: $ac_config_target" >&5
23782 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23783 { (exit 1); exit 1; }; };;
23787 # If the user did not use the arguments to specify the items to instantiate,
23788 # then the envvar interface is used. Set only those that are not.
23789 # We use the long form for the default assignment because of an extremely
23790 # bizarre bug on SunOS 4.1.3.
23791 if "$ac_need_defaults"; then
23792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23793 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23794 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23797 # Create a temporary directory, and hook for its removal unless debugging.
23800 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23801 trap '{ (exit 1); exit 1; }' 1 2 13 15
23804 # Create a (secure) tmp directory for tmp files.
23807 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23808 test -n "$tmp" && test -d "$tmp"
23811 tmp=$TMPDIR/cs$$-$RANDOM
23812 (umask 077 && mkdir $tmp)
23815 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23816 { (exit 1); exit 1; }
23821 cat >>"$CONFIG_STATUS" <<EOF
23824 # CONFIG_FILES section.
23827 # No need to generate the scripts if there are no CONFIG_FILES.
23828 # This happens for instance when ./config.status config.h
23829 if test -n "\$CONFIG_FILES"; then
23830 # Protect against being on the right side of a sed subst in config.status.
23831 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23832 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23833 s,@SHELL@,$SHELL,;t t
23834 s,@exec_prefix@,$exec_prefix,;t t
23835 s,@prefix@,$prefix,;t t
23836 s,@program_transform_name@,$program_transform_name,;t t
23837 s,@bindir@,$bindir,;t t
23838 s,@sbindir@,$sbindir,;t t
23839 s,@libexecdir@,$libexecdir,;t t
23840 s,@datarootdir@,$datarootdir,;t t
23841 s,@datadir@,$datadir,;t t
23842 s,@sysconfdir@,$sysconfdir,;t t
23843 s,@sharedstatedir@,$sharedstatedir,;t t
23844 s,@localstatedir@,$localstatedir,;t t
23845 s,@runstatedir@,$runstatedir,;t t
23846 s,@libdir@,$libdir,;t t
23847 s,@includedir@,$includedir,;t t
23848 s,@oldincludedir@,$oldincludedir,;t t
23849 s,@infodir@,$infodir,;t t
23850 s,@mandir@,$mandir,;t t
23851 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23852 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23853 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23854 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23855 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23856 s,@build_alias@,$build_alias,;t t
23857 s,@host_alias@,$host_alias,;t t
23858 s,@target_alias@,$target_alias,;t t
23859 s,@ECHO_C@,$ECHO_C,;t t
23860 s,@ECHO_N@,$ECHO_N,;t t
23861 s,@ECHO_T@,$ECHO_T,;t t
23862 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23863 s,@DEFS@,$DEFS,;t t
23864 s,@LIBS@,$LIBS,;t t
23865 s,@build@,$build,;t t
23866 s,@build_cpu@,$build_cpu,;t t
23867 s,@build_vendor@,$build_vendor,;t t
23868 s,@build_os@,$build_os,;t t
23869 s,@host@,$host,;t t
23870 s,@host_cpu@,$host_cpu,;t t
23871 s,@host_vendor@,$host_vendor,;t t
23872 s,@host_os@,$host_os,;t t
23873 s,@SET_MAKE@,$SET_MAKE,;t t
23875 s,@CFLAGS@,$CFLAGS,;t t
23876 s,@LDFLAGS@,$LDFLAGS,;t t
23877 s,@CPPFLAGS@,$CPPFLAGS,;t t
23878 s,@ac_ct_CC@,$ac_ct_CC,;t t
23879 s,@EXEEXT@,$EXEEXT,;t t
23880 s,@OBJEXT@,$OBJEXT,;t t
23881 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
23883 s,@GREP@,$GREP,;t t
23884 s,@EGREP@,$EGREP,;t t
23886 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23887 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23888 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23889 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
23890 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
23891 s,@LINT@,$LINT,;t t
23892 s,@LINT_OPTS@,$LINT_OPTS,;t t
23893 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
23894 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
23895 s,@CTAGS@,$CTAGS,;t t
23896 s,@ETAGS@,$ETAGS,;t t
23897 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
23898 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
23899 s,@MATH_LIB@,$MATH_LIB,;t t
23900 s,@top_builddir@,$top_builddir,;t t
23901 s,@CC_G_OPT@,$CC_G_OPT,;t t
23902 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
23903 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
23904 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
23905 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
23907 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
23908 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
23909 s,@LD_MODEL@,$LD_MODEL,;t t
23910 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
23911 s,@LIBTOOL@,$LIBTOOL,;t t
23912 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
23913 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
23914 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
23915 s,@LIB_LINK@,$LIB_LINK,;t t
23916 s,@LINK_TESTS@,$LINK_TESTS,;t t
23917 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
23918 s,@PACKAGE@,$PACKAGE,;t t
23919 s,@PTHREAD@,$PTHREAD,;t t
23920 s,@TEST_ARGS@,$TEST_ARGS,;t t
23921 s,@TEST_DEPS@,$TEST_DEPS,;t t
23922 s,@TEST_LIBS@,$TEST_LIBS,;t t
23923 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
23924 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
23925 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
23926 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
23927 s,@includesubdir@,$includesubdir,;t t
23928 s,@FGREP@,$FGREP,;t t
23929 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
23930 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
23931 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23932 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23933 s,@ECHO_LT@,$ECHO_LT,;t t
23934 s,@ECHO_LD@,$ECHO_LD,;t t
23935 s,@RULE_CC@,$RULE_CC,;t t
23936 s,@SHOW_CC@,$SHOW_CC,;t t
23937 s,@ECHO_CC@,$ECHO_CC,;t t
23938 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
23939 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
23940 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
23941 s,@X_CFLAGS@,$X_CFLAGS,;t t
23942 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
23943 s,@X_LIBS@,$X_LIBS,;t t
23944 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
23945 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
23946 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
23947 s,@RGB_PATH@,$RGB_PATH,;t t
23948 s,@no_x11_rgb@,$no_x11_rgb,;t t
23949 s,@FORM_NAME@,$FORM_NAME,;t t
23950 s,@MENU_NAME@,$MENU_NAME,;t t
23951 s,@PANEL_NAME@,$PANEL_NAME,;t t
23952 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
23953 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
23954 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
23959 cat >>"$CONFIG_STATUS" <<\EOF
23960 # Split the substitutions into bite-sized pieces for seds with
23961 # small command number limits, like on Digital OSF/1 and HP-UX.
23962 ac_max_sed_lines=48
23963 ac_sed_frag=1 # Number of current file.
23964 ac_beg=1 # First line for current file.
23965 ac_end=$ac_max_sed_lines # Line after last line for current file.
23968 while "$ac_more_lines"; do
23969 if test "$ac_beg" -gt 1; then
23970 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23972 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23974 if test ! -s $tmp/subs.frag; then
23975 ac_more_lines=false
23977 # The purpose of the label and of the branching condition is to
23978 # speed up the sed processing (if there are no `@' at all, there
23979 # is no need to browse any of the substitutions).
23980 # These are the two extra sed commands mentioned above.
23982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23983 # It is possible to make a multiline substitution using escaped newlines.
23984 # Ensure that we do not split the substitution between script fragments.
23986 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
23987 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
23988 if test -s $tmp/subs.next; then
23989 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
23990 if test ! -s $tmp/subs.edit; then
23991 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
23992 if test ! -s $tmp/subs.edit; then
23993 if test "$ac_beg" -gt 1; then
23994 ac_end=`expr "$ac_end" - 1`
24001 if test -z "$ac_sed_cmds"; then
24002 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24004 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24006 ac_sed_frag=`expr "$ac_sed_frag" + 1`
24008 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
24011 if test -z "$ac_sed_cmds"; then
24014 fi # test -n "$CONFIG_FILES"
24017 cat >>"$CONFIG_STATUS" <<\EOF
24018 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24019 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24021 - | *:- | *:-:* ) # input from stdin
24023 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24025 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24027 * ) ac_file_in=$ac_file.in ;;
24030 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24031 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24032 X"$ac_file" : 'X\(//\)[^/]' \| \
24033 X"$ac_file" : 'X\(//\)$' \| \
24034 X"$ac_file" : 'X\(/\)' \| \
24035 . : '\(.\)' 2>/dev/null ||
24037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24039 /^X\(\/\/\)$/{ s//\1/; q; }
24040 /^X\(\/\).*/{ s//\1/; q; }
24042 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24043 { case "$ac_dir" in
24044 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24048 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24049 case $as_mkdir_dir in
24050 # Skip DOS drivespec
24051 ?:) as_incr_dir=$as_mkdir_dir ;;
24053 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24054 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24059 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
24060 # A "../" for each directory in $ac_dir_suffix.
24061 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
24063 ac_dir_suffix= ac_dots=
24068 if test -z "$ac_dots"; then
24071 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
24073 [\\/]* | ?:[\\/]* )
24074 ac_srcdir="$srcdir$ac_dir_suffix";
24075 ac_top_srcdir="$srcdir" ;;
24076 *) # Relative path.
24077 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
24078 ac_top_srcdir="$ac_dots$srcdir" ;;
24082 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24083 *) ac_INSTALL=$ac_dots$INSTALL ;;
24086 if test x"$ac_file" != x-; then
24087 { echo "$as_me:24087: creating $ac_file" >&5
24088 echo "$as_me: creating $ac_file" >&6;}
24091 # Let's still pretend it is `configure' which instantiates (i.e., don't
24092 # use $as_me), people would be surprised to read:
24093 # /* config.h. Generated automatically by config.status. */
24094 configure_input="Generated automatically from `echo $ac_file_in |
24095 sed 's,.*/,,'` by configure."
24097 # First look for the input files in the build tree, otherwise in the
24099 ac_file_inputs=`IFS=:
24100 for f in $ac_file_in; do
24102 -) echo $tmp/stdin ;;
24104 # Absolute (can't be DOS-style, as IFS=:)
24105 test -f "$f" || { { echo "$as_me:24105: error: cannot find input file: $f" >&5
24106 echo "$as_me: error: cannot find input file: $f" >&2;}
24107 { (exit 1); exit 1; }; }
24110 if test -f "$f"; then
24113 elif test -f "$srcdir/$f"; then
24118 { { echo "$as_me:24118: error: cannot find input file: $f" >&5
24119 echo "$as_me: error: cannot find input file: $f" >&2;}
24120 { (exit 1); exit 1; }; }
24123 done` || { (exit 1); exit 1; }
24125 cat >>"$CONFIG_STATUS" <<\EOF
24126 ac_warn_datarootdir=no
24127 if test x"$ac_file" != x-; then
24128 for ac_item in $ac_file_inputs
24130 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
24131 if test -n "$ac_seen"; then
24132 ac_used=`grep '@datarootdir@' "$ac_item"`
24133 if test -z "$ac_used"; then
24134 { echo "$as_me:24134: WARNING: datarootdir was used implicitly but not set:
24136 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
24138 ac_warn_datarootdir=yes
24141 ac_seen=`grep '${datarootdir}' "$ac_item"`
24142 if test -n "$ac_seen"; then
24143 { echo "$as_me:24143: WARNING: datarootdir was used explicitly but not set:
24145 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
24147 ac_warn_datarootdir=yes
24152 if test "x$ac_warn_datarootdir" = xyes; then
24153 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
24157 cat >>"$CONFIG_STATUS" <<EOF
24161 cat >>"$CONFIG_STATUS" <<\EOF
24163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24164 s,@configure_input@,$configure_input,;t t
24165 s,@srcdir@,$ac_srcdir,;t t
24166 s,@top_srcdir@,$ac_top_srcdir,;t t
24167 s,@INSTALL@,$ac_INSTALL,;t t
24168 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24170 if test x"$ac_file" != x-; then
24171 cp "$tmp/out" "$ac_file"
24173 for ac_name in prefix exec_prefix datarootdir
24175 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
24176 if test -n "$ac_seen"; then
24177 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
24178 if test -z "$ac_init"; then
24179 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
24180 { echo "$as_me:24180: WARNING: Variable $ac_name is used but was not set:
24182 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
24187 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
24188 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
24189 if test -s $tmp/out; then
24190 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
24191 { echo "$as_me:24191: WARNING: Some variables may not be substituted:
24193 echo "$as_me: WARNING: Some variables may not be substituted:
24203 cat >>"$CONFIG_STATUS" <<\EOF
24206 # CONFIG_HEADER section.
24209 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24210 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24212 # ac_d sets the value in "#define NAME VALUE" lines.
24213 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24214 ac_dB='[ ].*$,\1#\2'
24217 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24218 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24219 ac_iB='\([ ]\),\1#\2define\3'
24222 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24223 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24224 ac_uB='$,\1#\2define\3'
24228 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24231 - | *:- | *:-:* ) # input from stdin
24233 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24235 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24237 * ) ac_file_in=$ac_file.in ;;
24240 test x"$ac_file" != x- && { echo "$as_me:24240: creating $ac_file" >&5
24241 echo "$as_me: creating $ac_file" >&6;}
24243 # First look for the input files in the build tree, otherwise in the
24245 ac_file_inputs=`IFS=:
24246 for f in $ac_file_in; do
24248 -) echo $tmp/stdin ;;
24250 # Absolute (can't be DOS-style, as IFS=:)
24251 test -f "$f" || { { echo "$as_me:24251: error: cannot find input file: $f" >&5
24252 echo "$as_me: error: cannot find input file: $f" >&2;}
24253 { (exit 1); exit 1; }; }
24256 if test -f "$f"; then
24259 elif test -f "$srcdir/$f"; then
24264 { { echo "$as_me:24264: error: cannot find input file: $f" >&5
24265 echo "$as_me: error: cannot find input file: $f" >&2;}
24266 { (exit 1); exit 1; }; }
24269 done` || { (exit 1); exit 1; }
24270 # Remove the trailing spaces.
24271 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24275 # Transform confdefs.h into a list of #define's. We won't use it as a sed
24276 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
24277 # be either 'cat' or 'sort'.
24278 cat confdefs.h | uniq >conftest.vals
24280 # Break up conftest.vals because some shells have a limit on
24281 # the size of here documents, and old seds have small limits too.
24283 rm -f conftest.tail
24284 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
24285 while grep . conftest.vals >/dev/null
24287 # Write chunks of a limited-size here document to conftest.frag.
24288 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
24289 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
24290 echo 'CEOF' >> "$CONFIG_STATUS"
24291 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
24292 rm -f conftest.vals
24293 mv conftest.tail conftest.vals
24295 rm -f conftest.vals
24297 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
24299 echo ' cat >> conftest.edit <<CEOF
24300 /@DEFS@/r conftest.frag
24303 sed -f conftest.edit $tmp/in > $tmp/out
24305 mv $tmp/out $tmp/in
24306 rm -f conftest.edit conftest.frag
24307 ' >> "$CONFIG_STATUS"
24309 cat >>"$CONFIG_STATUS" <<\EOF
24310 # Let's still pretend it is `configure' which instantiates (i.e., don't
24311 # use $as_me), people would be surprised to read:
24312 # /* config.h. Generated automatically by config.status. */
24313 if test x"$ac_file" = x-; then
24314 echo "/* Generated automatically by configure. */" >$tmp/config.h
24316 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
24318 cat $tmp/in >>$tmp/config.h
24320 if test x"$ac_file" != x-; then
24321 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
24322 { echo "$as_me:24322: $ac_file is unchanged" >&5
24323 echo "$as_me: $ac_file is unchanged" >&6;}
24325 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24326 X"$ac_file" : 'X\(//\)[^/]' \| \
24327 X"$ac_file" : 'X\(//\)$' \| \
24328 X"$ac_file" : 'X\(/\)' \| \
24329 . : '\(.\)' 2>/dev/null ||
24331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24332 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24333 /^X\(\/\/\)$/{ s//\1/; q; }
24334 /^X\(\/\).*/{ s//\1/; q; }
24336 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24337 { case "$ac_dir" in
24338 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24342 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24343 case $as_mkdir_dir in
24344 # Skip DOS drivespec
24345 ?:) as_incr_dir=$as_mkdir_dir ;;
24347 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24348 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24355 mv "$tmp/config.h" "$ac_file"
24359 rm -f $tmp/config.h
24363 cat >>"$CONFIG_STATUS" <<\EOF
24365 # CONFIG_COMMANDS section.
24367 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24368 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24369 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24376 if test ! -d "$srcdir/$cf_dir" ; then
24378 elif test -f "$srcdir/$cf_dir/programs" ; then
24379 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
24383 cat >>Makefile <<TEST_EOF
24385 # These rules are generated so we do not rely on suffix rules, which do not
24386 # work consistently for different make-programs (the '\$(MODEL)/' confuses
24387 # some, and the '\$x' confuses others).
24390 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
24393 cat >>Makefile <<TEST_EOF
24395 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
24396 \$(srcdir)/test.priv.h \\
24399 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) -DMODULE_NAME="$N" \$(srcdir)/$N.c
24403 if test -f ../config.guess && test -f ../config.sub
24405 cat >>Makefile <<TEST_EOF
24407 # if we used CF_INHERIT for getting these files, we can remove them
24409 rm -f config.guess config.sub
24417 cat >>"$CONFIG_STATUS" <<\EOF
24419 { (exit 0); exit 0; }
24421 chmod +x "$CONFIG_STATUS"
24422 ac_clean_files=$ac_clean_files_save
24424 # configure is writing to config.log, and then calls config.status.
24425 # config.status does its own redirection, appending to config.log.
24426 # Unfortunately, on DOS this fails, as config.log is still kept open
24427 # by configure, so config.status won't be able to write to it; its
24428 # output is simply discarded. So we exec the FD to /dev/null,
24429 # effectively closing config.log, so it can be properly (re)opened and
24430 # appended to by config.status. When coming back to configure, we
24431 # need to make the FD available again.
24432 if test "$no_create" != yes; then
24435 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
24437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24438 # would make configure fail if this is the last instruction.
24439 "$ac_cs_success" || { (exit 1); exit 1; }