2 # From configure.in Revision: 1.471 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20081225.
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
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-curses-h install curses.h as ncurses.h only
703 --with-pkg-config{=path} enable/disable use of pkg-config
704 --enable-pc-files generate and install .pc files for pkg-config
705 --enable-mixed-case tic should assume mixed-case filenames
706 --with-install-prefix prefixes actual install-location ($DESTDIR)
707 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
708 --with-build-cc=XXX the build C compiler ($BUILD_CC)
709 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
710 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
711 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
712 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
713 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
714 Options to Specify the Libraries Built/Used:
715 --with-libtool generate libraries with libtool
716 --with-shared generate shared-libraries
717 --with-normal generate normal-libraries (default)
718 --with-debug generate debug-libraries (default)
719 --with-profile generate profile-libraries
720 --with-termlib generate separate terminfo library
721 --with-ticlib generate separate tic library
722 --with-gpm use Alessandro Rubini's GPM library
723 --without-dlsym do not use dlsym() to load GPM dynamically
724 --with-sysmouse use sysmouse (FreeBSD console)
725 --enable-rpath use rpath option when generating shared libraries
726 --disable-relink relink shared libraries during install
727 --with-shlib-version=X Specify rel or abi version for shared libs
728 Fine-Tuning Your Configuration:
729 --disable-overwrite leave out the link to -lcurses
730 --disable-database do not use terminfo, only fallbacks/termcap
731 --with-database=XXX specify terminfo source to install
732 --with-hashed-db specify hashed-database library
733 --with-fallbacks=XXX specify list of fallback terminal descriptions
734 --without-xterm-new specify if xterm terminfo should be old version
735 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
736 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
737 --disable-big-core assume machine has little memory
738 --disable-big-strings assume compiler has only standard-size strings
739 --enable-termcap compile in termcap fallback support
740 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
741 --enable-getcap fast termcap load, no xrefs to terminfo
742 --enable-getcap-cache cache translated termcaps in ~/.terminfo
743 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
744 --disable-root-environ restrict environment when running as root
745 --enable-symlinks make tic use symbolic links not hard links
746 --enable-broken_linker compile with broken-linker support code
747 --enable-bsdpad recognize BSD-style prefix padding
748 --enable-widec compile with wide-char/UTF-8 code
749 --disable-lp64 allow chtype to be long (ignore _LP64)
750 --disable-largefile omit support for large files
751 --disable-tparm-varargs compile tparm() without varargs interface
752 --disable-tic-depends link tic library without explicit dependency on ncurses library
753 --with-bool=TYPE override fallback type of bool variable
754 --with-caps=alt compile with alternate Caps file
755 --with-chtype=TYPE override type of chtype
756 --with-ospeed=TYPE override type of ospeed variable
757 --with-mmask-t=TYPE override type of mmask_t
758 --with-rcs-ids compile-in RCS identifiers
759 Options to Specify How Manpages are Installed:
760 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
761 optionally formatted/catonly, e.g., gzip,formatted
762 --with-manpage-renames specify manpage-renaming
763 --with-manpage-aliases specify manpage-aliases using .so
764 --with-manpage-symlinks specify manpage-aliases using symlinks
765 --with-manpage-tbl specify manpage processing with tbl
767 --disable-ext-funcs disable function-extensions
768 --enable-sp-funcs disable experimental SCREEN-extensions
769 --enable-const compile with extra/non-standard const
770 --enable-ext-colors compile for 256-color support
771 --enable-ext-mouse compile for extended mouse-encoding
772 --enable-no-padding compile with $NCURSES_NO_PADDING code
773 --enable-signed-char compile using signed Boolean's in term.h
774 --enable-sigwinch compile with SIGWINCH handler
775 --enable-tcap-names compile with user-definable terminal capabilities
777 --without-develop disable development options
778 --enable-hard-tabs compile with hard-tabs code
779 --enable-xmc-glitch compile with support for xmc (magic-cookie)
781 --disable-assumed-color do not assume anything about default-colors
782 --disable-hashmap compile without hashmap scrolling-optimization
783 --enable-colorfgbg compile with $COLORFGBG code
784 --with-pthread use POSIX thread library
785 --enable-weak-symbols enable weak-symbols for pthreads
786 --enable-reentrant compile with experimental reentrant code
787 --with-wrap-prefix=XXX override prefix used for public variables
788 --enable-safe-sprintf compile with experimental safe-sprintf code
789 --disable-scroll-hints compile without scroll-hints code
790 --enable-wgetch-events compile with experimental wgetch-events code
791 Testing/development Options:
792 --enable-echo build: display "compiling" commands (default)
793 --enable-warnings build: turn on GCC compiler warnings
794 --enable-assertions test: turn on generation of assertion code
795 --with-dmalloc test: use Gray Watson's dmalloc library
796 --with-dbmalloc test: use Conor Cahill's dbmalloc library
797 --with-valgrind test: use valgrind
798 --disable-leaks test: free permanent memory, analyze leaks
799 --enable-expanded test: generate functions for certain macros
800 --disable-macros test: use functions rather than macros
801 --with-trace test: add trace() function to all models of ncurses
802 Ada95 Binding Options:
803 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
804 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
805 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
807 Some influential environment variables:
808 CC C compiler command
809 CFLAGS C compiler flags
810 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
811 nonstandard directory <lib dir>
812 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
813 headers in a nonstandard directory <include dir>
815 CXX C++ compiler command
816 CXXFLAGS C++ compiler flags
817 CXXCPP C++ preprocessor
819 Use these variables to override the choices made by `configure' or to help
820 it to find libraries and programs with nonstandard names/locations.
825 if test "$ac_init_help" = "recursive"; then
826 # If there are subdirs, report their specific --help.
828 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
830 # A "../" for each directory in /$ac_subdir.
831 ac_dots=`echo $ac_subdir |
832 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
835 .) # No --srcdir option. We are building in place.
836 ac_sub_srcdir=$srcdir ;;
837 [\\/]* | ?:[\\/]* ) # Absolute path.
838 ac_sub_srcdir=$srcdir/$ac_subdir ;;
840 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
843 # Check for guested configure; otherwise get Cygnus style configure.
844 if test -f $ac_sub_srcdir/configure.gnu; then
846 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
847 elif test -f $ac_sub_srcdir/configure; then
849 $SHELL $ac_sub_srcdir/configure --help=recursive
850 elif test -f $ac_sub_srcdir/configure.ac ||
851 test -f $ac_sub_srcdir/configure.in; then
855 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
861 test -n "$ac_init_help" && exit 0
862 if $ac_init_version; then
865 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
866 Free Software Foundation, Inc.
867 This configure script is free software; the Free Software Foundation
868 gives unlimited permission to copy, distribute and modify it.
874 This file contains any messages produced by compilers while
875 running configure, to aid debugging if configure makes a mistake.
877 It was created by $as_me, which was
878 generated by GNU Autoconf 2.52.20081225. Invocation command line was
889 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
890 uname -m = `(uname -m) 2>/dev/null || echo unknown`
891 uname -r = `(uname -r) 2>/dev/null || echo unknown`
892 uname -s = `(uname -s) 2>/dev/null || echo unknown`
893 uname -v = `(uname -v) 2>/dev/null || echo unknown`
895 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
896 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
898 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
899 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
900 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
901 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
902 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
903 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
904 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
918 # Keep a trace of the command line.
919 # Strip out --no-create and --no-recursion so they do not pile up.
920 # Also quote any args containing shell meta-characters.
926 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927 | --no-cr | --no-c) ;;
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
930 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
931 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
932 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
934 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
937 # Get rid of the leading space.
940 # When interrupted or exit'd, cleanup temporary files, and complete
941 # config.log. We remove comments because anyway the quotes in there
942 # would cause problems or look ugly.
944 # Save into config.log some information that might help in debugging.
946 echo "## ----------------- ##" >&5
947 echo "## Cache variables. ##" >&5
948 echo "## ----------------- ##" >&5
950 # The following way of writing the cache mishandles newlines in values,
953 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
956 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
961 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
965 sed "/^$/d" confdefs.h >conftest.log
966 if test -s conftest.log; then
968 echo "## ------------ ##" >&5
969 echo "## confdefs.h. ##" >&5
970 echo "## ------------ ##" >&5
975 test "$ac_signal" != 0 &&
976 echo "$as_me: caught signal $ac_signal" >&5
977 echo "$as_me: exit $exit_status" >&5
978 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
981 for ac_signal in 1 2 13 15; do
982 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
986 # confdefs.h avoids OS command line length limits that DEFS can exceed.
987 rm -rf conftest* confdefs.h
988 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
991 # Let the site file select an alternate cache file if it wants to.
992 # Prefer explicitly selected file to automatically selected ones.
993 if test -z "$CONFIG_SITE"; then
994 if test "x$prefix" != xNONE; then
995 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
997 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1000 for ac_site_file in $CONFIG_SITE; do
1001 if test -r "$ac_site_file"; then
1002 { echo "$as_me:1002: loading site script $ac_site_file" >&5
1003 echo "$as_me: loading site script $ac_site_file" >&6;}
1004 cat "$ac_site_file" >&5
1009 if test -r "$cache_file"; then
1010 # Some versions of bash will fail to source /dev/null (special
1011 # files actually), so we avoid doing that.
1012 if test -f "$cache_file"; then
1013 { echo "$as_me:1013: loading cache $cache_file" >&5
1014 echo "$as_me: loading cache $cache_file" >&6;}
1016 [\\/]* | ?:[\\/]* ) . $cache_file;;
1017 *) . ./$cache_file;;
1021 { echo "$as_me:1021: creating cache $cache_file" >&5
1022 echo "$as_me: creating cache $cache_file" >&6;}
1026 # Check that the precious variables saved in the cache have kept the same
1028 ac_cache_corrupted=false
1029 for ac_var in `(set) 2>&1 |
1030 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1031 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1032 eval ac_new_set=\$ac_env_${ac_var}_set
1033 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1034 eval ac_new_val="\$ac_env_${ac_var}_value"
1035 case $ac_old_set,$ac_new_set in
1037 { echo "$as_me:1037: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1038 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1039 ac_cache_corrupted=: ;;
1041 { echo "$as_me:1041: error: \`$ac_var' was not set in the previous run" >&5
1042 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1043 ac_cache_corrupted=: ;;
1046 if test "x$ac_old_val" != "x$ac_new_val"; then
1047 { echo "$as_me:1047: error: \`$ac_var' has changed since the previous run:" >&5
1048 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1049 { echo "$as_me:1049: former value: $ac_old_val" >&5
1050 echo "$as_me: former value: $ac_old_val" >&2;}
1051 { echo "$as_me:1051: current value: $ac_new_val" >&5
1052 echo "$as_me: current value: $ac_new_val" >&2;}
1053 ac_cache_corrupted=:
1056 # Pass precious variables to config.status. It doesn't matter if
1057 # we pass some twice (in addition to the command line arguments).
1058 if test "$ac_new_set" = set; then
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1062 ac_configure_args="$ac_configure_args '$ac_arg'"
1064 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1069 if $ac_cache_corrupted; then
1070 { echo "$as_me:1070: error: changes in the environment can compromise the build" >&5
1071 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1072 { { echo "$as_me:1072: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1073 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1074 { (exit 1); exit 1; }; }
1078 ac_cpp='$CPP $CPPFLAGS'
1079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1082 ac_main_return=return
1084 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1085 *c*,-n*) ECHO_N= ECHO_C='
1087 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1088 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1090 echo "#! $SHELL" >conftest.sh
1091 echo "exit 0" >>conftest.sh
1092 chmod +x conftest.sh
1093 if { (echo "$as_me:1093: PATH=\".;.\"; conftest.sh") >&5
1094 (PATH=".;."; conftest.sh) 2>&5
1096 echo "$as_me:1096: \$? = $ac_status" >&5
1097 (exit $ac_status); }; then
1098 ac_path_separator=';'
1102 PATH_SEPARATOR="$ac_path_separator"
1105 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1109 echo "$as_me:1109: checking for egrep" >&5
1110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1111 if test "${ac_cv_prog_egrep+set}" = set; then
1112 echo $ECHO_N "(cached) $ECHO_C" >&6
1114 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1115 then ac_cv_prog_egrep='grep -E'
1116 else ac_cv_prog_egrep='egrep'
1119 echo "$as_me:1119: result: $ac_cv_prog_egrep" >&5
1120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1121 EGREP=$ac_cv_prog_egrep
1123 test -z "$EGREP" && { { echo "$as_me:1123: error: No egrep program found" >&5
1124 echo "$as_me: error: No egrep program found" >&2;}
1125 { (exit 1); exit 1; }; }
1127 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1128 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1129 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1130 cf_cv_abi_version=${NCURSES_MAJOR}
1131 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1132 cf_cv_timestamp=`date`
1133 echo "$as_me:1133: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1134 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1136 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1138 # Check whether --with-rel-version or --without-rel-version was given.
1139 if test "${with_rel_version+set}" = set; then
1140 withval="$with_rel_version"
1141 { echo "$as_me:1141: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1142 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1143 cf_cv_rel_version=$withval
1146 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1147 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1149 if test -n "$NCURSES_MAJOR" ; then
1150 case $NCURSES_MAJOR in #(vi
1154 { { echo "$as_me:1154: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1155 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1156 { (exit 1); exit 1; }; }
1160 { { echo "$as_me:1160: error: Release major-version value is empty" >&5
1161 echo "$as_me: error: Release major-version value is empty" >&2;}
1162 { (exit 1); exit 1; }; }
1165 if test -n "$NCURSES_MINOR" ; then
1166 case $NCURSES_MINOR in #(vi
1170 { { echo "$as_me:1170: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1171 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1172 { (exit 1); exit 1; }; }
1176 { { echo "$as_me:1176: error: Release minor-version value is empty" >&5
1177 echo "$as_me: error: Release minor-version value is empty" >&2;}
1178 { (exit 1); exit 1; }; }
1181 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1183 # Check whether --with-abi-version or --without-abi-version was given.
1184 if test "${with_abi_version+set}" = set; then
1185 withval="$with_abi_version"
1186 { echo "$as_me:1186: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1187 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1188 cf_cv_abi_version=$withval
1191 if test -n "$cf_cv_abi_version" ; then
1192 case $cf_cv_abi_version in #(vi
1196 { { echo "$as_me:1196: error: ABI version is not a number: $cf_cv_abi_version" >&5
1197 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1198 { (exit 1); exit 1; }; }
1202 { { echo "$as_me:1202: error: ABI version value is empty" >&5
1203 echo "$as_me: error: ABI version value is empty" >&2;}
1204 { (exit 1); exit 1; }; }
1208 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1209 if test -f $ac_dir/install-sh; then
1211 ac_install_sh="$ac_aux_dir/install-sh -c"
1213 elif test -f $ac_dir/install.sh; then
1215 ac_install_sh="$ac_aux_dir/install.sh -c"
1217 elif test -f $ac_dir/shtool; then
1219 ac_install_sh="$ac_aux_dir/shtool install -c"
1223 if test -z "$ac_aux_dir"; then
1224 { { echo "$as_me:1224: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1225 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1226 { (exit 1); exit 1; }; }
1228 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1229 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1230 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1232 # Make sure we can run config.sub.
1233 $ac_config_sub sun4 >/dev/null 2>&1 ||
1234 { { echo "$as_me:1234: error: cannot run $ac_config_sub" >&5
1235 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1236 { (exit 1); exit 1; }; }
1238 echo "$as_me:1238: checking build system type" >&5
1239 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1240 if test "${ac_cv_build+set}" = set; then
1241 echo $ECHO_N "(cached) $ECHO_C" >&6
1243 ac_cv_build_alias=$build_alias
1244 test -z "$ac_cv_build_alias" &&
1245 ac_cv_build_alias=`$ac_config_guess`
1246 test -z "$ac_cv_build_alias" &&
1247 { { echo "$as_me:1247: error: cannot guess build type; you must specify one" >&5
1248 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1249 { (exit 1); exit 1; }; }
1250 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1251 { { echo "$as_me:1251: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1252 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1253 { (exit 1); exit 1; }; }
1256 echo "$as_me:1256: result: $ac_cv_build" >&5
1257 echo "${ECHO_T}$ac_cv_build" >&6
1259 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1260 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1261 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1263 echo "$as_me:1263: checking host system type" >&5
1264 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1265 if test "${ac_cv_host+set}" = set; then
1266 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 ac_cv_host_alias=$host_alias
1269 test -z "$ac_cv_host_alias" &&
1270 ac_cv_host_alias=$ac_cv_build_alias
1271 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1272 { { echo "$as_me:1272: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1273 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1274 { (exit 1); exit 1; }; }
1277 echo "$as_me:1277: result: $ac_cv_host" >&5
1278 echo "${ECHO_T}$ac_cv_host" >&6
1280 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1281 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1282 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1284 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1285 echo "$as_me:1285: checking target system type" >&5
1286 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1287 if test "${ac_cv_target+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 ac_cv_target_alias=$target_alias
1291 test "x$ac_cv_target_alias" = "x" &&
1292 ac_cv_target_alias=$ac_cv_host_alias
1293 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1294 { { echo "$as_me:1294: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1295 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1296 { (exit 1); exit 1; }; }
1299 echo "$as_me:1299: result: $ac_cv_target" >&5
1300 echo "${ECHO_T}$ac_cv_target" >&6
1301 target=$ac_cv_target
1302 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1303 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1304 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1306 # The aliases save the names the user supplied, while $host etc.
1307 # will get canonicalized.
1308 test -n "$target_alias" &&
1309 test "$program_prefix$program_suffix$program_transform_name" = \
1311 program_prefix=${target_alias}-
1312 system_name="$host_os"
1314 system_name="`(uname -s -r) 2>/dev/null`"
1315 if test -z "$system_name" ; then
1316 system_name="`(hostname) 2>/dev/null`"
1319 test -n "$system_name" && cat >>confdefs.h <<EOF
1320 #define SYSTEM_NAME "$system_name"
1323 if test "${cf_cv_system_name+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 cf_cv_system_name="$system_name"
1329 test -z "$system_name" && system_name="$cf_cv_system_name"
1330 test -n "$cf_cv_system_name" && echo "$as_me:1330: result: Configuring for $cf_cv_system_name" >&5
1331 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1333 if test ".$system_name" != ".$cf_cv_system_name" ; then
1334 echo "$as_me:1334: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1335 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1336 { { echo "$as_me:1336: error: \"Please remove config.cache and try again.\"" >&5
1337 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1338 { (exit 1); exit 1; }; }
1341 # Check whether --with-system-type or --without-system-type was given.
1342 if test "${with_system_type+set}" = set; then
1343 withval="$with_system_type"
1344 { echo "$as_me:1344: WARNING: overriding system type to $withval" >&5
1345 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1346 cf_cv_system_name=$withval
1349 ### Save the given $CFLAGS to allow user-override.
1350 cf_user_CFLAGS="$CFLAGS"
1352 ### Default install-location
1354 echo "$as_me:1354: checking for prefix" >&5
1355 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1356 if test "x$prefix" = "xNONE" ; then
1357 case "$cf_cv_system_name" in
1358 # non-vendor systems don't have a conflict
1359 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1362 *) prefix=$ac_default_prefix
1366 echo "$as_me:1366: result: $prefix" >&5
1367 echo "${ECHO_T}$prefix" >&6
1369 if test "x$prefix" = "xNONE" ; then
1370 echo "$as_me:1370: checking for default include-directory" >&5
1371 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1372 test -n "$verbose" && echo 1>&6
1375 $includedir/ncurses \
1377 $prefix/include/ncurses \
1378 /usr/local/include \
1379 /usr/local/include/ncurses \
1381 /usr/include/ncurses
1383 cf_dir=`eval echo $cf_symbol`
1384 if test -f $cf_dir/curses.h ; then
1385 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1386 includedir="$cf_symbol"
1387 test -n "$verbose" && echo $ac_n " found " 1>&6
1391 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1393 echo "$as_me:1393: result: $includedir" >&5
1394 echo "${ECHO_T}$includedir" >&6
1397 ### Checks for programs.
1399 ac_cpp='$CPP $CPPFLAGS'
1400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403 ac_main_return=return
1404 if test -n "$ac_tool_prefix"; then
1405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1407 echo "$as_me:1407: checking for $ac_word" >&5
1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409 if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1415 ac_save_IFS=$IFS; IFS=$ac_path_separator
1417 for ac_dir in $ac_dummy; do
1419 test -z "$ac_dir" && ac_dir=.
1420 $as_executable_p "$ac_dir/$ac_word" || continue
1421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1422 echo "$as_me:1422: found $ac_dir/$ac_word" >&5
1429 if test -n "$CC"; then
1430 echo "$as_me:1430: result: $CC" >&5
1431 echo "${ECHO_T}$CC" >&6
1433 echo "$as_me:1433: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1438 if test -z "$ac_cv_prog_CC"; then
1440 # Extract the first word of "gcc", so it can be a program name with args.
1441 set dummy gcc; ac_word=$2
1442 echo "$as_me:1442: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 if test -n "$ac_ct_CC"; then
1448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 ac_save_IFS=$IFS; IFS=$ac_path_separator
1452 for ac_dir in $ac_dummy; do
1454 test -z "$ac_dir" && ac_dir=.
1455 $as_executable_p "$ac_dir/$ac_word" || continue
1456 ac_cv_prog_ac_ct_CC="gcc"
1457 echo "$as_me:1457: found $ac_dir/$ac_word" >&5
1463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1464 if test -n "$ac_ct_CC"; then
1465 echo "$as_me:1465: result: $ac_ct_CC" >&5
1466 echo "${ECHO_T}$ac_ct_CC" >&6
1468 echo "$as_me:1468: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1477 if test -z "$CC"; then
1478 if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}cc; ac_word=$2
1481 echo "$as_me:1481: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 ac_save_IFS=$IFS; IFS=$ac_path_separator
1491 for ac_dir in $ac_dummy; do
1493 test -z "$ac_dir" && ac_dir=.
1494 $as_executable_p "$ac_dir/$ac_word" || continue
1495 ac_cv_prog_CC="${ac_tool_prefix}cc"
1496 echo "$as_me:1496: found $ac_dir/$ac_word" >&5
1503 if test -n "$CC"; then
1504 echo "$as_me:1504: result: $CC" >&5
1505 echo "${ECHO_T}$CC" >&6
1507 echo "$as_me:1507: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1512 if test -z "$ac_cv_prog_CC"; then
1514 # Extract the first word of "cc", so it can be a program name with args.
1515 set dummy cc; ac_word=$2
1516 echo "$as_me:1516: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 if test -n "$ac_ct_CC"; then
1522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1524 ac_save_IFS=$IFS; IFS=$ac_path_separator
1526 for ac_dir in $ac_dummy; do
1528 test -z "$ac_dir" && ac_dir=.
1529 $as_executable_p "$ac_dir/$ac_word" || continue
1530 ac_cv_prog_ac_ct_CC="cc"
1531 echo "$as_me:1531: found $ac_dir/$ac_word" >&5
1537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538 if test -n "$ac_ct_CC"; then
1539 echo "$as_me:1539: result: $ac_ct_CC" >&5
1540 echo "${ECHO_T}$ac_ct_CC" >&6
1542 echo "$as_me:1542: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1552 if test -z "$CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:1555: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1564 ac_save_IFS=$IFS; IFS=$ac_path_separator
1566 for ac_dir in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir=.
1569 $as_executable_p "$ac_dir/$ac_word" || continue
1570 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1571 ac_prog_rejected=yes
1575 echo "$as_me:1575: found $ac_dir/$ac_word" >&5
1579 if test $ac_prog_rejected = yes; then
1580 # We found a bogon in the path, so make sure we never use it.
1581 set dummy $ac_cv_prog_CC
1583 if test $# != 0; then
1584 # We chose a different compiler from the bogus one.
1585 # However, it has the same basename, so the bogon will be chosen
1586 # first if we set CC to just the basename; use the full file name.
1588 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1596 if test -n "$CC"; then
1597 echo "$as_me:1597: result: $CC" >&5
1598 echo "${ECHO_T}$CC" >&6
1600 echo "$as_me:1600: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1605 if test -z "$CC"; then
1606 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1611 echo "$as_me:1611: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1619 ac_save_IFS=$IFS; IFS=$ac_path_separator
1621 for ac_dir in $ac_dummy; do
1623 test -z "$ac_dir" && ac_dir=.
1624 $as_executable_p "$ac_dir/$ac_word" || continue
1625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1626 echo "$as_me:1626: found $ac_dir/$ac_word" >&5
1633 if test -n "$CC"; then
1634 echo "$as_me:1634: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:1637: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1641 test -n "$CC" && break
1644 if test -z "$CC"; then
1648 # Extract the first word of "$ac_prog", so it can be a program name with args.
1649 set dummy $ac_prog; ac_word=$2
1650 echo "$as_me:1650: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$ac_ct_CC"; then
1656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658 ac_save_IFS=$IFS; IFS=$ac_path_separator
1660 for ac_dir in $ac_dummy; do
1662 test -z "$ac_dir" && ac_dir=.
1663 $as_executable_p "$ac_dir/$ac_word" || continue
1664 ac_cv_prog_ac_ct_CC="$ac_prog"
1665 echo "$as_me:1665: found $ac_dir/$ac_word" >&5
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673 echo "$as_me:1673: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1676 echo "$as_me:1676: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1680 test -n "$ac_ct_CC" && break
1688 test -z "$CC" && { { echo "$as_me:1688: error: no acceptable cc found in \$PATH" >&5
1689 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1690 { (exit 1); exit 1; }; }
1692 # Provide some information about the compiler.
1693 echo "$as_me:1693:" \
1694 "checking for C compiler version" >&5
1695 ac_compiler=`set X $ac_compile; echo $2`
1696 { (eval echo "$as_me:1696: \"$ac_compiler --version </dev/null >&5\"") >&5
1697 (eval $ac_compiler --version </dev/null >&5) 2>&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701 { (eval echo "$as_me:1701: \"$ac_compiler -v </dev/null >&5\"") >&5
1702 (eval $ac_compiler -v </dev/null >&5) 2>&5
1704 echo "$as_me:1704: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706 { (eval echo "$as_me:1706: \"$ac_compiler -V </dev/null >&5\"") >&5
1707 (eval $ac_compiler -V </dev/null >&5) 2>&5
1709 echo "$as_me:1709: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1712 cat >conftest.$ac_ext <<_ACEOF
1713 #line 1713 "configure"
1714 #include "confdefs.h"
1724 ac_clean_files_save=$ac_clean_files
1725 ac_clean_files="$ac_clean_files a.out a.exe"
1726 # Try to create an executable without -o first, disregard a.out.
1727 # It will help us diagnose broken compilers, and finding out an intuition
1729 echo "$as_me:1729: checking for C compiler default output" >&5
1730 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1731 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1732 if { (eval echo "$as_me:1732: \"$ac_link_default\"") >&5
1733 (eval $ac_link_default) 2>&5
1735 echo "$as_me:1735: \$? = $ac_status" >&5
1736 (exit $ac_status); }; then
1737 # Find the output, starting from the most likely. This scheme is
1738 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1740 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1741 ls a.out conftest 2>/dev/null;
1742 ls a.* conftest.* 2>/dev/null`; do
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1745 a.out ) # We found the default executable, but exeext='' is most
1748 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1749 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1756 echo "$as_me: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 { { echo "$as_me:1758: error: C compiler cannot create executables" >&5
1759 echo "$as_me: error: C compiler cannot create executables" >&2;}
1760 { (exit 77); exit 77; }; }
1763 ac_exeext=$ac_cv_exeext
1764 echo "$as_me:1764: result: $ac_file" >&5
1765 echo "${ECHO_T}$ac_file" >&6
1767 # Check the compiler produces executables we can run. If not, either
1768 # the compiler is broken, or we cross compile.
1769 echo "$as_me:1769: checking whether the C compiler works" >&5
1770 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1771 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1772 # If not cross compiling, check that we can run a simple program.
1773 if test "$cross_compiling" != yes; then
1774 if { ac_try='./$ac_file'
1775 { (eval echo "$as_me:1775: \"$ac_try\"") >&5
1778 echo "$as_me:1778: \$? = $ac_status" >&5
1779 (exit $ac_status); }; }; then
1782 if test "$cross_compiling" = maybe; then
1785 { { echo "$as_me:1785: error: cannot run C compiled programs.
1786 If you meant to cross compile, use \`--host'." >&5
1787 echo "$as_me: error: cannot run C compiled programs.
1788 If you meant to cross compile, use \`--host'." >&2;}
1789 { (exit 1); exit 1; }; }
1793 echo "$as_me:1793: result: yes" >&5
1794 echo "${ECHO_T}yes" >&6
1796 rm -f a.out a.exe conftest$ac_cv_exeext
1797 ac_clean_files=$ac_clean_files_save
1798 # Check the compiler produces executables we can run. If not, either
1799 # the compiler is broken, or we cross compile.
1800 echo "$as_me:1800: checking whether we are cross compiling" >&5
1801 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1802 echo "$as_me:1802: result: $cross_compiling" >&5
1803 echo "${ECHO_T}$cross_compiling" >&6
1805 echo "$as_me:1805: checking for executable suffix" >&5
1806 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1807 if { (eval echo "$as_me:1807: \"$ac_link\"") >&5
1808 (eval $ac_link) 2>&5
1810 echo "$as_me:1810: \$? = $ac_status" >&5
1811 (exit $ac_status); }; then
1812 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1813 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1814 # work properly (i.e., refer to `conftest.exe'), while it won't with
1816 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1818 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1819 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1826 { { echo "$as_me:1826: error: cannot compute EXEEXT: cannot compile and link" >&5
1827 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1828 { (exit 1); exit 1; }; }
1831 rm -f conftest$ac_cv_exeext
1832 echo "$as_me:1832: result: $ac_cv_exeext" >&5
1833 echo "${ECHO_T}$ac_cv_exeext" >&6
1835 rm -f conftest.$ac_ext
1836 EXEEXT=$ac_cv_exeext
1838 echo "$as_me:1838: checking for object suffix" >&5
1839 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1840 if test "${ac_cv_objext+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 cat >conftest.$ac_ext <<_ACEOF
1844 #line 1844 "configure"
1845 #include "confdefs.h"
1855 rm -f conftest.o conftest.obj
1856 if { (eval echo "$as_me:1856: \"$ac_compile\"") >&5
1857 (eval $ac_compile) 2>&5
1859 echo "$as_me:1859: \$? = $ac_status" >&5
1860 (exit $ac_status); }; then
1861 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1863 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1869 echo "$as_me: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1871 { { echo "$as_me:1871: error: cannot compute OBJEXT: cannot compile" >&5
1872 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1873 { (exit 1); exit 1; }; }
1876 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1878 echo "$as_me:1878: result: $ac_cv_objext" >&5
1879 echo "${ECHO_T}$ac_cv_objext" >&6
1880 OBJEXT=$ac_cv_objext
1882 echo "$as_me:1882: checking whether we are using the GNU C compiler" >&5
1883 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1884 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 cat >conftest.$ac_ext <<_ACEOF
1888 #line 1888 "configure"
1889 #include "confdefs.h"
1902 rm -f conftest.$ac_objext
1903 if { (eval echo "$as_me:1903: \"$ac_compile\"") >&5
1904 (eval $ac_compile) 2>&5
1906 echo "$as_me:1906: \$? = $ac_status" >&5
1907 (exit $ac_status); } &&
1908 { ac_try='test -s conftest.$ac_objext'
1909 { (eval echo "$as_me:1909: \"$ac_try\"") >&5
1912 echo "$as_me:1912: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1916 echo "$as_me: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1920 rm -f conftest.$ac_objext conftest.$ac_ext
1921 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1924 echo "$as_me:1924: result: $ac_cv_c_compiler_gnu" >&5
1925 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1926 GCC=`test $ac_compiler_gnu = yes && echo yes`
1927 ac_test_CFLAGS=${CFLAGS+set}
1928 ac_save_CFLAGS=$CFLAGS
1930 echo "$as_me:1930: checking whether $CC accepts -g" >&5
1931 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1932 if test "${ac_cv_prog_cc_g+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 cat >conftest.$ac_ext <<_ACEOF
1936 #line 1936 "configure"
1937 #include "confdefs.h"
1947 rm -f conftest.$ac_objext
1948 if { (eval echo "$as_me:1948: \"$ac_compile\"") >&5
1949 (eval $ac_compile) 2>&5
1951 echo "$as_me:1951: \$? = $ac_status" >&5
1952 (exit $ac_status); } &&
1953 { ac_try='test -s conftest.$ac_objext'
1954 { (eval echo "$as_me:1954: \"$ac_try\"") >&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); }; }; then
1961 echo "$as_me: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1965 rm -f conftest.$ac_objext conftest.$ac_ext
1967 echo "$as_me:1967: result: $ac_cv_prog_cc_g" >&5
1968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1969 if test "$ac_test_CFLAGS" = set; then
1970 CFLAGS=$ac_save_CFLAGS
1971 elif test $ac_cv_prog_cc_g = yes; then
1972 if test "$GCC" = yes; then
1978 if test "$GCC" = yes; then
1984 # Some people use a C++ compiler to compile C. Since we use `exit',
1985 # in C++ we need to declare it. In case someone uses the same compiler
1986 # for both compiling C and C++ we need to have the C++ compiler decide
1987 # the declaration of exit, since it's the most demanding environment.
1988 cat >conftest.$ac_ext <<_ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:1994: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>&5
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -s conftest.$ac_objext'
2000 { (eval echo "$as_me:2000: \"$ac_try\"") >&5
2003 echo "$as_me:2003: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 for ac_declaration in \
2007 '#include <stdlib.h>' \
2008 'extern "C" void std::exit (int) throw (); using std::exit;' \
2009 'extern "C" void std::exit (int); using std::exit;' \
2010 'extern "C" void exit (int) throw ();' \
2011 'extern "C" void exit (int);' \
2014 cat >conftest.$ac_ext <<_ACEOF
2015 #line 2015 "configure"
2016 #include "confdefs.h"
2027 rm -f conftest.$ac_objext
2028 if { (eval echo "$as_me:2028: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:2031: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:2034: \"$ac_try\"") >&5
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2045 rm -f conftest.$ac_objext conftest.$ac_ext
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line 2047 "configure"
2048 #include "confdefs.h"
2058 rm -f conftest.$ac_objext
2059 if { (eval echo "$as_me:2059: \"$ac_compile\"") >&5
2060 (eval $ac_compile) 2>&5
2062 echo "$as_me:2062: \$? = $ac_status" >&5
2063 (exit $ac_status); } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:2065: \"$ac_try\"") >&5
2068 echo "$as_me:2068: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2072 echo "$as_me: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2075 rm -f conftest.$ac_objext conftest.$ac_ext
2078 if test -n "$ac_declaration"; then
2079 echo '#ifdef __cplusplus' >>confdefs.h
2080 echo $ac_declaration >>confdefs.h
2081 echo '#endif' >>confdefs.h
2085 echo "$as_me: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 rm -f conftest.$ac_objext conftest.$ac_ext
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 ac_main_return=return
2097 if test "$GCC" = yes ; then
2098 echo "$as_me:2098: checking version of $CC" >&5
2099 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2100 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2101 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2102 echo "$as_me:2102: result: $GCC_VERSION" >&5
2103 echo "${ECHO_T}$GCC_VERSION" >&6
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 ac_main_return=return
2112 echo "$as_me:2112: checking how to run the C preprocessor" >&5
2113 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2114 # On Suns, sometimes $CPP names a directory.
2115 if test -n "$CPP" && test -d "$CPP"; then
2118 if test -z "$CPP"; then
2119 if test "${ac_cv_prog_CPP+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 # Double quotes because CPP needs to be expanded
2123 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2126 for ac_c_preproc_warn_flag in '' yes
2128 # Use a header file that comes with gcc, so configuring glibc
2129 # with a fresh cross-compiler works.
2130 # On the NeXT, cc -E runs the code through the compiler's parser,
2131 # not just through cpp. "Syntax error" is here to catch this case.
2132 cat >conftest.$ac_ext <<_ACEOF
2133 #line 2133 "configure"
2134 #include "confdefs.h"
2138 if { (eval echo "$as_me:2138: \"$ac_cpp conftest.$ac_ext\"") >&5
2139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2141 egrep -v '^ *\+' conftest.er1 >conftest.err
2143 cat conftest.err >&5
2144 echo "$as_me:2144: \$? = $ac_status" >&5
2145 (exit $ac_status); } >/dev/null; then
2146 if test -s conftest.err; then
2147 ac_cpp_err=$ac_c_preproc_warn_flag
2154 if test -z "$ac_cpp_err"; then
2157 echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 # Broken: fails on valid input.
2162 rm -f conftest.err conftest.$ac_ext
2164 # OK, works on sane cases. Now check whether non-existent headers
2165 # can be detected and how.
2166 cat >conftest.$ac_ext <<_ACEOF
2167 #line 2167 "configure"
2168 #include "confdefs.h"
2169 #include <ac_nonexistent.h>
2171 if { (eval echo "$as_me:2171: \"$ac_cpp conftest.$ac_ext\"") >&5
2172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2174 egrep -v '^ *\+' conftest.er1 >conftest.err
2176 cat conftest.err >&5
2177 echo "$as_me:2177: \$? = $ac_status" >&5
2178 (exit $ac_status); } >/dev/null; then
2179 if test -s conftest.err; then
2180 ac_cpp_err=$ac_c_preproc_warn_flag
2187 if test -z "$ac_cpp_err"; then
2188 # Broken: success on invalid input.
2191 echo "$as_me: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 # Passes both tests.
2197 rm -f conftest.err conftest.$ac_ext
2200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2201 rm -f conftest.err conftest.$ac_ext
2202 if $ac_preproc_ok; then
2214 echo "$as_me:2214: result: $CPP" >&5
2215 echo "${ECHO_T}$CPP" >&6
2217 for ac_c_preproc_warn_flag in '' yes
2219 # Use a header file that comes with gcc, so configuring glibc
2220 # with a fresh cross-compiler works.
2221 # On the NeXT, cc -E runs the code through the compiler's parser,
2222 # not just through cpp. "Syntax error" is here to catch this case.
2223 cat >conftest.$ac_ext <<_ACEOF
2224 #line 2224 "configure"
2225 #include "confdefs.h"
2229 if { (eval echo "$as_me:2229: \"$ac_cpp conftest.$ac_ext\"") >&5
2230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2232 egrep -v '^ *\+' conftest.er1 >conftest.err
2234 cat conftest.err >&5
2235 echo "$as_me:2235: \$? = $ac_status" >&5
2236 (exit $ac_status); } >/dev/null; then
2237 if test -s conftest.err; then
2238 ac_cpp_err=$ac_c_preproc_warn_flag
2245 if test -z "$ac_cpp_err"; then
2248 echo "$as_me: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2250 # Broken: fails on valid input.
2253 rm -f conftest.err conftest.$ac_ext
2255 # OK, works on sane cases. Now check whether non-existent headers
2256 # can be detected and how.
2257 cat >conftest.$ac_ext <<_ACEOF
2258 #line 2258 "configure"
2259 #include "confdefs.h"
2260 #include <ac_nonexistent.h>
2262 if { (eval echo "$as_me:2262: \"$ac_cpp conftest.$ac_ext\"") >&5
2263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2265 egrep -v '^ *\+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 echo "$as_me:2268: \$? = $ac_status" >&5
2269 (exit $ac_status); } >/dev/null; then
2270 if test -s conftest.err; then
2271 ac_cpp_err=$ac_c_preproc_warn_flag
2278 if test -z "$ac_cpp_err"; then
2279 # Broken: success on invalid input.
2282 echo "$as_me: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2284 # Passes both tests.
2288 rm -f conftest.err conftest.$ac_ext
2291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2292 rm -f conftest.err conftest.$ac_ext
2293 if $ac_preproc_ok; then
2296 { { echo "$as_me:2296: error: C preprocessor \"$CPP\" fails sanity check" >&5
2297 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2298 { (exit 1); exit 1; }; }
2302 ac_cpp='$CPP $CPPFLAGS'
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306 ac_main_return=return
2308 if test $ac_cv_c_compiler_gnu = yes; then
2309 echo "$as_me:2309: checking whether $CC needs -traditional" >&5
2310 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2311 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 ac_pattern="Autoconf.*'x'"
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #line 2316 "configure"
2317 #include "confdefs.h"
2319 int Autoconf = TIOCGETP;
2321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2322 egrep "$ac_pattern" >/dev/null 2>&1; then
2323 ac_cv_prog_gcc_traditional=yes
2325 ac_cv_prog_gcc_traditional=no
2329 if test $ac_cv_prog_gcc_traditional = no; then
2330 cat >conftest.$ac_ext <<_ACEOF
2331 #line 2331 "configure"
2332 #include "confdefs.h"
2334 int Autoconf = TCGETA;
2336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2337 egrep "$ac_pattern" >/dev/null 2>&1; then
2338 ac_cv_prog_gcc_traditional=yes
2344 echo "$as_me:2344: result: $ac_cv_prog_gcc_traditional" >&5
2345 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2346 if test $ac_cv_prog_gcc_traditional = yes; then
2347 CC="$CC -traditional"
2351 echo "$as_me:2351: checking whether $CC understands -c and -o together" >&5
2352 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2353 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 cat > conftest.$ac_ext <<CF_EOF
2361 ${cf_cv_main_return:-return}(0);
2364 # We do the test twice because some compilers refuse to overwrite an
2365 # existing .o file with -o, though they will create one.
2366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2367 if { (eval echo "$as_me:2367: \"$ac_try\"") >&5
2370 echo "$as_me:2370: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 test -f conftest2.$ac_objext && { (eval echo "$as_me:2372: \"$ac_try\"") >&5
2375 echo "$as_me:2375: \$? = $ac_status" >&5
2376 (exit $ac_status); };
2378 eval cf_cv_prog_CC_c_o=yes
2380 eval cf_cv_prog_CC_c_o=no
2385 if test $cf_cv_prog_CC_c_o = yes; then
2386 echo "$as_me:2386: result: yes" >&5
2387 echo "${ECHO_T}yes" >&6
2389 echo "$as_me:2389: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2393 echo "$as_me:2393: checking for POSIXized ISC" >&5
2394 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2395 if test -d /etc/conf/kconfig.d &&
2396 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2398 echo "$as_me:2398: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2400 ISC=yes # If later tests want to check for ISC.
2402 cat >>confdefs.h <<\EOF
2403 #define _POSIX_SOURCE 1
2406 if test "$GCC" = yes; then
2412 echo "$as_me:2412: result: no" >&5
2413 echo "${ECHO_T}no" >&6
2417 echo "$as_me:2417: checking for ${CC-cc} option to accept ANSI C" >&5
2418 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2419 if test "${cf_cv_ansi_cc+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 cf_save_CFLAGS="$CFLAGS"
2425 cf_save_CPPFLAGS="$CPPFLAGS"
2426 # Don't try gcc -ansi; that turns off useful extensions and
2427 # breaks some systems' header files.
2428 # AIX -qlanglvl=ansi
2429 # Ultrix and OSF/1 -std1
2430 # HP-UX -Aa -D_HPUX_SOURCE
2432 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2433 for cf_arg in "-DCC_HAS_PROTOS" \
2438 "-Aa -D_HPUX_SOURCE" \
2445 cf_new_extra_cppflags=
2447 for cf_add_cflags in $cf_arg
2449 case $cf_fix_cppflags in
2451 case $cf_add_cflags in #(vi
2452 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2453 case $cf_add_cflags in
2455 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2457 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2458 && test -z "${cf_tst_cflags}" \
2459 && cf_fix_cppflags=yes
2461 if test $cf_fix_cppflags = yes ; then
2462 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2464 elif test "${cf_tst_cflags}" = "\"'" ; then
2465 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2471 *$cf_add_cflags) #(vi
2474 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2479 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2484 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2486 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2488 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2489 && test -z "${cf_tst_cflags}" \
2490 && cf_fix_cppflags=no
2495 if test -n "$cf_new_cflags" ; then
2497 CFLAGS="$CFLAGS $cf_new_cflags"
2500 if test -n "$cf_new_cppflags" ; then
2502 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2505 if test -n "$cf_new_extra_cppflags" ; then
2507 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2510 cat >conftest.$ac_ext <<_ACEOF
2511 #line 2511 "configure"
2512 #include "confdefs.h"
2514 #ifndef CC_HAS_PROTOS
2515 #if !defined(__STDC__) || (__STDC__ != 1)
2524 int test (int i, double x);
2525 struct s1 {int (*f) (int a);};
2526 struct s2 {int (*f) (double a);};
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:2532: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>&5
2535 echo "$as_me:2535: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (eval echo "$as_me:2538: \"$ac_try\"") >&5
2541 echo "$as_me:2541: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 cf_cv_ansi_cc="$cf_arg"; break
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 rm -f conftest.$ac_objext conftest.$ac_ext
2550 CFLAGS="$cf_save_CFLAGS"
2551 CPPFLAGS="$cf_save_CPPFLAGS"
2554 echo "$as_me:2554: result: $cf_cv_ansi_cc" >&5
2555 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2557 if test "$cf_cv_ansi_cc" != "no"; then
2558 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2563 cf_new_extra_cppflags=
2565 for cf_add_cflags in $cf_cv_ansi_cc
2567 case $cf_fix_cppflags in
2569 case $cf_add_cflags in #(vi
2570 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2571 case $cf_add_cflags in
2573 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2575 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2576 && test -z "${cf_tst_cflags}" \
2577 && cf_fix_cppflags=yes
2579 if test $cf_fix_cppflags = yes ; then
2580 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2582 elif test "${cf_tst_cflags}" = "\"'" ; then
2583 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2589 *$cf_add_cflags) #(vi
2592 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2597 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2602 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2604 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2606 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2607 && test -z "${cf_tst_cflags}" \
2608 && cf_fix_cppflags=no
2613 if test -n "$cf_new_cflags" ; then
2615 CFLAGS="$CFLAGS $cf_new_cflags"
2618 if test -n "$cf_new_cppflags" ; then
2620 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2623 if test -n "$cf_new_extra_cppflags" ; then
2625 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2629 cat >>confdefs.h <<\EOF
2630 #define CC_HAS_PROTOS 1
2636 if test "$cf_cv_ansi_cc" = "no"; then
2637 { { echo "$as_me:2637: error: Your compiler does not appear to recognize prototypes.
2638 You have the following choices:
2639 a. adjust your compiler options
2640 b. get an up-to-date compiler
2641 c. use a wrapper such as unproto" >&5
2642 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2643 You have the following choices:
2644 a. adjust your compiler options
2645 b. get an up-to-date compiler
2646 c. use a wrapper such as unproto" >&2;}
2647 { (exit 1); exit 1; }; }
2650 case $cf_cv_system_name in
2652 CFLAGS="$CFLAGS -Zmt"
2653 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2654 CXXFLAGS="$CXXFLAGS -Zmt"
2655 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2656 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2663 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2664 #define PROG_EXT "$PROG_EXT"
2667 if test "$cross_compiling" = yes ; then
2670 case "$cf_cv_system_name" in #(vi
2671 dragonfly*|freebsd*) #(vi
2672 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2674 *) LDPATH=$PATH:/sbin:/usr/sbin
2675 # Extract the first word of "ldconfig", so it can be a program name with args.
2676 set dummy ldconfig; ac_word=$2
2677 echo "$as_me:2677: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2687 ac_save_IFS=$IFS; IFS=$ac_path_separator
2689 for ac_dir in $ac_dummy; do
2691 test -z "$ac_dir" && ac_dir=.
2692 if $as_executable_p "$ac_dir/$ac_word"; then
2693 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2694 echo "$as_me:2694: found $ac_dir/$ac_word" >&5
2702 LDCONFIG=$ac_cv_path_LDCONFIG
2704 if test -n "$LDCONFIG"; then
2705 echo "$as_me:2705: result: $LDCONFIG" >&5
2706 echo "${ECHO_T}$LDCONFIG" >&6
2708 echo "$as_me:2708: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2716 echo "$as_me:2716: checking if you want to ensure bool is consistent with C++" >&5
2717 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2719 # Check whether --with-cxx or --without-cxx was given.
2720 if test "${with_cxx+set}" = set; then
2722 cf_with_cxx=$withval
2726 echo "$as_me:2726: result: $cf_with_cxx" >&5
2727 echo "${ECHO_T}$cf_with_cxx" >&6
2728 if test "X$cf_with_cxx" = Xno ; then
2732 # with autoconf 2.13, we can change the error to a warning:
2734 ac_cpp='$CXXCPP $CPPFLAGS'
2735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2738 ac_main_return=return
2739 if test -n "$ac_tool_prefix"; then
2740 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2744 echo "$as_me:2744: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2746 if test "${ac_cv_prog_CXX+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 if test -n "$CXX"; then
2750 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2752 ac_save_IFS=$IFS; IFS=$ac_path_separator
2754 for ac_dir in $ac_dummy; do
2756 test -z "$ac_dir" && ac_dir=.
2757 $as_executable_p "$ac_dir/$ac_word" || continue
2758 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2759 echo "$as_me:2759: found $ac_dir/$ac_word" >&5
2766 if test -n "$CXX"; then
2767 echo "$as_me:2767: result: $CXX" >&5
2768 echo "${ECHO_T}$CXX" >&6
2770 echo "$as_me:2770: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2774 test -n "$CXX" && break
2777 if test -z "$CXX"; then
2779 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 echo "$as_me:2783: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2785 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$ac_ct_CXX"; then
2789 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2791 ac_save_IFS=$IFS; IFS=$ac_path_separator
2793 for ac_dir in $ac_dummy; do
2795 test -z "$ac_dir" && ac_dir=.
2796 $as_executable_p "$ac_dir/$ac_word" || continue
2797 ac_cv_prog_ac_ct_CXX="$ac_prog"
2798 echo "$as_me:2798: found $ac_dir/$ac_word" >&5
2804 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2805 if test -n "$ac_ct_CXX"; then
2806 echo "$as_me:2806: result: $ac_ct_CXX" >&5
2807 echo "${ECHO_T}$ac_ct_CXX" >&6
2809 echo "$as_me:2809: result: no" >&5
2810 echo "${ECHO_T}no" >&6
2813 test -n "$ac_ct_CXX" && break
2815 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2820 # Provide some information about the compiler.
2821 echo "$as_me:2821:" \
2822 "checking for C++ compiler version" >&5
2823 ac_compiler=`set X $ac_compile; echo $2`
2824 { (eval echo "$as_me:2824: \"$ac_compiler --version </dev/null >&5\"") >&5
2825 (eval $ac_compiler --version </dev/null >&5) 2>&5
2827 echo "$as_me:2827: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829 { (eval echo "$as_me:2829: \"$ac_compiler -v </dev/null >&5\"") >&5
2830 (eval $ac_compiler -v </dev/null >&5) 2>&5
2832 echo "$as_me:2832: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2834 { (eval echo "$as_me:2834: \"$ac_compiler -V </dev/null >&5\"") >&5
2835 (eval $ac_compiler -V </dev/null >&5) 2>&5
2837 echo "$as_me:2837: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2840 echo "$as_me:2840: checking whether we are using the GNU C++ compiler" >&5
2841 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2842 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line 2846 "configure"
2847 #include "confdefs.h"
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:2861: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>&5
2864 echo "$as_me:2864: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -s conftest.$ac_objext'
2867 { (eval echo "$as_me:2867: \"$ac_try\"") >&5
2870 echo "$as_me:2870: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2874 echo "$as_me: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2878 rm -f conftest.$ac_objext conftest.$ac_ext
2879 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2882 echo "$as_me:2882: result: $ac_cv_cxx_compiler_gnu" >&5
2883 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2884 GXX=`test $ac_compiler_gnu = yes && echo yes`
2885 ac_test_CXXFLAGS=${CXXFLAGS+set}
2886 ac_save_CXXFLAGS=$CXXFLAGS
2888 echo "$as_me:2888: checking whether $CXX accepts -g" >&5
2889 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2890 if test "${ac_cv_prog_cxx_g+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line 2894 "configure"
2895 #include "confdefs.h"
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2909 echo "$as_me:2909: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:2912: \"$ac_try\"") >&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_prog_cxx_g=yes
2919 echo "$as_me: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2923 rm -f conftest.$ac_objext conftest.$ac_ext
2925 echo "$as_me:2925: result: $ac_cv_prog_cxx_g" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2927 if test "$ac_test_CXXFLAGS" = set; then
2928 CXXFLAGS=$ac_save_CXXFLAGS
2929 elif test $ac_cv_prog_cxx_g = yes; then
2930 if test "$GXX" = yes; then
2936 if test "$GXX" = yes; then
2942 for ac_declaration in \
2944 '#include <stdlib.h>' \
2945 'extern "C" void std::exit (int) throw (); using std::exit;' \
2946 'extern "C" void std::exit (int); using std::exit;' \
2947 'extern "C" void exit (int) throw ();' \
2948 'extern "C" void exit (int);' \
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line 2952 "configure"
2953 #include "confdefs.h"
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:2965: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>&5
2968 echo "$as_me:2968: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (eval echo "$as_me:2971: \"$ac_try\"") >&5
2974 echo "$as_me:2974: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2978 echo "$as_me: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2982 rm -f conftest.$ac_objext conftest.$ac_ext
2983 cat >conftest.$ac_ext <<_ACEOF
2984 #line 2984 "configure"
2985 #include "confdefs.h"
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:2996: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>&5
2999 echo "$as_me:2999: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -s conftest.$ac_objext'
3002 { (eval echo "$as_me:3002: \"$ac_try\"") >&5
3005 echo "$as_me:3005: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3009 echo "$as_me: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 rm -f conftest.$ac_objext conftest.$ac_ext
3015 if test -n "$ac_declaration"; then
3016 echo '#ifdef __cplusplus' >>confdefs.h
3017 echo $ac_declaration >>confdefs.h
3018 echo '#endif' >>confdefs.h
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 ac_main_return=return
3028 # autoconf 2.5x removed the error - by hardcoding it to g++.
3029 if test "$CXX" = "g++" ; then
3030 # Extract the first word of "g++", so it can be a program name with args.
3031 set dummy g++; ac_word=$2
3032 echo "$as_me:3032: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_path_CXX+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3042 ac_save_IFS=$IFS; IFS=$ac_path_separator
3044 for ac_dir in $ac_dummy; do
3046 test -z "$ac_dir" && ac_dir=.
3047 if $as_executable_p "$ac_dir/$ac_word"; then
3048 ac_cv_path_CXX="$ac_dir/$ac_word"
3049 echo "$as_me:3049: found $ac_dir/$ac_word" >&5
3059 if test -n "$CXX"; then
3060 echo "$as_me:3060: result: $CXX" >&5
3061 echo "${ECHO_T}$CXX" >&6
3063 echo "$as_me:3063: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3068 if test "$CXX" = "g++" ; then
3069 { echo "$as_me:3069: WARNING: ignoring hardcoded g++" >&5
3070 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3071 cf_with_cxx=no; CXX=""; GXX="";
3076 if test "$GXX" = yes; then
3077 echo "$as_me:3077: checking version of g++" >&5
3078 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3079 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3080 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3081 echo "$as_me:3081: result: $GXX_VERSION" >&5
3082 echo "${ECHO_T}$GXX_VERSION" >&6
3085 case $GXX_VERSION in
3087 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3089 { echo "$as_me:3089: WARNING: templates do not work" >&5
3090 echo "$as_me: WARNING: templates do not work" >&2;}
3094 echo "$as_me:3094: checking if you want to build C++ binding and demo" >&5
3095 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3097 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3098 if test "${with_cxx_binding+set}" = set; then
3099 withval="$with_cxx_binding"
3100 cf_with_cxx_binding=$withval
3102 cf_with_cxx_binding=$cf_with_cxx
3104 echo "$as_me:3104: result: $cf_with_cxx_binding" >&5
3105 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3107 echo "$as_me:3107: checking if you want to build with Ada95" >&5
3108 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3110 # Check whether --with-ada or --without-ada was given.
3111 if test "${with_ada+set}" = set; then
3113 cf_with_ada=$withval
3117 echo "$as_me:3117: result: $cf_with_ada" >&5
3118 echo "${ECHO_T}$cf_with_ada" >&6
3120 echo "$as_me:3120: checking if you want to install manpages" >&5
3121 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3123 # Check whether --with-manpages or --without-manpages was given.
3124 if test "${with_manpages+set}" = set; then
3125 withval="$with_manpages"
3126 cf_with_manpages=$withval
3128 cf_with_manpages=yes
3130 echo "$as_me:3130: result: $cf_with_manpages" >&5
3131 echo "${ECHO_T}$cf_with_manpages" >&6
3133 echo "$as_me:3133: checking if you want to build programs such as tic" >&5
3134 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3136 # Check whether --with-progs or --without-progs was given.
3137 if test "${with_progs+set}" = set; then
3138 withval="$with_progs"
3139 cf_with_progs=$withval
3143 echo "$as_me:3143: result: $cf_with_progs" >&5
3144 echo "${ECHO_T}$cf_with_progs" >&6
3146 echo "$as_me:3146: checking if you wish to install curses.h" >&5
3147 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3149 # Check whether --with-curses-h or --without-curses-h was given.
3150 if test "${with_curses_h+set}" = set; then
3151 withval="$with_curses_h"
3152 with_curses_h=$withval
3156 echo "$as_me:3156: result: $with_curses_h" >&5
3157 echo "${ECHO_T}$with_curses_h" >&6
3159 modules_to_build="ncurses"
3160 if test "X$cf_with_progs" != Xno ; then
3161 modules_to_build="$modules_to_build progs tack"
3163 modules_to_build="$modules_to_build panel menu form"
3165 test "$program_prefix" != NONE &&
3166 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3170 # Double any \ or $. echo might interpret backslashes.
3171 # By default was `s,x,x', remove it if useless.
3172 cat <<\_ACEOF >conftest.sed
3173 s/[\\$]/&&/g;s/;s,x,x,$//
3175 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3178 for ac_prog in mawk gawk nawk awk
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 echo "$as_me:3182: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_AWK+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -n "$AWK"; then
3188 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3190 ac_save_IFS=$IFS; IFS=$ac_path_separator
3192 for ac_dir in $ac_dummy; do
3194 test -z "$ac_dir" && ac_dir=.
3195 $as_executable_p "$ac_dir/$ac_word" || continue
3196 ac_cv_prog_AWK="$ac_prog"
3197 echo "$as_me:3197: found $ac_dir/$ac_word" >&5
3204 if test -n "$AWK"; then
3205 echo "$as_me:3205: result: $AWK" >&5
3206 echo "${ECHO_T}$AWK" >&6
3208 echo "$as_me:3208: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3212 test -n "$AWK" && break
3215 test -z "$AWK" && { { echo "$as_me:3215: error: No awk program found" >&5
3216 echo "$as_me: error: No awk program found" >&2;}
3217 { (exit 1); exit 1; }; }
3219 echo "$as_me:3219: checking for egrep" >&5
3220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3221 if test "${ac_cv_prog_egrep+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3225 then ac_cv_prog_egrep='grep -E'
3226 else ac_cv_prog_egrep='egrep'
3229 echo "$as_me:3229: result: $ac_cv_prog_egrep" >&5
3230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3231 EGREP=$ac_cv_prog_egrep
3233 test -z "$EGREP" && { { echo "$as_me:3233: error: No egrep program found" >&5
3234 echo "$as_me: error: No egrep program found" >&2;}
3235 { (exit 1); exit 1; }; }
3237 # Find a good install program. We prefer a C program (faster),
3238 # so one script is as good as another. But avoid the broken or
3239 # incompatible versions:
3240 # SysV /etc/install, /usr/sbin/install
3241 # SunOS /usr/etc/install
3242 # IRIX /sbin/install
3244 # AmigaOS /C/install, which installs bootblocks on floppy discs
3245 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3246 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3247 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3248 # ./install, which can be erroneously created by make from ./install.sh.
3249 echo "$as_me:3249: checking for a BSD compatible install" >&5
3250 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3251 if test -z "$INSTALL"; then
3252 if test "${ac_cv_path_install+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 ac_save_IFS=$IFS; IFS=$ac_path_separator
3256 for ac_dir in $PATH; do
3258 # Account for people who put trailing slashes in PATH elements.
3260 / | ./ | .// | /cC/* \
3261 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3267 for ac_prog in ginstall scoinst install; do
3268 if $as_executable_p "$ac_dir/$ac_prog"; then
3269 if test $ac_prog = install &&
3270 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3271 # AIX install. It has an incompatible calling convention.
3273 elif test $ac_prog = install &&
3274 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3275 # program-specific install script used by HP pwplus--don't use.
3278 ac_cv_path_install="$ac_dir/$ac_prog -c"
3288 if test "${ac_cv_path_install+set}" = set; then
3289 INSTALL=$ac_cv_path_install
3291 # As a last resort, use the slow shell script. We don't cache a
3292 # path for INSTALL within a source directory, because that will
3293 # break other packages using the cache if that directory is
3294 # removed, or if the path is relative.
3295 INSTALL=$ac_install_sh
3298 echo "$as_me:3298: result: $INSTALL" >&5
3299 echo "${ECHO_T}$INSTALL" >&6
3301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3302 # It thinks the first close brace ends the variable substitution.
3303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3313 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3314 test -z "$cf_dir" && cf_dir=.
3315 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3319 for ac_prog in tdlint lint alint
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 echo "$as_me:3323: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325 if test "${ac_cv_prog_LINT+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -n "$LINT"; then
3329 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3331 ac_save_IFS=$IFS; IFS=$ac_path_separator
3333 for ac_dir in $ac_dummy; do
3335 test -z "$ac_dir" && ac_dir=.
3336 $as_executable_p "$ac_dir/$ac_word" || continue
3337 ac_cv_prog_LINT="$ac_prog"
3338 echo "$as_me:3338: found $ac_dir/$ac_word" >&5
3344 LINT=$ac_cv_prog_LINT
3345 if test -n "$LINT"; then
3346 echo "$as_me:3346: result: $LINT" >&5
3347 echo "${ECHO_T}$LINT" >&6
3349 echo "$as_me:3349: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3353 test -n "$LINT" && break
3356 echo "$as_me:3356: checking whether ln -s works" >&5
3357 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3359 if test "$LN_S" = "ln -s"; then
3360 echo "$as_me:3360: result: yes" >&5
3361 echo "${ECHO_T}yes" >&6
3363 echo "$as_me:3363: result: no, using $LN_S" >&5
3364 echo "${ECHO_T}no, using $LN_S" >&6
3367 echo "$as_me:3367: checking for long file names" >&5
3368 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3369 if test "${ac_cv_sys_long_file_names+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 ac_cv_sys_long_file_names=yes
3373 # Test for long file names in all the places we know might matter:
3374 # . the current directory, where building will happen
3375 # $prefix/lib where we will be installing things
3376 # $exec_prefix/lib likewise
3377 # eval it to expand exec_prefix.
3378 # $TMPDIR if set, where it might want to write temporary files
3379 # if $TMPDIR is not set:
3380 # /tmp where it might want to write temporary files
3383 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3386 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3388 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3389 test -d $ac_dir || continue
3390 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3391 ac_xdir=$ac_dir/cf$$
3392 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3393 ac_tf1=$ac_xdir/conftest9012345
3394 ac_tf2=$ac_xdir/conftest9012346
3395 (echo 1 >$ac_tf1) 2>/dev/null
3396 (echo 2 >$ac_tf2) 2>/dev/null
3397 ac_val=`cat $ac_tf1 2>/dev/null`
3398 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3399 ac_cv_sys_long_file_names=no
3400 rm -rf $ac_xdir 2>/dev/null
3403 rm -rf $ac_xdir 2>/dev/null
3406 echo "$as_me:3406: result: $ac_cv_sys_long_file_names" >&5
3407 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3408 if test $ac_cv_sys_long_file_names = yes; then
3410 cat >>confdefs.h <<\EOF
3411 #define HAVE_LONG_FILE_NAMES 1
3416 # if we find pkg-config, check if we should install the ".pc" files.
3418 echo "$as_me:3418: checking if you want to use pkg-config" >&5
3419 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3421 # Check whether --with-pkg-config or --without-pkg-config was given.
3422 if test "${with_pkg_config+set}" = set; then
3423 withval="$with_pkg_config"
3424 cf_pkg_config=$withval
3428 echo "$as_me:3428: result: $cf_pkg_config" >&5
3429 echo "${ECHO_T}$cf_pkg_config" >&6
3431 case $cf_pkg_config in #(vi
3436 # Extract the first word of "pkg-config", so it can be a program name with args.
3437 set dummy pkg-config; ac_word=$2
3438 echo "$as_me:3438: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3448 ac_save_IFS=$IFS; IFS=$ac_path_separator
3450 for ac_dir in $ac_dummy; do
3452 test -z "$ac_dir" && ac_dir=.
3453 if $as_executable_p "$ac_dir/$ac_word"; then
3454 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3455 echo "$as_me:3455: found $ac_dir/$ac_word" >&5
3460 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3464 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3466 if test -n "$PKG_CONFIG"; then
3467 echo "$as_me:3467: result: $PKG_CONFIG" >&5
3468 echo "${ECHO_T}$PKG_CONFIG" >&6
3470 echo "$as_me:3470: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3480 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3481 if test "$PKG_CONFIG" != none ; then
3483 if test "x$prefix" != xNONE; then
3484 cf_path_syntax="$prefix"
3486 cf_path_syntax="$ac_default_prefix"
3489 case ".$PKG_CONFIG" in #(vi
3490 .\$\(*\)*|.\'*\'*) #(vi
3494 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3497 eval PKG_CONFIG="$PKG_CONFIG"
3498 case ".$PKG_CONFIG" in #(vi
3500 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3505 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3508 { { echo "$as_me:3508: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3509 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3510 { (exit 1); exit 1; }; }
3516 if test "$PKG_CONFIG" != no ; then
3517 echo "$as_me:3517: checking if we should install .pc files for $PKG_CONFIG" >&5
3518 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3520 # Leave this as something that can be overridden in the environment.
3521 if test -z "$PKG_CONFIG_LIBDIR" ; then
3522 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3525 if test -d "$PKG_CONFIG_LIBDIR" ; then
3527 # Check whether --enable-pc-files or --disable-pc-files was given.
3528 if test "${enable_pc_files+set}" = set; then
3529 enableval="$enable_pc_files"
3530 enable_pc_files=$enableval
3534 echo "$as_me:3534: result: $enable_pc_files" >&5
3535 echo "${ECHO_T}$enable_pc_files" >&6
3537 echo "$as_me:3537: result: no" >&5
3538 echo "${ECHO_T}no" >&6
3539 { echo "$as_me:3539: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3540 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3545 echo "$as_me:3545: checking if we should assume mixed-case filenames" >&5
3546 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3548 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3549 if test "${enable_mixed_case+set}" = set; then
3550 enableval="$enable_mixed_case"
3551 enable_mixedcase=$enableval
3553 enable_mixedcase=auto
3555 echo "$as_me:3555: result: $enable_mixedcase" >&5
3556 echo "${ECHO_T}$enable_mixedcase" >&6
3557 if test "$enable_mixedcase" = "auto" ; then
3559 echo "$as_me:3559: checking if filesystem supports mixed-case filenames" >&5
3560 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3561 if test "${cf_cv_mixedcase+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 if test "$cross_compiling" = yes ; then
3566 case $target_alias in #(vi
3567 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3575 rm -f conftest CONFTEST
3577 if test -f CONFTEST ; then
3582 rm -f conftest CONFTEST
3586 echo "$as_me:3586: result: $cf_cv_mixedcase" >&5
3587 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3588 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3589 #define MIXEDCASE_FILENAMES 1
3593 cf_cv_mixedcase=$enable_mixedcase
3594 if test "$enable_mixedcase" = "yes" ; then
3595 cat >>confdefs.h <<\EOF
3596 #define MIXEDCASE_FILENAMES 1
3602 # do this after mixed-case option (tags/TAGS is not as important as tic).
3603 echo "$as_me:3603: checking whether ${MAKE-make} sets \${MAKE}" >&5
3604 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3605 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3606 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 cat >conftest.make <<\EOF
3611 @echo 'ac_maketemp="${MAKE}"'
3613 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3614 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3615 if test -n "$ac_maketemp"; then
3616 eval ac_cv_prog_make_${ac_make}_set=yes
3618 eval ac_cv_prog_make_${ac_make}_set=no
3622 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3623 echo "$as_me:3623: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6
3627 echo "$as_me:3627: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3629 SET_MAKE="MAKE=${MAKE-make}"
3632 # Extract the first word of "ctags", so it can be a program name with args.
3633 set dummy ctags; ac_word=$2
3634 echo "$as_me:3634: checking for $ac_word" >&5
3635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 if test -n "$MAKE_LOWER_TAGS"; then
3640 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3642 ac_save_IFS=$IFS; IFS=$ac_path_separator
3644 for ac_dir in $ac_dummy; do
3646 test -z "$ac_dir" && ac_dir=.
3647 $as_executable_p "$ac_dir/$ac_word" || continue
3648 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3649 echo "$as_me:3649: found $ac_dir/$ac_word" >&5
3653 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3656 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3657 if test -n "$MAKE_LOWER_TAGS"; then
3658 echo "$as_me:3658: result: $MAKE_LOWER_TAGS" >&5
3659 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3661 echo "$as_me:3661: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3665 if test "$cf_cv_mixedcase" = yes ; then
3666 # Extract the first word of "etags", so it can be a program name with args.
3667 set dummy etags; ac_word=$2
3668 echo "$as_me:3668: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 if test -n "$MAKE_UPPER_TAGS"; then
3674 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3676 ac_save_IFS=$IFS; IFS=$ac_path_separator
3678 for ac_dir in $ac_dummy; do
3680 test -z "$ac_dir" && ac_dir=.
3681 $as_executable_p "$ac_dir/$ac_word" || continue
3682 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3683 echo "$as_me:3683: found $ac_dir/$ac_word" >&5
3687 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3690 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3691 if test -n "$MAKE_UPPER_TAGS"; then
3692 echo "$as_me:3692: result: $MAKE_UPPER_TAGS" >&5
3693 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3695 echo "$as_me:3695: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3703 if test "$MAKE_UPPER_TAGS" = yes ; then
3709 if test "$MAKE_LOWER_TAGS" = yes ; then
3715 echo "$as_me:3715: checking for makeflags variable" >&5
3716 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3717 if test "${cf_cv_makeflags+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3724 cat >cf_makeflags.tmp <<CF_EOF
3727 @ echo '.$cf_option'
3729 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3730 case "$cf_result" in
3732 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3733 case "$cf_result" in
3734 .*CC=*) cf_cv_makeflags=
3736 *) cf_cv_makeflags=$cf_option
3742 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3746 rm -f cf_makeflags.tmp
3749 echo "$as_me:3749: result: $cf_cv_makeflags" >&5
3750 echo "${ECHO_T}$cf_cv_makeflags" >&6
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3754 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3755 echo "$as_me:3755: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_RANLIB+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$RANLIB"; then
3761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3763 ac_save_IFS=$IFS; IFS=$ac_path_separator
3765 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 $as_executable_p "$ac_dir/$ac_word" || continue
3769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3770 echo "$as_me:3770: found $ac_dir/$ac_word" >&5
3776 RANLIB=$ac_cv_prog_RANLIB
3777 if test -n "$RANLIB"; then
3778 echo "$as_me:3778: result: $RANLIB" >&5
3779 echo "${ECHO_T}$RANLIB" >&6
3781 echo "$as_me:3781: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3786 if test -z "$ac_cv_prog_RANLIB"; then
3787 ac_ct_RANLIB=$RANLIB
3788 # Extract the first word of "ranlib", so it can be a program name with args.
3789 set dummy ranlib; ac_word=$2
3790 echo "$as_me:3790: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3792 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 if test -n "$ac_ct_RANLIB"; then
3796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3798 ac_save_IFS=$IFS; IFS=$ac_path_separator
3800 for ac_dir in $ac_dummy; do
3802 test -z "$ac_dir" && ac_dir=.
3803 $as_executable_p "$ac_dir/$ac_word" || continue
3804 ac_cv_prog_ac_ct_RANLIB="ranlib"
3805 echo "$as_me:3805: found $ac_dir/$ac_word" >&5
3809 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3812 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3813 if test -n "$ac_ct_RANLIB"; then
3814 echo "$as_me:3814: result: $ac_ct_RANLIB" >&5
3815 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3817 echo "$as_me:3817: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3821 RANLIB=$ac_ct_RANLIB
3823 RANLIB="$ac_cv_prog_RANLIB"
3826 if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}ld; ac_word=$2
3829 echo "$as_me:3829: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831 if test "${ac_cv_prog_LD+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 if test -n "$LD"; then
3835 ac_cv_prog_LD="$LD" # Let the user override the test.
3837 ac_save_IFS=$IFS; IFS=$ac_path_separator
3839 for ac_dir in $ac_dummy; do
3841 test -z "$ac_dir" && ac_dir=.
3842 $as_executable_p "$ac_dir/$ac_word" || continue
3843 ac_cv_prog_LD="${ac_tool_prefix}ld"
3844 echo "$as_me:3844: found $ac_dir/$ac_word" >&5
3851 if test -n "$LD"; then
3852 echo "$as_me:3852: result: $LD" >&5
3853 echo "${ECHO_T}$LD" >&6
3855 echo "$as_me:3855: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3860 if test -z "$ac_cv_prog_LD"; then
3862 # Extract the first word of "ld", so it can be a program name with args.
3863 set dummy ld; ac_word=$2
3864 echo "$as_me:3864: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$ac_ct_LD"; then
3870 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3872 ac_save_IFS=$IFS; IFS=$ac_path_separator
3874 for ac_dir in $ac_dummy; do
3876 test -z "$ac_dir" && ac_dir=.
3877 $as_executable_p "$ac_dir/$ac_word" || continue
3878 ac_cv_prog_ac_ct_LD="ld"
3879 echo "$as_me:3879: found $ac_dir/$ac_word" >&5
3883 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3886 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3887 if test -n "$ac_ct_LD"; then
3888 echo "$as_me:3888: result: $ac_ct_LD" >&5
3889 echo "${ECHO_T}$ac_ct_LD" >&6
3891 echo "$as_me:3891: result: no" >&5
3892 echo "${ECHO_T}no" >&6
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}ar; ac_word=$2
3903 echo "$as_me:3903: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_prog_AR+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 if test -n "$AR"; then
3909 ac_cv_prog_AR="$AR" # Let the user override the test.
3911 ac_save_IFS=$IFS; IFS=$ac_path_separator
3913 for ac_dir in $ac_dummy; do
3915 test -z "$ac_dir" && ac_dir=.
3916 $as_executable_p "$ac_dir/$ac_word" || continue
3917 ac_cv_prog_AR="${ac_tool_prefix}ar"
3918 echo "$as_me:3918: found $ac_dir/$ac_word" >&5
3925 if test -n "$AR"; then
3926 echo "$as_me:3926: result: $AR" >&5
3927 echo "${ECHO_T}$AR" >&6
3929 echo "$as_me:3929: result: no" >&5
3930 echo "${ECHO_T}no" >&6
3934 if test -z "$ac_cv_prog_AR"; then
3936 # Extract the first word of "ar", so it can be a program name with args.
3937 set dummy ar; ac_word=$2
3938 echo "$as_me:3938: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 if test -n "$ac_ct_AR"; then
3944 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3946 ac_save_IFS=$IFS; IFS=$ac_path_separator
3948 for ac_dir in $ac_dummy; do
3950 test -z "$ac_dir" && ac_dir=.
3951 $as_executable_p "$ac_dir/$ac_word" || continue
3952 ac_cv_prog_ac_ct_AR="ar"
3953 echo "$as_me:3953: found $ac_dir/$ac_word" >&5
3957 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3960 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3961 if test -n "$ac_ct_AR"; then
3962 echo "$as_me:3962: result: $ac_ct_AR" >&5
3963 echo "${ECHO_T}$ac_ct_AR" >&6
3965 echo "$as_me:3965: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3974 if test -n "$ac_tool_prefix"; then
3975 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}ar; ac_word=$2
3977 echo "$as_me:3977: checking for $ac_word" >&5
3978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979 if test "${ac_cv_prog_AR+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 if test -n "$AR"; then
3983 ac_cv_prog_AR="$AR" # Let the user override the test.
3985 ac_save_IFS=$IFS; IFS=$ac_path_separator
3987 for ac_dir in $ac_dummy; do
3989 test -z "$ac_dir" && ac_dir=.
3990 $as_executable_p "$ac_dir/$ac_word" || continue
3991 ac_cv_prog_AR="${ac_tool_prefix}ar"
3992 echo "$as_me:3992: found $ac_dir/$ac_word" >&5
3999 if test -n "$AR"; then
4000 echo "$as_me:4000: result: $AR" >&5
4001 echo "${ECHO_T}$AR" >&6
4003 echo "$as_me:4003: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4008 if test -z "$ac_cv_prog_AR"; then
4010 # Extract the first word of "ar", so it can be a program name with args.
4011 set dummy ar; ac_word=$2
4012 echo "$as_me:4012: checking for $ac_word" >&5
4013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 if test -n "$ac_ct_AR"; then
4018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4020 ac_save_IFS=$IFS; IFS=$ac_path_separator
4022 for ac_dir in $ac_dummy; do
4024 test -z "$ac_dir" && ac_dir=.
4025 $as_executable_p "$ac_dir/$ac_word" || continue
4026 ac_cv_prog_ac_ct_AR="ar"
4027 echo "$as_me:4027: found $ac_dir/$ac_word" >&5
4031 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4034 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4035 if test -n "$ac_ct_AR"; then
4036 echo "$as_me:4036: result: $ac_ct_AR" >&5
4037 echo "${ECHO_T}$ac_ct_AR" >&6
4039 echo "$as_me:4039: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4048 echo "$as_me:4048: checking for options to update archives" >&5
4049 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4050 if test "${cf_cv_ar_flags+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 cf_cv_ar_flags=unknown
4055 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4057 rm -f conftest.$ac_cv_objext
4060 cat >conftest.$ac_ext <<EOF
4061 #line 4061 "configure"
4062 int testdata[3] = { 123, 456, 789 };
4064 if { (eval echo "$as_me:4064: \"$ac_compile\"") >&5
4065 (eval $ac_compile) 2>&5
4067 echo "$as_me:4067: \$? = $ac_status" >&5
4068 (exit $ac_status); } ; then
4069 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4070 if test -f conftest.a ; then
4071 cf_cv_ar_flags=$cf_ar_flags
4075 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4077 echo "${as_me-configure}:4077: testing cannot compile test-program ..." 1>&5
4082 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4085 echo "$as_me:4085: result: $cf_cv_ar_flags" >&5
4086 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4087 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
4088 ARFLAGS=$cf_cv_ar_flags
4090 echo "$as_me:4090: checking if you have specified an install-prefix" >&5
4091 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4093 # Check whether --with-install-prefix or --without-install-prefix was given.
4094 if test "${with_install_prefix+set}" = set; then
4095 withval="$with_install_prefix"
4096 case "$withval" in #(vi
4099 *) DESTDIR="$withval"
4103 echo "$as_me:4103: result: $DESTDIR" >&5
4104 echo "${ECHO_T}$DESTDIR" >&6
4106 ###############################################################################
4108 # If we're cross-compiling, allow the user to override the tools and their
4109 # options. The configure script is oriented toward identifying the host
4110 # compiler, etc., but we need a build compiler to generate parts of the source.
4112 if test "$cross_compiling" = yes ; then
4114 # defaults that we might want to override
4115 : ${BUILD_CFLAGS:=''}
4116 : ${BUILD_CPPFLAGS:=''}
4117 : ${BUILD_LDFLAGS:=''}
4119 : ${BUILD_EXEEXT:='$x'}
4120 : ${BUILD_OBJEXT:='o'}
4122 # Check whether --with-build-cc or --without-build-cc was given.
4123 if test "${with_build_cc+set}" = set; then
4124 withval="$with_build_cc"
4127 for ac_prog in gcc cc cl
4129 # Extract the first word of "$ac_prog", so it can be a program name with args.
4130 set dummy $ac_prog; ac_word=$2
4131 echo "$as_me:4131: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 if test -n "$BUILD_CC"; then
4137 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4139 ac_save_IFS=$IFS; IFS=$ac_path_separator
4141 for ac_dir in $ac_dummy; do
4143 test -z "$ac_dir" && ac_dir=.
4144 $as_executable_p "$ac_dir/$ac_word" || continue
4145 ac_cv_prog_BUILD_CC="$ac_prog"
4146 echo "$as_me:4146: found $ac_dir/$ac_word" >&5
4152 BUILD_CC=$ac_cv_prog_BUILD_CC
4153 if test -n "$BUILD_CC"; then
4154 echo "$as_me:4154: result: $BUILD_CC" >&5
4155 echo "${ECHO_T}$BUILD_CC" >&6
4157 echo "$as_me:4157: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4161 test -n "$BUILD_CC" && break
4165 echo "$as_me:4165: checking for native build C compiler" >&5
4166 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4167 echo "$as_me:4167: result: $BUILD_CC" >&5
4168 echo "${ECHO_T}$BUILD_CC" >&6
4170 echo "$as_me:4170: checking for native build C preprocessor" >&5
4171 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4173 # Check whether --with-build-cpp or --without-build-cpp was given.
4174 if test "${with_build_cpp+set}" = set; then
4175 withval="$with_build_cpp"
4176 BUILD_CPP="$withval"
4178 BUILD_CPP='${BUILD_CC} -E'
4180 echo "$as_me:4180: result: $BUILD_CPP" >&5
4181 echo "${ECHO_T}$BUILD_CPP" >&6
4183 echo "$as_me:4183: checking for native build C flags" >&5
4184 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4186 # Check whether --with-build-cflags or --without-build-cflags was given.
4187 if test "${with_build_cflags+set}" = set; then
4188 withval="$with_build_cflags"
4189 BUILD_CFLAGS="$withval"
4191 echo "$as_me:4191: result: $BUILD_CFLAGS" >&5
4192 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4194 echo "$as_me:4194: checking for native build C preprocessor-flags" >&5
4195 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4197 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4198 if test "${with_build_cppflags+set}" = set; then
4199 withval="$with_build_cppflags"
4200 BUILD_CPPFLAGS="$withval"
4202 echo "$as_me:4202: result: $BUILD_CPPFLAGS" >&5
4203 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4205 echo "$as_me:4205: checking for native build linker-flags" >&5
4206 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4208 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4209 if test "${with_build_ldflags+set}" = set; then
4210 withval="$with_build_ldflags"
4211 BUILD_LDFLAGS="$withval"
4213 echo "$as_me:4213: result: $BUILD_LDFLAGS" >&5
4214 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4216 echo "$as_me:4216: checking for native build linker-libraries" >&5
4217 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4219 # Check whether --with-build-libs or --without-build-libs was given.
4220 if test "${with_build_libs+set}" = set; then
4221 withval="$with_build_libs"
4222 BUILD_LIBS="$withval"
4224 echo "$as_me:4224: result: $BUILD_LIBS" >&5
4225 echo "${ECHO_T}$BUILD_LIBS" >&6
4227 # this assumes we're on Unix.
4231 : ${BUILD_CC:='${CC}'}
4233 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4234 { { echo "$as_me:4234: error: Cross-build requires two compilers.
4235 Use --with-build-cc to specify the native compiler." >&5
4236 echo "$as_me: error: Cross-build requires two compilers.
4237 Use --with-build-cc to specify the native compiler." >&2;}
4238 { (exit 1); exit 1; }; }
4242 : ${BUILD_CC:='${CC}'}
4243 : ${BUILD_CPP:='${CPP}'}
4244 : ${BUILD_CFLAGS:='${CFLAGS}'}
4245 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4246 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4247 : ${BUILD_LIBS:='${LIBS}'}
4248 : ${BUILD_EXEEXT:='$x'}
4249 : ${BUILD_OBJEXT:='o'}
4252 ###############################################################################
4254 ### Options to allow the user to specify the set of libraries which are used.
4255 ### Use "--without-normal --with-shared" to allow the default model to be
4256 ### shared, for example.
4261 # common library maintenance symbols that are convenient for libtool scripts:
4262 LIB_CREATE='${AR} -cr'
4263 LIB_OBJECT='${OBJECTS}'
4267 # symbols used to prop libtool up to enable it to determine what it should be
4275 echo "$as_me:4275: checking if you want to build libraries with libtool" >&5
4276 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4278 # Check whether --with-libtool or --without-libtool was given.
4279 if test "${with_libtool+set}" = set; then
4280 withval="$with_libtool"
4281 with_libtool=$withval
4285 echo "$as_me:4285: result: $with_libtool" >&5
4286 echo "${ECHO_T}$with_libtool" >&6
4287 if test "$with_libtool" != "no"; then
4289 if test "$with_libtool" != "yes" ; then
4291 if test "x$prefix" != xNONE; then
4292 cf_path_syntax="$prefix"
4294 cf_path_syntax="$ac_default_prefix"
4297 case ".$with_libtool" in #(vi
4298 .\$\(*\)*|.\'*\'*) #(vi
4302 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4305 eval with_libtool="$with_libtool"
4306 case ".$with_libtool" in #(vi
4308 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4313 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4316 { { echo "$as_me:4316: error: expected a pathname, not \"$with_libtool\"" >&5
4317 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4318 { (exit 1); exit 1; }; }
4322 LIBTOOL=$with_libtool
4324 # Extract the first word of "libtool", so it can be a program name with args.
4325 set dummy libtool; ac_word=$2
4326 echo "$as_me:4326: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4328 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4336 ac_save_IFS=$IFS; IFS=$ac_path_separator
4338 for ac_dir in $ac_dummy; do
4340 test -z "$ac_dir" && ac_dir=.
4341 if $as_executable_p "$ac_dir/$ac_word"; then
4342 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4343 echo "$as_me:4343: found $ac_dir/$ac_word" >&5
4351 LIBTOOL=$ac_cv_path_LIBTOOL
4353 if test -n "$LIBTOOL"; then
4354 echo "$as_me:4354: result: $LIBTOOL" >&5
4355 echo "${ECHO_T}$LIBTOOL" >&6
4357 echo "$as_me:4357: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4362 if test -z "$LIBTOOL" ; then
4363 { { echo "$as_me:4363: error: Cannot find libtool" >&5
4364 echo "$as_me: error: Cannot find libtool" >&2;}
4365 { (exit 1); exit 1; }; }
4367 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4368 LIB_OBJECT='${OBJECTS:.o=.lo}'
4370 LIB_CLEAN='${LIBTOOL} --mode=clean'
4371 LIB_COMPILE='${LIBTOOL} --mode=compile'
4372 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4373 LIB_INSTALL='${LIBTOOL} --mode=install'
4374 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4377 # Show the version of libtool
4378 echo "$as_me:4378: checking version of libtool" >&5
4379 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4381 # Save the version in a cache variable - this is not entirely a good
4382 # thing, but the version string from libtool is very ugly, and for
4383 # bug reports it might be useful to have the original string. "("
4384 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4385 echo "$as_me:4385: result: $cf_cv_libtool_version" >&5
4386 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4387 if test -z "$cf_cv_libtool_version" ; then
4388 { { echo "$as_me:4388: error: This is not GNU libtool" >&5
4389 echo "$as_me: error: This is not GNU libtool" >&2;}
4390 { (exit 1); exit 1; }; }
4393 # special hack to add -no-undefined (which libtool should do for itself)
4395 case "$cf_cv_system_name" in #(vi
4396 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4397 LT_UNDEF=-no-undefined
4401 # special hack to add --tag option for C++ compiler
4402 case $cf_cv_libtool_version in #(vi
4403 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4404 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4405 LIBTOOL="$LIBTOOL --tag=CC"
4408 LIBTOOL_CXX="$LIBTOOL"
4416 test -z "$LIBTOOL" && ECHO_LT=
4418 if test "$with_libtool" != "no" ; then
4420 cf_list_models="$cf_list_models libtool"
4424 echo "$as_me:4424: checking if you want to build shared libraries" >&5
4425 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4427 # Check whether --with-shared or --without-shared was given.
4428 if test "${with_shared+set}" = set; then
4429 withval="$with_shared"
4430 with_shared=$withval
4434 echo "$as_me:4434: result: $with_shared" >&5
4435 echo "${ECHO_T}$with_shared" >&6
4436 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4438 echo "$as_me:4438: checking if you want to build static libraries" >&5
4439 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4441 # Check whether --with-normal or --without-normal was given.
4442 if test "${with_normal+set}" = set; then
4443 withval="$with_normal"
4444 with_normal=$withval
4448 echo "$as_me:4448: result: $with_normal" >&5
4449 echo "${ECHO_T}$with_normal" >&6
4450 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4452 echo "$as_me:4452: checking if you want to build debug libraries" >&5
4453 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4455 # Check whether --with-debug or --without-debug was given.
4456 if test "${with_debug+set}" = set; then
4457 withval="$with_debug"
4462 echo "$as_me:4462: result: $with_debug" >&5
4463 echo "${ECHO_T}$with_debug" >&6
4464 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4466 echo "$as_me:4466: checking if you want to build profiling libraries" >&5
4467 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4469 # Check whether --with-profile or --without-profile was given.
4470 if test "${with_profile+set}" = set; then
4471 withval="$with_profile"
4472 with_profile=$withval
4476 echo "$as_me:4476: result: $with_profile" >&5
4477 echo "${ECHO_T}$with_profile" >&6
4478 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4482 ###############################################################################
4484 echo "$as_me:4484: checking for specified models" >&5
4485 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4486 test -z "$cf_list_models" && cf_list_models=normal
4487 test "$with_libtool" != "no" && cf_list_models=libtool
4488 echo "$as_me:4488: result: $cf_list_models" >&5
4489 echo "${ECHO_T}$cf_list_models" >&6
4491 ### Use the first model as the default, and save its suffix for use in building
4492 ### up test-applications.
4493 echo "$as_me:4493: checking for default model" >&5
4494 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4495 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4496 echo "$as_me:4496: result: $DFT_LWR_MODEL" >&5
4497 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4499 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4510 case $cf_cv_system_name in #(vi
4517 cf_prefix=$LIB_PREFIX
4519 LIB_PREFIX=$cf_prefix
4523 ###############################################################################
4525 echo "$as_me:4525: checking if you want to build a separate terminfo library" >&5
4526 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4528 # Check whether --with-termlib or --without-termlib was given.
4529 if test "${with_termlib+set}" = set; then
4530 withval="$with_termlib"
4531 with_termlib=$withval
4535 echo "$as_me:4535: result: $with_termlib" >&5
4536 echo "${ECHO_T}$with_termlib" >&6
4538 echo "$as_me:4538: checking if you want to build a separate tic library" >&5
4539 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4541 # Check whether --with-ticlib or --without-ticlib was given.
4542 if test "${with_ticlib+set}" = set; then
4543 withval="$with_ticlib"
4544 with_ticlib=$withval
4548 echo "$as_me:4548: result: $with_ticlib" >&5
4549 echo "${ECHO_T}$with_ticlib" >&6
4551 ### Checks for special libraries, must be done up-front.
4554 echo "$as_me:4554: checking if you want to link with the GPM mouse library" >&5
4555 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4557 # Check whether --with-gpm or --without-gpm was given.
4558 if test "${with_gpm+set}" = set; then
4564 echo "$as_me:4564: result: $with_gpm" >&5
4565 echo "${ECHO_T}$with_gpm" >&6
4567 if test "$with_gpm" != no ; then
4568 echo "$as_me:4568: checking for gpm.h" >&5
4569 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4570 if test "${ac_cv_header_gpm_h+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 cat >conftest.$ac_ext <<_ACEOF
4574 #line 4574 "configure"
4575 #include "confdefs.h"
4578 if { (eval echo "$as_me:4578: \"$ac_cpp conftest.$ac_ext\"") >&5
4579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4581 egrep -v '^ *\+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:4584: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null; then
4586 if test -s conftest.err; then
4587 ac_cpp_err=$ac_c_preproc_warn_flag
4594 if test -z "$ac_cpp_err"; then
4595 ac_cv_header_gpm_h=yes
4597 echo "$as_me: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4599 ac_cv_header_gpm_h=no
4601 rm -f conftest.err conftest.$ac_ext
4603 echo "$as_me:4603: result: $ac_cv_header_gpm_h" >&5
4604 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4605 if test $ac_cv_header_gpm_h = yes; then
4607 cat >>confdefs.h <<\EOF
4608 #define HAVE_GPM_H 1
4611 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4612 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4614 echo "${as_me-configure}:4614: testing assuming we really have GPM library ..." 1>&5
4616 cat >>confdefs.h <<\EOF
4617 #define HAVE_LIBGPM 1
4621 echo "$as_me:4621: checking for Gpm_Open in -lgpm" >&5
4622 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4623 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_check_lib_save_LIBS=$LIBS
4628 cat >conftest.$ac_ext <<_ACEOF
4629 #line 4629 "configure"
4630 #include "confdefs.h"
4632 /* Override any gcc2 internal prototype to avoid an error. */
4636 /* We use char because int might match the return type of a gcc2
4637 builtin and then its argument prototype would still apply. */
4647 rm -f conftest.$ac_objext conftest$ac_exeext
4648 if { (eval echo "$as_me:4648: \"$ac_link\"") >&5
4649 (eval $ac_link) 2>&5
4651 echo "$as_me:4651: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -s conftest$ac_exeext'
4654 { (eval echo "$as_me:4654: \"$ac_try\"") >&5
4657 echo "$as_me:4657: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_lib_gpm_Gpm_Open=yes
4661 echo "$as_me: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4663 ac_cv_lib_gpm_Gpm_Open=no
4665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4666 LIBS=$ac_check_lib_save_LIBS
4668 echo "$as_me:4668: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4669 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4670 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4674 { { echo "$as_me:4674: error: Cannot link with GPM library" >&5
4675 echo "$as_me: error: Cannot link with GPM library" >&2;}
4676 { (exit 1); exit 1; }; }
4684 test "$with_gpm" != maybe && { echo "$as_me:4684: WARNING: Cannot find GPM header" >&5
4685 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4692 if test "$with_gpm" != no ; then
4693 echo "$as_me:4693: checking if you want to load GPM dynamically" >&5
4694 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4696 # Check whether --with-dlsym or --without-dlsym was given.
4697 if test "${with_dlsym+set}" = set; then
4698 withval="$with_dlsym"
4703 echo "$as_me:4703: result: $with_dlsym" >&5
4704 echo "${ECHO_T}$with_dlsym" >&6
4705 if test "$with_dlsym" = yes ; then
4708 echo "$as_me:4708: checking for dlsym" >&5
4709 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4710 if test "${ac_cv_func_dlsym+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 cat >conftest.$ac_ext <<_ACEOF
4714 #line 4714 "configure"
4715 #include "confdefs.h"
4716 /* System header to define __stub macros and hopefully few prototypes,
4717 which can conflict with char dlsym (); below. */
4719 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4731 /* The GNU C library defines this for functions which it implements
4732 to always fail with ENOSYS. Some functions are actually named
4733 something starting with __ and the normal name is an alias. */
4734 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4744 rm -f conftest.$ac_objext conftest$ac_exeext
4745 if { (eval echo "$as_me:4745: \"$ac_link\"") >&5
4746 (eval $ac_link) 2>&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -s conftest$ac_exeext'
4751 { (eval echo "$as_me:4751: \"$ac_try\"") >&5
4754 echo "$as_me:4754: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 ac_cv_func_dlsym=yes
4758 echo "$as_me: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4764 echo "$as_me:4764: result: $ac_cv_func_dlsym" >&5
4765 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4766 if test $ac_cv_func_dlsym = yes; then
4771 echo "$as_me:4771: checking for dlsym in -ldl" >&5
4772 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4773 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 ac_check_lib_save_LIBS=$LIBS
4778 cat >conftest.$ac_ext <<_ACEOF
4779 #line 4779 "configure"
4780 #include "confdefs.h"
4782 /* Override any gcc2 internal prototype to avoid an error. */
4786 /* We use char because int might match the return type of a gcc2
4787 builtin and then its argument prototype would still apply. */
4797 rm -f conftest.$ac_objext conftest$ac_exeext
4798 if { (eval echo "$as_me:4798: \"$ac_link\"") >&5
4799 (eval $ac_link) 2>&5
4801 echo "$as_me:4801: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:4804: \"$ac_try\"") >&5
4807 echo "$as_me:4807: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_lib_dl_dlsym=yes
4811 echo "$as_me: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4813 ac_cv_lib_dl_dlsym=no
4815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4816 LIBS=$ac_check_lib_save_LIBS
4818 echo "$as_me:4818: result: $ac_cv_lib_dl_dlsym" >&5
4819 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4820 if test $ac_cv_lib_dl_dlsym = yes; then
4828 if test "$cf_have_dlsym" = yes ; then
4829 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4831 echo "$as_me:4831: checking whether able to link to dl*() functions" >&5
4832 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4833 cat >conftest.$ac_ext <<_ACEOF
4834 #line 4834 "configure"
4835 #include "confdefs.h"
4842 if ((obj = dlopen("filename", 0)) != 0) {
4843 if (dlsym(obj, "symbolname") == 0) {
4851 rm -f conftest.$ac_objext conftest$ac_exeext
4852 if { (eval echo "$as_me:4852: \"$ac_link\"") >&5
4853 (eval $ac_link) 2>&5
4855 echo "$as_me:4855: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -s conftest$ac_exeext'
4858 { (eval echo "$as_me:4858: \"$ac_try\"") >&5
4861 echo "$as_me:4861: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4864 cat >>confdefs.h <<\EOF
4865 #define HAVE_LIBDL 1
4869 echo "$as_me: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 { { echo "$as_me:4872: error: Cannot link test program for libdl" >&5
4873 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4874 { (exit 1); exit 1; }; }
4876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4877 echo "$as_me:4877: result: ok" >&5
4878 echo "${ECHO_T}ok" >&6
4880 { { echo "$as_me:4880: error: Cannot find dlsym function" >&5
4881 echo "$as_me: error: Cannot find dlsym function" >&2;}
4882 { (exit 1); exit 1; }; }
4885 if test "$with_gpm" != yes ; then
4886 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4888 echo "${as_me-configure}:4888: testing assuming soname for gpm is $with_gpm ..." 1>&5
4890 cf_cv_gpm_soname="$with_gpm"
4893 echo "$as_me:4893: checking for soname of gpm library"