2 # From configure.in Revision: 1.547 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20120310.
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-tests suppress build with test-programs
703 --without-curses-h install curses.h as ncurses.h only
704 --with-pkg-config{=path} enable/disable use of pkg-config
705 --with-pkg-config-libdir=XXX use given directory for installing pc-files
706 --enable-pc-files generate and install .pc files for pkg-config
707 --enable-mixed-case tic should assume mixed-case filenames
708 --with-install-prefix prefixes actual install-location ($DESTDIR)
709 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
710 --with-build-cc=XXX the build C compiler ($BUILD_CC)
711 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
712 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
713 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
714 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
715 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
716 Options to Specify the Libraries Built/Used:
717 --disable-libtool-version enable to use libtool's incompatible naming scheme
718 --with-libtool generate libraries with libtool
719 --with-shared generate shared-libraries
720 --with-normal generate normal-libraries (default)
721 --with-debug generate debug-libraries (default)
722 --with-profile generate profile-libraries
723 --with-lib-prefix override library-prefix
724 --with-termlib generate separate terminfo library
725 --with-ticlib generate separate tic library
726 --with-gpm use Alessandro Rubini's GPM library
727 --without-dlsym do not use dlsym() to load GPM dynamically
728 --with-sysmouse use sysmouse (FreeBSD console)
729 --enable-rpath use rpath option when generating shared libraries
730 --disable-relink relink shared libraries during install
731 --with-shlib-version=X Specify rel or abi version for shared libs
732 --disable-rpath-hack don't add rpath options for additional libraries
733 Fine-Tuning Your Configuration:
734 --disable-overwrite leave out the link to -lcurses
735 --disable-database do not use terminfo, only fallbacks/termcap
736 --with-database=XXX specify terminfo source to install
737 --with-hashed-db specify hashed-database library
738 --with-fallbacks=XXX specify list of fallback terminal descriptions
739 --without-xterm-new specify if xterm terminfo should be old version
740 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
741 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
742 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
743 --disable-big-core assume machine has little memory
744 --disable-big-strings assume compiler has only standard-size strings
745 --enable-termcap compile in termcap fallback support
746 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
747 --enable-getcap fast termcap load, no xrefs to terminfo
748 --enable-getcap-cache cache translated termcaps in ~/.terminfo
749 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
750 --disable-root-environ restrict environment when running as root
751 --enable-symlinks make tic use symbolic links not hard links
752 --enable-broken_linker compile with broken-linker support code
753 --enable-bsdpad recognize BSD-style prefix padding
754 --enable-widec compile with wide-char/UTF-8 code
755 --disable-lp64 allow chtype to be long (ignore _LP64)
756 --disable-largefile omit support for large files
757 --disable-tparm-varargs compile tparm() without varargs interface
758 --disable-tic-depends link tic library without explicit dependency on ncurses library
759 --with-bool=TYPE override fallback type of bool variable
760 --with-caps=alt compile with alternate Caps file
761 --with-chtype=TYPE override type of chtype
762 --with-ospeed=TYPE override type of ospeed variable
763 --with-mmask-t=TYPE override type of mmask_t
764 --with-ccharw-max=XXX override size CCHARW_MAX
765 --with-tparm-arg=TYPE override parameter type of tparm
766 --with-rcs-ids compile-in RCS identifiers
767 Options to Specify How Manpages are Installed:
768 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
769 optionally formatted/catonly, e.g., gzip,formatted
770 --with-manpage-renames specify manpage-renaming
771 --with-manpage-aliases specify manpage-aliases using .so
772 --with-manpage-symlinks specify manpage-aliases using symlinks
773 --with-manpage-tbl specify manpage processing with tbl
775 --disable-ext-funcs disable function-extensions
776 --enable-sp-funcs enable experimental SCREEN-extensions
777 --enable-term-driver enable experimental terminal-driver
778 --enable-const compile with extra/non-standard const
779 --enable-ext-colors compile for 256-color support
780 --enable-ext-mouse compile for extended mouse-encoding
781 --enable-no-padding compile with $NCURSES_NO_PADDING code
782 --enable-signed-char compile using signed Boolean's in term.h
783 --enable-sigwinch compile with SIGWINCH handler
784 --enable-tcap-names compile with user-definable terminal capabilities
786 --without-develop disable development options
787 --enable-hard-tabs compile with hard-tabs code
788 --enable-xmc-glitch compile with support for xmc (magic-cookie)
790 --disable-assumed-color do not assume anything about default-colors
791 --disable-hashmap compile without hashmap scrolling-optimization
792 --enable-colorfgbg compile-in experimental $COLORFGBG code
793 --enable-interop compile-in experimental interop bindings
794 --with-pthread use POSIX thread library
795 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
796 --enable-weak-symbols enable weak-symbols for pthreads
797 --enable-reentrant compile with experimental reentrant code
798 --with-wrap-prefix=XXX override prefix used for public variables
799 --enable-safe-sprintf compile with experimental safe-sprintf code
800 --disable-scroll-hints compile without scroll-hints code
801 --enable-wgetch-events compile with experimental wgetch-events code
802 Testing/development Options:
803 --disable-echo display "compiling" commands
804 --enable-warnings build: turn on GCC compiler warnings
805 --enable-string-hacks work around bogus compiler/loader warnings
806 --enable-assertions test: turn on generation of assertion code
807 --with-dmalloc test: use Gray Watson's dmalloc library
808 --with-dbmalloc test: use Conor Cahill's dbmalloc library
809 --with-valgrind test: use valgrind
810 --disable-leaks test: free permanent memory, analyze leaks
811 --enable-expanded test: generate functions for certain macros
812 --disable-macros test: use functions rather than macros
813 --with-trace test: add trace() function to all models of ncurses
814 Ada95 Binding Options:
815 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
816 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
817 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
818 --with-ada-sharedlib=XX build Ada95 shared-library
820 Some influential environment variables:
821 CC C compiler command
822 CFLAGS C compiler flags
823 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
824 nonstandard directory <lib dir>
825 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
826 headers in a nonstandard directory <include dir>
828 CXX C++ compiler command
829 CXXFLAGS C++ compiler flags
830 CXXCPP C++ preprocessor
832 Use these variables to override the choices made by `configure' or to help
833 it to find libraries and programs with nonstandard names/locations.
838 if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
841 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
843 # A "../" for each directory in /$ac_subdir.
844 ac_dots=`echo $ac_subdir |
845 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
848 .) # No --srcdir option. We are building in place.
849 ac_sub_srcdir=$srcdir ;;
850 [\\/]* | ?:[\\/]* ) # Absolute path.
851 ac_sub_srcdir=$srcdir/$ac_subdir ;;
853 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
856 # Check for guested configure; otherwise get Cygnus style configure.
857 if test -f $ac_sub_srcdir/configure.gnu; then
859 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
860 elif test -f $ac_sub_srcdir/configure; then
862 $SHELL $ac_sub_srcdir/configure --help=recursive
863 elif test -f $ac_sub_srcdir/configure.ac ||
864 test -f $ac_sub_srcdir/configure.in; then
868 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
874 test -n "$ac_init_help" && exit 0
875 if $ac_init_version; then
878 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
879 Free Software Foundation, Inc.
880 This configure script is free software; the Free Software Foundation
881 gives unlimited permission to copy, distribute and modify it.
887 This file contains any messages produced by compilers while
888 running configure, to aid debugging if configure makes a mistake.
890 It was created by $as_me, which was
891 generated by GNU Autoconf 2.52.20120310. Invocation command line was
902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
914 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
931 # Keep a trace of the command line.
932 # Strip out --no-create and --no-recursion so they do not pile up.
933 # Also quote any args containing shell meta-characters.
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c) ;;
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
947 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
950 # Get rid of the leading space.
953 # When interrupted or exit'd, cleanup temporary files, and complete
954 # config.log. We remove comments because anyway the quotes in there
955 # would cause problems or look ugly.
957 # Save into config.log some information that might help in debugging.
959 echo "## ----------------- ##" >&5
960 echo "## Cache variables. ##" >&5
961 echo "## ----------------- ##" >&5
963 # The following way of writing the cache mishandles newlines in values,
966 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
969 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
978 sed "/^$/d" confdefs.h >conftest.log
979 if test -s conftest.log; then
981 echo "## ------------ ##" >&5
982 echo "## confdefs.h. ##" >&5
983 echo "## ------------ ##" >&5
988 test "$ac_signal" != 0 &&
989 echo "$as_me: caught signal $ac_signal" >&5
990 echo "$as_me: exit $exit_status" >&5
991 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
994 for ac_signal in 1 2 13 15; do
995 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
999 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1000 rm -rf conftest* confdefs.h
1001 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1004 # Let the site file select an alternate cache file if it wants to.
1005 # Prefer explicitly selected file to automatically selected ones.
1006 if test -z "$CONFIG_SITE"; then
1007 if test "x$prefix" != xNONE; then
1008 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1010 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1013 for ac_site_file in $CONFIG_SITE; do
1014 if test -r "$ac_site_file"; then
1015 { echo "$as_me:1015: loading site script $ac_site_file" >&5
1016 echo "$as_me: loading site script $ac_site_file" >&6;}
1017 cat "$ac_site_file" >&5
1022 if test -r "$cache_file"; then
1023 # Some versions of bash will fail to source /dev/null (special
1024 # files actually), so we avoid doing that.
1025 if test -f "$cache_file"; then
1026 { echo "$as_me:1026: loading cache $cache_file" >&5
1027 echo "$as_me: loading cache $cache_file" >&6;}
1029 [\\/]* | ?:[\\/]* ) . $cache_file;;
1030 *) . ./$cache_file;;
1034 { echo "$as_me:1034: creating cache $cache_file" >&5
1035 echo "$as_me: creating cache $cache_file" >&6;}
1039 # Check that the precious variables saved in the cache have kept the same
1041 ac_cache_corrupted=false
1042 for ac_var in `(set) 2>&1 |
1043 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1044 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1045 eval ac_new_set=\$ac_env_${ac_var}_set
1046 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1047 eval ac_new_val="\$ac_env_${ac_var}_value"
1048 case $ac_old_set,$ac_new_set in
1050 { echo "$as_me:1050: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1051 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1052 ac_cache_corrupted=: ;;
1054 { echo "$as_me:1054: error: \`$ac_var' was not set in the previous run" >&5
1055 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1056 ac_cache_corrupted=: ;;
1059 if test "x$ac_old_val" != "x$ac_new_val"; then
1060 { echo "$as_me:1060: error: \`$ac_var' has changed since the previous run:" >&5
1061 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1062 { echo "$as_me:1062: former value: $ac_old_val" >&5
1063 echo "$as_me: former value: $ac_old_val" >&2;}
1064 { echo "$as_me:1064: current value: $ac_new_val" >&5
1065 echo "$as_me: current value: $ac_new_val" >&2;}
1066 ac_cache_corrupted=:
1069 # Pass precious variables to config.status. It doesn't matter if
1070 # we pass some twice (in addition to the command line arguments).
1071 if test "$ac_new_set" = set; then
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1075 ac_configure_args="$ac_configure_args '$ac_arg'"
1077 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1082 if $ac_cache_corrupted; then
1083 { echo "$as_me:1083: error: changes in the environment can compromise the build" >&5
1084 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1085 { { echo "$as_me:1085: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1086 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1087 { (exit 1); exit 1; }; }
1091 ac_cpp='$CPP $CPPFLAGS'
1092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1095 ac_main_return=return
1097 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1098 *c*,-n*) ECHO_N= ECHO_C='
1100 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1101 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1103 echo "#! $SHELL" >conftest.sh
1104 echo "exit 0" >>conftest.sh
1105 chmod +x conftest.sh
1106 if { (echo "$as_me:1106: PATH=\".;.\"; conftest.sh") >&5
1107 (PATH=".;."; conftest.sh) 2>&5
1109 echo "$as_me:1109: \$? = $ac_status" >&5
1110 (exit $ac_status); }; then
1111 ac_path_separator=';'
1115 PATH_SEPARATOR="$ac_path_separator"
1118 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1122 echo "$as_me:1122: checking for egrep" >&5
1123 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1124 if test "${ac_cv_prog_egrep+set}" = set; then
1125 echo $ECHO_N "(cached) $ECHO_C" >&6
1127 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1128 then ac_cv_prog_egrep='grep -E'
1129 else ac_cv_prog_egrep='egrep'
1132 echo "$as_me:1132: result: $ac_cv_prog_egrep" >&5
1133 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1134 EGREP=$ac_cv_prog_egrep
1136 test -z "$EGREP" && { { echo "$as_me:1136: error: No egrep program found" >&5
1137 echo "$as_me: error: No egrep program found" >&2;}
1138 { (exit 1); exit 1; }; }
1140 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1141 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1142 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1143 cf_cv_abi_version=${NCURSES_MAJOR}
1144 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1145 cf_cv_timestamp=`date`
1146 echo "$as_me:1146: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1147 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1149 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1151 # Check whether --with-rel-version or --without-rel-version was given.
1152 if test "${with_rel_version+set}" = set; then
1153 withval="$with_rel_version"
1154 { echo "$as_me:1154: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1155 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1156 cf_cv_rel_version=$withval
1159 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1160 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1162 if test -n "$NCURSES_MAJOR" ; then
1163 case $NCURSES_MAJOR in #(vi
1167 { { echo "$as_me:1167: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1168 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1169 { (exit 1); exit 1; }; }
1173 { { echo "$as_me:1173: error: Release major-version value is empty" >&5
1174 echo "$as_me: error: Release major-version value is empty" >&2;}
1175 { (exit 1); exit 1; }; }
1178 if test -n "$NCURSES_MINOR" ; then
1179 case $NCURSES_MINOR in #(vi
1183 { { echo "$as_me:1183: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1184 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1185 { (exit 1); exit 1; }; }
1189 { { echo "$as_me:1189: error: Release minor-version value is empty" >&5
1190 echo "$as_me: error: Release minor-version value is empty" >&2;}
1191 { (exit 1); exit 1; }; }
1194 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1196 # Check whether --with-abi-version or --without-abi-version was given.
1197 if test "${with_abi_version+set}" = set; then
1198 withval="$with_abi_version"
1199 { echo "$as_me:1199: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1200 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1201 cf_cv_abi_version=$withval
1204 if test -n "$cf_cv_abi_version" ; then
1205 case $cf_cv_abi_version in #(vi
1209 { { echo "$as_me:1209: error: ABI version is not a number: $cf_cv_abi_version" >&5
1210 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1211 { (exit 1); exit 1; }; }
1215 { { echo "$as_me:1215: error: ABI version value is empty" >&5
1216 echo "$as_me: error: ABI version value is empty" >&2;}
1217 { (exit 1); exit 1; }; }
1221 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1222 if test -f $ac_dir/install-sh; then
1224 ac_install_sh="$ac_aux_dir/install-sh -c"
1226 elif test -f $ac_dir/install.sh; then
1228 ac_install_sh="$ac_aux_dir/install.sh -c"
1230 elif test -f $ac_dir/shtool; then
1232 ac_install_sh="$ac_aux_dir/shtool install -c"
1236 if test -z "$ac_aux_dir"; then
1237 { { echo "$as_me:1237: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1238 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1239 { (exit 1); exit 1; }; }
1241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1243 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1245 # Make sure we can run config.sub.
1246 $ac_config_sub sun4 >/dev/null 2>&1 ||
1247 { { echo "$as_me:1247: error: cannot run $ac_config_sub" >&5
1248 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1249 { (exit 1); exit 1; }; }
1251 echo "$as_me:1251: checking build system type" >&5
1252 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1253 if test "${ac_cv_build+set}" = set; then
1254 echo $ECHO_N "(cached) $ECHO_C" >&6
1256 ac_cv_build_alias=$build_alias
1257 test -z "$ac_cv_build_alias" &&
1258 ac_cv_build_alias=`$ac_config_guess`
1259 test -z "$ac_cv_build_alias" &&
1260 { { echo "$as_me:1260: error: cannot guess build type; you must specify one" >&5
1261 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1262 { (exit 1); exit 1; }; }
1263 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1264 { { echo "$as_me:1264: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1265 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1266 { (exit 1); exit 1; }; }
1269 echo "$as_me:1269: result: $ac_cv_build" >&5
1270 echo "${ECHO_T}$ac_cv_build" >&6
1272 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1273 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1274 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1276 echo "$as_me:1276: checking host system type" >&5
1277 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1278 if test "${ac_cv_host+set}" = set; then
1279 echo $ECHO_N "(cached) $ECHO_C" >&6
1281 ac_cv_host_alias=$host_alias
1282 test -z "$ac_cv_host_alias" &&
1283 ac_cv_host_alias=$ac_cv_build_alias
1284 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1285 { { echo "$as_me:1285: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1286 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1287 { (exit 1); exit 1; }; }
1290 echo "$as_me:1290: result: $ac_cv_host" >&5
1291 echo "${ECHO_T}$ac_cv_host" >&6
1293 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1294 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1295 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1297 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1298 echo "$as_me:1298: checking target system type" >&5
1299 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1300 if test "${ac_cv_target+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_target_alias=$target_alias
1304 test "x$ac_cv_target_alias" = "x" &&
1305 ac_cv_target_alias=$ac_cv_host_alias
1306 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1307 { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:1312: result: $ac_cv_target" >&5
1313 echo "${ECHO_T}$ac_cv_target" >&6
1314 target=$ac_cv_target
1315 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 # The aliases save the names the user supplied, while $host etc.
1320 # will get canonicalized.
1321 test -n "$target_alias" &&
1322 test "$program_prefix$program_suffix$program_transform_name" = \
1324 program_prefix=${target_alias}-
1325 system_name="$host_os"
1327 system_name="`(uname -s -r) 2>/dev/null`"
1328 if test -z "$system_name" ; then
1329 system_name="`(hostname) 2>/dev/null`"
1332 test -n "$system_name" && cat >>confdefs.h <<EOF
1333 #define SYSTEM_NAME "$system_name"
1336 if test "${cf_cv_system_name+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1339 cf_cv_system_name="$system_name"
1342 test -z "$system_name" && system_name="$cf_cv_system_name"
1343 test -n "$cf_cv_system_name" && echo "$as_me:1343: result: Configuring for $cf_cv_system_name" >&5
1344 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1346 if test ".$system_name" != ".$cf_cv_system_name" ; then
1347 echo "$as_me:1347: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1348 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1349 { { echo "$as_me:1349: error: \"Please remove config.cache and try again.\"" >&5
1350 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1351 { (exit 1); exit 1; }; }
1354 # Check whether --with-system-type or --without-system-type was given.
1355 if test "${with_system_type+set}" = set; then
1356 withval="$with_system_type"
1357 { echo "$as_me:1357: WARNING: overriding system type to $withval" >&5
1358 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1359 cf_cv_system_name=$withval
1362 ### Save the given $CFLAGS to allow user-override.
1363 cf_user_CFLAGS="$CFLAGS"
1365 ### Default install-location
1367 echo "$as_me:1367: checking for prefix" >&5
1368 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1369 if test "x$prefix" = "xNONE" ; then
1370 case "$cf_cv_system_name" in
1371 # non-vendor systems don't have a conflict
1372 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1375 *) prefix=$ac_default_prefix
1379 echo "$as_me:1379: result: $prefix" >&5
1380 echo "${ECHO_T}$prefix" >&6
1382 if test "x$prefix" = "xNONE" ; then
1383 echo "$as_me:1383: checking for default include-directory" >&5
1384 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1385 test -n "$verbose" && echo 1>&6
1388 $includedir/ncurses \
1390 $prefix/include/ncurses \
1391 /usr/local/include \
1392 /usr/local/include/ncurses \
1394 /usr/include/ncurses
1396 cf_dir=`eval echo $cf_symbol`
1397 if test -f $cf_dir/curses.h ; then
1398 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1399 includedir="$cf_symbol"
1400 test -n "$verbose" && echo $ac_n " found " 1>&6
1404 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1406 echo "$as_me:1406: result: $includedir" >&5
1407 echo "${ECHO_T}$includedir" >&6
1410 ### Checks for programs.
1412 ac_cpp='$CPP $CPPFLAGS'
1413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1416 ac_main_return=return
1417 if test -n "$ac_tool_prefix"; then
1418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1420 echo "$as_me:1420: checking for $ac_word" >&5
1421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422 if test "${ac_cv_prog_CC+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 if test -n "$CC"; then
1426 ac_cv_prog_CC="$CC" # Let the user override the test.
1428 ac_save_IFS=$IFS; IFS=$ac_path_separator
1430 for ac_dir in $ac_dummy; do
1432 test -z "$ac_dir" && ac_dir=.
1433 $as_executable_p "$ac_dir/$ac_word" || continue
1434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1435 echo "$as_me:1435: found $ac_dir/$ac_word" >&5
1442 if test -n "$CC"; then
1443 echo "$as_me:1443: result: $CC" >&5
1444 echo "${ECHO_T}$CC" >&6
1446 echo "$as_me:1446: result: no" >&5
1447 echo "${ECHO_T}no" >&6
1451 if test -z "$ac_cv_prog_CC"; then
1453 # Extract the first word of "gcc", so it can be a program name with args.
1454 set dummy gcc; ac_word=$2
1455 echo "$as_me:1455: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 if test -n "$ac_ct_CC"; then
1461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1463 ac_save_IFS=$IFS; IFS=$ac_path_separator
1465 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 $as_executable_p "$ac_dir/$ac_word" || continue
1469 ac_cv_prog_ac_ct_CC="gcc"
1470 echo "$as_me:1470: found $ac_dir/$ac_word" >&5
1476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1477 if test -n "$ac_ct_CC"; then
1478 echo "$as_me:1478: result: $ac_ct_CC" >&5
1479 echo "${ECHO_T}$ac_ct_CC" >&6
1481 echo "$as_me:1481: result: no" >&5
1482 echo "${ECHO_T}no" >&6
1490 if test -z "$CC"; then
1491 if test -n "$ac_tool_prefix"; then
1492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1493 set dummy ${ac_tool_prefix}cc; ac_word=$2
1494 echo "$as_me:1494: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$CC"; then
1500 ac_cv_prog_CC="$CC" # Let the user override the test.
1502 ac_save_IFS=$IFS; IFS=$ac_path_separator
1504 for ac_dir in $ac_dummy; do
1506 test -z "$ac_dir" && ac_dir=.
1507 $as_executable_p "$ac_dir/$ac_word" || continue
1508 ac_cv_prog_CC="${ac_tool_prefix}cc"
1509 echo "$as_me:1509: found $ac_dir/$ac_word" >&5
1516 if test -n "$CC"; then
1517 echo "$as_me:1517: result: $CC" >&5
1518 echo "${ECHO_T}$CC" >&6
1520 echo "$as_me:1520: result: no" >&5
1521 echo "${ECHO_T}no" >&6
1525 if test -z "$ac_cv_prog_CC"; then
1527 # Extract the first word of "cc", so it can be a program name with args.
1528 set dummy cc; ac_word=$2
1529 echo "$as_me:1529: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$ac_ct_CC"; then
1535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1537 ac_save_IFS=$IFS; IFS=$ac_path_separator
1539 for ac_dir in $ac_dummy; do
1541 test -z "$ac_dir" && ac_dir=.
1542 $as_executable_p "$ac_dir/$ac_word" || continue
1543 ac_cv_prog_ac_ct_CC="cc"
1544 echo "$as_me:1544: found $ac_dir/$ac_word" >&5
1550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1551 if test -n "$ac_ct_CC"; then
1552 echo "$as_me:1552: result: $ac_ct_CC" >&5
1553 echo "${ECHO_T}$ac_ct_CC" >&6
1555 echo "$as_me:1555: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1565 if test -z "$CC"; then
1566 # Extract the first word of "cc", so it can be a program name with args.
1567 set dummy cc; ac_word=$2
1568 echo "$as_me:1568: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_prog_CC+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 if test -n "$CC"; then
1574 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 ac_save_IFS=$IFS; IFS=$ac_path_separator
1579 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 $as_executable_p "$ac_dir/$ac_word" || continue
1583 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1584 ac_prog_rejected=yes
1588 echo "$as_me:1588: found $ac_dir/$ac_word" >&5
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1596 if test $# != 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1601 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1609 if test -n "$CC"; then
1610 echo "$as_me:1610: result: $CC" >&5
1611 echo "${ECHO_T}$CC" >&6
1613 echo "$as_me:1613: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1618 if test -z "$CC"; then
1619 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1624 echo "$as_me:1624: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 ac_save_IFS=$IFS; IFS=$ac_path_separator
1634 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 $as_executable_p "$ac_dir/$ac_word" || continue
1638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1639 echo "$as_me:1639: found $ac_dir/$ac_word" >&5
1646 if test -n "$CC"; then
1647 echo "$as_me:1647: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1650 echo "$as_me:1650: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1654 test -n "$CC" && break
1657 if test -z "$CC"; then
1661 # Extract the first word of "$ac_prog", so it can be a program name with args.
1662 set dummy $ac_prog; ac_word=$2
1663 echo "$as_me:1663: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671 ac_save_IFS=$IFS; IFS=$ac_path_separator
1673 for ac_dir in $ac_dummy; do
1675 test -z "$ac_dir" && ac_dir=.
1676 $as_executable_p "$ac_dir/$ac_word" || continue
1677 ac_cv_prog_ac_ct_CC="$ac_prog"
1678 echo "$as_me:1678: found $ac_dir/$ac_word" >&5
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:1686: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1689 echo "$as_me:1689: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$ac_ct_CC" && break
1701 test -z "$CC" && { { echo "$as_me:1701: error: no acceptable cc found in \$PATH" >&5
1702 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1703 { (exit 1); exit 1; }; }
1705 # Provide some information about the compiler.
1706 echo "$as_me:1706:" \
1707 "checking for C compiler version" >&5
1708 ac_compiler=`set X $ac_compile; echo $2`
1709 { (eval echo "$as_me:1709: \"$ac_compiler --version </dev/null >&5\"") >&5
1710 (eval $ac_compiler --version </dev/null >&5) 2>&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714 { (eval echo "$as_me:1714: \"$ac_compiler -v </dev/null >&5\"") >&5
1715 (eval $ac_compiler -v </dev/null >&5) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1719 { (eval echo "$as_me:1719: \"$ac_compiler -V </dev/null >&5\"") >&5
1720 (eval $ac_compiler -V </dev/null >&5) 2>&5
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); }
1725 cat >conftest.$ac_ext <<_ACEOF
1726 #line 1726 "configure"
1727 #include "confdefs.h"
1737 ac_clean_files_save=$ac_clean_files
1738 ac_clean_files="$ac_clean_files a.out a.exe"
1739 # Try to create an executable without -o first, disregard a.out.
1740 # It will help us diagnose broken compilers, and finding out an intuition
1742 echo "$as_me:1742: checking for C compiler default output" >&5
1743 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1744 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1745 if { (eval echo "$as_me:1745: \"$ac_link_default\"") >&5
1746 (eval $ac_link_default) 2>&5
1748 echo "$as_me:1748: \$? = $ac_status" >&5
1749 (exit $ac_status); }; then
1750 # Find the output, starting from the most likely. This scheme is
1751 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1753 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1754 ls a.out conftest 2>/dev/null;
1755 ls a.* conftest.* 2>/dev/null`; do
1757 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1758 a.out ) # We found the default executable, but exeext='' is most
1761 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1762 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1769 echo "$as_me: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1771 { { echo "$as_me:1771: error: C compiler cannot create executables" >&5
1772 echo "$as_me: error: C compiler cannot create executables" >&2;}
1773 { (exit 77); exit 77; }; }
1776 ac_exeext=$ac_cv_exeext
1777 echo "$as_me:1777: result: $ac_file" >&5
1778 echo "${ECHO_T}$ac_file" >&6
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether the C compiler works" >&5
1783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785 # If not cross compiling, check that we can run a simple program.
1786 if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1795 if test "$cross_compiling" = maybe; then
1798 { { echo "$as_me:1798: error: cannot run C compiled programs.
1799 If you meant to cross compile, use \`--host'." >&5
1800 echo "$as_me: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'." >&2;}
1802 { (exit 1); exit 1; }; }
1806 echo "$as_me:1806: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1809 rm -f a.out a.exe conftest$ac_cv_exeext
1810 ac_clean_files=$ac_clean_files_save
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:1813: checking whether we are cross compiling" >&5
1814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815 echo "$as_me:1815: result: $cross_compiling" >&5
1816 echo "${ECHO_T}$cross_compiling" >&6
1818 echo "$as_me:1818: checking for executable suffix" >&5
1819 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1820 if { (eval echo "$as_me:1820: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1823 echo "$as_me:1823: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827 # work properly (i.e., refer to `conftest.exe'), while it won't with
1829 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1839 { { echo "$as_me:1839: error: cannot compute EXEEXT: cannot compile and link" >&5
1840 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1841 { (exit 1); exit 1; }; }
1844 rm -f conftest$ac_cv_exeext
1845 echo "$as_me:1845: result: $ac_cv_exeext" >&5
1846 echo "${ECHO_T}$ac_cv_exeext" >&6
1848 rm -f conftest.$ac_ext
1849 EXEEXT=$ac_cv_exeext
1851 echo "$as_me:1851: checking for object suffix" >&5
1852 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1853 if test "${ac_cv_objext+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 cat >conftest.$ac_ext <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1868 rm -f conftest.o conftest.obj
1869 if { (eval echo "$as_me:1869: \"$ac_compile\"") >&5
1870 (eval $ac_compile) 2>&5
1872 echo "$as_me:1872: \$? = $ac_status" >&5
1873 (exit $ac_status); }; then
1874 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1876 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882 echo "$as_me: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 { { echo "$as_me:1884: error: cannot compute OBJEXT: cannot compile" >&5
1885 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1886 { (exit 1); exit 1; }; }
1889 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1891 echo "$as_me:1891: result: $ac_cv_objext" >&5
1892 echo "${ECHO_T}$ac_cv_objext" >&6
1893 OBJEXT=$ac_cv_objext
1895 echo "$as_me:1895: checking whether we are using the GNU C compiler" >&5
1896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 cat >conftest.$ac_ext <<_ACEOF
1901 #line 1901 "configure"
1902 #include "confdefs.h"
1915 rm -f conftest.$ac_objext
1916 if { (eval echo "$as_me:1916: \"$ac_compile\"") >&5
1917 (eval $ac_compile) 2>&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); } &&
1921 { ac_try='test -s conftest.$ac_objext'
1922 { (eval echo "$as_me:1922: \"$ac_try\"") >&5
1925 echo "$as_me:1925: \$? = $ac_status" >&5
1926 (exit $ac_status); }; }; then
1929 echo "$as_me: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1933 rm -f conftest.$ac_objext conftest.$ac_ext
1934 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1937 echo "$as_me:1937: result: $ac_cv_c_compiler_gnu" >&5
1938 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1939 GCC=`test $ac_compiler_gnu = yes && echo yes`
1940 ac_test_CFLAGS=${CFLAGS+set}
1941 ac_save_CFLAGS=$CFLAGS
1943 echo "$as_me:1943: checking whether $CC accepts -g" >&5
1944 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1945 if test "${ac_cv_prog_cc_g+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line 1949 "configure"
1950 #include "confdefs.h"
1960 rm -f conftest.$ac_objext
1961 if { (eval echo "$as_me:1961: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); } &&
1966 { ac_try='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:1967: \"$ac_try\"") >&5
1970 echo "$as_me:1970: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1974 echo "$as_me: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1978 rm -f conftest.$ac_objext conftest.$ac_ext
1980 echo "$as_me:1980: result: $ac_cv_prog_cc_g" >&5
1981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1982 if test "$ac_test_CFLAGS" = set; then
1983 CFLAGS=$ac_save_CFLAGS
1984 elif test $ac_cv_prog_cc_g = yes; then
1985 if test "$GCC" = yes; then
1991 if test "$GCC" = yes; then
1997 # Some people use a C++ compiler to compile C. Since we use `exit',
1998 # in C++ we need to declare it. In case someone uses the same compiler
1999 # for both compiling C and C++ we need to have the C++ compiler decide
2000 # the declaration of exit, since it's the most demanding environment.
2001 cat >conftest.$ac_ext <<_ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:2007: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:2013: \"$ac_try\"") >&5
2016 echo "$as_me:2016: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2018 for ac_declaration in \
2020 '#include <stdlib.h>' \
2021 'extern "C" void std::exit (int) throw (); using std::exit;' \
2022 'extern "C" void std::exit (int); using std::exit;' \
2023 'extern "C" void exit (int) throw ();' \
2024 'extern "C" void exit (int);' \
2027 cat >conftest.$ac_ext <<_ACEOF
2028 #line 2028 "configure"
2029 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2058 rm -f conftest.$ac_objext conftest.$ac_ext
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2071 rm -f conftest.$ac_objext
2072 if { (eval echo "$as_me:2072: \"$ac_compile\"") >&5
2073 (eval $ac_compile) 2>&5
2075 echo "$as_me:2075: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -s conftest.$ac_objext'
2078 { (eval echo "$as_me:2078: \"$ac_try\"") >&5
2081 echo "$as_me:2081: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2085 echo "$as_me: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 rm -f conftest.$ac_objext conftest.$ac_ext
2091 if test -n "$ac_declaration"; then
2092 echo '#ifdef __cplusplus' >>confdefs.h
2093 echo $ac_declaration >>confdefs.h
2094 echo '#endif' >>confdefs.h
2098 echo "$as_me: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 rm -f conftest.$ac_objext conftest.$ac_ext
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107 ac_main_return=return
2110 if test "$GCC" = yes ; then
2111 echo "$as_me:2111: checking version of $CC" >&5
2112 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2113 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2114 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2115 echo "$as_me:2115: result: $GCC_VERSION" >&5
2116 echo "${ECHO_T}$GCC_VERSION" >&6
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124 ac_main_return=return
2125 echo "$as_me:2125: checking how to run the C preprocessor" >&5
2126 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2127 # On Suns, sometimes $CPP names a directory.
2128 if test -n "$CPP" && test -d "$CPP"; then
2131 if test -z "$CPP"; then
2132 if test "${ac_cv_prog_CPP+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 # Double quotes because CPP needs to be expanded
2136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2139 for ac_c_preproc_warn_flag in '' yes
2141 # Use a header file that comes with gcc, so configuring glibc
2142 # with a fresh cross-compiler works.
2143 # On the NeXT, cc -E runs the code through the compiler's parser,
2144 # not just through cpp. "Syntax error" is here to catch this case.
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line 2146 "configure"
2147 #include "confdefs.h"
2151 if { (eval echo "$as_me:2151: \"$ac_cpp conftest.$ac_ext\"") >&5
2152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2154 egrep -v '^ *\+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:2157: \$? = $ac_status" >&5
2158 (exit $ac_status); } >/dev/null; then
2159 if test -s conftest.err; then
2160 ac_cpp_err=$ac_c_preproc_warn_flag
2167 if test -z "$ac_cpp_err"; then
2170 echo "$as_me: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 # Broken: fails on valid input.
2175 rm -f conftest.err conftest.$ac_ext
2177 # OK, works on sane cases. Now check whether non-existent headers
2178 # can be detected and how.
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line 2180 "configure"
2181 #include "confdefs.h"
2182 #include <ac_nonexistent.h>
2184 if { (eval echo "$as_me:2184: \"$ac_cpp conftest.$ac_ext\"") >&5
2185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2187 egrep -v '^ *\+' conftest.er1 >conftest.err
2189 cat conftest.err >&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); } >/dev/null; then
2192 if test -s conftest.err; then
2193 ac_cpp_err=$ac_c_preproc_warn_flag
2200 if test -z "$ac_cpp_err"; then
2201 # Broken: success on invalid input.
2204 echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 # Passes both tests.
2210 rm -f conftest.err conftest.$ac_ext
2213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2214 rm -f conftest.err conftest.$ac_ext
2215 if $ac_preproc_ok; then
2227 echo "$as_me:2227: result: $CPP" >&5
2228 echo "${ECHO_T}$CPP" >&6
2230 for ac_c_preproc_warn_flag in '' yes
2232 # Use a header file that comes with gcc, so configuring glibc
2233 # with a fresh cross-compiler works.
2234 # On the NeXT, cc -E runs the code through the compiler's parser,
2235 # not just through cpp. "Syntax error" is here to catch this case.
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #line 2237 "configure"
2238 #include "confdefs.h"
2242 if { (eval echo "$as_me:2242: \"$ac_cpp conftest.$ac_ext\"") >&5
2243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2245 egrep -v '^ *\+' conftest.er1 >conftest.err
2247 cat conftest.err >&5
2248 echo "$as_me:2248: \$? = $ac_status" >&5
2249 (exit $ac_status); } >/dev/null; then
2250 if test -s conftest.err; then
2251 ac_cpp_err=$ac_c_preproc_warn_flag
2258 if test -z "$ac_cpp_err"; then
2261 echo "$as_me: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2263 # Broken: fails on valid input.
2266 rm -f conftest.err conftest.$ac_ext
2268 # OK, works on sane cases. Now check whether non-existent headers
2269 # can be detected and how.
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line 2271 "configure"
2272 #include "confdefs.h"
2273 #include <ac_nonexistent.h>
2275 if { (eval echo "$as_me:2275: \"$ac_cpp conftest.$ac_ext\"") >&5
2276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278 egrep -v '^ *\+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:2281: \$? = $ac_status" >&5
2282 (exit $ac_status); } >/dev/null; then
2283 if test -s conftest.err; then
2284 ac_cpp_err=$ac_c_preproc_warn_flag
2291 if test -z "$ac_cpp_err"; then
2292 # Broken: success on invalid input.
2295 echo "$as_me: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2297 # Passes both tests.
2301 rm -f conftest.err conftest.$ac_ext
2304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2305 rm -f conftest.err conftest.$ac_ext
2306 if $ac_preproc_ok; then
2309 { { echo "$as_me:2309: error: C preprocessor \"$CPP\" fails sanity check" >&5
2310 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2311 { (exit 1); exit 1; }; }
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 ac_main_return=return
2321 if test $ac_cv_c_compiler_gnu = yes; then
2322 echo "$as_me:2322: checking whether $CC needs -traditional" >&5
2323 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2324 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 ac_pattern="Autoconf.*'x'"
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line 2329 "configure"
2330 #include "confdefs.h"
2332 int Autoconf = TIOCGETP;
2334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2335 egrep "$ac_pattern" >/dev/null 2>&1; then
2336 ac_cv_prog_gcc_traditional=yes
2338 ac_cv_prog_gcc_traditional=no
2342 if test $ac_cv_prog_gcc_traditional = no; then
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line 2344 "configure"
2345 #include "confdefs.h"
2347 int Autoconf = TCGETA;
2349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2350 egrep "$ac_pattern" >/dev/null 2>&1; then
2351 ac_cv_prog_gcc_traditional=yes
2357 echo "$as_me:2357: result: $ac_cv_prog_gcc_traditional" >&5
2358 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2359 if test $ac_cv_prog_gcc_traditional = yes; then
2360 CC="$CC -traditional"
2364 echo "$as_me:2364: checking whether $CC understands -c and -o together" >&5
2365 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2366 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat > conftest.$ac_ext <<CF_EOF
2374 ${cf_cv_main_return:-return}(0);
2377 # We do the test twice because some compilers refuse to overwrite an
2378 # existing .o file with -o, though they will create one.
2379 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2380 if { (eval echo "$as_me:2380: \"$ac_try\"") >&5
2383 echo "$as_me:2383: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 test -f conftest2.$ac_objext && { (eval echo "$as_me:2385: \"$ac_try\"") >&5
2388 echo "$as_me:2388: \$? = $ac_status" >&5
2389 (exit $ac_status); };
2391 eval cf_cv_prog_CC_c_o=yes
2393 eval cf_cv_prog_CC_c_o=no
2398 if test $cf_cv_prog_CC_c_o = yes; then
2399 echo "$as_me:2399: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2402 echo "$as_me:2402: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2406 echo "$as_me:2406: checking for POSIXized ISC" >&5
2407 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2408 if test -d /etc/conf/kconfig.d &&
2409 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2411 echo "$as_me:2411: result: yes" >&5
2412 echo "${ECHO_T}yes" >&6
2413 ISC=yes # If later tests want to check for ISC.
2415 cat >>confdefs.h <<\EOF
2416 #define _POSIX_SOURCE 1
2419 if test "$GCC" = yes; then
2425 echo "$as_me:2425: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2430 # This should have been defined by AC_PROG_CC
2433 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2434 # into CC. This will not help with broken scripts that wrap the compiler with
2435 # options, but eliminates a more common category of user confusion.
2436 echo "$as_me:2436: checking \$CC variable" >&5
2437 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2440 echo "$as_me:2440: result: broken" >&5
2441 echo "${ECHO_T}broken" >&6
2442 { echo "$as_me:2442: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2443 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2445 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2446 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2451 cf_new_extra_cppflags=
2453 for cf_add_cflags in $cf_flags
2455 case $cf_fix_cppflags in
2457 case $cf_add_cflags in #(vi
2458 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2459 case $cf_add_cflags in
2461 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2463 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2464 && test -z "${cf_tst_cflags}" \
2465 && cf_fix_cppflags=yes
2467 if test $cf_fix_cppflags = yes ; then
2468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2470 elif test "${cf_tst_cflags}" = "\"'" ; then
2471 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2477 *$cf_add_cflags) #(vi
2480 case $cf_add_cflags in #(vi
2482 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2484 CPPFLAGS=`echo "$CPPFLAGS" | \
2485 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2486 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2490 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2495 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2502 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2504 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2505 && test -z "${cf_tst_cflags}" \
2506 && cf_fix_cppflags=no
2511 if test -n "$cf_new_cflags" ; then
2513 CFLAGS="$CFLAGS $cf_new_cflags"
2516 if test -n "$cf_new_cppflags" ; then
2518 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2521 if test -n "$cf_new_extra_cppflags" ; then
2523 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2528 echo "$as_me:2528: result: ok" >&5
2529 echo "${ECHO_T}ok" >&6
2533 echo "$as_me:2533: checking for ${CC:-cc} option to accept ANSI C" >&5
2534 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2535 if test "${cf_cv_ansi_cc+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 cf_save_CFLAGS="$CFLAGS"
2541 cf_save_CPPFLAGS="$CPPFLAGS"
2542 # Don't try gcc -ansi; that turns off useful extensions and
2543 # breaks some systems' header files.
2544 # AIX -qlanglvl=ansi
2545 # Ultrix and OSF/1 -std1
2546 # HP-UX -Aa -D_HPUX_SOURCE
2548 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2549 for cf_arg in "-DCC_HAS_PROTOS" \
2554 "-Aa -D_HPUX_SOURCE" \
2561 cf_new_extra_cppflags=
2563 for cf_add_cflags in $cf_arg
2565 case $cf_fix_cppflags in
2567 case $cf_add_cflags in #(vi
2568 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2569 case $cf_add_cflags in
2571 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2573 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2574 && test -z "${cf_tst_cflags}" \
2575 && cf_fix_cppflags=yes
2577 if test $cf_fix_cppflags = yes ; then
2578 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2580 elif test "${cf_tst_cflags}" = "\"'" ; then
2581 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2587 *$cf_add_cflags) #(vi
2590 case $cf_add_cflags in #(vi
2592 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2594 CPPFLAGS=`echo "$CPPFLAGS" | \
2595 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2596 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2600 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2605 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2610 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2612 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2614 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2615 && test -z "${cf_tst_cflags}" \
2616 && cf_fix_cppflags=no
2621 if test -n "$cf_new_cflags" ; then
2623 CFLAGS="$CFLAGS $cf_new_cflags"
2626 if test -n "$cf_new_cppflags" ; then
2628 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2631 if test -n "$cf_new_extra_cppflags" ; then
2633 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2636 cat >conftest.$ac_ext <<_ACEOF
2637 #line 2637 "configure"
2638 #include "confdefs.h"
2640 #ifndef CC_HAS_PROTOS
2641 #if !defined(__STDC__) || (__STDC__ != 1)
2650 int test (int i, double x);
2651 struct s1 {int (*f) (int a);};
2652 struct s2 {int (*f) (double a);};
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:2658: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>&5
2661 echo "$as_me:2661: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:2664: \"$ac_try\"") >&5
2667 echo "$as_me:2667: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 cf_cv_ansi_cc="$cf_arg"; break
2671 echo "$as_me: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2674 rm -f conftest.$ac_objext conftest.$ac_ext
2676 CFLAGS="$cf_save_CFLAGS"
2677 CPPFLAGS="$cf_save_CPPFLAGS"
2680 echo "$as_me:2680: result: $cf_cv_ansi_cc" >&5
2681 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2683 if test "$cf_cv_ansi_cc" != "no"; then
2684 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2689 cf_new_extra_cppflags=
2691 for cf_add_cflags in $cf_cv_ansi_cc
2693 case $cf_fix_cppflags in
2695 case $cf_add_cflags in #(vi
2696 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2697 case $cf_add_cflags in
2699 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2701 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2702 && test -z "${cf_tst_cflags}" \
2703 && cf_fix_cppflags=yes
2705 if test $cf_fix_cppflags = yes ; then
2706 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2708 elif test "${cf_tst_cflags}" = "\"'" ; then
2709 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2715 *$cf_add_cflags) #(vi
2718 case $cf_add_cflags in #(vi
2720 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2722 CPPFLAGS=`echo "$CPPFLAGS" | \
2723 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2724 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2728 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2733 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2738 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2740 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2742 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2743 && test -z "${cf_tst_cflags}" \
2744 && cf_fix_cppflags=no
2749 if test -n "$cf_new_cflags" ; then
2751 CFLAGS="$CFLAGS $cf_new_cflags"
2754 if test -n "$cf_new_cppflags" ; then
2756 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2759 if test -n "$cf_new_extra_cppflags" ; then
2761 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2765 cat >>confdefs.h <<\EOF
2766 #define CC_HAS_PROTOS 1
2772 if test "$cf_cv_ansi_cc" = "no"; then
2773 { { echo "$as_me:2773: error: Your compiler does not appear to recognize prototypes.
2774 You have the following choices:
2775 a. adjust your compiler options
2776 b. get an up-to-date compiler
2777 c. use a wrapper such as unproto" >&5
2778 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2779 You have the following choices:
2780 a. adjust your compiler options
2781 b. get an up-to-date compiler
2782 c. use a wrapper such as unproto" >&2;}
2783 { (exit 1); exit 1; }; }
2786 case $cf_cv_system_name in
2788 CFLAGS="$CFLAGS -Zmt"
2789 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2790 CXXFLAGS="$CXXFLAGS -Zmt"
2791 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2792 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2799 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2800 #define PROG_EXT "$PROG_EXT"
2803 if test "$cross_compiling" = yes ; then
2806 case "$cf_cv_system_name" in #(vi
2807 dragonfly*|mirbsd*|freebsd*) #(vi
2808 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2810 *) LDPATH=$PATH:/sbin:/usr/sbin
2811 # Extract the first word of "ldconfig", so it can be a program name with args.
2812 set dummy ldconfig; ac_word=$2
2813 echo "$as_me:2813: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2823 ac_save_IFS=$IFS; IFS=$ac_path_separator
2825 for ac_dir in $ac_dummy; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if $as_executable_p "$ac_dir/$ac_word"; then
2829 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2830 echo "$as_me:2830: found $ac_dir/$ac_word" >&5
2838 LDCONFIG=$ac_cv_path_LDCONFIG
2840 if test -n "$LDCONFIG"; then
2841 echo "$as_me:2841: result: $LDCONFIG" >&5
2842 echo "${ECHO_T}$LDCONFIG" >&6
2844 echo "$as_me:2844: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2852 echo "$as_me:2852: checking if you want to ensure bool is consistent with C++" >&5
2853 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2855 # Check whether --with-cxx or --without-cxx was given.
2856 if test "${with_cxx+set}" = set; then
2858 cf_with_cxx=$withval
2862 echo "$as_me:2862: result: $cf_with_cxx" >&5
2863 echo "${ECHO_T}$cf_with_cxx" >&6
2864 if test "X$cf_with_cxx" = Xno ; then
2868 # with autoconf 2.13, we can change the error to a warning:
2870 ac_cpp='$CXXCPP $CPPFLAGS'
2871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2874 ac_main_return=return
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 echo "$as_me:2880: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CXX+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CXX"; then
2886 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2888 ac_save_IFS=$IFS; IFS=$ac_path_separator
2890 for ac_dir in $ac_dummy; do
2892 test -z "$ac_dir" && ac_dir=.
2893 $as_executable_p "$ac_dir/$ac_word" || continue
2894 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2895 echo "$as_me:2895: found $ac_dir/$ac_word" >&5
2902 if test -n "$CXX"; then
2903 echo "$as_me:2903: result: $CXX" >&5
2904 echo "${ECHO_T}$CXX" >&6
2906 echo "$as_me:2906: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 test -n "$CXX" && break
2913 if test -z "$CXX"; then
2915 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 echo "$as_me:2919: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$ac_ct_CXX"; then
2925 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927 ac_save_IFS=$IFS; IFS=$ac_path_separator
2929 for ac_dir in $ac_dummy; do
2931 test -z "$ac_dir" && ac_dir=.
2932 $as_executable_p "$ac_dir/$ac_word" || continue
2933 ac_cv_prog_ac_ct_CXX="$ac_prog"
2934 echo "$as_me:2934: found $ac_dir/$ac_word" >&5
2940 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2941 if test -n "$ac_ct_CXX"; then
2942 echo "$as_me:2942: result: $ac_ct_CXX" >&5
2943 echo "${ECHO_T}$ac_ct_CXX" >&6
2945 echo "$as_me:2945: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2949 test -n "$ac_ct_CXX" && break
2951 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2956 # Provide some information about the compiler.
2957 echo "$as_me:2957:" \
2958 "checking for C++ compiler version" >&5
2959 ac_compiler=`set X $ac_compile; echo $2`
2960 { (eval echo "$as_me:2960: \"$ac_compiler --version </dev/null >&5\"") >&5
2961 (eval $ac_compiler --version </dev/null >&5) 2>&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2965 { (eval echo "$as_me:2965: \"$ac_compiler -v </dev/null >&5\"") >&5
2966 (eval $ac_compiler -v </dev/null >&5) 2>&5
2968 echo "$as_me:2968: \$? = $ac_status" >&5
2969 (exit $ac_status); }
2970 { (eval echo "$as_me:2970: \"$ac_compiler -V </dev/null >&5\"") >&5
2971 (eval $ac_compiler -V </dev/null >&5) 2>&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); }
2976 echo "$as_me:2976: checking whether we are using the GNU C++ compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2978 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3014 rm -f conftest.$ac_objext conftest.$ac_ext
3015 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3018 echo "$as_me:3018: result: $ac_cv_cxx_compiler_gnu" >&5
3019 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3020 GXX=`test $ac_compiler_gnu = yes && echo yes`
3021 ac_test_CXXFLAGS=${CXXFLAGS+set}
3022 ac_save_CXXFLAGS=$CXXFLAGS
3024 echo "$as_me:3024: checking whether $CXX accepts -g" >&5
3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3026 if test "${ac_cv_prog_cxx_g+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:3042: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>&5
3045 echo "$as_me:3045: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_prog_cxx_g=yes
3055 echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3059 rm -f conftest.$ac_objext conftest.$ac_ext
3061 echo "$as_me:3061: result: $ac_cv_prog_cxx_g" >&5
3062 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3063 if test "$ac_test_CXXFLAGS" = set; then
3064 CXXFLAGS=$ac_save_CXXFLAGS
3065 elif test $ac_cv_prog_cxx_g = yes; then
3066 if test "$GXX" = yes; then
3072 if test "$GXX" = yes; then
3078 for ac_declaration in \
3080 '#include <stdlib.h>' \
3081 'extern "C" void std::exit (int) throw (); using std::exit;' \
3082 'extern "C" void std::exit (int); using std::exit;' \
3083 'extern "C" void exit (int) throw ();' \
3084 'extern "C" void exit (int);' \
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:3101: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>&5
3104 echo "$as_me:3104: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (eval echo "$as_me:3107: \"$ac_try\"") >&5
3110 echo "$as_me:3110: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3114 echo "$as_me: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3118 rm -f conftest.$ac_objext conftest.$ac_ext
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line 3120 "configure"
3121 #include "confdefs.h"
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:3132: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:3138: \"$ac_try\"") >&5
3141 echo "$as_me:3141: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3148 rm -f conftest.$ac_objext conftest.$ac_ext
3151 if test -n "$ac_declaration"; then
3152 echo '#ifdef __cplusplus' >>confdefs.h
3153 echo $ac_declaration >>confdefs.h
3154 echo '#endif' >>confdefs.h
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 ac_main_return=return
3164 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3165 if test "$CXX" = "g++" ; then
3166 # Extract the first word of "g++", so it can be a program name with args.
3167 set dummy g++; ac_word=$2
3168 echo "$as_me:3168: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170 if test "${ac_cv_path_CXX+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3178 ac_save_IFS=$IFS; IFS=$ac_path_separator
3180 for ac_dir in $ac_dummy; do
3182 test -z "$ac_dir" && ac_dir=.
3183 if $as_executable_p "$ac_dir/$ac_word"; then
3184 ac_cv_path_CXX="$ac_dir/$ac_word"
3185 echo "$as_me:3185: found $ac_dir/$ac_word" >&5
3195 if test -n "$CXX"; then
3196 echo "$as_me:3196: result: $CXX" >&5
3197 echo "${ECHO_T}$CXX" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3204 case "x$CXX" in #(vi
3206 { echo "$as_me:3206: WARNING: You don't have any C++ compiler, too bad" >&5
3207 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3208 cf_with_cxx=no; CXX=""; GXX="";
3214 if test "$GXX" = yes; then
3215 echo "$as_me:3215: checking version of g++" >&5
3216 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3217 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3218 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3219 echo "$as_me:3219: result: $GXX_VERSION" >&5
3220 echo "${ECHO_T}$GXX_VERSION" >&6
3223 case $GXX_VERSION in
3225 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3227 { echo "$as_me:3227: WARNING: templates do not work" >&5
3228 echo "$as_me: WARNING: templates do not work" >&2;}
3232 echo "$as_me:3232: checking if you want to build C++ binding and demo" >&5
3233 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3235 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3236 if test "${with_cxx_binding+set}" = set; then
3237 withval="$with_cxx_binding"
3238 cf_with_cxx_binding=$withval
3240 cf_with_cxx_binding=$cf_with_cxx
3242 echo "$as_me:3242: result: $cf_with_cxx_binding" >&5
3243 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3245 echo "$as_me:3245: checking if you want to build with Ada95" >&5
3246 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3248 # Check whether --with-ada or --without-ada was given.
3249 if test "${with_ada+set}" = set; then
3251 cf_with_ada=$withval
3255 echo "$as_me:3255: result: $cf_with_ada" >&5
3256 echo "${ECHO_T}$cf_with_ada" >&6
3258 echo "$as_me:3258: checking if you want to install manpages" >&5
3259 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3261 # Check whether --with-manpages or --without-manpages was given.
3262 if test "${with_manpages+set}" = set; then
3263 withval="$with_manpages"
3264 cf_with_manpages=$withval
3266 cf_with_manpages=yes
3268 echo "$as_me:3268: result: $cf_with_manpages" >&5
3269 echo "${ECHO_T}$cf_with_manpages" >&6
3271 echo "$as_me:3271: checking if you want to build programs such as tic" >&5
3272 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3274 # Check whether --with-progs or --without-progs was given.
3275 if test "${with_progs+set}" = set; then
3276 withval="$with_progs"
3277 cf_with_progs=$withval
3281 echo "$as_me:3281: result: $cf_with_progs" >&5
3282 echo "${ECHO_T}$cf_with_progs" >&6
3284 echo "$as_me:3284: checking if you want to build test-programs" >&5
3285 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3287 # Check whether --with-tests or --without-tests was given.
3288 if test "${with_tests+set}" = set; then
3289 withval="$with_tests"
3290 cf_with_tests=$withval
3294 echo "$as_me:3294: result: $cf_with_tests" >&5
3295 echo "${ECHO_T}$cf_with_tests" >&6
3297 echo "$as_me:3297: checking if you wish to install curses.h" >&5
3298 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3300 # Check whether --with-curses-h or --without-curses-h was given.
3301 if test "${with_curses_h+set}" = set; then
3302 withval="$with_curses_h"
3303 with_curses_h=$withval
3307 echo "$as_me:3307: result: $with_curses_h" >&5
3308 echo "${ECHO_T}$with_curses_h" >&6
3310 modules_to_build="ncurses"
3311 if test "X$cf_with_progs" != Xno ; then
3312 modules_to_build="$modules_to_build progs tack"
3314 modules_to_build="$modules_to_build panel menu form"
3316 test "$program_prefix" != NONE &&
3317 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3318 # Use a double $ so make ignores it.
3319 test "$program_suffix" != NONE &&
3320 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3321 # Double any \ or $. echo might interpret backslashes.
3322 # By default was `s,x,x', remove it if useless.
3323 cat <<\_ACEOF >conftest.sed
3324 s/[\\$]/&&/g;s/;s,x,x,$//
3326 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3329 for ac_prog in mawk gawk nawk awk
3331 # Extract the first word of "$ac_prog", so it can be a program name with args.
3332 set dummy $ac_prog; ac_word=$2
3333 echo "$as_me:3333: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_AWK+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 if test -n "$AWK"; then
3339 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3341 ac_save_IFS=$IFS; IFS=$ac_path_separator
3343 for ac_dir in $ac_dummy; do
3345 test -z "$ac_dir" && ac_dir=.
3346 $as_executable_p "$ac_dir/$ac_word" || continue
3347 ac_cv_prog_AWK="$ac_prog"
3348 echo "$as_me:3348: found $ac_dir/$ac_word" >&5
3355 if test -n "$AWK"; then
3356 echo "$as_me:3356: result: $AWK" >&5
3357 echo "${ECHO_T}$AWK" >&6
3359 echo "$as_me:3359: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3363 test -n "$AWK" && break
3366 test -z "$AWK" && { { echo "$as_me:3366: error: No awk program found" >&5
3367 echo "$as_me: error: No awk program found" >&2;}
3368 { (exit 1); exit 1; }; }
3370 echo "$as_me:3370: checking for egrep" >&5
3371 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3372 if test "${ac_cv_prog_egrep+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3376 then ac_cv_prog_egrep='grep -E'
3377 else ac_cv_prog_egrep='egrep'
3380 echo "$as_me:3380: result: $ac_cv_prog_egrep" >&5
3381 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3382 EGREP=$ac_cv_prog_egrep
3384 test -z "$EGREP" && { { echo "$as_me:3384: error: No egrep program found" >&5
3385 echo "$as_me: error: No egrep program found" >&2;}
3386 { (exit 1); exit 1; }; }
3388 # Find a good install program. We prefer a C program (faster),
3389 # so one script is as good as another. But avoid the broken or
3390 # incompatible versions:
3391 # SysV /etc/install, /usr/sbin/install
3392 # SunOS /usr/etc/install
3393 # IRIX /sbin/install
3395 # AmigaOS /C/install, which installs bootblocks on floppy discs
3396 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3397 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3398 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3399 # ./install, which can be erroneously created by make from ./install.sh.
3400 echo "$as_me:3400: checking for a BSD compatible install" >&5
3401 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3402 if test -z "$INSTALL"; then
3403 if test "${ac_cv_path_install+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 ac_save_IFS=$IFS; IFS=$ac_path_separator
3407 for ac_dir in $PATH; do
3409 # Account for people who put trailing slashes in PATH elements.
3411 / | ./ | .// | /cC/* \
3412 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3415 # OSF1 and SCO ODT 3.0 have their own names for install.
3416 # Don't use installbsd from OSF since it installs stuff as root
3418 for ac_prog in ginstall scoinst install; do
3419 if $as_executable_p "$ac_dir/$ac_prog"; then
3420 if test $ac_prog = install &&
3421 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3422 # AIX install. It has an incompatible calling convention.
3424 elif test $ac_prog = install &&
3425 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3426 # program-specific install script used by HP pwplus--don't use.
3429 ac_cv_path_install="$ac_dir/$ac_prog -c"
3439 if test "${ac_cv_path_install+set}" = set; then
3440 INSTALL=$ac_cv_path_install
3442 # As a last resort, use the slow shell script. We don't cache a
3443 # path for INSTALL within a source directory, because that will
3444 # break other packages using the cache if that directory is
3445 # removed, or if the path is relative.
3446 INSTALL=$ac_install_sh
3449 echo "$as_me:3449: result: $INSTALL" >&5
3450 echo "${ECHO_T}$INSTALL" >&6
3452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3453 # It thinks the first close brace ends the variable substitution.
3454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3458 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3464 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3465 test -z "$cf_dir" && cf_dir=.
3466 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3470 for ac_prog in tdlint lint alint splint lclint
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy $ac_prog; ac_word=$2
3474 echo "$as_me:3474: checking for $ac_word" >&5
3475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3476 if test "${ac_cv_prog_LINT+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 if test -n "$LINT"; then
3480 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3482 ac_save_IFS=$IFS; IFS=$ac_path_separator
3484 for ac_dir in $ac_dummy; do
3486 test -z "$ac_dir" && ac_dir=.
3487 $as_executable_p "$ac_dir/$ac_word" || continue
3488 ac_cv_prog_LINT="$ac_prog"
3489 echo "$as_me:3489: found $ac_dir/$ac_word" >&5
3495 LINT=$ac_cv_prog_LINT
3496 if test -n "$LINT"; then
3497 echo "$as_me:3497: result: $LINT" >&5
3498 echo "${ECHO_T}$LINT" >&6
3500 echo "$as_me:3500: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3504 test -n "$LINT" && break
3507 echo "$as_me:3507: checking whether ln -s works" >&5
3508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3510 if test "$LN_S" = "ln -s"; then
3511 echo "$as_me:3511: result: yes" >&5
3512 echo "${ECHO_T}yes" >&6
3514 echo "$as_me:3514: result: no, using $LN_S" >&5
3515 echo "${ECHO_T}no, using $LN_S" >&6
3518 echo "$as_me:3518: checking if $LN_S -f options work" >&5
3519 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3521 rm -f conf$$.src conf$$dst
3523 echo first >conf$$.src
3524 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3529 rm -f conf$$.dst conf$$src
3530 echo "$as_me:3530: result: $cf_prog_ln_sf" >&5
3531 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3533 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3535 echo "$as_me:3535: checking for long file names" >&5
3536 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3537 if test "${ac_cv_sys_long_file_names+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 ac_cv_sys_long_file_names=yes
3541 # Test for long file names in all the places we know might matter:
3542 # . the current directory, where building will happen
3543 # $prefix/lib where we will be installing things
3544 # $exec_prefix/lib likewise
3545 # eval it to expand exec_prefix.
3546 # $TMPDIR if set, where it might want to write temporary files
3547 # if $TMPDIR is not set:
3548 # /tmp where it might want to write temporary files
3551 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3554 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3556 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3557 test -d $ac_dir || continue
3558 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3559 ac_xdir=$ac_dir/cf$$
3560 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3561 ac_tf1=$ac_xdir/conftest9012345
3562 ac_tf2=$ac_xdir/conftest9012346
3563 (echo 1 >$ac_tf1) 2>/dev/null
3564 (echo 2 >$ac_tf2) 2>/dev/null
3565 ac_val=`cat $ac_tf1 2>/dev/null`
3566 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3567 ac_cv_sys_long_file_names=no
3568 rm -rf $ac_xdir 2>/dev/null
3571 rm -rf $ac_xdir 2>/dev/null
3574 echo "$as_me:3574: result: $ac_cv_sys_long_file_names" >&5
3575 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3576 if test $ac_cv_sys_long_file_names = yes; then
3578 cat >>confdefs.h <<\EOF
3579 #define HAVE_LONG_FILE_NAMES 1
3584 # if we find pkg-config, check if we should install the ".pc" files.
3586 echo "$as_me:3586: checking if you want to use pkg-config" >&5
3587 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3589 # Check whether --with-pkg-config or --without-pkg-config was given.
3590 if test "${with_pkg_config+set}" = set; then
3591 withval="$with_pkg_config"
3592 cf_pkg_config=$withval
3596 echo "$as_me:3596: result: $cf_pkg_config" >&5
3597 echo "${ECHO_T}$cf_pkg_config" >&6
3599 case $cf_pkg_config in #(vi
3605 if test -n "$ac_tool_prefix"; then
3606 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3608 echo "$as_me:3608: checking for $ac_word" >&5
3609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3610 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3618 ac_save_IFS=$IFS; IFS=$ac_path_separator
3620 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if $as_executable_p "$ac_dir/$ac_word"; then
3624 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3625 echo "$as_me:3625: found $ac_dir/$ac_word" >&5
3633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3635 if test -n "$PKG_CONFIG"; then
3636 echo "$as_me:3636: result: $PKG_CONFIG" >&5
3637 echo "${ECHO_T}$PKG_CONFIG" >&6
3639 echo "$as_me:3639: result: no" >&5
3640 echo "${ECHO_T}no" >&6
3644 if test -z "$ac_cv_path_PKG_CONFIG"; then
3645 ac_pt_PKG_CONFIG=$PKG_CONFIG
3646 # Extract the first word of "pkg-config", so it can be a program name with args.
3647 set dummy pkg-config; ac_word=$2
3648 echo "$as_me:3648: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 case $ac_pt_PKG_CONFIG in
3655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3658 ac_save_IFS=$IFS; IFS=$ac_path_separator
3660 for ac_dir in $ac_dummy; do
3662 test -z "$ac_dir" && ac_dir=.
3663 if $as_executable_p "$ac_dir/$ac_word"; then
3664 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3665 echo "$as_me:3665: found $ac_dir/$ac_word" >&5
3670 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3674 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3676 if test -n "$ac_pt_PKG_CONFIG"; then
3677 echo "$as_me:3677: result: $ac_pt_PKG_CONFIG" >&5
3678 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3680 echo "$as_me:3680: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3684 PKG_CONFIG=$ac_pt_PKG_CONFIG
3686 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3695 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3696 if test "$PKG_CONFIG" != none ; then
3698 if test "x$prefix" != xNONE; then
3699 cf_path_syntax="$prefix"
3701 cf_path_syntax="$ac_default_prefix"
3704 case ".$PKG_CONFIG" in #(vi
3705 .\$\(*\)*|.\'*\'*) #(vi
3709 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3712 eval PKG_CONFIG="$PKG_CONFIG"
3713 case ".$PKG_CONFIG" in #(vi
3715 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3720 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3723 { { echo "$as_me:3723: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3724 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3725 { (exit 1); exit 1; }; }
3731 if test "$PKG_CONFIG" != none ; then
3732 echo "$as_me:3732: checking for $PKG_CONFIG library directory" >&5
3733 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3735 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3736 if test "${with_pkg_config_libdir+set}" = set; then
3737 withval="$with_pkg_config_libdir"
3738 PKG_CONFIG_LIBDIR=$withval
3740 PKG_CONFIG_LIBDIR=yes
3743 case x$PKG_CONFIG_LIBDIR in #(vi
3747 # look for the library directory using the same prefix as the executable
3748 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3749 case x`(arch) 2>/dev/null` in #(vi
3751 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3753 if test -d $cf_config/pkgconfig
3755 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3761 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3769 echo "$as_me:3769: result: $PKG_CONFIG_LIBDIR" >&5
3770 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3773 if test "$PKG_CONFIG" != none ; then
3774 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3775 echo "$as_me:3775: checking if we should install .pc files for $PKG_CONFIG" >&5
3776 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3778 # Check whether --enable-pc-files or --disable-pc-files was given.
3779 if test "${enable_pc_files+set}" = set; then
3780 enableval="$enable_pc_files"
3781 enable_pc_files=$enableval
3785 echo "$as_me:3785: result: $enable_pc_files" >&5
3786 echo "${ECHO_T}$enable_pc_files" >&6
3787 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3789 { echo "$as_me:3789: WARNING: did not find $PKG_CONFIG library" >&5
3790 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3796 echo "$as_me:3796: checking if we should assume mixed-case filenames" >&5
3797 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3799 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3800 if test "${enable_mixed_case+set}" = set; then
3801 enableval="$enable_mixed_case"
3802 enable_mixedcase=$enableval
3804 enable_mixedcase=auto
3806 echo "$as_me:3806: result: $enable_mixedcase" >&5
3807 echo "${ECHO_T}$enable_mixedcase" >&6
3808 if test "$enable_mixedcase" = "auto" ; then
3810 echo "$as_me:3810: checking if filesystem supports mixed-case filenames" >&5
3811 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3812 if test "${cf_cv_mixedcase+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 if test "$cross_compiling" = yes ; then
3817 case $target_alias in #(vi
3818 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3826 rm -f conftest CONFTEST
3828 if test -f CONFTEST ; then
3833 rm -f conftest CONFTEST
3837 echo "$as_me:3837: result: $cf_cv_mixedcase" >&5
3838 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3839 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3840 #define MIXEDCASE_FILENAMES 1
3844 cf_cv_mixedcase=$enable_mixedcase
3845 if test "$enable_mixedcase" = "yes" ; then
3846 cat >>confdefs.h <<\EOF
3847 #define MIXEDCASE_FILENAMES 1
3853 # do this after mixed-case option (tags/TAGS is not as important as tic).
3854 echo "$as_me:3854: checking whether ${MAKE-make} sets \${MAKE}" >&5
3855 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3856 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3857 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 cat >conftest.make <<\EOF
3862 @echo 'ac_maketemp="${MAKE}"'
3864 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3865 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3866 if test -n "$ac_maketemp"; then
3867 eval ac_cv_prog_make_${ac_make}_set=yes
3869 eval ac_cv_prog_make_${ac_make}_set=no
3873 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3874 echo "$as_me:3874: result: yes" >&5
3875 echo "${ECHO_T}yes" >&6
3878 echo "$as_me:3878: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 SET_MAKE="MAKE=${MAKE-make}"
3883 for ac_prog in exctags ctags
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 echo "$as_me:3887: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_CTAGS+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$CTAGS"; then
3893 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3895 ac_save_IFS=$IFS; IFS=$ac_path_separator
3897 for ac_dir in $ac_dummy; do
3899 test -z "$ac_dir" && ac_dir=.
3900 $as_executable_p "$ac_dir/$ac_word" || continue
3901 ac_cv_prog_CTAGS="$ac_prog"
3902 echo "$as_me:3902: found $ac_dir/$ac_word" >&5
3908 CTAGS=$ac_cv_prog_CTAGS
3909 if test -n "$CTAGS"; then
3910 echo "$as_me:3910: result: $CTAGS" >&5
3911 echo "${ECHO_T}$CTAGS" >&6
3913 echo "$as_me:3913: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3917 test -n "$CTAGS" && break
3920 for ac_prog in exetags etags
3922 # Extract the first word of "$ac_prog", so it can be a program name with args.
3923 set dummy $ac_prog; ac_word=$2
3924 echo "$as_me:3924: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_ETAGS+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -n "$ETAGS"; then
3930 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3932 ac_save_IFS=$IFS; IFS=$ac_path_separator
3934 for ac_dir in $ac_dummy; do
3936 test -z "$ac_dir" && ac_dir=.
3937 $as_executable_p "$ac_dir/$ac_word" || continue
3938 ac_cv_prog_ETAGS="$ac_prog"
3939 echo "$as_me:3939: found $ac_dir/$ac_word" >&5
3945 ETAGS=$ac_cv_prog_ETAGS
3946 if test -n "$ETAGS"; then
3947 echo "$as_me:3947: result: $ETAGS" >&5
3948 echo "${ECHO_T}$ETAGS" >&6
3950 echo "$as_me:3950: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3954 test -n "$ETAGS" && break
3957 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3958 set dummy ${CTAGS:-ctags}; ac_word=$2
3959 echo "$as_me:3959: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$MAKE_LOWER_TAGS"; then
3965 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3967 ac_save_IFS=$IFS; IFS=$ac_path_separator
3969 for ac_dir in $ac_dummy; do
3971 test -z "$ac_dir" && ac_dir=.
3972 $as_executable_p "$ac_dir/$ac_word" || continue
3973 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3974 echo "$as_me:3974: found $ac_dir/$ac_word" >&5
3978 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3981 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3982 if test -n "$MAKE_LOWER_TAGS"; then
3983 echo "$as_me:3983: result: $MAKE_LOWER_TAGS" >&5
3984 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3986 echo "$as_me:3986: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3990 if test "$cf_cv_mixedcase" = yes ; then
3991 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3992 set dummy ${ETAGS:-etags}; ac_word=$2
3993 echo "$as_me:3993: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test -n "$MAKE_UPPER_TAGS"; then
3999 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4001 ac_save_IFS=$IFS; IFS=$ac_path_separator
4003 for ac_dir in $ac_dummy; do
4005 test -z "$ac_dir" && ac_dir=.
4006 $as_executable_p "$ac_dir/$ac_word" || continue
4007 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4008 echo "$as_me:4008: found $ac_dir/$ac_word" >&5
4012 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4015 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4016 if test -n "$MAKE_UPPER_TAGS"; then
4017 echo "$as_me:4017: result: $MAKE_UPPER_TAGS" >&5
4018 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4020 echo "$as_me:4020: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4028 if test "$MAKE_UPPER_TAGS" = yes ; then
4034 if test "$MAKE_LOWER_TAGS" = yes ; then
4040 echo "$as_me:4040: checking for makeflags variable" >&5
4041 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4042 if test "${cf_cv_makeflags+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4049 cat >cf_makeflags.tmp <<CF_EOF
4052 @ echo '.$cf_option'
4054 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4055 case "$cf_result" in
4057 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4058 case "$cf_result" in
4059 .*CC=*) cf_cv_makeflags=
4061 *) cf_cv_makeflags=$cf_option
4067 *) echo "given option \"$cf_option\", no match \"$cf_result\""
4071 rm -f cf_makeflags.tmp
4074 echo "$as_me:4074: result: $cf_cv_makeflags" >&5
4075 echo "${ECHO_T}$cf_cv_makeflags" >&6
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4080 echo "$as_me:4080: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_prog_RANLIB+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 if test -n "$RANLIB"; then
4086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4088 ac_save_IFS=$IFS; IFS=$ac_path_separator
4090 for ac_dir in $ac_dummy; do
4092 test -z "$ac_dir" && ac_dir=.
4093 $as_executable_p "$ac_dir/$ac_word" || continue
4094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4095 echo "$as_me:4095: found $ac_dir/$ac_word" >&5
4101 RANLIB=$ac_cv_prog_RANLIB
4102 if test -n "$RANLIB"; then
4103 echo "$as_me:4103: result: $RANLIB" >&5
4104 echo "${ECHO_T}$RANLIB" >&6
4106 echo "$as_me:4106: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4111 if test -z "$ac_cv_prog_RANLIB"; then
4112 ac_ct_RANLIB=$RANLIB
4113 # Extract the first word of "ranlib", so it can be a program name with args.
4114 set dummy ranlib; ac_word=$2
4115 echo "$as_me:4115: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 if test -n "$ac_ct_RANLIB"; then
4121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4123 ac_save_IFS=$IFS; IFS=$ac_path_separator
4125 for ac_dir in $ac_dummy; do
4127 test -z "$ac_dir" && ac_dir=.
4128 $as_executable_p "$ac_dir/$ac_word" || continue
4129 ac_cv_prog_ac_ct_RANLIB="ranlib"
4130 echo "$as_me:4130: found $ac_dir/$ac_word" >&5
4134 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4137 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4138 if test -n "$ac_ct_RANLIB"; then
4139 echo "$as_me:4139: result: $ac_ct_RANLIB" >&5
4140 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4142 echo "$as_me:4142: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4146 RANLIB=$ac_ct_RANLIB
4148 RANLIB="$ac_cv_prog_RANLIB"
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}ld; ac_word=$2
4154 echo "$as_me:4154: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_LD+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$LD"; then
4160 ac_cv_prog_LD="$LD" # Let the user override the test.
4162 ac_save_IFS=$IFS; IFS=$ac_path_separator
4164 for ac_dir in $ac_dummy; do
4166 test -z "$ac_dir" && ac_dir=.
4167 $as_executable_p "$ac_dir/$ac_word" || continue
4168 ac_cv_prog_LD="${ac_tool_prefix}ld"
4169 echo "$as_me:4169: found $ac_dir/$ac_word" >&5
4176 if test -n "$LD"; then
4177 echo "$as_me:4177: result: $LD" >&5
4178 echo "${ECHO_T}$LD" >&6
4180 echo "$as_me:4180: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4185 if test -z "$ac_cv_prog_LD"; then
4187 # Extract the first word of "ld", so it can be a program name with args.
4188 set dummy ld; ac_word=$2
4189 echo "$as_me:4189: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 if test -n "$ac_ct_LD"; then
4195 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4197 ac_save_IFS=$IFS; IFS=$ac_path_separator
4199 for ac_dir in $ac_dummy; do
4201 test -z "$ac_dir" && ac_dir=.
4202 $as_executable_p "$ac_dir/$ac_word" || continue
4203 ac_cv_prog_ac_ct_LD="ld"
4204 echo "$as_me:4204: found $ac_dir/$ac_word" >&5
4208 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4211 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4212 if test -n "$ac_ct_LD"; then
4213 echo "$as_me:4213: result: $ac_ct_LD" >&5
4214 echo "${ECHO_T}$ac_ct_LD" >&6
4216 echo "$as_me:4216: result: no" >&5
4217 echo "${ECHO_T}no" >&6
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}ar; ac_word=$2
4228 echo "$as_me:4228: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_AR+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$AR"; then
4234 ac_cv_prog_AR="$AR" # Let the user override the test.
4236 ac_save_IFS=$IFS; IFS=$ac_path_separator
4238 for ac_dir in $ac_dummy; do
4240 test -z "$ac_dir" && ac_dir=.
4241 $as_executable_p "$ac_dir/$ac_word" || continue
4242 ac_cv_prog_AR="${ac_tool_prefix}ar"
4243 echo "$as_me:4243: found $ac_dir/$ac_word" >&5
4250 if test -n "$AR"; then
4251 echo "$as_me:4251: result: $AR" >&5
4252 echo "${ECHO_T}$AR" >&6
4254 echo "$as_me:4254: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4259 if test -z "$ac_cv_prog_AR"; then
4261 # Extract the first word of "ar", so it can be a program name with args.
4262 set dummy ar; ac_word=$2
4263 echo "$as_me:4263: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 if test -n "$ac_ct_AR"; then
4269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4271 ac_save_IFS=$IFS; IFS=$ac_path_separator
4273 for ac_dir in $ac_dummy; do
4275 test -z "$ac_dir" && ac_dir=.
4276 $as_executable_p "$ac_dir/$ac_word" || continue
4277 ac_cv_prog_ac_ct_AR="ar"
4278 echo "$as_me:4278: found $ac_dir/$ac_word" >&5
4282 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4285 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4286 if test -n "$ac_ct_AR"; then
4287 echo "$as_me:4287: result: $ac_ct_AR" >&5
4288 echo "${ECHO_T}$ac_ct_AR" >&6
4290 echo "$as_me:4290: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4299 if test -n "$ac_tool_prefix"; then
4300 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4301 set dummy ${ac_tool_prefix}ar; ac_word=$2
4302 echo "$as_me:4302: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4304 if test "${ac_cv_prog_AR+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test -n "$AR"; then
4308 ac_cv_prog_AR="$AR" # Let the user override the test.
4310 ac_save_IFS=$IFS; IFS=$ac_path_separator
4312 for ac_dir in $ac_dummy; do
4314 test -z "$ac_dir" && ac_dir=.
4315 $as_executable_p "$ac_dir/$ac_word" || continue
4316 ac_cv_prog_AR="${ac_tool_prefix}ar"
4317 echo "$as_me:4317: found $ac_dir/$ac_word" >&5
4324 if test -n "$AR"; then
4325 echo "$as_me:4325: result: $AR" >&5
4326 echo "${ECHO_T}$AR" >&6
4328 echo "$as_me:4328: result: no" >&5
4329 echo "${ECHO_T}no" >&6
4333 if test -z "$ac_cv_prog_AR"; then
4335 # Extract the first word of "ar", so it can be a program name with args.
4336 set dummy ar; ac_word=$2
4337 echo "$as_me:4337: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 if test -n "$ac_ct_AR"; then
4343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4345 ac_save_IFS=$IFS; IFS=$ac_path_separator
4347 for ac_dir in $ac_dummy; do
4349 test -z "$ac_dir" && ac_dir=.
4350 $as_executable_p "$ac_dir/$ac_word" || continue
4351 ac_cv_prog_ac_ct_AR="ar"
4352 echo "$as_me:4352: found $ac_dir/$ac_word" >&5
4356 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361 echo "$as_me:4361: result: $ac_ct_AR" >&5
4362 echo "${ECHO_T}$ac_ct_AR" >&6
4364 echo "$as_me:4364: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4373 echo "$as_me:4373: checking for options to update archives" >&5
4374 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4375 if test "${cf_cv_ar_flags+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 cf_cv_ar_flags=unknown
4380 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4383 # check if $ARFLAGS already contains this choice
4384 if test "x$ARFLAGS" != "x" ; then
4385 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4386 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4392 rm -f conftest.$ac_cv_objext
4395 cat >conftest.$ac_ext <<EOF
4396 #line 4396 "configure"
4397 int testdata[3] = { 123, 456, 789 };
4399 if { (eval echo "$as_me:4399: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4402 echo "$as_me:4402: \$? = $ac_status" >&5
4403 (exit $ac_status); } ; then
4404 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4405 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4406 if test -f conftest.a ; then
4407 cf_cv_ar_flags=$cf_ar_flags
4411 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4413 echo "${as_me:-configure}:4413: testing cannot compile test-program ..." 1>&5
4418 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4421 echo "$as_me:4421: result: $cf_cv_ar_flags" >&5
4422 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4424 if test -n "$ARFLAGS" ; then
4425 if test -n "$cf_cv_ar_flags" ; then
4426 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4429 ARFLAGS=$cf_cv_ar_flags
4432 echo "$as_me:4432: checking if you have specified an install-prefix" >&5
4433 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4435 # Check whether --with-install-prefix or --without-install-prefix was given.
4436 if test "${with_install_prefix+set}" = set; then
4437 withval="$with_install_prefix"
4438 case "$withval" in #(vi
4441 *) DESTDIR="$withval"
4445 echo "$as_me:4445: result: $DESTDIR" >&5
4446 echo "${ECHO_T}$DESTDIR" >&6
4448 ###############################################################################
4450 # If we're cross-compiling, allow the user to override the tools and their
4451 # options. The configure script is oriented toward identifying the host
4452 # compiler, etc., but we need a build compiler to generate parts of the source.
4454 if test "$cross_compiling" = yes ; then
4456 # defaults that we might want to override
4457 : ${BUILD_CFLAGS:=''}
4458 : ${BUILD_CPPFLAGS:=''}
4459 : ${BUILD_LDFLAGS:=''}
4461 : ${BUILD_EXEEXT:='$x'}
4462 : ${BUILD_OBJEXT:='o'}
4464 # Check whether --with-build-cc or --without-build-cc was given.
4465 if test "${with_build_cc+set}" = set; then
4466 withval="$with_build_cc"
4469 for ac_prog in gcc cc cl
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 echo "$as_me:4473: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 if test -n "$BUILD_CC"; then
4479 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481 ac_save_IFS=$IFS; IFS=$ac_path_separator
4483 for ac_dir in $ac_dummy; do
4485 test -z "$ac_dir" && ac_dir=.
4486 $as_executable_p "$ac_dir/$ac_word" || continue
4487 ac_cv_prog_BUILD_CC="$ac_prog"
4488 echo "$as_me:4488: found $ac_dir/$ac_word" >&5
4494 BUILD_CC=$ac_cv_prog_BUILD_CC
4495 if test -n "$BUILD_CC"; then
4496 echo "$as_me:4496: result: $BUILD_CC" >&5
4497 echo "${ECHO_T}$BUILD_CC" >&6
4499 echo "$as_me:4499: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4503 test -n "$BUILD_CC" && break
4507 echo "$as_me:4507: checking for native build C compiler" >&5
4508 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4509 echo "$as_me:4509: result: $BUILD_CC" >&5
4510 echo "${ECHO_T}$BUILD_CC" >&6
4512 echo "$as_me:4512: checking for native build C preprocessor" >&5
4513 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4515 # Check whether --with-build-cpp or --without-build-cpp was given.
4516 if test "${with_build_cpp+set}" = set; then
4517 withval="$with_build_cpp"
4518 BUILD_CPP="$withval"
4520 BUILD_CPP='${BUILD_CC} -E'
4522 echo "$as_me:4522: result: $BUILD_CPP" >&5
4523 echo "${ECHO_T}$BUILD_CPP" >&6
4525 echo "$as_me:4525: checking for native build C flags" >&5
4526 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4528 # Check whether --with-build-cflags or --without-build-cflags was given.
4529 if test "${with_build_cflags+set}" = set; then
4530 withval="$with_build_cflags"
4531 BUILD_CFLAGS="$withval"
4533 echo "$as_me:4533: result: $BUILD_CFLAGS" >&5
4534 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4536 echo "$as_me:4536: checking for native build C preprocessor-flags" >&5
4537 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4539 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4540 if test "${with_build_cppflags+set}" = set; then
4541 withval="$with_build_cppflags"
4542 BUILD_CPPFLAGS="$withval"
4544 echo "$as_me:4544: result: $BUILD_CPPFLAGS" >&5
4545 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4547 echo "$as_me:4547: checking for native build linker-flags" >&5
4548 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4550 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4551 if test "${with_build_ldflags+set}" = set; then
4552 withval="$with_build_ldflags"
4553 BUILD_LDFLAGS="$withval"
4555 echo "$as_me:4555: result: $BUILD_LDFLAGS" >&5
4556 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4558 echo "$as_me:4558: checking for native build linker-libraries" >&5
4559 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4561 # Check whether --with-build-libs or --without-build-libs was given.
4562 if test "${with_build_libs+set}" = set; then
4563 withval="$with_build_libs"
4564 BUILD_LIBS="$withval"
4566 echo "$as_me:4566: result: $BUILD_LIBS" >&5
4567 echo "${ECHO_T}$BUILD_LIBS" >&6
4569 # this assumes we're on Unix.
4573 : ${BUILD_CC:='${CC}'}
4575 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4576 { { echo "$as_me:4576: error: Cross-build requires two compilers.
4577 Use --with-build-cc to specify the native compiler." >&5
4578 echo "$as_me: error: Cross-build requires two compilers.
4579 Use --with-build-cc to specify the native compiler." >&2;}
4580 { (exit 1); exit 1; }; }
4584 : ${BUILD_CC:='${CC}'}
4585 : ${BUILD_CPP:='${CPP}'}
4586 : ${BUILD_CFLAGS:='${CFLAGS}'}
4587 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4588 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4589 : ${BUILD_LIBS:='${LIBS}'}
4590 : ${BUILD_EXEEXT:='$x'}
4591 : ${BUILD_OBJEXT:='o'}
4594 ###############################################################################
4596 ### Options to allow the user to specify the set of libraries which are used.
4597 ### Use "--without-normal --with-shared" to allow the default model to be
4598 ### shared, for example.
4601 echo "$as_me:4601: checking if libtool -version-number should be used" >&5
4602 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4604 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4605 if test "${enable_libtool_version+set}" = set; then
4606 enableval="$enable_libtool_version"
4607 test "$enableval" != no && enableval=yes
4608 if test "$enableval" != "yes" ; then
4609 cf_libtool_version=no
4611 cf_libtool_version=yes
4615 cf_libtool_version=yes
4618 echo "$as_me:4618: result: $cf_libtool_version" >&5
4619 echo "${ECHO_T}$cf_libtool_version" >&6
4621 if test "$cf_libtool_version" = yes ; then
4622 LIBTOOL_VERSION="-version-number"
4624 LIBTOOL_VERSION="-version-info"
4629 # common library maintenance symbols that are convenient for libtool scripts:
4630 LIB_CREATE='${AR} -cr'
4631 LIB_OBJECT='${OBJECTS}'
4635 # symbols used to prop libtool up to enable it to determine what it should be
4643 echo "$as_me:4643: checking if you want to build libraries with libtool" >&5
4644 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4646 # Check whether --with-libtool or --without-libtool was given.
4647 if test "${with_libtool+set}" = set; then
4648 withval="$with_libtool"
4649 with_libtool=$withval
4653 echo "$as_me:4653: result: $with_libtool" >&5
4654 echo "${ECHO_T}$with_libtool" >&6
4655 if test "$with_libtool" != "no"; then
4657 if test "$with_libtool" != "yes" ; then
4659 if test "x$prefix" != xNONE; then
4660 cf_path_syntax="$prefix"
4662 cf_path_syntax="$ac_default_prefix"
4665 case ".$with_libtool" in #(vi
4666 .\$\(*\)*|.\'*\'*) #(vi
4670 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4673 eval with_libtool="$with_libtool"
4674 case ".$with_libtool" in #(vi
4676 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4681 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4684 { { echo "$as_me:4684: error: expected a pathname, not \"$with_libtool\"" >&5
4685 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4686 { (exit 1); exit 1; }; }
4690 LIBTOOL=$with_libtool
4692 # Extract the first word of "libtool", so it can be a program name with args.
4693 set dummy libtool; ac_word=$2
4694 echo "$as_me:4694: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4704 ac_save_IFS=$IFS; IFS=$ac_path_separator
4706 for ac_dir in $ac_dummy; do
4708 test -z "$ac_dir" && ac_dir=.
4709 if $as_executable_p "$ac_dir/$ac_word"; then
4710 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4711 echo "$as_me:4711: found $ac_dir/$ac_word" >&5
4719 LIBTOOL=$ac_cv_path_LIBTOOL
4721 if test -n "$LIBTOOL"; then
4722 echo "$as_me:4722: result: $LIBTOOL" >&5
4723 echo "${ECHO_T}$LIBTOOL" >&6
4725 echo "$as_me:4725: result: no" >&5
4726 echo "${ECHO_T}no" >&6
4730 if test -z "$LIBTOOL" ; then
4731 { { echo "$as_me:4731: error: Cannot find libtool" >&5
4732 echo "$as_me: error: Cannot find libtool" >&2;}
4733 { (exit 1); exit 1; }; }
4735 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4736 LIB_OBJECT='${OBJECTS:.o=.lo}'
4738 LIB_CLEAN='${LIBTOOL} --mode=clean'
4739 LIB_COMPILE='${LIBTOOL} --mode=compile'
4740 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4741 LIB_INSTALL='${LIBTOOL} --mode=install'
4742 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4745 # Show the version of libtool
4746 echo "$as_me:4746: checking version of libtool" >&5
4747 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4749 # Save the version in a cache variable - this is not entirely a good
4750 # thing, but the version string from libtool is very ugly, and for
4751 # bug reports it might be useful to have the original string. "("
4752 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.].*//'`
4753 echo "$as_me:4753: result: $cf_cv_libtool_version" >&5
4754 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4755 if test -z "$cf_cv_libtool_version" ; then
4756 { { echo "$as_me:4756: error: This is not GNU libtool" >&5
4757 echo "$as_me: error: This is not GNU libtool" >&2;}
4758 { (exit 1); exit 1; }; }
4761 # special hack to add -no-undefined (which libtool should do for itself)
4763 case "$cf_cv_system_name" in #(vi
4764 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4765 LT_UNDEF=-no-undefined
4769 # special hack to add --tag option for C++ compiler
4770 case $cf_cv_libtool_version in #(vi
4771 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4772 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4773 LIBTOOL="$LIBTOOL --tag=CC"
4776 LIBTOOL_CXX="$LIBTOOL"
4784 test -z "$LIBTOOL" && ECHO_LT=
4786 if test "$with_libtool" != "no" ; then
4788 cf_list_models="$cf_list_models libtool"
4792 echo "$as_me:4792: checking if you want to build shared libraries" >&5
4793 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4795 # Check whether --with-shared or --without-shared was given.
4796 if test "${with_shared+set}" = set; then
4797 withval="$with_shared"
4798 with_shared=$withval
4802 echo "$as_me:4802: result: $with_shared" >&5
4803 echo "${ECHO_T}$with_shared" >&6
4804 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4806 echo "$as_me:4806: checking if you want to build static libraries" >&5
4807 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4809 # Check whether --with-normal or --without-normal was given.
4810 if test "${with_normal+set}" = set; then
4811 withval="$with_normal"
4812 with_normal=$withval
4816 echo "$as_me:4816: result: $with_normal" >&5
4817 echo "${ECHO_T}$with_normal" >&6
4818 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4820 echo "$as_me:4820: checking if you want to build debug libraries" >&5
4821 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4823 # Check whether --with-debug or --without-debug was given.
4824 if test "${with_debug+set}" = set; then
4825 withval="$with_debug"
4830 echo "$as_me:4830: result: $with_debug" >&5
4831 echo "${ECHO_T}$with_debug" >&6
4832 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4834 echo "$as_me:4834: checking if you want to build profiling libraries" >&5
4835 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4837 # Check whether --with-profile or --without-profile was given.
4838 if test "${with_profile+set}" = set; then
4839 withval="$with_profile"
4840 with_profile=$withval
4844 echo "$as_me:4844: result: $with_profile" >&5
4845 echo "${ECHO_T}$with_profile" >&6
4846 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4850 ###############################################################################
4852 echo "$as_me:4852: checking for specified models" >&5
<