2 # From configure.in Revision: 1.611 .
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 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --with-bool=TYPE override fallback type of bool variable
777 --with-caps=alt compile with alternate Caps file
778 --with-chtype=TYPE override type of chtype
779 --with-ospeed=TYPE override type of ospeed variable
780 --with-mmask-t=TYPE override type of mmask_t
781 --with-ccharw-max=XXX override size CCHARW_MAX
782 --with-tparm-arg=TYPE override parameter type of tparm
783 --with-rcs-ids compile-in RCS identifiers
784 Options to Specify How Manpages are Installed:
785 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
786 optionally formatted/catonly, e.g., gzip,formatted
787 --with-manpage-renames specify manpage-renaming
788 --with-manpage-aliases specify manpage-aliases using .so
789 --with-manpage-symlinks specify manpage-aliases using symlinks
790 --with-manpage-tbl specify manpage processing with tbl
792 --disable-ext-funcs disable function-extensions
793 --enable-sp-funcs enable experimental SCREEN-extensions
794 --enable-term-driver enable experimental terminal-driver
795 --enable-const compile with extra/non-standard const
796 --enable-ext-colors compile for 256-color support
797 --enable-ext-mouse compile for extended mouse-encoding
798 --enable-ext-putwin compile with extended putwin/screendump
799 --enable-no-padding compile with $NCURSES_NO_PADDING code
800 --enable-signed-char compile using signed Boolean's in term.h
801 --enable-sigwinch compile with SIGWINCH handler
802 --enable-tcap-names compile with user-definable terminal capabilities
804 --without-develop disable development options
805 --enable-hard-tabs compile with hard-tabs code
806 --enable-xmc-glitch compile with support for xmc (magic-cookie)
808 --disable-assumed-color do not assume anything about default-colors
809 --disable-hashmap compile without hashmap scrolling-optimization
810 --enable-colorfgbg compile-in experimental $COLORFGBG code
811 --enable-interop compile-in experimental interop bindings
812 --with-pthread use POSIX thread library
813 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
814 --enable-weak-symbols enable weak-symbols for pthreads
815 --enable-reentrant compile with experimental reentrant code
816 --with-wrap-prefix=XXX override prefix used for public variables
817 --enable-safe-sprintf compile with experimental safe-sprintf code
818 --disable-scroll-hints compile without scroll-hints code
819 --enable-wgetch-events compile with experimental wgetch-events code
820 Testing/development Options:
821 --disable-echo do not display "compiling" commands
822 --enable-warnings build: turn on GCC compiler warnings
823 --enable-string-hacks work around bogus compiler/loader warnings
824 --enable-assertions test: turn on generation of assertion code
825 --with-dmalloc test: use Gray Watson's dmalloc library
826 --with-dbmalloc test: use Conor Cahill's dbmalloc library
827 --with-valgrind test: use valgrind
828 --disable-leaks test: free permanent memory, analyze leaks
829 --enable-expanded test: generate functions for certain macros
830 --disable-macros test: use functions rather than macros
831 --with-trace test: add trace() function to all models of ncurses
832 --disable-gnat-projects test: disable GNAT projects even if usable
833 Ada95 Binding Options:
834 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
835 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
836 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
837 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
847 CXX C++ compiler command
848 CXXFLAGS C++ compiler flags
849 CXXCPP C++ preprocessor
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.20141204. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114 ac_main_return=return
1116 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1117 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1119 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1120 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1122 echo "#! $SHELL" >conftest.sh
1123 echo "exit 0" >>conftest.sh
1124 chmod +x conftest.sh
1125 if { (echo "$as_me:1125: PATH=\".;.\"; conftest.sh") >&5
1126 (PATH=".;."; conftest.sh) 2>&5
1128 echo "$as_me:1128: \$? = $ac_status" >&5
1129 (exit $ac_status); }; then
1130 ac_path_separator=';'
1134 PATH_SEPARATOR="$ac_path_separator"
1137 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1141 echo "$as_me:1141: checking for egrep" >&5
1142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1143 if test "${ac_cv_prog_egrep+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1147 then ac_cv_prog_egrep='grep -E'
1148 else ac_cv_prog_egrep='egrep'
1151 echo "$as_me:1151: result: $ac_cv_prog_egrep" >&5
1152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1153 EGREP=$ac_cv_prog_egrep
1155 test -z "$EGREP" && { { echo "$as_me:1155: error: No egrep program found" >&5
1156 echo "$as_me: error: No egrep program found" >&2;}
1157 { (exit 1); exit 1; }; }
1159 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1162 cf_cv_abi_version=${NCURSES_MAJOR}
1163 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1164 cf_cv_timestamp=`date`
1165 echo "$as_me:1165: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1166 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1168 if test -f $srcdir/VERSION ; then
1169 echo "$as_me:1169: checking for package version" >&5
1170 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1172 # if there are not enough fields, cut returns the last one...
1173 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1174 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1175 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1177 # this is how CF_BUNDLED_INTL uses $VERSION:
1178 VERSION="$cf_field1"
1180 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1181 test -z "$VERSION_MAJOR" && { { echo "$as_me:1181: error: missing major-version" >&5
1182 echo "$as_me: error: missing major-version" >&2;}
1183 { (exit 1); exit 1; }; }
1185 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1186 test -z "$VERSION_MINOR" && { { echo "$as_me:1186: error: missing minor-version" >&5
1187 echo "$as_me: error: missing minor-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 echo "$as_me:1190: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1191 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1193 echo "$as_me:1193: checking for package patch date" >&5
1194 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1195 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1196 case .$VERSION_PATCH in
1198 { { echo "$as_me:1198: error: missing patch-date $VERSION_PATCH" >&5
1199 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1200 { (exit 1); exit 1; }; }
1202 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1205 { { echo "$as_me:1205: error: illegal patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1210 echo "$as_me:1210: result: $VERSION_PATCH" >&5
1211 echo "${ECHO_T}$VERSION_PATCH" >&6
1213 { { echo "$as_me:1213: error: did not find $srcdir/VERSION" >&5
1214 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1215 { (exit 1); exit 1; }; }
1218 # show the actual data that we have for versions:
1219 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1221 echo "${as_me:-configure}:1221: testing ABI VERSION $VERSION ..." 1>&5
1223 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1225 echo "${as_me:-configure}:1225: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1227 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1229 echo "${as_me:-configure}:1229: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1238 cat >>confdefs.h <<EOF
1239 #define PACKAGE "$PACKAGE"
1242 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1244 cat >>confdefs.h <<EOF
1245 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1248 cat >>confdefs.h <<EOF
1249 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1252 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1254 # Check whether --with-rel-version or --without-rel-version was given.
1255 if test "${with_rel_version+set}" = set; then
1256 withval="$with_rel_version"
1257 { echo "$as_me:1257: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1258 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1259 cf_cv_rel_version=$withval
1262 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1263 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1265 if test -n "$NCURSES_MAJOR" ; then
1266 case $NCURSES_MAJOR in
1270 { { echo "$as_me:1270: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1271 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1272 { (exit 1); exit 1; }; }
1276 { { echo "$as_me:1276: error: Release major-version value is empty" >&5
1277 echo "$as_me: error: Release major-version value is empty" >&2;}
1278 { (exit 1); exit 1; }; }
1281 if test -n "$NCURSES_MINOR" ; then
1282 case $NCURSES_MINOR in
1286 { { echo "$as_me:1286: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1287 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1288 { (exit 1); exit 1; }; }
1292 { { echo "$as_me:1292: error: Release minor-version value is empty" >&5
1293 echo "$as_me: error: Release minor-version value is empty" >&2;}
1294 { (exit 1); exit 1; }; }
1297 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1299 # Check whether --with-abi-version or --without-abi-version was given.
1300 if test "${with_abi_version+set}" = set; then
1301 withval="$with_abi_version"
1302 { echo "$as_me:1302: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1303 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1304 cf_cv_abi_version=$withval
1307 if test -n "$cf_cv_abi_version" ; then
1308 case $cf_cv_abi_version in
1312 { { echo "$as_me:1312: error: ABI version is not a number: $cf_cv_abi_version" >&5
1313 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1314 { (exit 1); exit 1; }; }
1318 { { echo "$as_me:1318: error: ABI version value is empty" >&5
1319 echo "$as_me: error: ABI version value is empty" >&2;}
1320 { (exit 1); exit 1; }; }
1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1329 elif test -f $ac_dir/install.sh; then
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 elif test -f $ac_dir/shtool; then
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:1340: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:1350: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1354 echo "$as_me:1354: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:1363: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:1367: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1369 { (exit 1); exit 1; }; }
1372 echo "$as_me:1372: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:1379: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:1388: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:1393: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1401 echo "$as_me:1401: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:1410: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:1415: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 test -n "$target_alias" &&
1425 test "$program_prefix$program_suffix$program_transform_name" = \
1427 program_prefix=${target_alias}-
1428 system_name="$host_os"
1430 system_name="`(uname -s -r) 2>/dev/null`"
1431 if test -z "$system_name" ; then
1432 system_name="`(hostname) 2>/dev/null`"
1435 test -n "$system_name" &&
1436 cat >>confdefs.h <<EOF
1437 #define SYSTEM_NAME "$system_name"
1440 if test "${cf_cv_system_name+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 cf_cv_system_name="$system_name"
1446 test -z "$system_name" && system_name="$cf_cv_system_name"
1447 test -n "$cf_cv_system_name" && echo "$as_me:1447: result: Configuring for $cf_cv_system_name" >&5
1448 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1450 if test ".$system_name" != ".$cf_cv_system_name" ; then
1451 echo "$as_me:1451: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1452 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1453 { { echo "$as_me:1453: error: \"Please remove config.cache and try again.\"" >&5
1454 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1455 { (exit 1); exit 1; }; }
1458 # Check whether --with-system-type or --without-system-type was given.
1459 if test "${with_system_type+set}" = set; then
1460 withval="$with_system_type"
1461 { echo "$as_me:1461: WARNING: overriding system type to $withval" >&5
1462 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1463 cf_cv_system_name=$withval
1468 ### Save the given $CFLAGS to allow user-override.
1469 cf_user_CFLAGS="$CFLAGS"
1471 ### Default install-location
1473 echo "$as_me:1473: checking for prefix" >&5
1474 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1475 if test "x$prefix" = "xNONE" ; then
1476 case "$cf_cv_system_name" in
1477 # non-vendor systems don't have a conflict
1478 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1481 (*) prefix=$ac_default_prefix
1485 echo "$as_me:1485: result: $prefix" >&5
1486 echo "${ECHO_T}$prefix" >&6
1488 if test "x$prefix" = "xNONE" ; then
1489 echo "$as_me:1489: checking for default include-directory" >&5
1490 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1491 test -n "$verbose" && echo 1>&6
1494 $includedir/ncurses \
1496 $prefix/include/ncurses \
1497 /usr/local/include \
1498 /usr/local/include/ncurses \
1500 /usr/include/ncurses
1502 cf_dir=`eval echo $cf_symbol`
1503 if test -f $cf_dir/curses.h ; then
1504 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1505 includedir="$cf_symbol"
1506 test -n "$verbose" && echo $ac_n " found " 1>&6
1510 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1512 echo "$as_me:1512: result: $includedir" >&5
1513 echo "${ECHO_T}$includedir" >&6
1516 ### Checks for programs.
1518 # Check whether --with-ada or --without-ada was given.
1519 if test "${with_ada+set}" = set; then
1521 cf_with_ada=$withval
1525 if test "x$cf_with_ada" = xyes
1527 cf_PROG_CC="gnatgcc gcc cc"
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 ac_main_return=return
1538 if test -n "$ac_tool_prefix"; then
1539 for ac_prog in $cf_PROG_CC
1541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1543 echo "$as_me:1543: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1551 ac_save_IFS=$IFS; IFS=$ac_path_separator
1553 for ac_dir in $ac_dummy; do
1555 test -z "$ac_dir" && ac_dir=.
1556 $as_executable_p "$ac_dir/$ac_word" || continue
1557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1558 echo "$as_me:1558: found $ac_dir/$ac_word" >&5
1565 if test -n "$CC"; then
1566 echo "$as_me:1566: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:1569: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1573 test -n "$CC" && break
1576 if test -z "$CC"; then
1578 for ac_prog in $cf_PROG_CC
1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 set dummy $ac_prog; ac_word=$2
1582 echo "$as_me:1582: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1590 ac_save_IFS=$IFS; IFS=$ac_path_separator
1592 for ac_dir in $ac_dummy; do
1594 test -z "$ac_dir" && ac_dir=.
1595 $as_executable_p "$ac_dir/$ac_word" || continue
1596 ac_cv_prog_ac_ct_CC="$ac_prog"
1597 echo "$as_me:1597: found $ac_dir/$ac_word" >&5
1603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604 if test -n "$ac_ct_CC"; then
1605 echo "$as_me:1605: result: $ac_ct_CC" >&5
1606 echo "${ECHO_T}$ac_ct_CC" >&6
1608 echo "$as_me:1608: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1612 test -n "$ac_ct_CC" && break
1618 test -z "$CC" && { { echo "$as_me:1618: error: no acceptable cc found in \$PATH" >&5
1619 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1620 { (exit 1); exit 1; }; }
1622 # Provide some information about the compiler.
1623 echo "$as_me:1623:" \
1624 "checking for C compiler version" >&5
1625 ac_compiler=`set X $ac_compile; echo $2`
1626 { (eval echo "$as_me:1626: \"$ac_compiler --version </dev/null >&5\"") >&5
1627 (eval $ac_compiler --version </dev/null >&5) 2>&5
1629 echo "$as_me:1629: \$? = $ac_status" >&5
1630 (exit $ac_status); }
1631 { (eval echo "$as_me:1631: \"$ac_compiler -v </dev/null >&5\"") >&5
1632 (eval $ac_compiler -v </dev/null >&5) 2>&5
1634 echo "$as_me:1634: \$? = $ac_status" >&5
1635 (exit $ac_status); }
1636 { (eval echo "$as_me:1636: \"$ac_compiler -V </dev/null >&5\"") >&5
1637 (eval $ac_compiler -V </dev/null >&5) 2>&5
1639 echo "$as_me:1639: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1642 cat >conftest.$ac_ext <<_ACEOF
1643 #line 1643 "configure"
1644 #include "confdefs.h"
1654 ac_clean_files_save=$ac_clean_files
1655 ac_clean_files="$ac_clean_files a.out a.exe"
1656 # Try to create an executable without -o first, disregard a.out.
1657 # It will help us diagnose broken compilers, and finding out an intuition
1659 echo "$as_me:1659: checking for C compiler default output" >&5
1660 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1661 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1662 if { (eval echo "$as_me:1662: \"$ac_link_default\"") >&5
1663 (eval $ac_link_default) 2>&5
1665 echo "$as_me:1665: \$? = $ac_status" >&5
1666 (exit $ac_status); }; then
1667 # Find the output, starting from the most likely. This scheme is
1668 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1670 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1671 ls a.out conftest 2>/dev/null;
1672 ls a.* conftest.* 2>/dev/null`; do
1674 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1675 a.out ) # We found the default executable, but exeext='' is most
1678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1679 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1686 echo "$as_me: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1688 { { echo "$as_me:1688: error: C compiler cannot create executables" >&5
1689 echo "$as_me: error: C compiler cannot create executables" >&2;}
1690 { (exit 77); exit 77; }; }
1693 ac_exeext=$ac_cv_exeext
1694 echo "$as_me:1694: result: $ac_file" >&5
1695 echo "${ECHO_T}$ac_file" >&6
1697 # Check the compiler produces executables we can run. If not, either
1698 # the compiler is broken, or we cross compile.
1699 echo "$as_me:1699: checking whether the C compiler works" >&5
1700 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1701 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1702 # If not cross compiling, check that we can run a simple program.
1703 if test "$cross_compiling" != yes; then
1704 if { ac_try='./$ac_file'
1705 { (eval echo "$as_me:1705: \"$ac_try\"") >&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); }; }; then
1712 if test "$cross_compiling" = maybe; then
1715 { { echo "$as_me:1715: error: cannot run C compiled programs.
1716 If you meant to cross compile, use \`--host'." >&5
1717 echo "$as_me: error: cannot run C compiled programs.
1718 If you meant to cross compile, use \`--host'." >&2;}
1719 { (exit 1); exit 1; }; }
1723 echo "$as_me:1723: result: yes" >&5
1724 echo "${ECHO_T}yes" >&6
1726 rm -f a.out a.exe conftest$ac_cv_exeext
1727 ac_clean_files=$ac_clean_files_save
1728 # Check the compiler produces executables we can run. If not, either
1729 # the compiler is broken, or we cross compile.
1730 echo "$as_me:1730: checking whether we are cross compiling" >&5
1731 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1732 echo "$as_me:1732: result: $cross_compiling" >&5
1733 echo "${ECHO_T}$cross_compiling" >&6
1735 echo "$as_me:1735: checking for executable suffix" >&5
1736 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1737 if { (eval echo "$as_me:1737: \"$ac_link\"") >&5
1738 (eval $ac_link) 2>&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1743 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1744 # work properly (i.e., refer to `conftest.exe'), while it won't with
1746 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1748 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 { { echo "$as_me:1756: error: cannot compute EXEEXT: cannot compile and link" >&5
1757 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1758 { (exit 1); exit 1; }; }
1761 rm -f conftest$ac_cv_exeext
1762 echo "$as_me:1762: result: $ac_cv_exeext" >&5
1763 echo "${ECHO_T}$ac_cv_exeext" >&6
1765 rm -f conftest.$ac_ext
1766 EXEEXT=$ac_cv_exeext
1768 echo "$as_me:1768: checking for object suffix" >&5
1769 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1770 if test "${ac_cv_objext+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 cat >conftest.$ac_ext <<_ACEOF
1774 #line 1774 "configure"
1775 #include "confdefs.h"
1785 rm -f conftest.o conftest.obj
1786 if { (eval echo "$as_me:1786: \"$ac_compile\"") >&5
1787 (eval $ac_compile) 2>&5
1789 echo "$as_me:1789: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1794 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1799 echo "$as_me: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1801 { { echo "$as_me:1801: error: cannot compute OBJEXT: cannot compile" >&5
1802 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1803 { (exit 1); exit 1; }; }
1806 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1808 echo "$as_me:1808: result: $ac_cv_objext" >&5
1809 echo "${ECHO_T}$ac_cv_objext" >&6
1810 OBJEXT=$ac_cv_objext
1812 echo "$as_me:1812: checking whether we are using the GNU C compiler" >&5
1813 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1814 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line 1818 "configure"
1819 #include "confdefs.h"
1832 rm -f conftest.$ac_objext
1833 if { (eval echo "$as_me:1833: \"$ac_compile\"") >&5
1834 (eval $ac_compile) 2>&5
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); } &&
1838 { ac_try='test -s conftest.$ac_objext'
1839 { (eval echo "$as_me:1839: \"$ac_try\"") >&5
1842 echo "$as_me:1842: \$? = $ac_status" >&5
1843 (exit $ac_status); }; }; then
1846 echo "$as_me: failed program was:" >&5
1847 cat conftest.$ac_ext >&5
1850 rm -f conftest.$ac_objext conftest.$ac_ext
1851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1854 echo "$as_me:1854: result: $ac_cv_c_compiler_gnu" >&5
1855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1856 GCC=`test $ac_compiler_gnu = yes && echo yes`
1857 ac_test_CFLAGS=${CFLAGS+set}
1858 ac_save_CFLAGS=$CFLAGS
1860 echo "$as_me:1860: checking whether $CC accepts -g" >&5
1861 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1862 if test "${ac_cv_prog_cc_g+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 cat >conftest.$ac_ext <<_ACEOF
1866 #line 1866 "configure"
1867 #include "confdefs.h"
1877 rm -f conftest.$ac_objext
1878 if { (eval echo "$as_me:1878: \"$ac_compile\"") >&5
1879 (eval $ac_compile) 2>&5
1881 echo "$as_me:1881: \$? = $ac_status" >&5
1882 (exit $ac_status); } &&
1883 { ac_try='test -s conftest.$ac_objext'
1884 { (eval echo "$as_me:1884: \"$ac_try\"") >&5
1887 echo "$as_me:1887: \$? = $ac_status" >&5
1888 (exit $ac_status); }; }; then
1891 echo "$as_me: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1895 rm -f conftest.$ac_objext conftest.$ac_ext
1897 echo "$as_me:1897: result: $ac_cv_prog_cc_g" >&5
1898 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1899 if test "$ac_test_CFLAGS" = set; then
1900 CFLAGS=$ac_save_CFLAGS
1901 elif test $ac_cv_prog_cc_g = yes; then
1902 if test "$GCC" = yes; then
1908 if test "$GCC" = yes; then
1914 # Some people use a C++ compiler to compile C. Since we use `exit',
1915 # in C++ we need to declare it. In case someone uses the same compiler
1916 # for both compiling C and C++ we need to have the C++ compiler decide
1917 # the declaration of exit, since it's the most demanding environment.
1918 cat >conftest.$ac_ext <<_ACEOF
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:1924: \"$ac_compile\"") >&5
1925 (eval $ac_compile) 2>&5
1927 echo "$as_me:1927: \$? = $ac_status" >&5
1928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:1930: \"$ac_try\"") >&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1935 for ac_declaration in \
1937 '#include <stdlib.h>' \
1938 'extern "C" void std::exit (int) throw (); using std::exit;' \
1939 'extern "C" void std::exit (int); using std::exit;' \
1940 'extern "C" void exit (int) throw ();' \
1941 'extern "C" void exit (int);' \
1944 cat >conftest.$ac_ext <<_ACEOF
1945 #line 1945 "configure"
1946 #include "confdefs.h"
1957 rm -f conftest.$ac_objext
1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
1959 (eval $ac_compile) 2>&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit $ac_status); } &&
1963 { ac_try='test -s conftest.$ac_objext'
1964 { (eval echo "$as_me:1964: \"$ac_try\"") >&5
1967 echo "$as_me:1967: \$? = $ac_status" >&5
1968 (exit $ac_status); }; }; then
1971 echo "$as_me: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1975 rm -f conftest.$ac_objext conftest.$ac_ext
1976 cat >conftest.$ac_ext <<_ACEOF
1977 #line 1977 "configure"
1978 #include "confdefs.h"
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:1989: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>&5
1992 echo "$as_me:1992: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
1994 { ac_try='test -s conftest.$ac_objext'
1995 { (eval echo "$as_me:1995: \"$ac_try\"") >&5
1998 echo "$as_me:1998: \$? = $ac_status" >&5
1999 (exit $ac_status); }; }; then
2002 echo "$as_me: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2005 rm -f conftest.$ac_objext conftest.$ac_ext
2008 if test -n "$ac_declaration"; then
2009 echo '#ifdef __cplusplus' >>confdefs.h
2010 echo $ac_declaration >>confdefs.h
2011 echo '#endif' >>confdefs.h
2015 echo "$as_me: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 rm -f conftest.$ac_objext conftest.$ac_ext
2020 ac_cpp='$CPP $CPPFLAGS'
2021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024 ac_main_return=return
2027 if test "$GCC" = yes ; then
2028 echo "$as_me:2028: checking version of $CC" >&5
2029 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2030 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.].*//'`"
2031 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2032 echo "$as_me:2032: result: $GCC_VERSION" >&5
2033 echo "${ECHO_T}$GCC_VERSION" >&6
2036 echo "$as_me:2036: checking for $CC option to accept ANSI C" >&5
2037 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2038 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 ac_cv_prog_cc_stdc=no
2043 cat >conftest.$ac_ext <<_ACEOF
2044 #line 2044 "configure"
2045 #include "confdefs.h"
2048 #include <sys/types.h>
2049 #include <sys/stat.h>
2050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2051 struct buf { int x; };
2052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2053 static char *e (p, i)
2059 static char *f (char * (*g) (char **, int), char **p, ...)
2064 s = g (p, va_arg (v,int));
2068 int test (int i, double x);
2069 struct s1 {int (*f) (int a);};
2070 struct s2 {int (*f) (double a);};
2071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2082 # Don't try gcc -ansi; that turns off useful extensions and
2083 # breaks some systems' header files.
2084 # AIX -qlanglvl=ansi
2085 # Ultrix and OSF/1 -std1
2086 # HP-UX 10.20 and later -Ae
2087 # HP-UX older versions -Aa -D_HPUX_SOURCE
2088 # SVR4 -Xc -D__EXTENSIONS__
2089 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2091 CC="$ac_save_CC $ac_arg"
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:2093: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>&5
2096 echo "$as_me:2096: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:2099: \"$ac_try\"") >&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2104 ac_cv_prog_cc_stdc=$ac_arg
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2110 rm -f conftest.$ac_objext
2112 rm -f conftest.$ac_ext conftest.$ac_objext
2117 case "x$ac_cv_prog_cc_stdc" in
2119 echo "$as_me:2119: result: none needed" >&5
2120 echo "${ECHO_T}none needed" >&6 ;;
2122 echo "$as_me:2122: result: $ac_cv_prog_cc_stdc" >&5
2123 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2124 CC="$CC $ac_cv_prog_cc_stdc" ;;
2127 # This should have been defined by AC_PROG_CC
2130 echo "$as_me:2130: checking \$CC variable" >&5
2131 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2134 echo "$as_me:2134: result: broken" >&5
2135 echo "${ECHO_T}broken" >&6
2136 { echo "$as_me:2136: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2137 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2139 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2140 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2145 cf_new_extra_cppflags=
2147 for cf_add_cflags in $cf_flags
2149 case $cf_fix_cppflags in
2151 case $cf_add_cflags in
2152 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2153 case $cf_add_cflags in
2155 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2157 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2158 && test -z "${cf_tst_cflags}" \
2159 && cf_fix_cppflags=yes
2161 if test $cf_fix_cppflags = yes ; then
2162 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2164 elif test "${cf_tst_cflags}" = "\"'" ; then
2165 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2174 case $cf_add_cflags in
2176 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2178 CPPFLAGS=`echo "$CPPFLAGS" | \
2179 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2180 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2184 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2189 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2194 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2196 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2198 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2199 && test -z "${cf_tst_cflags}" \
2200 && cf_fix_cppflags=no
2205 if test -n "$cf_new_cflags" ; then
2207 CFLAGS="$CFLAGS $cf_new_cflags"
2210 if test -n "$cf_new_cppflags" ; then
2212 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2215 if test -n "$cf_new_extra_cppflags" ; then
2217 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2222 echo "$as_me:2222: result: ok" >&5
2223 echo "${ECHO_T}ok" >&6
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 ac_main_return=return
2233 echo "$as_me:2233: checking how to run the C preprocessor" >&5
2234 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2235 # On Suns, sometimes $CPP names a directory.
2236 if test -n "$CPP" && test -d "$CPP"; then
2239 if test -z "$CPP"; then
2240 if test "${ac_cv_prog_CPP+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 # Double quotes because CPP needs to be expanded
2244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2247 for ac_c_preproc_warn_flag in '' yes
2249 # Use a header file that comes with gcc, so configuring glibc
2250 # with a fresh cross-compiler works.
2251 # On the NeXT, cc -E runs the code through the compiler's parser,
2252 # not just through cpp. "Syntax error" is here to catch this case.
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line 2254 "configure"
2255 #include "confdefs.h"
2259 if { (eval echo "$as_me:2259: \"$ac_cpp conftest.$ac_ext\"") >&5
2260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2262 egrep -v '^ *\+' conftest.er1 >conftest.err
2264 cat conftest.err >&5
2265 echo "$as_me:2265: \$? = $ac_status" >&5
2266 (exit $ac_status); } >/dev/null; then
2267 if test -s conftest.err; then
2268 ac_cpp_err=$ac_c_preproc_warn_flag
2275 if test -z "$ac_cpp_err"; then
2278 echo "$as_me: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2280 # Broken: fails on valid input.
2283 rm -f conftest.err conftest.$ac_ext
2285 # OK, works on sane cases. Now check whether non-existent headers
2286 # can be detected and how.
2287 cat >conftest.$ac_ext <<_ACEOF
2288 #line 2288 "configure"
2289 #include "confdefs.h"
2290 #include <ac_nonexistent.h>
2292 if { (eval echo "$as_me:2292: \"$ac_cpp conftest.$ac_ext\"") >&5
2293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2295 egrep -v '^ *\+' conftest.er1 >conftest.err
2297 cat conftest.err >&5
2298 echo "$as_me:2298: \$? = $ac_status" >&5
2299 (exit $ac_status); } >/dev/null; then
2300 if test -s conftest.err; then
2301 ac_cpp_err=$ac_c_preproc_warn_flag
2308 if test -z "$ac_cpp_err"; then
2309 # Broken: success on invalid input.
2312 echo "$as_me: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 # Passes both tests.
2318 rm -f conftest.err conftest.$ac_ext
2321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2322 rm -f conftest.err conftest.$ac_ext
2323 if $ac_preproc_ok; then
2335 echo "$as_me:2335: result: $CPP" >&5
2336 echo "${ECHO_T}$CPP" >&6
2338 for ac_c_preproc_warn_flag in '' yes
2340 # Use a header file that comes with gcc, so configuring glibc
2341 # with a fresh cross-compiler works.
2342 # On the NeXT, cc -E runs the code through the compiler's parser,
2343 # not just through cpp. "Syntax error" is here to catch this case.
2344 cat >conftest.$ac_ext <<_ACEOF
2345 #line 2345 "configure"
2346 #include "confdefs.h"
2350 if { (eval echo "$as_me:2350: \"$ac_cpp conftest.$ac_ext\"") >&5
2351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2353 egrep -v '^ *\+' conftest.er1 >conftest.err
2355 cat conftest.err >&5
2356 echo "$as_me:2356: \$? = $ac_status" >&5
2357 (exit $ac_status); } >/dev/null; then
2358 if test -s conftest.err; then
2359 ac_cpp_err=$ac_c_preproc_warn_flag
2366 if test -z "$ac_cpp_err"; then
2369 echo "$as_me: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2371 # Broken: fails on valid input.
2374 rm -f conftest.err conftest.$ac_ext
2376 # OK, works on sane cases. Now check whether non-existent headers
2377 # can be detected and how.
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #line 2379 "configure"
2380 #include "confdefs.h"
2381 #include <ac_nonexistent.h>
2383 if { (eval echo "$as_me:2383: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386 egrep -v '^ *\+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:2389: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2399 if test -z "$ac_cpp_err"; then
2400 # Broken: success on invalid input.
2403 echo "$as_me: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2405 # Passes both tests.
2409 rm -f conftest.err conftest.$ac_ext
2412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2413 rm -f conftest.err conftest.$ac_ext
2414 if $ac_preproc_ok; then
2417 { { echo "$as_me:2417: error: C preprocessor \"$CPP\" fails sanity check" >&5
2418 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2419 { (exit 1); exit 1; }; }
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 ac_main_return=return
2429 if test $ac_cv_c_compiler_gnu = yes; then
2430 echo "$as_me:2430: checking whether $CC needs -traditional" >&5
2431 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2432 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 ac_pattern="Autoconf.*'x'"
2436 cat >conftest.$ac_ext <<_ACEOF
2437 #line 2437 "configure"
2438 #include "confdefs.h"
2440 int Autoconf = TIOCGETP;
2442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2443 egrep "$ac_pattern" >/dev/null 2>&1; then
2444 ac_cv_prog_gcc_traditional=yes
2446 ac_cv_prog_gcc_traditional=no
2450 if test $ac_cv_prog_gcc_traditional = no; then
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line 2452 "configure"
2453 #include "confdefs.h"
2455 int Autoconf = TCGETA;
2457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2458 egrep "$ac_pattern" >/dev/null 2>&1; then
2459 ac_cv_prog_gcc_traditional=yes
2465 echo "$as_me:2465: result: $ac_cv_prog_gcc_traditional" >&5
2466 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2467 if test $ac_cv_prog_gcc_traditional = yes; then
2468 CC="$CC -traditional"
2472 echo "$as_me:2472: checking whether $CC understands -c and -o together" >&5
2473 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2474 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat > conftest.$ac_ext <<CF_EOF
2482 ${cf_cv_main_return:-return}(0);
2485 # We do the test twice because some compilers refuse to overwrite an
2486 # existing .o file with -o, though they will create one.
2487 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2488 if { (eval echo "$as_me:2488: \"$ac_try\"") >&5
2491 echo "$as_me:2491: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 test -f conftest2.$ac_objext && { (eval echo "$as_me:2493: \"$ac_try\"") >&5
2496 echo "$as_me:2496: \$? = $ac_status" >&5
2497 (exit $ac_status); };
2499 eval cf_cv_prog_CC_c_o=yes
2501 eval cf_cv_prog_CC_c_o=no
2506 if test $cf_cv_prog_CC_c_o = yes; then
2507 echo "$as_me:2507: result: yes" >&5
2508 echo "${ECHO_T}yes" >&6
2510 echo "$as_me:2510: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2514 if test "$cross_compiling" = yes ; then
2517 case "$cf_cv_system_name" in
2518 (dragonfly*|mirbsd*|freebsd*)
2519 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2521 (*) LDPATH=$PATH:/sbin:/usr/sbin
2522 # Extract the first word of "ldconfig", so it can be a program name with args.
2523 set dummy ldconfig; ac_word=$2
2524 echo "$as_me:2524: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2534 ac_save_IFS=$IFS; IFS=$ac_path_separator
2536 for ac_dir in $ac_dummy; do
2538 test -z "$ac_dir" && ac_dir=.
2539 if $as_executable_p "$ac_dir/$ac_word"; then
2540 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2541 echo "$as_me:2541: found $ac_dir/$ac_word" >&5
2549 LDCONFIG=$ac_cv_path_LDCONFIG
2551 if test -n "$LDCONFIG"; then
2552 echo "$as_me:2552: result: $LDCONFIG" >&5
2553 echo "${ECHO_T}$LDCONFIG" >&6
2555 echo "$as_me:2555: result: no" >&5
2556 echo "${ECHO_T}no" >&6
2563 echo "$as_me:2563: checking if you want to ensure bool is consistent with C++" >&5
2564 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2566 # Check whether --with-cxx or --without-cxx was given.
2567 if test "${with_cxx+set}" = set; then
2569 cf_with_cxx=$withval
2573 echo "$as_me:2573: result: $cf_with_cxx" >&5
2574 echo "${ECHO_T}$cf_with_cxx" >&6
2575 if test "X$cf_with_cxx" = Xno ; then
2579 # with autoconf 2.13, we can change the error to a warning:
2581 ac_cpp='$CXXCPP $CPPFLAGS'
2582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2585 ac_main_return=return
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 echo "$as_me:2591: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593 if test "${ac_cv_prog_CXX+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CXX"; then
2597 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2599 ac_save_IFS=$IFS; IFS=$ac_path_separator
2601 for ac_dir in $ac_dummy; do
2603 test -z "$ac_dir" && ac_dir=.
2604 $as_executable_p "$ac_dir/$ac_word" || continue
2605 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:2606: found $ac_dir/$ac_word" >&5
2613 if test -n "$CXX"; then
2614 echo "$as_me:2614: result: $CXX" >&5
2615 echo "${ECHO_T}$CXX" >&6
2617 echo "$as_me:2617: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2621 test -n "$CXX" && break
2624 if test -z "$CXX"; then
2626 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2629 set dummy $ac_prog; ac_word=$2
2630 echo "$as_me:2630: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2632 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 if test -n "$ac_ct_CXX"; then
2636 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2638 ac_save_IFS=$IFS; IFS=$ac_path_separator
2640 for ac_dir in $ac_dummy; do
2642 test -z "$ac_dir" && ac_dir=.
2643 $as_executable_p "$ac_dir/$ac_word" || continue
2644 ac_cv_prog_ac_ct_CXX="$ac_prog"
2645 echo "$as_me:2645: found $ac_dir/$ac_word" >&5
2651 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2652 if test -n "$ac_ct_CXX"; then
2653 echo "$as_me:2653: result: $ac_ct_CXX" >&5
2654 echo "${ECHO_T}$ac_ct_CXX" >&6
2656 echo "$as_me:2656: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2660 test -n "$ac_ct_CXX" && break
2662 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2667 # Provide some information about the compiler.
2668 echo "$as_me:2668:" \
2669 "checking for C++ compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (eval echo "$as_me:2671: \"$ac_compiler --version </dev/null >&5\"") >&5
2672 (eval $ac_compiler --version </dev/null >&5) 2>&5
2674 echo "$as_me:2674: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (eval echo "$as_me:2676: \"$ac_compiler -v </dev/null >&5\"") >&5
2677 (eval $ac_compiler -v </dev/null >&5) 2>&5
2679 echo "$as_me:2679: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (eval echo "$as_me:2681: \"$ac_compiler -V </dev/null >&5\"") >&5
2682 (eval $ac_compiler -V </dev/null >&5) 2>&5
2684 echo "$as_me:2684: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2687 echo "$as_me:2687: checking whether we are using the GNU C++ compiler" >&5
2688 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2689 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line 2693 "configure"
2694 #include "confdefs.h"
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:2708: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>&5
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:2714: \"$ac_try\"") >&5
2717 echo "$as_me:2717: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2721 echo "$as_me: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2725 rm -f conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2729 echo "$as_me:2729: result: $ac_cv_cxx_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731 GXX=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CXXFLAGS=${CXXFLAGS+set}
2733 ac_save_CXXFLAGS=$CXXFLAGS
2735 echo "$as_me:2735: checking whether $CXX accepts -g" >&5
2736 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737 if test "${ac_cv_prog_cxx_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 cat >conftest.$ac_ext <<_ACEOF
2741 #line 2741 "configure"
2742 #include "confdefs.h"
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>&5
2756 echo "$as_me:2756: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:2759: \"$ac_try\"") >&5
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 ac_cv_prog_cxx_g=yes
2766 echo "$as_me: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2770 rm -f conftest.$ac_objext conftest.$ac_ext
2772 echo "$as_me:2772: result: $ac_cv_prog_cxx_g" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2774 if test "$ac_test_CXXFLAGS" = set; then
2775 CXXFLAGS=$ac_save_CXXFLAGS
2776 elif test $ac_cv_prog_cxx_g = yes; then
2777 if test "$GXX" = yes; then
2783 if test "$GXX" = yes; then
2789 for ac_declaration in \
2791 '#include <stdlib.h>' \
2792 'extern "C" void std::exit (int) throw (); using std::exit;' \
2793 'extern "C" void std::exit (int); using std::exit;' \
2794 'extern "C" void exit (int) throw ();' \
2795 'extern "C" void exit (int);' \
2798 cat >conftest.$ac_ext <<_ACEOF
2799 #line 2799 "configure"
2800 #include "confdefs.h"
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:2812: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>&5
2815 echo "$as_me:2815: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 { ac_try='test -s conftest.$ac_objext'
2818 { (eval echo "$as_me:2818: \"$ac_try\"") >&5
2821 echo "$as_me:2821: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2825 echo "$as_me: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2829 rm -f conftest.$ac_objext conftest.$ac_ext
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #line 2831 "configure"
2832 #include "confdefs.h"
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:2843: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>&5
2846 echo "$as_me:2846: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:2849: \"$ac_try\"") >&5
2852 echo "$as_me:2852: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2856 echo "$as_me: failed program was:" >&5
2857 cat conftest.$ac_ext >&5
2859 rm -f conftest.$ac_objext conftest.$ac_ext
2862 if test -n "$ac_declaration"; then
2863 echo '#ifdef __cplusplus' >>confdefs.h
2864 echo $ac_declaration >>confdefs.h
2865 echo '#endif' >>confdefs.h
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 ac_main_return=return
2876 ac_cpp='$CXXCPP $CPPFLAGS'
2877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2880 ac_main_return=return
2882 if test "x$cf_with_cxx" != xno
2884 # Several of the C++ configurations do not work, particularly when
2885 # cross-compiling (20140913 -TD)
2886 echo "$as_me:2886: checking if $CXX works" >&5
2887 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2889 save_CPPFLAGS="$CPPFLAGS"
2890 eval cf_includedir=${includedir}
2891 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line 2894 "configure"
2895 #include "confdefs.h"
2904 printf("Hello world!\n")
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:2911: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>&5
2914 echo "$as_me:2914: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:2917: \"$ac_try\"") >&5
2920 echo "$as_me:2920: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2924 echo "$as_me: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2928 rm -f conftest.$ac_objext conftest.$ac_ext
2929 CPPFLAGS="$save_CPPFLAGS"
2931 echo "$as_me:2931: result: $cf_cxx_works" >&5
2932 echo "${ECHO_T}$cf_cxx_works" >&6
2933 if test "x$cf_cxx_works" = xno
2935 { echo "$as_me:2935: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2936 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2937 cf_with_cxx=no; CXX=""; GXX="";
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 ac_main_return=return
2947 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2948 if test "$CXX" = "g++" ; then
2949 # Extract the first word of "g++", so it can be a program name with args.
2950 set dummy g++; ac_word=$2
2951 echo "$as_me:2951: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2953 if test "${ac_cv_path_CXX+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2961 ac_save_IFS=$IFS; IFS=$ac_path_separator
2963 for ac_dir in $ac_dummy; do
2965 test -z "$ac_dir" && ac_dir=.
2966 if $as_executable_p "$ac_dir/$ac_word"; then
2967 ac_cv_path_CXX="$ac_dir/$ac_word"
2968 echo "$as_me:2968: found $ac_dir/$ac_word" >&5
2978 if test -n "$CXX"; then
2979 echo "$as_me:2979: result: $CXX" >&5
2980 echo "${ECHO_T}$CXX" >&6
2982 echo "$as_me:2982: result: no" >&5
2983 echo "${ECHO_T}no" >&6
2989 { echo "$as_me:2989: WARNING: You don't have any C++ compiler, too bad" >&5
2990 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2991 cf_with_cxx=no; CXX=""; GXX="";
2997 if test "$GXX" = yes; then
2998 echo "$as_me:2998: checking version of ${CXX:-g++}" >&5
2999 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3000 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3001 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3002 echo "$as_me:3002: result: $GXX_VERSION" >&5
3003 echo "${ECHO_T}$GXX_VERSION" >&6
3006 case $GXX_VERSION in
3008 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3010 { echo "$as_me:3010: WARNING: templates do not work" >&5
3011 echo "$as_me: WARNING: templates do not work" >&2;}
3015 echo "$as_me:3015: checking if you want to build C++ binding and demo" >&5
3016 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3018 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3019 if test "${with_cxx_binding+set}" = set; then
3020 withval="$with_cxx_binding"
3021 cf_with_cxx_binding=$withval
3023 cf_with_cxx_binding=$cf_with_cxx
3025 echo "$as_me:3025: result: $cf_with_cxx_binding" >&5
3026 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3028 echo "$as_me:3028: checking if you want to build with Ada95" >&5
3029 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3030 echo "$as_me:3030: result: $cf_with_ada" >&5
3031 echo "${ECHO_T}$cf_with_ada" >&6
3033 echo "$as_me:3033: checking if you want to install terminal database" >&5
3034 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3036 # Check whether --enable-db-install or --disable-db-install was given.
3037 if test "${enable_db_install+set}" = set; then
3038 enableval="$enable_db_install"
3039 cf_with_db_install=$enableval
3041 cf_with_db_install=yes
3043 echo "$as_me:3043: result: $cf_with_db_install" >&5
3044 echo "${ECHO_T}$cf_with_db_install" >&6
3046 echo "$as_me:3046: checking if you want to install manpages" >&5
3047 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3049 # Check whether --with-manpages or --without-manpages was given.
3050 if test "${with_manpages+set}" = set; then
3051 withval="$with_manpages"
3052 cf_with_manpages=$withval
3054 cf_with_manpages=yes
3056 echo "$as_me:3056: result: $cf_with_manpages" >&5
3057 echo "${ECHO_T}$cf_with_manpages" >&6
3059 echo "$as_me:3059: checking if you want to build programs such as tic" >&5
3060 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3062 # Check whether --with-progs or --without-progs was given.
3063 if test "${with_progs+set}" = set; then
3064 withval="$with_progs"
3065 cf_with_progs=$withval
3069 echo "$as_me:3069: result: $cf_with_progs" >&5
3070 echo "${ECHO_T}$cf_with_progs" >&6
3072 echo "$as_me:3072: checking if you want to build test-programs" >&5
3073 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3075 # Check whether --with-tests or --without-tests was given.
3076 if test "${with_tests+set}" = set; then
3077 withval="$with_tests"
3078 cf_with_tests=$withval
3082 echo "$as_me:3082: result: $cf_with_tests" >&5
3083 echo "${ECHO_T}$cf_with_tests" >&6
3085 echo "$as_me:3085: checking if you wish to install curses.h" >&5
3086 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3088 # Check whether --with-curses-h or --without-curses-h was given.
3089 if test "${with_curses_h+set}" = set; then
3090 withval="$with_curses_h"
3091 with_curses_h=$withval
3095 echo "$as_me:3095: result: $with_curses_h" >&5
3096 echo "${ECHO_T}$with_curses_h" >&6
3098 modules_to_build="ncurses"
3099 if test "X$cf_with_progs" != Xno ; then
3100 modules_to_build="$modules_to_build progs tack"
3102 modules_to_build="$modules_to_build panel menu form"
3104 test "$program_prefix" != NONE &&
3105 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3106 # Use a double $ so make ignores it.
3107 test "$program_suffix" != NONE &&
3108 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3109 # Double any \ or $. echo might interpret backslashes.
3110 # By default was `s,x,x', remove it if useless.
3111 cat <<\_ACEOF >conftest.sed
3112 s/[\\$]/&&/g;s/;s,x,x,$//
3114 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3117 for ac_prog in mawk gawk nawk awk
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 echo "$as_me:3121: checking for $ac_word" >&5
3122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3123 if test "${ac_cv_prog_AWK+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 if test -n "$AWK"; then
3127 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3129 ac_save_IFS=$IFS; IFS=$ac_path_separator
3131 for ac_dir in $ac_dummy; do
3133 test -z "$ac_dir" && ac_dir=.
3134 $as_executable_p "$ac_dir/$ac_word" || continue
3135 ac_cv_prog_AWK="$ac_prog"
3136 echo "$as_me:3136: found $ac_dir/$ac_word" >&5
3143 if test -n "$AWK"; then
3144 echo "$as_me:3144: result: $AWK" >&5
3145 echo "${ECHO_T}$AWK" >&6
3147 echo "$as_me:3147: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 test -n "$AWK" && break
3154 test -z "$AWK" && { { echo "$as_me:3154: error: No awk program found" >&5
3155 echo "$as_me: error: No awk program found" >&2;}
3156 { (exit 1); exit 1; }; }
3158 echo "$as_me:3158: checking for egrep" >&5
3159 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3160 if test "${ac_cv_prog_egrep+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3164 then ac_cv_prog_egrep='grep -E'
3165 else ac_cv_prog_egrep='egrep'
3168 echo "$as_me:3168: result: $ac_cv_prog_egrep" >&5
3169 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3170 EGREP=$ac_cv_prog_egrep
3172 test -z "$EGREP" && { { echo "$as_me:3172: error: No egrep program found" >&5
3173 echo "$as_me: error: No egrep program found" >&2;}
3174 { (exit 1); exit 1; }; }
3176 # Find a good install program. We prefer a C program (faster),
3177 # so one script is as good as another. But avoid the broken or
3178 # incompatible versions:
3179 # SysV /etc/install, /usr/sbin/install
3180 # SunOS /usr/etc/install
3181 # IRIX /sbin/install
3183 # AmigaOS /C/install, which installs bootblocks on floppy discs
3184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3187 # ./install, which can be erroneously created by make from ./install.sh.
3188 echo "$as_me:3188: checking for a BSD compatible install" >&5
3189 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3190 if test -z "$INSTALL"; then
3191 if test "${ac_cv_path_install+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 ac_save_IFS=$IFS; IFS=$ac_path_separator
3195 for ac_dir in $PATH; do
3197 # Account for people who put trailing slashes in PATH elements.
3199 / | ./ | .// | /cC/* \
3200 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3203 # OSF1 and SCO ODT 3.0 have their own names for install.
3204 # Don't use installbsd from OSF since it installs stuff as root
3206 for ac_prog in ginstall scoinst install; do
3207 if $as_executable_p "$ac_dir/$ac_prog"; then
3208 if test $ac_prog = install &&
3209 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3210 # AIX install. It has an incompatible calling convention.
3212 elif test $ac_prog = install &&
3213 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3214 # program-specific install script used by HP pwplus--don't use.
3217 ac_cv_path_install="$ac_dir/$ac_prog -c"
3227 if test "${ac_cv_path_install+set}" = set; then
3228 INSTALL=$ac_cv_path_install
3230 # As a last resort, use the slow shell script. We don't cache a
3231 # path for INSTALL within a source directory, because that will
3232 # break other packages using the cache if that directory is
3233 # removed, or if the path is relative.
3234 INSTALL=$ac_install_sh
3237 echo "$as_me:3237: result: $INSTALL" >&5
3238 echo "${ECHO_T}$INSTALL" >&6
3240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3241 # It thinks the first close brace ends the variable substitution.
3242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3244 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3246 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3252 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3253 test -z "$cf_dir" && cf_dir=.
3254 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3258 for ac_prog in tdlint lint alint splint lclint
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 echo "$as_me:3262: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_LINT+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 if test -n "$LINT"; then
3268 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3270 ac_save_IFS=$IFS; IFS=$ac_path_separator
3272 for ac_dir in $ac_dummy; do
3274 test -z "$ac_dir" && ac_dir=.
3275 $as_executable_p "$ac_dir/$ac_word" || continue
3276 ac_cv_prog_LINT="$ac_prog"
3277 echo "$as_me:3277: found $ac_dir/$ac_word" >&5
3283 LINT=$ac_cv_prog_LINT
3284 if test -n "$LINT"; then
3285 echo "$as_me:3285: result: $LINT" >&5
3286 echo "${ECHO_T}$LINT" >&6
3288 echo "$as_me:3288: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3292 test -n "$LINT" && break
3295 echo "$as_me:3295: checking whether ln -s works" >&5
3296 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3298 if test "$LN_S" = "ln -s"; then
3299 echo "$as_me:3299: result: yes" >&5
3300 echo "${ECHO_T}yes" >&6
3302 echo "$as_me:3302: result: no, using $LN_S" >&5
3303 echo "${ECHO_T}no, using $LN_S" >&6
3306 echo "$as_me:3306: checking if $LN_S -f options work" >&5
3307 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3309 rm -f conf$$.src conf$$dst
3311 echo first >conf$$.src
3312 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3317 rm -f conf$$.dst conf$$src
3318 echo "$as_me:3318: result: $cf_prog_ln_sf" >&5
3319 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3321 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3323 echo "$as_me:3323: checking for long file names" >&5
3324 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3325 if test "${ac_cv_sys_long_file_names+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 ac_cv_sys_long_file_names=yes
3329 # Test for long file names in all the places we know might matter:
3330 # . the current directory, where building will happen
3331 # $prefix/lib where we will be installing things
3332 # $exec_prefix/lib likewise
3333 # eval it to expand exec_prefix.
3334 # $TMPDIR if set, where it might want to write temporary files
3335 # if $TMPDIR is not set:
3336 # /tmp where it might want to write temporary files
3339 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3342 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3344 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3345 test -d $ac_dir || continue
3346 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3347 ac_xdir=$ac_dir/cf$$
3348 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3349 ac_tf1=$ac_xdir/conftest9012345
3350 ac_tf2=$ac_xdir/conftest9012346
3351 (echo 1 >$ac_tf1) 2>/dev/null
3352 (echo 2 >$ac_tf2) 2>/dev/null
3353 ac_val=`cat $ac_tf1 2>/dev/null`
3354 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3355 ac_cv_sys_long_file_names=no
3356 rm -rf $ac_xdir 2>/dev/null
3359 rm -rf $ac_xdir 2>/dev/null
3362 echo "$as_me:3362: result: $ac_cv_sys_long_file_names" >&5
3363 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3364 if test $ac_cv_sys_long_file_names = yes; then
3366 cat >>confdefs.h <<\EOF
3367 #define HAVE_LONG_FILE_NAMES 1
3372 # if we find pkg-config, check if we should install the ".pc" files.
3374 echo "$as_me:3374: checking if you want to use pkg-config" >&5
3375 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3377 # Check whether --with-pkg-config or --without-pkg-config was given.
3378 if test "${with_pkg_config+set}" = set; then
3379 withval="$with_pkg_config"
3380 cf_pkg_config=$withval
3384 echo "$as_me:3384: result: $cf_pkg_config" >&5
3385 echo "${ECHO_T}$cf_pkg_config" >&6
3387 case $cf_pkg_config in
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3396 echo "$as_me:3396: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3406 ac_save_IFS=$IFS; IFS=$ac_path_separator
3408 for ac_dir in $ac_dummy; do
3410 test -z "$ac_dir" && ac_dir=.
3411 if $as_executable_p "$ac_dir/$ac_word"; then
3412 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3413 echo "$as_me:3413: found $ac_dir/$ac_word" >&5
3421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3423 if test -n "$PKG_CONFIG"; then
3424 echo "$as_me:3424: result: $PKG_CONFIG" >&5
3425 echo "${ECHO_T}$PKG_CONFIG" >&6
3427 echo "$as_me:3427: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3432 if test -z "$ac_cv_path_PKG_CONFIG"; then
3433 ac_pt_PKG_CONFIG=$PKG_CONFIG
3434 # Extract the first word of "pkg-config", so it can be a program name with args.
3435 set dummy pkg-config; ac_word=$2
3436 echo "$as_me:3436: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 case $ac_pt_PKG_CONFIG in
3443 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3446 ac_save_IFS=$IFS; IFS=$ac_path_separator
3448 for ac_dir in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if $as_executable_p "$ac_dir/$ac_word"; then
3452 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3453 echo "$as_me:3453: found $ac_dir/$ac_word" >&5
3458 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3462 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3464 if test -n "$ac_pt_PKG_CONFIG"; then
3465 echo "$as_me:3465: result: $ac_pt_PKG_CONFIG" >&5
3466 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3468 echo "$as_me:3468: result: no" >&5
3469 echo "${ECHO_T}no" >&6
3472 PKG_CONFIG=$ac_pt_PKG_CONFIG
3474 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3483 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3484 if test "$PKG_CONFIG" != none ; then
3486 if test "x$prefix" != xNONE; then
3487 cf_path_syntax="$prefix"
3489 cf_path_syntax="$ac_default_prefix"
3492 case ".$PKG_CONFIG" in
3497 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3499 (.\${*prefix}*|.\${*dir}*)
3500 eval PKG_CONFIG="$PKG_CONFIG"
3501 case ".$PKG_CONFIG" in
3503 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3508 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3511 { { echo "$as_me:3511: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3512 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3513 { (exit 1); exit 1; }; }
3518 { echo "$as_me:3518: WARNING: pkg-config is not installed" >&5
3519 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3522 echo "$as_me:3522: checking for $PKG_CONFIG library directory" >&5
3523 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3525 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3526 if test "${with_pkg_config_libdir+set}" = set; then
3527 withval="$with_pkg_config_libdir"
3528 PKG_CONFIG_LIBDIR=$withval
3530 PKG_CONFIG_LIBDIR=yes
3533 case x$PKG_CONFIG_LIBDIR in
3537 # Look for the library directory using the same prefix as the executable
3538 if test "x$PKG_CONFIG" = xnone
3542 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3545 # If you don't like using the default architecture, you have to specify the
3546 # intended library directory and corresponding compiler/linker options.
3548 # This case allows for Debian's 2014-flavor of multiarch, along with the
3549 # most common variations before that point. Some other variants spell the
3550 # directory differently, e.g., "pkg-config", and put it in unusual places.
3551 # pkg-config has always been poorly standardized, which is ironic...
3552 case x`(arch) 2>/dev/null` in
3555 $cf_path/lib/*64-linux-gnu \
3563 $cf_path/lib/*-linux-gnu \
3571 test -n "$verbose" && echo " list..." 1>&6
3573 echo "${as_me:-configure}:3573: testing list... ..." 1>&5
3575 for cf_config in $cf_search_path
3577 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3579 echo "${as_me:-configure}:3579: testing checking $cf_config/pkgconfig ..." 1>&5
3581 if test -d $cf_config/pkgconfig
3583 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3584 echo "$as_me:3584: checking done" >&5
3585 echo $ECHO_N "checking done... $ECHO_C" >&6
3594 echo "$as_me:3594: result: $PKG_CONFIG_LIBDIR" >&5
3595 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3597 if test "x$PKG_CONFIG" != xnone
3599 echo "$as_me:3599: checking if we should install .pc files for $PKG_CONFIG" >&5
3600 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3602 echo "$as_me:3602: checking if we should install .pc files" >&5
3603 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3606 # Check whether --enable-pc-files or --disable-pc-files was given.
3607 if test "${enable_pc_files+set}" = set; then
3608 enableval="$enable_pc_files"
3609 enable_pc_files=$enableval
3613 echo "$as_me:3613: result: $enable_pc_files" >&5
3614 echo "${ECHO_T}$enable_pc_files" >&6
3616 if test "x$enable_pc_files" != xno
3618 case "x$PKG_CONFIG_LIBDIR" in
3620 { echo "$as_me:3620: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3621 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3626 if test "x$prefix" != xNONE; then
3627 cf_path_syntax="$prefix"
3629 cf_path_syntax="$ac_default_prefix"
3632 case ".$PKG_CONFIG_LIBDIR" in
3637 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3639 (.\${*prefix}*|.\${*dir}*)
3640 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3641 case ".$PKG_CONFIG_LIBDIR" in
3643 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3648 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3651 { { echo "$as_me:3651: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3652 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3653 { (exit 1); exit 1; }; }
3664 if test -z "$MAKE_PC_FILES"
3666 echo "$as_me:3666: checking for suffix to add to pc-files" >&5
3667 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3669 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3670 if test "${with_pc_suffix+set}" = set; then
3671 withval="$with_pc_suffix"
3676 (*) PC_MODULE_SUFFIX="$withval"
3680 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3681 echo "$as_me:3681: result: $PC_MODULE_SUFFIX" >&5
3682 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3683 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3687 echo "$as_me:3687: checking if we should assume mixed-case filenames" >&5
3688 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3690 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3691 if test "${enable_mixed_case+set}" = set; then
3692 enableval="$enable_mixed_case"
3693 enable_mixedcase=$enableval
3695 enable_mixedcase=auto
3697 echo "$as_me:3697: result: $enable_mixedcase" >&5
3698 echo "${ECHO_T}$enable_mixedcase" >&6
3699 if test "$enable_mixedcase" = "auto" ; then
3701 echo "$as_me:3701: checking if filesystem supports mixed-case filenames" >&5
3702 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3703 if test "${cf_cv_mixedcase+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 if test "$cross_compiling" = yes ; then
3708 case $target_alias in
3709 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3717 rm -f conftest CONFTEST
3719 if test -f CONFTEST ; then
3724 rm -f conftest CONFTEST
3728 echo "$as_me:3728: result: $cf_cv_mixedcase" >&5
3729 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3730 test "$cf_cv_mixedcase" = yes &&
3731 cat >>confdefs.h <<\EOF
3732 #define MIXEDCASE_FILENAMES 1
3736 cf_cv_mixedcase=$enable_mixedcase
3737 if test "x$enable_mixedcase" = "xyes" ; then
3739 cat >>confdefs.h <<\EOF
3740 #define MIXEDCASE_FILENAMES 1
3746 # do this after mixed-case option (tags/TAGS is not as important as tic).
3747 echo "$as_me:3747: checking whether ${MAKE-make} sets \${MAKE}" >&5
3748 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 cat >conftest.make <<\EOF
3755 @echo 'ac_maketemp="${MAKE}"'
3757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3759 if test -n "$ac_maketemp"; then
3760 eval ac_cv_prog_make_${ac_make}_set=yes
3762 eval ac_cv_prog_make_${ac_make}_set=no
3766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3767 echo "$as_me:3767: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6
3771 echo "$as_me:3771: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3773 SET_MAKE="MAKE=${MAKE-make}"
3776 for ac_prog in exctags ctags
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 echo "$as_me:3780: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_CTAGS+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 if test -n "$CTAGS"; then
3786 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3788 ac_save_IFS=$IFS; IFS=$ac_path_separator
3790 for ac_dir in $ac_dummy; do
3792 test -z "$ac_dir" && ac_dir=.
3793 $as_executable_p "$ac_dir/$ac_word" || continue
3794 ac_cv_prog_CTAGS="$ac_prog"
3795 echo "$as_me:3795: found $ac_dir/$ac_word" >&5
3801 CTAGS=$ac_cv_prog_CTAGS
3802 if test -n "$CTAGS"; then
3803 echo "$as_me:3803: result: $CTAGS" >&5
3804 echo "${ECHO_T}$CTAGS" >&6
3806 echo "$as_me:3806: result: no" >&5
3807 echo "${ECHO_T}no" >&6
3810 test -n "$CTAGS" && break
3813 for ac_prog in exetags etags
3815 # Extract the first word of "$ac_prog", so it can be a program name with args.
3816 set dummy $ac_prog; ac_word=$2
3817 echo "$as_me:3817: checking for $ac_word" >&5
3818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3819 if test "${ac_cv_prog_ETAGS+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if test -n "$ETAGS"; then
3823 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3825 ac_save_IFS=$IFS; IFS=$ac_path_separator
3827 for ac_dir in $ac_dummy; do
3829 test -z "$ac_dir" && ac_dir=.
3830 $as_executable_p "$ac_dir/$ac_word" || continue
3831 ac_cv_prog_ETAGS="$ac_prog"
3832 echo "$as_me:3832: found $ac_dir/$ac_word" >&5
3838 ETAGS=$ac_cv_prog_ETAGS
3839 if test -n "$ETAGS"; then
3840 echo "$as_me:3840: result: $ETAGS" >&5
3841 echo "${ECHO_T}$ETAGS" >&6
3843 echo "$as_me:3843: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3847 test -n "$ETAGS" && break
3850 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3851 set dummy ${CTAGS:-ctags}; ac_word=$2
3852 echo "$as_me:3852: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if test -n "$MAKE_LOWER_TAGS"; then
3858 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3860 ac_save_IFS=$IFS; IFS=$ac_path_separator
3862 for ac_dir in $ac_dummy; do
3864 test -z "$ac_dir" && ac_dir=.
3865 $as_executable_p "$ac_dir/$ac_word" || continue
3866 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3867 echo "$as_me:3867: found $ac_dir/$ac_word" >&5
3871 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3874 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3875 if test -n "$MAKE_LOWER_TAGS"; then
3876 echo "$as_me:3876: result: $MAKE_LOWER_TAGS" >&5
3877 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3879 echo "$as_me:3879: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3883 if test "$cf_cv_mixedcase" = yes ; then
3884 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3885 set dummy ${ETAGS:-etags}; ac_word=$2
3886 echo "$as_me:3886: checking for $ac_word" >&5
3887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3888 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test -n "$MAKE_UPPER_TAGS"; then
3892 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3894 ac_save_IFS=$IFS; IFS=$ac_path_separator
3896 for ac_dir in $ac_dummy; do
3898 test -z "$ac_dir" && ac_dir=.
3899 $as_executable_p "$ac_dir/$ac_word" || continue
3900 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3901 echo "$as_me:3901: found $ac_dir/$ac_word" >&5
3905 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3908 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3909 if test -n "$MAKE_UPPER_TAGS"; then
3910 echo "$as_me:3910: result: $MAKE_UPPER_TAGS" >&5
3911 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3913 echo "$as_me:3913: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3921 if test "$MAKE_UPPER_TAGS" = yes ; then
3927 if test "$MAKE_LOWER_TAGS" = yes ; then
3933 echo "$as_me:3933: checking for makeflags variable" >&5
3934 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3935 if test "${cf_cv_makeflags+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3942 cat >cf_makeflags.tmp <<CF_EOF
3945 @ echo '.$cf_option'
3947 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3948 case "$cf_result" in
3950 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3951 case "$cf_result" in
3952 (.*CC=*) cf_cv_makeflags=
3954 (*) cf_cv_makeflags=$cf_option
3960 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
3964 rm -f cf_makeflags.tmp
3967 echo "$as_me:3967: result: $cf_cv_makeflags" >&5
3968 echo "${ECHO_T}$cf_cv_makeflags" >&6
3970 if test -n "$ac_tool_prefix"; then
3971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3973 echo "$as_me:3973: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_prog_RANLIB+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 if test -n "$RANLIB"; then
3979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3981 ac_save_IFS=$IFS; IFS=$ac_path_separator
3983 for ac_dir in $ac_dummy; do
3985 test -z "$ac_dir" && ac_dir=.
3986 $as_executable_p "$ac_dir/$ac_word" || continue
3987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3988 echo "$as_me:3988: found $ac_dir/$ac_word" >&5
3994 RANLIB=$ac_cv_prog_RANLIB
3995 if test -n "$RANLIB"; then
3996 echo "$as_me:3996: result: $RANLIB" >&5
3997 echo "${ECHO_T}$RANLIB" >&6
3999 echo "$as_me:3999: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4004 if test -z "$ac_cv_prog_RANLIB"; then
4005 ac_ct_RANLIB=$RANLIB
4006 # Extract the first word of "ranlib", so it can be a program name with args.
4007 set dummy ranlib; ac_word=$2
4008 echo "$as_me:4008: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 if test -n "$ac_ct_RANLIB"; then
4014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4016 ac_save_IFS=$IFS; IFS=$ac_path_separator
4018 for ac_dir in $ac_dummy; do
4020 test -z "$ac_dir" && ac_dir=.
4021 $as_executable_p "$ac_dir/$ac_word" || continue
4022 ac_cv_prog_ac_ct_RANLIB="ranlib"
4023 echo "$as_me:4023: found $ac_dir/$ac_word" >&5
4027 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4031 if test -n "$ac_ct_RANLIB"; then
4032 echo "$as_me:4032: result: $ac_ct_RANLIB" >&5
4033 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4035 echo "$as_me:4035: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4039 RANLIB=$ac_ct_RANLIB
4041 RANLIB="$ac_cv_prog_RANLIB"
4044 if test -n "$ac_tool_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}ld; ac_word=$2
4047 echo "$as_me:4047: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_LD+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$LD"; then
4053 ac_cv_prog_LD="$LD" # Let the user override the test.
4055 ac_save_IFS=$IFS; IFS=$ac_path_separator
4057 for ac_dir in $ac_dummy; do
4059 test -z "$ac_dir" && ac_dir=.
4060 $as_executable_p "$ac_dir/$ac_word" || continue
4061 ac_cv_prog_LD="${ac_tool_prefix}ld"
4062 echo "$as_me:4062: found $ac_dir/$ac_word" >&5
4069 if test -n "$LD"; then
4070 echo "$as_me:4070: result: $LD" >&5
4071 echo "${ECHO_T}$LD" >&6
4073 echo "$as_me:4073: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4078 if test -z "$ac_cv_prog_LD"; then
4080 # Extract the first word of "ld", so it can be a program name with args.
4081 set dummy ld; ac_word=$2
4082 echo "$as_me:4082: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 if test -n "$ac_ct_LD"; then
4088 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4090 ac_save_IFS=$IFS; IFS=$ac_path_separator
4092 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 $as_executable_p "$ac_dir/$ac_word" || continue
4096 ac_cv_prog_ac_ct_LD="ld"
4097 echo "$as_me:4097: found $ac_dir/$ac_word" >&5
4101 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4104 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4105 if test -n "$ac_ct_LD"; then
4106 echo "$as_me:4106: result: $ac_ct_LD" >&5
4107 echo "${ECHO_T}$ac_ct_LD" >&6
4109 echo "$as_me:4109: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}ar; ac_word=$2
4121 echo "$as_me:4121: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_AR+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$AR"; then
4127 ac_cv_prog_AR="$AR" # Let the user override the test.
4129 ac_save_IFS=$IFS; IFS=$ac_path_separator
4131 for ac_dir in $ac_dummy; do
4133 test -z "$ac_dir" && ac_dir=.
4134 $as_executable_p "$ac_dir/$ac_word" || continue
4135 ac_cv_prog_AR="${ac_tool_prefix}ar"
4136 echo "$as_me:4136: found $ac_dir/$ac_word" >&5
4143 if test -n "$AR"; then
4144 echo "$as_me:4144: result: $AR" >&5
4145 echo "${ECHO_T}$AR" >&6
4147 echo "$as_me:4147: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4152 if test -z "$ac_cv_prog_AR"; then
4154 # Extract the first word of "ar", so it can be a program name with args.
4155 set dummy ar; ac_word=$2
4156 echo "$as_me:4156: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$ac_ct_AR"; then
4162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4164 ac_save_IFS=$IFS; IFS=$ac_path_separator
4166 for ac_dir in $ac_dummy; do
4168 test -z "$ac_dir" && ac_dir=.
4169 $as_executable_p "$ac_dir/$ac_word" || continue
4170 ac_cv_prog_ac_ct_AR="ar"
4171 echo "$as_me:4171: found $ac_dir/$ac_word" >&5
4175 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4179 if test -n "$ac_ct_AR"; then
4180 echo "$as_me:4180: result: $ac_ct_AR" >&5
4181 echo "${ECHO_T}$ac_ct_AR" >&6
4183 echo "$as_me:4183: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4192 if test -n "$ac_tool_prefix"; then
4193 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}nm; ac_word=$2
4195 echo "$as_me:4195: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_NM+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 if test -n "$NM"; then
4201 ac_cv_prog_NM="$NM" # Let the user override the test.
4203 ac_save_IFS=$IFS; IFS=$ac_path_separator
4205 for ac_dir in $ac_dummy; do
4207 test -z "$ac_dir" && ac_dir=.
4208 $as_executable_p "$ac_dir/$ac_word" || continue
4209 ac_cv_prog_NM="${ac_tool_prefix}nm"
4210 echo "$as_me:4210: found $ac_dir/$ac_word" >&5
4217 if test -n "$NM"; then
4218 echo "$as_me:4218: result: $NM" >&5
4219 echo "${ECHO_T}$NM" >&6
4221 echo "$as_me:4221: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4226 if test -z "$ac_cv_prog_NM"; then
4228 # Extract the first word of "nm", so it can be a program name with args.
4229 set dummy nm; ac_word=$2
4230 echo "$as_me:4230: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4232 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 if test -n "$ac_ct_NM"; then
4236 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4238 ac_save_IFS=$IFS; IFS=$ac_path_separator
4240 for ac_dir in $ac_dummy; do
4242 test -z "$ac_dir" && ac_dir=.
4243 $as_executable_p "$ac_dir/$ac_word" || continue
4244 ac_cv_prog_ac_ct_NM="nm"
4245 echo "$as_me:4245: found $ac_dir/$ac_word" >&5
4249 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4252 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4253 if test -n "$ac_ct_NM"; then
4254 echo "$as_me:4254: result: $ac_ct_NM" >&5
4255 echo "${ECHO_T}$ac_ct_NM" >&6
4257 echo "$as_me:4257: result: no" >&5
4258 echo "${ECHO_T}no" >&6
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4268 set dummy ${ac_tool_prefix}ar; ac_word=$2
4269 echo "$as_me:4269: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_prog_AR+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$AR"; then
4275 ac_cv_prog_AR="$AR" # Let the user override the test.
4277 ac_save_IFS=$IFS; IFS=$ac_path_separator
4279 for ac_dir in $ac_dummy; do
4281 test -z "$ac_dir" && ac_dir=.
4282 $as_executable_p "$ac_dir/$ac_word" || continue
4283 ac_cv_prog_AR="${ac_tool_prefix}ar"
4284 echo "$as_me:4284: found $ac_dir/$ac_word" >&5
4291 if test -n "$AR"; then
4292 echo "$as_me:4292: result: $AR" >&5
4293 echo "${ECHO_T}$AR" >&6
4295 echo "$as_me:4295: result: no" >&5
4296 echo "${ECHO_T}no" >&6
4300 if test -z "$ac_cv_prog_AR"; then
4302 # Extract the first word of "ar", so it can be a program name with args.
4303 set dummy ar; ac_word=$2
4304 echo "$as_me:4304: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if test -n "$ac_ct_AR"; then
4310 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4312 ac_save_IFS=$IFS; IFS=$ac_path_separator
4314 for ac_dir in $ac_dummy; do
4316 test -z "$ac_dir" && ac_dir=.
4317 $as_executable_p "$ac_dir/$ac_word" || continue
4318 ac_cv_prog_ac_ct_AR="ar"
4319 echo "$as_me:4319: found $ac_dir/$ac_word" >&5
4323 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4327 if test -n "$ac_ct_AR"; then
4328 echo "$as_me:4328: result: $ac_ct_AR" >&5
4329 echo "${ECHO_T}$ac_ct_AR" >&6
4331 echo "$as_me:4331: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4340 echo "$as_me:4340: checking for options to update archives" >&5
4341 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4342 if test "${cf_cv_ar_flags+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 cf_cv_ar_flags=unknown
4347 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4350 # check if $ARFLAGS already contains this choice
4351 if test "x$ARFLAGS" != "x" ; then
4352 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4353 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4359 rm -f conftest.$ac_cv_objext
4362 cat >conftest.$ac_ext <<EOF
4363 #line 4363 "configure"
4364 int testdata[3] = { 123, 456, 789 };
4366 if { (eval echo "$as_me:4366: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>&5
4369 echo "$as_me:4369: \$? = $ac_status" >&5
4370 (exit $ac_status); } ; then
4371 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4372 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4373 if test -f conftest.a ; then
4374 cf_cv_ar_flags=$cf_ar_flags
4378 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4380 echo "${as_me:-configure}:4380: testing cannot compile test-program ..." 1>&5
4385 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4388 echo "$as_me:4388: result: $cf_cv_ar_flags" >&5
4389 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4391 if test -n "$ARFLAGS" ; then
4392 if test -n "$cf_cv_ar_flags" ; then
4393 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4396 ARFLAGS=$cf_cv_ar_flags
4399 echo "$as_me:4399: checking if you have specified an install-prefix" >&5
4400 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4402 # Check whether --with-install-prefix or --without-install-prefix was given.
4403 if test "${with_install_prefix+set}" = set; then
4404 withval="$with_install_prefix"
4408 (*) DESTDIR="$withval"
4412 echo "$as_me:4412: result: $DESTDIR" >&5
4413 echo "${ECHO_T}$DESTDIR" >&6
4415 ###############################################################################
4417 # If we're cross-compiling, allow the user to override the tools and their
4418 # options. The configure script is oriented toward identifying the host
4419 # compiler, etc., but we need a build compiler to generate parts of the source.
4421 if test "$cross_compiling" = yes ; then
4423 # defaults that we might want to override
4424 : ${BUILD_CFLAGS:=''}
4425 : ${BUILD_CPPFLAGS:=''}
4426 : ${BUILD_LDFLAGS:=''}
4428 : ${BUILD_EXEEXT:='$x'}
4429 : ${BUILD_OBJEXT:='o'}
4431 # Check whether --with-build-cc or --without-build-cc was given.
4432 if test "${with_build_cc+set}" = set; then
4433 withval="$with_build_cc"
4436 for ac_prog in gcc cc cl
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 echo "$as_me:4440: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 if test -n "$BUILD_CC"; then
4446 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448 ac_save_IFS=$IFS; IFS=$ac_path_separator
4450 for ac_dir in $ac_dummy; do
4452 test -z "$ac_dir" && ac_dir=.
4453 $as_executable_p "$ac_dir/$ac_word" || continue
4454 ac_cv_prog_BUILD_CC="$ac_prog"
4455 echo "$as_me:4455: found $ac_dir/$ac_word" >&5
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463 echo "$as_me:4463: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6
4466 echo "$as_me:4466: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4470 test -n "$BUILD_CC" && break
4474 echo "$as_me:4474: checking for native build C compiler" >&5
4475 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4476 echo "$as_me:4476: result: $BUILD_CC" >&5
4477 echo "${ECHO_T}$BUILD_CC" >&6
4479 echo "$as_me:4479: checking for native build C preprocessor" >&5
4480 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4482 # Check whether --with-build-cpp or --without-build-cpp was given.
4483 if test "${with_build_cpp+set}" = set; then
4484 withval="$with_build_cpp"
4485 BUILD_CPP="$withval"
4487 BUILD_CPP='${BUILD_CC} -E'
4489 echo "$as_me:4489: result: $BUILD_CPP" >&5
4490 echo "${ECHO_T}$BUILD_CPP" >&6
4492 echo "$as_me:4492: checking for native build C flags" >&5
4493 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4495 # Check whether --with-build-cflags or --without-build-cflags was given.
4496 if test "${with_build_cflags+set}" = set; then
4497 withval="$with_build_cflags"
4498 BUILD_CFLAGS="$withval"
4500 echo "$as_me:4500: result: $BUILD_CFLAGS" >&5
4501 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4503 echo "$as_me:4503: checking for native build C preprocessor-flags" >&5
4504 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4506 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4507 if test "${with_build_cppflags+set}" = set; then
4508 withval="$with_build_cppflags"
4509 BUILD_CPPFLAGS="$withval"
4511 echo "$as_me:4511: result: $BUILD_CPPFLAGS" >&5
4512 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4514 echo "$as_me:4514: checking for native build linker-flags" >&5
4515 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4517 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4518 if test "${with_build_ldflags+set}" = set; then
4519 withval="$with_build_ldflags"
4520 BUILD_LDFLAGS="$withval"
4522 echo "$as_me:4522: result: $BUILD_LDFLAGS" >&5
4523 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4525 echo "$as_me:4525: checking for native build linker-libraries" >&5
4526 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4528 # Check whether --with-build-libs or --without-build-libs was given.
4529 if test "${with_build_libs+set}" = set; then
4530 withval="$with_build_libs"
4531 BUILD_LIBS="$withval"
4533 echo "$as_me:4533: result: $BUILD_LIBS" >&5
4534 echo "${ECHO_T}$BUILD_LIBS" >&6
4536 # this assumes we're on Unix.
4540 : ${BUILD_CC:='${CC}'}
4542 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4543 { { echo "$as_me:4543: error: Cross-build requires two compilers.
4544 Use --with-build-cc to specify the native compiler." >&5
4545 echo "$as_me: error: Cross-build requires two compilers.
4546 Use --with-build-cc to specify the native compiler." >&2;}
4547 { (exit 1); exit 1; }; }
4551 : ${BUILD_CC:='${CC}'}
4552 : ${BUILD_CPP:='${CPP}'}
4553 : ${BUILD_CFLAGS:='${CFLAGS}'}
4554 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4555 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4556 : ${BUILD_LIBS:='${LIBS}'}
4557 : ${BUILD_EXEEXT:='$x'}
4558 : ${BUILD_OBJEXT:='o'}
4561 ###############################################################################
4563 ### Options to allow the user to specify the set of libraries which are used.
4564 ### Use "--without-normal --with-shared" to allow the default model to be
4565 ### shared, for example.
4568 echo "$as_me:4568: checking if libtool -version-number should be used" >&5
4569 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4571 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4572 if test "${enable_libtool_version+set}" = set; then
4573 enableval="$enable_libtool_version"
4574 test "$enableval" != no && enableval=yes
4575 if test "$enableval" != "yes" ; then
4576 cf_libtool_version=no
4578 cf_libtool_version=yes
4582 cf_libtool_version=yes
4585 echo "$as_me:4585: result: $cf_libtool_version" >&5
4586 echo "${ECHO_T}$cf_libtool_version" >&6
4588 if test "$cf_libtool_version" = yes ; then
4589 LIBTOOL_VERSION="-version-number"
4591 LIBTOOL_VERSION="-version-info"
4594 { echo "$as_me:4594: WARNING: VERSION was not set" >&5
4595 echo "$as_me: WARNING: VERSION was not set" >&2;}
4598 ABI_VERSION="$VERSION"
4599 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4601 echo "${as_me:-configure}:4601: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4605 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4606 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4608 echo "${as_me:-configure}:4608: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4612 { echo "$as_me:4612: WARNING: unexpected VERSION value: $VERSION" >&5
4613 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4620 # common library maintenance symbols that are convenient for libtool scripts:
4621 LIB_CREATE='${AR} -cr'
4622 LIB_OBJECT='${OBJECTS}'
4626 # symbols used to prop libtool up to enable it to determine what it should be
4634 echo "$as_me:4634: checking if you want to build libraries with libtool" >&5
4635 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4637 # Check whether --with-libtool or --without-libtool was given.
4638 if test "${with_libtool+set}" = set; then
4639 withval="$with_libtool"
4640 with_libtool=$withval
4644 echo "$as_me:4644: result: $with_libtool" >&5
4645 echo "${ECHO_T}$with_libtool" >&6
4646 if test "$with_libtool" != "no"; then
4648 if test "$with_libtool" != "yes" ; then
4650 if test "x$prefix" != xNONE; then
4651 cf_path_syntax="$prefix"
4653 cf_path_syntax="$ac_default_prefix"
4656 case ".$with_libtool" in
4661 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4663 (.\${*prefix}*|.\${*dir}*)
4664 eval with_libtool="$with_libtool"
4665 case ".$with_libtool" in
4667 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4672 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4675 { { echo "$as_me:4675: error: expected a pathname, not \"$with_libtool\"" >&5
4676 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4677 { (exit 1); exit 1; }; }
4681 LIBTOOL=$with_libtool
4683 if test -n "$ac_tool_prefix"; then
4684 for ac_prog in libtool glibtool
4686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4688 echo "$as_me:4688: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4690 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 if test -n "$LIBTOOL"; then
4694 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4696 ac_save_IFS=$IFS; IFS=$ac_path_separator
4698 for ac_dir in $ac_dummy; do
4700 test -z "$ac_dir" && ac_dir=.
4701 $as_executable_p "$ac_dir/$ac_word" || continue
4702 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4703 echo "$as_me:4703: found $ac_dir/$ac_word" >&5
4709 LIBTOOL=$ac_cv_prog_LIBTOOL
4710 if test -n "$LIBTOOL"; then
4711 echo "$as_me:4711: result: $LIBTOOL" >&5
4712 echo "${ECHO_T}$LIBTOOL" >&6
4714 echo "$as_me:4714: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4718 test -n "$LIBTOOL" && break
4721 if test -z "$LIBTOOL"; then
4722 ac_ct_LIBTOOL=$LIBTOOL
4723 for ac_prog in libtool glibtool
4725 # Extract the first word of "$ac_prog", so it can be a program name with args.
4726 set dummy $ac_prog; ac_word=$2
4727 echo "$as_me:4727: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$ac_ct_LIBTOOL"; then
4733 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4735 ac_save_IFS=$IFS; IFS=$ac_path_separator
4737 for ac_dir in $ac_dummy; do
4739 test -z "$ac_dir" && ac_dir=.
4740 $as_executable_p "$ac_dir/$ac_word" || continue
4741 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4742 echo "$as_me:4742: found $ac_dir/$ac_word" >&5
4748 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4749 if test -n "$ac_ct_LIBTOOL"; then
4750 echo "$as_me:4750: result: $ac_ct_LIBTOOL" >&5
4751 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4753 echo "$as_me:4753: result: no" >&5
4754 echo "${ECHO_T}no" >&6
4757 test -n "$ac_ct_LIBTOOL" && break
4759 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4761 LIBTOOL=$ac_ct_LIBTOOL
4764 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4766 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.].*//'`
4768 cf_cv_libtool_version=
4770 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4772 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4775 unset ac_cv_prog_ac_ct_LIBTOOL
4779 if test -n "$ac_tool_prefix"; then
4780 for ac_prog in glibtool
4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4784 echo "$as_me:4784: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4786 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 if test -n "$LIBTOOL"; then
4790 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4792 ac_save_IFS=$IFS; IFS=$ac_path_separator
4794 for ac_dir in $ac_dummy; do
4796 test -z "$ac_dir" && ac_dir=.
4797 $as_executable_p "$ac_dir/$ac_word" || continue
4798 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4799 echo "$as_me:4799: found $ac_dir/$ac_word" >&5
4805 LIBTOOL=$ac_cv_prog_LIBTOOL
4806 if test -n "$LIBTOOL"; then
4807 echo "$as_me:4807: result: $LIBTOOL" >&5
4808 echo "${ECHO_T}$LIBTOOL" >&6
4810 echo "$as_me:4810: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4814 test -n "$LIBTOOL" && break
4817 if test -z "$LIBTOOL"; then
4818 ac_ct_LIBTOOL=$LIBTOOL
4819 for ac_prog in glibtool
4821 # Extract the first word of "$ac_prog", so it can be a program name with args.
4822 set dummy $ac_prog; ac_word=$2
4823 echo "$as_me:4823: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 if test -n "$ac_ct_LIBTOOL"; then
4829 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4831 ac_save_IFS=$IFS; IFS=$ac_path_separator
4833 for ac_dir in $ac_dummy; do
4835 test -z "$ac_dir" && ac_dir=.
4836 $as_executable_p "$ac_dir/$ac_word" || continue
4837 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4838 echo "$as_me:4838: found $ac_dir/$ac_word" >&5
4844 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4845 if test -n "$ac_ct_LIBTOOL"; then
4846 echo "$as_me:4846: result: $ac_ct_LIBTOOL" >&5
4847 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4849 echo "$as_me:4849: result: no" >&5
4850 echo "${ECHO_T}no" >&6