2 # From configure.in Revision: 1.600 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20141204.
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 --disable-overwrite leave out the link to -lcurses
751 --disable-database do not use terminfo, only fallbacks/termcap
752 --with-database=XXX specify terminfo source to install
753 --with-hashed-db specify hashed-database library
754 --with-fallbacks=XXX specify list of fallback terminal descriptions
755 --without-xterm-new specify if xterm terminfo should be old version
756 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
757 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
758 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
759 --disable-big-core assume machine has little memory
760 --disable-big-strings assume compiler has only standard-size strings
761 --enable-termcap compile in termcap fallback support
762 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
763 --enable-getcap fast termcap load, no xrefs to terminfo
764 --enable-getcap-cache cache translated termcaps in ~/.terminfo
765 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
766 --disable-root-environ restrict environment when running as root
767 --enable-symlinks make tic use symbolic links not hard links
768 --enable-broken_linker compile with broken-linker support code
769 --enable-bsdpad recognize BSD-style prefix padding
770 --enable-widec compile with wide-char/UTF-8 code
771 --disable-lp64 allow chtype to be long (ignore _LP64)
772 --disable-largefile omit support for large files
773 --disable-tparm-varargs compile tparm() without varargs interface
774 --disable-tic-depends link tic library without explicit dependency on ncurses library
775 --with-bool=TYPE override fallback type of bool variable
776 --with-caps=alt compile with alternate Caps file
777 --with-chtype=TYPE override type of chtype
778 --with-ospeed=TYPE override type of ospeed variable
779 --with-mmask-t=TYPE override type of mmask_t
780 --with-ccharw-max=XXX override size CCHARW_MAX
781 --with-tparm-arg=TYPE override parameter type of tparm
782 --with-rcs-ids compile-in RCS identifiers
783 Options to Specify How Manpages are Installed:
784 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
785 optionally formatted/catonly, e.g., gzip,formatted
786 --with-manpage-renames specify manpage-renaming
787 --with-manpage-aliases specify manpage-aliases using .so
788 --with-manpage-symlinks specify manpage-aliases using symlinks
789 --with-manpage-tbl specify manpage processing with tbl
791 --disable-ext-funcs disable function-extensions
792 --enable-sp-funcs enable experimental SCREEN-extensions
793 --enable-term-driver enable experimental terminal-driver
794 --enable-const compile with extra/non-standard const
795 --enable-ext-colors compile for 256-color support
796 --enable-ext-mouse compile for extended mouse-encoding
797 --enable-ext-putwin compile with extended putwin/screendump
798 --enable-no-padding compile with $NCURSES_NO_PADDING code
799 --enable-signed-char compile using signed Boolean's in term.h
800 --enable-sigwinch compile with SIGWINCH handler
801 --enable-tcap-names compile with user-definable terminal capabilities
803 --without-develop disable development options
804 --enable-hard-tabs compile with hard-tabs code
805 --enable-xmc-glitch compile with support for xmc (magic-cookie)
807 --disable-assumed-color do not assume anything about default-colors
808 --disable-hashmap compile without hashmap scrolling-optimization
809 --enable-colorfgbg compile-in experimental $COLORFGBG code
810 --enable-interop compile-in experimental interop bindings
811 --with-pthread use POSIX thread library
812 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
813 --enable-weak-symbols enable weak-symbols for pthreads
814 --enable-reentrant compile with experimental reentrant code
815 --with-wrap-prefix=XXX override prefix used for public variables
816 --enable-safe-sprintf compile with experimental safe-sprintf code
817 --disable-scroll-hints compile without scroll-hints code
818 --enable-wgetch-events compile with experimental wgetch-events code
819 Testing/development Options:
820 --disable-echo do not display "compiling" commands
821 --enable-warnings build: turn on GCC compiler warnings
822 --enable-string-hacks work around bogus compiler/loader warnings
823 --enable-assertions test: turn on generation of assertion code
824 --with-dmalloc test: use Gray Watson's dmalloc library
825 --with-dbmalloc test: use Conor Cahill's dbmalloc library
826 --with-valgrind test: use valgrind
827 --disable-leaks test: free permanent memory, analyze leaks
828 --enable-expanded test: generate functions for certain macros
829 --disable-macros test: use functions rather than macros
830 --with-trace test: add trace() function to all models of ncurses
831 --disable-gnat-projects test: disable GNAT projects even if usable
832 Ada95 Binding Options:
833 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
834 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
835 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
836 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
838 Some influential environment variables:
839 CC C compiler command
840 CFLAGS C compiler flags
841 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
842 nonstandard directory <lib dir>
843 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
844 headers in a nonstandard directory <include dir>
846 CXX C++ compiler command
847 CXXFLAGS C++ compiler flags
848 CXXCPP C++ preprocessor
850 Use these variables to override the choices made by `configure' or to help
851 it to find libraries and programs with nonstandard names/locations.
856 if test "$ac_init_help" = "recursive"; then
857 # If there are subdirs, report their specific --help.
859 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
861 # A "../" for each directory in /$ac_subdir.
862 ac_dots=`echo $ac_subdir |
863 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
866 .) # No --srcdir option. We are building in place.
867 ac_sub_srcdir=$srcdir ;;
868 [\\/]* | ?:[\\/]* ) # Absolute path.
869 ac_sub_srcdir=$srcdir/$ac_subdir ;;
871 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
874 # Check for guested configure; otherwise get Cygnus style configure.
875 if test -f $ac_sub_srcdir/configure.gnu; then
877 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
878 elif test -f $ac_sub_srcdir/configure; then
880 $SHELL $ac_sub_srcdir/configure --help=recursive
881 elif test -f $ac_sub_srcdir/configure.ac ||
882 test -f $ac_sub_srcdir/configure.in; then
886 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
892 test -n "$ac_init_help" && exit 0
893 if $ac_init_version; then
896 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
897 Free Software Foundation, Inc.
898 This configure script is free software; the Free Software Foundation
899 gives unlimited permission to copy, distribute and modify it.
905 This file contains any messages produced by compilers while
906 running configure, to aid debugging if configure makes a mistake.
908 It was created by $as_me, which was
909 generated by GNU Autoconf 2.52.20141204. Invocation command line was
920 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
921 uname -m = `(uname -m) 2>/dev/null || echo unknown`
922 uname -r = `(uname -r) 2>/dev/null || echo unknown`
923 uname -s = `(uname -s) 2>/dev/null || echo unknown`
924 uname -v = `(uname -v) 2>/dev/null || echo unknown`
926 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
927 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
929 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
930 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
931 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
932 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
933 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
934 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
935 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
949 # Keep a trace of the command line.
950 # Strip out --no-create and --no-recursion so they do not pile up.
951 # Also quote any args containing shell meta-characters.
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c) ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
961 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
962 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
963 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
965 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
968 # Get rid of the leading space.
971 # When interrupted or exit'd, cleanup temporary files, and complete
972 # config.log. We remove comments because anyway the quotes in there
973 # would cause problems or look ugly.
975 # Save into config.log some information that might help in debugging.
977 echo "## ----------------- ##" >&5
978 echo "## Cache variables. ##" >&5
979 echo "## ----------------- ##" >&5
981 # The following way of writing the cache mishandles newlines in values,
984 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
987 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
992 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
996 sed "/^$/d" confdefs.h >conftest.log
997 if test -s conftest.log; then
999 echo "## ------------ ##" >&5
1000 echo "## confdefs.h. ##" >&5
1001 echo "## ------------ ##" >&5
1003 cat conftest.log >&5
1006 test "$ac_signal" != 0 &&
1007 echo "$as_me: caught signal $ac_signal" >&5
1008 echo "$as_me: exit $exit_status" >&5
1009 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1012 for ac_signal in 1 2 13 15; do
1013 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1017 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1018 rm -rf conftest* confdefs.h
1019 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1022 # Let the site file select an alternate cache file if it wants to.
1023 # Prefer explicitly selected file to automatically selected ones.
1024 if test -z "$CONFIG_SITE"; then
1025 if test "x$prefix" != xNONE; then
1026 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1028 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1031 for ac_site_file in $CONFIG_SITE; do
1032 if test -r "$ac_site_file"; then
1033 { echo "$as_me:1033: loading site script $ac_site_file" >&5
1034 echo "$as_me: loading site script $ac_site_file" >&6;}
1035 cat "$ac_site_file" >&5
1040 if test -r "$cache_file"; then
1041 # Some versions of bash will fail to source /dev/null (special
1042 # files actually), so we avoid doing that.
1043 if test -f "$cache_file"; then
1044 { echo "$as_me:1044: loading cache $cache_file" >&5
1045 echo "$as_me: loading cache $cache_file" >&6;}
1047 [\\/]* | ?:[\\/]* ) . $cache_file;;
1048 *) . ./$cache_file;;
1052 { echo "$as_me:1052: creating cache $cache_file" >&5
1053 echo "$as_me: creating cache $cache_file" >&6;}
1057 # Check that the precious variables saved in the cache have kept the same
1059 ac_cache_corrupted=false
1060 for ac_var in `(set) 2>&1 |
1061 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1062 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1063 eval ac_new_set=\$ac_env_${ac_var}_set
1064 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1065 eval ac_new_val="\$ac_env_${ac_var}_value"
1066 case $ac_old_set,$ac_new_set in
1068 { echo "$as_me:1068: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1069 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1070 ac_cache_corrupted=: ;;
1072 { echo "$as_me:1072: error: \`$ac_var' was not set in the previous run" >&5
1073 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1074 ac_cache_corrupted=: ;;
1077 if test "x$ac_old_val" != "x$ac_new_val"; then
1078 { echo "$as_me:1078: error: \`$ac_var' has changed since the previous run:" >&5
1079 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1080 { echo "$as_me:1080: former value: $ac_old_val" >&5
1081 echo "$as_me: former value: $ac_old_val" >&2;}
1082 { echo "$as_me:1082: current value: $ac_new_val" >&5
1083 echo "$as_me: current value: $ac_new_val" >&2;}
1084 ac_cache_corrupted=:
1087 # Pass precious variables to config.status. It doesn't matter if
1088 # we pass some twice (in addition to the command line arguments).
1089 if test "$ac_new_set" = set; then
1091 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1093 ac_configure_args="$ac_configure_args '$ac_arg'"
1095 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1100 if $ac_cache_corrupted; then
1101 { echo "$as_me:1101: error: changes in the environment can compromise the build" >&5
1102 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1103 { { echo "$as_me:1103: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1104 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1105 { (exit 1); exit 1; }; }
1109 ac_cpp='$CPP $CPPFLAGS'
1110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1113 ac_main_return=return
1115 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1116 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1118 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1119 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1121 echo "#! $SHELL" >conftest.sh
1122 echo "exit 0" >>conftest.sh
1123 chmod +x conftest.sh
1124 if { (echo "$as_me:1124: PATH=\".;.\"; conftest.sh") >&5
1125 (PATH=".;."; conftest.sh) 2>&5
1127 echo "$as_me:1127: \$? = $ac_status" >&5
1128 (exit $ac_status); }; then
1129 ac_path_separator=';'
1133 PATH_SEPARATOR="$ac_path_separator"
1136 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1140 echo "$as_me:1140: checking for egrep" >&5
1141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1142 if test "${ac_cv_prog_egrep+set}" = set; then
1143 echo $ECHO_N "(cached) $ECHO_C" >&6
1145 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1146 then ac_cv_prog_egrep='grep -E'
1147 else ac_cv_prog_egrep='egrep'
1150 echo "$as_me:1150: result: $ac_cv_prog_egrep" >&5
1151 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1152 EGREP=$ac_cv_prog_egrep
1154 test -z "$EGREP" && { { echo "$as_me:1154: error: No egrep program found" >&5
1155 echo "$as_me: error: No egrep program found" >&2;}
1156 { (exit 1); exit 1; }; }
1158 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1159 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 cf_cv_abi_version=${NCURSES_MAJOR}
1162 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1163 cf_cv_timestamp=`date`
1164 echo "$as_me:1164: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1165 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1167 if test -f $srcdir/VERSION ; then
1168 echo "$as_me:1168: checking for package version" >&5
1169 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1171 # if there are not enough fields, cut returns the last one...
1172 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1173 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1174 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1176 # this is how CF_BUNDLED_INTL uses $VERSION:
1177 VERSION="$cf_field1"
1179 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1180 test -z "$VERSION_MAJOR" && { { echo "$as_me:1180: error: missing major-version" >&5
1181 echo "$as_me: error: missing major-version" >&2;}
1182 { (exit 1); exit 1; }; }
1184 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1185 test -z "$VERSION_MINOR" && { { echo "$as_me:1185: error: missing minor-version" >&5
1186 echo "$as_me: error: missing minor-version" >&2;}
1187 { (exit 1); exit 1; }; }
1189 echo "$as_me:1189: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1190 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1192 echo "$as_me:1192: checking for package patch date" >&5
1193 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1194 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1195 case .$VERSION_PATCH in
1197 { { echo "$as_me:1197: error: missing patch-date $VERSION_PATCH" >&5
1198 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1199 { (exit 1); exit 1; }; }
1201 .[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1204 { { echo "$as_me:1204: error: illegal patch-date $VERSION_PATCH" >&5
1205 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1206 { (exit 1); exit 1; }; }
1209 echo "$as_me:1209: result: $VERSION_PATCH" >&5
1210 echo "${ECHO_T}$VERSION_PATCH" >&6
1212 { { echo "$as_me:1212: error: did not find $srcdir/VERSION" >&5
1213 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1214 { (exit 1); exit 1; }; }
1217 # show the actual data that we have for versions:
1218 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1220 echo "${as_me:-configure}:1220: testing ABI VERSION $VERSION ..." 1>&5
1222 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1224 echo "${as_me:-configure}:1224: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1226 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1228 echo "${as_me:-configure}:1228: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1230 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1232 echo "${as_me:-configure}:1232: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1237 cat >>confdefs.h <<EOF
1238 #define PACKAGE "$PACKAGE"
1241 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1243 cat >>confdefs.h <<EOF
1244 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1247 cat >>confdefs.h <<EOF
1248 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1251 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1253 # Check whether --with-rel-version or --without-rel-version was given.
1254 if test "${with_rel_version+set}" = set; then
1255 withval="$with_rel_version"
1256 { echo "$as_me:1256: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1257 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1258 cf_cv_rel_version=$withval
1261 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1262 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1264 if test -n "$NCURSES_MAJOR" ; then
1265 case $NCURSES_MAJOR in #(vi
1269 { { echo "$as_me:1269: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1270 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1271 { (exit 1); exit 1; }; }
1275 { { echo "$as_me:1275: error: Release major-version value is empty" >&5
1276 echo "$as_me: error: Release major-version value is empty" >&2;}
1277 { (exit 1); exit 1; }; }
1280 if test -n "$NCURSES_MINOR" ; then
1281 case $NCURSES_MINOR in #(vi
1285 { { echo "$as_me:1285: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1286 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1287 { (exit 1); exit 1; }; }
1291 { { echo "$as_me:1291: error: Release minor-version value is empty" >&5
1292 echo "$as_me: error: Release minor-version value is empty" >&2;}
1293 { (exit 1); exit 1; }; }
1296 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1298 # Check whether --with-abi-version or --without-abi-version was given.
1299 if test "${with_abi_version+set}" = set; then
1300 withval="$with_abi_version"
1301 { echo "$as_me:1301: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1302 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1303 cf_cv_abi_version=$withval
1306 if test -n "$cf_cv_abi_version" ; then
1307 case $cf_cv_abi_version in #(vi
1311 { { echo "$as_me:1311: error: ABI version is not a number: $cf_cv_abi_version" >&5
1312 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1313 { (exit 1); exit 1; }; }
1317 { { echo "$as_me:1317: error: ABI version value is empty" >&5
1318 echo "$as_me: error: ABI version value is empty" >&2;}
1319 { (exit 1); exit 1; }; }
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 elif test -f $ac_dir/install.sh; then
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 elif test -f $ac_dir/shtool; then
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:1339: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:1349: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:1353: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:1362: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:1366: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:1371: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378 echo "$as_me:1378: checking host system type" >&5
1379 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380 if test "${ac_cv_host+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 ac_cv_host_alias=$host_alias
1384 test -z "$ac_cv_host_alias" &&
1385 ac_cv_host_alias=$ac_cv_build_alias
1386 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387 { { echo "$as_me:1387: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1392 echo "$as_me:1392: result: $ac_cv_host" >&5
1393 echo "${ECHO_T}$ac_cv_host" >&6
1395 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1400 echo "$as_me:1400: checking target system type" >&5
1401 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402 if test "${ac_cv_target+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_target_alias=$target_alias
1406 test "x$ac_cv_target_alias" = "x" &&
1407 ac_cv_target_alias=$ac_cv_host_alias
1408 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409 { { echo "$as_me:1409: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:1414: result: $ac_cv_target" >&5
1415 echo "${ECHO_T}$ac_cv_target" >&6
1416 target=$ac_cv_target
1417 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 # The aliases save the names the user supplied, while $host etc.
1422 # will get canonicalized.
1423 test -n "$target_alias" &&
1424 test "$program_prefix$program_suffix$program_transform_name" = \
1426 program_prefix=${target_alias}-
1427 system_name="$host_os"
1429 system_name="`(uname -s -r) 2>/dev/null`"
1430 if test -z "$system_name" ; then
1431 system_name="`(hostname) 2>/dev/null`"
1434 test -n "$system_name" &&
1435 cat >>confdefs.h <<EOF
1436 #define SYSTEM_NAME "$system_name"
1439 if test "${cf_cv_system_name+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 cf_cv_system_name="$system_name"
1445 test -z "$system_name" && system_name="$cf_cv_system_name"
1446 test -n "$cf_cv_system_name" && echo "$as_me:1446: result: Configuring for $cf_cv_system_name" >&5
1447 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1449 if test ".$system_name" != ".$cf_cv_system_name" ; then
1450 echo "$as_me:1450: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1451 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1452 { { echo "$as_me:1452: error: \"Please remove config.cache and try again.\"" >&5
1453 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1454 { (exit 1); exit 1; }; }
1457 # Check whether --with-system-type or --without-system-type was given.
1458 if test "${with_system_type+set}" = set; then
1459 withval="$with_system_type"
1460 { echo "$as_me:1460: WARNING: overriding system type to $withval" >&5
1461 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1462 cf_cv_system_name=$withval
1467 ### Save the given $CFLAGS to allow user-override.
1468 cf_user_CFLAGS="$CFLAGS"
1470 ### Default install-location
1472 echo "$as_me:1472: checking for prefix" >&5
1473 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1474 if test "x$prefix" = "xNONE" ; then
1475 case "$cf_cv_system_name" in
1476 # non-vendor systems don't have a conflict
1477 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1480 *) prefix=$ac_default_prefix
1484 echo "$as_me:1484: result: $prefix" >&5
1485 echo "${ECHO_T}$prefix" >&6
1487 if test "x$prefix" = "xNONE" ; then
1488 echo "$as_me:1488: checking for default include-directory" >&5
1489 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1490 test -n "$verbose" && echo 1>&6
1493 $includedir/ncurses \
1495 $prefix/include/ncurses \
1496 /usr/local/include \
1497 /usr/local/include/ncurses \
1499 /usr/include/ncurses
1501 cf_dir=`eval echo $cf_symbol`
1502 if test -f $cf_dir/curses.h ; then
1503 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1504 includedir="$cf_symbol"
1505 test -n "$verbose" && echo $ac_n " found " 1>&6
1509 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1511 echo "$as_me:1511: result: $includedir" >&5
1512 echo "${ECHO_T}$includedir" >&6
1515 ### Checks for programs.
1517 # Check whether --with-ada or --without-ada was given.
1518 if test "${with_ada+set}" = set; then
1520 cf_with_ada=$withval
1524 if test "x$cf_with_ada" = xyes
1526 cf_PROG_CC="gnatgcc gcc cc"
1532 ac_cpp='$CPP $CPPFLAGS'
1533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1536 ac_main_return=return
1537 if test -n "$ac_tool_prefix"; then
1538 for ac_prog in $cf_PROG_CC
1540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1542 echo "$as_me:1542: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 ac_save_IFS=$IFS; IFS=$ac_path_separator
1552 for ac_dir in $ac_dummy; do
1554 test -z "$ac_dir" && ac_dir=.
1555 $as_executable_p "$ac_dir/$ac_word" || continue
1556 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1557 echo "$as_me:1557: found $ac_dir/$ac_word" >&5
1564 if test -n "$CC"; then
1565 echo "$as_me:1565: result: $CC" >&5
1566 echo "${ECHO_T}$CC" >&6
1568 echo "$as_me:1568: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$CC" && break
1575 if test -z "$CC"; then
1577 for ac_prog in $cf_PROG_CC
1579 # Extract the first word of "$ac_prog", so it can be a program name with args.
1580 set dummy $ac_prog; ac_word=$2
1581 echo "$as_me:1581: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 ac_save_IFS=$IFS; IFS=$ac_path_separator
1591 for ac_dir in $ac_dummy; do
1593 test -z "$ac_dir" && ac_dir=.
1594 $as_executable_p "$ac_dir/$ac_word" || continue
1595 ac_cv_prog_ac_ct_CC="$ac_prog"
1596 echo "$as_me:1596: found $ac_dir/$ac_word" >&5
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604 echo "$as_me:1604: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1607 echo "$as_me:1607: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1611 test -n "$ac_ct_CC" && break
1617 test -z "$CC" && { { echo "$as_me:1617: error: no acceptable cc found in \$PATH" >&5
1618 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1619 { (exit 1); exit 1; }; }
1621 # Provide some information about the compiler.
1622 echo "$as_me:1622:" \
1623 "checking for C compiler version" >&5
1624 ac_compiler=`set X $ac_compile; echo $2`
1625 { (eval echo "$as_me:1625: \"$ac_compiler --version </dev/null >&5\"") >&5
1626 (eval $ac_compiler --version </dev/null >&5) 2>&5
1628 echo "$as_me:1628: \$? = $ac_status" >&5
1629 (exit $ac_status); }
1630 { (eval echo "$as_me:1630: \"$ac_compiler -v </dev/null >&5\"") >&5
1631 (eval $ac_compiler -v </dev/null >&5) 2>&5
1633 echo "$as_me:1633: \$? = $ac_status" >&5
1634 (exit $ac_status); }
1635 { (eval echo "$as_me:1635: \"$ac_compiler -V </dev/null >&5\"") >&5
1636 (eval $ac_compiler -V </dev/null >&5) 2>&5
1638 echo "$as_me:1638: \$? = $ac_status" >&5
1639 (exit $ac_status); }
1641 cat >conftest.$ac_ext <<_ACEOF
1642 #line 1642 "configure"
1643 #include "confdefs.h"
1653 ac_clean_files_save=$ac_clean_files
1654 ac_clean_files="$ac_clean_files a.out a.exe"
1655 # Try to create an executable without -o first, disregard a.out.
1656 # It will help us diagnose broken compilers, and finding out an intuition
1658 echo "$as_me:1658: checking for C compiler default output" >&5
1659 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1660 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1661 if { (eval echo "$as_me:1661: \"$ac_link_default\"") >&5
1662 (eval $ac_link_default) 2>&5
1664 echo "$as_me:1664: \$? = $ac_status" >&5
1665 (exit $ac_status); }; then
1666 # Find the output, starting from the most likely. This scheme is
1667 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1669 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1670 ls a.out conftest 2>/dev/null;
1671 ls a.* conftest.* 2>/dev/null`; do
1673 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1674 a.out ) # We found the default executable, but exeext='' is most
1677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1678 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1685 echo "$as_me: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 { { echo "$as_me:1687: error: C compiler cannot create executables" >&5
1688 echo "$as_me: error: C compiler cannot create executables" >&2;}
1689 { (exit 77); exit 77; }; }
1692 ac_exeext=$ac_cv_exeext
1693 echo "$as_me:1693: result: $ac_file" >&5
1694 echo "${ECHO_T}$ac_file" >&6
1696 # Check the compiler produces executables we can run. If not, either
1697 # the compiler is broken, or we cross compile.
1698 echo "$as_me:1698: checking whether the C compiler works" >&5
1699 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1700 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1701 # If not cross compiling, check that we can run a simple program.
1702 if test "$cross_compiling" != yes; then
1703 if { ac_try='./$ac_file'
1704 { (eval echo "$as_me:1704: \"$ac_try\"") >&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }; }; then
1711 if test "$cross_compiling" = maybe; then
1714 { { echo "$as_me:1714: error: cannot run C compiled programs.
1715 If you meant to cross compile, use \`--host'." >&5
1716 echo "$as_me: error: cannot run C compiled programs.
1717 If you meant to cross compile, use \`--host'." >&2;}
1718 { (exit 1); exit 1; }; }
1722 echo "$as_me:1722: result: yes" >&5
1723 echo "${ECHO_T}yes" >&6
1725 rm -f a.out a.exe conftest$ac_cv_exeext
1726 ac_clean_files=$ac_clean_files_save
1727 # Check the compiler produces executables we can run. If not, either
1728 # the compiler is broken, or we cross compile.
1729 echo "$as_me:1729: checking whether we are cross compiling" >&5
1730 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1731 echo "$as_me:1731: result: $cross_compiling" >&5
1732 echo "${ECHO_T}$cross_compiling" >&6
1734 echo "$as_me:1734: checking for executable suffix" >&5
1735 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1736 if { (eval echo "$as_me:1736: \"$ac_link\"") >&5
1737 (eval $ac_link) 2>&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1742 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1743 # work properly (i.e., refer to `conftest.exe'), while it won't with
1745 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1748 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 { { echo "$as_me:1755: error: cannot compute EXEEXT: cannot compile and link" >&5
1756 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1757 { (exit 1); exit 1; }; }
1760 rm -f conftest$ac_cv_exeext
1761 echo "$as_me:1761: result: $ac_cv_exeext" >&5
1762 echo "${ECHO_T}$ac_cv_exeext" >&6
1764 rm -f conftest.$ac_ext
1765 EXEEXT=$ac_cv_exeext
1767 echo "$as_me:1767: checking for object suffix" >&5
1768 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1769 if test "${ac_cv_objext+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 cat >conftest.$ac_ext <<_ACEOF
1773 #line 1773 "configure"
1774 #include "confdefs.h"
1784 rm -f conftest.o conftest.obj
1785 if { (eval echo "$as_me:1785: \"$ac_compile\"") >&5
1786 (eval $ac_compile) 2>&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; then
1790 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1792 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1793 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1798 echo "$as_me: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1800 { { echo "$as_me:1800: error: cannot compute OBJEXT: cannot compile" >&5
1801 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1802 { (exit 1); exit 1; }; }
1805 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1807 echo "$as_me:1807: result: $ac_cv_objext" >&5
1808 echo "${ECHO_T}$ac_cv_objext" >&6
1809 OBJEXT=$ac_cv_objext
1811 echo "$as_me:1811: checking whether we are using the GNU C compiler" >&5
1812 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1813 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 cat >conftest.$ac_ext <<_ACEOF
1817 #line 1817 "configure"
1818 #include "confdefs.h"
1831 rm -f conftest.$ac_objext
1832 if { (eval echo "$as_me:1832: \"$ac_compile\"") >&5
1833 (eval $ac_compile) 2>&5
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit $ac_status); } &&
1837 { ac_try='test -s conftest.$ac_objext'
1838 { (eval echo "$as_me:1838: \"$ac_try\"") >&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); }; }; then
1845 echo "$as_me: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1849 rm -f conftest.$ac_objext conftest.$ac_ext
1850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1853 echo "$as_me:1853: result: $ac_cv_c_compiler_gnu" >&5
1854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1855 GCC=`test $ac_compiler_gnu = yes && echo yes`
1856 ac_test_CFLAGS=${CFLAGS+set}
1857 ac_save_CFLAGS=$CFLAGS
1859 echo "$as_me:1859: checking whether $CC accepts -g" >&5
1860 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1861 if test "${ac_cv_prog_cc_g+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 cat >conftest.$ac_ext <<_ACEOF
1865 #line 1865 "configure"
1866 #include "confdefs.h"
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:1877: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1880 echo "$as_me:1880: \$? = $ac_status" >&5
1881 (exit $ac_status); } &&
1882 { ac_try='test -s conftest.$ac_objext'
1883 { (eval echo "$as_me:1883: \"$ac_try\"") >&5
1886 echo "$as_me:1886: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1890 echo "$as_me: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1894 rm -f conftest.$ac_objext conftest.$ac_ext
1896 echo "$as_me:1896: result: $ac_cv_prog_cc_g" >&5
1897 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1898 if test "$ac_test_CFLAGS" = set; then
1899 CFLAGS=$ac_save_CFLAGS
1900 elif test $ac_cv_prog_cc_g = yes; then
1901 if test "$GCC" = yes; then
1907 if test "$GCC" = yes; then
1913 # Some people use a C++ compiler to compile C. Since we use `exit',
1914 # in C++ we need to declare it. In case someone uses the same compiler
1915 # for both compiling C and C++ we need to have the C++ compiler decide
1916 # the declaration of exit, since it's the most demanding environment.
1917 cat >conftest.$ac_ext <<_ACEOF
1922 rm -f conftest.$ac_objext
1923 if { (eval echo "$as_me:1923: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try='test -s conftest.$ac_objext'
1929 { (eval echo "$as_me:1929: \"$ac_try\"") >&5
1932 echo "$as_me:1932: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1934 for ac_declaration in \
1936 '#include <stdlib.h>' \
1937 'extern "C" void std::exit (int) throw (); using std::exit;' \
1938 'extern "C" void std::exit (int); using std::exit;' \
1939 'extern "C" void exit (int) throw ();' \
1940 'extern "C" void exit (int);' \
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line 1944 "configure"
1945 #include "confdefs.h"
1956 rm -f conftest.$ac_objext
1957 if { (eval echo "$as_me:1957: \"$ac_compile\"") >&5
1958 (eval $ac_compile) 2>&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit $ac_status); } &&
1962 { ac_try='test -s conftest.$ac_objext'
1963 { (eval echo "$as_me:1963: \"$ac_try\"") >&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); }; }; then
1970 echo "$as_me: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1974 rm -f conftest.$ac_objext conftest.$ac_ext
1975 cat >conftest.$ac_ext <<_ACEOF
1976 #line 1976 "configure"
1977 #include "confdefs.h"
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:1988: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:1994: \"$ac_try\"") >&5
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
2001 echo "$as_me: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2004 rm -f conftest.$ac_objext conftest.$ac_ext
2007 if test -n "$ac_declaration"; then
2008 echo '#ifdef __cplusplus' >>confdefs.h
2009 echo $ac_declaration >>confdefs.h
2010 echo '#endif' >>confdefs.h
2014 echo "$as_me: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 rm -f conftest.$ac_objext conftest.$ac_ext
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023 ac_main_return=return
2026 if test "$GCC" = yes ; then
2027 echo "$as_me:2027: checking version of $CC" >&5
2028 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2029 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.].*//'`"
2030 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2031 echo "$as_me:2031: result: $GCC_VERSION" >&5
2032 echo "${ECHO_T}$GCC_VERSION" >&6
2035 echo "$as_me:2035: checking for $CC option to accept ANSI C" >&5
2036 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 ac_cv_prog_cc_stdc=no
2042 cat >conftest.$ac_ext <<_ACEOF
2043 #line 2043 "configure"
2044 #include "confdefs.h"
2047 #include <sys/types.h>
2048 #include <sys/stat.h>
2049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2050 struct buf { int x; };
2051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052 static char *e (p, i)
2058 static char *f (char * (*g) (char **, int), char **p, ...)
2063 s = g (p, va_arg (v,int));
2067 int test (int i, double x);
2068 struct s1 {int (*f) (int a);};
2069 struct s2 {int (*f) (double a);};
2070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2081 # Don't try gcc -ansi; that turns off useful extensions and
2082 # breaks some systems' header files.
2083 # AIX -qlanglvl=ansi
2084 # Ultrix and OSF/1 -std1
2085 # HP-UX 10.20 and later -Ae
2086 # HP-UX older versions -Aa -D_HPUX_SOURCE
2087 # SVR4 -Xc -D__EXTENSIONS__
2088 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2090 CC="$ac_save_CC $ac_arg"
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:2092: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>&5
2095 echo "$as_me:2095: \$? = $ac_status" >&5
2096 (exit $ac_status); } &&
2097 { ac_try='test -s conftest.$ac_objext'
2098 { (eval echo "$as_me:2098: \"$ac_try\"") >&5
2101 echo "$as_me:2101: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 ac_cv_prog_cc_stdc=$ac_arg
2106 echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2109 rm -f conftest.$ac_objext
2111 rm -f conftest.$ac_ext conftest.$ac_objext
2116 case "x$ac_cv_prog_cc_stdc" in
2118 echo "$as_me:2118: result: none needed" >&5
2119 echo "${ECHO_T}none needed" >&6 ;;
2121 echo "$as_me:2121: result: $ac_cv_prog_cc_stdc" >&5
2122 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2123 CC="$CC $ac_cv_prog_cc_stdc" ;;
2126 # This should have been defined by AC_PROG_CC
2129 echo "$as_me:2129: checking \$CC variable" >&5
2130 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2133 echo "$as_me:2133: result: broken" >&5
2134 echo "${ECHO_T}broken" >&6
2135 { echo "$as_me:2135: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2136 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2138 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2139 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2144 cf_new_extra_cppflags=
2146 for cf_add_cflags in $cf_flags
2148 case $cf_fix_cppflags in
2150 case $cf_add_cflags in #(vi
2151 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2152 case $cf_add_cflags in
2154 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2156 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2157 && test -z "${cf_tst_cflags}" \
2158 && cf_fix_cppflags=yes
2160 if test $cf_fix_cppflags = yes ; then
2161 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2163 elif test "${cf_tst_cflags}" = "\"'" ; then
2164 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2170 *$cf_add_cflags) #(vi
2173 case $cf_add_cflags in #(vi
2175 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2177 CPPFLAGS=`echo "$CPPFLAGS" | \
2178 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2179 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2183 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2188 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2193 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2195 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2197 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2198 && test -z "${cf_tst_cflags}" \
2199 && cf_fix_cppflags=no
2204 if test -n "$cf_new_cflags" ; then
2206 CFLAGS="$CFLAGS $cf_new_cflags"
2209 if test -n "$cf_new_cppflags" ; then
2211 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2214 if test -n "$cf_new_extra_cppflags" ; then
2216 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2221 echo "$as_me:2221: result: ok" >&5
2222 echo "${ECHO_T}ok" >&6
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 ac_main_return=return
2232 echo "$as_me:2232: checking how to run the C preprocessor" >&5
2233 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2234 # On Suns, sometimes $CPP names a directory.
2235 if test -n "$CPP" && test -d "$CPP"; then
2238 if test -z "$CPP"; then
2239 if test "${ac_cv_prog_CPP+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 # Double quotes because CPP needs to be expanded
2243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2246 for ac_c_preproc_warn_flag in '' yes
2248 # Use a header file that comes with gcc, so configuring glibc
2249 # with a fresh cross-compiler works.
2250 # On the NeXT, cc -E runs the code through the compiler's parser,
2251 # not just through cpp. "Syntax error" is here to catch this case.
2252 cat >conftest.$ac_ext <<_ACEOF
2253 #line 2253 "configure"
2254 #include "confdefs.h"
2258 if { (eval echo "$as_me:2258: \"$ac_cpp conftest.$ac_ext\"") >&5
2259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2261 egrep -v '^ *\+' conftest.er1 >conftest.err
2263 cat conftest.err >&5
2264 echo "$as_me:2264: \$? = $ac_status" >&5
2265 (exit $ac_status); } >/dev/null; then
2266 if test -s conftest.err; then
2267 ac_cpp_err=$ac_c_preproc_warn_flag
2274 if test -z "$ac_cpp_err"; then
2277 echo "$as_me: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 # Broken: fails on valid input.
2282 rm -f conftest.err conftest.$ac_ext
2284 # OK, works on sane cases. Now check whether non-existent headers
2285 # can be detected and how.
2286 cat >conftest.$ac_ext <<_ACEOF
2287 #line 2287 "configure"
2288 #include "confdefs.h"
2289 #include <ac_nonexistent.h>
2291 if { (eval echo "$as_me:2291: \"$ac_cpp conftest.$ac_ext\"") >&5
2292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2294 egrep -v '^ *\+' conftest.er1 >conftest.err
2296 cat conftest.err >&5
2297 echo "$as_me:2297: \$? = $ac_status" >&5
2298 (exit $ac_status); } >/dev/null; then
2299 if test -s conftest.err; then
2300 ac_cpp_err=$ac_c_preproc_warn_flag
2307 if test -z "$ac_cpp_err"; then
2308 # Broken: success on invalid input.
2311 echo "$as_me: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2313 # Passes both tests.
2317 rm -f conftest.err conftest.$ac_ext
2320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2321 rm -f conftest.err conftest.$ac_ext
2322 if $ac_preproc_ok; then
2334 echo "$as_me:2334: result: $CPP" >&5
2335 echo "${ECHO_T}$CPP" >&6
2337 for ac_c_preproc_warn_flag in '' yes
2339 # Use a header file that comes with gcc, so configuring glibc
2340 # with a fresh cross-compiler works.
2341 # On the NeXT, cc -E runs the code through the compiler's parser,
2342 # not just through cpp. "Syntax error" is here to catch this case.
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line 2344 "configure"
2345 #include "confdefs.h"
2349 if { (eval echo "$as_me:2349: \"$ac_cpp conftest.$ac_ext\"") >&5
2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2352 egrep -v '^ *\+' conftest.er1 >conftest.err
2354 cat conftest.err >&5
2355 echo "$as_me:2355: \$? = $ac_status" >&5
2356 (exit $ac_status); } >/dev/null; then
2357 if test -s conftest.err; then
2358 ac_cpp_err=$ac_c_preproc_warn_flag
2365 if test -z "$ac_cpp_err"; then
2368 echo "$as_me: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 # Broken: fails on valid input.
2373 rm -f conftest.err conftest.$ac_ext
2375 # OK, works on sane cases. Now check whether non-existent headers
2376 # can be detected and how.
2377 cat >conftest.$ac_ext <<_ACEOF
2378 #line 2378 "configure"
2379 #include "confdefs.h"
2380 #include <ac_nonexistent.h>
2382 if { (eval echo "$as_me:2382: \"$ac_cpp conftest.$ac_ext\"") >&5
2383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 egrep -v '^ *\+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:2388: \$? = $ac_status" >&5
2389 (exit $ac_status); } >/dev/null; then
2390 if test -s conftest.err; then
2391 ac_cpp_err=$ac_c_preproc_warn_flag
2398 if test -z "$ac_cpp_err"; then
2399 # Broken: success on invalid input.
2402 echo "$as_me: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 # Passes both tests.
2408 rm -f conftest.err conftest.$ac_ext
2411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2412 rm -f conftest.err conftest.$ac_ext
2413 if $ac_preproc_ok; then
2416 { { echo "$as_me:2416: error: C preprocessor \"$CPP\" fails sanity check" >&5
2417 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2418 { (exit 1); exit 1; }; }
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 ac_main_return=return
2428 if test $ac_cv_c_compiler_gnu = yes; then
2429 echo "$as_me:2429: checking whether $CC needs -traditional" >&5
2430 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2431 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_pattern="Autoconf.*'x'"
2435 cat >conftest.$ac_ext <<_ACEOF
2436 #line 2436 "configure"
2437 #include "confdefs.h"
2439 int Autoconf = TIOCGETP;
2441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2442 egrep "$ac_pattern" >/dev/null 2>&1; then
2443 ac_cv_prog_gcc_traditional=yes
2445 ac_cv_prog_gcc_traditional=no
2449 if test $ac_cv_prog_gcc_traditional = no; then
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line 2451 "configure"
2452 #include "confdefs.h"
2454 int Autoconf = TCGETA;
2456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2457 egrep "$ac_pattern" >/dev/null 2>&1; then
2458 ac_cv_prog_gcc_traditional=yes
2464 echo "$as_me:2464: result: $ac_cv_prog_gcc_traditional" >&5
2465 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2466 if test $ac_cv_prog_gcc_traditional = yes; then
2467 CC="$CC -traditional"
2471 echo "$as_me:2471: checking whether $CC understands -c and -o together" >&5
2472 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2473 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 cat > conftest.$ac_ext <<CF_EOF
2481 ${cf_cv_main_return:-return}(0);
2484 # We do the test twice because some compilers refuse to overwrite an
2485 # existing .o file with -o, though they will create one.
2486 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2487 if { (eval echo "$as_me:2487: \"$ac_try\"") >&5
2490 echo "$as_me:2490: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 test -f conftest2.$ac_objext && { (eval echo "$as_me:2492: \"$ac_try\"") >&5
2495 echo "$as_me:2495: \$? = $ac_status" >&5
2496 (exit $ac_status); };
2498 eval cf_cv_prog_CC_c_o=yes
2500 eval cf_cv_prog_CC_c_o=no
2505 if test $cf_cv_prog_CC_c_o = yes; then
2506 echo "$as_me:2506: result: yes" >&5
2507 echo "${ECHO_T}yes" >&6
2509 echo "$as_me:2509: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2513 if test "$cross_compiling" = yes ; then
2516 case "$cf_cv_system_name" in #(vi
2517 dragonfly*|mirbsd*|freebsd*) #(vi
2518 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2520 *) LDPATH=$PATH:/sbin:/usr/sbin
2521 # Extract the first word of "ldconfig", so it can be a program name with args.
2522 set dummy ldconfig; ac_word=$2
2523 echo "$as_me:2523: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2533 ac_save_IFS=$IFS; IFS=$ac_path_separator
2535 for ac_dir in $ac_dummy; do
2537 test -z "$ac_dir" && ac_dir=.
2538 if $as_executable_p "$ac_dir/$ac_word"; then
2539 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2540 echo "$as_me:2540: found $ac_dir/$ac_word" >&5
2548 LDCONFIG=$ac_cv_path_LDCONFIG
2550 if test -n "$LDCONFIG"; then
2551 echo "$as_me:2551: result: $LDCONFIG" >&5
2552 echo "${ECHO_T}$LDCONFIG" >&6
2554 echo "$as_me:2554: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2562 echo "$as_me:2562: checking if you want to ensure bool is consistent with C++" >&5
2563 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2565 # Check whether --with-cxx or --without-cxx was given.
2566 if test "${with_cxx+set}" = set; then
2568 cf_with_cxx=$withval
2572 echo "$as_me:2572: result: $cf_with_cxx" >&5
2573 echo "${ECHO_T}$cf_with_cxx" >&6
2574 if test "X$cf_with_cxx" = Xno ; then
2578 # with autoconf 2.13, we can change the error to a warning:
2580 ac_cpp='$CXXCPP $CPPFLAGS'
2581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2584 ac_main_return=return
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 echo "$as_me:2590: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2592 if test "${ac_cv_prog_CXX+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$CXX"; then
2596 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2598 ac_save_IFS=$IFS; IFS=$ac_path_separator
2600 for ac_dir in $ac_dummy; do
2602 test -z "$ac_dir" && ac_dir=.
2603 $as_executable_p "$ac_dir/$ac_word" || continue
2604 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2605 echo "$as_me:2605: found $ac_dir/$ac_word" >&5
2612 if test -n "$CXX"; then
2613 echo "$as_me:2613: result: $CXX" >&5
2614 echo "${ECHO_T}$CXX" >&6
2616 echo "$as_me:2616: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2620 test -n "$CXX" && break
2623 if test -z "$CXX"; then
2625 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 echo "$as_me:2629: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$ac_ct_CXX"; then
2635 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2637 ac_save_IFS=$IFS; IFS=$ac_path_separator
2639 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 $as_executable_p "$ac_dir/$ac_word" || continue
2643 ac_cv_prog_ac_ct_CXX="$ac_prog"
2644 echo "$as_me:2644: found $ac_dir/$ac_word" >&5
2650 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2651 if test -n "$ac_ct_CXX"; then
2652 echo "$as_me:2652: result: $ac_ct_CXX" >&5
2653 echo "${ECHO_T}$ac_ct_CXX" >&6
2655 echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 test -n "$ac_ct_CXX" && break
2661 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2666 # Provide some information about the compiler.
2667 echo "$as_me:2667:" \
2668 "checking for C++ compiler version" >&5
2669 ac_compiler=`set X $ac_compile; echo $2`
2670 { (eval echo "$as_me:2670: \"$ac_compiler --version </dev/null >&5\"") >&5
2671 (eval $ac_compiler --version </dev/null >&5) 2>&5
2673 echo "$as_me:2673: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (eval echo "$as_me:2675: \"$ac_compiler -v </dev/null >&5\"") >&5
2676 (eval $ac_compiler -v </dev/null >&5) 2>&5
2678 echo "$as_me:2678: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2680 { (eval echo "$as_me:2680: \"$ac_compiler -V </dev/null >&5\"") >&5
2681 (eval $ac_compiler -V </dev/null >&5) 2>&5
2683 echo "$as_me:2683: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2686 echo "$as_me:2686: checking whether we are using the GNU C++ compiler" >&5
2687 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2688 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #line 2692 "configure"
2693 #include "confdefs.h"
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:2707: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:2710: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:2713: \"$ac_try\"") >&5
2716 echo "$as_me:2716: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2724 rm -f conftest.$ac_objext conftest.$ac_ext
2725 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2728 echo "$as_me:2728: result: $ac_cv_cxx_compiler_gnu" >&5
2729 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2730 GXX=`test $ac_compiler_gnu = yes && echo yes`
2731 ac_test_CXXFLAGS=${CXXFLAGS+set}
2732 ac_save_CXXFLAGS=$CXXFLAGS
2734 echo "$as_me:2734: checking whether $CXX accepts -g" >&5
2735 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2736 if test "${ac_cv_prog_cxx_g+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #line 2740 "configure"
2741 #include "confdefs.h"
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:2752: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>&5
2755 echo "$as_me:2755: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:2758: \"$ac_try\"") >&5
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_cv_prog_cxx_g=yes
2765 echo "$as_me: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2769 rm -f conftest.$ac_objext conftest.$ac_ext
2771 echo "$as_me:2771: result: $ac_cv_prog_cxx_g" >&5
2772 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2773 if test "$ac_test_CXXFLAGS" = set; then
2774 CXXFLAGS=$ac_save_CXXFLAGS
2775 elif test $ac_cv_prog_cxx_g = yes; then
2776 if test "$GXX" = yes; then
2782 if test "$GXX" = yes; then
2788 for ac_declaration in \
2790 '#include <stdlib.h>' \
2791 'extern "C" void std::exit (int) throw (); using std::exit;' \
2792 'extern "C" void std::exit (int); using std::exit;' \
2793 'extern "C" void exit (int) throw ();' \
2794 'extern "C" void exit (int);' \
2797 cat >conftest.$ac_ext <<_ACEOF
2798 #line 2798 "configure"
2799 #include "confdefs.h"
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:2811: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>&5
2814 echo "$as_me:2814: \$? = $ac_status" >&5
2815 (exit $ac_status); } &&
2816 { ac_try='test -s conftest.$ac_objext'
2817 { (eval echo "$as_me:2817: \"$ac_try\"") >&5
2820 echo "$as_me:2820: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2824 echo "$as_me: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2828 rm -f conftest.$ac_objext conftest.$ac_ext
2829 cat >conftest.$ac_ext <<_ACEOF
2830 #line 2830 "configure"
2831 #include "confdefs.h"
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:2842: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>&5
2845 echo "$as_me:2845: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:2848: \"$ac_try\"") >&5
2851 echo "$as_me:2851: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 echo "$as_me: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2858 rm -f conftest.$ac_objext conftest.$ac_ext
2861 if test -n "$ac_declaration"; then
2862 echo '#ifdef __cplusplus' >>confdefs.h
2863 echo $ac_declaration >>confdefs.h
2864 echo '#endif' >>confdefs.h
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 ac_main_return=return
2875 ac_cpp='$CXXCPP $CPPFLAGS'
2876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2879 ac_main_return=return
2881 if test "x$cf_with_cxx" != xno
2883 # Several of the C++ configurations do not work, particularly when
2884 # cross-compiling (20140913 -TD)
2885 echo "$as_me:2885: checking if $CXX works" >&5
2886 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2888 save_CPPFLAGS="$CPPFLAGS"
2889 eval cf_includedir=${includedir}
2890 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line 2893 "configure"
2894 #include "confdefs.h"
2903 printf("Hello world!\n")
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:2910: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>&5
2913 echo "$as_me:2913: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:2916: \"$ac_try\"") >&5
2919 echo "$as_me:2919: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2923 echo "$as_me: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2927 rm -f conftest.$ac_objext conftest.$ac_ext
2928 CPPFLAGS="$save_CPPFLAGS"
2930 echo "$as_me:2930: result: $cf_cxx_works" >&5
2931 echo "${ECHO_T}$cf_cxx_works" >&6
2932 if test "x$cf_cxx_works" = xno
2934 { echo "$as_me:2934: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2935 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2936 cf_with_cxx=no; CXX=""; GXX="";
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 ac_main_return=return
2946 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2947 if test "$CXX" = "g++" ; then
2948 # Extract the first word of "g++", so it can be a program name with args.
2949 set dummy g++; ac_word=$2
2950 echo "$as_me:2950: checking for $ac_word" >&5
2951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952 if test "${ac_cv_path_CXX+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2960 ac_save_IFS=$IFS; IFS=$ac_path_separator
2962 for ac_dir in $ac_dummy; do
2964 test -z "$ac_dir" && ac_dir=.
2965 if $as_executable_p "$ac_dir/$ac_word"; then
2966 ac_cv_path_CXX="$ac_dir/$ac_word"
2967 echo "$as_me:2967: found $ac_dir/$ac_word" >&5
2977 if test -n "$CXX"; then
2978 echo "$as_me:2978: result: $CXX" >&5
2979 echo "${ECHO_T}$CXX" >&6
2981 echo "$as_me:2981: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2986 case "x$CXX" in #(vi
2988 { echo "$as_me:2988: WARNING: You don't have any C++ compiler, too bad" >&5
2989 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2990 cf_with_cxx=no; CXX=""; GXX="";
2996 if test "$GXX" = yes; then
2997 echo "$as_me:2997: checking version of ${CXX:-g++}" >&5
2998 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2999 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3000 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3001 echo "$as_me:3001: result: $GXX_VERSION" >&5
3002 echo "${ECHO_T}$GXX_VERSION" >&6
3005 case $GXX_VERSION in
3007 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3009 { echo "$as_me:3009: WARNING: templates do not work" >&5
3010 echo "$as_me: WARNING: templates do not work" >&2;}
3014 echo "$as_me:3014: checking if you want to build C++ binding and demo" >&5
3015 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3017 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3018 if test "${with_cxx_binding+set}" = set; then
3019 withval="$with_cxx_binding"
3020 cf_with_cxx_binding=$withval
3022 cf_with_cxx_binding=$cf_with_cxx
3024 echo "$as_me:3024: result: $cf_with_cxx_binding" >&5
3025 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3027 echo "$as_me:3027: checking if you want to build with Ada95" >&5
3028 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3029 echo "$as_me:3029: result: $cf_with_ada" >&5
3030 echo "${ECHO_T}$cf_with_ada" >&6
3032 echo "$as_me:3032: checking if you want to install terminal database" >&5
3033 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3035 # Check whether --enable-db-install or --disable-db-install was given.
3036 if test "${enable_db_install+set}" = set; then
3037 enableval="$enable_db_install"
3038 cf_with_db_install=$enableval
3040 cf_with_db_install=yes
3042 echo "$as_me:3042: result: $cf_with_db_install" >&5
3043 echo "${ECHO_T}$cf_with_db_install" >&6
3045 echo "$as_me:3045: checking if you want to install manpages" >&5
3046 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3048 # Check whether --with-manpages or --without-manpages was given.
3049 if test "${with_manpages+set}" = set; then
3050 withval="$with_manpages"
3051 cf_with_manpages=$withval
3053 cf_with_manpages=yes
3055 echo "$as_me:3055: result: $cf_with_manpages" >&5
3056 echo "${ECHO_T}$cf_with_manpages" >&6
3058 echo "$as_me:3058: checking if you want to build programs such as tic" >&5
3059 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3061 # Check whether --with-progs or --without-progs was given.
3062 if test "${with_progs+set}" = set; then
3063 withval="$with_progs"
3064 cf_with_progs=$withval
3068 echo "$as_me:3068: result: $cf_with_progs" >&5
3069 echo "${ECHO_T}$cf_with_progs" >&6
3071 echo "$as_me:3071: checking if you want to build test-programs" >&5
3072 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3074 # Check whether --with-tests or --without-tests was given.
3075 if test "${with_tests+set}" = set; then
3076 withval="$with_tests"
3077 cf_with_tests=$withval
3081 echo "$as_me:3081: result: $cf_with_tests" >&5
3082 echo "${ECHO_T}$cf_with_tests" >&6
3084 echo "$as_me:3084: checking if you wish to install curses.h" >&5
3085 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3087 # Check whether --with-curses-h or --without-curses-h was given.
3088 if test "${with_curses_h+set}" = set; then
3089 withval="$with_curses_h"
3090 with_curses_h=$withval
3094 echo "$as_me:3094: result: $with_curses_h" >&5
3095 echo "${ECHO_T}$with_curses_h" >&6
3097 modules_to_build="ncurses"
3098 if test "X$cf_with_progs" != Xno ; then
3099 modules_to_build="$modules_to_build progs tack"
3101 modules_to_build="$modules_to_build panel menu form"
3103 test "$program_prefix" != NONE &&
3104 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3105 # Use a double $ so make ignores it.
3106 test "$program_suffix" != NONE &&
3107 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3108 # Double any \ or $. echo might interpret backslashes.
3109 # By default was `s,x,x', remove it if useless.
3110 cat <<\_ACEOF >conftest.sed
3111 s/[\\$]/&&/g;s/;s,x,x,$//
3113 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3116 for ac_prog in mawk gawk nawk awk
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 echo "$as_me:3120: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_prog_AWK+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 if test -n "$AWK"; then
3126 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3128 ac_save_IFS=$IFS; IFS=$ac_path_separator
3130 for ac_dir in $ac_dummy; do
3132 test -z "$ac_dir" && ac_dir=.
3133 $as_executable_p "$ac_dir/$ac_word" || continue
3134 ac_cv_prog_AWK="$ac_prog"
3135 echo "$as_me:3135: found $ac_dir/$ac_word" >&5
3142 if test -n "$AWK"; then
3143 echo "$as_me:3143: result: $AWK" >&5
3144 echo "${ECHO_T}$AWK" >&6
3146 echo "$as_me:3146: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3150 test -n "$AWK" && break
3153 test -z "$AWK" && { { echo "$as_me:3153: error: No awk program found" >&5
3154 echo "$as_me: error: No awk program found" >&2;}
3155 { (exit 1); exit 1; }; }
3157 echo "$as_me:3157: checking for egrep" >&5
3158 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3159 if test "${ac_cv_prog_egrep+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3163 then ac_cv_prog_egrep='grep -E'
3164 else ac_cv_prog_egrep='egrep'
3167 echo "$as_me:3167: result: $ac_cv_prog_egrep" >&5
3168 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3169 EGREP=$ac_cv_prog_egrep
3171 test -z "$EGREP" && { { echo "$as_me:3171: error: No egrep program found" >&5
3172 echo "$as_me: error: No egrep program found" >&2;}
3173 { (exit 1); exit 1; }; }
3175 # Find a good install program. We prefer a C program (faster),
3176 # so one script is as good as another. But avoid the broken or
3177 # incompatible versions:
3178 # SysV /etc/install, /usr/sbin/install
3179 # SunOS /usr/etc/install
3180 # IRIX /sbin/install
3182 # AmigaOS /C/install, which installs bootblocks on floppy discs
3183 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3184 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3185 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3186 # ./install, which can be erroneously created by make from ./install.sh.
3187 echo "$as_me:3187: checking for a BSD compatible install" >&5
3188 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3189 if test -z "$INSTALL"; then
3190 if test "${ac_cv_path_install+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 ac_save_IFS=$IFS; IFS=$ac_path_separator
3194 for ac_dir in $PATH; do
3196 # Account for people who put trailing slashes in PATH elements.
3198 / | ./ | .// | /cC/* \
3199 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3202 # OSF1 and SCO ODT 3.0 have their own names for install.
3203 # Don't use installbsd from OSF since it installs stuff as root
3205 for ac_prog in ginstall scoinst install; do
3206 if $as_executable_p "$ac_dir/$ac_prog"; then
3207 if test $ac_prog = install &&
3208 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3209 # AIX install. It has an incompatible calling convention.
3211 elif test $ac_prog = install &&
3212 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3213 # program-specific install script used by HP pwplus--don't use.
3216 ac_cv_path_install="$ac_dir/$ac_prog -c"
3226 if test "${ac_cv_path_install+set}" = set; then
3227 INSTALL=$ac_cv_path_install
3229 # As a last resort, use the slow shell script. We don't cache a
3230 # path for INSTALL within a source directory, because that will
3231 # break other packages using the cache if that directory is
3232 # removed, or if the path is relative.
3233 INSTALL=$ac_install_sh
3236 echo "$as_me:3236: result: $INSTALL" >&5
3237 echo "${ECHO_T}$INSTALL" >&6
3239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3240 # It thinks the first close brace ends the variable substitution.
3241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3251 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3252 test -z "$cf_dir" && cf_dir=.
3253 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3257 for ac_prog in tdlint lint alint splint lclint
3259 # Extract the first word of "$ac_prog", so it can be a program name with args.
3260 set dummy $ac_prog; ac_word=$2
3261 echo "$as_me:3261: checking for $ac_word" >&5
3262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3263 if test "${ac_cv_prog_LINT+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 if test -n "$LINT"; then
3267 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3269 ac_save_IFS=$IFS; IFS=$ac_path_separator
3271 for ac_dir in $ac_dummy; do
3273 test -z "$ac_dir" && ac_dir=.
3274 $as_executable_p "$ac_dir/$ac_word" || continue
3275 ac_cv_prog_LINT="$ac_prog"
3276 echo "$as_me:3276: found $ac_dir/$ac_word" >&5
3282 LINT=$ac_cv_prog_LINT
3283 if test -n "$LINT"; then
3284 echo "$as_me:3284: result: $LINT" >&5
3285 echo "${ECHO_T}$LINT" >&6
3287 echo "$as_me:3287: result: no" >&5
3288 echo "${ECHO_T}no" >&6
3291 test -n "$LINT" && break
3294 echo "$as_me:3294: checking whether ln -s works" >&5
3295 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3297 if test "$LN_S" = "ln -s"; then
3298 echo "$as_me:3298: result: yes" >&5
3299 echo "${ECHO_T}yes" >&6
3301 echo "$as_me:3301: result: no, using $LN_S" >&5
3302 echo "${ECHO_T}no, using $LN_S" >&6
3305 echo "$as_me:3305: checking if $LN_S -f options work" >&5
3306 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3308 rm -f conf$$.src conf$$dst
3310 echo first >conf$$.src
3311 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3316 rm -f conf$$.dst conf$$src
3317 echo "$as_me:3317: result: $cf_prog_ln_sf" >&5
3318 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3320 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3322 echo "$as_me:3322: checking for long file names" >&5
3323 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3324 if test "${ac_cv_sys_long_file_names+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 ac_cv_sys_long_file_names=yes
3328 # Test for long file names in all the places we know might matter:
3329 # . the current directory, where building will happen
3330 # $prefix/lib where we will be installing things
3331 # $exec_prefix/lib likewise
3332 # eval it to expand exec_prefix.
3333 # $TMPDIR if set, where it might want to write temporary files
3334 # if $TMPDIR is not set:
3335 # /tmp where it might want to write temporary files
3338 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3341 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3343 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3344 test -d $ac_dir || continue
3345 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3346 ac_xdir=$ac_dir/cf$$
3347 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3348 ac_tf1=$ac_xdir/conftest9012345
3349 ac_tf2=$ac_xdir/conftest9012346
3350 (echo 1 >$ac_tf1) 2>/dev/null
3351 (echo 2 >$ac_tf2) 2>/dev/null
3352 ac_val=`cat $ac_tf1 2>/dev/null`
3353 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3354 ac_cv_sys_long_file_names=no
3355 rm -rf $ac_xdir 2>/dev/null
3358 rm -rf $ac_xdir 2>/dev/null
3361 echo "$as_me:3361: result: $ac_cv_sys_long_file_names" >&5
3362 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3363 if test $ac_cv_sys_long_file_names = yes; then
3365 cat >>confdefs.h <<\EOF
3366 #define HAVE_LONG_FILE_NAMES 1
3371 # if we find pkg-config, check if we should install the ".pc" files.
3373 echo "$as_me:3373: checking if you want to use pkg-config" >&5
3374 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3376 # Check whether --with-pkg-config or --without-pkg-config was given.
3377 if test "${with_pkg_config+set}" = set; then
3378 withval="$with_pkg_config"
3379 cf_pkg_config=$withval
3383 echo "$as_me:3383: result: $cf_pkg_config" >&5
3384 echo "${ECHO_T}$cf_pkg_config" >&6
3386 case $cf_pkg_config in #(vi
3392 if test -n "$ac_tool_prefix"; then
3393 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3394 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3395 echo "$as_me:3395: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3405 ac_save_IFS=$IFS; IFS=$ac_path_separator
3407 for ac_dir in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir=.
3410 if $as_executable_p "$ac_dir/$ac_word"; then
3411 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3412 echo "$as_me:3412: found $ac_dir/$ac_word" >&5
3420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3422 if test -n "$PKG_CONFIG"; then
3423 echo "$as_me:3423: result: $PKG_CONFIG" >&5
3424 echo "${ECHO_T}$PKG_CONFIG" >&6
3426 echo "$as_me:3426: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3431 if test -z "$ac_cv_path_PKG_CONFIG"; then
3432 ac_pt_PKG_CONFIG=$PKG_CONFIG
3433 # Extract the first word of "pkg-config", so it can be a program name with args.
3434 set dummy pkg-config; ac_word=$2
3435 echo "$as_me:3435: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 case $ac_pt_PKG_CONFIG in
3442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3445 ac_save_IFS=$IFS; IFS=$ac_path_separator
3447 for ac_dir in $ac_dummy; do
3449 test -z "$ac_dir" && ac_dir=.
3450 if $as_executable_p "$ac_dir/$ac_word"; then
3451 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3452 echo "$as_me:3452: found $ac_dir/$ac_word" >&5
3457 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3461 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3463 if test -n "$ac_pt_PKG_CONFIG"; then
3464 echo "$as_me:3464: result: $ac_pt_PKG_CONFIG" >&5
3465 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3467 echo "$as_me:3467: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3471 PKG_CONFIG=$ac_pt_PKG_CONFIG
3473 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3482 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3483 if test "$PKG_CONFIG" != none ; then
3485 if test "x$prefix" != xNONE; then
3486 cf_path_syntax="$prefix"
3488 cf_path_syntax="$ac_default_prefix"
3491 case ".$PKG_CONFIG" in #(vi
3492 .\$\(*\)*|.\'*\'*) #(vi
3496 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3498 .\${*prefix}*|.\${*dir}*) #(vi
3499 eval PKG_CONFIG="$PKG_CONFIG"
3500 case ".$PKG_CONFIG" in #(vi
3502 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3507 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3510 { { echo "$as_me:3510: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3511 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3512 { (exit 1); exit 1; }; }
3517 { echo "$as_me:3517: WARNING: pkg-config is not installed" >&5
3518 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3521 echo "$as_me:3521: checking for $PKG_CONFIG library directory" >&5
3522 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3524 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3525 if test "${with_pkg_config_libdir+set}" = set; then
3526 withval="$with_pkg_config_libdir"
3527 PKG_CONFIG_LIBDIR=$withval
3529 PKG_CONFIG_LIBDIR=yes
3532 case x$PKG_CONFIG_LIBDIR in #(vi
3536 # Look for the library directory using the same prefix as the executable
3537 if test "x$PKG_CONFIG" = xnone
3541 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3544 # If you don't like using the default architecture, you have to specify the
3545 # intended library directory and corresponding compiler/linker options.
3547 # This case allows for Debian's 2014-flavor of multiarch, along with the
3548 # most common variations before that point. Some other variants spell the
3549 # directory differently, e.g., "pkg-config", and put it in unusual places.
3550 # pkg-config has always been poorly standardized, which is ironic...
3551 case x`(arch) 2>/dev/null` in #(vi
3554 $cf_path/lib/*64-linux-gnu \
3562 $cf_path/lib/*-linux-gnu \
3570 test -n "$verbose" && echo " list..." 1>&6
3572 echo "${as_me:-configure}:3572: testing list... ..." 1>&5
3574 for cf_config in $cf_search_path
3576 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3578 echo "${as_me:-configure}:3578: testing checking $cf_config/pkgconfig ..." 1>&5
3580 if test -d $cf_config/pkgconfig
3582 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3583 echo "$as_me:3583: checking done" >&5
3584 echo $ECHO_N "checking done... $ECHO_C" >&6
3593 echo "$as_me:3593: result: $PKG_CONFIG_LIBDIR" >&5
3594 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3596 if test "x$PKG_CONFIG" != xnone
3598 echo "$as_me:3598: checking if we should install .pc files for $PKG_CONFIG" >&5
3599 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3601 echo "$as_me:3601: checking if we should install .pc files" >&5
3602 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3605 # Check whether --enable-pc-files or --disable-pc-files was given.
3606 if test "${enable_pc_files+set}" = set; then
3607 enableval="$enable_pc_files"
3608 enable_pc_files=$enableval
3612 echo "$as_me:3612: result: $enable_pc_files" >&5
3613 echo "${ECHO_T}$enable_pc_files" >&6
3615 if test "x$enable_pc_files" != xno
3617 case "x$PKG_CONFIG_LIBDIR" in #(vi
3619 { echo "$as_me:3619: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3620 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3625 if test "x$prefix" != xNONE; then
3626 cf_path_syntax="$prefix"
3628 cf_path_syntax="$ac_default_prefix"
3631 case ".$PKG_CONFIG_LIBDIR" in #(vi
3632 .\$\(*\)*|.\'*\'*) #(vi
3636 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3638 .\${*prefix}*|.\${*dir}*) #(vi
3639 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3640 case ".$PKG_CONFIG_LIBDIR" in #(vi
3642 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3647 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3650 { { echo "$as_me:3650: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3651 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3652 { (exit 1); exit 1; }; }
3663 if test -z "$MAKE_PC_FILES"
3665 echo "$as_me:3665: checking for suffix to add to pc-files" >&5
3666 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3668 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3669 if test "${with_pc_suffix+set}" = set; then
3670 withval="$with_pc_suffix"
3671 case "x$withval" in #(vi
3675 *) PC_MODULE_SUFFIX="$withval"
3679 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3680 echo "$as_me:3680: result: $PC_MODULE_SUFFIX" >&5
3681 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3682 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3686 echo "$as_me:3686: checking if we should assume mixed-case filenames" >&5
3687 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3689 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3690 if test "${enable_mixed_case+set}" = set; then
3691 enableval="$enable_mixed_case"
3692 enable_mixedcase=$enableval
3694 enable_mixedcase=auto
3696 echo "$as_me:3696: result: $enable_mixedcase" >&5
3697 echo "${ECHO_T}$enable_mixedcase" >&6
3698 if test "$enable_mixedcase" = "auto" ; then
3700 echo "$as_me:3700: checking if filesystem supports mixed-case filenames" >&5
3701 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3702 if test "${cf_cv_mixedcase+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 if test "$cross_compiling" = yes ; then
3707 case $target_alias in #(vi
3708 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
3716 rm -f conftest CONFTEST
3718 if test -f CONFTEST ; then
3723 rm -f conftest CONFTEST
3727 echo "$as_me:3727: result: $cf_cv_mixedcase" >&5
3728 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3729 test "$cf_cv_mixedcase" = yes &&
3730 cat >>confdefs.h <<\EOF
3731 #define MIXEDCASE_FILENAMES 1
3735 cf_cv_mixedcase=$enable_mixedcase
3736 if test "x$enable_mixedcase" = "xyes" ; then
3738 cat >>confdefs.h <<\EOF
3739 #define MIXEDCASE_FILENAMES 1
3745 # do this after mixed-case option (tags/TAGS is not as important as tic).
3746 echo "$as_me:3746: checking whether ${MAKE-make} sets \${MAKE}" >&5
3747 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3749 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 cat >conftest.make <<\EOF
3754 @echo 'ac_maketemp="${MAKE}"'
3756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3757 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3758 if test -n "$ac_maketemp"; then
3759 eval ac_cv_prog_make_${ac_make}_set=yes
3761 eval ac_cv_prog_make_${ac_make}_set=no
3765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3766 echo "$as_me:3766: result: yes" >&5
3767 echo "${ECHO_T}yes" >&6
3770 echo "$as_me:3770: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 SET_MAKE="MAKE=${MAKE-make}"
3775 for ac_prog in exctags ctags
3777 # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy $ac_prog; ac_word=$2
3779 echo "$as_me:3779: checking for $ac_word" >&5
3780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781 if test "${ac_cv_prog_CTAGS+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 if test -n "$CTAGS"; then
3785 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3787 ac_save_IFS=$IFS; IFS=$ac_path_separator
3789 for ac_dir in $ac_dummy; do
3791 test -z "$ac_dir" && ac_dir=.
3792 $as_executable_p "$ac_dir/$ac_word" || continue
3793 ac_cv_prog_CTAGS="$ac_prog"
3794 echo "$as_me:3794: found $ac_dir/$ac_word" >&5
3800 CTAGS=$ac_cv_prog_CTAGS
3801 if test -n "$CTAGS"; then
3802 echo "$as_me:3802: result: $CTAGS" >&5
3803 echo "${ECHO_T}$CTAGS" >&6
3805 echo "$as_me:3805: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3809 test -n "$CTAGS" && break
3812 for ac_prog in exetags etags
3814 # Extract the first word of "$ac_prog", so it can be a program name with args.
3815 set dummy $ac_prog; ac_word=$2
3816 echo "$as_me:3816: checking for $ac_word" >&5
3817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3818 if test "${ac_cv_prog_ETAGS+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 if test -n "$ETAGS"; then
3822 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3824 ac_save_IFS=$IFS; IFS=$ac_path_separator
3826 for ac_dir in $ac_dummy; do
3828 test -z "$ac_dir" && ac_dir=.
3829 $as_executable_p "$ac_dir/$ac_word" || continue
3830 ac_cv_prog_ETAGS="$ac_prog"
3831 echo "$as_me:3831: found $ac_dir/$ac_word" >&5
3837 ETAGS=$ac_cv_prog_ETAGS
3838 if test -n "$ETAGS"; then
3839 echo "$as_me:3839: result: $ETAGS" >&5
3840 echo "${ECHO_T}$ETAGS" >&6
3842 echo "$as_me:3842: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3846 test -n "$ETAGS" && break
3849 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3850 set dummy ${CTAGS:-ctags}; ac_word=$2
3851 echo "$as_me:3851: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 if test -n "$MAKE_LOWER_TAGS"; then
3857 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3859 ac_save_IFS=$IFS; IFS=$ac_path_separator
3861 for ac_dir in $ac_dummy; do
3863 test -z "$ac_dir" && ac_dir=.
3864 $as_executable_p "$ac_dir/$ac_word" || continue
3865 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3866 echo "$as_me:3866: found $ac_dir/$ac_word" >&5
3870 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3873 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3874 if test -n "$MAKE_LOWER_TAGS"; then
3875 echo "$as_me:3875: result: $MAKE_LOWER_TAGS" >&5
3876 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3878 echo "$as_me:3878: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3882 if test "$cf_cv_mixedcase" = yes ; then
3883 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3884 set dummy ${ETAGS:-etags}; ac_word=$2
3885 echo "$as_me:3885: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$MAKE_UPPER_TAGS"; then
3891 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3893 ac_save_IFS=$IFS; IFS=$ac_path_separator
3895 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 $as_executable_p "$ac_dir/$ac_word" || continue
3899 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3900 echo "$as_me:3900: found $ac_dir/$ac_word" >&5
3904 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3907 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3908 if test -n "$MAKE_UPPER_TAGS"; then
3909 echo "$as_me:3909: result: $MAKE_UPPER_TAGS" >&5
3910 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3912 echo "$as_me:3912: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3920 if test "$MAKE_UPPER_TAGS" = yes ; then
3926 if test "$MAKE_LOWER_TAGS" = yes ; then
3932 echo "$as_me:3932: checking for makeflags variable" >&5
3933 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3934 if test "${cf_cv_makeflags+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3941 cat >cf_makeflags.tmp <<CF_EOF
3944 @ echo '.$cf_option'
3946 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3947 case "$cf_result" in
3949 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3950 case "$cf_result" in
3951 .*CC=*) cf_cv_makeflags=
3953 *) cf_cv_makeflags=$cf_option
3959 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3963 rm -f cf_makeflags.tmp
3966 echo "$as_me:3966: result: $cf_cv_makeflags" >&5
3967 echo "${ECHO_T}$cf_cv_makeflags" >&6
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3972 echo "$as_me:3972: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_RANLIB+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 if test -n "$RANLIB"; then
3978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3980 ac_save_IFS=$IFS; IFS=$ac_path_separator
3982 for ac_dir in $ac_dummy; do
3984 test -z "$ac_dir" && ac_dir=.
3985 $as_executable_p "$ac_dir/$ac_word" || continue
3986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3987 echo "$as_me:3987: found $ac_dir/$ac_word" >&5
3993 RANLIB=$ac_cv_prog_RANLIB
3994 if test -n "$RANLIB"; then
3995 echo "$as_me:3995: result: $RANLIB" >&5
3996 echo "${ECHO_T}$RANLIB" >&6
3998 echo "$as_me:3998: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4003 if test -z "$ac_cv_prog_RANLIB"; then
4004 ac_ct_RANLIB=$RANLIB
4005 # Extract the first word of "ranlib", so it can be a program name with args.
4006 set dummy ranlib; ac_word=$2
4007 echo "$as_me:4007: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if test -n "$ac_ct_RANLIB"; then
4013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4015 ac_save_IFS=$IFS; IFS=$ac_path_separator
4017 for ac_dir in $ac_dummy; do
4019 test -z "$ac_dir" && ac_dir=.
4020 $as_executable_p "$ac_dir/$ac_word" || continue
4021 ac_cv_prog_ac_ct_RANLIB="ranlib"
4022 echo "$as_me:4022: found $ac_dir/$ac_word" >&5
4026 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4030 if test -n "$ac_ct_RANLIB"; then
4031 echo "$as_me:4031: result: $ac_ct_RANLIB" >&5
4032 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4034 echo "$as_me:4034: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4038 RANLIB=$ac_ct_RANLIB
4040 RANLIB="$ac_cv_prog_RANLIB"
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}ld; ac_word=$2
4046 echo "$as_me:4046: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_LD+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if test -n "$LD"; then
4052 ac_cv_prog_LD="$LD" # Let the user override the test.
4054 ac_save_IFS=$IFS; IFS=$ac_path_separator
4056 for ac_dir in $ac_dummy; do
4058 test -z "$ac_dir" && ac_dir=.
4059 $as_executable_p "$ac_dir/$ac_word" || continue
4060 ac_cv_prog_LD="${ac_tool_prefix}ld"
4061 echo "$as_me:4061: found $ac_dir/$ac_word" >&5
4068 if test -n "$LD"; then
4069 echo "$as_me:4069: result: $LD" >&5
4070 echo "${ECHO_T}$LD" >&6
4072 echo "$as_me:4072: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4077 if test -z "$ac_cv_prog_LD"; then
4079 # Extract the first word of "ld", so it can be a program name with args.
4080 set dummy ld; ac_word=$2
4081 echo "$as_me:4081: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 if test -n "$ac_ct_LD"; then
4087 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4089 ac_save_IFS=$IFS; IFS=$ac_path_separator
4091 for ac_dir in $ac_dummy; do
4093 test -z "$ac_dir" && ac_dir=.
4094 $as_executable_p "$ac_dir/$ac_word" || continue
4095 ac_cv_prog_ac_ct_LD="ld"
4096 echo "$as_me:4096: found $ac_dir/$ac_word" >&5
4100 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4103 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4104 if test -n "$ac_ct_LD"; then
4105 echo "$as_me:4105: result: $ac_ct_LD" >&5
4106 echo "${ECHO_T}$ac_ct_LD" >&6
4108 echo "$as_me:4108: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4117 if test -n "$ac_tool_prefix"; then
4118 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4119 set dummy ${ac_tool_prefix}ar; ac_word=$2
4120 echo "$as_me:4120: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_AR+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 if test -n "$AR"; then
4126 ac_cv_prog_AR="$AR" # Let the user override the test.
4128 ac_save_IFS=$IFS; IFS=$ac_path_separator
4130 for ac_dir in $ac_dummy; do
4132 test -z "$ac_dir" && ac_dir=.
4133 $as_executable_p "$ac_dir/$ac_word" || continue
4134 ac_cv_prog_AR="${ac_tool_prefix}ar"
4135 echo "$as_me:4135: found $ac_dir/$ac_word" >&5
4142 if test -n "$AR"; then
4143 echo "$as_me:4143: result: $AR" >&5
4144 echo "${ECHO_T}$AR" >&6
4146 echo "$as_me:4146: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4151 if test -z "$ac_cv_prog_AR"; then
4153 # Extract the first word of "ar", so it can be a program name with args.
4154 set dummy ar; ac_word=$2
4155 echo "$as_me:4155: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 if test -n "$ac_ct_AR"; then
4161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4163 ac_save_IFS=$IFS; IFS=$ac_path_separator
4165 for ac_dir in $ac_dummy; do
4167 test -z "$ac_dir" && ac_dir=.
4168 $as_executable_p "$ac_dir/$ac_word" || continue
4169 ac_cv_prog_ac_ct_AR="ar"
4170 echo "$as_me:4170: found $ac_dir/$ac_word" >&5
4174 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4178 if test -n "$ac_ct_AR"; then
4179 echo "$as_me:4179: result: $ac_ct_AR" >&5
4180 echo "${ECHO_T}$ac_ct_AR" >&6
4182 echo "$as_me:4182: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4191 if test -n "$ac_tool_prefix"; then
4192 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4193 set dummy ${ac_tool_prefix}nm; ac_word=$2
4194 echo "$as_me:4194: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4196 if test "${ac_cv_prog_NM+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 if test -n "$NM"; then
4200 ac_cv_prog_NM="$NM" # Let the user override the test.
4202 ac_save_IFS=$IFS; IFS=$ac_path_separator
4204 for ac_dir in $ac_dummy; do
4206 test -z "$ac_dir" && ac_dir=.
4207 $as_executable_p "$ac_dir/$ac_word" || continue
4208 ac_cv_prog_NM="${ac_tool_prefix}nm"
4209 echo "$as_me:4209: found $ac_dir/$ac_word" >&5
4216 if test -n "$NM"; then
4217 echo "$as_me:4217: result: $NM" >&5
4218 echo "${ECHO_T}$NM" >&6
4220 echo "$as_me:4220: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4225 if test -z "$ac_cv_prog_NM"; then
4227 # Extract the first word of "nm", so it can be a program name with args.
4228 set dummy nm; ac_word=$2
4229 echo "$as_me:4229: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if test -n "$ac_ct_NM"; then
4235 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4237 ac_save_IFS=$IFS; IFS=$ac_path_separator
4239 for ac_dir in $ac_dummy; do
4241 test -z "$ac_dir" && ac_dir=.
4242 $as_executable_p "$ac_dir/$ac_word" || continue
4243 ac_cv_prog_ac_ct_NM="nm"
4244 echo "$as_me:4244: found $ac_dir/$ac_word" >&5
4248 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4251 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4252 if test -n "$ac_ct_NM"; then
4253 echo "$as_me:4253: result: $ac_ct_NM" >&5
4254 echo "${ECHO_T}$ac_ct_NM" >&6
4256 echo "$as_me:4256: result: no" >&5
4257 echo "${ECHO_T}no" >&6
4265 if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4267 set dummy ${ac_tool_prefix}ar; ac_word=$2
4268 echo "$as_me:4268: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_prog_AR+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test -n "$AR"; then
4274 ac_cv_prog_AR="$AR" # Let the user override the test.
4276 ac_save_IFS=$IFS; IFS=$ac_path_separator
4278 for ac_dir in $ac_dummy; do
4280 test -z "$ac_dir" && ac_dir=.
4281 $as_executable_p "$ac_dir/$ac_word" || continue
4282 ac_cv_prog_AR="${ac_tool_prefix}ar"
4283 echo "$as_me:4283: found $ac_dir/$ac_word" >&5
4290 if test -n "$AR"; then
4291 echo "$as_me:4291: result: $AR" >&5
4292 echo "${ECHO_T}$AR" >&6
4294 echo "$as_me:4294: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4299 if test -z "$ac_cv_prog_AR"; then
4301 # Extract the first word of "ar", so it can be a program name with args.
4302 set dummy ar; ac_word=$2
4303 echo "$as_me:4303: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$ac_ct_AR"; then
4309 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4311 ac_save_IFS=$IFS; IFS=$ac_path_separator
4313 for ac_dir in $ac_dummy; do
4315 test -z "$ac_dir" && ac_dir=.
4316 $as_executable_p "$ac_dir/$ac_word" || continue
4317 ac_cv_prog_ac_ct_AR="ar"
4318 echo "$as_me:4318: found $ac_dir/$ac_word" >&5
4322 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4325 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4326 if test -n "$ac_ct_AR"; then
4327 echo "$as_me:4327: result: $ac_ct_AR" >&5
4328 echo "${ECHO_T}$ac_ct_AR" >&6
4330 echo "$as_me:4330: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4339 echo "$as_me:4339: checking for options to update archives" >&5
4340 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4341 if test "${cf_cv_ar_flags+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 cf_cv_ar_flags=unknown
4346 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4349 # check if $ARFLAGS already contains this choice
4350 if test "x$ARFLAGS" != "x" ; then
4351 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4352 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4358 rm -f conftest.$ac_cv_objext
4361 cat >conftest.$ac_ext <<EOF
4362 #line 4362 "configure"
4363 int testdata[3] = { 123, 456, 789 };
4365 if { (eval echo "$as_me:4365: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>&5
4368 echo "$as_me:4368: \$? = $ac_status" >&5
4369 (exit $ac_status); } ; then
4370 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4371 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4372 if test -f conftest.a ; then
4373 cf_cv_ar_flags=$cf_ar_flags
4377 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4379 echo "${as_me:-configure}:4379: testing cannot compile test-program ..." 1>&5
4384 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4387 echo "$as_me:4387: result: $cf_cv_ar_flags" >&5
4388 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4390 if test -n "$ARFLAGS" ; then
4391 if test -n "$cf_cv_ar_flags" ; then
4392 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4395 ARFLAGS=$cf_cv_ar_flags
4398 echo "$as_me:4398: checking if you have specified an install-prefix" >&5
4399 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4401 # Check whether --with-install-prefix or --without-install-prefix was given.
4402 if test "${with_install_prefix+set}" = set; then
4403 withval="$with_install_prefix"
4404 case "x$withval" in #(vi
4407 *) DESTDIR="$withval"
4411 echo "$as_me:4411: result: $DESTDIR" >&5
4412 echo "${ECHO_T}$DESTDIR" >&6
4414 ###############################################################################
4416 # If we're cross-compiling, allow the user to override the tools and their
4417 # options. The configure script is oriented toward identifying the host
4418 # compiler, etc., but we need a build compiler to generate parts of the source.
4420 if test "$cross_compiling" = yes ; then
4422 # defaults that we might want to override
4423 : ${BUILD_CFLAGS:=''}
4424 : ${BUILD_CPPFLAGS:=''}
4425 : ${BUILD_LDFLAGS:=''}
4427 : ${BUILD_EXEEXT:='$x'}
4428 : ${BUILD_OBJEXT:='o'}
4430 # Check whether --with-build-cc or --without-build-cc was given.
4431 if test "${with_build_cc+set}" = set; then
4432 withval="$with_build_cc"
4435 for ac_prog in gcc cc cl
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 echo "$as_me:4439: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if test -n "$BUILD_CC"; then
4445 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4447 ac_save_IFS=$IFS; IFS=$ac_path_separator
4449 for ac_dir in $ac_dummy; do
4451 test -z "$ac_dir" && ac_dir=.
4452 $as_executable_p "$ac_dir/$ac_word" || continue
4453 ac_cv_prog_BUILD_CC="$ac_prog"
4454 echo "$as_me:4454: found $ac_dir/$ac_word" >&5
4460 BUILD_CC=$ac_cv_prog_BUILD_CC
4461 if test -n "$BUILD_CC"; then
4462 echo "$as_me:4462: result: $BUILD_CC" >&5
4463 echo "${ECHO_T}$BUILD_CC" >&6
4465 echo "$as_me:4465: result: no" >&5
4466 echo "${ECHO_T}no" >&6
4469 test -n "$BUILD_CC" && break
4473 echo "$as_me:4473: checking for native build C compiler" >&5
4474 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4475 echo "$as_me:4475: result: $BUILD_CC" >&5
4476 echo "${ECHO_T}$BUILD_CC" >&6
4478 echo "$as_me:4478: checking for native build C preprocessor" >&5
4479 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4481 # Check whether --with-build-cpp or --without-build-cpp was given.
4482 if test "${with_build_cpp+set}" = set; then
4483 withval="$with_build_cpp"
4484 BUILD_CPP="$withval"
4486 BUILD_CPP='${BUILD_CC} -E'
4488 echo "$as_me:4488: result: $BUILD_CPP" >&5
4489 echo "${ECHO_T}$BUILD_CPP" >&6
4491 echo "$as_me:4491: checking for native build C flags" >&5
4492 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4494 # Check whether --with-build-cflags or --without-build-cflags was given.
4495 if test "${with_build_cflags+set}" = set; then
4496 withval="$with_build_cflags"
4497 BUILD_CFLAGS="$withval"
4499 echo "$as_me:4499: result: $BUILD_CFLAGS" >&5
4500 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4502 echo "$as_me:4502: checking for native build C preprocessor-flags" >&5
4503 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4505 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4506 if test "${with_build_cppflags+set}" = set; then
4507 withval="$with_build_cppflags"
4508 BUILD_CPPFLAGS="$withval"
4510 echo "$as_me:4510: result: $BUILD_CPPFLAGS" >&5
4511 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4513 echo "$as_me:4513: checking for native build linker-flags" >&5
4514 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4516 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4517 if test "${with_build_ldflags+set}" = set; then
4518 withval="$with_build_ldflags"
4519 BUILD_LDFLAGS="$withval"
4521 echo "$as_me:4521: result: $BUILD_LDFLAGS" >&5
4522 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4524 echo "$as_me:4524: checking for native build linker-libraries" >&5
4525 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4527 # Check whether --with-build-libs or --without-build-libs was given.
4528 if test "${with_build_libs+set}" = set; then
4529 withval="$with_build_libs"
4530 BUILD_LIBS="$withval"
4532 echo "$as_me:4532: result: $BUILD_LIBS" >&5
4533 echo "${ECHO_T}$BUILD_LIBS" >&6
4535 # this assumes we're on Unix.
4539 : ${BUILD_CC:='${CC}'}
4541 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4542 { { echo "$as_me:4542: error: Cross-build requires two compilers.
4543 Use --with-build-cc to specify the native compiler." >&5
4544 echo "$as_me: error: Cross-build requires two compilers.
4545 Use --with-build-cc to specify the native compiler." >&2;}
4546 { (exit 1); exit 1; }; }
4550 : ${BUILD_CC:='${CC}'}
4551 : ${BUILD_CPP:='${CPP}'}
4552 : ${BUILD_CFLAGS:='${CFLAGS}'}
4553 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4554 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4555 : ${BUILD_LIBS:='${LIBS}'}
4556 : ${BUILD_EXEEXT:='$x'}
4557 : ${BUILD_OBJEXT:='o'}
4560 ###############################################################################
4562 ### Options to allow the user to specify the set of libraries which are used.
4563 ### Use "--without-normal --with-shared" to allow the default model to be
4564 ### shared, for example.
4567 echo "$as_me:4567: checking if libtool -version-number should be used" >&5
4568 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4570 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4571 if test "${enable_libtool_version+set}" = set; then
4572 enableval="$enable_libtool_version"
4573 test "$enableval" != no && enableval=yes
4574 if test "$enableval" != "yes" ; then
4575 cf_libtool_version=no
4577 cf_libtool_version=yes
4581 cf_libtool_version=yes
4584 echo "$as_me:4584: result: $cf_libtool_version" >&5
4585 echo "${ECHO_T}$cf_libtool_version" >&6
4587 if test "$cf_libtool_version" = yes ; then
4588 LIBTOOL_VERSION="-version-number"
4590 LIBTOOL_VERSION="-version-info"
4591 case "x$VERSION" in #(vi
4593 { echo "$as_me:4593: WARNING: VERSION was not set" >&5
4594 echo "$as_me: WARNING: VERSION was not set" >&2;}
4597 ABI_VERSION="$VERSION"
4598 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4600 echo "${as_me:-configure}:4600: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4604 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4605 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4607 echo "${as_me:-configure}:4607: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4611 { echo "$as_me:4611: WARNING: unexpected VERSION value: $VERSION" >&5
4612 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4619 # common library maintenance symbols that are convenient for libtool scripts:
4620 LIB_CREATE='${AR} -cr'
4621 LIB_OBJECT='${OBJECTS}'
4625 # symbols used to prop libtool up to enable it to determine what it should be
4633 echo "$as_me:4633: checking if you want to build libraries with libtool" >&5
4634 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4636 # Check whether --with-libtool or --without-libtool was given.
4637 if test "${with_libtool+set}" = set; then
4638 withval="$with_libtool"
4639 with_libtool=$withval
4643 echo "$as_me:4643: result: $with_libtool" >&5
4644 echo "${ECHO_T}$with_libtool" >&6
4645 if test "$with_libtool" != "no"; then
4647 if test "$with_libtool" != "yes" ; then
4649 if test "x$prefix" != xNONE; then
4650 cf_path_syntax="$prefix"
4652 cf_path_syntax="$ac_default_prefix"
4655 case ".$with_libtool" in #(vi
4656 .\$\(*\)*|.\'*\'*) #(vi
4660 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4662 .\${*prefix}*|.\${*dir}*) #(vi
4663 eval with_libtool="$with_libtool"
4664 case ".$with_libtool" in #(vi
4666 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4671 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4674 { { echo "$as_me:4674: error: expected a pathname, not \"$with_libtool\"" >&5
4675 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4676 { (exit 1); exit 1; }; }
4680 LIBTOOL=$with_libtool
4682 if test -n "$ac_tool_prefix"; then
4683 for ac_prog in libtool glibtool
4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4687 echo "$as_me:4687: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4689 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test -n "$LIBTOOL"; then
4693 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4695 ac_save_IFS=$IFS; IFS=$ac_path_separator
4697 for ac_dir in $ac_dummy; do
4699 test -z "$ac_dir" && ac_dir=.
4700 $as_executable_p "$ac_dir/$ac_word" || continue
4701 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4702 echo "$as_me:4702: found $ac_dir/$ac_word" >&5
4708 LIBTOOL=$ac_cv_prog_LIBTOOL
4709 if test -n "$LIBTOOL"; then
4710 echo "$as_me:4710: result: $LIBTOOL" >&5
4711 echo "${ECHO_T}$LIBTOOL" >&6
4713 echo "$as_me:4713: result: no" >&5
4714 echo "${ECHO_T}no" >&6
4717 test -n "$LIBTOOL" && break
4720 if test -z "$LIBTOOL"; then
4721 ac_ct_LIBTOOL=$LIBTOOL
4722 for ac_prog in libtool glibtool
4724 # Extract the first word of "$ac_prog", so it can be a program name with args.
4725 set dummy $ac_prog; ac_word=$2
4726 echo "$as_me:4726: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4728 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 if test -n "$ac_ct_LIBTOOL"; then
4732 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4734 ac_save_IFS=$IFS; IFS=$ac_path_separator
4736 for ac_dir in $ac_dummy; do
4738 test -z "$ac_dir" && ac_dir=.
4739 $as_executable_p "$ac_dir/$ac_word" || continue
4740 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4741 echo "$as_me:4741: found $ac_dir/$ac_word" >&5
4747 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4748 if test -n "$ac_ct_LIBTOOL"; then
4749 echo "$as_me:4749: result: $ac_ct_LIBTOOL" >&5
4750 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4752 echo "$as_me:4752: result: no" >&5
4753 echo "${ECHO_T}no" >&6
4756 test -n "$ac_ct_LIBTOOL" && break
4758 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4760 LIBTOOL=$ac_ct_LIBTOOL
4763 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4765 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4767 cf_cv_libtool_version=
4769 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4771 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4774 unset ac_cv_prog_ac_ct_LIBTOOL
4778 if test -n "$ac_tool_prefix"; then
4779 for ac_prog in glibtool
4781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4783 echo "$as_me:4783: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 if test -n "$LIBTOOL"; then
4789 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4791 ac_save_IFS=$IFS; IFS=$ac_path_separator
4793 for ac_dir in $ac_dummy; do
4795 test -z "$ac_dir" && ac_dir=.
4796 $as_executable_p "$ac_dir/$ac_word" || continue
4797 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4798 echo "$as_me:4798: found $ac_dir/$ac_word" >&5
4804 LIBTOOL=$ac_cv_prog_LIBTOOL
4805 if test -n "$LIBTOOL"; then
4806 echo "$as_me:4806: result: $LIBTOOL" >&5
4807 echo "${ECHO_T}$LIBTOOL" >&6
4809 echo "$as_me:4809: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4813 test -n "$LIBTOOL" && break
4816 if test -z "$LIBTOOL"; then
4817 ac_ct_LIBTOOL=$LIBTOOL
4818 for ac_prog in glibtool
4820 # Extract the first word of "$ac_prog", so it can be a program name with args.
4821 set dummy $ac_prog; ac_word=$2
4822 echo "$as_me:4822: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 if test -n "$ac_ct_LIBTOOL"; then
4828 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4830 ac_save_IFS=$IFS; IFS=$ac_path_separator
4832 for ac_dir in $ac_dummy; do
4834 test -z "$ac_dir" && ac_dir=.
4835 $as_executable_p "$ac_dir/$ac_word" || continue
4836 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4837 echo "$as_me:4837: found $ac_dir/$ac_word" >&5
4843 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4844 if test -n "$ac_ct_LIBTOOL"; then
4845 echo "$as_me:4845: result: $ac_ct_LIBTOOL" >&5
4846 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4848 echo "$as_me:4848: result: no" >&5
4849 echo "${ECHO_T}no" >&6
4852 test -n "$ac_ct_LIBTOOL" && break
4854 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4856 LIBTOOL=$ac_ct_LIBTOOL
4859 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4861 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4863 cf_cv_libtool_version=
4865 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version