2 # From configure.in Revision: 1.541 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
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-rcs-ids compile-in RCS identifiers
766 Options to Specify How Manpages are Installed:
767 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
768 optionally formatted/catonly, e.g., gzip,formatted
769 --with-manpage-renames specify manpage-renaming
770 --with-manpage-aliases specify manpage-aliases using .so
771 --with-manpage-symlinks specify manpage-aliases using symlinks
772 --with-manpage-tbl specify manpage processing with tbl
774 --disable-ext-funcs disable function-extensions
775 --enable-sp-funcs enable experimental SCREEN-extensions
776 --enable-term-driver enable experimental terminal-driver
777 --enable-const compile with extra/non-standard const
778 --enable-ext-colors compile for 256-color support
779 --enable-ext-mouse compile for extended mouse-encoding
780 --enable-no-padding compile with $NCURSES_NO_PADDING code
781 --enable-signed-char compile using signed Boolean's in term.h
782 --enable-sigwinch compile with SIGWINCH handler
783 --enable-tcap-names compile with user-definable terminal capabilities
785 --without-develop disable development options
786 --enable-hard-tabs compile with hard-tabs code
787 --enable-xmc-glitch compile with support for xmc (magic-cookie)
789 --disable-assumed-color do not assume anything about default-colors
790 --disable-hashmap compile without hashmap scrolling-optimization
791 --enable-colorfgbg compile-in experimental $COLORFGBG code
792 --enable-interop compile-in experimental interop bindings
793 --with-pthread use POSIX thread library
794 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
795 --enable-weak-symbols enable weak-symbols for pthreads
796 --enable-reentrant compile with experimental reentrant code
797 --with-wrap-prefix=XXX override prefix used for public variables
798 --enable-safe-sprintf compile with experimental safe-sprintf code
799 --disable-scroll-hints compile without scroll-hints code
800 --enable-wgetch-events compile with experimental wgetch-events code
801 Testing/development Options:
802 --enable-echo build: display "compiling" commands (default)
803 --enable-warnings build: turn on GCC compiler warnings
804 --enable-assertions test: turn on generation of assertion code
805 --with-dmalloc test: use Gray Watson's dmalloc library
806 --with-dbmalloc test: use Conor Cahill's dbmalloc library
807 --with-valgrind test: use valgrind
808 --disable-leaks test: free permanent memory, analyze leaks
809 --enable-expanded test: generate functions for certain macros
810 --disable-macros test: use functions rather than macros
811 --with-trace test: add trace() function to all models of ncurses
812 Ada95 Binding Options:
813 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
814 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
815 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
816 --with-ada-sharedlib=XX build Ada95 shared-library
818 Some influential environment variables:
819 CC C compiler command
820 CFLAGS C compiler flags
821 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
822 nonstandard directory <lib dir>
823 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
824 headers in a nonstandard directory <include dir>
826 CXX C++ compiler command
827 CXXFLAGS C++ compiler flags
828 CXXCPP C++ preprocessor
830 Use these variables to override the choices made by `configure' or to help
831 it to find libraries and programs with nonstandard names/locations.
836 if test "$ac_init_help" = "recursive"; then
837 # If there are subdirs, report their specific --help.
839 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
841 # A "../" for each directory in /$ac_subdir.
842 ac_dots=`echo $ac_subdir |
843 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
846 .) # No --srcdir option. We are building in place.
847 ac_sub_srcdir=$srcdir ;;
848 [\\/]* | ?:[\\/]* ) # Absolute path.
849 ac_sub_srcdir=$srcdir/$ac_subdir ;;
851 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
854 # Check for guested configure; otherwise get Cygnus style configure.
855 if test -f $ac_sub_srcdir/configure.gnu; then
857 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
858 elif test -f $ac_sub_srcdir/configure; then
860 $SHELL $ac_sub_srcdir/configure --help=recursive
861 elif test -f $ac_sub_srcdir/configure.ac ||
862 test -f $ac_sub_srcdir/configure.in; then
866 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
872 test -n "$ac_init_help" && exit 0
873 if $ac_init_version; then
876 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
877 Free Software Foundation, Inc.
878 This configure script is free software; the Free Software Foundation
879 gives unlimited permission to copy, distribute and modify it.
885 This file contains any messages produced by compilers while
886 running configure, to aid debugging if configure makes a mistake.
888 It was created by $as_me, which was
889 generated by GNU Autoconf 2.52.20101002. Invocation command line was
900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
912 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
929 # Keep a trace of the command line.
930 # Strip out --no-create and --no-recursion so they do not pile up.
931 # Also quote any args containing shell meta-characters.
937 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938 | --no-cr | --no-c) ;;
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
941 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
942 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
943 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
945 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
948 # Get rid of the leading space.
951 # When interrupted or exit'd, cleanup temporary files, and complete
952 # config.log. We remove comments because anyway the quotes in there
953 # would cause problems or look ugly.
955 # Save into config.log some information that might help in debugging.
957 echo "## ----------------- ##" >&5
958 echo "## Cache variables. ##" >&5
959 echo "## ----------------- ##" >&5
961 # The following way of writing the cache mishandles newlines in values,
964 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
967 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
972 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
976 sed "/^$/d" confdefs.h >conftest.log
977 if test -s conftest.log; then
979 echo "## ------------ ##" >&5
980 echo "## confdefs.h. ##" >&5
981 echo "## ------------ ##" >&5
986 test "$ac_signal" != 0 &&
987 echo "$as_me: caught signal $ac_signal" >&5
988 echo "$as_me: exit $exit_status" >&5
989 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
992 for ac_signal in 1 2 13 15; do
993 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
997 # confdefs.h avoids OS command line length limits that DEFS can exceed.
998 rm -rf conftest* confdefs.h
999 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1002 # Let the site file select an alternate cache file if it wants to.
1003 # Prefer explicitly selected file to automatically selected ones.
1004 if test -z "$CONFIG_SITE"; then
1005 if test "x$prefix" != xNONE; then
1006 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1008 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1011 for ac_site_file in $CONFIG_SITE; do
1012 if test -r "$ac_site_file"; then
1013 { echo "$as_me:1013: loading site script $ac_site_file" >&5
1014 echo "$as_me: loading site script $ac_site_file" >&6;}
1015 cat "$ac_site_file" >&5
1020 if test -r "$cache_file"; then
1021 # Some versions of bash will fail to source /dev/null (special
1022 # files actually), so we avoid doing that.
1023 if test -f "$cache_file"; then
1024 { echo "$as_me:1024: loading cache $cache_file" >&5
1025 echo "$as_me: loading cache $cache_file" >&6;}
1027 [\\/]* | ?:[\\/]* ) . $cache_file;;
1028 *) . ./$cache_file;;
1032 { echo "$as_me:1032: creating cache $cache_file" >&5
1033 echo "$as_me: creating cache $cache_file" >&6;}
1037 # Check that the precious variables saved in the cache have kept the same
1039 ac_cache_corrupted=false
1040 for ac_var in `(set) 2>&1 |
1041 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1042 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1043 eval ac_new_set=\$ac_env_${ac_var}_set
1044 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1045 eval ac_new_val="\$ac_env_${ac_var}_value"
1046 case $ac_old_set,$ac_new_set in
1048 { echo "$as_me:1048: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1049 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1050 ac_cache_corrupted=: ;;
1052 { echo "$as_me:1052: error: \`$ac_var' was not set in the previous run" >&5
1053 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1054 ac_cache_corrupted=: ;;
1057 if test "x$ac_old_val" != "x$ac_new_val"; then
1058 { echo "$as_me:1058: error: \`$ac_var' has changed since the previous run:" >&5
1059 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1060 { echo "$as_me:1060: former value: $ac_old_val" >&5
1061 echo "$as_me: former value: $ac_old_val" >&2;}
1062 { echo "$as_me:1062: current value: $ac_new_val" >&5
1063 echo "$as_me: current value: $ac_new_val" >&2;}
1064 ac_cache_corrupted=:
1067 # Pass precious variables to config.status. It doesn't matter if
1068 # we pass some twice (in addition to the command line arguments).
1069 if test "$ac_new_set" = set; then
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1073 ac_configure_args="$ac_configure_args '$ac_arg'"
1075 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1080 if $ac_cache_corrupted; then
1081 { echo "$as_me:1081: error: changes in the environment can compromise the build" >&5
1082 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1083 { { echo "$as_me:1083: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1084 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1085 { (exit 1); exit 1; }; }
1089 ac_cpp='$CPP $CPPFLAGS'
1090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1093 ac_main_return=return
1095 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1096 *c*,-n*) ECHO_N= ECHO_C='
1098 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1099 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1101 echo "#! $SHELL" >conftest.sh
1102 echo "exit 0" >>conftest.sh
1103 chmod +x conftest.sh
1104 if { (echo "$as_me:1104: PATH=\".;.\"; conftest.sh") >&5
1105 (PATH=".;."; conftest.sh) 2>&5
1107 echo "$as_me:1107: \$? = $ac_status" >&5
1108 (exit $ac_status); }; then
1109 ac_path_separator=';'
1113 PATH_SEPARATOR="$ac_path_separator"
1116 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1120 echo "$as_me:1120: checking for egrep" >&5
1121 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1122 if test "${ac_cv_prog_egrep+set}" = set; then
1123 echo $ECHO_N "(cached) $ECHO_C" >&6
1125 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1126 then ac_cv_prog_egrep='grep -E'
1127 else ac_cv_prog_egrep='egrep'
1130 echo "$as_me:1130: result: $ac_cv_prog_egrep" >&5
1131 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1132 EGREP=$ac_cv_prog_egrep
1134 test -z "$EGREP" && { { echo "$as_me:1134: error: No egrep program found" >&5
1135 echo "$as_me: error: No egrep program found" >&2;}
1136 { (exit 1); exit 1; }; }
1138 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1139 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1140 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1141 cf_cv_abi_version=${NCURSES_MAJOR}
1142 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1143 cf_cv_timestamp=`date`
1144 echo "$as_me:1144: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1145 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1147 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1149 # Check whether --with-rel-version or --without-rel-version was given.
1150 if test "${with_rel_version+set}" = set; then
1151 withval="$with_rel_version"
1152 { echo "$as_me:1152: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1153 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1154 cf_cv_rel_version=$withval
1157 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1158 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1160 if test -n "$NCURSES_MAJOR" ; then
1161 case $NCURSES_MAJOR in #(vi
1165 { { echo "$as_me:1165: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1166 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1167 { (exit 1); exit 1; }; }
1171 { { echo "$as_me:1171: error: Release major-version value is empty" >&5
1172 echo "$as_me: error: Release major-version value is empty" >&2;}
1173 { (exit 1); exit 1; }; }
1176 if test -n "$NCURSES_MINOR" ; then
1177 case $NCURSES_MINOR in #(vi
1181 { { echo "$as_me:1181: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1182 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1183 { (exit 1); exit 1; }; }
1187 { { echo "$as_me:1187: error: Release minor-version value is empty" >&5
1188 echo "$as_me: error: Release minor-version value is empty" >&2;}
1189 { (exit 1); exit 1; }; }
1192 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1194 # Check whether --with-abi-version or --without-abi-version was given.
1195 if test "${with_abi_version+set}" = set; then
1196 withval="$with_abi_version"
1197 { echo "$as_me:1197: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1198 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1199 cf_cv_abi_version=$withval
1202 if test -n "$cf_cv_abi_version" ; then
1203 case $cf_cv_abi_version in #(vi
1207 { { echo "$as_me:1207: error: ABI version is not a number: $cf_cv_abi_version" >&5
1208 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1209 { (exit 1); exit 1; }; }
1213 { { echo "$as_me:1213: error: ABI version value is empty" >&5
1214 echo "$as_me: error: ABI version value is empty" >&2;}
1215 { (exit 1); exit 1; }; }
1219 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1220 if test -f $ac_dir/install-sh; then
1222 ac_install_sh="$ac_aux_dir/install-sh -c"
1224 elif test -f $ac_dir/install.sh; then
1226 ac_install_sh="$ac_aux_dir/install.sh -c"
1228 elif test -f $ac_dir/shtool; then
1230 ac_install_sh="$ac_aux_dir/shtool install -c"
1234 if test -z "$ac_aux_dir"; then
1235 { { echo "$as_me:1235: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1236 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1237 { (exit 1); exit 1; }; }
1239 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1240 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1241 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1243 # Make sure we can run config.sub.
1244 $ac_config_sub sun4 >/dev/null 2>&1 ||
1245 { { echo "$as_me:1245: error: cannot run $ac_config_sub" >&5
1246 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1247 { (exit 1); exit 1; }; }
1249 echo "$as_me:1249: checking build system type" >&5
1250 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1251 if test "${ac_cv_build+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1254 ac_cv_build_alias=$build_alias
1255 test -z "$ac_cv_build_alias" &&
1256 ac_cv_build_alias=`$ac_config_guess`
1257 test -z "$ac_cv_build_alias" &&
1258 { { echo "$as_me:1258: error: cannot guess build type; you must specify one" >&5
1259 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1260 { (exit 1); exit 1; }; }
1261 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1262 { { echo "$as_me:1262: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1263 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1264 { (exit 1); exit 1; }; }
1267 echo "$as_me:1267: result: $ac_cv_build" >&5
1268 echo "${ECHO_T}$ac_cv_build" >&6
1270 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1271 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1272 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1274 echo "$as_me:1274: checking host system type" >&5
1275 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1276 if test "${ac_cv_host+set}" = set; then
1277 echo $ECHO_N "(cached) $ECHO_C" >&6
1279 ac_cv_host_alias=$host_alias
1280 test -z "$ac_cv_host_alias" &&
1281 ac_cv_host_alias=$ac_cv_build_alias
1282 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1283 { { echo "$as_me:1283: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1284 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1285 { (exit 1); exit 1; }; }
1288 echo "$as_me:1288: result: $ac_cv_host" >&5
1289 echo "${ECHO_T}$ac_cv_host" >&6
1291 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1292 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1293 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1295 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1296 echo "$as_me:1296: checking target system type" >&5
1297 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1298 if test "${ac_cv_target+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 ac_cv_target_alias=$target_alias
1302 test "x$ac_cv_target_alias" = "x" &&
1303 ac_cv_target_alias=$ac_cv_host_alias
1304 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1305 { { echo "$as_me:1305: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1306 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1307 { (exit 1); exit 1; }; }
1310 echo "$as_me:1310: result: $ac_cv_target" >&5
1311 echo "${ECHO_T}$ac_cv_target" >&6
1312 target=$ac_cv_target
1313 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1314 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1315 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1317 # The aliases save the names the user supplied, while $host etc.
1318 # will get canonicalized.
1319 test -n "$target_alias" &&
1320 test "$program_prefix$program_suffix$program_transform_name" = \
1322 program_prefix=${target_alias}-
1323 system_name="$host_os"
1325 system_name="`(uname -s -r) 2>/dev/null`"
1326 if test -z "$system_name" ; then
1327 system_name="`(hostname) 2>/dev/null`"
1330 test -n "$system_name" && cat >>confdefs.h <<EOF
1331 #define SYSTEM_NAME "$system_name"
1334 if test "${cf_cv_system_name+set}" = set; then
1335 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 cf_cv_system_name="$system_name"
1340 test -z "$system_name" && system_name="$cf_cv_system_name"
1341 test -n "$cf_cv_system_name" && echo "$as_me:1341: result: Configuring for $cf_cv_system_name" >&5
1342 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1344 if test ".$system_name" != ".$cf_cv_system_name" ; then
1345 echo "$as_me:1345: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1346 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1347 { { echo "$as_me:1347: error: \"Please remove config.cache and try again.\"" >&5
1348 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1349 { (exit 1); exit 1; }; }
1352 # Check whether --with-system-type or --without-system-type was given.
1353 if test "${with_system_type+set}" = set; then
1354 withval="$with_system_type"
1355 { echo "$as_me:1355: WARNING: overriding system type to $withval" >&5
1356 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1357 cf_cv_system_name=$withval
1360 ### Save the given $CFLAGS to allow user-override.
1361 cf_user_CFLAGS="$CFLAGS"
1363 ### Default install-location
1365 echo "$as_me:1365: checking for prefix" >&5
1366 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1367 if test "x$prefix" = "xNONE" ; then
1368 case "$cf_cv_system_name" in
1369 # non-vendor systems don't have a conflict
1370 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1373 *) prefix=$ac_default_prefix
1377 echo "$as_me:1377: result: $prefix" >&5
1378 echo "${ECHO_T}$prefix" >&6
1380 if test "x$prefix" = "xNONE" ; then
1381 echo "$as_me:1381: checking for default include-directory" >&5
1382 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1383 test -n "$verbose" && echo 1>&6
1386 $includedir/ncurses \
1388 $prefix/include/ncurses \
1389 /usr/local/include \
1390 /usr/local/include/ncurses \
1392 /usr/include/ncurses
1394 cf_dir=`eval echo $cf_symbol`
1395 if test -f $cf_dir/curses.h ; then
1396 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1397 includedir="$cf_symbol"
1398 test -n "$verbose" && echo $ac_n " found " 1>&6
1402 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1404 echo "$as_me:1404: result: $includedir" >&5
1405 echo "${ECHO_T}$includedir" >&6
1408 ### Checks for programs.
1410 ac_cpp='$CPP $CPPFLAGS'
1411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1414 ac_main_return=return
1415 if test -n "$ac_tool_prefix"; then
1416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1418 echo "$as_me:1418: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 if test -n "$CC"; then
1424 ac_cv_prog_CC="$CC" # Let the user override the test.
1426 ac_save_IFS=$IFS; IFS=$ac_path_separator
1428 for ac_dir in $ac_dummy; do
1430 test -z "$ac_dir" && ac_dir=.
1431 $as_executable_p "$ac_dir/$ac_word" || continue
1432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1433 echo "$as_me:1433: found $ac_dir/$ac_word" >&5
1440 if test -n "$CC"; then
1441 echo "$as_me:1441: result: $CC" >&5
1442 echo "${ECHO_T}$CC" >&6
1444 echo "$as_me:1444: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1449 if test -z "$ac_cv_prog_CC"; then
1451 # Extract the first word of "gcc", so it can be a program name with args.
1452 set dummy gcc; ac_word=$2
1453 echo "$as_me:1453: checking for $ac_word" >&5
1454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 if test -n "$ac_ct_CC"; then
1459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1461 ac_save_IFS=$IFS; IFS=$ac_path_separator
1463 for ac_dir in $ac_dummy; do
1465 test -z "$ac_dir" && ac_dir=.
1466 $as_executable_p "$ac_dir/$ac_word" || continue
1467 ac_cv_prog_ac_ct_CC="gcc"
1468 echo "$as_me:1468: found $ac_dir/$ac_word" >&5
1474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1475 if test -n "$ac_ct_CC"; then
1476 echo "$as_me:1476: result: $ac_ct_CC" >&5
1477 echo "${ECHO_T}$ac_ct_CC" >&6
1479 echo "$as_me:1479: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1488 if test -z "$CC"; then
1489 if test -n "$ac_tool_prefix"; then
1490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1491 set dummy ${ac_tool_prefix}cc; ac_word=$2
1492 echo "$as_me:1492: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 if test -n "$CC"; then
1498 ac_cv_prog_CC="$CC" # Let the user override the test.
1500 ac_save_IFS=$IFS; IFS=$ac_path_separator
1502 for ac_dir in $ac_dummy; do
1504 test -z "$ac_dir" && ac_dir=.
1505 $as_executable_p "$ac_dir/$ac_word" || continue
1506 ac_cv_prog_CC="${ac_tool_prefix}cc"
1507 echo "$as_me:1507: found $ac_dir/$ac_word" >&5
1514 if test -n "$CC"; then
1515 echo "$as_me:1515: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1518 echo "$as_me:1518: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1523 if test -z "$ac_cv_prog_CC"; then
1525 # Extract the first word of "cc", so it can be a program name with args.
1526 set dummy cc; ac_word=$2
1527 echo "$as_me:1527: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$ac_ct_CC"; then
1533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1535 ac_save_IFS=$IFS; IFS=$ac_path_separator
1537 for ac_dir in $ac_dummy; do
1539 test -z "$ac_dir" && ac_dir=.
1540 $as_executable_p "$ac_dir/$ac_word" || continue
1541 ac_cv_prog_ac_ct_CC="cc"
1542 echo "$as_me:1542: found $ac_dir/$ac_word" >&5
1548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549 if test -n "$ac_ct_CC"; then
1550 echo "$as_me:1550: result: $ac_ct_CC" >&5
1551 echo "${ECHO_T}$ac_ct_CC" >&6
1553 echo "$as_me:1553: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1563 if test -z "$CC"; then
1564 # Extract the first word of "cc", so it can be a program name with args.
1565 set dummy cc; ac_word=$2
1566 echo "$as_me:1566: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$CC"; then
1572 ac_cv_prog_CC="$CC" # Let the user override the test.
1575 ac_save_IFS=$IFS; IFS=$ac_path_separator
1577 for ac_dir in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir=.
1580 $as_executable_p "$ac_dir/$ac_word" || continue
1581 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1582 ac_prog_rejected=yes
1586 echo "$as_me:1586: found $ac_dir/$ac_word" >&5
1590 if test $ac_prog_rejected = yes; then
1591 # We found a bogon in the path, so make sure we never use it.
1592 set dummy $ac_cv_prog_CC
1594 if test $# != 0; then
1595 # We chose a different compiler from the bogus one.
1596 # However, it has the same basename, so the bogon will be chosen
1597 # first if we set CC to just the basename; use the full file name.
1599 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1607 if test -n "$CC"; then
1608 echo "$as_me:1608: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1611 echo "$as_me:1611: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1622 echo "$as_me:1622: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 ac_save_IFS=$IFS; IFS=$ac_path_separator
1632 for ac_dir in $ac_dummy; do
1634 test -z "$ac_dir" && ac_dir=.
1635 $as_executable_p "$ac_dir/$ac_word" || continue
1636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1637 echo "$as_me:1637: found $ac_dir/$ac_word" >&5
1644 if test -n "$CC"; then
1645 echo "$as_me:1645: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1648 echo "$as_me:1648: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1652 test -n "$CC" && break
1655 if test -z "$CC"; then
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:1661: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 ac_save_IFS=$IFS; IFS=$ac_path_separator
1671 for ac_dir in $ac_dummy; do
1673 test -z "$ac_dir" && ac_dir=.
1674 $as_executable_p "$ac_dir/$ac_word" || continue
1675 ac_cv_prog_ac_ct_CC="$ac_prog"
1676 echo "$as_me:1676: found $ac_dir/$ac_word" >&5
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684 echo "$as_me:1684: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1687 echo "$as_me:1687: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$ac_ct_CC" && break
1699 test -z "$CC" && { { echo "$as_me:1699: error: no acceptable cc found in \$PATH" >&5
1700 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1701 { (exit 1); exit 1; }; }
1703 # Provide some information about the compiler.
1704 echo "$as_me:1704:" \
1705 "checking for C compiler version" >&5
1706 ac_compiler=`set X $ac_compile; echo $2`
1707 { (eval echo "$as_me:1707: \"$ac_compiler --version </dev/null >&5\"") >&5
1708 (eval $ac_compiler --version </dev/null >&5) 2>&5
1710 echo "$as_me:1710: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1712 { (eval echo "$as_me:1712: \"$ac_compiler -v </dev/null >&5\"") >&5
1713 (eval $ac_compiler -v </dev/null >&5) 2>&5
1715 echo "$as_me:1715: \$? = $ac_status" >&5
1716 (exit $ac_status); }
1717 { (eval echo "$as_me:1717: \"$ac_compiler -V </dev/null >&5\"") >&5
1718 (eval $ac_compiler -V </dev/null >&5) 2>&5
1720 echo "$as_me:1720: \$? = $ac_status" >&5
1721 (exit $ac_status); }
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1735 ac_clean_files_save=$ac_clean_files
1736 ac_clean_files="$ac_clean_files a.out a.exe"
1737 # Try to create an executable without -o first, disregard a.out.
1738 # It will help us diagnose broken compilers, and finding out an intuition
1740 echo "$as_me:1740: checking for C compiler default output" >&5
1741 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1742 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1743 if { (eval echo "$as_me:1743: \"$ac_link_default\"") >&5
1744 (eval $ac_link_default) 2>&5
1746 echo "$as_me:1746: \$? = $ac_status" >&5
1747 (exit $ac_status); }; then
1748 # Find the output, starting from the most likely. This scheme is
1749 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1751 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1752 ls a.out conftest 2>/dev/null;
1753 ls a.* conftest.* 2>/dev/null`; do
1755 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1756 a.out ) # We found the default executable, but exeext='' is most
1759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1760 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1767 echo "$as_me: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 { { echo "$as_me:1769: error: C compiler cannot create executables" >&5
1770 echo "$as_me: error: C compiler cannot create executables" >&2;}
1771 { (exit 77); exit 77; }; }
1774 ac_exeext=$ac_cv_exeext
1775 echo "$as_me:1775: result: $ac_file" >&5
1776 echo "${ECHO_T}$ac_file" >&6
1778 # Check the compiler produces executables we can run. If not, either
1779 # the compiler is broken, or we cross compile.
1780 echo "$as_me:1780: checking whether the C compiler works" >&5
1781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783 # If not cross compiling, check that we can run a simple program.
1784 if test "$cross_compiling" != yes; then
1785 if { ac_try='./$ac_file'
1786 { (eval echo "$as_me:1786: \"$ac_try\"") >&5
1789 echo "$as_me:1789: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1793 if test "$cross_compiling" = maybe; then
1796 { { echo "$as_me:1796: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'." >&5
1798 echo "$as_me: error: cannot run C compiled programs.
1799 If you meant to cross compile, use \`--host'." >&2;}
1800 { (exit 1); exit 1; }; }
1804 echo "$as_me:1804: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1807 rm -f a.out a.exe conftest$ac_cv_exeext
1808 ac_clean_files=$ac_clean_files_save
1809 # Check the compiler produces executables we can run. If not, either
1810 # the compiler is broken, or we cross compile.
1811 echo "$as_me:1811: checking whether we are cross compiling" >&5
1812 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1813 echo "$as_me:1813: result: $cross_compiling" >&5
1814 echo "${ECHO_T}$cross_compiling" >&6
1816 echo "$as_me:1816: checking for executable suffix" >&5
1817 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1818 if { (eval echo "$as_me:1818: \"$ac_link\"") >&5
1819 (eval $ac_link) 2>&5
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1825 # work properly (i.e., refer to `conftest.exe'), while it won't with
1827 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1829 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837 { { echo "$as_me:1837: error: cannot compute EXEEXT: cannot compile and link" >&5
1838 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1839 { (exit 1); exit 1; }; }
1842 rm -f conftest$ac_cv_exeext
1843 echo "$as_me:1843: result: $ac_cv_exeext" >&5
1844 echo "${ECHO_T}$ac_cv_exeext" >&6
1846 rm -f conftest.$ac_ext
1847 EXEEXT=$ac_cv_exeext
1849 echo "$as_me:1849: checking for object suffix" >&5
1850 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1851 if test "${ac_cv_objext+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1866 rm -f conftest.o conftest.obj
1867 if { (eval echo "$as_me:1867: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:1870: \$? = $ac_status" >&5
1871 (exit $ac_status); }; then
1872 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1875 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 { { echo "$as_me:1882: error: cannot compute OBJEXT: cannot compile" >&5
1883 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1884 { (exit 1); exit 1; }; }
1887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1889 echo "$as_me:1889: result: $ac_cv_objext" >&5
1890 echo "${ECHO_T}$ac_cv_objext" >&6
1891 OBJEXT=$ac_cv_objext
1893 echo "$as_me:1893: checking whether we are using the GNU C compiler" >&5
1894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 cat >conftest.$ac_ext <<_ACEOF
1899 #line 1899 "configure"
1900 #include "confdefs.h"
1913 rm -f conftest.$ac_objext
1914 if { (eval echo "$as_me:1914: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>&5
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); } &&
1919 { ac_try='test -s conftest.$ac_objext'
1920 { (eval echo "$as_me:1920: \"$ac_try\"") >&5
1923 echo "$as_me:1923: \$? = $ac_status" >&5
1924 (exit $ac_status); }; }; then
1927 echo "$as_me: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1931 rm -f conftest.$ac_objext conftest.$ac_ext
1932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1935 echo "$as_me:1935: result: $ac_cv_c_compiler_gnu" >&5
1936 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1937 GCC=`test $ac_compiler_gnu = yes && echo yes`
1938 ac_test_CFLAGS=${CFLAGS+set}
1939 ac_save_CFLAGS=$CFLAGS
1941 echo "$as_me:1941: checking whether $CC accepts -g" >&5
1942 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1943 if test "${ac_cv_prog_cc_g+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line 1947 "configure"
1948 #include "confdefs.h"
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:1959: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1962 echo "$as_me:1962: \$? = $ac_status" >&5
1963 (exit $ac_status); } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:1965: \"$ac_try\"") >&5
1968 echo "$as_me:1968: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1972 echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1976 rm -f conftest.$ac_objext conftest.$ac_ext
1978 echo "$as_me:1978: result: $ac_cv_prog_cc_g" >&5
1979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1980 if test "$ac_test_CFLAGS" = set; then
1981 CFLAGS=$ac_save_CFLAGS
1982 elif test $ac_cv_prog_cc_g = yes; then
1983 if test "$GCC" = yes; then
1989 if test "$GCC" = yes; then
1995 # Some people use a C++ compiler to compile C. Since we use `exit',
1996 # in C++ we need to declare it. In case someone uses the same compiler
1997 # for both compiling C and C++ we need to have the C++ compiler decide
1998 # the declaration of exit, since it's the most demanding environment.
1999 cat >conftest.$ac_ext <<_ACEOF
2004 rm -f conftest.$ac_objext
2005 if { (eval echo "$as_me:2005: \"$ac_compile\"") >&5
2006 (eval $ac_compile) 2>&5
2008 echo "$as_me:2008: \$? = $ac_status" >&5
2009 (exit $ac_status); } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:2011: \"$ac_try\"") >&5
2014 echo "$as_me:2014: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 for ac_declaration in \
2018 '#include <stdlib.h>' \
2019 'extern "C" void std::exit (int) throw (); using std::exit;' \
2020 'extern "C" void std::exit (int); using std::exit;' \
2021 'extern "C" void exit (int) throw ();' \
2022 'extern "C" void exit (int);' \
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line 2026 "configure"
2027 #include "confdefs.h"
2038 rm -f conftest.$ac_objext
2039 if { (eval echo "$as_me:2039: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>&5
2042 echo "$as_me:2042: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
2044 { ac_try='test -s conftest.$ac_objext'
2045 { (eval echo "$as_me:2045: \"$ac_try\"") >&5
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2052 echo "$as_me: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 cat >conftest.$ac_ext <<_ACEOF
2058 #line 2058 "configure"
2059 #include "confdefs.h"
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:2070: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>&5
2073 echo "$as_me:2073: \$? = $ac_status" >&5
2074 (exit $ac_status); } &&
2075 { ac_try='test -s conftest.$ac_objext'
2076 { (eval echo "$as_me:2076: \"$ac_try\"") >&5
2079 echo "$as_me:2079: \$? = $ac_status" >&5
2080 (exit $ac_status); }; }; then
2083 echo "$as_me: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2086 rm -f conftest.$ac_objext conftest.$ac_ext
2089 if test -n "$ac_declaration"; then
2090 echo '#ifdef __cplusplus' >>confdefs.h
2091 echo $ac_declaration >>confdefs.h
2092 echo '#endif' >>confdefs.h
2096 echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 ac_main_return=return
2108 if test "$GCC" = yes ; then
2109 echo "$as_me:2109: checking version of $CC" >&5
2110 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2111 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2112 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2113 echo "$as_me:2113: result: $GCC_VERSION" >&5
2114 echo "${ECHO_T}$GCC_VERSION" >&6
2118 ac_cpp='$CPP $CPPFLAGS'
2119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2122 ac_main_return=return
2123 echo "$as_me:2123: checking how to run the C preprocessor" >&5
2124 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2125 # On Suns, sometimes $CPP names a directory.
2126 if test -n "$CPP" && test -d "$CPP"; then
2129 if test -z "$CPP"; then
2130 if test "${ac_cv_prog_CPP+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 # Double quotes because CPP needs to be expanded
2134 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2137 for ac_c_preproc_warn_flag in '' yes
2139 # Use a header file that comes with gcc, so configuring glibc
2140 # with a fresh cross-compiler works.
2141 # On the NeXT, cc -E runs the code through the compiler's parser,
2142 # not just through cpp. "Syntax error" is here to catch this case.
2143 cat >conftest.$ac_ext <<_ACEOF
2144 #line 2144 "configure"
2145 #include "confdefs.h"
2149 if { (eval echo "$as_me:2149: \"$ac_cpp conftest.$ac_ext\"") >&5
2150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2152 egrep -v '^ *\+' conftest.er1 >conftest.err
2154 cat conftest.err >&5
2155 echo "$as_me:2155: \$? = $ac_status" >&5
2156 (exit $ac_status); } >/dev/null; then
2157 if test -s conftest.err; then
2158 ac_cpp_err=$ac_c_preproc_warn_flag
2165 if test -z "$ac_cpp_err"; then
2168 echo "$as_me: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2170 # Broken: fails on valid input.
2173 rm -f conftest.err conftest.$ac_ext
2175 # OK, works on sane cases. Now check whether non-existent headers
2176 # can be detected and how.
2177 cat >conftest.$ac_ext <<_ACEOF
2178 #line 2178 "configure"
2179 #include "confdefs.h"
2180 #include <ac_nonexistent.h>
2182 if { (eval echo "$as_me:2182: \"$ac_cpp conftest.$ac_ext\"") >&5
2183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2185 egrep -v '^ *\+' conftest.er1 >conftest.err
2187 cat conftest.err >&5
2188 echo "$as_me:2188: \$? = $ac_status" >&5
2189 (exit $ac_status); } >/dev/null; then
2190 if test -s conftest.err; then
2191 ac_cpp_err=$ac_c_preproc_warn_flag
2198 if test -z "$ac_cpp_err"; then
2199 # Broken: success on invalid input.
2202 echo "$as_me: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2204 # Passes both tests.
2208 rm -f conftest.err conftest.$ac_ext
2211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2212 rm -f conftest.err conftest.$ac_ext
2213 if $ac_preproc_ok; then
2225 echo "$as_me:2225: result: $CPP" >&5
2226 echo "${ECHO_T}$CPP" >&6
2228 for ac_c_preproc_warn_flag in '' yes
2230 # Use a header file that comes with gcc, so configuring glibc
2231 # with a fresh cross-compiler works.
2232 # On the NeXT, cc -E runs the code through the compiler's parser,
2233 # not just through cpp. "Syntax error" is here to catch this case.
2234 cat >conftest.$ac_ext <<_ACEOF
2235 #line 2235 "configure"
2236 #include "confdefs.h"
2240 if { (eval echo "$as_me:2240: \"$ac_cpp conftest.$ac_ext\"") >&5
2241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2243 egrep -v '^ *\+' conftest.er1 >conftest.err
2245 cat conftest.err >&5
2246 echo "$as_me:2246: \$? = $ac_status" >&5
2247 (exit $ac_status); } >/dev/null; then
2248 if test -s conftest.err; then
2249 ac_cpp_err=$ac_c_preproc_warn_flag
2256 if test -z "$ac_cpp_err"; then
2259 echo "$as_me: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 # Broken: fails on valid input.
2264 rm -f conftest.err conftest.$ac_ext
2266 # OK, works on sane cases. Now check whether non-existent headers
2267 # can be detected and how.
2268 cat >conftest.$ac_ext <<_ACEOF
2269 #line 2269 "configure"
2270 #include "confdefs.h"
2271 #include <ac_nonexistent.h>
2273 if { (eval echo "$as_me:2273: \"$ac_cpp conftest.$ac_ext\"") >&5
2274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2276 egrep -v '^ *\+' conftest.er1 >conftest.err
2278 cat conftest.err >&5
2279 echo "$as_me:2279: \$? = $ac_status" >&5
2280 (exit $ac_status); } >/dev/null; then
2281 if test -s conftest.err; then
2282 ac_cpp_err=$ac_c_preproc_warn_flag
2289 if test -z "$ac_cpp_err"; then
2290 # Broken: success on invalid input.
2293 echo "$as_me: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2295 # Passes both tests.
2299 rm -f conftest.err conftest.$ac_ext
2302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2303 rm -f conftest.err conftest.$ac_ext
2304 if $ac_preproc_ok; then
2307 { { echo "$as_me:2307: error: C preprocessor \"$CPP\" fails sanity check" >&5
2308 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2309 { (exit 1); exit 1; }; }
2313 ac_cpp='$CPP $CPPFLAGS'
2314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317 ac_main_return=return
2319 if test $ac_cv_c_compiler_gnu = yes; then
2320 echo "$as_me:2320: checking whether $CC needs -traditional" >&5
2321 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2322 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 ac_pattern="Autoconf.*'x'"
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #line 2327 "configure"
2328 #include "confdefs.h"
2330 int Autoconf = TIOCGETP;
2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2333 egrep "$ac_pattern" >/dev/null 2>&1; then
2334 ac_cv_prog_gcc_traditional=yes
2336 ac_cv_prog_gcc_traditional=no
2340 if test $ac_cv_prog_gcc_traditional = no; then
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line 2342 "configure"
2343 #include "confdefs.h"
2345 int Autoconf = TCGETA;
2347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2348 egrep "$ac_pattern" >/dev/null 2>&1; then
2349 ac_cv_prog_gcc_traditional=yes
2355 echo "$as_me:2355: result: $ac_cv_prog_gcc_traditional" >&5
2356 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2357 if test $ac_cv_prog_gcc_traditional = yes; then
2358 CC="$CC -traditional"
2362 echo "$as_me:2362: checking whether $CC understands -c and -o together" >&5
2363 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2364 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat > conftest.$ac_ext <<CF_EOF
2372 ${cf_cv_main_return:-return}(0);
2375 # We do the test twice because some compilers refuse to overwrite an
2376 # existing .o file with -o, though they will create one.
2377 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2378 if { (eval echo "$as_me:2378: \"$ac_try\"") >&5
2381 echo "$as_me:2381: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 test -f conftest2.$ac_objext && { (eval echo "$as_me:2383: \"$ac_try\"") >&5
2386 echo "$as_me:2386: \$? = $ac_status" >&5
2387 (exit $ac_status); };
2389 eval cf_cv_prog_CC_c_o=yes
2391 eval cf_cv_prog_CC_c_o=no
2396 if test $cf_cv_prog_CC_c_o = yes; then
2397 echo "$as_me:2397: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6
2400 echo "$as_me:2400: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2404 echo "$as_me:2404: checking for POSIXized ISC" >&5
2405 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2406 if test -d /etc/conf/kconfig.d &&
2407 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2409 echo "$as_me:2409: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6
2411 ISC=yes # If later tests want to check for ISC.
2413 cat >>confdefs.h <<\EOF
2414 #define _POSIX_SOURCE 1
2417 if test "$GCC" = yes; then
2423 echo "$as_me:2423: result: no" >&5
2424 echo "${ECHO_T}no" >&6
2428 # This should have been defined by AC_PROG_CC
2431 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2432 # into CC. This will not help with broken scripts that wrap the compiler with
2433 # options, but eliminates a more common category of user confusion.
2434 echo "$as_me:2434: checking \$CC variable" >&5
2435 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2438 echo "$as_me:2438: result: broken" >&5
2439 echo "${ECHO_T}broken" >&6
2440 { echo "$as_me:2440: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2441 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2443 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2444 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2449 cf_new_extra_cppflags=
2451 for cf_add_cflags in $cf_flags
2453 case $cf_fix_cppflags in
2455 case $cf_add_cflags in #(vi
2456 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2457 case $cf_add_cflags in
2459 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2461 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2462 && test -z "${cf_tst_cflags}" \
2463 && cf_fix_cppflags=yes
2465 if test $cf_fix_cppflags = yes ; then
2466 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2468 elif test "${cf_tst_cflags}" = "\"'" ; then
2469 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2475 *$cf_add_cflags) #(vi
2478 case $cf_add_cflags in #(vi
2480 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2482 CPPFLAGS=`echo "$CPPFLAGS" | \
2483 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2484 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2488 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2493 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2498 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2500 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2502 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2503 && test -z "${cf_tst_cflags}" \
2504 && cf_fix_cppflags=no
2509 if test -n "$cf_new_cflags" ; then
2511 CFLAGS="$CFLAGS $cf_new_cflags"
2514 if test -n "$cf_new_cppflags" ; then
2516 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2519 if test -n "$cf_new_extra_cppflags" ; then
2521 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2526 echo "$as_me:2526: result: ok" >&5
2527 echo "${ECHO_T}ok" >&6
2531 echo "$as_me:2531: checking for ${CC:-cc} option to accept ANSI C" >&5
2532 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2533 if test "${cf_cv_ansi_cc+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 cf_save_CFLAGS="$CFLAGS"
2539 cf_save_CPPFLAGS="$CPPFLAGS"
2540 # Don't try gcc -ansi; that turns off useful extensions and
2541 # breaks some systems' header files.
2542 # AIX -qlanglvl=ansi
2543 # Ultrix and OSF/1 -std1
2544 # HP-UX -Aa -D_HPUX_SOURCE
2546 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2547 for cf_arg in "-DCC_HAS_PROTOS" \
2552 "-Aa -D_HPUX_SOURCE" \
2559 cf_new_extra_cppflags=
2561 for cf_add_cflags in $cf_arg
2563 case $cf_fix_cppflags in
2565 case $cf_add_cflags in #(vi
2566 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2567 case $cf_add_cflags in
2569 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2571 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2572 && test -z "${cf_tst_cflags}" \
2573 && cf_fix_cppflags=yes
2575 if test $cf_fix_cppflags = yes ; then
2576 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2578 elif test "${cf_tst_cflags}" = "\"'" ; then
2579 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2585 *$cf_add_cflags) #(vi
2588 case $cf_add_cflags in #(vi
2590 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2592 CPPFLAGS=`echo "$CPPFLAGS" | \
2593 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2594 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2598 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2603 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2608 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2610 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2612 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2613 && test -z "${cf_tst_cflags}" \
2614 && cf_fix_cppflags=no
2619 if test -n "$cf_new_cflags" ; then
2621 CFLAGS="$CFLAGS $cf_new_cflags"
2624 if test -n "$cf_new_cppflags" ; then
2626 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2629 if test -n "$cf_new_extra_cppflags" ; then
2631 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2634 cat >conftest.$ac_ext <<_ACEOF
2635 #line 2635 "configure"
2636 #include "confdefs.h"
2638 #ifndef CC_HAS_PROTOS
2639 #if !defined(__STDC__) || (__STDC__ != 1)
2648 int test (int i, double x);
2649 struct s1 {int (*f) (int a);};
2650 struct s2 {int (*f) (double a);};
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:2656: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>&5
2659 echo "$as_me:2659: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:2662: \"$ac_try\"") >&5
2665 echo "$as_me:2665: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 cf_cv_ansi_cc="$cf_arg"; break
2669 echo "$as_me: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 rm -f conftest.$ac_objext conftest.$ac_ext
2674 CFLAGS="$cf_save_CFLAGS"
2675 CPPFLAGS="$cf_save_CPPFLAGS"
2678 echo "$as_me:2678: result: $cf_cv_ansi_cc" >&5
2679 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2681 if test "$cf_cv_ansi_cc" != "no"; then
2682 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2687 cf_new_extra_cppflags=
2689 for cf_add_cflags in $cf_cv_ansi_cc
2691 case $cf_fix_cppflags in
2693 case $cf_add_cflags in #(vi
2694 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2695 case $cf_add_cflags in
2697 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2699 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2700 && test -z "${cf_tst_cflags}" \
2701 && cf_fix_cppflags=yes
2703 if test $cf_fix_cppflags = yes ; then
2704 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2706 elif test "${cf_tst_cflags}" = "\"'" ; then
2707 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2713 *$cf_add_cflags) #(vi
2716 case $cf_add_cflags in #(vi
2718 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2720 CPPFLAGS=`echo "$CPPFLAGS" | \
2721 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2722 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2726 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2731 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2736 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2738 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2740 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2741 && test -z "${cf_tst_cflags}" \
2742 && cf_fix_cppflags=no
2747 if test -n "$cf_new_cflags" ; then
2749 CFLAGS="$CFLAGS $cf_new_cflags"
2752 if test -n "$cf_new_cppflags" ; then
2754 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2757 if test -n "$cf_new_extra_cppflags" ; then
2759 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2763 cat >>confdefs.h <<\EOF
2764 #define CC_HAS_PROTOS 1
2770 if test "$cf_cv_ansi_cc" = "no"; then
2771 { { echo "$as_me:2771: error: Your compiler does not appear to recognize prototypes.
2772 You have the following choices:
2773 a. adjust your compiler options
2774 b. get an up-to-date compiler
2775 c. use a wrapper such as unproto" >&5
2776 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2777 You have the following choices:
2778 a. adjust your compiler options
2779 b. get an up-to-date compiler
2780 c. use a wrapper such as unproto" >&2;}
2781 { (exit 1); exit 1; }; }
2784 case $cf_cv_system_name in
2786 CFLAGS="$CFLAGS -Zmt"
2787 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2788 CXXFLAGS="$CXXFLAGS -Zmt"
2789 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2790 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2797 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2798 #define PROG_EXT "$PROG_EXT"
2801 if test "$cross_compiling" = yes ; then
2804 case "$cf_cv_system_name" in #(vi
2805 dragonfly*|mirbsd*|freebsd*) #(vi
2806 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2808 *) LDPATH=$PATH:/sbin:/usr/sbin
2809 # Extract the first word of "ldconfig", so it can be a program name with args.
2810 set dummy ldconfig; ac_word=$2
2811 echo "$as_me:2811: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2821 ac_save_IFS=$IFS; IFS=$ac_path_separator
2823 for ac_dir in $ac_dummy; do
2825 test -z "$ac_dir" && ac_dir=.
2826 if $as_executable_p "$ac_dir/$ac_word"; then
2827 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2828 echo "$as_me:2828: found $ac_dir/$ac_word" >&5
2836 LDCONFIG=$ac_cv_path_LDCONFIG
2838 if test -n "$LDCONFIG"; then
2839 echo "$as_me:2839: result: $LDCONFIG" >&5
2840 echo "${ECHO_T}$LDCONFIG" >&6
2842 echo "$as_me:2842: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2850 echo "$as_me:2850: checking if you want to ensure bool is consistent with C++" >&5
2851 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2853 # Check whether --with-cxx or --without-cxx was given.
2854 if test "${with_cxx+set}" = set; then
2856 cf_with_cxx=$withval
2860 echo "$as_me:2860: result: $cf_with_cxx" >&5
2861 echo "${ECHO_T}$cf_with_cxx" >&6
2862 if test "X$cf_with_cxx" = Xno ; then
2866 # with autoconf 2.13, we can change the error to a warning:
2868 ac_cpp='$CXXCPP $CPPFLAGS'
2869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2872 ac_main_return=return
2873 if test -n "$ac_tool_prefix"; then
2874 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2878 echo "$as_me:2878: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2880 if test "${ac_cv_prog_CXX+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 if test -n "$CXX"; then
2884 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2886 ac_save_IFS=$IFS; IFS=$ac_path_separator
2888 for ac_dir in $ac_dummy; do
2890 test -z "$ac_dir" && ac_dir=.
2891 $as_executable_p "$ac_dir/$ac_word" || continue
2892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893 echo "$as_me:2893: found $ac_dir/$ac_word" >&5
2900 if test -n "$CXX"; then
2901 echo "$as_me:2901: result: $CXX" >&5
2902 echo "${ECHO_T}$CXX" >&6
2904 echo "$as_me:2904: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2908 test -n "$CXX" && break
2911 if test -z "$CXX"; then
2913 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916 set dummy $ac_prog; ac_word=$2
2917 echo "$as_me:2917: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 if test -n "$ac_ct_CXX"; then
2923 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2925 ac_save_IFS=$IFS; IFS=$ac_path_separator
2927 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 $as_executable_p "$ac_dir/$ac_word" || continue
2931 ac_cv_prog_ac_ct_CXX="$ac_prog"
2932 echo "$as_me:2932: found $ac_dir/$ac_word" >&5
2938 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2939 if test -n "$ac_ct_CXX"; then
2940 echo "$as_me:2940: result: $ac_ct_CXX" >&5
2941 echo "${ECHO_T}$ac_ct_CXX" >&6
2943 echo "$as_me:2943: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2947 test -n "$ac_ct_CXX" && break
2949 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2954 # Provide some information about the compiler.
2955 echo "$as_me:2955:" \
2956 "checking for C++ compiler version" >&5
2957 ac_compiler=`set X $ac_compile; echo $2`
2958 { (eval echo "$as_me:2958: \"$ac_compiler --version </dev/null >&5\"") >&5
2959 (eval $ac_compiler --version </dev/null >&5) 2>&5
2961 echo "$as_me:2961: \$? = $ac_status" >&5
2962 (exit $ac_status); }
2963 { (eval echo "$as_me:2963: \"$ac_compiler -v </dev/null >&5\"") >&5
2964 (eval $ac_compiler -v </dev/null >&5) 2>&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968 { (eval echo "$as_me:2968: \"$ac_compiler -V </dev/null >&5\"") >&5
2969 (eval $ac_compiler -V </dev/null >&5) 2>&5
2971 echo "$as_me:2971: \$? = $ac_status" >&5
2972 (exit $ac_status); }
2974 echo "$as_me:2974: checking whether we are using the GNU C++ compiler" >&5
2975 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2976 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 cat >conftest.$ac_ext <<_ACEOF
2980 #line 2980 "configure"
2981 #include "confdefs.h"
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:2995: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>&5
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (eval echo "$as_me:3001: \"$ac_try\"") >&5
3004 echo "$as_me:3004: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3008 echo "$as_me: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3012 rm -f conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3016 echo "$as_me:3016: result: $ac_cv_cxx_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3018 GXX=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CXXFLAGS=${CXXFLAGS+set}
3020 ac_save_CXXFLAGS=$CXXFLAGS
3022 echo "$as_me:3022: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 cat >conftest.$ac_ext <<_ACEOF
3028 #line 3028 "configure"
3029 #include "confdefs.h"
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:3040: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3043 echo "$as_me:3043: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:3046: \"$ac_try\"") >&5
3049 echo "$as_me:3049: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3057 rm -f conftest.$ac_objext conftest.$ac_ext
3059 echo "$as_me:3059: result: $ac_cv_prog_cxx_g" >&5
3060 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3061 if test "$ac_test_CXXFLAGS" = set; then
3062 CXXFLAGS=$ac_save_CXXFLAGS
3063 elif test $ac_cv_prog_cxx_g = yes; then
3064 if test "$GXX" = yes; then
3070 if test "$GXX" = yes; then
3076 for ac_declaration in \
3078 '#include <stdlib.h>' \
3079 'extern "C" void std::exit (int) throw (); using std::exit;' \
3080 'extern "C" void std::exit (int); using std::exit;' \
3081 'extern "C" void exit (int) throw ();' \
3082 'extern "C" void exit (int);' \
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #line 3086 "configure"
3087 #include "confdefs.h"
3098 rm -f conftest.$ac_objext
3099 if { (eval echo "$as_me:3099: \"$ac_compile\"") >&5
3100 (eval $ac_compile) 2>&5
3102 echo "$as_me:3102: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:3105: \"$ac_try\"") >&5
3108 echo "$as_me:3108: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3116 rm -f conftest.$ac_objext conftest.$ac_ext
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line 3118 "configure"
3119 #include "confdefs.h"
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:3130: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>&5
3133 echo "$as_me:3133: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:3136: \"$ac_try\"") >&5
3139 echo "$as_me:3139: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 echo "$as_me: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3146 rm -f conftest.$ac_objext conftest.$ac_ext
3149 if test -n "$ac_declaration"; then
3150 echo '#ifdef __cplusplus' >>confdefs.h
3151 echo $ac_declaration >>confdefs.h
3152 echo '#endif' >>confdefs.h
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 ac_main_return=return
3162 # autoconf 2.5x removed the error - by hardcoding it to g++.
3163 if test "$CXX" = "g++" ; then
3164 # Extract the first word of "g++", so it can be a program name with args.
3165 set dummy g++; ac_word=$2
3166 echo "$as_me:3166: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_path_CXX+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3176 ac_save_IFS=$IFS; IFS=$ac_path_separator
3178 for ac_dir in $ac_dummy; do
3180 test -z "$ac_dir" && ac_dir=.
3181 if $as_executable_p "$ac_dir/$ac_word"; then
3182 ac_cv_path_CXX="$ac_dir/$ac_word"
3183 echo "$as_me:3183: found $ac_dir/$ac_word" >&5
3193 if test -n "$CXX"; then
3194 echo "$as_me:3194: result: $CXX" >&5
3195 echo "${ECHO_T}$CXX" >&6
3197 echo "$as_me:3197: result: no" >&5
3198 echo "${ECHO_T}no" >&6
3202 if test "$CXX" = "g++" ; then
3203 { echo "$as_me:3203: WARNING: ignoring hardcoded g++" >&5
3204 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3205 cf_with_cxx=no; CXX=""; GXX="";
3210 if test "$GXX" = yes; then
3211 echo "$as_me:3211: checking version of g++" >&5
3212 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3213 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3214 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3215 echo "$as_me:3215: result: $GXX_VERSION" >&5
3216 echo "${ECHO_T}$GXX_VERSION" >&6
3219 case $GXX_VERSION in
3221 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3223 { echo "$as_me:3223: WARNING: templates do not work" >&5
3224 echo "$as_me: WARNING: templates do not work" >&2;}
3228 echo "$as_me:3228: checking if you want to build C++ binding and demo" >&5
3229 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3231 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3232 if test "${with_cxx_binding+set}" = set; then
3233 withval="$with_cxx_binding"
3234 cf_with_cxx_binding=$withval
3236 cf_with_cxx_binding=$cf_with_cxx
3238 echo "$as_me:3238: result: $cf_with_cxx_binding" >&5
3239 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3241 echo "$as_me:3241: checking if you want to build with Ada95" >&5
3242 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3244 # Check whether --with-ada or --without-ada was given.
3245 if test "${with_ada+set}" = set; then
3247 cf_with_ada=$withval
3251 echo "$as_me:3251: result: $cf_with_ada" >&5
3252 echo "${ECHO_T}$cf_with_ada" >&6
3254 echo "$as_me:3254: checking if you want to install manpages" >&5
3255 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3257 # Check whether --with-manpages or --without-manpages was given.
3258 if test "${with_manpages+set}" = set; then
3259 withval="$with_manpages"
3260 cf_with_manpages=$withval
3262 cf_with_manpages=yes
3264 echo "$as_me:3264: result: $cf_with_manpages" >&5
3265 echo "${ECHO_T}$cf_with_manpages" >&6
3267 echo "$as_me:3267: checking if you want to build programs such as tic" >&5
3268 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3270 # Check whether --with-progs or --without-progs was given.
3271 if test "${with_progs+set}" = set; then
3272 withval="$with_progs"
3273 cf_with_progs=$withval
3277 echo "$as_me:3277: result: $cf_with_progs" >&5
3278 echo "${ECHO_T}$cf_with_progs" >&6
3280 echo "$as_me:3280: checking if you want to build test-programs" >&5
3281 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3283 # Check whether --with-tests or --without-tests was given.
3284 if test "${with_tests+set}" = set; then
3285 withval="$with_tests"
3286 cf_with_tests=$withval
3290 echo "$as_me:3290: result: $cf_with_tests" >&5
3291 echo "${ECHO_T}$cf_with_tests" >&6
3293 echo "$as_me:3293: checking if you wish to install curses.h" >&5
3294 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3296 # Check whether --with-curses-h or --without-curses-h was given.
3297 if test "${with_curses_h+set}" = set; then
3298 withval="$with_curses_h"
3299 with_curses_h=$withval
3303 echo "$as_me:3303: result: $with_curses_h" >&5
3304 echo "${ECHO_T}$with_curses_h" >&6
3306 modules_to_build="ncurses"
3307 if test "X$cf_with_progs" != Xno ; then
3308 modules_to_build="$modules_to_build progs tack"
3310 modules_to_build="$modules_to_build panel menu form"
3312 test "$program_prefix" != NONE &&
3313 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3314 # Use a double $ so make ignores it.
3315 test "$program_suffix" != NONE &&
3316 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3317 # Double any \ or $. echo might interpret backslashes.
3318 # By default was `s,x,x', remove it if useless.
3319 cat <<\_ACEOF >conftest.sed
3320 s/[\\$]/&&/g;s/;s,x,x,$//
3322 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3325 for ac_prog in mawk gawk nawk awk
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy $ac_prog; ac_word=$2
3329 echo "$as_me:3329: checking for $ac_word" >&5
3330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3331 if test "${ac_cv_prog_AWK+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 if test -n "$AWK"; then
3335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3337 ac_save_IFS=$IFS; IFS=$ac_path_separator
3339 for ac_dir in $ac_dummy; do
3341 test -z "$ac_dir" && ac_dir=.
3342 $as_executable_p "$ac_dir/$ac_word" || continue
3343 ac_cv_prog_AWK="$ac_prog"
3344 echo "$as_me:3344: found $ac_dir/$ac_word" >&5
3351 if test -n "$AWK"; then
3352 echo "$as_me:3352: result: $AWK" >&5
3353 echo "${ECHO_T}$AWK" >&6
3355 echo "$as_me:3355: result: no" >&5
3356 echo "${ECHO_T}no" >&6
3359 test -n "$AWK" && break
3362 test -z "$AWK" && { { echo "$as_me:3362: error: No awk program found" >&5
3363 echo "$as_me: error: No awk program found" >&2;}
3364 { (exit 1); exit 1; }; }
3366 echo "$as_me:3366: checking for egrep" >&5
3367 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3368 if test "${ac_cv_prog_egrep+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3372 then ac_cv_prog_egrep='grep -E'
3373 else ac_cv_prog_egrep='egrep'
3376 echo "$as_me:3376: result: $ac_cv_prog_egrep" >&5
3377 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3378 EGREP=$ac_cv_prog_egrep
3380 test -z "$EGREP" && { { echo "$as_me:3380: error: No egrep program found" >&5
3381 echo "$as_me: error: No egrep program found" >&2;}
3382 { (exit 1); exit 1; }; }
3384 # Find a good install program. We prefer a C program (faster),
3385 # so one script is as good as another. But avoid the broken or
3386 # incompatible versions:
3387 # SysV /etc/install, /usr/sbin/install
3388 # SunOS /usr/etc/install
3389 # IRIX /sbin/install
3391 # AmigaOS /C/install, which installs bootblocks on floppy discs
3392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3395 # ./install, which can be erroneously created by make from ./install.sh.
3396 echo "$as_me:3396: checking for a BSD compatible install" >&5
3397 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3398 if test -z "$INSTALL"; then
3399 if test "${ac_cv_path_install+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 ac_save_IFS=$IFS; IFS=$ac_path_separator
3403 for ac_dir in $PATH; do
3405 # Account for people who put trailing slashes in PATH elements.
3407 / | ./ | .// | /cC/* \
3408 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3411 # OSF1 and SCO ODT 3.0 have their own names for install.
3412 # Don't use installbsd from OSF since it installs stuff as root
3414 for ac_prog in ginstall scoinst install; do
3415 if $as_executable_p "$ac_dir/$ac_prog"; then
3416 if test $ac_prog = install &&
3417 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3418 # AIX install. It has an incompatible calling convention.
3420 elif test $ac_prog = install &&
3421 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3422 # program-specific install script used by HP pwplus--don't use.
3425 ac_cv_path_install="$ac_dir/$ac_prog -c"
3435 if test "${ac_cv_path_install+set}" = set; then
3436 INSTALL=$ac_cv_path_install
3438 # As a last resort, use the slow shell script. We don't cache a
3439 # path for INSTALL within a source directory, because that will
3440 # break other packages using the cache if that directory is
3441 # removed, or if the path is relative.
3442 INSTALL=$ac_install_sh
3445 echo "$as_me:3445: result: $INSTALL" >&5
3446 echo "${ECHO_T}$INSTALL" >&6
3448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3449 # It thinks the first close brace ends the variable substitution.
3450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3460 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3461 test -z "$cf_dir" && cf_dir=.
3462 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3466 for ac_prog in tdlint lint alint splint lclint
3468 # Extract the first word of "$ac_prog", so it can be a program name with args.
3469 set dummy $ac_prog; ac_word=$2
3470 echo "$as_me:3470: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_prog_LINT+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 if test -n "$LINT"; then
3476 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3478 ac_save_IFS=$IFS; IFS=$ac_path_separator
3480 for ac_dir in $ac_dummy; do
3482 test -z "$ac_dir" && ac_dir=.
3483 $as_executable_p "$ac_dir/$ac_word" || continue
3484 ac_cv_prog_LINT="$ac_prog"
3485 echo "$as_me:3485: found $ac_dir/$ac_word" >&5
3491 LINT=$ac_cv_prog_LINT
3492 if test -n "$LINT"; then
3493 echo "$as_me:3493: result: $LINT" >&5
3494 echo "${ECHO_T}$LINT" >&6
3496 echo "$as_me:3496: result: no" >&5
3497 echo "${ECHO_T}no" >&6
3500 test -n "$LINT" && break
3503 echo "$as_me:3503: checking whether ln -s works" >&5
3504 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3506 if test "$LN_S" = "ln -s"; then
3507 echo "$as_me:3507: result: yes" >&5
3508 echo "${ECHO_T}yes" >&6
3510 echo "$as_me:3510: result: no, using $LN_S" >&5
3511 echo "${ECHO_T}no, using $LN_S" >&6
3514 echo "$as_me:3514: checking if $LN_S -f options work" >&5
3515 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3517 rm -f conf$$.src conf$$dst
3519 echo first >conf$$.src
3520 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3525 rm -f conf$$.dst conf$$src
3526 echo "$as_me:3526: result: $cf_prog_ln_sf" >&5
3527 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3529 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3531 echo "$as_me:3531: checking for long file names" >&5
3532 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3533 if test "${ac_cv_sys_long_file_names+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 ac_cv_sys_long_file_names=yes
3537 # Test for long file names in all the places we know might matter:
3538 # . the current directory, where building will happen
3539 # $prefix/lib where we will be installing things
3540 # $exec_prefix/lib likewise
3541 # eval it to expand exec_prefix.
3542 # $TMPDIR if set, where it might want to write temporary files
3543 # if $TMPDIR is not set:
3544 # /tmp where it might want to write temporary files
3547 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3550 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3552 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3553 test -d $ac_dir || continue
3554 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3555 ac_xdir=$ac_dir/cf$$
3556 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3557 ac_tf1=$ac_xdir/conftest9012345
3558 ac_tf2=$ac_xdir/conftest9012346
3559 (echo 1 >$ac_tf1) 2>/dev/null
3560 (echo 2 >$ac_tf2) 2>/dev/null
3561 ac_val=`cat $ac_tf1 2>/dev/null`
3562 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3563 ac_cv_sys_long_file_names=no
3564 rm -rf $ac_xdir 2>/dev/null
3567 rm -rf $ac_xdir 2>/dev/null
3570 echo "$as_me:3570: result: $ac_cv_sys_long_file_names" >&5
3571 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3572 if test $ac_cv_sys_long_file_names = yes; then
3574 cat >>confdefs.h <<\EOF
3575 #define HAVE_LONG_FILE_NAMES 1
3580 # if we find pkg-config, check if we should install the ".pc" files.
3582 echo "$as_me:3582: checking if you want to use pkg-config" >&5
3583 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3585 # Check whether --with-pkg-config or --without-pkg-config was given.
3586 if test "${with_pkg_config+set}" = set; then
3587 withval="$with_pkg_config"
3588 cf_pkg_config=$withval
3592 echo "$as_me:3592: result: $cf_pkg_config" >&5
3593 echo "${ECHO_T}$cf_pkg_config" >&6
3595 case $cf_pkg_config in #(vi
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3604 echo "$as_me:3604: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3614 ac_save_IFS=$IFS; IFS=$ac_path_separator
3616 for ac_dir in $ac_dummy; do
3618 test -z "$ac_dir" && ac_dir=.
3619 if $as_executable_p "$ac_dir/$ac_word"; then
3620 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3621 echo "$as_me:3621: found $ac_dir/$ac_word" >&5
3629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3631 if test -n "$PKG_CONFIG"; then
3632 echo "$as_me:3632: result: $PKG_CONFIG" >&5
3633 echo "${ECHO_T}$PKG_CONFIG" >&6
3635 echo "$as_me:3635: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3640 if test -z "$ac_cv_path_PKG_CONFIG"; then
3641 ac_pt_PKG_CONFIG=$PKG_CONFIG
3642 # Extract the first word of "pkg-config", so it can be a program name with args.
3643 set dummy pkg-config; ac_word=$2
3644 echo "$as_me:3644: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 case $ac_pt_PKG_CONFIG in
3651 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3654 ac_save_IFS=$IFS; IFS=$ac_path_separator
3656 for ac_dir in $ac_dummy; do
3658 test -z "$ac_dir" && ac_dir=.
3659 if $as_executable_p "$ac_dir/$ac_word"; then
3660 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3661 echo "$as_me:3661: found $ac_dir/$ac_word" >&5
3666 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3670 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3672 if test -n "$ac_pt_PKG_CONFIG"; then
3673 echo "$as_me:3673: result: $ac_pt_PKG_CONFIG" >&5
3674 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3676 echo "$as_me:3676: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3680 PKG_CONFIG=$ac_pt_PKG_CONFIG
3682 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3691 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3692 if test "$PKG_CONFIG" != none ; then
3694 if test "x$prefix" != xNONE; then
3695 cf_path_syntax="$prefix"
3697 cf_path_syntax="$ac_default_prefix"
3700 case ".$PKG_CONFIG" in #(vi
3701 .\$\(*\)*|.\'*\'*) #(vi
3705 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3708 eval PKG_CONFIG="$PKG_CONFIG"
3709 case ".$PKG_CONFIG" in #(vi
3711 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3716 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3719 { { echo "$as_me:3719: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3720 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3721 { (exit 1); exit 1; }; }
3727 if test "$PKG_CONFIG" != none ; then
3728 echo "$as_me:3728: checking for $PKG_CONFIG library directory" >&5
3729 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3731 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3732 if test "${with_pkg_config_libdir+set}" = set; then
3733 withval="$with_pkg_config_libdir"
3734 PKG_CONFIG_LIBDIR=$withval
3736 PKG_CONFIG_LIBDIR=yes
3739 case x$PKG_CONFIG_LIBDIR in #(vi
3743 # look for the library directory using the same prefix as the executable
3744 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3745 case x`(arch) 2>/dev/null` in #(vi
3747 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3749 if test -d $cf_config/pkgconfig
3751 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3757 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3765 echo "$as_me:3765: result: $PKG_CONFIG_LIBDIR" >&5
3766 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3769 if test "$PKG_CONFIG" != none ; then
3770 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3771 echo "$as_me:3771: checking if we should install .pc files for $PKG_CONFIG" >&5
3772 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3774 # Check whether --enable-pc-files or --disable-pc-files was given.
3775 if test "${enable_pc_files+set}" = set; then
3776 enableval="$enable_pc_files"
3777 enable_pc_files=$enableval
3781 echo "$as_me:3781: result: $enable_pc_files" >&5
3782 echo "${ECHO_T}$enable_pc_files" >&6
3783 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3785 { echo "$as_me:3785: WARNING: did not find $PKG_CONFIG library" >&5
3786 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3792 echo "$as_me:3792: checking if we should assume mixed-case filenames" >&5
3793 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3795 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3796 if test "${enable_mixed_case+set}" = set; then
3797 enableval="$enable_mixed_case"
3798 enable_mixedcase=$enableval
3800 enable_mixedcase=auto
3802 echo "$as_me:3802: result: $enable_mixedcase" >&5
3803 echo "${ECHO_T}$enable_mixedcase" >&6
3804 if test "$enable_mixedcase" = "auto" ; then
3806 echo "$as_me:3806: checking if filesystem supports mixed-case filenames" >&5
3807 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3808 if test "${cf_cv_mixedcase+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 if test "$cross_compiling" = yes ; then
3813 case $target_alias in #(vi
3814 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3822 rm -f conftest CONFTEST
3824 if test -f CONFTEST ; then
3829 rm -f conftest CONFTEST
3833 echo "$as_me:3833: result: $cf_cv_mixedcase" >&5
3834 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3835 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3836 #define MIXEDCASE_FILENAMES 1
3840 cf_cv_mixedcase=$enable_mixedcase
3841 if test "$enable_mixedcase" = "yes" ; then
3842 cat >>confdefs.h <<\EOF
3843 #define MIXEDCASE_FILENAMES 1
3849 # do this after mixed-case option (tags/TAGS is not as important as tic).
3850 echo "$as_me:3850: checking whether ${MAKE-make} sets \${MAKE}" >&5
3851 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3852 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3853 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 cat >conftest.make <<\EOF
3858 @echo 'ac_maketemp="${MAKE}"'
3860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3862 if test -n "$ac_maketemp"; then
3863 eval ac_cv_prog_make_${ac_make}_set=yes
3865 eval ac_cv_prog_make_${ac_make}_set=no
3869 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3870 echo "$as_me:3870: result: yes" >&5
3871 echo "${ECHO_T}yes" >&6
3874 echo "$as_me:3874: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3876 SET_MAKE="MAKE=${MAKE-make}"
3879 for ac_prog in exctags ctags
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 echo "$as_me:3883: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_CTAGS+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$CTAGS"; then
3889 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3891 ac_save_IFS=$IFS; IFS=$ac_path_separator
3893 for ac_dir in $ac_dummy; do
3895 test -z "$ac_dir" && ac_dir=.
3896 $as_executable_p "$ac_dir/$ac_word" || continue
3897 ac_cv_prog_CTAGS="$ac_prog"
3898 echo "$as_me:3898: found $ac_dir/$ac_word" >&5
3904 CTAGS=$ac_cv_prog_CTAGS
3905 if test -n "$CTAGS"; then
3906 echo "$as_me:3906: result: $CTAGS" >&5
3907 echo "${ECHO_T}$CTAGS" >&6
3909 echo "$as_me:3909: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3913 test -n "$CTAGS" && break
3916 for ac_prog in exetags etags
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:3920: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_ETAGS+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if test -n "$ETAGS"; then
3926 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3928 ac_save_IFS=$IFS; IFS=$ac_path_separator
3930 for ac_dir in $ac_dummy; do
3932 test -z "$ac_dir" && ac_dir=.
3933 $as_executable_p "$ac_dir/$ac_word" || continue
3934 ac_cv_prog_ETAGS="$ac_prog"
3935 echo "$as_me:3935: found $ac_dir/$ac_word" >&5
3941 ETAGS=$ac_cv_prog_ETAGS
3942 if test -n "$ETAGS"; then
3943 echo "$as_me:3943: result: $ETAGS" >&5
3944 echo "${ECHO_T}$ETAGS" >&6
3946 echo "$as_me:3946: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 test -n "$ETAGS" && break
3953 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3954 set dummy ${CTAGS:-ctags}; ac_word=$2
3955 echo "$as_me:3955: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 if test -n "$MAKE_LOWER_TAGS"; then
3961 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3963 ac_save_IFS=$IFS; IFS=$ac_path_separator
3965 for ac_dir in $ac_dummy; do
3967 test -z "$ac_dir" && ac_dir=.
3968 $as_executable_p "$ac_dir/$ac_word" || continue
3969 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3970 echo "$as_me:3970: found $ac_dir/$ac_word" >&5
3974 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3977 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3978 if test -n "$MAKE_LOWER_TAGS"; then
3979 echo "$as_me:3979: result: $MAKE_LOWER_TAGS" >&5
3980 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3982 echo "$as_me:3982: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3986 if test "$cf_cv_mixedcase" = yes ; then
3987 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3988 set dummy ${ETAGS:-etags}; ac_word=$2
3989 echo "$as_me:3989: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 if test -n "$MAKE_UPPER_TAGS"; then
3995 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3997 ac_save_IFS=$IFS; IFS=$ac_path_separator
3999 for ac_dir in $ac_dummy; do
4001 test -z "$ac_dir" && ac_dir=.
4002 $as_executable_p "$ac_dir/$ac_word" || continue
4003 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4004 echo "$as_me:4004: found $ac_dir/$ac_word" >&5
4008 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4011 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4012 if test -n "$MAKE_UPPER_TAGS"; then
4013 echo "$as_me:4013: result: $MAKE_UPPER_TAGS" >&5
4014 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4016 echo "$as_me:4016: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4024 if test "$MAKE_UPPER_TAGS" = yes ; then
4030 if test "$MAKE_LOWER_TAGS" = yes ; then
4036 echo "$as_me:4036: checking for makeflags variable" >&5
4037 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4038 if test "${cf_cv_makeflags+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4045 cat >cf_makeflags.tmp <<CF_EOF
4048 @ echo '.$cf_option'
4050 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4051 case "$cf_result" in
4053 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4054 case "$cf_result" in
4055 .*CC=*) cf_cv_makeflags=
4057 *) cf_cv_makeflags=$cf_option
4063 *) echo "given option \"$cf_option\", no match \"$cf_result\""
4067 rm -f cf_makeflags.tmp
4070 echo "$as_me:4070: result: $cf_cv_makeflags" >&5
4071 echo "${ECHO_T}$cf_cv_makeflags" >&6
4073 if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4075 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4076 echo "$as_me:4076: checking for $ac_word" >&5
4077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4078 if test "${ac_cv_prog_RANLIB+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 if test -n "$RANLIB"; then
4082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4084 ac_save_IFS=$IFS; IFS=$ac_path_separator
4086 for ac_dir in $ac_dummy; do
4088 test -z "$ac_dir" && ac_dir=.
4089 $as_executable_p "$ac_dir/$ac_word" || continue
4090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4091 echo "$as_me:4091: found $ac_dir/$ac_word" >&5
4097 RANLIB=$ac_cv_prog_RANLIB
4098 if test -n "$RANLIB"; then
4099 echo "$as_me:4099: result: $RANLIB" >&5
4100 echo "${ECHO_T}$RANLIB" >&6
4102 echo "$as_me:4102: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4107 if test -z "$ac_cv_prog_RANLIB"; then
4108 ac_ct_RANLIB=$RANLIB
4109 # Extract the first word of "ranlib", so it can be a program name with args.
4110 set dummy ranlib; ac_word=$2
4111 echo "$as_me:4111: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test -n "$ac_ct_RANLIB"; then
4117 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4119 ac_save_IFS=$IFS; IFS=$ac_path_separator
4121 for ac_dir in $ac_dummy; do
4123 test -z "$ac_dir" && ac_dir=.
4124 $as_executable_p "$ac_dir/$ac_word" || continue
4125 ac_cv_prog_ac_ct_RANLIB="ranlib"
4126 echo "$as_me:4126: found $ac_dir/$ac_word" >&5
4130 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4134 if test -n "$ac_ct_RANLIB"; then
4135 echo "$as_me:4135: result: $ac_ct_RANLIB" >&5
4136 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4138 echo "$as_me:4138: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4142 RANLIB=$ac_ct_RANLIB
4144 RANLIB="$ac_cv_prog_RANLIB"
4147 if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4149 set dummy ${ac_tool_prefix}ld; ac_word=$2
4150 echo "$as_me:4150: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_prog_LD+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test -n "$LD"; then
4156 ac_cv_prog_LD="$LD" # Let the user override the test.
4158 ac_save_IFS=$IFS; IFS=$ac_path_separator
4160 for ac_dir in $ac_dummy; do
4162 test -z "$ac_dir" && ac_dir=.
4163 $as_executable_p "$ac_dir/$ac_word" || continue
4164 ac_cv_prog_LD="${ac_tool_prefix}ld"
4165 echo "$as_me:4165: found $ac_dir/$ac_word" >&5
4172 if test -n "$LD"; then
4173 echo "$as_me:4173: result: $LD" >&5
4174 echo "${ECHO_T}$LD" >&6
4176 echo "$as_me:4176: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4181 if test -z "$ac_cv_prog_LD"; then
4183 # Extract the first word of "ld", so it can be a program name with args.
4184 set dummy ld; ac_word=$2
4185 echo "$as_me:4185: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 if test -n "$ac_ct_LD"; then
4191 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4193 ac_save_IFS=$IFS; IFS=$ac_path_separator
4195 for ac_dir in $ac_dummy; do
4197 test -z "$ac_dir" && ac_dir=.
4198 $as_executable_p "$ac_dir/$ac_word" || continue
4199 ac_cv_prog_ac_ct_LD="ld"
4200 echo "$as_me:4200: found $ac_dir/$ac_word" >&5
4204 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4207 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4208 if test -n "$ac_ct_LD"; then
4209 echo "$as_me:4209: result: $ac_ct_LD" >&5
4210 echo "${ECHO_T}$ac_ct_LD" >&6
4212 echo "$as_me:4212: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4223 set dummy ${ac_tool_prefix}ar; ac_word=$2
4224 echo "$as_me:4224: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226 if test "${ac_cv_prog_AR+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if test -n "$AR"; then
4230 ac_cv_prog_AR="$AR" # Let the user override the test.
4232 ac_save_IFS=$IFS; IFS=$ac_path_separator
4234 for ac_dir in $ac_dummy; do
4236 test -z "$ac_dir" && ac_dir=.
4237 $as_executable_p "$ac_dir/$ac_word" || continue
4238 ac_cv_prog_AR="${ac_tool_prefix}ar"
4239 echo "$as_me:4239: found $ac_dir/$ac_word" >&5
4246 if test -n "$AR"; then
4247 echo "$as_me:4247: result: $AR" >&5
4248 echo "${ECHO_T}$AR" >&6
4250 echo "$as_me:4250: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4255 if test -z "$ac_cv_prog_AR"; then
4257 # Extract the first word of "ar", so it can be a program name with args.
4258 set dummy ar; ac_word=$2
4259 echo "$as_me:4259: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$ac_ct_AR"; then
4265 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4267 ac_save_IFS=$IFS; IFS=$ac_path_separator
4269 for ac_dir in $ac_dummy; do
4271 test -z "$ac_dir" && ac_dir=.
4272 $as_executable_p "$ac_dir/$ac_word" || continue
4273 ac_cv_prog_ac_ct_AR="ar"
4274 echo "$as_me:4274: found $ac_dir/$ac_word" >&5
4278 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4282 if test -n "$ac_ct_AR"; then
4283 echo "$as_me:4283: result: $ac_ct_AR" >&5
4284 echo "${ECHO_T}$ac_ct_AR" >&6
4286 echo "$as_me:4286: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4295 if test -n "$ac_tool_prefix"; then
4296 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4297 set dummy ${ac_tool_prefix}ar; ac_word=$2
4298 echo "$as_me:4298: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4300 if test "${ac_cv_prog_AR+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$AR"; then
4304 ac_cv_prog_AR="$AR" # Let the user override the test.
4306 ac_save_IFS=$IFS; IFS=$ac_path_separator
4308 for ac_dir in $ac_dummy; do
4310 test -z "$ac_dir" && ac_dir=.
4311 $as_executable_p "$ac_dir/$ac_word" || continue
4312 ac_cv_prog_AR="${ac_tool_prefix}ar"
4313 echo "$as_me:4313: found $ac_dir/$ac_word" >&5
4320 if test -n "$AR"; then
4321 echo "$as_me:4321: result: $AR" >&5
4322 echo "${ECHO_T}$AR" >&6
4324 echo "$as_me:4324: result: no" >&5
4325 echo "${ECHO_T}no" >&6
4329 if test -z "$ac_cv_prog_AR"; then
4331 # Extract the first word of "ar", so it can be a program name with args.
4332 set dummy ar; ac_word=$2
4333 echo "$as_me:4333: checking for $ac_word" >&5
4334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 if test -n "$ac_ct_AR"; then
4339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4341 ac_save_IFS=$IFS; IFS=$ac_path_separator
4343 for ac_dir in $ac_dummy; do
4345 test -z "$ac_dir" && ac_dir=.
4346 $as_executable_p "$ac_dir/$ac_word" || continue
4347 ac_cv_prog_ac_ct_AR="ar"
4348 echo "$as_me:4348: found $ac_dir/$ac_word" >&5
4352 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4356 if test -n "$ac_ct_AR"; then
4357 echo "$as_me:4357: result: $ac_ct_AR" >&5
4358 echo "${ECHO_T}$ac_ct_AR" >&6
4360 echo "$as_me:4360: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4369 echo "$as_me:4369: checking for options to update archives" >&5
4370 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4371 if test "${cf_cv_ar_flags+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 cf_cv_ar_flags=unknown
4376 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4379 # check if $ARFLAGS already contains this choice
4380 if test "x$ARFLAGS" != "x" ; then
4381 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4382 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4388 rm -f conftest.$ac_cv_objext
4391 cat >conftest.$ac_ext <<EOF
4392 #line 4392 "configure"
4393 int testdata[3] = { 123, 456, 789 };
4395 if { (eval echo "$as_me:4395: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4398 echo "$as_me:4398: \$? = $ac_status" >&5
4399 (exit $ac_status); } ; then
4400 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4401 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4402 if test -f conftest.a ; then
4403 cf_cv_ar_flags=$cf_ar_flags
4407 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4409 echo "${as_me:-configure}:4409: testing cannot compile test-program ..." 1>&5
4414 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4417 echo "$as_me:4417: result: $cf_cv_ar_flags" >&5
4418 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4420 if test -n "$ARFLAGS" ; then
4421 if test -n "$cf_cv_ar_flags" ; then
4422 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4425 ARFLAGS=$cf_cv_ar_flags
4428 echo "$as_me:4428: checking if you have specified an install-prefix" >&5
4429 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4431 # Check whether --with-install-prefix or --without-install-prefix was given.
4432 if test "${with_install_prefix+set}" = set; then
4433 withval="$with_install_prefix"
4434 case "$withval" in #(vi
4437 *) DESTDIR="$withval"
4441 echo "$as_me:4441: result: $DESTDIR" >&5
4442 echo "${ECHO_T}$DESTDIR" >&6
4444 ###############################################################################
4446 # If we're cross-compiling, allow the user to override the tools and their
4447 # options. The configure script is oriented toward identifying the host
4448 # compiler, etc., but we need a build compiler to generate parts of the source.
4450 if test "$cross_compiling" = yes ; then
4452 # defaults that we might want to override
4453 : ${BUILD_CFLAGS:=''}
4454 : ${BUILD_CPPFLAGS:=''}
4455 : ${BUILD_LDFLAGS:=''}
4457 : ${BUILD_EXEEXT:='$x'}
4458 : ${BUILD_OBJEXT:='o'}
4460 # Check whether --with-build-cc or --without-build-cc was given.
4461 if test "${with_build_cc+set}" = set; then
4462 withval="$with_build_cc"
4465 for ac_prog in gcc cc cl
4467 # Extract the first word of "$ac_prog", so it can be a program name with args.
4468 set dummy $ac_prog; ac_word=$2
4469 echo "$as_me:4469: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if test -n "$BUILD_CC"; then
4475 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477 ac_save_IFS=$IFS; IFS=$ac_path_separator
4479 for ac_dir in $ac_dummy; do
4481 test -z "$ac_dir" && ac_dir=.
4482 $as_executable_p "$ac_dir/$ac_word" || continue
4483 ac_cv_prog_BUILD_CC="$ac_prog"
4484 echo "$as_me:4484: found $ac_dir/$ac_word" >&5
4490 BUILD_CC=$ac_cv_prog_BUILD_CC
4491 if test -n "$BUILD_CC"; then
4492 echo "$as_me:4492: result: $BUILD_CC" >&5
4493 echo "${ECHO_T}$BUILD_CC" >&6
4495 echo "$as_me:4495: result: no" >&5
4496 echo "${ECHO_T}no" >&6
4499 test -n "$BUILD_CC" && break
4503 echo "$as_me:4503: checking for native build C compiler" >&5
4504 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4505 echo "$as_me:4505: result: $BUILD_CC" >&5
4506 echo "${ECHO_T}$BUILD_CC" >&6
4508 echo "$as_me:4508: checking for native build C preprocessor" >&5
4509 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4511 # Check whether --with-build-cpp or --without-build-cpp was given.
4512 if test "${with_build_cpp+set}" = set; then
4513 withval="$with_build_cpp"
4514 BUILD_CPP="$withval"
4516 BUILD_CPP='${BUILD_CC} -E'
4518 echo "$as_me:4518: result: $BUILD_CPP" >&5
4519 echo "${ECHO_T}$BUILD_CPP" >&6
4521 echo "$as_me:4521: checking for native build C flags" >&5
4522 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4524 # Check whether --with-build-cflags or --without-build-cflags was given.
4525 if test "${with_build_cflags+set}" = set; then
4526 withval="$with_build_cflags"
4527 BUILD_CFLAGS="$withval"
4529 echo "$as_me:4529: result: $BUILD_CFLAGS" >&5
4530 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4532 echo "$as_me:4532: checking for native build C preprocessor-flags" >&5
4533 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4535 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4536 if test "${with_build_cppflags+set}" = set; then
4537 withval="$with_build_cppflags"
4538 BUILD_CPPFLAGS="$withval"
4540 echo "$as_me:4540: result: $BUILD_CPPFLAGS" >&5
4541 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4543 echo "$as_me:4543: checking for native build linker-flags" >&5
4544 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4546 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4547 if test "${with_build_ldflags+set}" = set; then
4548 withval="$with_build_ldflags"
4549 BUILD_LDFLAGS="$withval"
4551 echo "$as_me:4551: result: $BUILD_LDFLAGS" >&5
4552 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4554 echo "$as_me:4554: checking for native build linker-libraries" >&5
4555 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4557 # Check whether --with-build-libs or --without-build-libs was given.
4558 if test "${with_build_libs+set}" = set; then
4559 withval="$with_build_libs"
4560 BUILD_LIBS="$withval"
4562 echo "$as_me:4562: result: $BUILD_LIBS" >&5
4563 echo "${ECHO_T}$BUILD_LIBS" >&6
4565 # this assumes we're on Unix.
4569 : ${BUILD_CC:='${CC}'}
4571 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4572 { { echo "$as_me:4572: error: Cross-build requires two compilers.
4573 Use --with-build-cc to specify the native compiler." >&5
4574 echo "$as_me: error: Cross-build requires two compilers.
4575 Use --with-build-cc to specify the native compiler." >&2;}
4576 { (exit 1); exit 1; }; }
4580 : ${BUILD_CC:='${CC}'}
4581 : ${BUILD_CPP:='${CPP}'}
4582 : ${BUILD_CFLAGS:='${CFLAGS}'}
4583 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4584 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4585 : ${BUILD_LIBS:='${LIBS}'}
4586 : ${BUILD_EXEEXT:='$x'}
4587 : ${BUILD_OBJEXT:='o'}
4590 ###############################################################################
4592 ### Options to allow the user to specify the set of libraries which are used.
4593 ### Use "--without-normal --with-shared" to allow the default model to be
4594 ### shared, for example.
4597 echo "$as_me:4597: checking if libtool -version-number should be used" >&5
4598 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4600 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4601 if test "${enable_libtool_version+set}" = set; then
4602 enableval="$enable_libtool_version"
4603 test "$enableval" != no && enableval=yes
4604 if test "$enableval" != "yes" ; then
4605 cf_libtool_version=no
4607 cf_libtool_version=yes
4611 cf_libtool_version=yes
4614 echo "$as_me:4614: result: $cf_libtool_version" >&5
4615 echo "${ECHO_T}$cf_libtool_version" >&6
4617 if test "$cf_libtool_version" = yes ; then
4618 LIBTOOL_VERSION="-version-number"
4620 LIBTOOL_VERSION="-version-info"
4625 # common library maintenance symbols that are convenient for libtool scripts:
4626 LIB_CREATE='${AR} -cr'
4627 LIB_OBJECT='${OBJECTS}'
4631 # symbols used to prop libtool up to enable it to determine what it should be
4639 echo "$as_me:4639: checking if you want to build libraries with libtool" >&5
4640 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4642 # Check whether --with-libtool or --without-libtool was given.
4643 if test "${with_libtool+set}" = set; then
4644 withval="$with_libtool"
4645 with_libtool=$withval
4649 echo "$as_me:4649: result: $with_libtool" >&5
4650 echo "${ECHO_T}$with_libtool" >&6
4651 if test "$with_libtool" != "no"; then
4653 if test "$with_libtool" != "yes" ; then
4655 if test "x$prefix" != xNONE; then
4656 cf_path_syntax="$prefix"
4658 cf_path_syntax="$ac_default_prefix"
4661 case ".$with_libtool" in #(vi
4662 .\$\(*\)*|.\'*\'*) #(vi
4666 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4669 eval with_libtool="$with_libtool"
4670 case ".$with_libtool" in #(vi
4672 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4677 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4680 { { echo "$as_me:4680: error: expected a pathname, not \"$with_libtool\"" >&5
4681 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4682 { (exit 1); exit 1; }; }
4686 LIBTOOL=$with_libtool
4688 # Extract the first word of "libtool", so it can be a program name with args.
4689 set dummy libtool; ac_word=$2
4690 echo "$as_me:4690: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4700 ac_save_IFS=$IFS; IFS=$ac_path_separator
4702 for ac_dir in $ac_dummy; do
4704 test -z "$ac_dir" && ac_dir=.
4705 if $as_executable_p "$ac_dir/$ac_word"; then
4706 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4707 echo "$as_me:4707: found $ac_dir/$ac_word" >&5
4715 LIBTOOL=$ac_cv_path_LIBTOOL
4717 if test -n "$LIBTOOL"; then
4718 echo "$as_me:4718: result: $LIBTOOL" >&5
4719 echo "${ECHO_T}$LIBTOOL" >&6
4721 echo "$as_me:4721: result: no" >&5
4722 echo "${ECHO_T}no" >&6
4726 if test -z "$LIBTOOL" ; then
4727 { { echo "$as_me:4727: error: Cannot find libtool" >&5
4728 echo "$as_me: error: Cannot find libtool" >&2;}
4729 { (exit 1); exit 1; }; }
4731 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4732 LIB_OBJECT='${OBJECTS:.o=.lo}'
4734 LIB_CLEAN='${LIBTOOL} --mode=clean'
4735 LIB_COMPILE='${LIBTOOL} --mode=compile'
4736 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4737 LIB_INSTALL='${LIBTOOL} --mode=install'
4738 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4741 # Show the version of libtool
4742 echo "$as_me:4742: checking version of libtool" >&5
4743 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4745 # Save the version in a cache variable - this is not entirely a good
4746 # thing, but the version string from libtool is very ugly, and for
4747 # bug reports it might be useful to have the original string. "("
4748 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.].*//'`
4749 echo "$as_me:4749: result: $cf_cv_libtool_version" >&5
4750 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4751 if test -z "$cf_cv_libtool_version" ; then
4752 { { echo "$as_me:4752: error: This is not GNU libtool" >&5
4753 echo "$as_me: error: This is not GNU libtool" >&2;}
4754 { (exit 1); exit 1; }; }
4757 # special hack to add -no-undefined (which libtool should do for itself)
4759 case "$cf_cv_system_name" in #(vi
4760 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4761 LT_UNDEF=-no-undefined
4765 # special hack to add --tag option for C++ compiler
4766 case $cf_cv_libtool_version in #(vi
4767 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4768 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4769 LIBTOOL="$LIBTOOL --tag=CC"
4772 LIBTOOL_CXX="$LIBTOOL"
4780 test -z "$LIBTOOL" && ECHO_LT=
4782 if test "$with_libtool" != "no" ; then
4784 cf_list_models="$cf_list_models libtool"
4788 echo "$as_me:4788: checking if you want to build shared libraries" >&5
4789 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4791 # Check whether --with-shared or --without-shared was given.
4792 if test "${with_shared+set}" = set; then
4793 withval="$with_shared"
4794 with_shared=$withval
4798 echo "$as_me:4798: result: $with_shared" >&5
4799 echo "${ECHO_T}$with_shared" >&6
4800 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4802 echo "$as_me:4802: checking if you want to build static libraries" >&5
4803 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4805 # Check whether --with-normal or --without-normal was given.
4806 if test "${with_normal+set}" = set; then
4807 withval="$with_normal"
4808 with_normal=$withval
4812 echo "$as_me:4812: result: $with_normal" >&5
4813 echo "${ECHO_T}$with_normal" >&6
4814 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4816 echo "$as_me:4816: checking if you want to build debug libraries" >&5
4817 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4819 # Check whether --with-debug or --without-debug was given.
4820 if test "${with_debug+set}" = set; then
4821 withval="$with_debug"
4826 echo "$as_me:4826: result: $with_debug" >&5
4827 echo "${ECHO_T}$with_debug" >&6
4828 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4830 echo "$as_me:4830: checking if you want to build profiling libraries" >&5
4831 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4833 # Check whether --with-profile or --without-profile was given.
4834 if test "${with_profile+set}" = set; then
4835 withval="$with_profile"
4836 with_profile=$withval
4840 echo "$as_me:4840: result: $with_profile" >&5
4841 echo "${ECHO_T}$with_profile" >&6
4842 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4846 ###############################################################################
4848 echo "$as_me:4848: checking for specified models" >&5
4849 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4850 test -z "$cf_list_models" && cf_list_models=normal
4851 test "$with_libtool" != "no" && cf_list_models=libtool
4852 echo "$as_me:4852: result: $cf_list_models" >&5