2 # From configure.in Revision: 1.499 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100530.
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 --disable-libtool-version enable to use libtool's incompatible naming scheme
716 --with-libtool generate libraries with libtool
717 --with-shared generate shared-libraries
718 --with-normal generate normal-libraries (default)
719 --with-debug generate debug-libraries (default)
720 --with-profile generate profile-libraries
721 --with-termlib generate separate terminfo library
722 --with-ticlib generate separate tic library
723 --with-gpm use Alessandro Rubini's GPM library
724 --without-dlsym do not use dlsym() to load GPM dynamically
725 --with-sysmouse use sysmouse (FreeBSD console)
726 --enable-rpath use rpath option when generating shared libraries
727 --disable-relink relink shared libraries during install
728 --with-shlib-version=X Specify rel or abi version for shared libs
729 --disable-rpath-hack don't add rpath options for additional libraries
730 Fine-Tuning Your Configuration:
731 --disable-overwrite leave out the link to -lcurses
732 --disable-database do not use terminfo, only fallbacks/termcap
733 --with-database=XXX specify terminfo source to install
734 --with-hashed-db specify hashed-database library
735 --with-fallbacks=XXX specify list of fallback terminal descriptions
736 --without-xterm-new specify if xterm terminfo should be old version
737 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
738 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
739 --disable-big-core assume machine has little memory
740 --disable-big-strings assume compiler has only standard-size strings
741 --enable-termcap compile in termcap fallback support
742 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
743 --enable-getcap fast termcap load, no xrefs to terminfo
744 --enable-getcap-cache cache translated termcaps in ~/.terminfo
745 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
746 --disable-root-environ restrict environment when running as root
747 --enable-symlinks make tic use symbolic links not hard links
748 --enable-broken_linker compile with broken-linker support code
749 --enable-bsdpad recognize BSD-style prefix padding
750 --enable-widec compile with wide-char/UTF-8 code
751 --disable-lp64 allow chtype to be long (ignore _LP64)
752 --disable-largefile omit support for large files
753 --disable-tparm-varargs compile tparm() without varargs interface
754 --disable-tic-depends link tic library without explicit dependency on ncurses library
755 --with-bool=TYPE override fallback type of bool variable
756 --with-caps=alt compile with alternate Caps file
757 --with-chtype=TYPE override type of chtype
758 --with-ospeed=TYPE override type of ospeed variable
759 --with-mmask-t=TYPE override type of mmask_t
760 --with-ccharw-max=XXX override size CCHARW_MAX
761 --with-rcs-ids compile-in RCS identifiers
762 Options to Specify How Manpages are Installed:
763 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
764 optionally formatted/catonly, e.g., gzip,formatted
765 --with-manpage-renames specify manpage-renaming
766 --with-manpage-aliases specify manpage-aliases using .so
767 --with-manpage-symlinks specify manpage-aliases using symlinks
768 --with-manpage-tbl specify manpage processing with tbl
770 --disable-ext-funcs disable function-extensions
771 --enable-sp-funcs enable experimental SCREEN-extensions
772 --enable-term-driver enable experimental terminal-driver
773 --enable-const compile with extra/non-standard const
774 --enable-ext-colors compile for 256-color support
775 --enable-ext-mouse compile for extended mouse-encoding
776 --enable-no-padding compile with $NCURSES_NO_PADDING code
777 --enable-signed-char compile using signed Boolean's in term.h
778 --enable-sigwinch compile with SIGWINCH handler
779 --enable-tcap-names compile with user-definable terminal capabilities
781 --without-develop disable development options
782 --enable-hard-tabs compile with hard-tabs code
783 --enable-xmc-glitch compile with support for xmc (magic-cookie)
785 --disable-assumed-color do not assume anything about default-colors
786 --disable-hashmap compile without hashmap scrolling-optimization
787 --enable-colorfgbg compile-in experimental $COLORFGBG code
788 --enable-interop compile-in experimental interop bindings
789 --with-pthread use POSIX thread library
790 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
791 --enable-weak-symbols enable weak-symbols for pthreads
792 --enable-reentrant compile with experimental reentrant code
793 --with-wrap-prefix=XXX override prefix used for public variables
794 --enable-safe-sprintf compile with experimental safe-sprintf code
795 --disable-scroll-hints compile without scroll-hints code
796 --enable-wgetch-events compile with experimental wgetch-events code
797 Testing/development Options:
798 --enable-echo build: display "compiling" commands (default)
799 --enable-warnings build: turn on GCC compiler warnings
800 --enable-assertions test: turn on generation of assertion code
801 --with-dmalloc test: use Gray Watson's dmalloc library
802 --with-dbmalloc test: use Conor Cahill's dbmalloc library
803 --with-valgrind test: use valgrind
804 --disable-leaks test: free permanent memory, analyze leaks
805 --enable-expanded test: generate functions for certain macros
806 --disable-macros test: use functions rather than macros
807 --with-trace test: add trace() function to all models of ncurses
808 Ada95 Binding Options:
809 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
810 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
811 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
812 --with-ada-sharedlib=XX build Ada95 shared-library
814 Some influential environment variables:
815 CC C compiler command
816 CFLAGS C compiler flags
817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
818 nonstandard directory <lib dir>
819 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
820 headers in a nonstandard directory <include dir>
822 CXX C++ compiler command
823 CXXFLAGS C++ compiler flags
824 CXXCPP C++ preprocessor
826 Use these variables to override the choices made by `configure' or to help
827 it to find libraries and programs with nonstandard names/locations.
832 if test "$ac_init_help" = "recursive"; then
833 # If there are subdirs, report their specific --help.
835 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
837 # A "../" for each directory in /$ac_subdir.
838 ac_dots=`echo $ac_subdir |
839 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
842 .) # No --srcdir option. We are building in place.
843 ac_sub_srcdir=$srcdir ;;
844 [\\/]* | ?:[\\/]* ) # Absolute path.
845 ac_sub_srcdir=$srcdir/$ac_subdir ;;
847 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
850 # Check for guested configure; otherwise get Cygnus style configure.
851 if test -f $ac_sub_srcdir/configure.gnu; then
853 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
854 elif test -f $ac_sub_srcdir/configure; then
856 $SHELL $ac_sub_srcdir/configure --help=recursive
857 elif test -f $ac_sub_srcdir/configure.ac ||
858 test -f $ac_sub_srcdir/configure.in; then
862 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
868 test -n "$ac_init_help" && exit 0
869 if $ac_init_version; then
872 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
873 Free Software Foundation, Inc.
874 This configure script is free software; the Free Software Foundation
875 gives unlimited permission to copy, distribute and modify it.
881 This file contains any messages produced by compilers while
882 running configure, to aid debugging if configure makes a mistake.
884 It was created by $as_me, which was
885 generated by GNU Autoconf 2.52.20100530. Invocation command line was
896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
908 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
925 # Keep a trace of the command line.
926 # Strip out --no-create and --no-recursion so they do not pile up.
927 # Also quote any args containing shell meta-characters.
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c) ;;
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
937 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
938 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
939 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
941 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
944 # Get rid of the leading space.
947 # When interrupted or exit'd, cleanup temporary files, and complete
948 # config.log. We remove comments because anyway the quotes in there
949 # would cause problems or look ugly.
951 # Save into config.log some information that might help in debugging.
953 echo "## ----------------- ##" >&5
954 echo "## Cache variables. ##" >&5
955 echo "## ----------------- ##" >&5
957 # The following way of writing the cache mishandles newlines in values,
960 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
963 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
968 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
972 sed "/^$/d" confdefs.h >conftest.log
973 if test -s conftest.log; then
975 echo "## ------------ ##" >&5
976 echo "## confdefs.h. ##" >&5
977 echo "## ------------ ##" >&5
982 test "$ac_signal" != 0 &&
983 echo "$as_me: caught signal $ac_signal" >&5
984 echo "$as_me: exit $exit_status" >&5
985 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
988 for ac_signal in 1 2 13 15; do
989 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
994 rm -rf conftest* confdefs.h
995 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
998 # Let the site file select an alternate cache file if it wants to.
999 # Prefer explicitly selected file to automatically selected ones.
1000 if test -z "$CONFIG_SITE"; then
1001 if test "x$prefix" != xNONE; then
1002 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1004 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1007 for ac_site_file in $CONFIG_SITE; do
1008 if test -r "$ac_site_file"; then
1009 { echo "$as_me:1009: loading site script $ac_site_file" >&5
1010 echo "$as_me: loading site script $ac_site_file" >&6;}
1011 cat "$ac_site_file" >&5
1016 if test -r "$cache_file"; then
1017 # Some versions of bash will fail to source /dev/null (special
1018 # files actually), so we avoid doing that.
1019 if test -f "$cache_file"; then
1020 { echo "$as_me:1020: loading cache $cache_file" >&5
1021 echo "$as_me: loading cache $cache_file" >&6;}
1023 [\\/]* | ?:[\\/]* ) . $cache_file;;
1024 *) . ./$cache_file;;
1028 { echo "$as_me:1028: creating cache $cache_file" >&5
1029 echo "$as_me: creating cache $cache_file" >&6;}
1033 # Check that the precious variables saved in the cache have kept the same
1035 ac_cache_corrupted=false
1036 for ac_var in `(set) 2>&1 |
1037 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1038 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1039 eval ac_new_set=\$ac_env_${ac_var}_set
1040 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1041 eval ac_new_val="\$ac_env_${ac_var}_value"
1042 case $ac_old_set,$ac_new_set in
1044 { echo "$as_me:1044: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1045 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1046 ac_cache_corrupted=: ;;
1048 { echo "$as_me:1048: error: \`$ac_var' was not set in the previous run" >&5
1049 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1050 ac_cache_corrupted=: ;;
1053 if test "x$ac_old_val" != "x$ac_new_val"; then
1054 { echo "$as_me:1054: error: \`$ac_var' has changed since the previous run:" >&5
1055 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1056 { echo "$as_me:1056: former value: $ac_old_val" >&5
1057 echo "$as_me: former value: $ac_old_val" >&2;}
1058 { echo "$as_me:1058: current value: $ac_new_val" >&5
1059 echo "$as_me: current value: $ac_new_val" >&2;}
1060 ac_cache_corrupted=:
1063 # Pass precious variables to config.status. It doesn't matter if
1064 # we pass some twice (in addition to the command line arguments).
1065 if test "$ac_new_set" = set; then
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1069 ac_configure_args="$ac_configure_args '$ac_arg'"
1071 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1076 if $ac_cache_corrupted; then
1077 { echo "$as_me:1077: error: changes in the environment can compromise the build" >&5
1078 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1079 { { echo "$as_me:1079: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1080 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1081 { (exit 1); exit 1; }; }
1085 ac_cpp='$CPP $CPPFLAGS'
1086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1089 ac_main_return=return
1091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1092 *c*,-n*) ECHO_N= ECHO_C='
1094 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1095 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1097 echo "#! $SHELL" >conftest.sh
1098 echo "exit 0" >>conftest.sh
1099 chmod +x conftest.sh
1100 if { (echo "$as_me:1100: PATH=\".;.\"; conftest.sh") >&5
1101 (PATH=".;."; conftest.sh) 2>&5
1103 echo "$as_me:1103: \$? = $ac_status" >&5
1104 (exit $ac_status); }; then
1105 ac_path_separator=';'
1109 PATH_SEPARATOR="$ac_path_separator"
1112 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1116 echo "$as_me:1116: checking for egrep" >&5
1117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1118 if test "${ac_cv_prog_egrep+set}" = set; then
1119 echo $ECHO_N "(cached) $ECHO_C" >&6
1121 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1122 then ac_cv_prog_egrep='grep -E'
1123 else ac_cv_prog_egrep='egrep'
1126 echo "$as_me:1126: result: $ac_cv_prog_egrep" >&5
1127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1128 EGREP=$ac_cv_prog_egrep
1130 test -z "$EGREP" && { { echo "$as_me:1130: error: No egrep program found" >&5
1131 echo "$as_me: error: No egrep program found" >&2;}
1132 { (exit 1); exit 1; }; }
1134 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1135 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1136 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1137 cf_cv_abi_version=${NCURSES_MAJOR}
1138 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1139 cf_cv_timestamp=`date`
1140 echo "$as_me:1140: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1141 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1143 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1145 # Check whether --with-rel-version or --without-rel-version was given.
1146 if test "${with_rel_version+set}" = set; then
1147 withval="$with_rel_version"
1148 { echo "$as_me:1148: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1149 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1150 cf_cv_rel_version=$withval
1153 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1154 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1156 if test -n "$NCURSES_MAJOR" ; then
1157 case $NCURSES_MAJOR in #(vi
1161 { { echo "$as_me:1161: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1162 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1163 { (exit 1); exit 1; }; }
1167 { { echo "$as_me:1167: error: Release major-version value is empty" >&5
1168 echo "$as_me: error: Release major-version value is empty" >&2;}
1169 { (exit 1); exit 1; }; }
1172 if test -n "$NCURSES_MINOR" ; then
1173 case $NCURSES_MINOR in #(vi
1177 { { echo "$as_me:1177: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1178 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1179 { (exit 1); exit 1; }; }
1183 { { echo "$as_me:1183: error: Release minor-version value is empty" >&5
1184 echo "$as_me: error: Release minor-version value is empty" >&2;}
1185 { (exit 1); exit 1; }; }
1188 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1190 # Check whether --with-abi-version or --without-abi-version was given.
1191 if test "${with_abi_version+set}" = set; then
1192 withval="$with_abi_version"
1193 { echo "$as_me:1193: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1194 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1195 cf_cv_abi_version=$withval
1198 if test -n "$cf_cv_abi_version" ; then
1199 case $cf_cv_abi_version in #(vi
1203 { { echo "$as_me:1203: error: ABI version is not a number: $cf_cv_abi_version" >&5
1204 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1205 { (exit 1); exit 1; }; }
1209 { { echo "$as_me:1209: error: ABI version value is empty" >&5
1210 echo "$as_me: error: ABI version value is empty" >&2;}
1211 { (exit 1); exit 1; }; }
1215 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1216 if test -f $ac_dir/install-sh; then
1218 ac_install_sh="$ac_aux_dir/install-sh -c"
1220 elif test -f $ac_dir/install.sh; then
1222 ac_install_sh="$ac_aux_dir/install.sh -c"
1224 elif test -f $ac_dir/shtool; then
1226 ac_install_sh="$ac_aux_dir/shtool install -c"
1230 if test -z "$ac_aux_dir"; then
1231 { { echo "$as_me:1231: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1232 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1233 { (exit 1); exit 1; }; }
1235 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1236 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1237 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1239 # Make sure we can run config.sub.
1240 $ac_config_sub sun4 >/dev/null 2>&1 ||
1241 { { echo "$as_me:1241: error: cannot run $ac_config_sub" >&5
1242 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1243 { (exit 1); exit 1; }; }
1245 echo "$as_me:1245: checking build system type" >&5
1246 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1247 if test "${ac_cv_build+set}" = set; then
1248 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 ac_cv_build_alias=$build_alias
1251 test -z "$ac_cv_build_alias" &&
1252 ac_cv_build_alias=`$ac_config_guess`
1253 test -z "$ac_cv_build_alias" &&
1254 { { echo "$as_me:1254: error: cannot guess build type; you must specify one" >&5
1255 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1256 { (exit 1); exit 1; }; }
1257 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1258 { { echo "$as_me:1258: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1259 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1260 { (exit 1); exit 1; }; }
1263 echo "$as_me:1263: result: $ac_cv_build" >&5
1264 echo "${ECHO_T}$ac_cv_build" >&6
1266 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1267 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1268 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1270 echo "$as_me:1270: checking host system type" >&5
1271 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1272 if test "${ac_cv_host+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 ac_cv_host_alias=$host_alias
1276 test -z "$ac_cv_host_alias" &&
1277 ac_cv_host_alias=$ac_cv_build_alias
1278 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1279 { { echo "$as_me:1279: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1280 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1281 { (exit 1); exit 1; }; }
1284 echo "$as_me:1284: result: $ac_cv_host" >&5
1285 echo "${ECHO_T}$ac_cv_host" >&6
1287 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1288 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1289 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1291 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1292 echo "$as_me:1292: checking target system type" >&5
1293 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1294 if test "${ac_cv_target+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 ac_cv_target_alias=$target_alias
1298 test "x$ac_cv_target_alias" = "x" &&
1299 ac_cv_target_alias=$ac_cv_host_alias
1300 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1301 { { echo "$as_me:1301: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1302 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1303 { (exit 1); exit 1; }; }
1306 echo "$as_me:1306: result: $ac_cv_target" >&5
1307 echo "${ECHO_T}$ac_cv_target" >&6
1308 target=$ac_cv_target
1309 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1310 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1311 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1313 # The aliases save the names the user supplied, while $host etc.
1314 # will get canonicalized.
1315 test -n "$target_alias" &&
1316 test "$program_prefix$program_suffix$program_transform_name" = \
1318 program_prefix=${target_alias}-
1319 system_name="$host_os"
1321 system_name="`(uname -s -r) 2>/dev/null`"
1322 if test -z "$system_name" ; then
1323 system_name="`(hostname) 2>/dev/null`"
1326 test -n "$system_name" && cat >>confdefs.h <<EOF
1327 #define SYSTEM_NAME "$system_name"
1330 if test "${cf_cv_system_name+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 cf_cv_system_name="$system_name"
1336 test -z "$system_name" && system_name="$cf_cv_system_name"
1337 test -n "$cf_cv_system_name" && echo "$as_me:1337: result: Configuring for $cf_cv_system_name" >&5
1338 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1340 if test ".$system_name" != ".$cf_cv_system_name" ; then
1341 echo "$as_me:1341: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1342 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1343 { { echo "$as_me:1343: error: \"Please remove config.cache and try again.\"" >&5
1344 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1345 { (exit 1); exit 1; }; }
1348 # Check whether --with-system-type or --without-system-type was given.
1349 if test "${with_system_type+set}" = set; then
1350 withval="$with_system_type"
1351 { echo "$as_me:1351: WARNING: overriding system type to $withval" >&5
1352 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1353 cf_cv_system_name=$withval
1356 ### Save the given $CFLAGS to allow user-override.
1357 cf_user_CFLAGS="$CFLAGS"
1359 ### Default install-location
1361 echo "$as_me:1361: checking for prefix" >&5
1362 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1363 if test "x$prefix" = "xNONE" ; then
1364 case "$cf_cv_system_name" in
1365 # non-vendor systems don't have a conflict
1366 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1369 *) prefix=$ac_default_prefix
1373 echo "$as_me:1373: result: $prefix" >&5
1374 echo "${ECHO_T}$prefix" >&6
1376 if test "x$prefix" = "xNONE" ; then
1377 echo "$as_me:1377: checking for default include-directory" >&5
1378 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1379 test -n "$verbose" && echo 1>&6
1382 $includedir/ncurses \
1384 $prefix/include/ncurses \
1385 /usr/local/include \
1386 /usr/local/include/ncurses \
1388 /usr/include/ncurses
1390 cf_dir=`eval echo $cf_symbol`
1391 if test -f $cf_dir/curses.h ; then
1392 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1393 includedir="$cf_symbol"
1394 test -n "$verbose" && echo $ac_n " found " 1>&6
1398 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1400 echo "$as_me:1400: result: $includedir" >&5
1401 echo "${ECHO_T}$includedir" >&6
1404 ### Checks for programs.
1406 ac_cpp='$CPP $CPPFLAGS'
1407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1410 ac_main_return=return
1411 if test -n "$ac_tool_prefix"; then
1412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1414 echo "$as_me:1414: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 if test -n "$CC"; then
1420 ac_cv_prog_CC="$CC" # Let the user override the test.
1422 ac_save_IFS=$IFS; IFS=$ac_path_separator
1424 for ac_dir in $ac_dummy; do
1426 test -z "$ac_dir" && ac_dir=.
1427 $as_executable_p "$ac_dir/$ac_word" || continue
1428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1429 echo "$as_me:1429: found $ac_dir/$ac_word" >&5
1436 if test -n "$CC"; then
1437 echo "$as_me:1437: result: $CC" >&5
1438 echo "${ECHO_T}$CC" >&6
1440 echo "$as_me:1440: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1445 if test -z "$ac_cv_prog_CC"; then
1447 # Extract the first word of "gcc", so it can be a program name with args.
1448 set dummy gcc; ac_word=$2
1449 echo "$as_me:1449: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 if test -n "$ac_ct_CC"; then
1455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1457 ac_save_IFS=$IFS; IFS=$ac_path_separator
1459 for ac_dir in $ac_dummy; do
1461 test -z "$ac_dir" && ac_dir=.
1462 $as_executable_p "$ac_dir/$ac_word" || continue
1463 ac_cv_prog_ac_ct_CC="gcc"
1464 echo "$as_me:1464: found $ac_dir/$ac_word" >&5
1470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1471 if test -n "$ac_ct_CC"; then
1472 echo "$as_me:1472: result: $ac_ct_CC" >&5
1473 echo "${ECHO_T}$ac_ct_CC" >&6
1475 echo "$as_me:1475: result: no" >&5
1476 echo "${ECHO_T}no" >&6
1484 if test -z "$CC"; then
1485 if test -n "$ac_tool_prefix"; then
1486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1487 set dummy ${ac_tool_prefix}cc; ac_word=$2
1488 echo "$as_me:1488: checking for $ac_word" >&5
1489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490 if test "${ac_cv_prog_CC+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 if test -n "$CC"; then
1494 ac_cv_prog_CC="$CC" # Let the user override the test.
1496 ac_save_IFS=$IFS; IFS=$ac_path_separator
1498 for ac_dir in $ac_dummy; do
1500 test -z "$ac_dir" && ac_dir=.
1501 $as_executable_p "$ac_dir/$ac_word" || continue
1502 ac_cv_prog_CC="${ac_tool_prefix}cc"
1503 echo "$as_me:1503: found $ac_dir/$ac_word" >&5
1510 if test -n "$CC"; then
1511 echo "$as_me:1511: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1514 echo "$as_me:1514: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1519 if test -z "$ac_cv_prog_CC"; then
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:1523: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 ac_save_IFS=$IFS; IFS=$ac_path_separator
1533 for ac_dir in $ac_dummy; do
1535 test -z "$ac_dir" && ac_dir=.
1536 $as_executable_p "$ac_dir/$ac_word" || continue
1537 ac_cv_prog_ac_ct_CC="cc"
1538 echo "$as_me:1538: found $ac_dir/$ac_word" >&5
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:1546: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1549 echo "$as_me:1549: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1559 if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:1562: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1571 ac_save_IFS=$IFS; IFS=$ac_path_separator
1573 for ac_dir in $ac_dummy; do
1575 test -z "$ac_dir" && ac_dir=.
1576 $as_executable_p "$ac_dir/$ac_word" || continue
1577 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1578 ac_prog_rejected=yes
1582 echo "$as_me:1582: found $ac_dir/$ac_word" >&5
1586 if test $ac_prog_rejected = yes; then
1587 # We found a bogon in the path, so make sure we never use it.
1588 set dummy $ac_cv_prog_CC
1590 if test $# != 0; then
1591 # We chose a different compiler from the bogus one.
1592 # However, it has the same basename, so the bogon will be chosen
1593 # first if we set CC to just the basename; use the full file name.
1595 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1603 if test -n "$CC"; then
1604 echo "$as_me:1604: result: $CC" >&5
1605 echo "${ECHO_T}$CC" >&6
1607 echo "$as_me:1607: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1612 if test -z "$CC"; then
1613 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1618 echo "$as_me:1618: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 ac_save_IFS=$IFS; IFS=$ac_path_separator
1628 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 $as_executable_p "$ac_dir/$ac_word" || continue
1632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1633 echo "$as_me:1633: found $ac_dir/$ac_word" >&5
1640 if test -n "$CC"; then
1641 echo "$as_me:1641: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1644 echo "$as_me:1644: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1648 test -n "$CC" && break
1651 if test -z "$CC"; then
1655 # Extract the first word of "$ac_prog", so it can be a program name with args.
1656 set dummy $ac_prog; ac_word=$2
1657 echo "$as_me:1657: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 if test -n "$ac_ct_CC"; then
1663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 ac_save_IFS=$IFS; IFS=$ac_path_separator
1667 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 $as_executable_p "$ac_dir/$ac_word" || continue
1671 ac_cv_prog_ac_ct_CC="$ac_prog"
1672 echo "$as_me:1672: found $ac_dir/$ac_word" >&5
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:1680: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1683 echo "$as_me:1683: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$ac_ct_CC" && break
1695 test -z "$CC" && { { echo "$as_me:1695: error: no acceptable cc found in \$PATH" >&5
1696 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1697 { (exit 1); exit 1; }; }
1699 # Provide some information about the compiler.
1700 echo "$as_me:1700:" \
1701 "checking for C compiler version" >&5
1702 ac_compiler=`set X $ac_compile; echo $2`
1703 { (eval echo "$as_me:1703: \"$ac_compiler --version </dev/null >&5\"") >&5
1704 (eval $ac_compiler --version </dev/null >&5) 2>&5
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708 { (eval echo "$as_me:1708: \"$ac_compiler -v </dev/null >&5\"") >&5
1709 (eval $ac_compiler -v </dev/null >&5) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1713 { (eval echo "$as_me:1713: \"$ac_compiler -V </dev/null >&5\"") >&5
1714 (eval $ac_compiler -V </dev/null >&5) 2>&5
1716 echo "$as_me:1716: \$? = $ac_status" >&5
1717 (exit $ac_status); }
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line 1720 "configure"
1721 #include "confdefs.h"
1731 ac_clean_files_save=$ac_clean_files
1732 ac_clean_files="$ac_clean_files a.out a.exe"
1733 # Try to create an executable without -o first, disregard a.out.
1734 # It will help us diagnose broken compilers, and finding out an intuition
1736 echo "$as_me:1736: checking for C compiler default output" >&5
1737 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1739 if { (eval echo "$as_me:1739: \"$ac_link_default\"") >&5
1740 (eval $ac_link_default) 2>&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); }; then
1744 # Find the output, starting from the most likely. This scheme is
1745 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1747 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1748 ls a.out conftest 2>/dev/null;
1749 ls a.* conftest.* 2>/dev/null`; do
1751 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1752 a.out ) # We found the default executable, but exeext='' is most
1755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1763 echo "$as_me: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 { { echo "$as_me:1765: error: C compiler cannot create executables" >&5
1766 echo "$as_me: error: C compiler cannot create executables" >&2;}
1767 { (exit 77); exit 77; }; }
1770 ac_exeext=$ac_cv_exeext
1771 echo "$as_me:1771: result: $ac_file" >&5
1772 echo "${ECHO_T}$ac_file" >&6
1774 # Check the compiler produces executables we can run. If not, either
1775 # the compiler is broken, or we cross compile.
1776 echo "$as_me:1776: checking whether the C compiler works" >&5
1777 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1778 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1779 # If not cross compiling, check that we can run a simple program.
1780 if test "$cross_compiling" != yes; then
1781 if { ac_try='./$ac_file'
1782 { (eval echo "$as_me:1782: \"$ac_try\"") >&5
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1789 if test "$cross_compiling" = maybe; then
1792 { { echo "$as_me:1792: error: cannot run C compiled programs.
1793 If you meant to cross compile, use \`--host'." >&5
1794 echo "$as_me: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&2;}
1796 { (exit 1); exit 1; }; }
1800 echo "$as_me:1800: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1803 rm -f a.out a.exe conftest$ac_cv_exeext
1804 ac_clean_files=$ac_clean_files_save
1805 # Check the compiler produces executables we can run. If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:1807: checking whether we are cross compiling" >&5
1808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1809 echo "$as_me:1809: result: $cross_compiling" >&5
1810 echo "${ECHO_T}$cross_compiling" >&6
1812 echo "$as_me:1812: checking for executable suffix" >&5
1813 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1814 if { (eval echo "$as_me:1814: \"$ac_link\"") >&5
1815 (eval $ac_link) 2>&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1821 # work properly (i.e., refer to `conftest.exe'), while it won't with
1823 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1826 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 { { echo "$as_me:1833: error: cannot compute EXEEXT: cannot compile and link" >&5
1834 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1835 { (exit 1); exit 1; }; }
1838 rm -f conftest$ac_cv_exeext
1839 echo "$as_me:1839: result: $ac_cv_exeext" >&5
1840 echo "${ECHO_T}$ac_cv_exeext" >&6
1842 rm -f conftest.$ac_ext
1843 EXEEXT=$ac_cv_exeext
1845 echo "$as_me:1845: checking for object suffix" >&5
1846 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1847 if test "${ac_cv_objext+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1862 rm -f conftest.o conftest.obj
1863 if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); }; then
1868 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1870 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 { { echo "$as_me:1878: error: cannot compute OBJEXT: cannot compile" >&5
1879 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1880 { (exit 1); exit 1; }; }
1883 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1885 echo "$as_me:1885: result: $ac_cv_objext" >&5
1886 echo "${ECHO_T}$ac_cv_objext" >&6
1887 OBJEXT=$ac_cv_objext
1889 echo "$as_me:1889: checking whether we are using the GNU C compiler" >&5
1890 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 cat >conftest.$ac_ext <<_ACEOF
1895 #line 1895 "configure"
1896 #include "confdefs.h"
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:1910: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -s conftest.$ac_objext'
1916 { (eval echo "$as_me:1916: \"$ac_try\"") >&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); }; }; then
1923 echo "$as_me: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1927 rm -f conftest.$ac_objext conftest.$ac_ext
1928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1931 echo "$as_me:1931: result: $ac_cv_c_compiler_gnu" >&5
1932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1933 GCC=`test $ac_compiler_gnu = yes && echo yes`
1934 ac_test_CFLAGS=${CFLAGS+set}
1935 ac_save_CFLAGS=$CFLAGS
1937 echo "$as_me:1937: checking whether $CC accepts -g" >&5
1938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1939 if test "${ac_cv_prog_cc_g+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line 1943 "configure"
1944 #include "confdefs.h"
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:1955: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>&5
1958 echo "$as_me:1958: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try='test -s conftest.$ac_objext'
1961 { (eval echo "$as_me:1961: \"$ac_try\"") >&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1968 echo "$as_me: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1972 rm -f conftest.$ac_objext conftest.$ac_ext
1974 echo "$as_me:1974: result: $ac_cv_prog_cc_g" >&5
1975 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1976 if test "$ac_test_CFLAGS" = set; then
1977 CFLAGS=$ac_save_CFLAGS
1978 elif test $ac_cv_prog_cc_g = yes; then
1979 if test "$GCC" = yes; then
1985 if test "$GCC" = yes; then
1991 # Some people use a C++ compiler to compile C. Since we use `exit',
1992 # in C++ we need to declare it. In case someone uses the same compiler
1993 # for both compiling C and C++ we need to have the C++ compiler decide
1994 # the declaration of exit, since it's the most demanding environment.
1995 cat >conftest.$ac_ext <<_ACEOF
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:2001: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit $ac_status); } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:2007: \"$ac_try\"") >&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 for ac_declaration in \
2014 '#include <stdlib.h>' \
2015 'extern "C" void std::exit (int) throw (); using std::exit;' \
2016 'extern "C" void std::exit (int); using std::exit;' \
2017 'extern "C" void exit (int) throw ();' \
2018 'extern "C" void exit (int);' \
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line 2022 "configure"
2023 #include "confdefs.h"
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:2035: \"$ac_compile\"") >&5
2036 (eval $ac_compile) 2>&5
2038 echo "$as_me:2038: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:2041: \"$ac_try\"") >&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2052 rm -f conftest.$ac_objext conftest.$ac_ext
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:2066: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); } &&
2071 { ac_try='test -s conftest.$ac_objext'
2072 { (eval echo "$as_me:2072: \"$ac_try\"") >&5
2075 echo "$as_me:2075: \$? = $ac_status" >&5
2076 (exit $ac_status); }; }; then
2079 echo "$as_me: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 rm -f conftest.$ac_objext conftest.$ac_ext
2085 if test -n "$ac_declaration"; then
2086 echo '#ifdef __cplusplus' >>confdefs.h
2087 echo $ac_declaration >>confdefs.h
2088 echo '#endif' >>confdefs.h
2092 echo "$as_me: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 rm -f conftest.$ac_objext conftest.$ac_ext
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 ac_main_return=return
2104 if test "$GCC" = yes ; then
2105 echo "$as_me:2105: checking version of $CC" >&5
2106 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2107 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2108 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2109 echo "$as_me:2109: result: $GCC_VERSION" >&5
2110 echo "${ECHO_T}$GCC_VERSION" >&6
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 ac_main_return=return
2119 echo "$as_me:2119: checking how to run the C preprocessor" >&5
2120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2121 # On Suns, sometimes $CPP names a directory.
2122 if test -n "$CPP" && test -d "$CPP"; then
2125 if test -z "$CPP"; then
2126 if test "${ac_cv_prog_CPP+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 # Double quotes because CPP needs to be expanded
2130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2133 for ac_c_preproc_warn_flag in '' yes
2135 # Use a header file that comes with gcc, so configuring glibc
2136 # with a fresh cross-compiler works.
2137 # On the NeXT, cc -E runs the code through the compiler's parser,
2138 # not just through cpp. "Syntax error" is here to catch this case.
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line 2140 "configure"
2141 #include "confdefs.h"
2145 if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5
2146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2148 egrep -v '^ *\+' conftest.er1 >conftest.err
2150 cat conftest.err >&5
2151 echo "$as_me:2151: \$? = $ac_status" >&5
2152 (exit $ac_status); } >/dev/null; then
2153 if test -s conftest.err; then
2154 ac_cpp_err=$ac_c_preproc_warn_flag
2161 if test -z "$ac_cpp_err"; then
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 # Broken: fails on valid input.
2169 rm -f conftest.err conftest.$ac_ext
2171 # OK, works on sane cases. Now check whether non-existent headers
2172 # can be detected and how.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2176 #include <ac_nonexistent.h>
2178 if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5
2179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2181 egrep -v '^ *\+' conftest.er1 >conftest.err
2183 cat conftest.err >&5
2184 echo "$as_me:2184: \$? = $ac_status" >&5
2185 (exit $ac_status); } >/dev/null; then
2186 if test -s conftest.err; then
2187 ac_cpp_err=$ac_c_preproc_warn_flag
2194 if test -z "$ac_cpp_err"; then
2195 # Broken: success on invalid input.
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 # Passes both tests.
2204 rm -f conftest.err conftest.$ac_ext
2207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2208 rm -f conftest.err conftest.$ac_ext
2209 if $ac_preproc_ok; then
2221 echo "$as_me:2221: result: $CPP" >&5
2222 echo "${ECHO_T}$CPP" >&6
2224 for ac_c_preproc_warn_flag in '' yes
2226 # Use a header file that comes with gcc, so configuring glibc
2227 # with a fresh cross-compiler works.
2228 # On the NeXT, cc -E runs the code through the compiler's parser,
2229 # not just through cpp. "Syntax error" is here to catch this case.
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line 2231 "configure"
2232 #include "confdefs.h"
2236 if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5
2237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2239 egrep -v '^ *\+' conftest.er1 >conftest.err
2241 cat conftest.err >&5
2242 echo "$as_me:2242: \$? = $ac_status" >&5
2243 (exit $ac_status); } >/dev/null; then
2244 if test -s conftest.err; then
2245 ac_cpp_err=$ac_c_preproc_warn_flag
2252 if test -z "$ac_cpp_err"; then
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 # Broken: fails on valid input.
2260 rm -f conftest.err conftest.$ac_ext
2262 # OK, works on sane cases. Now check whether non-existent headers
2263 # can be detected and how.
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line 2265 "configure"
2266 #include "confdefs.h"
2267 #include <ac_nonexistent.h>
2269 if { (eval echo "$as_me:2269: \"$ac_cpp conftest.$ac_ext\"") >&5
2270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2272 egrep -v '^ *\+' conftest.er1 >conftest.err
2274 cat conftest.err >&5
2275 echo "$as_me:2275: \$? = $ac_status" >&5
2276 (exit $ac_status); } >/dev/null; then
2277 if test -s conftest.err; then
2278 ac_cpp_err=$ac_c_preproc_warn_flag
2285 if test -z "$ac_cpp_err"; then
2286 # Broken: success on invalid input.
2289 echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 # Passes both tests.
2295 rm -f conftest.err conftest.$ac_ext
2298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2299 rm -f conftest.err conftest.$ac_ext
2300 if $ac_preproc_ok; then
2303 { { echo "$as_me:2303: error: C preprocessor \"$CPP\" fails sanity check" >&5
2304 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2305 { (exit 1); exit 1; }; }
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313 ac_main_return=return
2315 if test $ac_cv_c_compiler_gnu = yes; then
2316 echo "$as_me:2316: checking whether $CC needs -traditional" >&5
2317 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2318 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 ac_pattern="Autoconf.*'x'"
2322 cat >conftest.$ac_ext <<_ACEOF
2323 #line 2323 "configure"
2324 #include "confdefs.h"
2326 int Autoconf = TIOCGETP;
2328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2329 egrep "$ac_pattern" >/dev/null 2>&1; then
2330 ac_cv_prog_gcc_traditional=yes
2332 ac_cv_prog_gcc_traditional=no
2336 if test $ac_cv_prog_gcc_traditional = no; then
2337 cat >conftest.$ac_ext <<_ACEOF
2338 #line 2338 "configure"
2339 #include "confdefs.h"
2341 int Autoconf = TCGETA;
2343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2344 egrep "$ac_pattern" >/dev/null 2>&1; then
2345 ac_cv_prog_gcc_traditional=yes
2351 echo "$as_me:2351: result: $ac_cv_prog_gcc_traditional" >&5
2352 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2353 if test $ac_cv_prog_gcc_traditional = yes; then
2354 CC="$CC -traditional"
2358 echo "$as_me:2358: checking whether $CC understands -c and -o together" >&5
2359 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2360 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat > conftest.$ac_ext <<CF_EOF
2368 ${cf_cv_main_return:-return}(0);
2371 # We do the test twice because some compilers refuse to overwrite an
2372 # existing .o file with -o, though they will create one.
2373 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2374 if { (eval echo "$as_me:2374: \"$ac_try\"") >&5
2377 echo "$as_me:2377: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 test -f conftest2.$ac_objext && { (eval echo "$as_me:2379: \"$ac_try\"") >&5
2382 echo "$as_me:2382: \$? = $ac_status" >&5
2383 (exit $ac_status); };
2385 eval cf_cv_prog_CC_c_o=yes
2387 eval cf_cv_prog_CC_c_o=no
2392 if test $cf_cv_prog_CC_c_o = yes; then
2393 echo "$as_me:2393: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2396 echo "$as_me:2396: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 echo "$as_me:2400: checking for POSIXized ISC" >&5
2401 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2402 if test -d /etc/conf/kconfig.d &&
2403 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2405 echo "$as_me:2405: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2407 ISC=yes # If later tests want to check for ISC.
2409 cat >>confdefs.h <<\EOF
2410 #define _POSIX_SOURCE 1
2413 if test "$GCC" = yes; then
2419 echo "$as_me:2419: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2424 echo "$as_me:2424: checking for ${CC-cc} option to accept ANSI C" >&5
2425 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2426 if test "${cf_cv_ansi_cc+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 cf_save_CFLAGS="$CFLAGS"
2432 cf_save_CPPFLAGS="$CPPFLAGS"
2433 # Don't try gcc -ansi; that turns off useful extensions and
2434 # breaks some systems' header files.
2435 # AIX -qlanglvl=ansi
2436 # Ultrix and OSF/1 -std1
2437 # HP-UX -Aa -D_HPUX_SOURCE
2439 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2440 for cf_arg in "-DCC_HAS_PROTOS" \
2445 "-Aa -D_HPUX_SOURCE" \
2452 cf_new_extra_cppflags=
2454 for cf_add_cflags in $cf_arg
2456 case $cf_fix_cppflags in
2458 case $cf_add_cflags in #(vi
2459 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2460 case $cf_add_cflags in
2462 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2464 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2465 && test -z "${cf_tst_cflags}" \
2466 && cf_fix_cppflags=yes
2468 if test $cf_fix_cppflags = yes ; then
2469 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2471 elif test "${cf_tst_cflags}" = "\"'" ; then
2472 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2478 *$cf_add_cflags) #(vi
2481 case $cf_add_cflags in #(vi
2483 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2485 CPPFLAGS=`echo "$CPPFLAGS" | \
2486 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2487 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2491 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2496 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2501 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2503 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2505 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2506 && test -z "${cf_tst_cflags}" \
2507 && cf_fix_cppflags=no
2512 if test -n "$cf_new_cflags" ; then
2514 CFLAGS="$CFLAGS $cf_new_cflags"
2517 if test -n "$cf_new_cppflags" ; then
2519 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2522 if test -n "$cf_new_extra_cppflags" ; then
2524 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line 2528 "configure"
2529 #include "confdefs.h"
2531 #ifndef CC_HAS_PROTOS
2532 #if !defined(__STDC__) || (__STDC__ != 1)
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:2549: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:2555: \"$ac_try\"") >&5
2558 echo "$as_me:2558: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 cf_cv_ansi_cc="$cf_arg"; break
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 rm -f conftest.$ac_objext conftest.$ac_ext
2567 CFLAGS="$cf_save_CFLAGS"
2568 CPPFLAGS="$cf_save_CPPFLAGS"
2571 echo "$as_me:2571: result: $cf_cv_ansi_cc" >&5
2572 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2574 if test "$cf_cv_ansi_cc" != "no"; then
2575 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2580 cf_new_extra_cppflags=
2582 for cf_add_cflags in $cf_cv_ansi_cc
2584 case $cf_fix_cppflags in
2586 case $cf_add_cflags in #(vi
2587 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2588 case $cf_add_cflags in
2590 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2592 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2593 && test -z "${cf_tst_cflags}" \
2594 && cf_fix_cppflags=yes
2596 if test $cf_fix_cppflags = yes ; then
2597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2599 elif test "${cf_tst_cflags}" = "\"'" ; then
2600 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2606 *$cf_add_cflags) #(vi
2609 case $cf_add_cflags in #(vi
2611 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2613 CPPFLAGS=`echo "$CPPFLAGS" | \
2614 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2615 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2619 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2624 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2629 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2631 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2633 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2634 && test -z "${cf_tst_cflags}" \
2635 && cf_fix_cppflags=no
2640 if test -n "$cf_new_cflags" ; then
2642 CFLAGS="$CFLAGS $cf_new_cflags"
2645 if test -n "$cf_new_cppflags" ; then
2647 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2650 if test -n "$cf_new_extra_cppflags" ; then
2652 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2656 cat >>confdefs.h <<\EOF
2657 #define CC_HAS_PROTOS 1
2663 if test "$cf_cv_ansi_cc" = "no"; then
2664 { { echo "$as_me:2664: error: Your compiler does not appear to recognize prototypes.
2665 You have the following choices:
2666 a. adjust your compiler options
2667 b. get an up-to-date compiler
2668 c. use a wrapper such as unproto" >&5
2669 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2670 You have the following choices:
2671 a. adjust your compiler options
2672 b. get an up-to-date compiler
2673 c. use a wrapper such as unproto" >&2;}
2674 { (exit 1); exit 1; }; }
2677 case $cf_cv_system_name in
2679 CFLAGS="$CFLAGS -Zmt"
2680 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2681 CXXFLAGS="$CXXFLAGS -Zmt"
2682 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2683 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2690 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2691 #define PROG_EXT "$PROG_EXT"
2694 if test "$cross_compiling" = yes ; then
2697 case "$cf_cv_system_name" in #(vi
2698 dragonfly*|freebsd*) #(vi
2699 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2701 *) LDPATH=$PATH:/sbin:/usr/sbin
2702 # Extract the first word of "ldconfig", so it can be a program name with args.
2703 set dummy ldconfig; ac_word=$2
2704 echo "$as_me:2704: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2714 ac_save_IFS=$IFS; IFS=$ac_path_separator
2716 for ac_dir in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir=.
2719 if $as_executable_p "$ac_dir/$ac_word"; then
2720 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2721 echo "$as_me:2721: found $ac_dir/$ac_word" >&5
2729 LDCONFIG=$ac_cv_path_LDCONFIG
2731 if test -n "$LDCONFIG"; then
2732 echo "$as_me:2732: result: $LDCONFIG" >&5
2733 echo "${ECHO_T}$LDCONFIG" >&6
2735 echo "$as_me:2735: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2743 echo "$as_me:2743: checking if you want to ensure bool is consistent with C++" >&5
2744 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2746 # Check whether --with-cxx or --without-cxx was given.
2747 if test "${with_cxx+set}" = set; then
2749 cf_with_cxx=$withval
2753 echo "$as_me:2753: result: $cf_with_cxx" >&5
2754 echo "${ECHO_T}$cf_with_cxx" >&6
2755 if test "X$cf_with_cxx" = Xno ; then
2759 # with autoconf 2.13, we can change the error to a warning:
2761 ac_cpp='$CXXCPP $CPPFLAGS'
2762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2765 ac_main_return=return
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 echo "$as_me:2771: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_CXX+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 if test -n "$CXX"; then
2777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779 ac_save_IFS=$IFS; IFS=$ac_path_separator
2781 for ac_dir in $ac_dummy; do
2783 test -z "$ac_dir" && ac_dir=.
2784 $as_executable_p "$ac_dir/$ac_word" || continue
2785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2786 echo "$as_me:2786: found $ac_dir/$ac_word" >&5
2793 if test -n "$CXX"; then
2794 echo "$as_me:2794: result: $CXX" >&5
2795 echo "${ECHO_T}$CXX" >&6
2797 echo "$as_me:2797: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2801 test -n "$CXX" && break
2804 if test -z "$CXX"; then
2806 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 echo "$as_me:2810: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 if test -n "$ac_ct_CXX"; then
2816 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2818 ac_save_IFS=$IFS; IFS=$ac_path_separator
2820 for ac_dir in $ac_dummy; do
2822 test -z "$ac_dir" && ac_dir=.
2823 $as_executable_p "$ac_dir/$ac_word" || continue
2824 ac_cv_prog_ac_ct_CXX="$ac_prog"
2825 echo "$as_me:2825: found $ac_dir/$ac_word" >&5
2831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2832 if test -n "$ac_ct_CXX"; then
2833 echo "$as_me:2833: result: $ac_ct_CXX" >&5
2834 echo "${ECHO_T}$ac_ct_CXX" >&6
2836 echo "$as_me:2836: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2840 test -n "$ac_ct_CXX" && break
2842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2847 # Provide some information about the compiler.
2848 echo "$as_me:2848:" \
2849 "checking for C++ compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (eval echo "$as_me:2851: \"$ac_compiler --version </dev/null >&5\"") >&5
2852 (eval $ac_compiler --version </dev/null >&5) 2>&5
2854 echo "$as_me:2854: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856 { (eval echo "$as_me:2856: \"$ac_compiler -v </dev/null >&5\"") >&5
2857 (eval $ac_compiler -v </dev/null >&5) 2>&5
2859 echo "$as_me:2859: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861 { (eval echo "$as_me:2861: \"$ac_compiler -V </dev/null >&5\"") >&5
2862 (eval $ac_compiler -V </dev/null >&5) 2>&5
2864 echo "$as_me:2864: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2867 echo "$as_me:2867: checking whether we are using the GNU C++ compiler" >&5
2868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:2888: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2905 rm -f conftest.$ac_objext conftest.$ac_ext
2906 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2909 echo "$as_me:2909: result: $ac_cv_cxx_compiler_gnu" >&5
2910 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2911 GXX=`test $ac_compiler_gnu = yes && echo yes`
2912 ac_test_CXXFLAGS=${CXXFLAGS+set}
2913 ac_save_CXXFLAGS=$CXXFLAGS
2915 echo "$as_me:2915: checking whether $CXX accepts -g" >&5
2916 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2917 if test "${ac_cv_prog_cxx_g+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:2933: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>&5
2936 echo "$as_me:2936: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:2939: \"$ac_try\"") >&5
2942 echo "$as_me:2942: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_prog_cxx_g=yes
2946 echo "$as_me: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2950 rm -f conftest.$ac_objext conftest.$ac_ext
2952 echo "$as_me:2952: result: $ac_cv_prog_cxx_g" >&5
2953 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2954 if test "$ac_test_CXXFLAGS" = set; then
2955 CXXFLAGS=$ac_save_CXXFLAGS
2956 elif test $ac_cv_prog_cxx_g = yes; then
2957 if test "$GXX" = yes; then
2963 if test "$GXX" = yes; then
2969 for ac_declaration in \
2971 '#include <stdlib.h>' \
2972 'extern "C" void std::exit (int) throw (); using std::exit;' \
2973 'extern "C" void std::exit (int); using std::exit;' \
2974 'extern "C" void exit (int) throw ();' \
2975 'extern "C" void exit (int);' \
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3009 rm -f conftest.$ac_objext conftest.$ac_ext
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line 3011 "configure"
3012 #include "confdefs.h"
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:3023: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>&5
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:3029: \"$ac_try\"") >&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3036 echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 rm -f conftest.$ac_objext conftest.$ac_ext
3042 if test -n "$ac_declaration"; then
3043 echo '#ifdef __cplusplus' >>confdefs.h
3044 echo $ac_declaration >>confdefs.h
3045 echo '#endif' >>confdefs.h
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 ac_main_return=return
3055 # autoconf 2.5x removed the error - by hardcoding it to g++.
3056 if test "$CXX" = "g++" ; then
3057 # Extract the first word of "g++", so it can be a program name with args.
3058 set dummy g++; ac_word=$2
3059 echo "$as_me:3059: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_path_CXX+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3069 ac_save_IFS=$IFS; IFS=$ac_path_separator
3071 for ac_dir in $ac_dummy; do
3073 test -z "$ac_dir" && ac_dir=.
3074 if $as_executable_p "$ac_dir/$ac_word"; then
3075 ac_cv_path_CXX="$ac_dir/$ac_word"
3076 echo "$as_me:3076: found $ac_dir/$ac_word" >&5
3086 if test -n "$CXX"; then
3087 echo "$as_me:3087: result: $CXX" >&5
3088 echo "${ECHO_T}$CXX" >&6
3090 echo "$as_me:3090: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test "$CXX" = "g++" ; then
3096 { echo "$as_me:3096: WARNING: ignoring hardcoded g++" >&5
3097 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3098 cf_with_cxx=no; CXX=""; GXX="";
3103 if test "$GXX" = yes; then
3104 echo "$as_me:3104: checking version of g++" >&5
3105 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3106 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3107 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3108 echo "$as_me:3108: result: $GXX_VERSION" >&5
3109 echo "${ECHO_T}$GXX_VERSION" >&6
3112 case $GXX_VERSION in
3114 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3116 { echo "$as_me:3116: WARNING: templates do not work" >&5
3117 echo "$as_me: WARNING: templates do not work" >&2;}
3121 echo "$as_me:3121: checking if you want to build C++ binding and demo" >&5
3122 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3124 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3125 if test "${with_cxx_binding+set}" = set; then
3126 withval="$with_cxx_binding"
3127 cf_with_cxx_binding=$withval
3129 cf_with_cxx_binding=$cf_with_cxx
3131 echo "$as_me:3131: result: $cf_with_cxx_binding" >&5
3132 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3134 echo "$as_me:3134: checking if you want to build with Ada95" >&5
3135 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3137 # Check whether --with-ada or --without-ada was given.
3138 if test "${with_ada+set}" = set; then
3140 cf_with_ada=$withval
3144 echo "$as_me:3144: result: $cf_with_ada" >&5
3145 echo "${ECHO_T}$cf_with_ada" >&6
3147 echo "$as_me:3147: checking if you want to install manpages" >&5
3148 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3150 # Check whether --with-manpages or --without-manpages was given.
3151 if test "${with_manpages+set}" = set; then
3152 withval="$with_manpages"
3153 cf_with_manpages=$withval
3155 cf_with_manpages=yes
3157 echo "$as_me:3157: result: $cf_with_manpages" >&5
3158 echo "${ECHO_T}$cf_with_manpages" >&6
3160 echo "$as_me:3160: checking if you want to build programs such as tic" >&5
3161 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3163 # Check whether --with-progs or --without-progs was given.
3164 if test "${with_progs+set}" = set; then
3165 withval="$with_progs"
3166 cf_with_progs=$withval
3170 echo "$as_me:3170: result: $cf_with_progs" >&5
3171 echo "${ECHO_T}$cf_with_progs" >&6
3173 echo "$as_me:3173: checking if you wish to install curses.h" >&5
3174 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3176 # Check whether --with-curses-h or --without-curses-h was given.
3177 if test "${with_curses_h+set}" = set; then
3178 withval="$with_curses_h"
3179 with_curses_h=$withval
3183 echo "$as_me:3183: result: $with_curses_h" >&5
3184 echo "${ECHO_T}$with_curses_h" >&6
3186 modules_to_build="ncurses"
3187 if test "X$cf_with_progs" != Xno ; then
3188 modules_to_build="$modules_to_build progs tack"
3190 modules_to_build="$modules_to_build panel menu form"
3192 test "$program_prefix" != NONE &&
3193 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3194 # Use a double $ so make ignores it.
3195 test "$program_suffix" != NONE &&
3196 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3197 # Double any \ or $. echo might interpret backslashes.
3198 # By default was `s,x,x', remove it if useless.
3199 cat <<\_ACEOF >conftest.sed
3200 s/[\\$]/&&/g;s/;s,x,x,$//
3202 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3205 for ac_prog in mawk gawk nawk awk
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 echo "$as_me:3209: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211 if test "${ac_cv_prog_AWK+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 if test -n "$AWK"; then
3215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3217 ac_save_IFS=$IFS; IFS=$ac_path_separator
3219 for ac_dir in $ac_dummy; do
3221 test -z "$ac_dir" && ac_dir=.
3222 $as_executable_p "$ac_dir/$ac_word" || continue
3223 ac_cv_prog_AWK="$ac_prog"
3224 echo "$as_me:3224: found $ac_dir/$ac_word" >&5
3231 if test -n "$AWK"; then
3232 echo "$as_me:3232: result: $AWK" >&5
3233 echo "${ECHO_T}$AWK" >&6
3235 echo "$as_me:3235: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3239 test -n "$AWK" && break
3242 test -z "$AWK" && { { echo "$as_me:3242: error: No awk program found" >&5
3243 echo "$as_me: error: No awk program found" >&2;}
3244 { (exit 1); exit 1; }; }
3246 echo "$as_me:3246: checking for egrep" >&5
3247 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3248 if test "${ac_cv_prog_egrep+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3252 then ac_cv_prog_egrep='grep -E'
3253 else ac_cv_prog_egrep='egrep'
3256 echo "$as_me:3256: result: $ac_cv_prog_egrep" >&5
3257 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3258 EGREP=$ac_cv_prog_egrep
3260 test -z "$EGREP" && { { echo "$as_me:3260: error: No egrep program found" >&5
3261 echo "$as_me: error: No egrep program found" >&2;}
3262 { (exit 1); exit 1; }; }
3264 # Find a good install program. We prefer a C program (faster),
3265 # so one script is as good as another. But avoid the broken or
3266 # incompatible versions:
3267 # SysV /etc/install, /usr/sbin/install
3268 # SunOS /usr/etc/install
3269 # IRIX /sbin/install
3271 # AmigaOS /C/install, which installs bootblocks on floppy discs
3272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275 # ./install, which can be erroneously created by make from ./install.sh.
3276 echo "$as_me:3276: checking for a BSD compatible install" >&5
3277 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3278 if test -z "$INSTALL"; then
3279 if test "${ac_cv_path_install+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 ac_save_IFS=$IFS; IFS=$ac_path_separator
3283 for ac_dir in $PATH; do
3285 # Account for people who put trailing slashes in PATH elements.
3287 / | ./ | .// | /cC/* \
3288 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3291 # OSF1 and SCO ODT 3.0 have their own names for install.
3292 # Don't use installbsd from OSF since it installs stuff as root
3294 for ac_prog in ginstall scoinst install; do
3295 if $as_executable_p "$ac_dir/$ac_prog"; then
3296 if test $ac_prog = install &&
3297 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3298 # AIX install. It has an incompatible calling convention.
3300 elif test $ac_prog = install &&
3301 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3302 # program-specific install script used by HP pwplus--don't use.
3305 ac_cv_path_install="$ac_dir/$ac_prog -c"
3315 if test "${ac_cv_path_install+set}" = set; then
3316 INSTALL=$ac_cv_path_install
3318 # As a last resort, use the slow shell script. We don't cache a
3319 # path for INSTALL within a source directory, because that will
3320 # break other packages using the cache if that directory is
3321 # removed, or if the path is relative.
3322 INSTALL=$ac_install_sh
3325 echo "$as_me:3325: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3340 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3341 test -z "$cf_dir" && cf_dir=.
3342 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3346 for ac_prog in tdlint lint alint splint lclint
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 echo "$as_me:3350: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_prog_LINT+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 if test -n "$LINT"; then
3356 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3358 ac_save_IFS=$IFS; IFS=$ac_path_separator
3360 for ac_dir in $ac_dummy; do
3362 test -z "$ac_dir" && ac_dir=.
3363 $as_executable_p "$ac_dir/$ac_word" || continue
3364 ac_cv_prog_LINT="$ac_prog"
3365 echo "$as_me:3365: found $ac_dir/$ac_word" >&5
3371 LINT=$ac_cv_prog_LINT
3372 if test -n "$LINT"; then
3373 echo "$as_me:3373: result: $LINT" >&5
3374 echo "${ECHO_T}$LINT" >&6
3376 echo "$as_me:3376: result: no" >&5
3377 echo "${ECHO_T}no" >&6
3380 test -n "$LINT" && break
3383 echo "$as_me:3383: checking whether ln -s works" >&5
3384 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3386 if test "$LN_S" = "ln -s"; then
3387 echo "$as_me:3387: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6
3390 echo "$as_me:3390: result: no, using $LN_S" >&5
3391 echo "${ECHO_T}no, using $LN_S" >&6
3394 echo "$as_me:3394: checking for long file names" >&5
3395 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3396 if test "${ac_cv_sys_long_file_names+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 ac_cv_sys_long_file_names=yes
3400 # Test for long file names in all the places we know might matter:
3401 # . the current directory, where building will happen
3402 # $prefix/lib where we will be installing things
3403 # $exec_prefix/lib likewise
3404 # eval it to expand exec_prefix.
3405 # $TMPDIR if set, where it might want to write temporary files
3406 # if $TMPDIR is not set:
3407 # /tmp where it might want to write temporary files
3410 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3413 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3415 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3416 test -d $ac_dir || continue
3417 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3418 ac_xdir=$ac_dir/cf$$
3419 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3420 ac_tf1=$ac_xdir/conftest9012345
3421 ac_tf2=$ac_xdir/conftest9012346
3422 (echo 1 >$ac_tf1) 2>/dev/null
3423 (echo 2 >$ac_tf2) 2>/dev/null
3424 ac_val=`cat $ac_tf1 2>/dev/null`
3425 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3426 ac_cv_sys_long_file_names=no
3427 rm -rf $ac_xdir 2>/dev/null
3430 rm -rf $ac_xdir 2>/dev/null
3433 echo "$as_me:3433: result: $ac_cv_sys_long_file_names" >&5
3434 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3435 if test $ac_cv_sys_long_file_names = yes; then
3437 cat >>confdefs.h <<\EOF
3438 #define HAVE_LONG_FILE_NAMES 1
3443 # if we find pkg-config, check if we should install the ".pc" files.
3445 echo "$as_me:3445: checking if you want to use pkg-config" >&5
3446 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3448 # Check whether --with-pkg-config or --without-pkg-config was given.
3449 if test "${with_pkg_config+set}" = set; then
3450 withval="$with_pkg_config"
3451 cf_pkg_config=$withval
3455 echo "$as_me:3455: result: $cf_pkg_config" >&5
3456 echo "${ECHO_T}$cf_pkg_config" >&6
3458 case $cf_pkg_config in #(vi
3463 # Extract the first word of "pkg-config", so it can be a program name with args.
3464 set dummy pkg-config; ac_word=$2
3465 echo "$as_me:3465: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3475 ac_save_IFS=$IFS; IFS=$ac_path_separator
3477 for ac_dir in $ac_dummy; do
3479 test -z "$ac_dir" && ac_dir=.
3480 if $as_executable_p "$ac_dir/$ac_word"; then
3481 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3482 echo "$as_me:3482: found $ac_dir/$ac_word" >&5
3487 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3491 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3493 if test -n "$PKG_CONFIG"; then
3494 echo "$as_me:3494: result: $PKG_CONFIG" >&5
3495 echo "${ECHO_T}$PKG_CONFIG" >&6
3497 echo "$as_me:3497: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3507 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3508 if test "$PKG_CONFIG" != none ; then
3510 if test "x$prefix" != xNONE; then
3511 cf_path_syntax="$prefix"
3513 cf_path_syntax="$ac_default_prefix"
3516 case ".$PKG_CONFIG" in #(vi
3517 .\$\(*\)*|.\'*\'*) #(vi
3521 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3524 eval PKG_CONFIG="$PKG_CONFIG"
3525 case ".$PKG_CONFIG" in #(vi
3527 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3532 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3535 { { echo "$as_me:3535: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3536 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3537 { (exit 1); exit 1; }; }
3543 if test "$PKG_CONFIG" != no ; then
3544 echo "$as_me:3544: checking if we should install .pc files for $PKG_CONFIG" >&5
3545 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3547 # Leave this as something that can be overridden in the environment.
3548 if test -z "$PKG_CONFIG_LIBDIR" ; then
3549 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3551 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3552 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3554 # Check whether --enable-pc-files or --disable-pc-files was given.
3555 if test "${enable_pc_files+set}" = set; then
3556 enableval="$enable_pc_files"
3557 enable_pc_files=$enableval
3561 echo "$as_me:3561: result: $enable_pc_files" >&5
3562 echo "${ECHO_T}$enable_pc_files" >&6
3564 echo "$as_me:3564: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566 { echo "$as_me:3566: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3567 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3572 echo "$as_me:3572: checking if we should assume mixed-case filenames" >&5
3573 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3575 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3576 if test "${enable_mixed_case+set}" = set; then
3577 enableval="$enable_mixed_case"
3578 enable_mixedcase=$enableval
3580 enable_mixedcase=auto
3582 echo "$as_me:3582: result: $enable_mixedcase" >&5
3583 echo "${ECHO_T}$enable_mixedcase" >&6
3584 if test "$enable_mixedcase" = "auto" ; then
3586 echo "$as_me:3586: checking if filesystem supports mixed-case filenames" >&5
3587 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3588 if test "${cf_cv_mixedcase+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test "$cross_compiling" = yes ; then
3593 case $target_alias in #(vi
3594 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3602 rm -f conftest CONFTEST
3604 if test -f CONFTEST ; then
3609 rm -f conftest CONFTEST
3613 echo "$as_me:3613: result: $cf_cv_mixedcase" >&5
3614 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3615 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3616 #define MIXEDCASE_FILENAMES 1
3620 cf_cv_mixedcase=$enable_mixedcase
3621 if test "$enable_mixedcase" = "yes" ; then
3622 cat >>confdefs.h <<\EOF
3623 #define MIXEDCASE_FILENAMES 1
3629 # do this after mixed-case option (tags/TAGS is not as important as tic).
3630 echo "$as_me:3630: checking whether ${MAKE-make} sets \${MAKE}" >&5
3631 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3632 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3633 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 cat >conftest.make <<\EOF
3638 @echo 'ac_maketemp="${MAKE}"'
3640 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3641 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3642 if test -n "$ac_maketemp"; then
3643 eval ac_cv_prog_make_${ac_make}_set=yes
3645 eval ac_cv_prog_make_${ac_make}_set=no
3649 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3650 echo "$as_me:3650: result: yes" >&5
3651 echo "${ECHO_T}yes" >&6
3654 echo "$as_me:3654: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 SET_MAKE="MAKE=${MAKE-make}"
3659 for ac_prog in exctags ctags
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy $ac_prog; ac_word=$2
3663 echo "$as_me:3663: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3665 if test "${ac_cv_prog_CTAGS+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 if test -n "$CTAGS"; then
3669 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3671 ac_save_IFS=$IFS; IFS=$ac_path_separator
3673 for ac_dir in $ac_dummy; do
3675 test -z "$ac_dir" && ac_dir=.
3676 $as_executable_p "$ac_dir/$ac_word" || continue
3677 ac_cv_prog_CTAGS="$ac_prog"
3678 echo "$as_me:3678: found $ac_dir/$ac_word" >&5
3684 CTAGS=$ac_cv_prog_CTAGS
3685 if test -n "$CTAGS"; then
3686 echo "$as_me:3686: result: $CTAGS" >&5
3687 echo "${ECHO_T}$CTAGS" >&6
3689 echo "$as_me:3689: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3693 test -n "$CTAGS" && break
3696 for ac_prog in exetags etags
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 echo "$as_me:3700: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_prog_ETAGS+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 if test -n "$ETAGS"; then
3706 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3708 ac_save_IFS=$IFS; IFS=$ac_path_separator
3710 for ac_dir in $ac_dummy; do
3712 test -z "$ac_dir" && ac_dir=.
3713 $as_executable_p "$ac_dir/$ac_word" || continue
3714 ac_cv_prog_ETAGS="$ac_prog"
3715 echo "$as_me:3715: found $ac_dir/$ac_word" >&5
3721 ETAGS=$ac_cv_prog_ETAGS
3722 if test -n "$ETAGS"; then
3723 echo "$as_me:3723: result: $ETAGS" >&5
3724 echo "${ECHO_T}$ETAGS" >&6
3726 echo "$as_me:3726: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3730 test -n "$ETAGS" && break
3733 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
3734 set dummy ${CTAGS-ctags}; ac_word=$2
3735 echo "$as_me:3735: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$MAKE_LOWER_TAGS"; then
3741 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3743 ac_save_IFS=$IFS; IFS=$ac_path_separator
3745 for ac_dir in $ac_dummy; do
3747 test -z "$ac_dir" && ac_dir=.
3748 $as_executable_p "$ac_dir/$ac_word" || continue
3749 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3750 echo "$as_me:3750: found $ac_dir/$ac_word" >&5
3754 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3757 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3758 if test -n "$MAKE_LOWER_TAGS"; then
3759 echo "$as_me:3759: result: $MAKE_LOWER_TAGS" >&5
3760 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3762 echo "$as_me:3762: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3766 if test "$cf_cv_mixedcase" = yes ; then
3767 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
3768 set dummy ${ETAGS-etags}; ac_word=$2
3769 echo "$as_me:3769: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if test -n "$MAKE_UPPER_TAGS"; then
3775 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3777 ac_save_IFS=$IFS; IFS=$ac_path_separator
3779 for ac_dir in $ac_dummy; do
3781 test -z "$ac_dir" && ac_dir=.
3782 $as_executable_p "$ac_dir/$ac_word" || continue
3783 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3784 echo "$as_me:3784: found $ac_dir/$ac_word" >&5
3788 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3791 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3792 if test -n "$MAKE_UPPER_TAGS"; then
3793 echo "$as_me:3793: result: $MAKE_UPPER_TAGS" >&5
3794 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3796 echo "$as_me:3796: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3804 if test "$MAKE_UPPER_TAGS" = yes ; then
3810 if test "$MAKE_LOWER_TAGS" = yes ; then
3816 echo "$as_me:3816: checking for makeflags variable" >&5
3817 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3818 if test "${cf_cv_makeflags+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3825 cat >cf_makeflags.tmp <<CF_EOF
3828 @ echo '.$cf_option'
3830 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3831 case "$cf_result" in
3833 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3834 case "$cf_result" in
3835 .*CC=*) cf_cv_makeflags=
3837 *) cf_cv_makeflags=$cf_option
3843 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3847 rm -f cf_makeflags.tmp
3850 echo "$as_me:3850: result: $cf_cv_makeflags" >&5
3851 echo "${ECHO_T}$cf_cv_makeflags" >&6
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3856 echo "$as_me:3856: checking for $ac_word" >&5
3857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858 if test "${ac_cv_prog_RANLIB+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 if test -n "$RANLIB"; then
3862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3864 ac_save_IFS=$IFS; IFS=$ac_path_separator
3866 for ac_dir in $ac_dummy; do
3868 test -z "$ac_dir" && ac_dir=.
3869 $as_executable_p "$ac_dir/$ac_word" || continue
3870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3871 echo "$as_me:3871: found $ac_dir/$ac_word" >&5
3877 RANLIB=$ac_cv_prog_RANLIB
3878 if test -n "$RANLIB"; then
3879 echo "$as_me:3879: result: $RANLIB" >&5
3880 echo "${ECHO_T}$RANLIB" >&6
3882 echo "$as_me:3882: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3887 if test -z "$ac_cv_prog_RANLIB"; then
3888 ac_ct_RANLIB=$RANLIB
3889 # Extract the first word of "ranlib", so it can be a program name with args.
3890 set dummy ranlib; ac_word=$2
3891 echo "$as_me:3891: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test -n "$ac_ct_RANLIB"; then
3897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3899 ac_save_IFS=$IFS; IFS=$ac_path_separator
3901 for ac_dir in $ac_dummy; do
3903 test -z "$ac_dir" && ac_dir=.
3904 $as_executable_p "$ac_dir/$ac_word" || continue
3905 ac_cv_prog_ac_ct_RANLIB="ranlib"
3906 echo "$as_me:3906: found $ac_dir/$ac_word" >&5
3910 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3914 if test -n "$ac_ct_RANLIB"; then
3915 echo "$as_me:3915: result: $ac_ct_RANLIB" >&5
3916 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3918 echo "$as_me:3918: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3922 RANLIB=$ac_ct_RANLIB
3924 RANLIB="$ac_cv_prog_RANLIB"
3927 if test -n "$ac_tool_prefix"; then
3928 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3929 set dummy ${ac_tool_prefix}ld; ac_word=$2
3930 echo "$as_me:3930: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_LD+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 if test -n "$LD"; then
3936 ac_cv_prog_LD="$LD" # Let the user override the test.
3938 ac_save_IFS=$IFS; IFS=$ac_path_separator
3940 for ac_dir in $ac_dummy; do
3942 test -z "$ac_dir" && ac_dir=.
3943 $as_executable_p "$ac_dir/$ac_word" || continue
3944 ac_cv_prog_LD="${ac_tool_prefix}ld"
3945 echo "$as_me:3945: found $ac_dir/$ac_word" >&5
3952 if test -n "$LD"; then
3953 echo "$as_me:3953: result: $LD" >&5
3954 echo "${ECHO_T}$LD" >&6
3956 echo "$as_me:3956: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3961 if test -z "$ac_cv_prog_LD"; then
3963 # Extract the first word of "ld", so it can be a program name with args.
3964 set dummy ld; ac_word=$2
3965 echo "$as_me:3965: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 if test -n "$ac_ct_LD"; then
3971 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3973 ac_save_IFS=$IFS; IFS=$ac_path_separator
3975 for ac_dir in $ac_dummy; do
3977 test -z "$ac_dir" && ac_dir=.
3978 $as_executable_p "$ac_dir/$ac_word" || continue
3979 ac_cv_prog_ac_ct_LD="ld"
3980 echo "$as_me:3980: found $ac_dir/$ac_word" >&5
3984 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3987 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3988 if test -n "$ac_ct_LD"; then
3989 echo "$as_me:3989: result: $ac_ct_LD" >&5
3990 echo "${ECHO_T}$ac_ct_LD" >&6
3992 echo "$as_me:3992: result: no" >&5
3993 echo "${ECHO_T}no" >&6
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}ar; ac_word=$2
4004 echo "$as_me:4004: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_AR+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$AR"; then
4010 ac_cv_prog_AR="$AR" # Let the user override the test.
4012 ac_save_IFS=$IFS; IFS=$ac_path_separator
4014 for ac_dir in $ac_dummy; do
4016 test -z "$ac_dir" && ac_dir=.
4017 $as_executable_p "$ac_dir/$ac_word" || continue
4018 ac_cv_prog_AR="${ac_tool_prefix}ar"
4019 echo "$as_me:4019: found $ac_dir/$ac_word" >&5
4026 if test -n "$AR"; then
4027 echo "$as_me:4027: result: $AR" >&5
4028 echo "${ECHO_T}$AR" >&6
4030 echo "$as_me:4030: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4035 if test -z "$ac_cv_prog_AR"; then
4037 # Extract the first word of "ar", so it can be a program name with args.
4038 set dummy ar; ac_word=$2
4039 echo "$as_me:4039: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 if test -n "$ac_ct_AR"; then
4045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4047 ac_save_IFS=$IFS; IFS=$ac_path_separator
4049 for ac_dir in $ac_dummy; do
4051 test -z "$ac_dir" && ac_dir=.
4052 $as_executable_p "$ac_dir/$ac_word" || continue
4053 ac_cv_prog_ac_ct_AR="ar"
4054 echo "$as_me:4054: found $ac_dir/$ac_word" >&5
4058 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4061 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4062 if test -n "$ac_ct_AR"; then
4063 echo "$as_me:4063: result: $ac_ct_AR" >&5
4064 echo "${ECHO_T}$ac_ct_AR" >&6
4066 echo "$as_me:4066: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}ar; ac_word=$2
4078 echo "$as_me:4078: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_prog_AR+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 if test -n "$AR"; then
4084 ac_cv_prog_AR="$AR" # Let the user override the test.
4086 ac_save_IFS=$IFS; IFS=$ac_path_separator
4088 for ac_dir in $ac_dummy; do
4090 test -z "$ac_dir" && ac_dir=.
4091 $as_executable_p "$ac_dir/$ac_word" || continue
4092 ac_cv_prog_AR="${ac_tool_prefix}ar"
4093 echo "$as_me:4093: found $ac_dir/$ac_word" >&5
4100 if test -n "$AR"; then
4101 echo "$as_me:4101: result: $AR" >&5
4102 echo "${ECHO_T}$AR" >&6
4104 echo "$as_me:4104: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4109 if test -z "$ac_cv_prog_AR"; then
4111 # Extract the first word of "ar", so it can be a program name with args.
4112 set dummy ar; ac_word=$2
4113 echo "$as_me:4113: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$ac_ct_AR"; then
4119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4121 ac_save_IFS=$IFS; IFS=$ac_path_separator
4123 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 $as_executable_p "$ac_dir/$ac_word" || continue
4127 ac_cv_prog_ac_ct_AR="ar"
4128 echo "$as_me:4128: found $ac_dir/$ac_word" >&5
4132 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4135 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4136 if test -n "$ac_ct_AR"; then
4137 echo "$as_me:4137: result: $ac_ct_AR" >&5
4138 echo "${ECHO_T}$ac_ct_AR" >&6
4140 echo "$as_me:4140: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4149 echo "$as_me:4149: checking for options to update archives" >&5
4150 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4151 if test "${cf_cv_ar_flags+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 cf_cv_ar_flags=unknown
4156 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4159 # check if $ARFLAGS already contains this choice
4160 if test "x$ARFLAGS" != "x" ; then
4161 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4162 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4168 rm -f conftest.$ac_cv_objext
4171 cat >conftest.$ac_ext <<EOF
4172 #line 4172 "configure"
4173 int testdata[3] = { 123, 456, 789 };
4175 if { (eval echo "$as_me:4175: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>&5
4178 echo "$as_me:4178: \$? = $ac_status" >&5
4179 (exit $ac_status); } ; then
4180 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4181 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4182 if test -f conftest.a ; then
4183 cf_cv_ar_flags=$cf_ar_flags
4187 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4189 echo "${as_me-configure}:4189: testing cannot compile test-program ..." 1>&5
4194 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4197 echo "$as_me:4197: result: $cf_cv_ar_flags" >&5
4198 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4200 if test -n "$ARFLAGS" ; then
4201 if test -n "$cf_cv_ar_flags" ; then
4202 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4205 ARFLAGS=$cf_cv_ar_flags
4208 echo "$as_me:4208: checking if you have specified an install-prefix" >&5
4209 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4211 # Check whether --with-install-prefix or --without-install-prefix was given.
4212 if test "${with_install_prefix+set}" = set; then
4213 withval="$with_install_prefix"
4214 case "$withval" in #(vi
4217 *) DESTDIR="$withval"
4221 echo "$as_me:4221: result: $DESTDIR" >&5
4222 echo "${ECHO_T}$DESTDIR" >&6
4224 ###############################################################################
4226 # If we're cross-compiling, allow the user to override the tools and their
4227 # options. The configure script is oriented toward identifying the host
4228 # compiler, etc., but we need a build compiler to generate parts of the source.
4230 if test "$cross_compiling" = yes ; then
4232 # defaults that we might want to override
4233 : ${BUILD_CFLAGS:=''}
4234 : ${BUILD_CPPFLAGS:=''}
4235 : ${BUILD_LDFLAGS:=''}
4237 : ${BUILD_EXEEXT:='$x'}
4238 : ${BUILD_OBJEXT:='o'}
4240 # Check whether --with-build-cc or --without-build-cc was given.
4241 if test "${with_build_cc+set}" = set; then
4242 withval="$with_build_cc"
4245 for ac_prog in gcc cc cl
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 echo "$as_me:4249: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$BUILD_CC"; then
4255 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4257 ac_save_IFS=$IFS; IFS=$ac_path_separator
4259 for ac_dir in $ac_dummy; do
4261 test -z "$ac_dir" && ac_dir=.
4262 $as_executable_p "$ac_dir/$ac_word" || continue
4263 ac_cv_prog_BUILD_CC="$ac_prog"
4264 echo "$as_me:4264: found $ac_dir/$ac_word" >&5
4270 BUILD_CC=$ac_cv_prog_BUILD_CC
4271 if test -n "$BUILD_CC"; then
4272 echo "$as_me:4272: result: $BUILD_CC" >&5
4273 echo "${ECHO_T}$BUILD_CC" >&6
4275 echo "$as_me:4275: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4279 test -n "$BUILD_CC" && break
4283 echo "$as_me:4283: checking for native build C compiler" >&5
4284 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4285 echo "$as_me:4285: result: $BUILD_CC" >&5
4286 echo "${ECHO_T}$BUILD_CC" >&6
4288 echo "$as_me:4288: checking for native build C preprocessor" >&5
4289 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4291 # Check whether --with-build-cpp or --without-build-cpp was given.
4292 if test "${with_build_cpp+set}" = set; then
4293 withval="$with_build_cpp"
4294 BUILD_CPP="$withval"
4296 BUILD_CPP='${BUILD_CC} -E'
4298 echo "$as_me:4298: result: $BUILD_CPP" >&5
4299 echo "${ECHO_T}$BUILD_CPP" >&6
4301 echo "$as_me:4301: checking for native build C flags" >&5
4302 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4304 # Check whether --with-build-cflags or --without-build-cflags was given.
4305 if test "${with_build_cflags+set}" = set; then
4306 withval="$with_build_cflags"
4307 BUILD_CFLAGS="$withval"
4309 echo "$as_me:4309: result: $BUILD_CFLAGS" >&5
4310 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4312 echo "$as_me:4312: checking for native build C preprocessor-flags" >&5
4313 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4315 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4316 if test "${with_build_cppflags+set}" = set; then
4317 withval="$with_build_cppflags"
4318 BUILD_CPPFLAGS="$withval"
4320 echo "$as_me:4320: result: $BUILD_CPPFLAGS" >&5
4321 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4323 echo "$as_me:4323: checking for native build linker-flags" >&5
4324 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4326 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4327 if test "${with_build_ldflags+set}" = set; then
4328 withval="$with_build_ldflags"
4329 BUILD_LDFLAGS="$withval"
4331 echo "$as_me:4331: result: $BUILD_LDFLAGS" >&5
4332 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4334 echo "$as_me:4334: checking for native build linker-libraries" >&5
4335 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4337 # Check whether --with-build-libs or --without-build-libs was given.
4338 if test "${with_build_libs+set}" = set; then
4339 withval="$with_build_libs"
4340 BUILD_LIBS="$withval"
4342 echo "$as_me:4342: result: $BUILD_LIBS" >&5
4343 echo "${ECHO_T}$BUILD_LIBS" >&6
4345 # this assumes we're on Unix.
4349 : ${BUILD_CC:='${CC}'}
4351 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4352 { { echo "$as_me:4352: error: Cross-build requires two compilers.
4353 Use --with-build-cc to specify the native compiler." >&5
4354 echo "$as_me: error: Cross-build requires two compilers.
4355 Use --with-build-cc to specify the native compiler." >&2;}
4356 { (exit 1); exit 1; }; }
4360 : ${BUILD_CC:='${CC}'}
4361 : ${BUILD_CPP:='${CPP}'}
4362 : ${BUILD_CFLAGS:='${CFLAGS}'}
4363 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4364 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4365 : ${BUILD_LIBS:='${LIBS}'}
4366 : ${BUILD_EXEEXT:='$x'}
4367 : ${BUILD_OBJEXT:='o'}
4370 ###############################################################################
4372 ### Options to allow the user to specify the set of libraries which are used.
4373 ### Use "--without-normal --with-shared" to allow the default model to be
4374 ### shared, for example.
4377 echo "$as_me:4377: checking if libtool -version-number should be used" >&5
4378 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4380 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4381 if test "${enable_libtool_version+set}" = set; then
4382 enableval="$enable_libtool_version"
4383 test "$enableval" != no && enableval=yes
4384 if test "$enableval" != "yes" ; then
4385 cf_libtool_version=no
4387 cf_libtool_version=yes
4391 cf_libtool_version=yes
4394 echo "$as_me:4394: result: $cf_libtool_version" >&5
4395 echo "${ECHO_T}$cf_libtool_version" >&6
4397 if test "$cf_libtool_version" = yes ; then
4398 LIBTOOL_VERSION="-version-number"
4400 LIBTOOL_VERSION="-version-info"
4405 # common library maintenance symbols that are convenient for libtool scripts:
4406 LIB_CREATE='${AR} -cr'
4407 LIB_OBJECT='${OBJECTS}'
4411 # symbols used to prop libtool up to enable it to determine what it should be
4419 echo "$as_me:4419: checking if you want to build libraries with libtool" >&5
4420 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4422 # Check whether --with-libtool or --without-libtool was given.
4423 if test "${with_libtool+set}" = set; then
4424 withval="$with_libtool"
4425 with_libtool=$withval
4429 echo "$as_me:4429: result: $with_libtool" >&5
4430 echo "${ECHO_T}$with_libtool" >&6
4431 if test "$with_libtool" != "no"; then
4433 if test "$with_libtool" != "yes" ; then
4435 if test "x$prefix" != xNONE; then
4436 cf_path_syntax="$prefix"
4438 cf_path_syntax="$ac_default_prefix"
4441 case ".$with_libtool" in #(vi
4442 .\$\(*\)*|.\'*\'*) #(vi
4446 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4449 eval with_libtool="$with_libtool"
4450 case ".$with_libtool" in #(vi
4452 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4457 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4460 { { echo "$as_me:4460: error: expected a pathname, not \"$with_libtool\"" >&5
4461 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4462 { (exit 1); exit 1; }; }
4466 LIBTOOL=$with_libtool
4468 # Extract the first word of "libtool", so it can be a program name with args.
4469 set dummy libtool; ac_word=$2
4470 echo "$as_me:4470: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4480 ac_save_IFS=$IFS; IFS=$ac_path_separator
4482 for ac_dir in $ac_dummy; do
4484 test -z "$ac_dir" && ac_dir=.
4485 if $as_executable_p "$ac_dir/$ac_word"; then
4486 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4487 echo "$as_me:4487: found $ac_dir/$ac_word" >&5
4495 LIBTOOL=$ac_cv_path_LIBTOOL
4497 if test -n "$LIBTOOL"; then
4498 echo "$as_me:4498: result: $LIBTOOL" >&5
4499 echo "${ECHO_T}$LIBTOOL" >&6
4501 echo "$as_me:4501: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4506 if test -z "$LIBTOOL" ; then
4507 { { echo "$as_me:4507: error: Cannot find libtool" >&5
4508 echo "$as_me: error: Cannot find libtool" >&2;}
4509 { (exit 1); exit 1; }; }
4511 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4512 LIB_OBJECT='${OBJECTS:.o=.lo}'
4514 LIB_CLEAN='${LIBTOOL} --mode=clean'
4515 LIB_COMPILE='${LIBTOOL} --mode=compile'
4516 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4517 LIB_INSTALL='${LIBTOOL} --mode=install'
4518 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4521 # Show the version of libtool
4522 echo "$as_me:4522: checking version of libtool" >&5
4523 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4525 # Save the version in a cache variable - this is not entirely a good
4526 # thing, but the version string from libtool is very ugly, and for
4527 # bug reports it might be useful to have the original string. "("
4528 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.].*//'`
4529 echo "$as_me:4529: result: $cf_cv_libtool_version" >&5
4530 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4531 if test -z "$cf_cv_libtool_version" ; then
4532 { { echo "$as_me:4532: error: This is not GNU libtool" >&5
4533 echo "$as_me: error: This is not GNU libtool" >&2;}
4534 { (exit 1); exit 1; }; }
4537 # special hack to add -no-undefined (which libtool should do for itself)
4539 case "$cf_cv_system_name" in #(vi
4540 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4541 LT_UNDEF=-no-undefined
4545 # special hack to add --tag option for C++ compiler
4546 case $cf_cv_libtool_version in #(vi
4547 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4548 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4549 LIBTOOL="$LIBTOOL --tag=CC"
4552 LIBTOOL_CXX="$LIBTOOL"
4560 test -z "$LIBTOOL" && ECHO_LT=
4562 if test "$with_libtool" != "no" ; then
4564 cf_list_models="$cf_list_models libtool"
4568 echo "$as_me:4568: checking if you want to build shared libraries" >&5
4569 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4571 # Check whether --with-shared or --without-shared was given.
4572 if test "${with_shared+set}" = set; then
4573 withval="$with_shared"
4574 with_shared=$withval
4578 echo "$as_me:4578: result: $with_shared" >&5
4579 echo "${ECHO_T}$with_shared" >&6
4580 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4582 echo "$as_me:4582: checking if you want to build static libraries" >&5
4583 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4585 # Check whether --with-normal or --without-normal was given.
4586 if test "${with_normal+set}" = set; then
4587 withval="$with_normal"
4588 with_normal=$withval
4592 echo "$as_me:4592: result: $with_normal" >&5
4593 echo "${ECHO_T}$with_normal" >&6
4594 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4596 echo "$as_me:4596: checking if you want to build debug libraries" >&5
4597 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4599 # Check whether --with-debug or --without-debug was given.
4600 if test "${with_debug+set}" = set; then
4601 withval="$with_debug"
4606 echo "$as_me:4606: result: $with_debug" >&5
4607 echo "${ECHO_T}$with_debug" >&6
4608 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4610 echo "$as_me:4610: checking if you want to build profiling libraries" >&5
4611 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4613 # Check whether --with-profile or --without-profile was given.
4614 if test "${with_profile+set}" = set; then
4615 withval="$with_profile"
4616 with_profile=$withval
4620 echo "$as_me:4620: result: $with_profile" >&5
4621 echo "${ECHO_T}$with_profile" >&6
4622 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4626 ###############################################################################
4628 echo "$as_me:4628: checking for specified models" >&5
4629 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4630 test -z "$cf_list_models" && cf_list_models=normal
4631 test "$with_libtool" != "no" && cf_list_models=libtool
4632 echo "$as_me:4632: result: $cf_list_models" >&5
4633 echo "${ECHO_T}$cf_list_models" >&6
4635 ### Use the first model as the default, and save its suffix for use in building
4636 ### up test-applications.
4637 echo "$as_me:4637: checking for default model" >&5
4638 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4639 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4640 echo "$as_me:4640: result: $DFT_LWR_MODEL" >&5
4641 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4643 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4654 case $cf_cv_system_name in #(vi
4661 cf_prefix=$LIB_PREFIX
4663 LIB_PREFIX=$cf_prefix
4667 ###############################################################################
4669 echo "$as_me:4669: checking if you want to build a separate terminfo library" >&5
4670 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4672 # Check whether --with-termlib or --without-termlib was given.
4673 if test "${with_termlib+set}" = set; then
4674 withval="$with_termlib"
4675 with_termlib=$withval
4679 echo "$as_me:4679: result: $with_termlib" >&5
4680 echo "${ECHO_T}$with_termlib" >&6
4682 echo "$as_me:4682: checking if you want to build a separate tic library" >&5
4683 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4685 # Check whether --with-ticlib or --without-ticlib was given.
4686 if test "${with_ticlib+set}" = set; then
4687 withval="$with_ticlib"
4688 with_ticlib=$withval
4692 echo "$as_me:4692: result: $with_ticlib" >&5
4693 echo "${ECHO_T}$with_ticlib" >&6
4695 ### Checks for special libraries, must be done up-front.
4698 echo "$as_me:4698: checking if you want to link with the GPM mouse library" >&5
4699 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4701 # Check whether --with-gpm or --without-gpm was given.
4702 if test "${with_gpm+set}" = set; then
4708 echo "$as_me:4708: result: $with_gpm" >&5
4709 echo "${ECHO_T}$with_gpm" >&6
4711 if test "$with_gpm" != no ; then
4712 echo "$as_me:4712: checking for gpm.h" >&5
4713 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4714 if test "${ac_cv_header_gpm_h+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line 4718 "configure"
4719 #include "confdefs.h"
4722 if { (eval echo "$as_me:4722: \"$ac_cpp conftest.$ac_ext\"") >&5
4723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4725 egrep -v '^ *\+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:4728: \$? = $ac_status" >&5
4729 (exit $ac_status); } >/dev/null; then
4730 if test -s conftest.err; then
4731 ac_cpp_err=$ac_c_preproc_warn_flag
4738 if test -z "$ac_cpp_err"; then
4739 ac_cv_header_gpm_h=yes
4741 echo "$as_me: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4743 ac_cv_header_gpm_h=no
4745 rm -f conftest.err conftest.$ac_ext
4747 echo "$as_me:4747: result: $ac_cv_header_gpm_h" >&5
4748 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4749 if test $ac_cv_header_gpm_h = yes; then
4751 cat >>confdefs.h <<\EOF
4752 #define HAVE_GPM_H 1
4755 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4756 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4758 echo "${as_me-configure}:4758: testing assuming we really have GPM library ..." 1>&5
4760 cat >>confdefs.h <<\EOF
4761 #define HAVE_LIBGPM 1
4765 echo "$as_me:4765: checking for Gpm_Open in -lgpm" >&5
4766 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4767 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 ac_check_lib_save_LIBS=$LIBS
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line 4773 "configure"
4774 #include "confdefs.h"
4776 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4791 rm -f conftest.$ac_objext conftest$ac_exeext
4792 if { (eval echo "$as_me:4792: \"$ac_link\"") >&5
4793 (eval $ac_link) 2>&5
4795 echo "$as_me:4795: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:4798: \"$ac_try\"") >&5
4801 echo "$as_me:4801: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_lib_gpm_Gpm_Open=yes
4805 echo "$as_me: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4807 ac_cv_lib_gpm_Gpm_Open=no
4809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4810 LIBS=$ac_check_lib_save_LIBS
4812 echo "$as_me:4812: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4813 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4814 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4818 { { echo "$as_me:4818: error: Cannot link with GPM library" >&5
4819 echo "$as_me: error: Cannot link with GPM library" >&2;}
4820 { (exit 1); exit 1; }; }
4828 test "$with_gpm" != maybe && { echo "$as_me:4828: WARNING: Cannot find GPM header" >&5
4829 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4836 if test "$with_gpm" != no ; then
4837 echo "$as_me:4837: checking if you want to load GPM dynamically" >&5
4838 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4840 # Check whether --with-dlsym or --without-dlsym was given.
4841 if test "${with_dlsym+set}" = set; then
4842 withval="$with_dlsym"
4847 echo "$as_me:4847: result: $with_dlsym" >&5
4848 echo "${ECHO_T}$with_dlsym" >&6
4849 if test "$with_dlsym" = yes ; then
4852 echo "$as_me:4852: checking for dlsym" >&5
4853 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4854 if test "${ac_cv_func_dlsym+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4858 #line 4858 "configure"
4859 #include "confdefs.h"
4860 /* System header to define __stub macros and hopefully few prototypes,
4861 which can conflict with char dlsym (); below. */
4863 /* Override any gcc2 internal prototype to avoid an error. */
4867 /* We use char because int might match the return type of a gcc2
4868 builtin and then its argument prototype would still apply. */
4875 /* The GNU C library defines this for functions which it implements
4876 to always fail with ENOSYS. Some functions are actually named
4877 something starting with __ and the normal name is an alias. */
4878 #if defined (__stub_dlsym) || defined (__stub___dls