2 # From configure.in Revision: 1.539 .
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-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
741 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
742 --disable-big-core assume machine has little memory
743 --disable-big-strings assume compiler has only standard-size strings
744 --enable-termcap compile in termcap fallback support
745 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
746 --enable-getcap fast termcap load, no xrefs to terminfo
747 --enable-getcap-cache cache translated termcaps in ~/.terminfo
748 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
749 --disable-root-environ restrict environment when running as root
750 --enable-symlinks make tic use symbolic links not hard links
751 --enable-broken_linker compile with broken-linker support code
752 --enable-bsdpad recognize BSD-style prefix padding
753 --enable-widec compile with wide-char/UTF-8 code
754 --disable-lp64 allow chtype to be long (ignore _LP64)
755 --disable-largefile omit support for large files
756 --disable-tparm-varargs compile tparm() without varargs interface
757 --disable-tic-depends link tic library without explicit dependency on ncurses library
758 --with-bool=TYPE override fallback type of bool variable
759 --with-caps=alt compile with alternate Caps file
760 --with-chtype=TYPE override type of chtype
761 --with-ospeed=TYPE override type of ospeed variable
762 --with-mmask-t=TYPE override type of mmask_t
763 --with-ccharw-max=XXX override size CCHARW_MAX
764 --with-rcs-ids compile-in RCS identifiers
765 Options to Specify How Manpages are Installed:
766 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
767 optionally formatted/catonly, e.g., gzip,formatted
768 --with-manpage-renames specify manpage-renaming
769 --with-manpage-aliases specify manpage-aliases using .so
770 --with-manpage-symlinks specify manpage-aliases using symlinks
771 --with-manpage-tbl specify manpage processing with tbl
773 --disable-ext-funcs disable function-extensions
774 --enable-sp-funcs enable experimental SCREEN-extensions
775 --enable-term-driver enable experimental terminal-driver
776 --enable-const compile with extra/non-standard const
777 --enable-ext-colors compile for 256-color support
778 --enable-ext-mouse compile for extended mouse-encoding
779 --enable-no-padding compile with $NCURSES_NO_PADDING code
780 --enable-signed-char compile using signed Boolean's in term.h
781 --enable-sigwinch compile with SIGWINCH handler
782 --enable-tcap-names compile with user-definable terminal capabilities
784 --without-develop disable development options
785 --enable-hard-tabs compile with hard-tabs code
786 --enable-xmc-glitch compile with support for xmc (magic-cookie)
788 --disable-assumed-color do not assume anything about default-colors
789 --disable-hashmap compile without hashmap scrolling-optimization
790 --enable-colorfgbg compile-in experimental $COLORFGBG code
791 --enable-interop compile-in experimental interop bindings
792 --with-pthread use POSIX thread library
793 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
794 --enable-weak-symbols enable weak-symbols for pthreads
795 --enable-reentrant compile with experimental reentrant code
796 --with-wrap-prefix=XXX override prefix used for public variables
797 --enable-safe-sprintf compile with experimental safe-sprintf code
798 --disable-scroll-hints compile without scroll-hints code
799 --enable-wgetch-events compile with experimental wgetch-events code
800 Testing/development Options:
801 --enable-echo build: display "compiling" commands (default)
802 --enable-warnings build: turn on GCC compiler warnings
803 --enable-assertions test: turn on generation of assertion code
804 --with-dmalloc test: use Gray Watson's dmalloc library
805 --with-dbmalloc test: use Conor Cahill's dbmalloc library
806 --with-valgrind test: use valgrind
807 --disable-leaks test: free permanent memory, analyze leaks
808 --enable-expanded test: generate functions for certain macros
809 --disable-macros test: use functions rather than macros
810 --with-trace test: add trace() function to all models of ncurses
811 Ada95 Binding Options:
812 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
813 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
814 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
815 --with-ada-sharedlib=XX build Ada95 shared-library
817 Some influential environment variables:
818 CC C compiler command
819 CFLAGS C compiler flags
820 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
821 nonstandard directory <lib dir>
822 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
823 headers in a nonstandard directory <include dir>
825 CXX C++ compiler command
826 CXXFLAGS C++ compiler flags
827 CXXCPP C++ preprocessor
829 Use these variables to override the choices made by `configure' or to help
830 it to find libraries and programs with nonstandard names/locations.
835 if test "$ac_init_help" = "recursive"; then
836 # If there are subdirs, report their specific --help.
838 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
840 # A "../" for each directory in /$ac_subdir.
841 ac_dots=`echo $ac_subdir |
842 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
845 .) # No --srcdir option. We are building in place.
846 ac_sub_srcdir=$srcdir ;;
847 [\\/]* | ?:[\\/]* ) # Absolute path.
848 ac_sub_srcdir=$srcdir/$ac_subdir ;;
850 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
853 # Check for guested configure; otherwise get Cygnus style configure.
854 if test -f $ac_sub_srcdir/configure.gnu; then
856 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
857 elif test -f $ac_sub_srcdir/configure; then
859 $SHELL $ac_sub_srcdir/configure --help=recursive
860 elif test -f $ac_sub_srcdir/configure.ac ||
861 test -f $ac_sub_srcdir/configure.in; then
865 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
871 test -n "$ac_init_help" && exit 0
872 if $ac_init_version; then
875 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
876 Free Software Foundation, Inc.
877 This configure script is free software; the Free Software Foundation
878 gives unlimited permission to copy, distribute and modify it.
884 This file contains any messages produced by compilers while
885 running configure, to aid debugging if configure makes a mistake.
887 It was created by $as_me, which was
888 generated by GNU Autoconf 2.52.20101002. Invocation command line was
899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
911 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
928 # Keep a trace of the command line.
929 # Strip out --no-create and --no-recursion so they do not pile up.
930 # Also quote any args containing shell meta-characters.
936 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937 | --no-cr | --no-c) ;;
938 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
940 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
941 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
942 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
944 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
947 # Get rid of the leading space.
950 # When interrupted or exit'd, cleanup temporary files, and complete
951 # config.log. We remove comments because anyway the quotes in there
952 # would cause problems or look ugly.
954 # Save into config.log some information that might help in debugging.
956 echo "## ----------------- ##" >&5
957 echo "## Cache variables. ##" >&5
958 echo "## ----------------- ##" >&5
960 # The following way of writing the cache mishandles newlines in values,
963 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
966 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
971 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
975 sed "/^$/d" confdefs.h >conftest.log
976 if test -s conftest.log; then
978 echo "## ------------ ##" >&5
979 echo "## confdefs.h. ##" >&5
980 echo "## ------------ ##" >&5
985 test "$ac_signal" != 0 &&
986 echo "$as_me: caught signal $ac_signal" >&5
987 echo "$as_me: exit $exit_status" >&5
988 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
991 for ac_signal in 1 2 13 15; do
992 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
996 # confdefs.h avoids OS command line length limits that DEFS can exceed.
997 rm -rf conftest* confdefs.h
998 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1001 # Let the site file select an alternate cache file if it wants to.
1002 # Prefer explicitly selected file to automatically selected ones.
1003 if test -z "$CONFIG_SITE"; then
1004 if test "x$prefix" != xNONE; then
1005 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1007 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1010 for ac_site_file in $CONFIG_SITE; do
1011 if test -r "$ac_site_file"; then
1012 { echo "$as_me:1012: loading site script $ac_site_file" >&5
1013 echo "$as_me: loading site script $ac_site_file" >&6;}
1014 cat "$ac_site_file" >&5
1019 if test -r "$cache_file"; then
1020 # Some versions of bash will fail to source /dev/null (special
1021 # files actually), so we avoid doing that.
1022 if test -f "$cache_file"; then
1023 { echo "$as_me:1023: loading cache $cache_file" >&5
1024 echo "$as_me: loading cache $cache_file" >&6;}
1026 [\\/]* | ?:[\\/]* ) . $cache_file;;
1027 *) . ./$cache_file;;
1031 { echo "$as_me:1031: creating cache $cache_file" >&5
1032 echo "$as_me: creating cache $cache_file" >&6;}
1036 # Check that the precious variables saved in the cache have kept the same
1038 ac_cache_corrupted=false
1039 for ac_var in `(set) 2>&1 |
1040 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1041 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1042 eval ac_new_set=\$ac_env_${ac_var}_set
1043 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1044 eval ac_new_val="\$ac_env_${ac_var}_value"
1045 case $ac_old_set,$ac_new_set in
1047 { echo "$as_me:1047: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1048 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1049 ac_cache_corrupted=: ;;
1051 { echo "$as_me:1051: error: \`$ac_var' was not set in the previous run" >&5
1052 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1053 ac_cache_corrupted=: ;;
1056 if test "x$ac_old_val" != "x$ac_new_val"; then
1057 { echo "$as_me:1057: error: \`$ac_var' has changed since the previous run:" >&5
1058 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1059 { echo "$as_me:1059: former value: $ac_old_val" >&5
1060 echo "$as_me: former value: $ac_old_val" >&2;}
1061 { echo "$as_me:1061: current value: $ac_new_val" >&5
1062 echo "$as_me: current value: $ac_new_val" >&2;}
1063 ac_cache_corrupted=:
1066 # Pass precious variables to config.status. It doesn't matter if
1067 # we pass some twice (in addition to the command line arguments).
1068 if test "$ac_new_set" = set; then
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1072 ac_configure_args="$ac_configure_args '$ac_arg'"
1074 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1079 if $ac_cache_corrupted; then
1080 { echo "$as_me:1080: error: changes in the environment can compromise the build" >&5
1081 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1082 { { echo "$as_me:1082: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1083 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1084 { (exit 1); exit 1; }; }
1088 ac_cpp='$CPP $CPPFLAGS'
1089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1092 ac_main_return=return
1094 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1095 *c*,-n*) ECHO_N= ECHO_C='
1097 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1098 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1100 echo "#! $SHELL" >conftest.sh
1101 echo "exit 0" >>conftest.sh
1102 chmod +x conftest.sh
1103 if { (echo "$as_me:1103: PATH=\".;.\"; conftest.sh") >&5
1104 (PATH=".;."; conftest.sh) 2>&5
1106 echo "$as_me:1106: \$? = $ac_status" >&5
1107 (exit $ac_status); }; then
1108 ac_path_separator=';'
1112 PATH_SEPARATOR="$ac_path_separator"
1115 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1119 echo "$as_me:1119: checking for egrep" >&5
1120 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1121 if test "${ac_cv_prog_egrep+set}" = set; then
1122 echo $ECHO_N "(cached) $ECHO_C" >&6
1124 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1125 then ac_cv_prog_egrep='grep -E'
1126 else ac_cv_prog_egrep='egrep'
1129 echo "$as_me:1129: result: $ac_cv_prog_egrep" >&5
1130 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1131 EGREP=$ac_cv_prog_egrep
1133 test -z "$EGREP" && { { echo "$as_me:1133: error: No egrep program found" >&5
1134 echo "$as_me: error: No egrep program found" >&2;}
1135 { (exit 1); exit 1; }; }
1137 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1138 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1139 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1140 cf_cv_abi_version=${NCURSES_MAJOR}
1141 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1142 cf_cv_timestamp=`date`
1143 echo "$as_me:1143: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1144 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1146 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1148 # Check whether --with-rel-version or --without-rel-version was given.
1149 if test "${with_rel_version+set}" = set; then
1150 withval="$with_rel_version"
1151 { echo "$as_me:1151: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1152 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1153 cf_cv_rel_version=$withval
1156 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1157 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1159 if test -n "$NCURSES_MAJOR" ; then
1160 case $NCURSES_MAJOR in #(vi
1164 { { echo "$as_me:1164: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1165 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1166 { (exit 1); exit 1; }; }
1170 { { echo "$as_me:1170: error: Release major-version value is empty" >&5
1171 echo "$as_me: error: Release major-version value is empty" >&2;}
1172 { (exit 1); exit 1; }; }
1175 if test -n "$NCURSES_MINOR" ; then
1176 case $NCURSES_MINOR in #(vi
1180 { { echo "$as_me:1180: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1181 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1182 { (exit 1); exit 1; }; }
1186 { { echo "$as_me:1186: error: Release minor-version value is empty" >&5
1187 echo "$as_me: error: Release minor-version value is empty" >&2;}
1188 { (exit 1); exit 1; }; }
1191 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1193 # Check whether --with-abi-version or --without-abi-version was given.
1194 if test "${with_abi_version+set}" = set; then
1195 withval="$with_abi_version"
1196 { echo "$as_me:1196: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1197 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1198 cf_cv_abi_version=$withval
1201 if test -n "$cf_cv_abi_version" ; then
1202 case $cf_cv_abi_version in #(vi
1206 { { echo "$as_me:1206: error: ABI version is not a number: $cf_cv_abi_version" >&5
1207 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1208 { (exit 1); exit 1; }; }
1212 { { echo "$as_me:1212: error: ABI version value is empty" >&5
1213 echo "$as_me: error: ABI version value is empty" >&2;}
1214 { (exit 1); exit 1; }; }
1218 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1219 if test -f $ac_dir/install-sh; then
1221 ac_install_sh="$ac_aux_dir/install-sh -c"
1223 elif test -f $ac_dir/install.sh; then
1225 ac_install_sh="$ac_aux_dir/install.sh -c"
1227 elif test -f $ac_dir/shtool; then
1229 ac_install_sh="$ac_aux_dir/shtool install -c"
1233 if test -z "$ac_aux_dir"; then
1234 { { echo "$as_me:1234: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1235 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1236 { (exit 1); exit 1; }; }
1238 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1242 # Make sure we can run config.sub.
1243 $ac_config_sub sun4 >/dev/null 2>&1 ||
1244 { { echo "$as_me:1244: error: cannot run $ac_config_sub" >&5
1245 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1246 { (exit 1); exit 1; }; }
1248 echo "$as_me:1248: checking build system type" >&5
1249 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1250 if test "${ac_cv_build+set}" = set; then
1251 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 ac_cv_build_alias=$build_alias
1254 test -z "$ac_cv_build_alias" &&
1255 ac_cv_build_alias=`$ac_config_guess`
1256 test -z "$ac_cv_build_alias" &&
1257 { { echo "$as_me:1257: error: cannot guess build type; you must specify one" >&5
1258 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1259 { (exit 1); exit 1; }; }
1260 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1261 { { echo "$as_me:1261: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1262 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1263 { (exit 1); exit 1; }; }
1266 echo "$as_me:1266: result: $ac_cv_build" >&5
1267 echo "${ECHO_T}$ac_cv_build" >&6
1269 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1270 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1271 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1273 echo "$as_me:1273: checking host system type" >&5
1274 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1275 if test "${ac_cv_host+set}" = set; then
1276 echo $ECHO_N "(cached) $ECHO_C" >&6
1278 ac_cv_host_alias=$host_alias
1279 test -z "$ac_cv_host_alias" &&
1280 ac_cv_host_alias=$ac_cv_build_alias
1281 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1282 { { echo "$as_me:1282: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1283 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1284 { (exit 1); exit 1; }; }
1287 echo "$as_me:1287: result: $ac_cv_host" >&5
1288 echo "${ECHO_T}$ac_cv_host" >&6
1290 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1291 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1292 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1294 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1295 echo "$as_me:1295: checking target system type" >&5
1296 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1297 if test "${ac_cv_target+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_target_alias=$target_alias
1301 test "x$ac_cv_target_alias" = "x" &&
1302 ac_cv_target_alias=$ac_cv_host_alias
1303 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1304 { { echo "$as_me:1304: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1305 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1306 { (exit 1); exit 1; }; }
1309 echo "$as_me:1309: result: $ac_cv_target" >&5
1310 echo "${ECHO_T}$ac_cv_target" >&6
1311 target=$ac_cv_target
1312 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1313 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1314 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1316 # The aliases save the names the user supplied, while $host etc.
1317 # will get canonicalized.
1318 test -n "$target_alias" &&
1319 test "$program_prefix$program_suffix$program_transform_name" = \
1321 program_prefix=${target_alias}-
1322 system_name="$host_os"
1324 system_name="`(uname -s -r) 2>/dev/null`"
1325 if test -z "$system_name" ; then
1326 system_name="`(hostname) 2>/dev/null`"
1329 test -n "$system_name" && cat >>confdefs.h <<EOF
1330 #define SYSTEM_NAME "$system_name"
1333 if test "${cf_cv_system_name+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 cf_cv_system_name="$system_name"
1339 test -z "$system_name" && system_name="$cf_cv_system_name"
1340 test -n "$cf_cv_system_name" && echo "$as_me:1340: result: Configuring for $cf_cv_system_name" >&5
1341 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1343 if test ".$system_name" != ".$cf_cv_system_name" ; then
1344 echo "$as_me:1344: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1345 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1346 { { echo "$as_me:1346: error: \"Please remove config.cache and try again.\"" >&5
1347 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1348 { (exit 1); exit 1; }; }
1351 # Check whether --with-system-type or --without-system-type was given.
1352 if test "${with_system_type+set}" = set; then
1353 withval="$with_system_type"
1354 { echo "$as_me:1354: WARNING: overriding system type to $withval" >&5
1355 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1356 cf_cv_system_name=$withval
1359 ### Save the given $CFLAGS to allow user-override.
1360 cf_user_CFLAGS="$CFLAGS"
1362 ### Default install-location
1364 echo "$as_me:1364: checking for prefix" >&5
1365 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1366 if test "x$prefix" = "xNONE" ; then
1367 case "$cf_cv_system_name" in
1368 # non-vendor systems don't have a conflict
1369 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1372 *) prefix=$ac_default_prefix
1376 echo "$as_me:1376: result: $prefix" >&5
1377 echo "${ECHO_T}$prefix" >&6
1379 if test "x$prefix" = "xNONE" ; then
1380 echo "$as_me:1380: checking for default include-directory" >&5
1381 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1382 test -n "$verbose" && echo 1>&6
1385 $includedir/ncurses \
1387 $prefix/include/ncurses \
1388 /usr/local/include \
1389 /usr/local/include/ncurses \
1391 /usr/include/ncurses
1393 cf_dir=`eval echo $cf_symbol`
1394 if test -f $cf_dir/curses.h ; then
1395 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1396 includedir="$cf_symbol"
1397 test -n "$verbose" && echo $ac_n " found " 1>&6
1401 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1403 echo "$as_me:1403: result: $includedir" >&5
1404 echo "${ECHO_T}$includedir" >&6
1407 ### Checks for programs.
1409 ac_cpp='$CPP $CPPFLAGS'
1410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1413 ac_main_return=return
1414 if test -n "$ac_tool_prefix"; then
1415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1417 echo "$as_me:1417: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_CC+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 if test -n "$CC"; then
1423 ac_cv_prog_CC="$CC" # Let the user override the test.
1425 ac_save_IFS=$IFS; IFS=$ac_path_separator
1427 for ac_dir in $ac_dummy; do
1429 test -z "$ac_dir" && ac_dir=.
1430 $as_executable_p "$ac_dir/$ac_word" || continue
1431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5
1439 if test -n "$CC"; then
1440 echo "$as_me:1440: result: $CC" >&5
1441 echo "${ECHO_T}$CC" >&6
1443 echo "$as_me:1443: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1448 if test -z "$ac_cv_prog_CC"; then
1450 # Extract the first word of "gcc", so it can be a program name with args.
1451 set dummy gcc; ac_word=$2
1452 echo "$as_me:1452: checking for $ac_word" >&5
1453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 if test -n "$ac_ct_CC"; then
1458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1460 ac_save_IFS=$IFS; IFS=$ac_path_separator
1462 for ac_dir in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir=.
1465 $as_executable_p "$ac_dir/$ac_word" || continue
1466 ac_cv_prog_ac_ct_CC="gcc"
1467 echo "$as_me:1467: found $ac_dir/$ac_word" >&5
1473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1474 if test -n "$ac_ct_CC"; then
1475 echo "$as_me:1475: result: $ac_ct_CC" >&5
1476 echo "${ECHO_T}$ac_ct_CC" >&6
1478 echo "$as_me:1478: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1487 if test -z "$CC"; then
1488 if test -n "$ac_tool_prefix"; then
1489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1490 set dummy ${ac_tool_prefix}cc; ac_word=$2
1491 echo "$as_me:1491: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_prog_CC+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 if test -n "$CC"; then
1497 ac_cv_prog_CC="$CC" # Let the user override the test.
1499 ac_save_IFS=$IFS; IFS=$ac_path_separator
1501 for ac_dir in $ac_dummy; do
1503 test -z "$ac_dir" && ac_dir=.
1504 $as_executable_p "$ac_dir/$ac_word" || continue
1505 ac_cv_prog_CC="${ac_tool_prefix}cc"
1506 echo "$as_me:1506: found $ac_dir/$ac_word" >&5
1513 if test -n "$CC"; then
1514 echo "$as_me:1514: result: $CC" >&5
1515 echo "${ECHO_T}$CC" >&6
1517 echo "$as_me:1517: result: no" >&5
1518 echo "${ECHO_T}no" >&6
1522 if test -z "$ac_cv_prog_CC"; then
1524 # Extract the first word of "cc", so it can be a program name with args.
1525 set dummy cc; ac_word=$2
1526 echo "$as_me:1526: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$ac_ct_CC"; then
1532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1534 ac_save_IFS=$IFS; IFS=$ac_path_separator
1536 for ac_dir in $ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 $as_executable_p "$ac_dir/$ac_word" || continue
1540 ac_cv_prog_ac_ct_CC="cc"
1541 echo "$as_me:1541: found $ac_dir/$ac_word" >&5
1547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548 if test -n "$ac_ct_CC"; then
1549 echo "$as_me:1549: result: $ac_ct_CC" >&5
1550 echo "${ECHO_T}$ac_ct_CC" >&6
1552 echo "$as_me:1552: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1562 if test -z "$CC"; then
1563 # Extract the first word of "cc", so it can be a program name with args.
1564 set dummy cc; ac_word=$2
1565 echo "$as_me:1565: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1574 ac_save_IFS=$IFS; IFS=$ac_path_separator
1576 for ac_dir in $ac_dummy; do
1578 test -z "$ac_dir" && ac_dir=.
1579 $as_executable_p "$ac_dir/$ac_word" || continue
1580 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1581 ac_prog_rejected=yes
1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5
1589 if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1593 if test $# != 0; then
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1598 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1606 if test -n "$CC"; then
1607 echo "$as_me:1607: result: $CC" >&5
1608 echo "${ECHO_T}$CC" >&6
1610 echo "$as_me:1610: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1615 if test -z "$CC"; then
1616 if test -n "$ac_tool_prefix"; then
1619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1621 echo "$as_me:1621: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 ac_save_IFS=$IFS; IFS=$ac_path_separator
1631 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 $as_executable_p "$ac_dir/$ac_word" || continue
1635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1636 echo "$as_me:1636: found $ac_dir/$ac_word" >&5
1643 if test -n "$CC"; then
1644 echo "$as_me:1644: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:1647: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1651 test -n "$CC" && break
1654 if test -z "$CC"; then
1658 # Extract the first word of "$ac_prog", so it can be a program name with args.
1659 set dummy $ac_prog; ac_word=$2
1660 echo "$as_me:1660: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 ac_save_IFS=$IFS; IFS=$ac_path_separator
1670 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 $as_executable_p "$ac_dir/$ac_word" || continue
1674 ac_cv_prog_ac_ct_CC="$ac_prog"
1675 echo "$as_me:1675: found $ac_dir/$ac_word" >&5
1681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1682 if test -n "$ac_ct_CC"; then
1683 echo "$as_me:1683: result: $ac_ct_CC" >&5
1684 echo "${ECHO_T}$ac_ct_CC" >&6
1686 echo "$as_me:1686: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 test -n "$ac_ct_CC" && break
1698 test -z "$CC" && { { echo "$as_me:1698: error: no acceptable cc found in \$PATH" >&5
1699 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1700 { (exit 1); exit 1; }; }
1702 # Provide some information about the compiler.
1703 echo "$as_me:1703:" \
1704 "checking for C compiler version" >&5
1705 ac_compiler=`set X $ac_compile; echo $2`
1706 { (eval echo "$as_me:1706: \"$ac_compiler --version </dev/null >&5\"") >&5
1707 (eval $ac_compiler --version </dev/null >&5) 2>&5
1709 echo "$as_me:1709: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1711 { (eval echo "$as_me:1711: \"$ac_compiler -v </dev/null >&5\"") >&5
1712 (eval $ac_compiler -v </dev/null >&5) 2>&5
1714 echo "$as_me:1714: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1716 { (eval echo "$as_me:1716: \"$ac_compiler -V </dev/null >&5\"") >&5
1717 (eval $ac_compiler -V </dev/null >&5) 2>&5
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); }
1722 cat >conftest.$ac_ext <<_ACEOF
1723 #line 1723 "configure"
1724 #include "confdefs.h"
1734 ac_clean_files_save=$ac_clean_files
1735 ac_clean_files="$ac_clean_files a.out a.exe"
1736 # Try to create an executable without -o first, disregard a.out.
1737 # It will help us diagnose broken compilers, and finding out an intuition
1739 echo "$as_me:1739: checking for C compiler default output" >&5
1740 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1741 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1742 if { (eval echo "$as_me:1742: \"$ac_link_default\"") >&5
1743 (eval $ac_link_default) 2>&5
1745 echo "$as_me:1745: \$? = $ac_status" >&5
1746 (exit $ac_status); }; then
1747 # Find the output, starting from the most likely. This scheme is
1748 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1750 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1751 ls a.out conftest 2>/dev/null;
1752 ls a.* conftest.* 2>/dev/null`; do
1754 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1755 a.out ) # We found the default executable, but exeext='' is most
1758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1766 echo "$as_me: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 { { echo "$as_me:1768: error: C compiler cannot create executables" >&5
1769 echo "$as_me: error: C compiler cannot create executables" >&2;}
1770 { (exit 77); exit 77; }; }
1773 ac_exeext=$ac_cv_exeext
1774 echo "$as_me:1774: result: $ac_file" >&5
1775 echo "${ECHO_T}$ac_file" >&6
1777 # Check the compiler produces executables we can run. If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:1779: checking whether the C compiler works" >&5
1780 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782 # If not cross compiling, check that we can run a simple program.
1783 if test "$cross_compiling" != yes; then
1784 if { ac_try='./$ac_file'
1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 if test "$cross_compiling" = maybe; then
1795 { { echo "$as_me:1795: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&2;}
1799 { (exit 1); exit 1; }; }
1803 echo "$as_me:1803: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1806 rm -f a.out a.exe conftest$ac_cv_exeext
1807 ac_clean_files=$ac_clean_files_save
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:1810: checking whether we are cross compiling" >&5
1811 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1812 echo "$as_me:1812: result: $cross_compiling" >&5
1813 echo "${ECHO_T}$cross_compiling" >&6
1815 echo "$as_me:1815: checking for executable suffix" >&5
1816 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1817 if { (eval echo "$as_me:1817: \"$ac_link\"") >&5
1818 (eval $ac_link) 2>&5
1820 echo "$as_me:1820: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1824 # work properly (i.e., refer to `conftest.exe'), while it won't with
1826 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1828 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 { { echo "$as_me:1836: error: cannot compute EXEEXT: cannot compile and link" >&5
1837 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1838 { (exit 1); exit 1; }; }
1841 rm -f conftest$ac_cv_exeext
1842 echo "$as_me:1842: result: $ac_cv_exeext" >&5
1843 echo "${ECHO_T}$ac_cv_exeext" >&6
1845 rm -f conftest.$ac_ext
1846 EXEEXT=$ac_cv_exeext
1848 echo "$as_me:1848: checking for object suffix" >&5
1849 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1850 if test "${ac_cv_objext+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line 1854 "configure"
1855 #include "confdefs.h"
1865 rm -f conftest.o conftest.obj
1866 if { (eval echo "$as_me:1866: \"$ac_compile\"") >&5
1867 (eval $ac_compile) 2>&5
1869 echo "$as_me:1869: \$? = $ac_status" >&5
1870 (exit $ac_status); }; then
1871 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1873 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1874 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1879 echo "$as_me: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 { { echo "$as_me:1881: error: cannot compute OBJEXT: cannot compile" >&5
1882 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1883 { (exit 1); exit 1; }; }
1886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1888 echo "$as_me:1888: result: $ac_cv_objext" >&5
1889 echo "${ECHO_T}$ac_cv_objext" >&6
1890 OBJEXT=$ac_cv_objext
1892 echo "$as_me:1892: checking whether we are using the GNU C compiler" >&5
1893 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1894 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 cat >conftest.$ac_ext <<_ACEOF
1898 #line 1898 "configure"
1899 #include "confdefs.h"
1912 rm -f conftest.$ac_objext
1913 if { (eval echo "$as_me:1913: \"$ac_compile\"") >&5
1914 (eval $ac_compile) 2>&5
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); } &&
1918 { ac_try='test -s conftest.$ac_objext'
1919 { (eval echo "$as_me:1919: \"$ac_try\"") >&5
1922 echo "$as_me:1922: \$? = $ac_status" >&5
1923 (exit $ac_status); }; }; then
1926 echo "$as_me: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1930 rm -f conftest.$ac_objext conftest.$ac_ext
1931 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1934 echo "$as_me:1934: result: $ac_cv_c_compiler_gnu" >&5
1935 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1936 GCC=`test $ac_compiler_gnu = yes && echo yes`
1937 ac_test_CFLAGS=${CFLAGS+set}
1938 ac_save_CFLAGS=$CFLAGS
1940 echo "$as_me:1940: checking whether $CC accepts -g" >&5
1941 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1942 if test "${ac_cv_prog_cc_g+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 cat >conftest.$ac_ext <<_ACEOF
1946 #line 1946 "configure"
1947 #include "confdefs.h"
1957 rm -f conftest.$ac_objext
1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
1959 (eval $ac_compile) 2>&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit $ac_status); } &&
1963 { ac_try='test -s conftest.$ac_objext'
1964 { (eval echo "$as_me:1964: \"$ac_try\"") >&5
1967 echo "$as_me:1967: \$? = $ac_status" >&5
1968 (exit $ac_status); }; }; then
1971 echo "$as_me: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1975 rm -f conftest.$ac_objext conftest.$ac_ext
1977 echo "$as_me:1977: result: $ac_cv_prog_cc_g" >&5
1978 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1979 if test "$ac_test_CFLAGS" = set; then
1980 CFLAGS=$ac_save_CFLAGS
1981 elif test $ac_cv_prog_cc_g = yes; then
1982 if test "$GCC" = yes; then
1988 if test "$GCC" = yes; then
1994 # Some people use a C++ compiler to compile C. Since we use `exit',
1995 # in C++ we need to declare it. In case someone uses the same compiler
1996 # for both compiling C and C++ we need to have the C++ compiler decide
1997 # the declaration of exit, since it's the most demanding environment.
1998 cat >conftest.$ac_ext <<_ACEOF
2003 rm -f conftest.$ac_objext
2004 if { (eval echo "$as_me:2004: \"$ac_compile\"") >&5
2005 (eval $ac_compile) 2>&5
2007 echo "$as_me:2007: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:2010: \"$ac_try\"") >&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 for ac_declaration in \
2017 '#include <stdlib.h>' \
2018 'extern "C" void std::exit (int) throw (); using std::exit;' \
2019 'extern "C" void std::exit (int); using std::exit;' \
2020 'extern "C" void exit (int) throw ();' \
2021 'extern "C" void exit (int);' \
2024 cat >conftest.$ac_ext <<_ACEOF
2025 #line 2025 "configure"
2026 #include "confdefs.h"
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:2038: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2041 echo "$as_me:2041: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:2044: \"$ac_try\"") >&5
2047 echo "$as_me:2047: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2051 echo "$as_me: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2055 rm -f conftest.$ac_objext conftest.$ac_ext
2056 cat >conftest.$ac_ext <<_ACEOF
2057 #line 2057 "configure"
2058 #include "confdefs.h"
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:2069: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>&5
2072 echo "$as_me:2072: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try='test -s conftest.$ac_objext'
2075 { (eval echo "$as_me:2075: \"$ac_try\"") >&5
2078 echo "$as_me:2078: \$? = $ac_status" >&5
2079 (exit $ac_status); }; }; then
2082 echo "$as_me: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2085 rm -f conftest.$ac_objext conftest.$ac_ext
2088 if test -n "$ac_declaration"; then
2089 echo '#ifdef __cplusplus' >>confdefs.h
2090 echo $ac_declaration >>confdefs.h
2091 echo '#endif' >>confdefs.h
2095 echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 ac_main_return=return
2107 if test "$GCC" = yes ; then
2108 echo "$as_me:2108: checking version of $CC" >&5
2109 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2110 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2111 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2112 echo "$as_me:2112: result: $GCC_VERSION" >&5
2113 echo "${ECHO_T}$GCC_VERSION" >&6
2117 ac_cpp='$CPP $CPPFLAGS'
2118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121 ac_main_return=return
2122 echo "$as_me:2122: checking how to run the C preprocessor" >&5
2123 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2124 # On Suns, sometimes $CPP names a directory.
2125 if test -n "$CPP" && test -d "$CPP"; then
2128 if test -z "$CPP"; then
2129 if test "${ac_cv_prog_CPP+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 # Double quotes because CPP needs to be expanded
2133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2136 for ac_c_preproc_warn_flag in '' yes
2138 # Use a header file that comes with gcc, so configuring glibc
2139 # with a fresh cross-compiler works.
2140 # On the NeXT, cc -E runs the code through the compiler's parser,
2141 # not just through cpp. "Syntax error" is here to catch this case.
2142 cat >conftest.$ac_ext <<_ACEOF
2143 #line 2143 "configure"
2144 #include "confdefs.h"
2148 if { (eval echo "$as_me:2148: \"$ac_cpp conftest.$ac_ext\"") >&5
2149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2151 egrep -v '^ *\+' conftest.er1 >conftest.err
2153 cat conftest.err >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); } >/dev/null; then
2156 if test -s conftest.err; then
2157 ac_cpp_err=$ac_c_preproc_warn_flag
2164 if test -z "$ac_cpp_err"; then
2167 echo "$as_me: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2169 # Broken: fails on valid input.
2172 rm -f conftest.err conftest.$ac_ext
2174 # OK, works on sane cases. Now check whether non-existent headers
2175 # can be detected and how.
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line 2177 "configure"
2178 #include "confdefs.h"
2179 #include <ac_nonexistent.h>
2181 if { (eval echo "$as_me:2181: \"$ac_cpp conftest.$ac_ext\"") >&5
2182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2184 egrep -v '^ *\+' conftest.er1 >conftest.err
2186 cat conftest.err >&5
2187 echo "$as_me:2187: \$? = $ac_status" >&5
2188 (exit $ac_status); } >/dev/null; then
2189 if test -s conftest.err; then
2190 ac_cpp_err=$ac_c_preproc_warn_flag
2197 if test -z "$ac_cpp_err"; then
2198 # Broken: success on invalid input.
2201 echo "$as_me: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2203 # Passes both tests.
2207 rm -f conftest.err conftest.$ac_ext
2210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2211 rm -f conftest.err conftest.$ac_ext
2212 if $ac_preproc_ok; then
2224 echo "$as_me:2224: result: $CPP" >&5
2225 echo "${ECHO_T}$CPP" >&6
2227 for ac_c_preproc_warn_flag in '' yes
2229 # Use a header file that comes with gcc, so configuring glibc
2230 # with a fresh cross-compiler works.
2231 # On the NeXT, cc -E runs the code through the compiler's parser,
2232 # not just through cpp. "Syntax error" is here to catch this case.
2233 cat >conftest.$ac_ext <<_ACEOF
2234 #line 2234 "configure"
2235 #include "confdefs.h"
2239 if { (eval echo "$as_me:2239: \"$ac_cpp conftest.$ac_ext\"") >&5
2240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2242 egrep -v '^ *\+' conftest.er1 >conftest.err
2244 cat conftest.err >&5
2245 echo "$as_me:2245: \$? = $ac_status" >&5
2246 (exit $ac_status); } >/dev/null; then
2247 if test -s conftest.err; then
2248 ac_cpp_err=$ac_c_preproc_warn_flag
2255 if test -z "$ac_cpp_err"; then
2258 echo "$as_me: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2260 # Broken: fails on valid input.
2263 rm -f conftest.err conftest.$ac_ext
2265 # OK, works on sane cases. Now check whether non-existent headers
2266 # can be detected and how.
2267 cat >conftest.$ac_ext <<_ACEOF
2268 #line 2268 "configure"
2269 #include "confdefs.h"
2270 #include <ac_nonexistent.h>
2272 if { (eval echo "$as_me:2272: \"$ac_cpp conftest.$ac_ext\"") >&5
2273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2275 egrep -v '^ *\+' conftest.er1 >conftest.err
2277 cat conftest.err >&5
2278 echo "$as_me:2278: \$? = $ac_status" >&5
2279 (exit $ac_status); } >/dev/null; then
2280 if test -s conftest.err; then
2281 ac_cpp_err=$ac_c_preproc_warn_flag
2288 if test -z "$ac_cpp_err"; then
2289 # Broken: success on invalid input.
2292 echo "$as_me: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2294 # Passes both tests.
2298 rm -f conftest.err conftest.$ac_ext
2301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2302 rm -f conftest.err conftest.$ac_ext
2303 if $ac_preproc_ok; then
2306 { { echo "$as_me:2306: error: C preprocessor \"$CPP\" fails sanity check" >&5
2307 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2308 { (exit 1); exit 1; }; }
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316 ac_main_return=return
2318 if test $ac_cv_c_compiler_gnu = yes; then
2319 echo "$as_me:2319: checking whether $CC needs -traditional" >&5
2320 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2321 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 ac_pattern="Autoconf.*'x'"
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #line 2326 "configure"
2327 #include "confdefs.h"
2329 int Autoconf = TIOCGETP;
2331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2332 egrep "$ac_pattern" >/dev/null 2>&1; then
2333 ac_cv_prog_gcc_traditional=yes
2335 ac_cv_prog_gcc_traditional=no
2339 if test $ac_cv_prog_gcc_traditional = no; then
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line 2341 "configure"
2342 #include "confdefs.h"
2344 int Autoconf = TCGETA;
2346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2347 egrep "$ac_pattern" >/dev/null 2>&1; then
2348 ac_cv_prog_gcc_traditional=yes
2354 echo "$as_me:2354: result: $ac_cv_prog_gcc_traditional" >&5
2355 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2356 if test $ac_cv_prog_gcc_traditional = yes; then
2357 CC="$CC -traditional"
2361 echo "$as_me:2361: checking whether $CC understands -c and -o together" >&5
2362 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2363 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat > conftest.$ac_ext <<CF_EOF
2371 ${cf_cv_main_return:-return}(0);
2374 # We do the test twice because some compilers refuse to overwrite an
2375 # existing .o file with -o, though they will create one.
2376 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2377 if { (eval echo "$as_me:2377: \"$ac_try\"") >&5
2380 echo "$as_me:2380: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 test -f conftest2.$ac_objext && { (eval echo "$as_me:2382: \"$ac_try\"") >&5
2385 echo "$as_me:2385: \$? = $ac_status" >&5
2386 (exit $ac_status); };
2388 eval cf_cv_prog_CC_c_o=yes
2390 eval cf_cv_prog_CC_c_o=no
2395 if test $cf_cv_prog_CC_c_o = yes; then
2396 echo "$as_me:2396: result: yes" >&5
2397 echo "${ECHO_T}yes" >&6
2399 echo "$as_me:2399: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2403 echo "$as_me:2403: checking for POSIXized ISC" >&5
2404 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2405 if test -d /etc/conf/kconfig.d &&
2406 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2408 echo "$as_me:2408: result: yes" >&5
2409 echo "${ECHO_T}yes" >&6
2410 ISC=yes # If later tests want to check for ISC.
2412 cat >>confdefs.h <<\EOF
2413 #define _POSIX_SOURCE 1
2416 if test "$GCC" = yes; then
2422 echo "$as_me:2422: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2427 # This should have been defined by AC_PROG_CC
2430 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2431 # into CC. This will not help with broken scripts that wrap the compiler with
2432 # options, but eliminates a more common category of user confusion.
2433 echo "$as_me:2433: checking \$CC variable" >&5
2434 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2437 echo "$as_me:2437: result: broken" >&5
2438 echo "${ECHO_T}broken" >&6
2439 { echo "$as_me:2439: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2440 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2442 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2443 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2448 cf_new_extra_cppflags=
2450 for cf_add_cflags in $cf_flags
2452 case $cf_fix_cppflags in
2454 case $cf_add_cflags in #(vi
2455 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2456 case $cf_add_cflags in
2458 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2460 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2461 && test -z "${cf_tst_cflags}" \
2462 && cf_fix_cppflags=yes
2464 if test $cf_fix_cppflags = yes ; then
2465 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2467 elif test "${cf_tst_cflags}" = "\"'" ; then
2468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2474 *$cf_add_cflags) #(vi
2477 case $cf_add_cflags in #(vi
2479 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2481 CPPFLAGS=`echo "$CPPFLAGS" | \
2482 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2483 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2487 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2492 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2497 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2499 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2501 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2502 && test -z "${cf_tst_cflags}" \
2503 && cf_fix_cppflags=no
2508 if test -n "$cf_new_cflags" ; then
2510 CFLAGS="$CFLAGS $cf_new_cflags"
2513 if test -n "$cf_new_cppflags" ; then
2515 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2518 if test -n "$cf_new_extra_cppflags" ; then
2520 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2525 echo "$as_me:2525: result: ok" >&5
2526 echo "${ECHO_T}ok" >&6
2530 echo "$as_me:2530: checking for ${CC:-cc} option to accept ANSI C" >&5
2531 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2532 if test "${cf_cv_ansi_cc+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 cf_save_CFLAGS="$CFLAGS"
2538 cf_save_CPPFLAGS="$CPPFLAGS"
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX -qlanglvl=ansi
2542 # Ultrix and OSF/1 -std1
2543 # HP-UX -Aa -D_HPUX_SOURCE
2545 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2546 for cf_arg in "-DCC_HAS_PROTOS" \
2551 "-Aa -D_HPUX_SOURCE" \
2558 cf_new_extra_cppflags=
2560 for cf_add_cflags in $cf_arg
2562 case $cf_fix_cppflags in
2564 case $cf_add_cflags in #(vi
2565 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2566 case $cf_add_cflags in
2568 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2570 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2571 && test -z "${cf_tst_cflags}" \
2572 && cf_fix_cppflags=yes
2574 if test $cf_fix_cppflags = yes ; then
2575 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2577 elif test "${cf_tst_cflags}" = "\"'" ; then
2578 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2584 *$cf_add_cflags) #(vi
2587 case $cf_add_cflags in #(vi
2589 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2591 CPPFLAGS=`echo "$CPPFLAGS" | \
2592 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2593 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2597 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2602 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2607 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2609 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2611 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2612 && test -z "${cf_tst_cflags}" \
2613 && cf_fix_cppflags=no
2618 if test -n "$cf_new_cflags" ; then
2620 CFLAGS="$CFLAGS $cf_new_cflags"
2623 if test -n "$cf_new_cppflags" ; then
2625 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2628 if test -n "$cf_new_extra_cppflags" ; then
2630 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2633 cat >conftest.$ac_ext <<_ACEOF
2634 #line 2634 "configure"
2635 #include "confdefs.h"
2637 #ifndef CC_HAS_PROTOS
2638 #if !defined(__STDC__) || (__STDC__ != 1)
2647 int test (int i, double x);
2648 struct s1 {int (*f) (int a);};
2649 struct s2 {int (*f) (double a);};
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:2655: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>&5
2658 echo "$as_me:2658: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:2661: \"$ac_try\"") >&5
2664 echo "$as_me:2664: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 cf_cv_ansi_cc="$cf_arg"; break
2668 echo "$as_me: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2673 CFLAGS="$cf_save_CFLAGS"
2674 CPPFLAGS="$cf_save_CPPFLAGS"
2677 echo "$as_me:2677: result: $cf_cv_ansi_cc" >&5
2678 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2680 if test "$cf_cv_ansi_cc" != "no"; then
2681 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2686 cf_new_extra_cppflags=
2688 for cf_add_cflags in $cf_cv_ansi_cc
2690 case $cf_fix_cppflags in
2692 case $cf_add_cflags in #(vi
2693 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2694 case $cf_add_cflags in
2696 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2698 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2699 && test -z "${cf_tst_cflags}" \
2700 && cf_fix_cppflags=yes
2702 if test $cf_fix_cppflags = yes ; then
2703 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2705 elif test "${cf_tst_cflags}" = "\"'" ; then
2706 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2712 *$cf_add_cflags) #(vi
2715 case $cf_add_cflags in #(vi
2717 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2719 CPPFLAGS=`echo "$CPPFLAGS" | \
2720 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2721 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2725 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2730 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2735 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2737 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2739 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2740 && test -z "${cf_tst_cflags}" \
2741 && cf_fix_cppflags=no
2746 if test -n "$cf_new_cflags" ; then
2748 CFLAGS="$CFLAGS $cf_new_cflags"
2751 if test -n "$cf_new_cppflags" ; then
2753 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2756 if test -n "$cf_new_extra_cppflags" ; then
2758 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2762 cat >>confdefs.h <<\EOF
2763 #define CC_HAS_PROTOS 1
2769 if test "$cf_cv_ansi_cc" = "no"; then
2770 { { echo "$as_me:2770: error: Your compiler does not appear to recognize prototypes.
2771 You have the following choices:
2772 a. adjust your compiler options
2773 b. get an up-to-date compiler
2774 c. use a wrapper such as unproto" >&5
2775 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2776 You have the following choices:
2777 a. adjust your compiler options
2778 b. get an up-to-date compiler
2779 c. use a wrapper such as unproto" >&2;}
2780 { (exit 1); exit 1; }; }
2783 case $cf_cv_system_name in
2785 CFLAGS="$CFLAGS -Zmt"
2786 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2787 CXXFLAGS="$CXXFLAGS -Zmt"
2788 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2789 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2796 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2797 #define PROG_EXT "$PROG_EXT"
2800 if test "$cross_compiling" = yes ; then
2803 case "$cf_cv_system_name" in #(vi
2804 dragonfly*|mirbsd*|freebsd*) #(vi
2805 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2807 *) LDPATH=$PATH:/sbin:/usr/sbin
2808 # Extract the first word of "ldconfig", so it can be a program name with args.
2809 set dummy ldconfig; ac_word=$2
2810 echo "$as_me:2810: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2820 ac_save_IFS=$IFS; IFS=$ac_path_separator
2822 for ac_dir in $ac_dummy; do
2824 test -z "$ac_dir" && ac_dir=.
2825 if $as_executable_p "$ac_dir/$ac_word"; then
2826 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2827 echo "$as_me:2827: found $ac_dir/$ac_word" >&5
2835 LDCONFIG=$ac_cv_path_LDCONFIG
2837 if test -n "$LDCONFIG"; then
2838 echo "$as_me:2838: result: $LDCONFIG" >&5
2839 echo "${ECHO_T}$LDCONFIG" >&6
2841 echo "$as_me:2841: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2849 echo "$as_me:2849: checking if you want to ensure bool is consistent with C++" >&5
2850 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2852 # Check whether --with-cxx or --without-cxx was given.
2853 if test "${with_cxx+set}" = set; then
2855 cf_with_cxx=$withval
2859 echo "$as_me:2859: result: $cf_with_cxx" >&5
2860 echo "${ECHO_T}$cf_with_cxx" >&6
2861 if test "X$cf_with_cxx" = Xno ; then
2865 # with autoconf 2.13, we can change the error to a warning:
2867 ac_cpp='$CXXCPP $CPPFLAGS'
2868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2871 ac_main_return=return
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 echo "$as_me:2877: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$CXX"; then
2883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 ac_save_IFS=$IFS; IFS=$ac_path_separator
2887 for ac_dir in $ac_dummy; do
2889 test -z "$ac_dir" && ac_dir=.
2890 $as_executable_p "$ac_dir/$ac_word" || continue
2891 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2892 echo "$as_me:2892: found $ac_dir/$ac_word" >&5
2899 if test -n "$CXX"; then
2900 echo "$as_me:2900: result: $CXX" >&5
2901 echo "${ECHO_T}$CXX" >&6
2903 echo "$as_me:2903: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2907 test -n "$CXX" && break
2910 if test -z "$CXX"; then
2912 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 echo "$as_me:2916: checking for $ac_word" >&5
2917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2918 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 if test -n "$ac_ct_CXX"; then
2922 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2924 ac_save_IFS=$IFS; IFS=$ac_path_separator
2926 for ac_dir in $ac_dummy; do
2928 test -z "$ac_dir" && ac_dir=.
2929 $as_executable_p "$ac_dir/$ac_word" || continue
2930 ac_cv_prog_ac_ct_CXX="$ac_prog"
2931 echo "$as_me:2931: found $ac_dir/$ac_word" >&5
2937 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2938 if test -n "$ac_ct_CXX"; then
2939 echo "$as_me:2939: result: $ac_ct_CXX" >&5
2940 echo "${ECHO_T}$ac_ct_CXX" >&6
2942 echo "$as_me:2942: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 test -n "$ac_ct_CXX" && break
2948 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2953 # Provide some information about the compiler.
2954 echo "$as_me:2954:" \
2955 "checking for C++ compiler version" >&5
2956 ac_compiler=`set X $ac_compile; echo $2`
2957 { (eval echo "$as_me:2957: \"$ac_compiler --version </dev/null >&5\"") >&5
2958 (eval $ac_compiler --version </dev/null >&5) 2>&5
2960 echo "$as_me:2960: \$? = $ac_status" >&5
2961 (exit $ac_status); }
2962 { (eval echo "$as_me:2962: \"$ac_compiler -v </dev/null >&5\"") >&5
2963 (eval $ac_compiler -v </dev/null >&5) 2>&5
2965 echo "$as_me:2965: \$? = $ac_status" >&5
2966 (exit $ac_status); }
2967 { (eval echo "$as_me:2967: \"$ac_compiler -V </dev/null >&5\"") >&5
2968 (eval $ac_compiler -V </dev/null >&5) 2>&5
2970 echo "$as_me:2970: \$? = $ac_status" >&5
2971 (exit $ac_status); }
2973 echo "$as_me:2973: checking whether we are using the GNU C++ compiler" >&5
2974 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2975 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2993 rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:2994: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:3000: \"$ac_try\"") >&5
3003 echo "$as_me:3003: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3011 rm -f conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015 echo "$as_me:3015: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3021 echo "$as_me:3021: checking whether $CXX accepts -g" >&5
3022 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3023 if test "${ac_cv_prog_cxx_g+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.$ac_ext <<_ACEOF
3027 #line 3027 "configure"
3028 #include "confdefs.h"
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:3039: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>&5
3042 echo "$as_me:3042: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:3045: \"$ac_try\"") >&5
3048 echo "$as_me:3048: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_cv_prog_cxx_g=yes
3052 echo "$as_me: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3056 rm -f conftest.$ac_objext conftest.$ac_ext
3058 echo "$as_me:3058: result: $ac_cv_prog_cxx_g" >&5
3059 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3060 if test "$ac_test_CXXFLAGS" = set; then
3061 CXXFLAGS=$ac_save_CXXFLAGS
3062 elif test $ac_cv_prog_cxx_g = yes; then
3063 if test "$GXX" = yes; then
3069 if test "$GXX" = yes; then
3075 for ac_declaration in \
3077 '#include <stdlib.h>' \
3078 'extern "C" void std::exit (int) throw (); using std::exit;' \
3079 'extern "C" void std::exit (int); using std::exit;' \
3080 'extern "C" void exit (int) throw ();' \
3081 'extern "C" void exit (int);' \
3084 cat >conftest.$ac_ext <<_ACEOF
3085 #line 3085 "configure"
3086 #include "confdefs.h"
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:3098: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>&5
3101 echo "$as_me:3101: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:3104: \"$ac_try\"") >&5
3107 echo "$as_me:3107: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3115 rm -f conftest.$ac_objext conftest.$ac_ext
3116 cat >conftest.$ac_ext <<_ACEOF
3117 #line 3117 "configure"
3118 #include "confdefs.h"
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:3129: \"$ac_compile\"") >&5
3130 (eval $ac_compile) 2>&5
3132 echo "$as_me:3132: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (eval echo "$as_me:3135: \"$ac_try\"") >&5
3138 echo "$as_me:3138: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3142 echo "$as_me: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 rm -f conftest.$ac_objext conftest.$ac_ext
3148 if test -n "$ac_declaration"; then
3149 echo '#ifdef __cplusplus' >>confdefs.h
3150 echo $ac_declaration >>confdefs.h
3151 echo '#endif' >>confdefs.h
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 ac_main_return=return
3161 # autoconf 2.5x removed the error - by hardcoding it to g++.
3162 if test "$CXX" = "g++" ; then
3163 # Extract the first word of "g++", so it can be a program name with args.
3164 set dummy g++; ac_word=$2
3165 echo "$as_me:3165: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_path_CXX+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3175 ac_save_IFS=$IFS; IFS=$ac_path_separator
3177 for ac_dir in $ac_dummy; do
3179 test -z "$ac_dir" && ac_dir=.
3180 if $as_executable_p "$ac_dir/$ac_word"; then
3181 ac_cv_path_CXX="$ac_dir/$ac_word"
3182 echo "$as_me:3182: found $ac_dir/$ac_word" >&5
3192 if test -n "$CXX"; then
3193 echo "$as_me:3193: result: $CXX" >&5
3194 echo "${ECHO_T}$CXX" >&6
3196 echo "$as_me:3196: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3201 if test "$CXX" = "g++" ; then
3202 { echo "$as_me:3202: WARNING: ignoring hardcoded g++" >&5
3203 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3204 cf_with_cxx=no; CXX=""; GXX="";
3209 if test "$GXX" = yes; then
3210 echo "$as_me:3210: checking version of g++" >&5
3211 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3212 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3213 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3214 echo "$as_me:3214: result: $GXX_VERSION" >&5
3215 echo "${ECHO_T}$GXX_VERSION" >&6
3218 case $GXX_VERSION in
3220 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3222 { echo "$as_me:3222: WARNING: templates do not work" >&5
3223 echo "$as_me: WARNING: templates do not work" >&2;}
3227 echo "$as_me:3227: checking if you want to build C++ binding and demo" >&5
3228 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3230 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3231 if test "${with_cxx_binding+set}" = set; then
3232 withval="$with_cxx_binding"
3233 cf_with_cxx_binding=$withval
3235 cf_with_cxx_binding=$cf_with_cxx
3237 echo "$as_me:3237: result: $cf_with_cxx_binding" >&5
3238 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3240 echo "$as_me:3240: checking if you want to build with Ada95" >&5
3241 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3243 # Check whether --with-ada or --without-ada was given.
3244 if test "${with_ada+set}" = set; then
3246 cf_with_ada=$withval
3250 echo "$as_me:3250: result: $cf_with_ada" >&5
3251 echo "${ECHO_T}$cf_with_ada" >&6
3253 echo "$as_me:3253: checking if you want to install manpages" >&5
3254 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3256 # Check whether --with-manpages or --without-manpages was given.
3257 if test "${with_manpages+set}" = set; then
3258 withval="$with_manpages"
3259 cf_with_manpages=$withval
3261 cf_with_manpages=yes
3263 echo "$as_me:3263: result: $cf_with_manpages" >&5
3264 echo "${ECHO_T}$cf_with_manpages" >&6
3266 echo "$as_me:3266: checking if you want to build programs such as tic" >&5
3267 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3269 # Check whether --with-progs or --without-progs was given.
3270 if test "${with_progs+set}" = set; then
3271 withval="$with_progs"
3272 cf_with_progs=$withval
3276 echo "$as_me:3276: result: $cf_with_progs" >&5
3277 echo "${ECHO_T}$cf_with_progs" >&6
3279 echo "$as_me:3279: checking if you want to build test-programs" >&5
3280 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3282 # Check whether --with-tests or --without-tests was given.
3283 if test "${with_tests+set}" = set; then
3284 withval="$with_tests"
3285 cf_with_tests=$withval
3289 echo "$as_me:3289: result: $cf_with_tests" >&5
3290 echo "${ECHO_T}$cf_with_tests" >&6
3292 echo "$as_me:3292: checking if you wish to install curses.h" >&5
3293 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3295 # Check whether --with-curses-h or --without-curses-h was given.
3296 if test "${with_curses_h+set}" = set; then
3297 withval="$with_curses_h"
3298 with_curses_h=$withval
3302 echo "$as_me:3302: result: $with_curses_h" >&5
3303 echo "${ECHO_T}$with_curses_h" >&6
3305 modules_to_build="ncurses"
3306 if test "X$cf_with_progs" != Xno ; then
3307 modules_to_build="$modules_to_build progs tack"
3309 modules_to_build="$modules_to_build panel menu form"
3311 test "$program_prefix" != NONE &&
3312 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3313 # Use a double $ so make ignores it.
3314 test "$program_suffix" != NONE &&
3315 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3316 # Double any \ or $. echo might interpret backslashes.
3317 # By default was `s,x,x', remove it if useless.
3318 cat <<\_ACEOF >conftest.sed
3319 s/[\\$]/&&/g;s/;s,x,x,$//
3321 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3324 for ac_prog in mawk gawk nawk awk
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 echo "$as_me:3328: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_AWK+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 if test -n "$AWK"; then
3334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3336 ac_save_IFS=$IFS; IFS=$ac_path_separator
3338 for ac_dir in $ac_dummy; do
3340 test -z "$ac_dir" && ac_dir=.
3341 $as_executable_p "$ac_dir/$ac_word" || continue
3342 ac_cv_prog_AWK="$ac_prog"
3343 echo "$as_me:3343: found $ac_dir/$ac_word" >&5
3350 if test -n "$AWK"; then
3351 echo "$as_me:3351: result: $AWK" >&5
3352 echo "${ECHO_T}$AWK" >&6
3354 echo "$as_me:3354: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3358 test -n "$AWK" && break
3361 test -z "$AWK" && { { echo "$as_me:3361: error: No awk program found" >&5
3362 echo "$as_me: error: No awk program found" >&2;}
3363 { (exit 1); exit 1; }; }
3365 echo "$as_me:3365: checking for egrep" >&5
3366 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3367 if test "${ac_cv_prog_egrep+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3371 then ac_cv_prog_egrep='grep -E'
3372 else ac_cv_prog_egrep='egrep'
3375 echo "$as_me:3375: result: $ac_cv_prog_egrep" >&5
3376 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3377 EGREP=$ac_cv_prog_egrep
3379 test -z "$EGREP" && { { echo "$as_me:3379: error: No egrep program found" >&5
3380 echo "$as_me: error: No egrep program found" >&2;}
3381 { (exit 1); exit 1; }; }
3383 # Find a good install program. We prefer a C program (faster),
3384 # so one script is as good as another. But avoid the broken or
3385 # incompatible versions:
3386 # SysV /etc/install, /usr/sbin/install
3387 # SunOS /usr/etc/install
3388 # IRIX /sbin/install
3390 # AmigaOS /C/install, which installs bootblocks on floppy discs
3391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3394 # ./install, which can be erroneously created by make from ./install.sh.
3395 echo "$as_me:3395: checking for a BSD compatible install" >&5
3396 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3397 if test -z "$INSTALL"; then
3398 if test "${ac_cv_path_install+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 ac_save_IFS=$IFS; IFS=$ac_path_separator
3402 for ac_dir in $PATH; do
3404 # Account for people who put trailing slashes in PATH elements.
3406 / | ./ | .// | /cC/* \
3407 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3410 # OSF1 and SCO ODT 3.0 have their own names for install.
3411 # Don't use installbsd from OSF since it installs stuff as root
3413 for ac_prog in ginstall scoinst install; do
3414 if $as_executable_p "$ac_dir/$ac_prog"; then
3415 if test $ac_prog = install &&
3416 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3417 # AIX install. It has an incompatible calling convention.
3419 elif test $ac_prog = install &&
3420 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3421 # program-specific install script used by HP pwplus--don't use.
3424 ac_cv_path_install="$ac_dir/$ac_prog -c"
3434 if test "${ac_cv_path_install+set}" = set; then
3435 INSTALL=$ac_cv_path_install
3437 # As a last resort, use the slow shell script. We don't cache a
3438 # path for INSTALL within a source directory, because that will
3439 # break other packages using the cache if that directory is
3440 # removed, or if the path is relative.
3441 INSTALL=$ac_install_sh
3444 echo "$as_me:3444: result: $INSTALL" >&5
3445 echo "${ECHO_T}$INSTALL" >&6
3447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3448 # It thinks the first close brace ends the variable substitution.
3449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3459 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3460 test -z "$cf_dir" && cf_dir=.
3461 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3465 for ac_prog in tdlint lint alint splint lclint
3467 # Extract the first word of "$ac_prog", so it can be a program name with args.
3468 set dummy $ac_prog; ac_word=$2
3469 echo "$as_me:3469: checking for $ac_word" >&5
3470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3471 if test "${ac_cv_prog_LINT+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 if test -n "$LINT"; then
3475 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3477 ac_save_IFS=$IFS; IFS=$ac_path_separator
3479 for ac_dir in $ac_dummy; do
3481 test -z "$ac_dir" && ac_dir=.
3482 $as_executable_p "$ac_dir/$ac_word" || continue
3483 ac_cv_prog_LINT="$ac_prog"
3484 echo "$as_me:3484: found $ac_dir/$ac_word" >&5
3490 LINT=$ac_cv_prog_LINT
3491 if test -n "$LINT"; then
3492 echo "$as_me:3492: result: $LINT" >&5
3493 echo "${ECHO_T}$LINT" >&6
3495 echo "$as_me:3495: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3499 test -n "$LINT" && break
3502 echo "$as_me:3502: checking whether ln -s works" >&5
3503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3505 if test "$LN_S" = "ln -s"; then
3506 echo "$as_me:3506: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3509 echo "$as_me:3509: result: no, using $LN_S" >&5
3510 echo "${ECHO_T}no, using $LN_S" >&6
3513 echo "$as_me:3513: checking if $LN_S -f options work" >&5
3514 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3516 rm -f conf$$.src conf$$dst
3518 echo first >conf$$.src
3519 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3524 rm -f conf$$.dst conf$$src
3525 echo "$as_me:3525: result: $cf_prog_ln_sf" >&5
3526 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3528 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3530 echo "$as_me:3530: checking for long file names" >&5
3531 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3532 if test "${ac_cv_sys_long_file_names+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 ac_cv_sys_long_file_names=yes
3536 # Test for long file names in all the places we know might matter:
3537 # . the current directory, where building will happen
3538 # $prefix/lib where we will be installing things
3539 # $exec_prefix/lib likewise
3540 # eval it to expand exec_prefix.
3541 # $TMPDIR if set, where it might want to write temporary files
3542 # if $TMPDIR is not set:
3543 # /tmp where it might want to write temporary files
3546 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3549 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3551 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3552 test -d $ac_dir || continue
3553 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3554 ac_xdir=$ac_dir/cf$$
3555 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3556 ac_tf1=$ac_xdir/conftest9012345
3557 ac_tf2=$ac_xdir/conftest9012346
3558 (echo 1 >$ac_tf1) 2>/dev/null
3559 (echo 2 >$ac_tf2) 2>/dev/null
3560 ac_val=`cat $ac_tf1 2>/dev/null`
3561 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3562 ac_cv_sys_long_file_names=no
3563 rm -rf $ac_xdir 2>/dev/null
3566 rm -rf $ac_xdir 2>/dev/null
3569 echo "$as_me:3569: result: $ac_cv_sys_long_file_names" >&5
3570 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3571 if test $ac_cv_sys_long_file_names = yes; then
3573 cat >>confdefs.h <<\EOF
3574 #define HAVE_LONG_FILE_NAMES 1
3579 # if we find pkg-config, check if we should install the ".pc" files.
3581 echo "$as_me:3581: checking if you want to use pkg-config" >&5
3582 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3584 # Check whether --with-pkg-config or --without-pkg-config was given.
3585 if test "${with_pkg_config+set}" = set; then
3586 withval="$with_pkg_config"
3587 cf_pkg_config=$withval
3591 echo "$as_me:3591: result: $cf_pkg_config" >&5
3592 echo "${ECHO_T}$cf_pkg_config" >&6
3594 case $cf_pkg_config in #(vi
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3603 echo "$as_me:3603: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3613 ac_save_IFS=$IFS; IFS=$ac_path_separator
3615 for ac_dir in $ac_dummy; do
3617 test -z "$ac_dir" && ac_dir=.
3618 if $as_executable_p "$ac_dir/$ac_word"; then
3619 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3620 echo "$as_me:3620: found $ac_dir/$ac_word" >&5
3628 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3630 if test -n "$PKG_CONFIG"; then
3631 echo "$as_me:3631: result: $PKG_CONFIG" >&5
3632 echo "${ECHO_T}$PKG_CONFIG" >&6
3634 echo "$as_me:3634: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3639 if test -z "$ac_cv_path_PKG_CONFIG"; then
3640 ac_pt_PKG_CONFIG=$PKG_CONFIG
3641 # Extract the first word of "pkg-config", so it can be a program name with args.
3642 set dummy pkg-config; ac_word=$2
3643 echo "$as_me:3643: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 case $ac_pt_PKG_CONFIG in
3650 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3653 ac_save_IFS=$IFS; IFS=$ac_path_separator
3655 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if $as_executable_p "$ac_dir/$ac_word"; then
3659 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3660 echo "$as_me:3660: found $ac_dir/$ac_word" >&5
3665 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3669 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3671 if test -n "$ac_pt_PKG_CONFIG"; then
3672 echo "$as_me:3672: result: $ac_pt_PKG_CONFIG" >&5
3673 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3675 echo "$as_me:3675: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3679 PKG_CONFIG=$ac_pt_PKG_CONFIG
3681 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3690 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3691 if test "$PKG_CONFIG" != none ; then
3693 if test "x$prefix" != xNONE; then
3694 cf_path_syntax="$prefix"
3696 cf_path_syntax="$ac_default_prefix"
3699 case ".$PKG_CONFIG" in #(vi
3700 .\$\(*\)*|.\'*\'*) #(vi
3704 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3707 eval PKG_CONFIG="$PKG_CONFIG"
3708 case ".$PKG_CONFIG" in #(vi
3710 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3715 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3718 { { echo "$as_me:3718: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3719 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3720 { (exit 1); exit 1; }; }
3726 if test "$PKG_CONFIG" != none ; then
3727 echo "$as_me:3727: checking for $PKG_CONFIG library directory" >&5
3728 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3730 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3731 if test "${with_pkg_config_libdir+set}" = set; then
3732 withval="$with_pkg_config_libdir"
3733 PKG_CONFIG_LIBDIR=$withval
3735 PKG_CONFIG_LIBDIR=yes
3738 case x$PKG_CONFIG_LIBDIR in #(vi
3742 # look for the library directory using the same prefix as the executable
3743 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3744 case x`(arch) 2>/dev/null` in #(vi
3746 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3748 if test -d $cf_config/pkgconfig
3750 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3756 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3764 echo "$as_me:3764: result: $PKG_CONFIG_LIBDIR" >&5
3765 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3768 if test "$PKG_CONFIG" != none ; then
3769 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3770 echo "$as_me:3770: checking if we should install .pc files for $PKG_CONFIG" >&5
3771 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3773 # Check whether --enable-pc-files or --disable-pc-files was given.
3774 if test "${enable_pc_files+set}" = set; then
3775 enableval="$enable_pc_files"
3776 enable_pc_files=$enableval
3780 echo "$as_me:3780: result: $enable_pc_files" >&5
3781 echo "${ECHO_T}$enable_pc_files" >&6
3782 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3784 { echo "$as_me:3784: WARNING: did not find $PKG_CONFIG library" >&5
3785 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3791 echo "$as_me:3791: checking if we should assume mixed-case filenames" >&5
3792 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3794 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3795 if test "${enable_mixed_case+set}" = set; then
3796 enableval="$enable_mixed_case"
3797 enable_mixedcase=$enableval
3799 enable_mixedcase=auto
3801 echo "$as_me:3801: result: $enable_mixedcase" >&5
3802 echo "${ECHO_T}$enable_mixedcase" >&6
3803 if test "$enable_mixedcase" = "auto" ; then
3805 echo "$as_me:3805: checking if filesystem supports mixed-case filenames" >&5
3806 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3807 if test "${cf_cv_mixedcase+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if test "$cross_compiling" = yes ; then
3812 case $target_alias in #(vi
3813 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3821 rm -f conftest CONFTEST
3823 if test -f CONFTEST ; then
3828 rm -f conftest CONFTEST
3832 echo "$as_me:3832: result: $cf_cv_mixedcase" >&5
3833 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3834 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3835 #define MIXEDCASE_FILENAMES 1
3839 cf_cv_mixedcase=$enable_mixedcase
3840 if test "$enable_mixedcase" = "yes" ; then
3841 cat >>confdefs.h <<\EOF
3842 #define MIXEDCASE_FILENAMES 1
3848 # do this after mixed-case option (tags/TAGS is not as important as tic).
3849 echo "$as_me:3849: checking whether ${MAKE-make} sets \${MAKE}" >&5
3850 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 cat >conftest.make <<\EOF
3857 @echo 'ac_maketemp="${MAKE}"'
3859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3861 if test -n "$ac_maketemp"; then
3862 eval ac_cv_prog_make_${ac_make}_set=yes
3864 eval ac_cv_prog_make_${ac_make}_set=no
3868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3869 echo "$as_me:3869: result: yes" >&5
3870 echo "${ECHO_T}yes" >&6
3873 echo "$as_me:3873: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3875 SET_MAKE="MAKE=${MAKE-make}"
3878 for ac_prog in exctags ctags
3880 # Extract the first word of "$ac_prog", so it can be a program name with args.
3881 set dummy $ac_prog; ac_word=$2
3882 echo "$as_me:3882: checking for $ac_word" >&5
3883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884 if test "${ac_cv_prog_CTAGS+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 if test -n "$CTAGS"; then
3888 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3890 ac_save_IFS=$IFS; IFS=$ac_path_separator
3892 for ac_dir in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir=.
3895 $as_executable_p "$ac_dir/$ac_word" || continue
3896 ac_cv_prog_CTAGS="$ac_prog"
3897 echo "$as_me:3897: found $ac_dir/$ac_word" >&5
3903 CTAGS=$ac_cv_prog_CTAGS
3904 if test -n "$CTAGS"; then
3905 echo "$as_me:3905: result: $CTAGS" >&5
3906 echo "${ECHO_T}$CTAGS" >&6
3908 echo "$as_me:3908: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3912 test -n "$CTAGS" && break
3915 for ac_prog in exetags etags
3917 # Extract the first word of "$ac_prog", so it can be a program name with args.
3918 set dummy $ac_prog; ac_word=$2
3919 echo "$as_me:3919: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_ETAGS+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 if test -n "$ETAGS"; then
3925 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3927 ac_save_IFS=$IFS; IFS=$ac_path_separator
3929 for ac_dir in $ac_dummy; do
3931 test -z "$ac_dir" && ac_dir=.
3932 $as_executable_p "$ac_dir/$ac_word" || continue
3933 ac_cv_prog_ETAGS="$ac_prog"
3934 echo "$as_me:3934: found $ac_dir/$ac_word" >&5
3940 ETAGS=$ac_cv_prog_ETAGS
3941 if test -n "$ETAGS"; then
3942 echo "$as_me:3942: result: $ETAGS" >&5
3943 echo "${ECHO_T}$ETAGS" >&6
3945 echo "$as_me:3945: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3949 test -n "$ETAGS" && break
3952 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3953 set dummy ${CTAGS:-ctags}; ac_word=$2
3954 echo "$as_me:3954: checking for $ac_word" >&5
3955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3956 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 if test -n "$MAKE_LOWER_TAGS"; then
3960 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3962 ac_save_IFS=$IFS; IFS=$ac_path_separator
3964 for ac_dir in $ac_dummy; do
3966 test -z "$ac_dir" && ac_dir=.
3967 $as_executable_p "$ac_dir/$ac_word" || continue
3968 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3969 echo "$as_me:3969: found $ac_dir/$ac_word" >&5
3973 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3976 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3977 if test -n "$MAKE_LOWER_TAGS"; then
3978 echo "$as_me:3978: result: $MAKE_LOWER_TAGS" >&5
3979 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3981 echo "$as_me:3981: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3985 if test "$cf_cv_mixedcase" = yes ; then
3986 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3987 set dummy ${ETAGS:-etags}; ac_word=$2
3988 echo "$as_me:3988: checking for $ac_word" >&5
3989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 if test -n "$MAKE_UPPER_TAGS"; then
3994 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3996 ac_save_IFS=$IFS; IFS=$ac_path_separator
3998 for ac_dir in $ac_dummy; do
4000 test -z "$ac_dir" && ac_dir=.
4001 $as_executable_p "$ac_dir/$ac_word" || continue
4002 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4003 echo "$as_me:4003: found $ac_dir/$ac_word" >&5
4007 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4010 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4011 if test -n "$MAKE_UPPER_TAGS"; then
4012 echo "$as_me:4012: result: $MAKE_UPPER_TAGS" >&5
4013 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4015 echo "$as_me:4015: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4023 if test "$MAKE_UPPER_TAGS" = yes ; then
4029 if test "$MAKE_LOWER_TAGS" = yes ; then
4035 echo "$as_me:4035: checking for makeflags variable" >&5
4036 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4037 if test "${cf_cv_makeflags+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4044 cat >cf_makeflags.tmp <<CF_EOF