2 # From configure.in Revision: 1.636 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20150926.
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 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
777 --with-bool=TYPE override fallback type of bool variable
778 --with-caps=alt compile with alternate Caps file
779 --with-chtype=TYPE override type of chtype
780 --with-ospeed=TYPE override type of ospeed variable
781 --with-mmask-t=TYPE override type of mmask_t
782 --with-ccharw-max=XXX override size CCHARW_MAX
783 --with-tparm-arg=TYPE override parameter type of tparm
784 --with-rcs-ids compile-in RCS identifiers
785 Options to Specify How Manpages are Installed:
786 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
787 optionally formatted/catonly, e.g., gzip,formatted
788 --with-manpage-renames specify manpage-renaming
789 --with-manpage-aliases specify manpage-aliases using .so
790 --with-manpage-symlinks specify manpage-aliases using symlinks
791 --with-manpage-tbl specify manpage processing with tbl
793 --disable-ext-funcs disable function-extensions
794 --enable-sp-funcs enable SCREEN-extensions
795 --enable-term-driver enable terminal-driver
796 --enable-const compile with extra/non-standard const
797 --enable-ext-colors compile for 256-color support
798 --enable-ext-mouse compile for extended mouse-encoding
799 --enable-ext-putwin compile with extended putwin/screendump
800 --enable-no-padding compile with $NCURSES_NO_PADDING code
801 --enable-signed-char compile using signed Boolean's in term.h
802 --enable-sigwinch compile with SIGWINCH handler
803 --enable-tcap-names compile with user-definable terminal capabilities
804 --with-pthread use POSIX thread library
805 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
806 --enable-weak-symbols enable weak-symbols for pthreads
807 --enable-reentrant compile with reentrant code
808 --enable-opaque-curses make curses WINDOW, etc., "opaque"
809 --enable-opaque-form make form-library structures "opaque"
810 --enable-opaque-menu make menu-library structures "opaque"
811 --enable-opaque-panel make panel-library structures "opaque"
812 --with-wrap-prefix=XXX override prefix used for public variables
814 --without-develop disable development options
815 --enable-hard-tabs compile with hard-tabs code
816 --enable-xmc-glitch compile with support for xmc (magic-cookie)
818 --disable-assumed-color do not assume anything about default-colors
819 --disable-hashmap compile without hashmap scrolling-optimization
820 --enable-colorfgbg compile-in experimental $COLORFGBG code
821 --enable-interop compile-in interop bindings
822 --enable-safe-sprintf compile with experimental safe-sprintf code
823 --disable-scroll-hints compile without scroll-hints code
824 --enable-wgetch-events compile with wgetch-events code
825 Testing/development Options:
826 --disable-echo do not display "compiling" commands
827 --enable-warnings build: turn on GCC compiler warnings
828 --enable-string-hacks work around bogus compiler/loader warnings
829 --enable-assertions test: turn on generation of assertion code
830 --with-dmalloc test: use Gray Watson's dmalloc library
831 --with-dbmalloc test: use Conor Cahill's dbmalloc library
832 --with-valgrind test: use valgrind
833 --disable-leaks test: free permanent memory, analyze leaks
834 --enable-expanded test: generate functions for certain macros
835 --disable-macros test: use functions rather than macros
836 --with-trace test: add trace() function to all models of ncurses
837 --disable-gnat-projects test: disable GNAT projects even if usable
838 Ada95 Binding Options:
839 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
840 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
841 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
842 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
844 Some influential environment variables:
845 CC C compiler command
846 CFLAGS C compiler flags
847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848 nonstandard directory <lib dir>
849 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850 headers in a nonstandard directory <include dir>
852 CXX C++ compiler command
853 CXXFLAGS C++ compiler flags
854 CXXCPP C++ preprocessor
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
865 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
867 # A "../" for each directory in /$ac_subdir.
868 ac_dots=`echo $ac_subdir |
869 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
872 .) # No --srcdir option. We are building in place.
873 ac_sub_srcdir=$srcdir ;;
874 [\\/]* | ?:[\\/]* ) # Absolute path.
875 ac_sub_srcdir=$srcdir/$ac_subdir ;;
877 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
880 # Check for guested configure; otherwise get Cygnus style configure.
881 if test -f $ac_sub_srcdir/configure.gnu; then
883 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
884 elif test -f $ac_sub_srcdir/configure; then
886 $SHELL $ac_sub_srcdir/configure --help=recursive
887 elif test -f $ac_sub_srcdir/configure.ac ||
888 test -f $ac_sub_srcdir/configure.in; then
892 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
898 test -n "$ac_init_help" && exit 0
899 if $ac_init_version; then
902 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
903 Free Software Foundation, Inc.
904 This configure script is free software; the Free Software Foundation
905 gives unlimited permission to copy, distribute and modify it.
911 This file contains any messages produced by compilers while
912 running configure, to aid debugging if configure makes a mistake.
914 It was created by $as_me, which was
915 generated by GNU Autoconf 2.52.20150926. Invocation command line was
926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
938 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
955 # Keep a trace of the command line.
956 # Strip out --no-create and --no-recursion so they do not pile up.
957 # Also quote any args containing shell meta-characters.
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c) ;;
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
967 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
968 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
969 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
971 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
974 # Get rid of the leading space.
977 # When interrupted or exit'd, cleanup temporary files, and complete
978 # config.log. We remove comments because anyway the quotes in there
979 # would cause problems or look ugly.
981 # Save into config.log some information that might help in debugging.
983 echo "## ----------------- ##" >&5
984 echo "## Cache variables. ##" >&5
985 echo "## ----------------- ##" >&5
987 # The following way of writing the cache mishandles newlines in values,
990 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
993 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
998 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1002 sed "/^$/d" confdefs.h >conftest.log
1003 if test -s conftest.log; then
1005 echo "## ------------ ##" >&5
1006 echo "## confdefs.h. ##" >&5
1007 echo "## ------------ ##" >&5
1009 cat conftest.log >&5
1012 test "$ac_signal" != 0 &&
1013 echo "$as_me: caught signal $ac_signal" >&5
1014 echo "$as_me: exit $exit_status" >&5
1015 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1018 for ac_signal in 1 2 13 15; do
1019 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1023 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1024 rm -rf conftest* confdefs.h
1025 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1028 # Let the site file select an alternate cache file if it wants to.
1029 # Prefer explicitly selected file to automatically selected ones.
1030 if test -z "$CONFIG_SITE"; then
1031 if test "x$prefix" != xNONE; then
1032 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1034 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1037 for ac_site_file in $CONFIG_SITE; do
1038 if test -r "$ac_site_file"; then
1039 { echo "$as_me:1039: loading site script $ac_site_file" >&5
1040 echo "$as_me: loading site script $ac_site_file" >&6;}
1041 cat "$ac_site_file" >&5
1046 if test -r "$cache_file"; then
1047 # Some versions of bash will fail to source /dev/null (special
1048 # files actually), so we avoid doing that.
1049 if test -f "$cache_file"; then
1050 { echo "$as_me:1050: loading cache $cache_file" >&5
1051 echo "$as_me: loading cache $cache_file" >&6;}
1053 [\\/]* | ?:[\\/]* ) . $cache_file;;
1054 *) . ./$cache_file;;
1058 { echo "$as_me:1058: creating cache $cache_file" >&5
1059 echo "$as_me: creating cache $cache_file" >&6;}
1063 # Check that the precious variables saved in the cache have kept the same
1065 ac_cache_corrupted=false
1066 for ac_var in `(set) 2>&1 |
1067 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1068 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1069 eval ac_new_set=\$ac_env_${ac_var}_set
1070 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1071 eval ac_new_val="\$ac_env_${ac_var}_value"
1072 case $ac_old_set,$ac_new_set in
1074 { echo "$as_me:1074: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1075 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1076 ac_cache_corrupted=: ;;
1078 { echo "$as_me:1078: error: \`$ac_var' was not set in the previous run" >&5
1079 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1080 ac_cache_corrupted=: ;;
1083 if test "x$ac_old_val" != "x$ac_new_val"; then
1084 { echo "$as_me:1084: error: \`$ac_var' has changed since the previous run:" >&5
1085 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1086 { echo "$as_me:1086: former value: $ac_old_val" >&5
1087 echo "$as_me: former value: $ac_old_val" >&2;}
1088 { echo "$as_me:1088: current value: $ac_new_val" >&5
1089 echo "$as_me: current value: $ac_new_val" >&2;}
1090 ac_cache_corrupted=:
1093 # Pass precious variables to config.status. It doesn't matter if
1094 # we pass some twice (in addition to the command line arguments).
1095 if test "$ac_new_set" = set; then
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1099 ac_configure_args="$ac_configure_args '$ac_arg'"
1101 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1106 if $ac_cache_corrupted; then
1107 { echo "$as_me:1107: error: changes in the environment can compromise the build" >&5
1108 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1109 { { echo "$as_me:1109: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1110 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1111 { (exit 1); exit 1; }; }
1115 ac_cpp='$CPP $CPPFLAGS'
1116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1119 ac_main_return=return
1121 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1122 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1124 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1125 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1127 echo "#! $SHELL" >conftest.sh
1128 echo "exit 0" >>conftest.sh
1129 chmod +x conftest.sh
1130 if { (echo "$as_me:1130: PATH=\".;.\"; conftest.sh") >&5
1131 (PATH=".;."; conftest.sh) 2>&5
1133 echo "$as_me:1133: \$? = $ac_status" >&5
1134 (exit $ac_status); }; then
1135 ac_path_separator=';'
1139 PATH_SEPARATOR="$ac_path_separator"
1142 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1146 echo "$as_me:1146: checking for egrep" >&5
1147 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1148 if test "${ac_cv_prog_egrep+set}" = set; then
1149 echo $ECHO_N "(cached) $ECHO_C" >&6
1151 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1152 then ac_cv_prog_egrep='grep -E'
1153 else ac_cv_prog_egrep='egrep'
1156 echo "$as_me:1156: result: $ac_cv_prog_egrep" >&5
1157 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1158 EGREP=$ac_cv_prog_egrep
1160 test -z "$EGREP" && { { echo "$as_me:1160: error: No egrep program found" >&5
1161 echo "$as_me: error: No egrep program found" >&2;}
1162 { (exit 1); exit 1; }; }
1164 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1165 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1166 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1167 cf_cv_abi_version=${NCURSES_MAJOR}
1168 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1169 cf_cv_timestamp=`date`
1170 echo "$as_me:1170: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1171 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1173 if test -f $srcdir/VERSION ; then
1174 echo "$as_me:1174: checking for package version" >&5
1175 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1177 # if there are not enough fields, cut returns the last one...
1178 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1179 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1180 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1182 # this is how CF_BUNDLED_INTL uses $VERSION:
1183 VERSION="$cf_field1"
1185 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1186 test -z "$VERSION_MAJOR" && { { echo "$as_me:1186: error: missing major-version" >&5
1187 echo "$as_me: error: missing major-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1191 test -z "$VERSION_MINOR" && { { echo "$as_me:1191: error: missing minor-version" >&5
1192 echo "$as_me: error: missing minor-version" >&2;}
1193 { (exit 1); exit 1; }; }
1195 echo "$as_me:1195: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1196 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1198 echo "$as_me:1198: checking for package patch date" >&5
1199 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1200 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1201 case .$VERSION_PATCH in
1203 { { echo "$as_me:1203: error: missing patch-date $VERSION_PATCH" >&5
1204 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1205 { (exit 1); exit 1; }; }
1207 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1210 { { echo "$as_me:1210: error: illegal patch-date $VERSION_PATCH" >&5
1211 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1212 { (exit 1); exit 1; }; }
1215 echo "$as_me:1215: result: $VERSION_PATCH" >&5
1216 echo "${ECHO_T}$VERSION_PATCH" >&6
1218 { { echo "$as_me:1218: error: did not find $srcdir/VERSION" >&5
1219 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1220 { (exit 1); exit 1; }; }
1223 # show the actual data that we have for versions:
1224 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1226 echo "${as_me:-configure}:1226: testing ABI VERSION $VERSION ..." 1>&5
1228 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1230 echo "${as_me:-configure}:1230: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1232 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1234 echo "${as_me:-configure}:1234: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1236 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1238 echo "${as_me:-configure}:1238: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1243 cat >>confdefs.h <<EOF
1244 #define PACKAGE "$PACKAGE"
1247 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1249 cat >>confdefs.h <<EOF
1250 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1253 cat >>confdefs.h <<EOF
1254 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1257 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1259 # Check whether --with-rel-version or --without-rel-version was given.
1260 if test "${with_rel_version+set}" = set; then
1261 withval="$with_rel_version"
1262 { echo "$as_me:1262: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1263 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1264 cf_cv_rel_version=$withval
1267 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1268 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1270 if test -n "$NCURSES_MAJOR" ; then
1271 case $NCURSES_MAJOR in
1275 { { echo "$as_me:1275: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1276 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1277 { (exit 1); exit 1; }; }
1281 { { echo "$as_me:1281: error: Release major-version value is empty" >&5
1282 echo "$as_me: error: Release major-version value is empty" >&2;}
1283 { (exit 1); exit 1; }; }
1286 if test -n "$NCURSES_MINOR" ; then
1287 case $NCURSES_MINOR in
1291 { { echo "$as_me:1291: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1292 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1293 { (exit 1); exit 1; }; }
1297 { { echo "$as_me:1297: error: Release minor-version value is empty" >&5
1298 echo "$as_me: error: Release minor-version value is empty" >&2;}
1299 { (exit 1); exit 1; }; }
1302 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1304 # Check whether --with-abi-version or --without-abi-version was given.
1305 if test "${with_abi_version+set}" = set; then
1306 withval="$with_abi_version"
1308 if test "x$cf_cv_abi_version" != "x$withval"
1310 { echo "$as_me:1310: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1311 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1312 case $cf_cv_rel_version in
1314 cf_cv_rel_version=$withval.0
1317 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1321 cf_cv_abi_version=$withval
1324 if test -n "$cf_cv_abi_version" ; then
1325 case $cf_cv_abi_version in
1329 { { echo "$as_me:1329: error: ABI version is not a number: $cf_cv_abi_version" >&5
1330 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1331 { (exit 1); exit 1; }; }
1335 { { echo "$as_me:1335: error: ABI version value is empty" >&5
1336 echo "$as_me: error: ABI version value is empty" >&2;}
1337 { (exit 1); exit 1; }; }
1340 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1342 case $cf_cv_rel_version in
1344 cf_cv_rel_version=$with_abi_version.0
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351 if test -f $ac_dir/install-sh; then
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1355 elif test -f $ac_dir/install.sh; then
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1359 elif test -f $ac_dir/shtool; then
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:1366: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374 # Make sure we can run config.sub.
1375 $ac_config_sub sun4 >/dev/null 2>&1 ||
1376 { { echo "$as_me:1376: error: cannot run $ac_config_sub" >&5
1377 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378 { (exit 1); exit 1; }; }
1380 echo "$as_me:1380: checking build system type" >&5
1381 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382 if test "${ac_cv_build+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 ac_cv_build_alias=$build_alias
1386 test -z "$ac_cv_build_alias" &&
1387 ac_cv_build_alias=`$ac_config_guess`
1388 test -z "$ac_cv_build_alias" &&
1389 { { echo "$as_me:1389: error: cannot guess build type; you must specify one" >&5
1390 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391 { (exit 1); exit 1; }; }
1392 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393 { { echo "$as_me:1393: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:1398: result: $ac_cv_build" >&5
1399 echo "${ECHO_T}$ac_cv_build" >&6
1401 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:1405: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412 ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414 { { echo "$as_me:1414: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:1419: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1427 echo "$as_me:1427: checking target system type" >&5
1428 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1429 if test "${ac_cv_target+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 ac_cv_target_alias=$target_alias
1433 test "x$ac_cv_target_alias" = "x" &&
1434 ac_cv_target_alias=$ac_cv_host_alias
1435 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1436 { { echo "$as_me:1436: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1438 { (exit 1); exit 1; }; }
1441 echo "$as_me:1441: result: $ac_cv_target" >&5
1442 echo "${ECHO_T}$ac_cv_target" >&6
1443 target=$ac_cv_target
1444 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448 # The aliases save the names the user supplied, while $host etc.
1449 # will get canonicalized.
1450 test -n "$target_alias" &&
1451 test "$program_prefix$program_suffix$program_transform_name" = \
1453 program_prefix=${target_alias}-
1454 system_name="$host_os"
1456 system_name="`(uname -s -r) 2>/dev/null`"
1457 if test -z "$system_name" ; then
1458 system_name="`(hostname) 2>/dev/null`"
1461 test -n "$system_name" &&
1462 cat >>confdefs.h <<EOF
1463 #define SYSTEM_NAME "$system_name"
1466 if test "${cf_cv_system_name+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 cf_cv_system_name="$system_name"
1472 test -z "$system_name" && system_name="$cf_cv_system_name"
1473 test -n "$cf_cv_system_name" && echo "$as_me:1473: result: Configuring for $cf_cv_system_name" >&5
1474 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1476 if test ".$system_name" != ".$cf_cv_system_name" ; then
1477 echo "$as_me:1477: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1478 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1479 { { echo "$as_me:1479: error: \"Please remove config.cache and try again.\"" >&5
1480 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1481 { (exit 1); exit 1; }; }
1484 # Check whether --with-system-type or --without-system-type was given.
1485 if test "${with_system_type+set}" = set; then
1486 withval="$with_system_type"
1487 { echo "$as_me:1487: WARNING: overriding system type to $withval" >&5
1488 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1489 cf_cv_system_name=$withval
1494 ### Save the given $CFLAGS to allow user-override.
1495 cf_user_CFLAGS="$CFLAGS"
1497 ### Default install-location
1499 echo "$as_me:1499: checking for prefix" >&5
1500 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1501 if test "x$prefix" = "xNONE" ; then
1502 case "$cf_cv_system_name" in
1503 # non-vendor systems don't have a conflict
1504 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1507 (*) prefix=$ac_default_prefix
1511 echo "$as_me:1511: result: $prefix" >&5
1512 echo "${ECHO_T}$prefix" >&6
1514 if test "x$prefix" = "xNONE" ; then
1515 echo "$as_me:1515: checking for default include-directory" >&5
1516 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1517 test -n "$verbose" && echo 1>&6
1520 $includedir/ncurses \
1522 $prefix/include/ncurses \
1523 /usr/local/include \
1524 /usr/local/include/ncurses \
1526 /usr/include/ncurses
1528 cf_dir=`eval echo $cf_symbol`
1529 if test -f $cf_dir/curses.h ; then
1530 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1531 includedir="$cf_symbol"
1532 test -n "$verbose" && echo $ac_n " found " 1>&6
1536 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1538 echo "$as_me:1538: result: $includedir" >&5
1539 echo "${ECHO_T}$includedir" >&6
1542 ### Defaults for ncurses ABI
1544 case x$cf_cv_abi_version in
1546 cf_dft_ext_colors=yes
1547 cf_dft_ext_const=yes
1548 cf_dft_ext_mouse=yes
1549 cf_dft_ext_putwin=yes
1550 cf_dft_ext_spfuncs=yes
1551 cf_dft_filter_syms=yes
1552 cf_dft_chtype=uint32_t
1553 cf_dft_mmask_t=uint32_t
1555 cf_dft_tparm_arg=intptr_t
1556 cf_dft_with_lp64=yes
1559 cf_dft_ext_colors=no
1562 cf_dft_ext_putwin=no
1563 cf_dft_ext_spfuncs=no
1564 cf_dft_filter_syms=no
1568 cf_dft_tparm_arg=long
1573 ### Checks for programs.
1575 # Check whether --with-ada or --without-ada was given.
1576 if test "${with_ada+set}" = set; then
1578 cf_with_ada=$withval
1582 if test "x$cf_with_ada" = xyes
1584 cf_PROG_CC="gnatgcc gcc cc"
1590 ac_cpp='$CPP $CPPFLAGS'
1591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1594 ac_main_return=return
1595 if test -n "$ac_tool_prefix"; then
1596 for ac_prog in $cf_PROG_CC
1598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1600 echo "$as_me:1600: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 ac_save_IFS=$IFS; IFS=$ac_path_separator
1610 for ac_dir in $ac_dummy; do
1612 test -z "$ac_dir" && ac_dir=.
1613 $as_executable_p "$ac_dir/$ac_word" || continue
1614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1615 echo "$as_me:1615: found $ac_dir/$ac_word" >&5
1622 if test -n "$CC"; then
1623 echo "$as_me:1623: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1626 echo "$as_me:1626: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 test -n "$CC" && break
1633 if test -z "$CC"; then
1635 for ac_prog in $cf_PROG_CC
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:1639: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647 ac_save_IFS=$IFS; IFS=$ac_path_separator
1649 for ac_dir in $ac_dummy; do
1651 test -z "$ac_dir" && ac_dir=.
1652 $as_executable_p "$ac_dir/$ac_word" || continue
1653 ac_cv_prog_ac_ct_CC="$ac_prog"
1654 echo "$as_me:1654: found $ac_dir/$ac_word" >&5
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:1662: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1665 echo "$as_me:1665: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 test -n "$ac_ct_CC" && break
1675 test -z "$CC" && { { echo "$as_me:1675: error: no acceptable cc found in \$PATH" >&5
1676 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1677 { (exit 1); exit 1; }; }
1679 # Provide some information about the compiler.
1680 echo "$as_me:1680:" \
1681 "checking for C compiler version" >&5
1682 ac_compiler=`set X $ac_compile; echo $2`
1683 { (eval echo "$as_me:1683: \"$ac_compiler --version </dev/null >&5\"") >&5
1684 (eval $ac_compiler --version </dev/null >&5) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:1688: \"$ac_compiler -v </dev/null >&5\"") >&5
1689 (eval $ac_compiler -v </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693 { (eval echo "$as_me:1693: \"$ac_compiler -V </dev/null >&5\"") >&5
1694 (eval $ac_compiler -V </dev/null >&5) 2>&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1699 cat >conftest.$ac_ext <<_ACEOF
1700 #line 1700 "configure"
1701 #include "confdefs.h"
1711 ac_clean_files_save=$ac_clean_files
1712 ac_clean_files="$ac_clean_files a.out a.exe"
1713 # Try to create an executable without -o first, disregard a.out.
1714 # It will help us diagnose broken compilers, and finding out an intuition
1716 echo "$as_me:1716: checking for C compiler default output" >&5
1717 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1719 if { (eval echo "$as_me:1719: \"$ac_link_default\"") >&5
1720 (eval $ac_link_default) 2>&5
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); }; then
1724 # Find the output, starting from the most likely. This scheme is
1725 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1727 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1728 ls a.out conftest 2>/dev/null;
1729 ls a.* conftest.* 2>/dev/null`; do
1731 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1732 a.out ) # We found the default executable, but exeext='' is most
1735 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1736 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1743 echo "$as_me: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1745 { { echo "$as_me:1745: error: C compiler cannot create executables" >&5
1746 echo "$as_me: error: C compiler cannot create executables" >&2;}
1747 { (exit 77); exit 77; }; }
1750 ac_exeext=$ac_cv_exeext
1751 echo "$as_me:1751: result: $ac_file" >&5
1752 echo "${ECHO_T}$ac_file" >&6
1754 # Check the compiler produces executables we can run. If not, either
1755 # the compiler is broken, or we cross compile.
1756 echo "$as_me:1756: checking whether the C compiler works" >&5
1757 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1758 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1759 # If not cross compiling, check that we can run a simple program.
1760 if test "$cross_compiling" != yes; then
1761 if { ac_try='./$ac_file'
1762 { (eval echo "$as_me:1762: \"$ac_try\"") >&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); }; }; then
1769 if test "$cross_compiling" = maybe; then
1772 { { echo "$as_me:1772: error: cannot run C compiled programs.
1773 If you meant to cross compile, use \`--host'." >&5
1774 echo "$as_me: error: cannot run C compiled programs.
1775 If you meant to cross compile, use \`--host'." >&2;}
1776 { (exit 1); exit 1; }; }
1780 echo "$as_me:1780: result: yes" >&5
1781 echo "${ECHO_T}yes" >&6
1783 rm -f a.out a.exe conftest$ac_cv_exeext
1784 ac_clean_files=$ac_clean_files_save
1785 # Check the compiler produces executables we can run. If not, either
1786 # the compiler is broken, or we cross compile.
1787 echo "$as_me:1787: checking whether we are cross compiling" >&5
1788 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1789 echo "$as_me:1789: result: $cross_compiling" >&5
1790 echo "${ECHO_T}$cross_compiling" >&6
1792 echo "$as_me:1792: checking for executable suffix" >&5
1793 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1794 if { (eval echo "$as_me:1794: \"$ac_link\"") >&5
1795 (eval $ac_link) 2>&5
1797 echo "$as_me:1797: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1800 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1801 # work properly (i.e., refer to `conftest.exe'), while it won't with
1803 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 { { echo "$as_me:1813: error: cannot compute EXEEXT: cannot compile and link" >&5
1814 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1815 { (exit 1); exit 1; }; }
1818 rm -f conftest$ac_cv_exeext
1819 echo "$as_me:1819: result: $ac_cv_exeext" >&5
1820 echo "${ECHO_T}$ac_cv_exeext" >&6
1822 rm -f conftest.$ac_ext
1823 EXEEXT=$ac_cv_exeext
1825 echo "$as_me:1825: checking for object suffix" >&5
1826 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1827 if test "${ac_cv_objext+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 cat >conftest.$ac_ext <<_ACEOF
1831 #line 1831 "configure"
1832 #include "confdefs.h"
1842 rm -f conftest.o conftest.obj
1843 if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5
1844 (eval $ac_compile) 2>&5
1846 echo "$as_me:1846: \$? = $ac_status" >&5
1847 (exit $ac_status); }; then
1848 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1850 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1856 echo "$as_me: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1858 { { echo "$as_me:1858: error: cannot compute OBJEXT: cannot compile" >&5
1859 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1860 { (exit 1); exit 1; }; }
1863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1865 echo "$as_me:1865: result: $ac_cv_objext" >&5
1866 echo "${ECHO_T}$ac_cv_objext" >&6
1867 OBJEXT=$ac_cv_objext
1869 echo "$as_me:1869: checking whether we are using the GNU C compiler" >&5
1870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 cat >conftest.$ac_ext <<_ACEOF
1875 #line 1875 "configure"
1876 #include "confdefs.h"
1889 rm -f conftest.$ac_objext
1890 if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5
1891 (eval $ac_compile) 2>&5
1893 echo "$as_me:1893: \$? = $ac_status" >&5
1894 (exit $ac_status); } &&
1895 { ac_try='test -s conftest.$ac_objext'
1896 { (eval echo "$as_me:1896: \"$ac_try\"") >&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); }; }; then
1903 echo "$as_me: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1907 rm -f conftest.$ac_objext conftest.$ac_ext
1908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1911 echo "$as_me:1911: result: $ac_cv_c_compiler_gnu" >&5
1912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1913 GCC=`test $ac_compiler_gnu = yes && echo yes`
1914 ac_test_CFLAGS=${CFLAGS+set}
1915 ac_save_CFLAGS=$CFLAGS
1917 echo "$as_me:1917: checking whether $CC accepts -g" >&5
1918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1919 if test "${ac_cv_prog_cc_g+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line 1923 "configure"
1924 #include "confdefs.h"
1934 rm -f conftest.$ac_objext
1935 if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1938 echo "$as_me:1938: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
1940 { ac_try='test -s conftest.$ac_objext'
1941 { (eval echo "$as_me:1941: \"$ac_try\"") >&5
1944 echo "$as_me:1944: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 echo "$as_me: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1952 rm -f conftest.$ac_objext conftest.$ac_ext
1954 echo "$as_me:1954: result: $ac_cv_prog_cc_g" >&5
1955 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1956 if test "$ac_test_CFLAGS" = set; then
1957 CFLAGS=$ac_save_CFLAGS
1958 elif test $ac_cv_prog_cc_g = yes; then
1959 if test "$GCC" = yes; then
1965 if test "$GCC" = yes; then
1971 # Some people use a C++ compiler to compile C. Since we use `exit',
1972 # in C++ we need to declare it. In case someone uses the same compiler
1973 # for both compiling C and C++ we need to have the C++ compiler decide
1974 # the declaration of exit, since it's the most demanding environment.
1975 cat >conftest.$ac_ext <<_ACEOF
1980 rm -f conftest.$ac_objext
1981 if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1984 echo "$as_me:1984: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -s conftest.$ac_objext'
1987 { (eval echo "$as_me:1987: \"$ac_try\"") >&5
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1992 for ac_declaration in \
1994 '#include <stdlib.h>' \
1995 'extern "C" void std::exit (int) throw (); using std::exit;' \
1996 'extern "C" void std::exit (int); using std::exit;' \
1997 'extern "C" void exit (int) throw ();' \
1998 'extern "C" void exit (int);' \
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #line 2002 "configure"
2003 #include "confdefs.h"
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:2015: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>&5
2018 echo "$as_me:2018: \$? = $ac_status" >&5
2019 (exit $ac_status); } &&
2020 { ac_try='test -s conftest.$ac_objext'
2021 { (eval echo "$as_me:2021: \"$ac_try\"") >&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2032 rm -f conftest.$ac_objext conftest.$ac_ext
2033 cat >conftest.$ac_ext <<_ACEOF
2034 #line 2034 "configure"
2035 #include "confdefs.h"
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:2046: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>&5
2049 echo "$as_me:2049: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:2052: \"$ac_try\"") >&5
2055 echo "$as_me:2055: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2059 echo "$as_me: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2065 if test -n "$ac_declaration"; then
2066 echo '#ifdef __cplusplus' >>confdefs.h
2067 echo $ac_declaration >>confdefs.h
2068 echo '#endif' >>confdefs.h
2072 echo "$as_me: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2075 rm -f conftest.$ac_objext conftest.$ac_ext
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 ac_main_return=return
2084 if test "$GCC" = yes ; then
2085 echo "$as_me:2085: checking version of $CC" >&5
2086 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2087 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2088 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2089 echo "$as_me:2089: result: $GCC_VERSION" >&5
2090 echo "${ECHO_T}$GCC_VERSION" >&6
2093 echo "$as_me:2093: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_prog_cc_stdc=no
2100 cat >conftest.$ac_ext <<_ACEOF
2101 #line 2101 "configure"
2102 #include "confdefs.h"
2105 #include <sys/types.h>
2106 #include <sys/stat.h>
2107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2108 struct buf { int x; };
2109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2110 static char *e (p, i)
2116 static char *f (char * (*g) (char **, int), char **p, ...)
2121 s = g (p, va_arg (v,int));
2125 int test (int i, double x);
2126 struct s1 {int (*f) (int a);};
2127 struct s2 {int (*f) (double a);};
2128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2139 # Don't try gcc -ansi; that turns off useful extensions and
2140 # breaks some systems' header files.
2141 # AIX -qlanglvl=ansi
2142 # Ultrix and OSF/1 -std1
2143 # HP-UX 10.20 and later -Ae
2144 # HP-UX older versions -Aa -D_HPUX_SOURCE
2145 # SVR4 -Xc -D__EXTENSIONS__
2146 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2148 CC="$ac_save_CC $ac_arg"
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:2150: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2153 echo "$as_me:2153: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:2156: \"$ac_try\"") >&5
2159 echo "$as_me:2159: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_stdc=$ac_arg
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 rm -f conftest.$ac_objext
2169 rm -f conftest.$ac_ext conftest.$ac_objext
2174 case "x$ac_cv_prog_cc_stdc" in
2176 echo "$as_me:2176: result: none needed" >&5
2177 echo "${ECHO_T}none needed" >&6 ;;
2179 echo "$as_me:2179: result: $ac_cv_prog_cc_stdc" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2181 CC="$CC $ac_cv_prog_cc_stdc" ;;
2184 # This should have been defined by AC_PROG_CC
2187 echo "$as_me:2187: checking \$CC variable" >&5
2188 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2191 echo "$as_me:2191: result: broken" >&5
2192 echo "${ECHO_T}broken" >&6
2193 { echo "$as_me:2193: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2194 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2196 cf_flags=`echo "$CC" | sed -e 's/^.*[ ]\(-[^ ]\)/\1/'`
2197 CC=`echo "$CC " | sed -e 's/[ ]-[^ ].*$//' -e 's/[ ]*$//'`
2198 for cf_arg in $cf_flags
2206 cf_new_extra_cppflags=
2208 for cf_add_cflags in $cf_flags
2210 case $cf_fix_cppflags in
2212 case $cf_add_cflags in
2213 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2214 case $cf_add_cflags in
2216 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2218 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2219 && test -z "${cf_tst_cflags}" \
2220 && cf_fix_cppflags=yes
2222 if test $cf_fix_cppflags = yes ; then
2223 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2225 elif test "${cf_tst_cflags}" = "\"'" ; then
2226 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2235 case $cf_add_cflags in
2237 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2239 CPPFLAGS=`echo "$CPPFLAGS" | \
2240 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2241 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2245 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2250 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2255 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2257 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2259 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2260 && test -z "${cf_tst_cflags}" \
2261 && cf_fix_cppflags=no
2266 if test -n "$cf_new_cflags" ; then
2268 CFLAGS="$CFLAGS $cf_new_cflags"
2271 if test -n "$cf_new_cppflags" ; then
2273 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2276 if test -n "$cf_new_extra_cppflags" ; then
2278 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2287 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2289 echo "${as_me:-configure}:2289: testing resulting CC: '$CC' ..." 1>&5
2291 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2293 echo "${as_me:-configure}:2293: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2295 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2297 echo "${as_me:-configure}:2297: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2301 echo "$as_me:2301: result: ok" >&5
2302 echo "${ECHO_T}ok" >&6
2307 ac_cpp='$CPP $CPPFLAGS'
2308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311 ac_main_return=return
2312 echo "$as_me:2312: checking how to run the C preprocessor" >&5
2313 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2314 # On Suns, sometimes $CPP names a directory.
2315 if test -n "$CPP" && test -d "$CPP"; then
2318 if test -z "$CPP"; then
2319 if test "${ac_cv_prog_CPP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 # Double quotes because CPP needs to be expanded
2323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2326 for ac_c_preproc_warn_flag in '' yes
2328 # Use a header file that comes with gcc, so configuring glibc
2329 # with a fresh cross-compiler works.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line 2333 "configure"
2334 #include "confdefs.h"
2338 if { (eval echo "$as_me:2338: \"$ac_cpp conftest.$ac_ext\"") >&5
2339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2341 egrep -v '^ *\+' conftest.er1 >conftest.err
2343 cat conftest.err >&5
2344 echo "$as_me:2344: \$? = $ac_status" >&5
2345 (exit $ac_status); } >/dev/null; then
2346 if test -s conftest.err; then
2347 ac_cpp_err=$ac_c_preproc_warn_flag
2354 if test -z "$ac_cpp_err"; then
2357 echo "$as_me: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 # Broken: fails on valid input.
2362 rm -f conftest.err conftest.$ac_ext
2364 # OK, works on sane cases. Now check whether non-existent headers
2365 # can be detected and how.
2366 cat >conftest.$ac_ext <<_ACEOF
2367 #line 2367 "configure"
2368 #include "confdefs.h"
2369 #include <ac_nonexistent.h>
2371 if { (eval echo "$as_me:2371: \"$ac_cpp conftest.$ac_ext\"") >&5
2372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2374 egrep -v '^ *\+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:2377: \$? = $ac_status" >&5
2378 (exit $ac_status); } >/dev/null; then
2379 if test -s conftest.err; then
2380 ac_cpp_err=$ac_c_preproc_warn_flag
2387 if test -z "$ac_cpp_err"; then
2388 # Broken: success on invalid input.
2391 echo "$as_me: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2393 # Passes both tests.
2397 rm -f conftest.err conftest.$ac_ext
2400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2401 rm -f conftest.err conftest.$ac_ext
2402 if $ac_preproc_ok; then
2414 echo "$as_me:2414: result: $CPP" >&5
2415 echo "${ECHO_T}$CPP" >&6
2417 for ac_c_preproc_warn_flag in '' yes
2419 # Use a header file that comes with gcc, so configuring glibc
2420 # with a fresh cross-compiler works.
2421 # On the NeXT, cc -E runs the code through the compiler's parser,
2422 # not just through cpp. "Syntax error" is here to catch this case.
2423 cat >conftest.$ac_ext <<_ACEOF
2424 #line 2424 "configure"
2425 #include "confdefs.h"
2429 if { (eval echo "$as_me:2429: \"$ac_cpp conftest.$ac_ext\"") >&5
2430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2432 egrep -v '^ *\+' conftest.er1 >conftest.err
2434 cat conftest.err >&5
2435 echo "$as_me:2435: \$? = $ac_status" >&5
2436 (exit $ac_status); } >/dev/null; then
2437 if test -s conftest.err; then
2438 ac_cpp_err=$ac_c_preproc_warn_flag
2445 if test -z "$ac_cpp_err"; then
2448 echo "$as_me: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2450 # Broken: fails on valid input.
2453 rm -f conftest.err conftest.$ac_ext
2455 # OK, works on sane cases. Now check whether non-existent headers
2456 # can be detected and how.
2457 cat >conftest.$ac_ext <<_ACEOF
2458 #line 2458 "configure"
2459 #include "confdefs.h"
2460 #include <ac_nonexistent.h>
2462 if { (eval echo "$as_me:2462: \"$ac_cpp conftest.$ac_ext\"") >&5
2463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2465 egrep -v '^ *\+' conftest.er1 >conftest.err
2467 cat conftest.err >&5
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); } >/dev/null; then
2470 if test -s conftest.err; then
2471 ac_cpp_err=$ac_c_preproc_warn_flag
2478 if test -z "$ac_cpp_err"; then
2479 # Broken: success on invalid input.
2482 echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2484 # Passes both tests.
2488 rm -f conftest.err conftest.$ac_ext
2491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2492 rm -f conftest.err conftest.$ac_ext
2493 if $ac_preproc_ok; then
2496 { { echo "$as_me:2496: error: C preprocessor \"$CPP\" fails sanity check" >&5
2497 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2498 { (exit 1); exit 1; }; }
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 ac_main_return=return
2508 if test $ac_cv_c_compiler_gnu = yes; then
2509 echo "$as_me:2509: checking whether $CC needs -traditional" >&5
2510 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2511 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 ac_pattern="Autoconf.*'x'"
2515 cat >conftest.$ac_ext <<_ACEOF
2516 #line 2516 "configure"
2517 #include "confdefs.h"
2519 int Autoconf = TIOCGETP;
2521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2522 egrep "$ac_pattern" >/dev/null 2>&1; then
2523 ac_cv_prog_gcc_traditional=yes
2525 ac_cv_prog_gcc_traditional=no
2529 if test $ac_cv_prog_gcc_traditional = no; then
2530 cat >conftest.$ac_ext <<_ACEOF
2531 #line 2531 "configure"
2532 #include "confdefs.h"
2534 int Autoconf = TCGETA;
2536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2537 egrep "$ac_pattern" >/dev/null 2>&1; then
2538 ac_cv_prog_gcc_traditional=yes
2544 echo "$as_me:2544: result: $ac_cv_prog_gcc_traditional" >&5
2545 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2546 if test $ac_cv_prog_gcc_traditional = yes; then
2547 CC="$CC -traditional"
2551 echo "$as_me:2551: checking whether $CC understands -c and -o together" >&5
2552 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2553 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 cat > conftest.$ac_ext <<CF_EOF
2560 ${cf_cv_main_return:-return}(0);
2563 # We do the test twice because some compilers refuse to overwrite an
2564 # existing .o file with -o, though they will create one.
2565 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2566 if { (eval echo "$as_me:2566: \"$ac_try\"") >&5
2569 echo "$as_me:2569: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 test -f conftest2.$ac_objext && { (eval echo "$as_me:2571: \"$ac_try\"") >&5
2574 echo "$as_me:2574: \$? = $ac_status" >&5
2575 (exit $ac_status); };
2577 eval cf_cv_prog_CC_c_o=yes
2579 eval cf_cv_prog_CC_c_o=no
2584 if test $cf_cv_prog_CC_c_o = yes; then
2585 echo "$as_me:2585: result: yes" >&5
2586 echo "${ECHO_T}yes" >&6
2588 echo "$as_me:2588: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2592 if test "$cross_compiling" = yes ; then
2595 case "$cf_cv_system_name" in
2596 (dragonfly*|mirbsd*|freebsd*)
2597 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2599 (*) LDPATH=$PATH:/sbin:/usr/sbin
2600 # Extract the first word of "ldconfig", so it can be a program name with args.
2601 set dummy ldconfig; ac_word=$2
2602 echo "$as_me:2602: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2604 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2612 ac_save_IFS=$IFS; IFS=$ac_path_separator
2614 for ac_dir in $ac_dummy; do
2616 test -z "$ac_dir" && ac_dir=.
2617 if $as_executable_p "$ac_dir/$ac_word"; then
2618 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2619 echo "$as_me:2619: found $ac_dir/$ac_word" >&5
2627 LDCONFIG=$ac_cv_path_LDCONFIG
2629 if test -n "$LDCONFIG"; then
2630 echo "$as_me:2630: result: $LDCONFIG" >&5
2631 echo "${ECHO_T}$LDCONFIG" >&6
2633 echo "$as_me:2633: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2641 echo "$as_me:2641: checking if you want to ensure bool is consistent with C++" >&5
2642 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2644 # Check whether --with-cxx or --without-cxx was given.
2645 if test "${with_cxx+set}" = set; then
2647 cf_with_cxx=$withval
2651 echo "$as_me:2651: result: $cf_with_cxx" >&5
2652 echo "${ECHO_T}$cf_with_cxx" >&6
2653 if test "X$cf_with_cxx" = Xno ; then
2657 # with autoconf 2.13, we can change the error to a warning:
2659 ac_cpp='$CXXCPP $CPPFLAGS'
2660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2663 ac_main_return=return
2664 if test -n "$ac_tool_prefix"; then
2665 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2669 echo "$as_me:2669: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_prog_CXX+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test -n "$CXX"; then
2675 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2677 ac_save_IFS=$IFS; IFS=$ac_path_separator
2679 for ac_dir in $ac_dummy; do
2681 test -z "$ac_dir" && ac_dir=.
2682 $as_executable_p "$ac_dir/$ac_word" || continue
2683 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2684 echo "$as_me:2684: found $ac_dir/$ac_word" >&5
2691 if test -n "$CXX"; then
2692 echo "$as_me:2692: result: $CXX" >&5
2693 echo "${ECHO_T}$CXX" >&6
2695 echo "$as_me:2695: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2699 test -n "$CXX" && break
2702 if test -z "$CXX"; then
2704 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy $ac_prog; ac_word=$2
2708 echo "$as_me:2708: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 if test -n "$ac_ct_CXX"; then
2714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2716 ac_save_IFS=$IFS; IFS=$ac_path_separator
2718 for ac_dir in $ac_dummy; do
2720 test -z "$ac_dir" && ac_dir=.
2721 $as_executable_p "$ac_dir/$ac_word" || continue
2722 ac_cv_prog_ac_ct_CXX="$ac_prog"
2723 echo "$as_me:2723: found $ac_dir/$ac_word" >&5
2729 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2730 if test -n "$ac_ct_CXX"; then
2731 echo "$as_me:2731: result: $ac_ct_CXX" >&5
2732 echo "${ECHO_T}$ac_ct_CXX" >&6
2734 echo "$as_me:2734: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2738 test -n "$ac_ct_CXX" && break
2740 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2745 # Provide some information about the compiler.
2746 echo "$as_me:2746:" \
2747 "checking for C++ compiler version" >&5
2748 ac_compiler=`set X $ac_compile; echo $2`
2749 { (eval echo "$as_me:2749: \"$ac_compiler --version </dev/null >&5\"") >&5
2750 (eval $ac_compiler --version </dev/null >&5) 2>&5
2752 echo "$as_me:2752: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754 { (eval echo "$as_me:2754: \"$ac_compiler -v </dev/null >&5\"") >&5
2755 (eval $ac_compiler -v </dev/null >&5) 2>&5
2757 echo "$as_me:2757: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (eval echo "$as_me:2759: \"$ac_compiler -V </dev/null >&5\"") >&5
2760 (eval $ac_compiler -V </dev/null >&5) 2>&5
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2765 echo "$as_me:2765: checking whether we are using the GNU C++ compiler" >&5
2766 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2767 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 cat >conftest.$ac_ext <<_ACEOF
2771 #line 2771 "configure"
2772 #include "confdefs.h"
2785 rm -f conftest.$ac_objext
2786 if { (eval echo "$as_me:2786: \"$ac_compile\"") >&5
2787 (eval $ac_compile) 2>&5
2789 echo "$as_me:2789: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:2792: \"$ac_try\"") >&5
2795 echo "$as_me:2795: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2799 echo "$as_me: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2803 rm -f conftest.$ac_objext conftest.$ac_ext
2804 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2807 echo "$as_me:2807: result: $ac_cv_cxx_compiler_gnu" >&5
2808 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2809 GXX=`test $ac_compiler_gnu = yes && echo yes`
2810 ac_test_CXXFLAGS=${CXXFLAGS+set}
2811 ac_save_CXXFLAGS=$CXXFLAGS
2813 echo "$as_me:2813: checking whether $CXX accepts -g" >&5
2814 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2815 if test "${ac_cv_prog_cxx_g+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line 2819 "configure"
2820 #include "confdefs.h"
2830 rm -f conftest.$ac_objext
2831 if { (eval echo "$as_me:2831: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>&5
2834 echo "$as_me:2834: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:2837: \"$ac_try\"") >&5
2840 echo "$as_me:2840: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_prog_cxx_g=yes
2844 echo "$as_me: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2848 rm -f conftest.$ac_objext conftest.$ac_ext
2850 echo "$as_me:2850: result: $ac_cv_prog_cxx_g" >&5
2851 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2852 if test "$ac_test_CXXFLAGS" = set; then
2853 CXXFLAGS=$ac_save_CXXFLAGS
2854 elif test $ac_cv_prog_cxx_g = yes; then
2855 if test "$GXX" = yes; then
2861 if test "$GXX" = yes; then
2867 for ac_declaration in \
2869 '#include <stdlib.h>' \
2870 'extern "C" void std::exit (int) throw (); using std::exit;' \
2871 'extern "C" void std::exit (int); using std::exit;' \
2872 'extern "C" void exit (int) throw ();' \
2873 'extern "C" void exit (int);' \
2876 cat >conftest.$ac_ext <<_ACEOF
2877 #line 2877 "configure"
2878 #include "confdefs.h"
2889 rm -f conftest.$ac_objext
2890 if { (eval echo "$as_me:2890: \"$ac_compile\"") >&5
2891 (eval $ac_compile) 2>&5
2893 echo "$as_me:2893: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:2896: \"$ac_try\"") >&5
2899 echo "$as_me:2899: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2903 echo "$as_me: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2907 rm -f conftest.$ac_objext conftest.$ac_ext
2908 cat >conftest.$ac_ext <<_ACEOF
2909 #line 2909 "configure"
2910 #include "confdefs.h"
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:2921: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>&5
2924 echo "$as_me:2924: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:2927: \"$ac_try\"") >&5
2930 echo "$as_me:2930: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2937 rm -f conftest.$ac_objext conftest.$ac_ext
2940 if test -n "$ac_declaration"; then
2941 echo '#ifdef __cplusplus' >>confdefs.h
2942 echo $ac_declaration >>confdefs.h
2943 echo '#endif' >>confdefs.h
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 ac_main_return=return
2954 ac_cpp='$CXXCPP $CPPFLAGS'
2955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2958 ac_main_return=return
2960 if test "x$cf_with_cxx" != xno
2962 # Several of the C++ configurations do not work, particularly when
2963 # cross-compiling (20140913 -TD)
2964 echo "$as_me:2964: checking if $CXX works" >&5
2965 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2967 save_CPPFLAGS="$CPPFLAGS"
2968 eval cf_includedir=${includedir}
2969 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #line 2972 "configure"
2973 #include "confdefs.h"
2982 printf("Hello world!\n")
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3007 CPPFLAGS="$save_CPPFLAGS"
3009 echo "$as_me:3009: result: $cf_cxx_works" >&5
3010 echo "${ECHO_T}$cf_cxx_works" >&6
3011 if test "x$cf_cxx_works" = xno
3013 { echo "$as_me:3013: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3014 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3015 cf_with_cxx=no; CXX=""; GXX="";
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_main_return=return
3025 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3026 if test "$CXX" = "g++" ; then
3027 # Extract the first word of "g++", so it can be a program name with args.
3028 set dummy g++; ac_word=$2
3029 echo "$as_me:3029: checking for $ac_word" >&5
3030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3031 if test "${ac_cv_path_CXX+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3039 ac_save_IFS=$IFS; IFS=$ac_path_separator
3041 for ac_dir in $ac_dummy; do
3043 test -z "$ac_dir" && ac_dir=.
3044 if $as_executable_p "$ac_dir/$ac_word"; then
3045 ac_cv_path_CXX="$ac_dir/$ac_word"
3046 echo "$as_me:3046: found $ac_dir/$ac_word" >&5
3056 if test -n "$CXX"; then
3057 echo "$as_me:3057: result: $CXX" >&5
3058 echo "${ECHO_T}$CXX" >&6
3060 echo "$as_me:3060: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3067 { echo "$as_me:3067: WARNING: You don't have any C++ compiler, too bad" >&5
3068 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3069 cf_with_cxx=no; CXX=""; GXX="";
3075 if test "$GXX" = yes; then
3076 echo "$as_me:3076: checking version of ${CXX:-g++}" >&5
3077 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3078 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3079 if test -z "$GXX_VERSION"
3084 echo "$as_me:3084: result: $GXX_VERSION" >&5
3085 echo "${ECHO_T}$GXX_VERSION" >&6
3088 case $GXX_VERSION in
3090 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3092 { echo "$as_me:3092: WARNING: templates do not work" >&5
3093 echo "$as_me: WARNING: templates do not work" >&2;}
3097 echo "$as_me:3097: checking if you want to build C++ binding and demo" >&5
3098 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3100 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3101 if test "${with_cxx_binding+set}" = set; then
3102 withval="$with_cxx_binding"
3103 cf_with_cxx_binding=$withval
3105 cf_with_cxx_binding=$cf_with_cxx
3107 echo "$as_me:3107: result: $cf_with_cxx_binding" >&5
3108 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3110 echo "$as_me:3110: checking if you want to build with Ada95" >&5
3111 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3112 echo "$as_me:3112: result: $cf_with_ada" >&5
3113 echo "${ECHO_T}$cf_with_ada" >&6
3115 echo "$as_me:3115: checking if you want to install terminal database" >&5
3116 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3118 # Check whether --enable-db-install or --disable-db-install was given.
3119 if test "${enable_db_install+set}" = set; then
3120 enableval="$enable_db_install"
3121 cf_with_db_install=$enableval
3123 cf_with_db_install=yes
3125 echo "$as_me:3125: result: $cf_with_db_install" >&5
3126 echo "${ECHO_T}$cf_with_db_install" >&6
3128 echo "$as_me:3128: checking if you want to install manpages" >&5
3129 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3131 # Check whether --with-manpages or --without-manpages was given.
3132 if test "${with_manpages+set}" = set; then
3133 withval="$with_manpages"
3134 cf_with_manpages=$withval
3136 cf_with_manpages=yes
3138 echo "$as_me:3138: result: $cf_with_manpages" >&5
3139 echo "${ECHO_T}$cf_with_manpages" >&6
3141 echo "$as_me:3141: checking if you want to build programs such as tic" >&5
3142 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3144 # Check whether --with-progs or --without-progs was given.
3145 if test "${with_progs+set}" = set; then
3146 withval="$with_progs"
3147 cf_with_progs=$withval
3151 echo "$as_me:3151: result: $cf_with_progs" >&5
3152 echo "${ECHO_T}$cf_with_progs" >&6
3154 echo "$as_me:3154: checking if you want to build test-programs" >&5
3155 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3157 # Check whether --with-tests or --without-tests was given.
3158 if test "${with_tests+set}" = set; then
3159 withval="$with_tests"
3160 cf_with_tests=$withval
3164 echo "$as_me:3164: result: $cf_with_tests" >&5
3165 echo "${ECHO_T}$cf_with_tests" >&6
3167 echo "$as_me:3167: checking if you wish to install curses.h" >&5
3168 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3170 # Check whether --with-curses-h or --without-curses-h was given.
3171 if test "${with_curses_h+set}" = set; then
3172 withval="$with_curses_h"
3173 with_curses_h=$withval
3177 echo "$as_me:3177: result: $with_curses_h" >&5
3178 echo "${ECHO_T}$with_curses_h" >&6
3180 modules_to_build="ncurses"
3181 if test "X$cf_with_progs" != Xno ; then
3182 modules_to_build="$modules_to_build progs tack"
3184 modules_to_build="$modules_to_build panel menu form"
3186 test "$program_prefix" != NONE &&
3187 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3188 # Use a double $ so make ignores it.
3189 test "$program_suffix" != NONE &&
3190 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3191 # Double any \ or $. echo might interpret backslashes.
3192 # By default was `s,x,x', remove it if useless.
3193 cat <<\_ACEOF >conftest.sed
3194 s/[\\$]/&&/g;s/;s,x,x,$//
3196 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3199 for ac_prog in mawk gawk nawk awk
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 echo "$as_me:3203: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_AWK+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -n "$AWK"; then
3209 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3211 ac_save_IFS=$IFS; IFS=$ac_path_separator
3213 for ac_dir in $ac_dummy; do
3215 test -z "$ac_dir" && ac_dir=.
3216 $as_executable_p "$ac_dir/$ac_word" || continue
3217 ac_cv_prog_AWK="$ac_prog"
3218 echo "$as_me:3218: found $ac_dir/$ac_word" >&5
3225 if test -n "$AWK"; then
3226 echo "$as_me:3226: result: $AWK" >&5
3227 echo "${ECHO_T}$AWK" >&6
3229 echo "$as_me:3229: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3233 test -n "$AWK" && break
3236 test -z "$AWK" && { { echo "$as_me:3236: error: No awk program found" >&5
3237 echo "$as_me: error: No awk program found" >&2;}
3238 { (exit 1); exit 1; }; }
3240 echo "$as_me:3240: checking for egrep" >&5
3241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3242 if test "${ac_cv_prog_egrep+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3246 then ac_cv_prog_egrep='grep -E'
3247 else ac_cv_prog_egrep='egrep'
3250 echo "$as_me:3250: result: $ac_cv_prog_egrep" >&5
3251 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3252 EGREP=$ac_cv_prog_egrep
3254 test -z "$EGREP" && { { echo "$as_me:3254: error: No egrep program found" >&5
3255 echo "$as_me: error: No egrep program found" >&2;}
3256 { (exit 1); exit 1; }; }
3258 # Find a good install program. We prefer a C program (faster),
3259 # so one script is as good as another. But avoid the broken or
3260 # incompatible versions:
3261 # SysV /etc/install, /usr/sbin/install
3262 # SunOS /usr/etc/install
3263 # IRIX /sbin/install
3265 # AmigaOS /C/install, which installs bootblocks on floppy discs
3266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3269 # ./install, which can be erroneously created by make from ./install.sh.
3270 echo "$as_me:3270: checking for a BSD compatible install" >&5
3271 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3272 if test -z "$INSTALL"; then
3273 if test "${ac_cv_path_install+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 ac_save_IFS=$IFS; IFS=$ac_path_separator
3277 for ac_dir in $PATH; do
3279 # Account for people who put trailing slashes in PATH elements.
3281 / | ./ | .// | /cC/* \
3282 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3285 # OSF1 and SCO ODT 3.0 have their own names for install.
3286 # Don't use installbsd from OSF since it installs stuff as root
3288 for ac_prog in ginstall scoinst install; do
3289 if $as_executable_p "$ac_dir/$ac_prog"; then
3290 if test $ac_prog = install &&
3291 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3292 # AIX install. It has an incompatible calling convention.
3294 elif test $ac_prog = install &&
3295 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3296 # program-specific install script used by HP pwplus--don't use.
3299 ac_cv_path_install="$ac_dir/$ac_prog -c"
3309 if test "${ac_cv_path_install+set}" = set; then
3310 INSTALL=$ac_cv_path_install
3312 # As a last resort, use the slow shell script. We don't cache a
3313 # path for INSTALL within a source directory, because that will
3314 # break other packages using the cache if that directory is
3315 # removed, or if the path is relative.
3316 INSTALL=$ac_install_sh
3319 echo "$as_me:3319: result: $INSTALL" >&5
3320 echo "${ECHO_T}$INSTALL" >&6
3322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3323 # It thinks the first close brace ends the variable substitution.
3324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3334 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3335 test -z "$cf_dir" && cf_dir=.
3336 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3340 for ac_prog in lint cppcheck splint
3342 # Extract the first word of "$ac_prog", so it can be a program name with args.
3343 set dummy $ac_prog; ac_word=$2
3344 echo "$as_me:3344: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_LINT+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 if test -n "$LINT"; then
3350 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3352 ac_save_IFS=$IFS; IFS=$ac_path_separator
3354 for ac_dir in $ac_dummy; do
3356 test -z "$ac_dir" && ac_dir=.
3357 $as_executable_p "$ac_dir/$ac_word" || continue
3358 ac_cv_prog_LINT="$ac_prog"
3359 echo "$as_me:3359: found $ac_dir/$ac_word" >&5
3365 LINT=$ac_cv_prog_LINT
3366 if test -n "$LINT"; then
3367 echo "$as_me:3367: result: $LINT" >&5
3368 echo "${ECHO_T}$LINT" >&6
3370 echo "$as_me:3370: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 test -n "$LINT" && break
3377 echo "$as_me:3377: checking whether ln -s works" >&5
3378 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3380 if test "$LN_S" = "ln -s"; then
3381 echo "$as_me:3381: result: yes" >&5
3382 echo "${ECHO_T}yes" >&6
3384 echo "$as_me:3384: result: no, using $LN_S" >&5
3385 echo "${ECHO_T}no, using $LN_S" >&6
3388 echo "$as_me:3388: checking if $LN_S -f options work" >&5
3389 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3391 rm -f conf$$.src conf$$dst
3393 echo first >conf$$.src
3394 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3399 rm -f conf$$.dst conf$$src
3400 echo "$as_me:3400: result: $cf_prog_ln_sf" >&5
3401 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3403 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3405 echo "$as_me:3405: checking for long file names" >&5
3406 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3407 if test "${ac_cv_sys_long_file_names+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 ac_cv_sys_long_file_names=yes
3411 # Test for long file names in all the places we know might matter:
3412 # . the current directory, where building will happen
3413 # $prefix/lib where we will be installing things
3414 # $exec_prefix/lib likewise
3415 # eval it to expand exec_prefix.
3416 # $TMPDIR if set, where it might want to write temporary files
3417 # if $TMPDIR is not set:
3418 # /tmp where it might want to write temporary files
3421 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3424 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3426 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3427 test -d $ac_dir || continue
3428 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3429 ac_xdir=$ac_dir/cf$$
3430 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3431 ac_tf1=$ac_xdir/conftest9012345
3432 ac_tf2=$ac_xdir/conftest9012346
3433 (echo 1 >$ac_tf1) 2>/dev/null
3434 (echo 2 >$ac_tf2) 2>/dev/null
3435 ac_val=`cat $ac_tf1 2>/dev/null`
3436 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3437 ac_cv_sys_long_file_names=no
3438 rm -rf $ac_xdir 2>/dev/null
3441 rm -rf $ac_xdir 2>/dev/null
3444 echo "$as_me:3444: result: $ac_cv_sys_long_file_names" >&5
3445 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3446 if test $ac_cv_sys_long_file_names = yes; then
3448 cat >>confdefs.h <<\EOF
3449 #define HAVE_LONG_FILE_NAMES 1
3454 # if we find pkg-config, check if we should install the ".pc" files.
3456 echo "$as_me:3456: checking if you want to use pkg-config" >&5
3457 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3459 # Check whether --with-pkg-config or --without-pkg-config was given.
3460 if test "${with_pkg_config+set}" = set; then
3461 withval="$with_pkg_config"
3462 cf_pkg_config=$withval
3466 echo "$as_me:3466: result: $cf_pkg_config" >&5
3467 echo "${ECHO_T}$cf_pkg_config" >&6
3469 case $cf_pkg_config in
3475 if test -n "$ac_tool_prefix"; then
3476 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3477 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3478 echo "$as_me:3478: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3488 ac_save_IFS=$IFS; IFS=$ac_path_separator
3490 for ac_dir in $ac_dummy; do
3492 test -z "$ac_dir" && ac_dir=.
3493 if $as_executable_p "$ac_dir/$ac_word"; then
3494 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3495 echo "$as_me:3495: found $ac_dir/$ac_word" >&5
3503 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3505 if test -n "$PKG_CONFIG"; then
3506 echo "$as_me:3506: result: $PKG_CONFIG" >&5
3507 echo "${ECHO_T}$PKG_CONFIG" >&6
3509 echo "$as_me:3509: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3514 if test -z "$ac_cv_path_PKG_CONFIG"; then
3515 ac_pt_PKG_CONFIG=$PKG_CONFIG
3516 # Extract the first word of "pkg-config", so it can be a program name with args.
3517 set dummy pkg-config; ac_word=$2
3518 echo "$as_me:3518: checking for $ac_word" >&5
3519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3520 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 case $ac_pt_PKG_CONFIG in
3525 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3528 ac_save_IFS=$IFS; IFS=$ac_path_separator
3530 for ac_dir in $ac_dummy; do
3532 test -z "$ac_dir" && ac_dir=.
3533 if $as_executable_p "$ac_dir/$ac_word"; then
3534 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3535 echo "$as_me:3535: found $ac_dir/$ac_word" >&5
3540 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3544 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3546 if test -n "$ac_pt_PKG_CONFIG"; then
3547 echo "$as_me:3547: result: $ac_pt_PKG_CONFIG" >&5
3548 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3550 echo "$as_me:3550: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3554 PKG_CONFIG=$ac_pt_PKG_CONFIG
3556 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3565 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3566 if test "$PKG_CONFIG" != none ; then
3568 if test "x$prefix" != xNONE; then
3569 cf_path_syntax="$prefix"
3571 cf_path_syntax="$ac_default_prefix"
3574 case ".$PKG_CONFIG" in
3579 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3581 (.\${*prefix}*|.\${*dir}*)
3582 eval PKG_CONFIG="$PKG_CONFIG"
3583 case ".$PKG_CONFIG" in
3585 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3590 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3593 { { echo "$as_me:3593: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3594 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3595 { (exit 1); exit 1; }; }
3599 elif test "x$cf_pkg_config" != xno ; then
3600 { echo "$as_me:3600: WARNING: pkg-config is not installed" >&5
3601 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3606 echo "$as_me:3606: checking for pkg-config library directory" >&5
3607 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3610 echo "$as_me:3610: checking for $PKG_CONFIG library directory" >&5
3611 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3615 PKG_CONFIG_LIBDIR=no
3617 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3618 if test "${with_pkg_config_libdir+set}" = set; then
3619 withval="$with_pkg_config_libdir"
3620 PKG_CONFIG_LIBDIR=$withval
3622 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3625 case x$PKG_CONFIG_LIBDIR in
3629 # Look for the library directory using the same prefix as the executable
3630 if test "x$PKG_CONFIG" = xnone
3634 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3637 # If you don't like using the default architecture, you have to specify the
3638 # intended library directory and corresponding compiler/linker options.
3640 # This case allows for Debian's 2014-flavor of multiarch, along with the
3641 # most common variations before that point. Some other variants spell the
3642 # directory differently, e.g., "pkg-config", and put it in unusual places.
3643 # pkg-config has always been poorly standardized, which is ironic...
3644 case x`(arch) 2>/dev/null` in
3647 $cf_path/lib/*64-linux-gnu \
3655 $cf_path/lib/*-linux-gnu \
3663 test -n "$verbose" && echo " list..." 1>&6
3665 echo "${as_me:-configure}:3665: testing list... ..." 1>&5
3667 for cf_config in $cf_search_path
3669 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3671 echo "${as_me:-configure}:3671: testing checking $cf_config/pkgconfig ..." 1>&5
3673 if test -d $cf_config/pkgconfig
3675 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3676 echo "$as_me:3676: checking done" >&5
3677 echo $ECHO_N "checking done... $ECHO_C" >&6
3686 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3687 echo "$as_me:3687: result: $PKG_CONFIG_LIBDIR" >&5
3688 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3691 if test "x$PKG_CONFIG" != xnone
3693 echo "$as_me:3693: checking if we should install .pc files for $PKG_CONFIG" >&5
3694 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3696 echo "$as_me:3696: checking if we should install .pc files" >&5
3697 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3700 # Check whether --enable-pc-files or --disable-pc-files was given.
3701 if test "${enable_pc_files+set}" = set; then
3702 enableval="$enable_pc_files"
3703 enable_pc_files=$enableval
3707 echo "$as_me:3707: result: $enable_pc_files" >&5
3708 echo "${ECHO_T}$enable_pc_files" >&6
3710 if test "x$enable_pc_files" != xno
3713 case "x$PKG_CONFIG_LIBDIR" in
3715 { echo "$as_me:3715: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3716 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3720 if test "x$prefix" != xNONE; then
3721 cf_path_syntax="$prefix"
3723 cf_path_syntax="$ac_default_prefix"
3726 case ".$PKG_CONFIG_LIBDIR" in
3731 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3733 (.\${*prefix}*|.\${*dir}*)
3734 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3735 case ".$PKG_CONFIG_LIBDIR" in
3737 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3742 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3745 { { echo "$as_me:3745: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3746 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3747 { (exit 1); exit 1; }; }
3757 if test -z "$MAKE_PC_FILES"
3759 echo "$as_me:3759: checking for suffix to add to pc-files" >&5
3760 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3762 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3763 if test "${with_pc_suffix+set}" = set; then
3764 withval="$with_pc_suffix"
3769 (*) PC_MODULE_SUFFIX="$withval"
3773 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3774 echo "$as_me:3774: result: $PC_MODULE_SUFFIX" >&5
3775 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3776 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3780 echo "$as_me:3780: checking if we should assume mixed-case filenames" >&5
3781 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3783 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3784 if test "${enable_mixed_case+set}" = set; then
3785 enableval="$enable_mixed_case"
3786 enable_mixedcase=$enableval
3788 enable_mixedcase=auto
3790 echo "$as_me:3790: result: $enable_mixedcase" >&5
3791 echo "${ECHO_T}$enable_mixedcase" >&6
3792 if test "$enable_mixedcase" = "auto" ; then
3794 echo "$as_me:3794: checking if filesystem supports mixed-case filenames" >&5
3795 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3796 if test "${cf_cv_mixedcase+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test "$cross_compiling" = yes ; then
3801 case $target_alias in
3802 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3810 rm -f conftest CONFTEST
3812 if test -f CONFTEST ; then
3817 rm -f conftest CONFTEST
3821 echo "$as_me:3821: result: $cf_cv_mixedcase" >&5
3822 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3823 test "$cf_cv_mixedcase" = yes &&
3824 cat >>confdefs.h <<\EOF
3825 #define MIXEDCASE_FILENAMES 1
3829 cf_cv_mixedcase=$enable_mixedcase
3830 if test "x$enable_mixedcase" = "xyes" ; then
3832 cat >>confdefs.h <<\EOF
3833 #define MIXEDCASE_FILENAMES 1
3839 # do this after mixed-case option (tags/TAGS is not as important as tic).
3840 echo "$as_me:3840: checking whether ${MAKE-make} sets \${MAKE}" >&5
3841 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3842 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3843 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 cat >conftest.make <<\EOF
3848 @echo 'ac_maketemp="${MAKE}"'
3850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3851 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3852 if test -n "$ac_maketemp"; then
3853 eval ac_cv_prog_make_${ac_make}_set=yes
3855 eval ac_cv_prog_make_${ac_make}_set=no
3859 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3860 echo "$as_me:3860: result: yes" >&5
3861 echo "${ECHO_T}yes" >&6
3864 echo "$as_me:3864: result: no" >&5
3865 echo "${ECHO_T}no" >&6
3866 SET_MAKE="MAKE=${MAKE-make}"
3869 for ac_prog in exctags ctags
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 echo "$as_me:3873: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_CTAGS+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 if test -n "$CTAGS"; then
3879 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3881 ac_save_IFS=$IFS; IFS=$ac_path_separator
3883 for ac_dir in $ac_dummy; do
3885 test -z "$ac_dir" && ac_dir=.
3886 $as_executable_p "$ac_dir/$ac_word" || continue
3887 ac_cv_prog_CTAGS="$ac_prog"
3888 echo "$as_me:3888: found $ac_dir/$ac_word" >&5
3894 CTAGS=$ac_cv_prog_CTAGS
3895 if test -n "$CTAGS"; then
3896 echo "$as_me:3896: result: $CTAGS" >&5
3897 echo "${ECHO_T}$CTAGS" >&6
3899 echo "$as_me:3899: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3903 test -n "$CTAGS" && break
3906 for ac_prog in exetags etags
3908 # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 echo "$as_me:3910: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_ETAGS+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 if test -n "$ETAGS"; then
3916 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3918 ac_save_IFS=$IFS; IFS=$ac_path_separator
3920 for ac_dir in $ac_dummy; do
3922 test -z "$ac_dir" && ac_dir=.
3923 $as_executable_p "$ac_dir/$ac_word" || continue
3924 ac_cv_prog_ETAGS="$ac_prog"
3925 echo "$as_me:3925: found $ac_dir/$ac_word" >&5
3931 ETAGS=$ac_cv_prog_ETAGS
3932 if test -n "$ETAGS"; then
3933 echo "$as_me:3933: result: $ETAGS" >&5
3934 echo "${ECHO_T}$ETAGS" >&6
3936 echo "$as_me:3936: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3940 test -n "$ETAGS" && break
3943 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3944 set dummy ${CTAGS:-ctags}; ac_word=$2
3945 echo "$as_me:3945: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 if test -n "$MAKE_LOWER_TAGS"; then
3951 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3953 ac_save_IFS=$IFS; IFS=$ac_path_separator
3955 for ac_dir in $ac_dummy; do
3957 test -z "$ac_dir" && ac_dir=.
3958 $as_executable_p "$ac_dir/$ac_word" || continue
3959 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3960 echo "$as_me:3960: found $ac_dir/$ac_word" >&5
3964 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3967 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3968 if test -n "$MAKE_LOWER_TAGS"; then
3969 echo "$as_me:3969: result: $MAKE_LOWER_TAGS" >&5
3970 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3972 echo "$as_me:3972: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3976 if test "$cf_cv_mixedcase" = yes ; then
3977 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3978 set dummy ${ETAGS:-etags}; ac_word=$2
3979 echo "$as_me:3979: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 if test -n "$MAKE_UPPER_TAGS"; then
3985 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3987 ac_save_IFS=$IFS; IFS=$ac_path_separator
3989 for ac_dir in $ac_dummy; do
3991 test -z "$ac_dir" && ac_dir=.
3992 $as_executable_p "$ac_dir/$ac_word" || continue
3993 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3994 echo "$as_me:3994: found $ac_dir/$ac_word" >&5
3998 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4001 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4002 if test -n "$MAKE_UPPER_TAGS"; then
4003 echo "$as_me:4003: result: $MAKE_UPPER_TAGS" >&5
4004 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4006 echo "$as_me:4006: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4014 if test "$MAKE_UPPER_TAGS" = yes ; then
4020 if test "$MAKE_LOWER_TAGS" = yes ; then
4026 echo "$as_me:4026: checking for makeflags variable" >&5
4027 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4028 if test "${cf_cv_makeflags+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4035 cat >cf_makeflags.tmp <<CF_EOF
4038 @ echo '.$cf_option'
4040 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4041 case "$cf_result" in
4043 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4044 case "$cf_result" in
4045 (.*CC=*) cf_cv_makeflags=
4047 (*) cf_cv_makeflags=$cf_option
4053 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4057 rm -f cf_makeflags.tmp
4060 echo "$as_me:4060: result: $cf_cv_makeflags" >&5
4061 echo "${ECHO_T}$cf_cv_makeflags" >&6
4063 if test -n "$ac_tool_prefix"; then
4064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4066 echo "$as_me:4066: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_RANLIB+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 if test -n "$RANLIB"; then
4072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4074 ac_save_IFS=$IFS; IFS=$ac_path_separator
4076 for ac_dir in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir=.
4079 $as_executable_p "$ac_dir/$ac_word" || continue
4080 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4081 echo "$as_me:4081: found $ac_dir/$ac_word" >&5
4087 RANLIB=$ac_cv_prog_RANLIB
4088 if test -n "$RANLIB"; then
4089 echo "$as_me:4089: result: $RANLIB" >&5
4090 echo "${ECHO_T}$RANLIB" >&6
4092 echo "$as_me:4092: result: no" >&5
4093 echo "${ECHO_T}no" >&6
4097 if test -z "$ac_cv_prog_RANLIB"; then
4098 ac_ct_RANLIB=$RANLIB
4099 # Extract the first word of "ranlib", so it can be a program name with args.
4100 set dummy ranlib; ac_word=$2
4101 echo "$as_me:4101: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 if test -n "$ac_ct_RANLIB"; then
4107 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4109 ac_save_IFS=$IFS; IFS=$ac_path_separator
4111 for ac_dir in $ac_dummy; do
4113 test -z "$ac_dir" && ac_dir=.
4114 $as_executable_p "$ac_dir/$ac_word" || continue
4115 ac_cv_prog_ac_ct_RANLIB="ranlib"
4116 echo "$as_me:4116: found $ac_dir/$ac_word" >&5
4120 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4123 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4124 if test -n "$ac_ct_RANLIB"; then
4125 echo "$as_me:4125: result: $ac_ct_RANLIB" >&5
4126 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4128 echo "$as_me:4128: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4132 RANLIB=$ac_ct_RANLIB
4134 RANLIB="$ac_cv_prog_RANLIB"
4137 if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4139 set dummy ${ac_tool_prefix}ld; ac_word=$2
4140 echo "$as_me:4140: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_prog_LD+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 if test -n "$LD"; then
4146 ac_cv_prog_LD="$LD" # Let the user override the test.
4148 ac_save_IFS=$IFS; IFS=$ac_path_separator
4150 for ac_dir in $ac_dummy; do
4152 test -z "$ac_dir" && ac_dir=.
4153 $as_executable_p "$ac_dir/$ac_word" || continue
4154 ac_cv_prog_LD="${ac_tool_prefix}ld"
4155 echo "$as_me:4155: found $ac_dir/$ac_word" >&5
4162 if test -n "$LD"; then
4163 echo "$as_me:4163: result: $LD" >&5
4164 echo "${ECHO_T}$LD" >&6
4166 echo "$as_me:4166: result: no" >&5
4167 echo "${ECHO_T}no" >&6
4171 if test -z "$ac_cv_prog_LD"; then
4173 # Extract the first word of "ld", so it can be a program name with args.
4174 set dummy ld; ac_word=$2
4175 echo "$as_me:4175: checking for $ac_word" >&5
4176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4177 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 if test -n "$ac_ct_LD"; then
4181 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4183 ac_save_IFS=$IFS; IFS=$ac_path_separator
4185 for ac_dir in $ac_dummy; do
4187 test -z "$ac_dir" && ac_dir=.
4188 $as_executable_p "$ac_dir/$ac_word" || continue
4189 ac_cv_prog_ac_ct_LD="ld"
4190 echo "$as_me:4190: found $ac_dir/$ac_word" >&5
4194 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4197 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4198 if test -n "$ac_ct_LD"; then
4199 echo "$as_me:4199: result: $ac_ct_LD" >&5
4200 echo "${ECHO_T}$ac_ct_LD" >&6
4202 echo "$as_me:4202: result: no" >&5
4203 echo "${ECHO_T}no" >&6
4211 if test -n "$ac_tool_prefix"; then
4212 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4213 set dummy ${ac_tool_prefix}ar; ac_word=$2
4214 echo "$as_me:4214: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_AR+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$AR"; then
4220 ac_cv_prog_AR="$AR" # Let the user override the test.
4222 ac_save_IFS=$IFS; IFS=$ac_path_separator
4224 for ac_dir in $ac_dummy; do
4226 test -z "$ac_dir" && ac_dir=.
4227 $as_executable_p "$ac_dir/$ac_word" || continue
4228 ac_cv_prog_AR="${ac_tool_prefix}ar"
4229 echo "$as_me:4229: found $ac_dir/$ac_word" >&5
4236 if test -n "$AR"; then
4237 echo "$as_me:4237: result: $AR" >&5
4238 echo "${ECHO_T}$AR" >&6
4240 echo "$as_me:4240: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4245 if test -z "$ac_cv_prog_AR"; then
4247 # Extract the first word of "ar", so it can be a program name with args.
4248 set dummy ar; ac_word=$2
4249 echo "$as_me:4249: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$ac_ct_AR"; then
4255 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4257 ac_save_IFS=$IFS; IFS=$ac_path_separator
4259 for ac_dir in $ac_dummy; do
4261 test -z "$ac_dir" && ac_dir=.
4262 $as_executable_p "$ac_dir/$ac_word" || continue
4263 ac_cv_prog_ac_ct_AR="ar"
4264 echo "$as_me:4264: found $ac_dir/$ac_word" >&5
4268 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4272 if test -n "$ac_ct_AR"; then
4273 echo "$as_me:4273: result: $ac_ct_AR" >&5
4274 echo "${ECHO_T}$ac_ct_AR" >&6
4276 echo "$as_me:4276: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4285 if test -n "$ac_tool_prefix"; then
4286 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4287 set dummy ${ac_tool_prefix}nm; ac_word=$2
4288 echo "$as_me:4288: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_prog_NM+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 if test -n "$NM"; then
4294 ac_cv_prog_NM="$NM" # Let the user override the test.
4296 ac_save_IFS=$IFS; IFS=$ac_path_separator
4298 for ac_dir in $ac_dummy; do
4300 test -z "$ac_dir" && ac_dir=.
4301 $as_executable_p "$ac_dir/$ac_word" || continue
4302 ac_cv_prog_NM="${ac_tool_prefix}nm"
4303 echo "$as_me:4303: found $ac_dir/$ac_word" >&5
4310 if test -n "$NM"; then
4311 echo "$as_me:4311: result: $NM" >&5
4312 echo "${ECHO_T}$NM" >&6
4314 echo "$as_me:4314: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4319 if test -z "$ac_cv_prog_NM"; then
4321 # Extract the first word of "nm", so it can be a program name with args.
4322 set dummy nm; ac_word=$2
4323 echo "$as_me:4323: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test -n "$ac_ct_NM"; then
4329 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4331 ac_save_IFS=$IFS; IFS=$ac_path_separator
4333 for ac_dir in $ac_dummy; do
4335 test -z "$ac_dir" && ac_dir=.
4336 $as_executable_p "$ac_dir/$ac_word" || continue
4337 ac_cv_prog_ac_ct_NM="nm"
4338 echo "$as_me:4338: found $ac_dir/$ac_word" >&5
4342 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4345 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4346 if test -n "$ac_ct_NM"; then
4347 echo "$as_me:4347: result: $ac_ct_NM" >&5
4348 echo "${ECHO_T}$ac_ct_NM" >&6
4350 echo "$as_me:4350: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}ar; ac_word=$2
4362 echo "$as_me:4362: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_prog_AR+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 if test -n "$AR"; then
4368 ac_cv_prog_AR="$AR" # Let the user override the test.
4370 ac_save_IFS=$IFS; IFS=$ac_path_separator
4372 for ac_dir in $ac_dummy; do
4374 test -z "$ac_dir" && ac_dir=.
4375 $as_executable_p "$ac_dir/$ac_word" || continue
4376 ac_cv_prog_AR="${ac_tool_prefix}ar"
4377 echo "$as_me:4377: found $ac_dir/$ac_word" >&5
4384 if test -n "$AR"; then
4385 echo "$as_me:4385: result: $AR" >&5
4386 echo "${ECHO_T}$AR" >&6
4388 echo "$as_me:4388: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4393 if test -z "$ac_cv_prog_AR"; then
4395 # Extract the first word of "ar", so it can be a program name with args.
4396 set dummy ar; ac_word=$2
4397 echo "$as_me:4397: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$ac_ct_AR"; then
4403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4405 ac_save_IFS=$IFS; IFS=$ac_path_separator
4407 for ac_dir in $ac_dummy; do
4409 test -z "$ac_dir" && ac_dir=.
4410 $as_executable_p "$ac_dir/$ac_word" || continue
4411 ac_cv_prog_ac_ct_AR="ar"
4412 echo "$as_me:4412: found $ac_dir/$ac_word" >&5
4416 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4420 if test -n "$ac_ct_AR"; then
4421 echo "$as_me:4421: result: $ac_ct_AR" >&5
4422 echo "${ECHO_T}$ac_ct_AR" >&6
4424 echo "$as_me:4424: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4433 echo "$as_me:4433: checking for options to update archives" >&5
4434 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4435 if test "${cf_cv_ar_flags+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 cf_cv_ar_flags=unknown
4440 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4443 # check if $ARFLAGS already contains this choice
4444 if test "x$ARFLAGS" != "x" ; then
4445 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4446 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4452 rm -f conftest.$ac_cv_objext
4455 cat >conftest.$ac_ext <<EOF
4456 #line 4456 "configure"
4457 int testdata[3] = { 123, 456, 789 };
4459 if { (eval echo "$as_me:4459: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>&5
4462 echo "$as_me:4462: \$? = $ac_status" >&5
4463 (exit $ac_status); } ; then
4464 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4465 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4466 if test -f conftest.a ; then
4467 cf_cv_ar_flags=$cf_ar_flags
4471 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4473 echo "${as_me:-configure}:4473: testing cannot compile test-program ..." 1>&5
4478 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4481 echo "$as_me:4481: result: $cf_cv_ar_flags" >&5
4482 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4484 if test -n "$ARFLAGS" ; then
4485 if test -n "$cf_cv_ar_flags" ; then
4486 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4489 ARFLAGS=$cf_cv_ar_flags
4492 echo "$as_me:4492: checking if you have specified an install-prefix" >&5
4493 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4495 # Check whether --with-install-prefix or --without-install-prefix was given.
4496 if test "${with_install_prefix+set}" = set; then
4497 withval="$with_install_prefix"
4501 (*) DESTDIR="$withval"
4505 echo "$as_me:4505: result: $DESTDIR" >&5
4506 echo "${ECHO_T}$DESTDIR" >&6
4508 ###############################################################################
4510 # If we're cross-compiling, allow the user to override the tools and their
4511 # options. The configure script is oriented toward identifying the host
4512 # compiler, etc., but we need a build compiler to generate parts of the source.
4514 if test "$cross_compiling" = yes ; then
4516 # defaults that we might want to override
4517 : ${BUILD_CFLAGS:=''}
4518 : ${BUILD_CPPFLAGS:=''}
4519 : ${BUILD_LDFLAGS:=''}
4521 : ${BUILD_EXEEXT:='$x'}
4522 : ${BUILD_OBJEXT:='o'}
4524 # Check whether --with-build-cc or --without-build-cc was given.
4525 if test "${with_build_cc+set}" = set; then
4526 withval="$with_build_cc"
4529 for ac_prog in gcc cc cl
4531 # Extract the first word of "$ac_prog", so it can be a program name with args.
4532 set dummy $ac_prog; ac_word=$2
4533 echo "$as_me:4533: checking for $ac_word" >&5
4534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4535 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 if test -n "$BUILD_CC"; then
4539 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4541 ac_save_IFS=$IFS; IFS=$ac_path_separator
4543 for ac_dir in $ac_dummy; do
4545 test -z "$ac_dir" && ac_dir=.
4546 $as_executable_p "$ac_dir/$ac_word" || continue
4547 ac_cv_prog_BUILD_CC="$ac_prog"
4548 echo "$as_me:4548: found $ac_dir/$ac_word" >&5
4554 BUILD_CC=$ac_cv_prog_BUILD_CC
4555 if test -n "$BUILD_CC"; then
4556 echo "$as_me:4556: result: $BUILD_CC" >&5
4557 echo "${ECHO_T}$BUILD_CC" >&6
4559 echo "$as_me:4559: result: no" >&5
4560 echo "${ECHO_T}no" >&6
4563 test -n "$BUILD_CC" && break
4567 echo "$as_me:4567: checking for native build C compiler" >&5
4568 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4569 echo "$as_me:4569: result: $BUILD_CC" >&5
4570 echo "${ECHO_T}$BUILD_CC" >&6
4572 echo "$as_me:4572: checking for native build C preprocessor" >&5
4573 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4575 # Check whether --with-build-cpp or --without-build-cpp was given.
4576 if test "${with_build_cpp+set}" = set; then
4577 withval="$with_build_cpp"
4578 BUILD_CPP="$withval"
4580 BUILD_CPP='${BUILD_CC} -E'
4582 echo "$as_me:4582: result: $BUILD_CPP" >&5
4583 echo "${ECHO_T}$BUILD_CPP" >&6
4585 echo "$as_me:4585: checking for native build C flags" >&5
4586 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4588 # Check whether --with-build-cflags or --without-build-cflags was given.
4589 if test "${with_build_cflags+set}" = set; then
4590 withval="$with_build_cflags"
4591 BUILD_CFLAGS="$withval"
4593 echo "$as_me:4593: result: $BUILD_CFLAGS" >&5
4594 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4596 echo "$as_me:4596: checking for native build C preprocessor-flags" >&5
4597 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4599 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4600 if test "${with_build_cppflags+set}" = set; then
4601 withval="$with_build_cppflags"
4602 BUILD_CPPFLAGS="$withval"
4604 echo "$as_me:4604: result: $BUILD_CPPFLAGS" >&5
4605 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4607 echo "$as_me:4607: checking for native build linker-flags" >&5
4608 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4610 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4611 if test "${with_build_ldflags+set}" = set; then
4612 withval="$with_build_ldflags"
4613 BUILD_LDFLAGS="$withval"
4615 echo "$as_me:4615: result: $BUILD_LDFLAGS" >&5
4616 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4618 echo "$as_me:4618: checking for native build linker-libraries" >&5
4619 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4621 # Check whether --with-build-libs or --without-build-libs was given.
4622 if test "${with_build_libs+set}" = set; then
4623 withval="$with_build_libs"
4624 BUILD_LIBS="$withval"
4626 echo "$as_me:4626: result: $BUILD_LIBS" >&5
4627 echo "${ECHO_T}$BUILD_LIBS" >&6
4629 # this assumes we're on Unix.
4633 : ${BUILD_CC:='${CC}'}
4635 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4636 { { echo "$as_me:4636: error: Cross-build requires two compilers.
4637 Use --with-build-cc to specify the native compiler." >&5
4638 echo "$as_me: error: Cross-build requires two compilers.
4639 Use --with-build-cc to specify the native compiler." >&2;}
4640 { (exit 1); exit 1; }; }
4644 : ${BUILD_CC:='${CC}'}
4645 : ${BUILD_CPP:='${CPP}'}
4646 : ${BUILD_CFLAGS:='${CFLAGS}'}
4647 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4648 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4649 : ${BUILD_LIBS:='${LIBS}'}
4650 : ${BUILD_EXEEXT:='$x'}
4651 : ${BUILD_OBJEXT:='o'}
4654 ###############################################################################
4656 ### Options to allow the user to specify the set of libraries which are used.
4657 ### Use "--without-normal --with-shared" to allow the default model to be
4658 ### shared, for example.
4661 echo "$as_me:4661: checking if libtool -version-number should be used" >&5
4662 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4664 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4665 if test "${enable_libtool_version+set}" = set; then
4666 enableval="$enable_libtool_version"
4667 test "$enableval" != no && enableval=yes
4668 if test "$enableval" != "yes" ; then
4669 cf_libtool_version=no
4671 cf_libtool_version=yes
4675 cf_libtool_version=yes
4678 echo "$as_me:4678: result: $cf_libtool_version" >&5
4679 echo "${ECHO_T}$cf_libtool_version" >&6
4681 if test "$cf_libtool_version" = yes ; then
4682 LIBTOOL_VERSION="-version-number"
4684 LIBTOOL_VERSION="-version-info"
4687 { echo "$as_me:4687: WARNING: VERSION was not set" >&5
4688 echo "$as_me: WARNING: VERSION was not set" >&2;}
4691 ABI_VERSION="$VERSION"
4692 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4694 echo "${as_me:-configure}:4694: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4698 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4699 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4701 echo "${as_me:-configure}:4701: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4705 { echo "$as_me:4705: WARNING: unexpected VERSION value: $VERSION" >&5
4706 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4713 # common library maintenance symbols that are convenient for libtool scripts:
4714 LIB_CREATE='${AR} -cr'
4715 LIB_OBJECT='${OBJECTS}'
4719 # symbols used to prop libtool up to enable it to determine what it should be
4727 echo "$as_me:4727: checking if you want to build libraries with libtool" >&5
4728 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4730 # Check whether --with-libtool or --without-libtool was given.
4731 if test "${with_libtool+set}" = set; then
4732 withval="$with_libtool"
4733 with_libtool=$withval
4737 echo "$as_me:4737: result: $with_libtool" >&5
4738 echo "${ECHO_T}$with_libtool" >&6
4739 if test "$with_libtool" != "no"; then
4741 if test "$with_libtool" != "yes" ; then
4743 if test "x$prefix" != xNONE; then
4744 cf_path_syntax="$prefix"
4746 cf_path_syntax="$ac_default_prefix"
4749 case ".$with_libtool" in
4754 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4756 (.\${*prefix}*|.\${*dir}*)
4757 eval with_libtool="$with_libtool"
4758 case ".$with_libtool" in
4760 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4765 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4768 { { echo "$as_me:4768: error: expected a pathname, not \"$with_libtool\"" >&5
4769 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4770 { (exit 1); exit 1; }; }
4774 LIBTOOL=$with_libtool
4776 if test -n "$ac_tool_prefix"; then
4777 for ac_prog in libtool glibtool
4779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4781 echo "$as_me:4781: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4783 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 if test -n "$LIBTOOL"; then
4787 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4789 ac_save_IFS=$IFS; IFS=$ac_path_separator
4791 for ac_dir in $ac_dummy; do
4793 test -z "$ac_dir" && ac_dir=.
4794 $as_executable_p "$ac_dir/$ac_word" || continue
4795 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4796 echo "$as_me:4796: found $ac_dir/$ac_word" >&5
4802 LIBTOOL=$ac_cv_prog_LIBTOOL
4803 if test -n "$LIBTOOL"; then
4804 echo "$as_me:4804: result: $LIBTOOL" >&5
4805 echo "${ECHO_T}$LIBTOOL" >&6
4807 echo "$as_me:4807: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4811 test -n "$LIBTOOL" && break
4814 if test -z "$LIBTOOL"; then
4815 ac_ct_LIBTOOL=$LIBTOOL
4816 for ac_prog in libtool glibtool
4818 # Extract the first word of "$ac_prog", so it can be a program name with args.
4819 set dummy $ac_prog; ac_word=$2
4820 echo "$as_me:4820: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 if test -n "$ac_ct_LIBTOOL"; then
4826 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4828 ac_save_IFS=$IFS; IFS=$ac_path_separator
4830 for ac_dir in $ac_dummy; do
4832 test -z "$ac_dir" && ac_dir=.
4833 $as_executable_p "$ac_dir/$ac_word" || continue
4834 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4835 echo "$as_me:4835: found $ac_dir/$ac_word" >&5