2 # From configure.in Revision: 1.552 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20120811.
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 --without-manpages suppress install of manpages
710 --without-progs suppress build with programs (e.g., tic)
711 --without-tests suppress build with test-programs
712 --without-curses-h install curses.h as ncurses.h only
713 --with-pkg-config{=path} enable/disable use of pkg-config
714 --with-pkg-config-libdir=XXX use given directory for installing pc-files
715 --enable-pc-files generate and install .pc files for pkg-config
716 --enable-mixed-case tic should assume mixed-case filenames
717 --with-install-prefix prefixes actual install-location ($DESTDIR)
718 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
719 --with-build-cc=XXX the build C compiler ($BUILD_CC)
720 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
721 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
722 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
723 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
724 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
725 Options to Specify the Libraries Built/Used:
726 --disable-libtool-version enable to use libtool's incompatible naming scheme
727 --with-libtool generate libraries with libtool
728 --with-shared generate shared-libraries
729 --with-normal generate normal-libraries (default)
730 --with-debug generate debug-libraries (default)
731 --with-profile generate profile-libraries
732 --with-lib-prefix override library-prefix
733 --with-termlib generate separate terminfo library
734 --with-ticlib generate separate tic library
735 --with-gpm use Alessandro Rubini's GPM library
736 --without-dlsym do not use dlsym() to load GPM dynamically
737 --with-sysmouse use sysmouse (FreeBSD console)
738 --enable-rpath use rpath option when generating shared libraries
739 --disable-relink relink shared libraries during install
740 --with-shlib-version=X Specify rel or abi version for shared libs
741 --disable-rpath-hack don't add rpath options for additional libraries
742 Fine-Tuning Your Configuration:
743 --disable-overwrite leave out the link to -lcurses
744 --disable-database do not use terminfo, only fallbacks/termcap
745 --with-database=XXX specify terminfo source to install
746 --with-hashed-db specify hashed-database library
747 --with-fallbacks=XXX specify list of fallback terminal descriptions
748 --without-xterm-new specify if xterm terminfo should be old version
749 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
750 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
751 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
752 --disable-big-core assume machine has little memory
753 --disable-big-strings assume compiler has only standard-size strings
754 --enable-termcap compile in termcap fallback support
755 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
756 --enable-getcap fast termcap load, no xrefs to terminfo
757 --enable-getcap-cache cache translated termcaps in ~/.terminfo
758 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
759 --disable-root-environ restrict environment when running as root
760 --enable-symlinks make tic use symbolic links not hard links
761 --enable-broken_linker compile with broken-linker support code
762 --enable-bsdpad recognize BSD-style prefix padding
763 --enable-widec compile with wide-char/UTF-8 code
764 --disable-lp64 allow chtype to be long (ignore _LP64)
765 --disable-largefile omit support for large files
766 --disable-tparm-varargs compile tparm() without varargs interface
767 --disable-tic-depends link tic library without explicit dependency on ncurses library
768 --with-bool=TYPE override fallback type of bool variable
769 --with-caps=alt compile with alternate Caps file
770 --with-chtype=TYPE override type of chtype
771 --with-ospeed=TYPE override type of ospeed variable
772 --with-mmask-t=TYPE override type of mmask_t
773 --with-ccharw-max=XXX override size CCHARW_MAX
774 --with-tparm-arg=TYPE override parameter type of tparm
775 --with-rcs-ids compile-in RCS identifiers
776 Options to Specify How Manpages are Installed:
777 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
778 optionally formatted/catonly, e.g., gzip,formatted
779 --with-manpage-renames specify manpage-renaming
780 --with-manpage-aliases specify manpage-aliases using .so
781 --with-manpage-symlinks specify manpage-aliases using symlinks
782 --with-manpage-tbl specify manpage processing with tbl
784 --disable-ext-funcs disable function-extensions
785 --enable-sp-funcs enable experimental SCREEN-extensions
786 --enable-term-driver enable experimental terminal-driver
787 --enable-const compile with extra/non-standard const
788 --enable-ext-colors compile for 256-color support
789 --enable-ext-mouse compile for extended mouse-encoding
790 --enable-no-padding compile with $NCURSES_NO_PADDING code
791 --enable-signed-char compile using signed Boolean's in term.h
792 --enable-sigwinch compile with SIGWINCH handler
793 --enable-tcap-names compile with user-definable terminal capabilities
795 --without-develop disable development options
796 --enable-hard-tabs compile with hard-tabs code
797 --enable-xmc-glitch compile with support for xmc (magic-cookie)
799 --disable-assumed-color do not assume anything about default-colors
800 --disable-hashmap compile without hashmap scrolling-optimization
801 --enable-colorfgbg compile-in experimental $COLORFGBG code
802 --enable-interop compile-in experimental interop bindings
803 --with-pthread use POSIX thread library
804 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
805 --enable-weak-symbols enable weak-symbols for pthreads
806 --enable-reentrant compile with experimental reentrant code
807 --with-wrap-prefix=XXX override prefix used for public variables
808 --enable-safe-sprintf compile with experimental safe-sprintf code
809 --disable-scroll-hints compile without scroll-hints code
810 --enable-wgetch-events compile with experimental wgetch-events code
811 Testing/development Options:
812 --disable-echo display "compiling" commands
813 --enable-warnings build: turn on GCC compiler warnings
814 --enable-string-hacks work around bogus compiler/loader warnings
815 --enable-assertions test: turn on generation of assertion code
816 --with-dmalloc test: use Gray Watson's dmalloc library
817 --with-dbmalloc test: use Conor Cahill's dbmalloc library
818 --with-valgrind test: use valgrind
819 --disable-leaks test: free permanent memory, analyze leaks
820 --enable-expanded test: generate functions for certain macros
821 --disable-macros test: use functions rather than macros
822 --with-trace test: add trace() function to all models of ncurses
823 Ada95 Binding Options:
824 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
825 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
826 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
827 --with-ada-sharedlib=XX build Ada95 shared-library
829 Some influential environment variables:
830 CC C compiler command
831 CFLAGS C compiler flags
832 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
833 nonstandard directory <lib dir>
834 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
835 headers in a nonstandard directory <include dir>
837 CXX C++ compiler command
838 CXXFLAGS C++ compiler flags
839 CXXCPP C++ preprocessor
841 Use these variables to override the choices made by `configure' or to help
842 it to find libraries and programs with nonstandard names/locations.
847 if test "$ac_init_help" = "recursive"; then
848 # If there are subdirs, report their specific --help.
850 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
852 # A "../" for each directory in /$ac_subdir.
853 ac_dots=`echo $ac_subdir |
854 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
857 .) # No --srcdir option. We are building in place.
858 ac_sub_srcdir=$srcdir ;;
859 [\\/]* | ?:[\\/]* ) # Absolute path.
860 ac_sub_srcdir=$srcdir/$ac_subdir ;;
862 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
865 # Check for guested configure; otherwise get Cygnus style configure.
866 if test -f $ac_sub_srcdir/configure.gnu; then
868 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
869 elif test -f $ac_sub_srcdir/configure; then
871 $SHELL $ac_sub_srcdir/configure --help=recursive
872 elif test -f $ac_sub_srcdir/configure.ac ||
873 test -f $ac_sub_srcdir/configure.in; then
877 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
883 test -n "$ac_init_help" && exit 0
884 if $ac_init_version; then
887 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
888 Free Software Foundation, Inc.
889 This configure script is free software; the Free Software Foundation
890 gives unlimited permission to copy, distribute and modify it.
896 This file contains any messages produced by compilers while
897 running configure, to aid debugging if configure makes a mistake.
899 It was created by $as_me, which was
900 generated by GNU Autoconf 2.52.20120811. Invocation command line was
911 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
912 uname -m = `(uname -m) 2>/dev/null || echo unknown`
913 uname -r = `(uname -r) 2>/dev/null || echo unknown`
914 uname -s = `(uname -s) 2>/dev/null || echo unknown`
915 uname -v = `(uname -v) 2>/dev/null || echo unknown`
917 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
918 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
920 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
921 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
922 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
923 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
924 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
925 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
926 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
940 # Keep a trace of the command line.
941 # Strip out --no-create and --no-recursion so they do not pile up.
942 # Also quote any args containing shell meta-characters.
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c) ;;
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
956 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
959 # Get rid of the leading space.
962 # When interrupted or exit'd, cleanup temporary files, and complete
963 # config.log. We remove comments because anyway the quotes in there
964 # would cause problems or look ugly.
966 # Save into config.log some information that might help in debugging.
968 echo "## ----------------- ##" >&5
969 echo "## Cache variables. ##" >&5
970 echo "## ----------------- ##" >&5
972 # The following way of writing the cache mishandles newlines in values,
975 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
978 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
983 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
987 sed "/^$/d" confdefs.h >conftest.log
988 if test -s conftest.log; then
990 echo "## ------------ ##" >&5
991 echo "## confdefs.h. ##" >&5
992 echo "## ------------ ##" >&5
997 test "$ac_signal" != 0 &&
998 echo "$as_me: caught signal $ac_signal" >&5
999 echo "$as_me: exit $exit_status" >&5
1000 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1003 for ac_signal in 1 2 13 15; do
1004 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1008 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1009 rm -rf conftest* confdefs.h
1010 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1013 # Let the site file select an alternate cache file if it wants to.
1014 # Prefer explicitly selected file to automatically selected ones.
1015 if test -z "$CONFIG_SITE"; then
1016 if test "x$prefix" != xNONE; then
1017 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1019 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1022 for ac_site_file in $CONFIG_SITE; do
1023 if test -r "$ac_site_file"; then
1024 { echo "$as_me:1024: loading site script $ac_site_file" >&5
1025 echo "$as_me: loading site script $ac_site_file" >&6;}
1026 cat "$ac_site_file" >&5
1031 if test -r "$cache_file"; then
1032 # Some versions of bash will fail to source /dev/null (special
1033 # files actually), so we avoid doing that.
1034 if test -f "$cache_file"; then
1035 { echo "$as_me:1035: loading cache $cache_file" >&5
1036 echo "$as_me: loading cache $cache_file" >&6;}
1038 [\\/]* | ?:[\\/]* ) . $cache_file;;
1039 *) . ./$cache_file;;
1043 { echo "$as_me:1043: creating cache $cache_file" >&5
1044 echo "$as_me: creating cache $cache_file" >&6;}
1048 # Check that the precious variables saved in the cache have kept the same
1050 ac_cache_corrupted=false
1051 for ac_var in `(set) 2>&1 |
1052 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1053 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1054 eval ac_new_set=\$ac_env_${ac_var}_set
1055 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1056 eval ac_new_val="\$ac_env_${ac_var}_value"
1057 case $ac_old_set,$ac_new_set in
1059 { echo "$as_me:1059: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1060 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1061 ac_cache_corrupted=: ;;
1063 { echo "$as_me:1063: error: \`$ac_var' was not set in the previous run" >&5
1064 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1065 ac_cache_corrupted=: ;;
1068 if test "x$ac_old_val" != "x$ac_new_val"; then
1069 { echo "$as_me:1069: error: \`$ac_var' has changed since the previous run:" >&5
1070 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1071 { echo "$as_me:1071: former value: $ac_old_val" >&5
1072 echo "$as_me: former value: $ac_old_val" >&2;}
1073 { echo "$as_me:1073: current value: $ac_new_val" >&5
1074 echo "$as_me: current value: $ac_new_val" >&2;}
1075 ac_cache_corrupted=:
1078 # Pass precious variables to config.status. It doesn't matter if
1079 # we pass some twice (in addition to the command line arguments).
1080 if test "$ac_new_set" = set; then
1082 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1084 ac_configure_args="$ac_configure_args '$ac_arg'"
1086 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1091 if $ac_cache_corrupted; then
1092 { echo "$as_me:1092: error: changes in the environment can compromise the build" >&5
1093 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1094 { { echo "$as_me:1094: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1095 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1096 { (exit 1); exit 1; }; }
1100 ac_cpp='$CPP $CPPFLAGS'
1101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1104 ac_main_return=return
1106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1107 *c*,-n*) ECHO_N= ECHO_C='
1109 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1110 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1112 echo "#! $SHELL" >conftest.sh
1113 echo "exit 0" >>conftest.sh
1114 chmod +x conftest.sh
1115 if { (echo "$as_me:1115: PATH=\".;.\"; conftest.sh") >&5
1116 (PATH=".;."; conftest.sh) 2>&5
1118 echo "$as_me:1118: \$? = $ac_status" >&5
1119 (exit $ac_status); }; then
1120 ac_path_separator=';'
1124 PATH_SEPARATOR="$ac_path_separator"
1127 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1131 echo "$as_me:1131: checking for egrep" >&5
1132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1133 if test "${ac_cv_prog_egrep+set}" = set; then
1134 echo $ECHO_N "(cached) $ECHO_C" >&6
1136 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1137 then ac_cv_prog_egrep='grep -E'
1138 else ac_cv_prog_egrep='egrep'
1141 echo "$as_me:1141: result: $ac_cv_prog_egrep" >&5
1142 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1143 EGREP=$ac_cv_prog_egrep
1145 test -z "$EGREP" && { { echo "$as_me:1145: error: No egrep program found" >&5
1146 echo "$as_me: error: No egrep program found" >&2;}
1147 { (exit 1); exit 1; }; }
1149 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1150 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1151 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1152 cf_cv_abi_version=${NCURSES_MAJOR}
1153 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1154 cf_cv_timestamp=`date`
1155 echo "$as_me:1155: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1156 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1158 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1160 # Check whether --with-rel-version or --without-rel-version was given.
1161 if test "${with_rel_version+set}" = set; then
1162 withval="$with_rel_version"
1163 { echo "$as_me:1163: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1164 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1165 cf_cv_rel_version=$withval
1168 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1169 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1171 if test -n "$NCURSES_MAJOR" ; then
1172 case $NCURSES_MAJOR in #(vi
1176 { { echo "$as_me:1176: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1177 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1178 { (exit 1); exit 1; }; }
1182 { { echo "$as_me:1182: error: Release major-version value is empty" >&5
1183 echo "$as_me: error: Release major-version value is empty" >&2;}
1184 { (exit 1); exit 1; }; }
1187 if test -n "$NCURSES_MINOR" ; then
1188 case $NCURSES_MINOR in #(vi
1192 { { echo "$as_me:1192: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1193 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1194 { (exit 1); exit 1; }; }
1198 { { echo "$as_me:1198: error: Release minor-version value is empty" >&5
1199 echo "$as_me: error: Release minor-version value is empty" >&2;}
1200 { (exit 1); exit 1; }; }
1203 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1205 # Check whether --with-abi-version or --without-abi-version was given.
1206 if test "${with_abi_version+set}" = set; then
1207 withval="$with_abi_version"
1208 { echo "$as_me:1208: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1209 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1210 cf_cv_abi_version=$withval
1213 if test -n "$cf_cv_abi_version" ; then
1214 case $cf_cv_abi_version in #(vi
1218 { { echo "$as_me:1218: error: ABI version is not a number: $cf_cv_abi_version" >&5
1219 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1220 { (exit 1); exit 1; }; }
1224 { { echo "$as_me:1224: error: ABI version value is empty" >&5
1225 echo "$as_me: error: ABI version value is empty" >&2;}
1226 { (exit 1); exit 1; }; }
1230 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1231 if test -f $ac_dir/install-sh; then
1233 ac_install_sh="$ac_aux_dir/install-sh -c"
1235 elif test -f $ac_dir/install.sh; then
1237 ac_install_sh="$ac_aux_dir/install.sh -c"
1239 elif test -f $ac_dir/shtool; then
1241 ac_install_sh="$ac_aux_dir/shtool install -c"
1245 if test -z "$ac_aux_dir"; then
1246 { { echo "$as_me:1246: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1247 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1248 { (exit 1); exit 1; }; }
1250 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1251 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1252 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1254 # Make sure we can run config.sub.
1255 $ac_config_sub sun4 >/dev/null 2>&1 ||
1256 { { echo "$as_me:1256: error: cannot run $ac_config_sub" >&5
1257 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1258 { (exit 1); exit 1; }; }
1260 echo "$as_me:1260: checking build system type" >&5
1261 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1262 if test "${ac_cv_build+set}" = set; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1265 ac_cv_build_alias=$build_alias
1266 test -z "$ac_cv_build_alias" &&
1267 ac_cv_build_alias=`$ac_config_guess`
1268 test -z "$ac_cv_build_alias" &&
1269 { { echo "$as_me:1269: error: cannot guess build type; you must specify one" >&5
1270 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1271 { (exit 1); exit 1; }; }
1272 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1273 { { echo "$as_me:1273: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1274 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1275 { (exit 1); exit 1; }; }
1278 echo "$as_me:1278: result: $ac_cv_build" >&5
1279 echo "${ECHO_T}$ac_cv_build" >&6
1281 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1282 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1283 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1285 echo "$as_me:1285: checking host system type" >&5
1286 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1287 if test "${ac_cv_host+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 ac_cv_host_alias=$host_alias
1291 test -z "$ac_cv_host_alias" &&
1292 ac_cv_host_alias=$ac_cv_build_alias
1293 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1294 { { echo "$as_me:1294: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1295 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1296 { (exit 1); exit 1; }; }
1299 echo "$as_me:1299: result: $ac_cv_host" >&5
1300 echo "${ECHO_T}$ac_cv_host" >&6
1302 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1303 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1304 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1306 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1307 echo "$as_me:1307: checking target system type" >&5
1308 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1309 if test "${ac_cv_target+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 ac_cv_target_alias=$target_alias
1313 test "x$ac_cv_target_alias" = "x" &&
1314 ac_cv_target_alias=$ac_cv_host_alias
1315 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1316 { { echo "$as_me:1316: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1317 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1318 { (exit 1); exit 1; }; }
1321 echo "$as_me:1321: result: $ac_cv_target" >&5
1322 echo "${ECHO_T}$ac_cv_target" >&6
1323 target=$ac_cv_target
1324 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1325 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1326 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1328 # The aliases save the names the user supplied, while $host etc.
1329 # will get canonicalized.
1330 test -n "$target_alias" &&
1331 test "$program_prefix$program_suffix$program_transform_name" = \
1333 program_prefix=${target_alias}-
1334 system_name="$host_os"
1336 system_name="`(uname -s -r) 2>/dev/null`"
1337 if test -z "$system_name" ; then
1338 system_name="`(hostname) 2>/dev/null`"
1341 test -n "$system_name" && cat >>confdefs.h <<EOF
1342 #define SYSTEM_NAME "$system_name"
1345 if test "${cf_cv_system_name+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 cf_cv_system_name="$system_name"
1351 test -z "$system_name" && system_name="$cf_cv_system_name"
1352 test -n "$cf_cv_system_name" && echo "$as_me:1352: result: Configuring for $cf_cv_system_name" >&5
1353 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1355 if test ".$system_name" != ".$cf_cv_system_name" ; then
1356 echo "$as_me:1356: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1357 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1358 { { echo "$as_me:1358: error: \"Please remove config.cache and try again.\"" >&5
1359 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1360 { (exit 1); exit 1; }; }
1363 # Check whether --with-system-type or --without-system-type was given.
1364 if test "${with_system_type+set}" = set; then
1365 withval="$with_system_type"
1366 { echo "$as_me:1366: WARNING: overriding system type to $withval" >&5
1367 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1368 cf_cv_system_name=$withval
1371 ### Save the given $CFLAGS to allow user-override.
1372 cf_user_CFLAGS="$CFLAGS"
1374 ### Default install-location
1376 echo "$as_me:1376: checking for prefix" >&5
1377 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1378 if test "x$prefix" = "xNONE" ; then
1379 case "$cf_cv_system_name" in
1380 # non-vendor systems don't have a conflict
1381 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1384 *) prefix=$ac_default_prefix
1388 echo "$as_me:1388: result: $prefix" >&5
1389 echo "${ECHO_T}$prefix" >&6
1391 if test "x$prefix" = "xNONE" ; then
1392 echo "$as_me:1392: checking for default include-directory" >&5
1393 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1394 test -n "$verbose" && echo 1>&6
1397 $includedir/ncurses \
1399 $prefix/include/ncurses \
1400 /usr/local/include \
1401 /usr/local/include/ncurses \
1403 /usr/include/ncurses
1405 cf_dir=`eval echo $cf_symbol`
1406 if test -f $cf_dir/curses.h ; then
1407 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1408 includedir="$cf_symbol"
1409 test -n "$verbose" && echo $ac_n " found " 1>&6
1413 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1415 echo "$as_me:1415: result: $includedir" >&5
1416 echo "${ECHO_T}$includedir" >&6
1419 ### Checks for programs.
1421 # Check whether --with-ada or --without-ada was given.
1422 if test "${with_ada+set}" = set; then
1424 cf_with_ada=$withval
1428 if test x"$cf_with_ada" = xyes
1430 cf_PROG_CC="gnatgcc gcc cc"
1436 ac_cpp='$CPP $CPPFLAGS'
1437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440 ac_main_return=return
1441 if test -n "$ac_tool_prefix"; then
1442 for ac_prog in $cf_PROG_CC
1444 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1445 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1446 echo "$as_me:1446: checking for $ac_word" >&5
1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448 if test "${ac_cv_prog_CC+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 if test -n "$CC"; then
1452 ac_cv_prog_CC="$CC" # Let the user override the test.
1454 ac_save_IFS=$IFS; IFS=$ac_path_separator
1456 for ac_dir in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir=.
1459 $as_executable_p "$ac_dir/$ac_word" || continue
1460 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1461 echo "$as_me:1461: found $ac_dir/$ac_word" >&5
1468 if test -n "$CC"; then
1469 echo "$as_me:1469: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1472 echo "$as_me:1472: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1476 test -n "$CC" && break
1479 if test -z "$CC"; then
1481 for ac_prog in $cf_PROG_CC
1483 # Extract the first word of "$ac_prog", so it can be a program name with args.
1484 set dummy $ac_prog; ac_word=$2
1485 echo "$as_me:1485: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$ac_ct_CC"; then
1491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1493 ac_save_IFS=$IFS; IFS=$ac_path_separator
1495 for ac_dir in $ac_dummy; do
1497 test -z "$ac_dir" && ac_dir=.
1498 $as_executable_p "$ac_dir/$ac_word" || continue
1499 ac_cv_prog_ac_ct_CC="$ac_prog"
1500 echo "$as_me:1500: found $ac_dir/$ac_word" >&5
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:1508: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1511 echo "$as_me:1511: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1515 test -n "$ac_ct_CC" && break
1521 test -z "$CC" && { { echo "$as_me:1521: error: no acceptable cc found in \$PATH" >&5
1522 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1523 { (exit 1); exit 1; }; }
1525 # Provide some information about the compiler.
1526 echo "$as_me:1526:" \
1527 "checking for C compiler version" >&5
1528 ac_compiler=`set X $ac_compile; echo $2`
1529 { (eval echo "$as_me:1529: \"$ac_compiler --version </dev/null >&5\"") >&5
1530 (eval $ac_compiler --version </dev/null >&5) 2>&5
1532 echo "$as_me:1532: \$? = $ac_status" >&5
1533 (exit $ac_status); }
1534 { (eval echo "$as_me:1534: \"$ac_compiler -v </dev/null >&5\"") >&5
1535 (eval $ac_compiler -v </dev/null >&5) 2>&5
1537 echo "$as_me:1537: \$? = $ac_status" >&5
1538 (exit $ac_status); }
1539 { (eval echo "$as_me:1539: \"$ac_compiler -V </dev/null >&5\"") >&5
1540 (eval $ac_compiler -V </dev/null >&5) 2>&5
1542 echo "$as_me:1542: \$? = $ac_status" >&5
1543 (exit $ac_status); }
1545 cat >conftest.$ac_ext <<_ACEOF
1546 #line 1546 "configure"
1547 #include "confdefs.h"
1557 ac_clean_files_save=$ac_clean_files
1558 ac_clean_files="$ac_clean_files a.out a.exe"
1559 # Try to create an executable without -o first, disregard a.out.
1560 # It will help us diagnose broken compilers, and finding out an intuition
1562 echo "$as_me:1562: checking for C compiler default output" >&5
1563 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1564 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1565 if { (eval echo "$as_me:1565: \"$ac_link_default\"") >&5
1566 (eval $ac_link_default) 2>&5
1568 echo "$as_me:1568: \$? = $ac_status" >&5
1569 (exit $ac_status); }; then
1570 # Find the output, starting from the most likely. This scheme is
1571 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1573 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1574 ls a.out conftest 2>/dev/null;
1575 ls a.* conftest.* 2>/dev/null`; do
1577 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1578 a.out ) # We found the default executable, but exeext='' is most
1581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1582 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1589 echo "$as_me: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1591 { { echo "$as_me:1591: error: C compiler cannot create executables" >&5
1592 echo "$as_me: error: C compiler cannot create executables" >&2;}
1593 { (exit 77); exit 77; }; }
1596 ac_exeext=$ac_cv_exeext
1597 echo "$as_me:1597: result: $ac_file" >&5
1598 echo "${ECHO_T}$ac_file" >&6
1600 # Check the compiler produces executables we can run. If not, either
1601 # the compiler is broken, or we cross compile.
1602 echo "$as_me:1602: checking whether the C compiler works" >&5
1603 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1604 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1605 # If not cross compiling, check that we can run a simple program.
1606 if test "$cross_compiling" != yes; then
1607 if { ac_try='./$ac_file'
1608 { (eval echo "$as_me:1608: \"$ac_try\"") >&5
1611 echo "$as_me:1611: \$? = $ac_status" >&5
1612 (exit $ac_status); }; }; then
1615 if test "$cross_compiling" = maybe; then
1618 { { echo "$as_me:1618: error: cannot run C compiled programs.
1619 If you meant to cross compile, use \`--host'." >&5
1620 echo "$as_me: error: cannot run C compiled programs.
1621 If you meant to cross compile, use \`--host'." >&2;}
1622 { (exit 1); exit 1; }; }
1626 echo "$as_me:1626: result: yes" >&5
1627 echo "${ECHO_T}yes" >&6
1629 rm -f a.out a.exe conftest$ac_cv_exeext
1630 ac_clean_files=$ac_clean_files_save
1631 # Check the compiler produces executables we can run. If not, either
1632 # the compiler is broken, or we cross compile.
1633 echo "$as_me:1633: checking whether we are cross compiling" >&5
1634 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1635 echo "$as_me:1635: result: $cross_compiling" >&5
1636 echo "${ECHO_T}$cross_compiling" >&6
1638 echo "$as_me:1638: checking for executable suffix" >&5
1639 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1640 if { (eval echo "$as_me:1640: \"$ac_link\"") >&5
1641 (eval $ac_link) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); }; then
1645 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1646 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1647 # work properly (i.e., refer to `conftest.exe'), while it won't with
1649 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1651 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1652 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1659 { { echo "$as_me:1659: error: cannot compute EXEEXT: cannot compile and link" >&5
1660 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1661 { (exit 1); exit 1; }; }
1664 rm -f conftest$ac_cv_exeext
1665 echo "$as_me:1665: result: $ac_cv_exeext" >&5
1666 echo "${ECHO_T}$ac_cv_exeext" >&6
1668 rm -f conftest.$ac_ext
1669 EXEEXT=$ac_cv_exeext
1671 echo "$as_me:1671: checking for object suffix" >&5
1672 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1673 if test "${ac_cv_objext+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 cat >conftest.$ac_ext <<_ACEOF
1677 #line 1677 "configure"
1678 #include "confdefs.h"
1688 rm -f conftest.o conftest.obj
1689 if { (eval echo "$as_me:1689: \"$ac_compile\"") >&5
1690 (eval $ac_compile) 2>&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }; then
1694 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1696 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1702 echo "$as_me: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1704 { { echo "$as_me:1704: error: cannot compute OBJEXT: cannot compile" >&5
1705 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1706 { (exit 1); exit 1; }; }
1709 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1711 echo "$as_me:1711: result: $ac_cv_objext" >&5
1712 echo "${ECHO_T}$ac_cv_objext" >&6
1713 OBJEXT=$ac_cv_objext
1715 echo "$as_me:1715: checking whether we are using the GNU C compiler" >&5
1716 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1717 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 cat >conftest.$ac_ext <<_ACEOF
1721 #line 1721 "configure"
1722 #include "confdefs.h"
1735 rm -f conftest.$ac_objext
1736 if { (eval echo "$as_me:1736: \"$ac_compile\"") >&5
1737 (eval $ac_compile) 2>&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); } &&
1741 { ac_try='test -s conftest.$ac_objext'
1742 { (eval echo "$as_me:1742: \"$ac_try\"") >&5
1745 echo "$as_me:1745: \$? = $ac_status" >&5
1746 (exit $ac_status); }; }; then
1749 echo "$as_me: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1753 rm -f conftest.$ac_objext conftest.$ac_ext
1754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1757 echo "$as_me:1757: result: $ac_cv_c_compiler_gnu" >&5
1758 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1759 GCC=`test $ac_compiler_gnu = yes && echo yes`
1760 ac_test_CFLAGS=${CFLAGS+set}
1761 ac_save_CFLAGS=$CFLAGS
1763 echo "$as_me:1763: checking whether $CC accepts -g" >&5
1764 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1765 if test "${ac_cv_prog_cc_g+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line 1769 "configure"
1770 #include "confdefs.h"
1780 rm -f conftest.$ac_objext
1781 if { (eval echo "$as_me:1781: \"$ac_compile\"") >&5
1782 (eval $ac_compile) 2>&5
1784 echo "$as_me:1784: \$? = $ac_status" >&5
1785 (exit $ac_status); } &&
1786 { ac_try='test -s conftest.$ac_objext'
1787 { (eval echo "$as_me:1787: \"$ac_try\"") >&5
1790 echo "$as_me:1790: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1794 echo "$as_me: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1798 rm -f conftest.$ac_objext conftest.$ac_ext
1800 echo "$as_me:1800: result: $ac_cv_prog_cc_g" >&5
1801 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1802 if test "$ac_test_CFLAGS" = set; then
1803 CFLAGS=$ac_save_CFLAGS
1804 elif test $ac_cv_prog_cc_g = yes; then
1805 if test "$GCC" = yes; then
1811 if test "$GCC" = yes; then
1817 # Some people use a C++ compiler to compile C. Since we use `exit',
1818 # in C++ we need to declare it. In case someone uses the same compiler
1819 # for both compiling C and C++ we need to have the C++ compiler decide
1820 # the declaration of exit, since it's the most demanding environment.
1821 cat >conftest.$ac_ext <<_ACEOF
1826 rm -f conftest.$ac_objext
1827 if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5
1828 (eval $ac_compile) 2>&5
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); } &&
1832 { ac_try='test -s conftest.$ac_objext'
1833 { (eval echo "$as_me:1833: \"$ac_try\"") >&5
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1838 for ac_declaration in \
1840 '#include <stdlib.h>' \
1841 'extern "C" void std::exit (int) throw (); using std::exit;' \
1842 'extern "C" void std::exit (int); using std::exit;' \
1843 'extern "C" void exit (int) throw ();' \
1844 'extern "C" void exit (int);' \
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line 1848 "configure"
1849 #include "confdefs.h"
1860 rm -f conftest.$ac_objext
1861 if { (eval echo "$as_me:1861: \"$ac_compile\"") >&5
1862 (eval $ac_compile) 2>&5
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); } &&
1866 { ac_try='test -s conftest.$ac_objext'
1867 { (eval echo "$as_me:1867: \"$ac_try\"") >&5
1870 echo "$as_me:1870: \$? = $ac_status" >&5
1871 (exit $ac_status); }; }; then
1874 echo "$as_me: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1878 rm -f conftest.$ac_objext conftest.$ac_ext
1879 cat >conftest.$ac_ext <<_ACEOF
1880 #line 1880 "configure"
1881 #include "confdefs.h"
1891 rm -f conftest.$ac_objext
1892 if { (eval echo "$as_me:1892: \"$ac_compile\"") >&5
1893 (eval $ac_compile) 2>&5
1895 echo "$as_me:1895: \$? = $ac_status" >&5
1896 (exit $ac_status); } &&
1897 { ac_try='test -s conftest.$ac_objext'
1898 { (eval echo "$as_me:1898: \"$ac_try\"") >&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); }; }; then
1905 echo "$as_me: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1908 rm -f conftest.$ac_objext conftest.$ac_ext
1911 if test -n "$ac_declaration"; then
1912 echo '#ifdef __cplusplus' >>confdefs.h
1913 echo $ac_declaration >>confdefs.h
1914 echo '#endif' >>confdefs.h
1918 echo "$as_me: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1921 rm -f conftest.$ac_objext conftest.$ac_ext
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927 ac_main_return=return
1930 if test "$GCC" = yes ; then
1931 echo "$as_me:1931: checking version of $CC" >&5
1932 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1933 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1934 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1935 echo "$as_me:1935: result: $GCC_VERSION" >&5
1936 echo "${ECHO_T}$GCC_VERSION" >&6
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944 ac_main_return=return
1945 echo "$as_me:1945: checking how to run the C preprocessor" >&5
1946 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1947 # On Suns, sometimes $CPP names a directory.
1948 if test -n "$CPP" && test -d "$CPP"; then
1951 if test -z "$CPP"; then
1952 if test "${ac_cv_prog_CPP+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 # Double quotes because CPP needs to be expanded
1956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1959 for ac_c_preproc_warn_flag in '' yes
1961 # Use a header file that comes with gcc, so configuring glibc
1962 # with a fresh cross-compiler works.
1963 # On the NeXT, cc -E runs the code through the compiler's parser,
1964 # not just through cpp. "Syntax error" is here to catch this case.
1965 cat >conftest.$ac_ext <<_ACEOF
1966 #line 1966 "configure"
1967 #include "confdefs.h"
1971 if { (eval echo "$as_me:1971: \"$ac_cpp conftest.$ac_ext\"") >&5
1972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1974 egrep -v '^ *\+' conftest.er1 >conftest.err
1976 cat conftest.err >&5
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit $ac_status); } >/dev/null; then
1979 if test -s conftest.err; then
1980 ac_cpp_err=$ac_c_preproc_warn_flag
1987 if test -z "$ac_cpp_err"; then
1990 echo "$as_me: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1992 # Broken: fails on valid input.
1995 rm -f conftest.err conftest.$ac_ext
1997 # OK, works on sane cases. Now check whether non-existent headers
1998 # can be detected and how.
1999 cat >conftest.$ac_ext <<_ACEOF
2000 #line 2000 "configure"
2001 #include "confdefs.h"
2002 #include <ac_nonexistent.h>
2004 if { (eval echo "$as_me:2004: \"$ac_cpp conftest.$ac_ext\"") >&5
2005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2007 egrep -v '^ *\+' conftest.er1 >conftest.err
2009 cat conftest.err >&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); } >/dev/null; then
2012 if test -s conftest.err; then
2013 ac_cpp_err=$ac_c_preproc_warn_flag
2020 if test -z "$ac_cpp_err"; then
2021 # Broken: success on invalid input.
2024 echo "$as_me: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 # Passes both tests.
2030 rm -f conftest.err conftest.$ac_ext
2033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2034 rm -f conftest.err conftest.$ac_ext
2035 if $ac_preproc_ok; then
2047 echo "$as_me:2047: result: $CPP" >&5
2048 echo "${ECHO_T}$CPP" >&6
2050 for ac_c_preproc_warn_flag in '' yes
2052 # Use a header file that comes with gcc, so configuring glibc
2053 # with a fresh cross-compiler works.
2054 # On the NeXT, cc -E runs the code through the compiler's parser,
2055 # not just through cpp. "Syntax error" is here to catch this case.
2056 cat >conftest.$ac_ext <<_ACEOF
2057 #line 2057 "configure"
2058 #include "confdefs.h"
2062 if { (eval echo "$as_me:2062: \"$ac_cpp conftest.$ac_ext\"") >&5
2063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2065 egrep -v '^ *\+' conftest.er1 >conftest.err
2067 cat conftest.err >&5
2068 echo "$as_me:2068: \$? = $ac_status" >&5
2069 (exit $ac_status); } >/dev/null; then
2070 if test -s conftest.err; then
2071 ac_cpp_err=$ac_c_preproc_warn_flag
2078 if test -z "$ac_cpp_err"; then
2081 echo "$as_me: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2083 # Broken: fails on valid input.
2086 rm -f conftest.err conftest.$ac_ext
2088 # OK, works on sane cases. Now check whether non-existent headers
2089 # can be detected and how.
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #line 2091 "configure"
2092 #include "confdefs.h"
2093 #include <ac_nonexistent.h>
2095 if { (eval echo "$as_me:2095: \"$ac_cpp conftest.$ac_ext\"") >&5
2096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2098 egrep -v '^ *\+' conftest.er1 >conftest.err
2100 cat conftest.err >&5
2101 echo "$as_me:2101: \$? = $ac_status" >&5
2102 (exit $ac_status); } >/dev/null; then
2103 if test -s conftest.err; then
2104 ac_cpp_err=$ac_c_preproc_warn_flag
2111 if test -z "$ac_cpp_err"; then
2112 # Broken: success on invalid input.
2115 echo "$as_me: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 # Passes both tests.
2121 rm -f conftest.err conftest.$ac_ext
2124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2125 rm -f conftest.err conftest.$ac_ext
2126 if $ac_preproc_ok; then
2129 { { echo "$as_me:2129: error: C preprocessor \"$CPP\" fails sanity check" >&5
2130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2131 { (exit 1); exit 1; }; }
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 ac_main_return=return
2141 if test $ac_cv_c_compiler_gnu = yes; then
2142 echo "$as_me:2142: checking whether $CC needs -traditional" >&5
2143 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2144 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 ac_pattern="Autoconf.*'x'"
2148 cat >conftest.$ac_ext <<_ACEOF
2149 #line 2149 "configure"
2150 #include "confdefs.h"
2152 int Autoconf = TIOCGETP;
2154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2155 egrep "$ac_pattern" >/dev/null 2>&1; then
2156 ac_cv_prog_gcc_traditional=yes
2158 ac_cv_prog_gcc_traditional=no
2162 if test $ac_cv_prog_gcc_traditional = no; then
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line 2164 "configure"
2165 #include "confdefs.h"
2167 int Autoconf = TCGETA;
2169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2170 egrep "$ac_pattern" >/dev/null 2>&1; then
2171 ac_cv_prog_gcc_traditional=yes
2177 echo "$as_me:2177: result: $ac_cv_prog_gcc_traditional" >&5
2178 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2179 if test $ac_cv_prog_gcc_traditional = yes; then
2180 CC="$CC -traditional"
2184 echo "$as_me:2184: checking whether $CC understands -c and -o together" >&5
2185 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2186 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 cat > conftest.$ac_ext <<CF_EOF
2194 ${cf_cv_main_return:-return}(0);
2197 # We do the test twice because some compilers refuse to overwrite an
2198 # existing .o file with -o, though they will create one.
2199 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2200 if { (eval echo "$as_me:2200: \"$ac_try\"") >&5
2203 echo "$as_me:2203: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 test -f conftest2.$ac_objext && { (eval echo "$as_me:2205: \"$ac_try\"") >&5
2208 echo "$as_me:2208: \$? = $ac_status" >&5
2209 (exit $ac_status); };
2211 eval cf_cv_prog_CC_c_o=yes
2213 eval cf_cv_prog_CC_c_o=no
2218 if test $cf_cv_prog_CC_c_o = yes; then
2219 echo "$as_me:2219: result: yes" >&5
2220 echo "${ECHO_T}yes" >&6
2222 echo "$as_me:2222: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2226 echo "$as_me:2226: checking for POSIXized ISC" >&5
2227 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2228 if test -d /etc/conf/kconfig.d &&
2229 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2231 echo "$as_me:2231: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6
2233 ISC=yes # If later tests want to check for ISC.
2235 cat >>confdefs.h <<\EOF
2236 #define _POSIX_SOURCE 1
2239 if test "$GCC" = yes; then
2245 echo "$as_me:2245: result: no" >&5
2246 echo "${ECHO_T}no" >&6
2250 # This should have been defined by AC_PROG_CC
2253 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2254 # into CC. This will not help with broken scripts that wrap the compiler with
2255 # options, but eliminates a more common category of user confusion.
2256 echo "$as_me:2256: checking \$CC variable" >&5
2257 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2260 echo "$as_me:2260: result: broken" >&5
2261 echo "${ECHO_T}broken" >&6
2262 { echo "$as_me:2262: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2263 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2265 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2266 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2271 cf_new_extra_cppflags=
2273 for cf_add_cflags in $cf_flags
2275 case $cf_fix_cppflags in
2277 case $cf_add_cflags in #(vi
2278 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2279 case $cf_add_cflags in
2281 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2283 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2284 && test -z "${cf_tst_cflags}" \
2285 && cf_fix_cppflags=yes
2287 if test $cf_fix_cppflags = yes ; then
2288 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2290 elif test "${cf_tst_cflags}" = "\"'" ; then
2291 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2297 *$cf_add_cflags) #(vi
2300 case $cf_add_cflags in #(vi
2302 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2304 CPPFLAGS=`echo "$CPPFLAGS" | \
2305 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2306 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2310 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2315 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2320 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2322 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2324 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2325 && test -z "${cf_tst_cflags}" \
2326 && cf_fix_cppflags=no
2331 if test -n "$cf_new_cflags" ; then
2333 CFLAGS="$CFLAGS $cf_new_cflags"
2336 if test -n "$cf_new_cppflags" ; then
2338 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2341 if test -n "$cf_new_extra_cppflags" ; then
2343 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2348 echo "$as_me:2348: result: ok" >&5
2349 echo "${ECHO_T}ok" >&6
2353 echo "$as_me:2353: checking for ${CC:-cc} option to accept ANSI C" >&5
2354 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2355 if test "${cf_cv_ansi_cc+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cf_save_CFLAGS="$CFLAGS"
2361 cf_save_CPPFLAGS="$CPPFLAGS"
2362 # Don't try gcc -ansi; that turns off useful extensions and
2363 # breaks some systems' header files.
2364 # AIX -qlanglvl=ansi
2365 # Ultrix and OSF/1 -std1
2366 # HP-UX -Aa -D_HPUX_SOURCE
2368 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2369 for cf_arg in "-DCC_HAS_PROTOS" \
2374 "-Aa -D_HPUX_SOURCE" \
2381 cf_new_extra_cppflags=
2383 for cf_add_cflags in $cf_arg
2385 case $cf_fix_cppflags in
2387 case $cf_add_cflags in #(vi
2388 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2389 case $cf_add_cflags in
2391 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2393 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2394 && test -z "${cf_tst_cflags}" \
2395 && cf_fix_cppflags=yes
2397 if test $cf_fix_cppflags = yes ; then
2398 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2400 elif test "${cf_tst_cflags}" = "\"'" ; then
2401 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2407 *$cf_add_cflags) #(vi
2410 case $cf_add_cflags in #(vi
2412 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2414 CPPFLAGS=`echo "$CPPFLAGS" | \
2415 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2416 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2420 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2425 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2430 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2432 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2434 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2435 && test -z "${cf_tst_cflags}" \
2436 && cf_fix_cppflags=no
2441 if test -n "$cf_new_cflags" ; then
2443 CFLAGS="$CFLAGS $cf_new_cflags"
2446 if test -n "$cf_new_cppflags" ; then
2448 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2451 if test -n "$cf_new_extra_cppflags" ; then
2453 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line 2457 "configure"
2458 #include "confdefs.h"
2460 #ifndef CC_HAS_PROTOS
2461 #if !defined(__STDC__) || (__STDC__ != 1)
2470 int test (int i, double x);
2471 struct s1 {int (*f) (int a);};
2472 struct s2 {int (*f) (double a);};
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:2478: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>&5
2481 echo "$as_me:2481: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:2484: \"$ac_try\"") >&5
2487 echo "$as_me:2487: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 cf_cv_ansi_cc="$cf_arg"; break
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2496 CFLAGS="$cf_save_CFLAGS"
2497 CPPFLAGS="$cf_save_CPPFLAGS"
2500 echo "$as_me:2500: result: $cf_cv_ansi_cc" >&5
2501 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2503 if test "$cf_cv_ansi_cc" != "no"; then
2504 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2509 cf_new_extra_cppflags=
2511 for cf_add_cflags in $cf_cv_ansi_cc
2513 case $cf_fix_cppflags in
2515 case $cf_add_cflags in #(vi
2516 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2517 case $cf_add_cflags in
2519 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2521 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2522 && test -z "${cf_tst_cflags}" \
2523 && cf_fix_cppflags=yes
2525 if test $cf_fix_cppflags = yes ; then
2526 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2528 elif test "${cf_tst_cflags}" = "\"'" ; then
2529 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2535 *$cf_add_cflags) #(vi
2538 case $cf_add_cflags in #(vi
2540 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2542 CPPFLAGS=`echo "$CPPFLAGS" | \
2543 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2544 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2548 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2553 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2558 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2560 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2562 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2563 && test -z "${cf_tst_cflags}" \
2564 && cf_fix_cppflags=no
2569 if test -n "$cf_new_cflags" ; then
2571 CFLAGS="$CFLAGS $cf_new_cflags"
2574 if test -n "$cf_new_cppflags" ; then
2576 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2579 if test -n "$cf_new_extra_cppflags" ; then
2581 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2585 cat >>confdefs.h <<\EOF
2586 #define CC_HAS_PROTOS 1
2592 if test "$cf_cv_ansi_cc" = "no"; then
2593 { { echo "$as_me:2593: error: Your compiler does not appear to recognize prototypes.
2594 You have the following choices:
2595 a. adjust your compiler options
2596 b. get an up-to-date compiler
2597 c. use a wrapper such as unproto" >&5
2598 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2599 You have the following choices:
2600 a. adjust your compiler options
2601 b. get an up-to-date compiler
2602 c. use a wrapper such as unproto" >&2;}
2603 { (exit 1); exit 1; }; }
2606 case $cf_cv_system_name in
2608 CFLAGS="$CFLAGS -Zmt"
2609 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2610 CXXFLAGS="$CXXFLAGS -Zmt"
2611 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2612 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2619 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2620 #define PROG_EXT "$PROG_EXT"
2623 if test "$cross_compiling" = yes ; then
2626 case "$cf_cv_system_name" in #(vi
2627 dragonfly*|mirbsd*|freebsd*) #(vi
2628 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2630 *) LDPATH=$PATH:/sbin:/usr/sbin
2631 # Extract the first word of "ldconfig", so it can be a program name with args.
2632 set dummy ldconfig; ac_word=$2
2633 echo "$as_me:2633: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2643 ac_save_IFS=$IFS; IFS=$ac_path_separator
2645 for ac_dir in $ac_dummy; do
2647 test -z "$ac_dir" && ac_dir=.
2648 if $as_executable_p "$ac_dir/$ac_word"; then
2649 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2650 echo "$as_me:2650: found $ac_dir/$ac_word" >&5
2658 LDCONFIG=$ac_cv_path_LDCONFIG
2660 if test -n "$LDCONFIG"; then
2661 echo "$as_me:2661: result: $LDCONFIG" >&5
2662 echo "${ECHO_T}$LDCONFIG" >&6
2664 echo "$as_me:2664: result: no" >&5
2665 echo "${ECHO_T}no" >&6
2672 echo "$as_me:2672: checking if you want to ensure bool is consistent with C++" >&5
2673 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2675 # Check whether --with-cxx or --without-cxx was given.
2676 if test "${with_cxx+set}" = set; then
2678 cf_with_cxx=$withval
2682 echo "$as_me:2682: result: $cf_with_cxx" >&5
2683 echo "${ECHO_T}$cf_with_cxx" >&6
2684 if test "X$cf_with_cxx" = Xno ; then
2688 # with autoconf 2.13, we can change the error to a warning:
2690 ac_cpp='$CXXCPP $CPPFLAGS'
2691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2694 ac_main_return=return
2695 if test -n "$ac_tool_prefix"; then
2696 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2700 echo "$as_me:2700: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702 if test "${ac_cv_prog_CXX+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 if test -n "$CXX"; then
2706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2708 ac_save_IFS=$IFS; IFS=$ac_path_separator
2710 for ac_dir in $ac_dummy; do
2712 test -z "$ac_dir" && ac_dir=.
2713 $as_executable_p "$ac_dir/$ac_word" || continue
2714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2715 echo "$as_me:2715: found $ac_dir/$ac_word" >&5
2722 if test -n "$CXX"; then
2723 echo "$as_me:2723: result: $CXX" >&5
2724 echo "${ECHO_T}$CXX" >&6
2726 echo "$as_me:2726: result: no" >&5
2727 echo "${ECHO_T}no" >&6
2730 test -n "$CXX" && break
2733 if test -z "$CXX"; then
2735 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 echo "$as_me:2739: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 if test -n "$ac_ct_CXX"; then
2745 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2747 ac_save_IFS=$IFS; IFS=$ac_path_separator
2749 for ac_dir in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir=.
2752 $as_executable_p "$ac_dir/$ac_word" || continue
2753 ac_cv_prog_ac_ct_CXX="$ac_prog"
2754 echo "$as_me:2754: found $ac_dir/$ac_word" >&5
2760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2761 if test -n "$ac_ct_CXX"; then
2762 echo "$as_me:2762: result: $ac_ct_CXX" >&5
2763 echo "${ECHO_T}$ac_ct_CXX" >&6
2765 echo "$as_me:2765: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2769 test -n "$ac_ct_CXX" && break
2771 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2776 # Provide some information about the compiler.
2777 echo "$as_me:2777:" \
2778 "checking for C++ compiler version" >&5
2779 ac_compiler=`set X $ac_compile; echo $2`
2780 { (eval echo "$as_me:2780: \"$ac_compiler --version </dev/null >&5\"") >&5
2781 (eval $ac_compiler --version </dev/null >&5) 2>&5
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); }
2785 { (eval echo "$as_me:2785: \"$ac_compiler -v </dev/null >&5\"") >&5
2786 (eval $ac_compiler -v </dev/null >&5) 2>&5
2788 echo "$as_me:2788: \$? = $ac_status" >&5
2789 (exit $ac_status); }
2790 { (eval echo "$as_me:2790: \"$ac_compiler -V </dev/null >&5\"") >&5
2791 (eval $ac_compiler -V </dev/null >&5) 2>&5
2793 echo "$as_me:2793: \$? = $ac_status" >&5
2794 (exit $ac_status); }
2796 echo "$as_me:2796: checking whether we are using the GNU C++ compiler" >&5
2797 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2798 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 cat >conftest.$ac_ext <<_ACEOF
2802 #line 2802 "configure"
2803 #include "confdefs.h"
2816 rm -f conftest.$ac_objext
2817 if { (eval echo "$as_me:2817: \"$ac_compile\"") >&5
2818 (eval $ac_compile) 2>&5
2820 echo "$as_me:2820: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 { ac_try='test -s conftest.$ac_objext'
2823 { (eval echo "$as_me:2823: \"$ac_try\"") >&5
2826 echo "$as_me:2826: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2830 echo "$as_me: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2834 rm -f conftest.$ac_objext conftest.$ac_ext
2835 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2838 echo "$as_me:2838: result: $ac_cv_cxx_compiler_gnu" >&5
2839 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2840 GXX=`test $ac_compiler_gnu = yes && echo yes`
2841 ac_test_CXXFLAGS=${CXXFLAGS+set}
2842 ac_save_CXXFLAGS=$CXXFLAGS
2844 echo "$as_me:2844: checking whether $CXX accepts -g" >&5
2845 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2846 if test "${ac_cv_prog_cxx_g+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line 2850 "configure"
2851 #include "confdefs.h"
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:2862: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>&5
2865 echo "$as_me:2865: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:2868: \"$ac_try\"") >&5
2871 echo "$as_me:2871: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 ac_cv_prog_cxx_g=yes
2875 echo "$as_me: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2879 rm -f conftest.$ac_objext conftest.$ac_ext
2881 echo "$as_me:2881: result: $ac_cv_prog_cxx_g" >&5
2882 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2883 if test "$ac_test_CXXFLAGS" = set; then
2884 CXXFLAGS=$ac_save_CXXFLAGS
2885 elif test $ac_cv_prog_cxx_g = yes; then
2886 if test "$GXX" = yes; then
2892 if test "$GXX" = yes; then
2898 for ac_declaration in \
2900 '#include <stdlib.h>' \
2901 'extern "C" void std::exit (int) throw (); using std::exit;' \
2902 'extern "C" void std::exit (int); using std::exit;' \
2903 'extern "C" void exit (int) throw ();' \
2904 'extern "C" void exit (int);' \
2907 cat >conftest.$ac_ext <<_ACEOF
2908 #line 2908 "configure"
2909 #include "confdefs.h"
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:2921: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>&5
2924 echo "$as_me:2924: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:2927: \"$ac_try\"") >&5
2930 echo "$as_me:2930: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2938 rm -f conftest.$ac_objext conftest.$ac_ext
2939 cat >conftest.$ac_ext <<_ACEOF
2940 #line 2940 "configure"
2941 #include "confdefs.h"
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:2952: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>&5
2955 echo "$as_me:2955: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:2958: \"$ac_try\"") >&5
2961 echo "$as_me:2961: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2965 echo "$as_me: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2968 rm -f conftest.$ac_objext conftest.$ac_ext
2971 if test -n "$ac_declaration"; then
2972 echo '#ifdef __cplusplus' >>confdefs.h
2973 echo $ac_declaration >>confdefs.h
2974 echo '#endif' >>confdefs.h
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 ac_main_return=return
2984 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2985 if test "$CXX" = "g++" ; then
2986 # Extract the first word of "g++", so it can be a program name with args.
2987 set dummy g++; ac_word=$2
2988 echo "$as_me:2988: checking for $ac_word" >&5
2989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990 if test "${ac_cv_path_CXX+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2998 ac_save_IFS=$IFS; IFS=$ac_path_separator
3000 for ac_dir in $ac_dummy; do
3002 test -z "$ac_dir" && ac_dir=.
3003 if $as_executable_p "$ac_dir/$ac_word"; then
3004 ac_cv_path_CXX="$ac_dir/$ac_word"
3005 echo "$as_me:3005: found $ac_dir/$ac_word" >&5
3015 if test -n "$CXX"; then
3016 echo "$as_me:3016: result: $CXX" >&5
3017 echo "${ECHO_T}$CXX" >&6
3019 echo "$as_me:3019: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3024 case "x$CXX" in #(vi
3026 { echo "$as_me:3026: WARNING: You don't have any C++ compiler, too bad" >&5
3027 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3028 cf_with_cxx=no; CXX=""; GXX="";
3034 if test "$GXX" = yes; then
3035 echo "$as_me:3035: checking version of ${CXX:-g++}" >&5
3036 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3037 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3038 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3039 echo "$as_me:3039: result: $GXX_VERSION" >&5
3040 echo "${ECHO_T}$GXX_VERSION" >&6
3043 case $GXX_VERSION in
3045 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3047 { echo "$as_me:3047: WARNING: templates do not work" >&5
3048 echo "$as_me: WARNING: templates do not work" >&2;}
3052 echo "$as_me:3052: checking if you want to build C++ binding and demo" >&5
3053 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3055 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3056 if test "${with_cxx_binding+set}" = set; then
3057 withval="$with_cxx_binding"
3058 cf_with_cxx_binding=$withval
3060 cf_with_cxx_binding=$cf_with_cxx
3062 echo "$as_me:3062: result: $cf_with_cxx_binding" >&5
3063 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3065 echo "$as_me:3065: checking if you want to build with Ada95" >&5
3066 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3067 echo "$as_me:3067: result: $cf_with_ada" >&5
3068 echo "${ECHO_T}$cf_with_ada" >&6
3070 echo "$as_me:3070: checking if you want to install manpages" >&5
3071 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3073 # Check whether --with-manpages or --without-manpages was given.
3074 if test "${with_manpages+set}" = set; then
3075 withval="$with_manpages"
3076 cf_with_manpages=$withval
3078 cf_with_manpages=yes
3080 echo "$as_me:3080: result: $cf_with_manpages" >&5
3081 echo "${ECHO_T}$cf_with_manpages" >&6
3083 echo "$as_me:3083: checking if you want to build programs such as tic" >&5
3084 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3086 # Check whether --with-progs or --without-progs was given.
3087 if test "${with_progs+set}" = set; then
3088 withval="$with_progs"
3089 cf_with_progs=$withval
3093 echo "$as_me:3093: result: $cf_with_progs" >&5
3094 echo "${ECHO_T}$cf_with_progs" >&6
3096 echo "$as_me:3096: checking if you want to build test-programs" >&5
3097 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3099 # Check whether --with-tests or --without-tests was given.
3100 if test "${with_tests+set}" = set; then
3101 withval="$with_tests"
3102 cf_with_tests=$withval
3106 echo "$as_me:3106: result: $cf_with_tests" >&5
3107 echo "${ECHO_T}$cf_with_tests" >&6
3109 echo "$as_me:3109: checking if you wish to install curses.h" >&5
3110 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3112 # Check whether --with-curses-h or --without-curses-h was given.
3113 if test "${with_curses_h+set}" = set; then
3114 withval="$with_curses_h"
3115 with_curses_h=$withval
3119 echo "$as_me:3119: result: $with_curses_h" >&5
3120 echo "${ECHO_T}$with_curses_h" >&6
3122 modules_to_build="ncurses"
3123 if test "X$cf_with_progs" != Xno ; then
3124 modules_to_build="$modules_to_build progs tack"
3126 modules_to_build="$modules_to_build panel menu form"
3128 test "$program_prefix" != NONE &&
3129 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3130 # Use a double $ so make ignores it.
3131 test "$program_suffix" != NONE &&
3132 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3133 # Double any \ or $. echo might interpret backslashes.
3134 # By default was `s,x,x', remove it if useless.
3135 cat <<\_ACEOF >conftest.sed
3136 s/[\\$]/&&/g;s/;s,x,x,$//
3138 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3141 for ac_prog in mawk gawk nawk awk
3143 # Extract the first word of "$ac_prog", so it can be a program name with args.
3144 set dummy $ac_prog; ac_word=$2
3145 echo "$as_me:3145: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147 if test "${ac_cv_prog_AWK+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 if test -n "$AWK"; then
3151 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3153 ac_save_IFS=$IFS; IFS=$ac_path_separator
3155 for ac_dir in $ac_dummy; do
3157 test -z "$ac_dir" && ac_dir=.
3158 $as_executable_p "$ac_dir/$ac_word" || continue
3159 ac_cv_prog_AWK="$ac_prog"
3160 echo "$as_me:3160: found $ac_dir/$ac_word" >&5
3167 if test -n "$AWK"; then
3168 echo "$as_me:3168: result: $AWK" >&5
3169 echo "${ECHO_T}$AWK" >&6
3171 echo "$as_me:3171: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3175 test -n "$AWK" && break
3178 test -z "$AWK" && { { echo "$as_me:3178: error: No awk program found" >&5
3179 echo "$as_me: error: No awk program found" >&2;}
3180 { (exit 1); exit 1; }; }
3182 echo "$as_me:3182: checking for egrep" >&5
3183 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3184 if test "${ac_cv_prog_egrep+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3188 then ac_cv_prog_egrep='grep -E'
3189 else ac_cv_prog_egrep='egrep'
3192 echo "$as_me:3192: result: $ac_cv_prog_egrep" >&5
3193 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3194 EGREP=$ac_cv_prog_egrep
3196 test -z "$EGREP" && { { echo "$as_me:3196: error: No egrep program found" >&5
3197 echo "$as_me: error: No egrep program found" >&2;}
3198 { (exit 1); exit 1; }; }
3200 # Find a good install program. We prefer a C program (faster),
3201 # so one script is as good as another. But avoid the broken or
3202 # incompatible versions:
3203 # SysV /etc/install, /usr/sbin/install
3204 # SunOS /usr/etc/install
3205 # IRIX /sbin/install
3207 # AmigaOS /C/install, which installs bootblocks on floppy discs
3208 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3209 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3210 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3211 # ./install, which can be erroneously created by make from ./install.sh.
3212 echo "$as_me:3212: checking for a BSD compatible install" >&5
3213 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3214 if test -z "$INSTALL"; then
3215 if test "${ac_cv_path_install+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 ac_save_IFS=$IFS; IFS=$ac_path_separator
3219 for ac_dir in $PATH; do
3221 # Account for people who put trailing slashes in PATH elements.
3223 / | ./ | .// | /cC/* \
3224 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3227 # OSF1 and SCO ODT 3.0 have their own names for install.
3228 # Don't use installbsd from OSF since it installs stuff as root
3230 for ac_prog in ginstall scoinst install; do
3231 if $as_executable_p "$ac_dir/$ac_prog"; then
3232 if test $ac_prog = install &&
3233 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3234 # AIX install. It has an incompatible calling convention.
3236 elif test $ac_prog = install &&
3237 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3238 # program-specific install script used by HP pwplus--don't use.
3241 ac_cv_path_install="$ac_dir/$ac_prog -c"
3251 if test "${ac_cv_path_install+set}" = set; then
3252 INSTALL=$ac_cv_path_install
3254 # As a last resort, use the slow shell script. We don't cache a
3255 # path for INSTALL within a source directory, because that will
3256 # break other packages using the cache if that directory is
3257 # removed, or if the path is relative.
3258 INSTALL=$ac_install_sh
3261 echo "$as_me:3261: result: $INSTALL" >&5
3262 echo "${ECHO_T}$INSTALL" >&6
3264 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3265 # It thinks the first close brace ends the variable substitution.
3266 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3268 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3270 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3276 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3277 test -z "$cf_dir" && cf_dir=.
3278 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3282 for ac_prog in tdlint lint alint splint lclint
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 echo "$as_me:3286: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_LINT+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$LINT"; then
3292 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3294 ac_save_IFS=$IFS; IFS=$ac_path_separator
3296 for ac_dir in $ac_dummy; do
3298 test -z "$ac_dir" && ac_dir=.
3299 $as_executable_p "$ac_dir/$ac_word" || continue
3300 ac_cv_prog_LINT="$ac_prog"
3301 echo "$as_me:3301: found $ac_dir/$ac_word" >&5
3307 LINT=$ac_cv_prog_LINT
3308 if test -n "$LINT"; then
3309 echo "$as_me:3309: result: $LINT" >&5
3310 echo "${ECHO_T}$LINT" >&6
3312 echo "$as_me:3312: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3316 test -n "$LINT" && break
3319 echo "$as_me:3319: checking whether ln -s works" >&5
3320 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3322 if test "$LN_S" = "ln -s"; then
3323 echo "$as_me:3323: result: yes" >&5
3324 echo "${ECHO_T}yes" >&6
3326 echo "$as_me:3326: result: no, using $LN_S" >&5
3327 echo "${ECHO_T}no, using $LN_S" >&6
3330 echo "$as_me:3330: checking if $LN_S -f options work" >&5
3331 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3333 rm -f conf$$.src conf$$dst
3335 echo first >conf$$.src
3336 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3341 rm -f conf$$.dst conf$$src
3342 echo "$as_me:3342: result: $cf_prog_ln_sf" >&5
3343 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3345 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3347 echo "$as_me:3347: checking for long file names" >&5
3348 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3349 if test "${ac_cv_sys_long_file_names+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 ac_cv_sys_long_file_names=yes
3353 # Test for long file names in all the places we know might matter:
3354 # . the current directory, where building will happen
3355 # $prefix/lib where we will be installing things
3356 # $exec_prefix/lib likewise
3357 # eval it to expand exec_prefix.
3358 # $TMPDIR if set, where it might want to write temporary files
3359 # if $TMPDIR is not set:
3360 # /tmp where it might want to write temporary files
3363 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3366 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3368 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3369 test -d $ac_dir || continue
3370 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3371 ac_xdir=$ac_dir/cf$$
3372 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3373 ac_tf1=$ac_xdir/conftest9012345
3374 ac_tf2=$ac_xdir/conftest9012346
3375 (echo 1 >$ac_tf1) 2>/dev/null
3376 (echo 2 >$ac_tf2) 2>/dev/null
3377 ac_val=`cat $ac_tf1 2>/dev/null`
3378 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3379 ac_cv_sys_long_file_names=no
3380 rm -rf $ac_xdir 2>/dev/null
3383 rm -rf $ac_xdir 2>/dev/null
3386 echo "$as_me:3386: result: $ac_cv_sys_long_file_names" >&5
3387 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3388 if test $ac_cv_sys_long_file_names = yes; then
3390 cat >>confdefs.h <<\EOF
3391 #define HAVE_LONG_FILE_NAMES 1
3396 # if we find pkg-config, check if we should install the ".pc" files.
3398 echo "$as_me:3398: checking if you want to use pkg-config" >&5
3399 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3401 # Check whether --with-pkg-config or --without-pkg-config was given.
3402 if test "${with_pkg_config+set}" = set; then
3403 withval="$with_pkg_config"
3404 cf_pkg_config=$withval
3408 echo "$as_me:3408: result: $cf_pkg_config" >&5
3409 echo "${ECHO_T}$cf_pkg_config" >&6
3411 case $cf_pkg_config in #(vi
3417 if test -n "$ac_tool_prefix"; then
3418 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3419 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3420 echo "$as_me:3420: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3430 ac_save_IFS=$IFS; IFS=$ac_path_separator
3432 for ac_dir in $ac_dummy; do
3434 test -z "$ac_dir" && ac_dir=.
3435 if $as_executable_p "$ac_dir/$ac_word"; then
3436 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3437 echo "$as_me:3437: found $ac_dir/$ac_word" >&5
3445 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3447 if test -n "$PKG_CONFIG"; then
3448 echo "$as_me:3448: result: $PKG_CONFIG" >&5
3449 echo "${ECHO_T}$PKG_CONFIG" >&6
3451 echo "$as_me:3451: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3456 if test -z "$ac_cv_path_PKG_CONFIG"; then
3457 ac_pt_PKG_CONFIG=$PKG_CONFIG
3458 # Extract the first word of "pkg-config", so it can be a program name with args.
3459 set dummy pkg-config; ac_word=$2
3460 echo "$as_me:3460: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 case $ac_pt_PKG_CONFIG in
3467 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3470 ac_save_IFS=$IFS; IFS=$ac_path_separator
3472 for ac_dir in $ac_dummy; do
3474 test -z "$ac_dir" && ac_dir=.
3475 if $as_executable_p "$ac_dir/$ac_word"; then
3476 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3477 echo "$as_me:3477: found $ac_dir/$ac_word" >&5
3482 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3486 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3488 if test -n "$ac_pt_PKG_CONFIG"; then
3489 echo "$as_me:3489: result: $ac_pt_PKG_CONFIG" >&5
3490 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3492 echo "$as_me:3492: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3496 PKG_CONFIG=$ac_pt_PKG_CONFIG
3498 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3507 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3508 if test "$PKG_CONFIG" != none ; then
3510 if test "x$prefix" != xNONE; then
3511 cf_path_syntax="$prefix"
3513 cf_path_syntax="$ac_default_prefix"
3516 case ".$PKG_CONFIG" in #(vi
3517 .\$\(*\)*|.\'*\'*) #(vi
3521 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3523 .\${*prefix}*|.\${*dir}*) #(vi
3524 eval PKG_CONFIG="$PKG_CONFIG"
3525 case ".$PKG_CONFIG" in #(vi
3527 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3532 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3535 { { echo "$as_me:3535: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3536 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3537 { (exit 1); exit 1; }; }
3543 if test "$PKG_CONFIG" != none ; then
3544 echo "$as_me:3544: checking for $PKG_CONFIG library directory" >&5
3545 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3547 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3548 if test "${with_pkg_config_libdir+set}" = set; then
3549 withval="$with_pkg_config_libdir"
3550 PKG_CONFIG_LIBDIR=$withval
3552 PKG_CONFIG_LIBDIR=yes
3555 case x$PKG_CONFIG_LIBDIR in #(vi
3559 # look for the library directory using the same prefix as the executable
3560 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3561 case x`(arch) 2>/dev/null` in #(vi
3563 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3565 if test -d $cf_config/pkgconfig
3567 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3573 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3581 echo "$as_me:3581: result: $PKG_CONFIG_LIBDIR" >&5
3582 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3585 if test "$PKG_CONFIG" != none ; then
3586 echo "$as_me:3586: checking if we should install .pc files for $PKG_CONFIG" >&5
3587 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3589 # Check whether --enable-pc-files or --disable-pc-files was given.
3590 if test "${enable_pc_files+set}" = set; then
3591 enableval="$enable_pc_files"
3592 enable_pc_files=$enableval
3596 echo "$as_me:3596: result: $enable_pc_files" >&5
3597 echo "${ECHO_T}$enable_pc_files" >&6
3598 if test "$enable_pc_files" != no
3601 if test "x$prefix" != xNONE; then
3602 cf_path_syntax="$prefix"
3604 cf_path_syntax="$ac_default_prefix"
3607 case ".$PKG_CONFIG_LIBDIR" in #(vi
3608 .\$\(*\)*|.\'*\'*) #(vi
3612 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3614 .\${*prefix}*|.\${*dir}*) #(vi
3615 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3616 case ".$PKG_CONFIG_LIBDIR" in #(vi
3618 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3623 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3626 { { echo "$as_me:3626: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3627 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3628 { (exit 1); exit 1; }; }
3637 echo "$as_me:3637: checking if we should assume mixed-case filenames" >&5
3638 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3640 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3641 if test "${enable_mixed_case+set}" = set; then
3642 enableval="$enable_mixed_case"
3643 enable_mixedcase=$enableval
3645 enable_mixedcase=auto
3647 echo "$as_me:3647: result: $enable_mixedcase" >&5
3648 echo "${ECHO_T}$enable_mixedcase" >&6
3649 if test "$enable_mixedcase" = "auto" ; then
3651 echo "$as_me:3651: checking if filesystem supports mixed-case filenames" >&5
3652 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3653 if test "${cf_cv_mixedcase+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 if test "$cross_compiling" = yes ; then
3658 case $target_alias in #(vi
3659 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3667 rm -f conftest CONFTEST
3669 if test -f CONFTEST ; then
3674 rm -f conftest CONFTEST
3678 echo "$as_me:3678: result: $cf_cv_mixedcase" >&5
3679 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3680 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3681 #define MIXEDCASE_FILENAMES 1
3685 cf_cv_mixedcase=$enable_mixedcase
3686 if test "$enable_mixedcase" = "yes" ; then
3687 cat >>confdefs.h <<\EOF
3688 #define MIXEDCASE_FILENAMES 1
3694 # do this after mixed-case option (tags/TAGS is not as important as tic).
3695 echo "$as_me:3695: checking whether ${MAKE-make} sets \${MAKE}" >&5
3696 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3697 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3698 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 cat >conftest.make <<\EOF
3703 @echo 'ac_maketemp="${MAKE}"'
3705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3706 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3707 if test -n "$ac_maketemp"; then
3708 eval ac_cv_prog_make_${ac_make}_set=yes
3710 eval ac_cv_prog_make_${ac_make}_set=no
3714 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3715 echo "$as_me:3715: result: yes" >&5
3716 echo "${ECHO_T}yes" >&6
3719 echo "$as_me:3719: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3721 SET_MAKE="MAKE=${MAKE-make}"
3724 for ac_prog in exctags ctags
3726 # Extract the first word of "$ac_prog", so it can be a program name with args.
3727 set dummy $ac_prog; ac_word=$2
3728 echo "$as_me:3728: checking for $ac_word" >&5
3729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3730 if test "${ac_cv_prog_CTAGS+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 if test -n "$CTAGS"; then
3734 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3736 ac_save_IFS=$IFS; IFS=$ac_path_separator
3738 for ac_dir in $ac_dummy; do
3740 test -z "$ac_dir" && ac_dir=.
3741 $as_executable_p "$ac_dir/$ac_word" || continue
3742 ac_cv_prog_CTAGS="$ac_prog"
3743 echo "$as_me:3743: found $ac_dir/$ac_word" >&5
3749 CTAGS=$ac_cv_prog_CTAGS
3750 if test -n "$CTAGS"; then
3751 echo "$as_me:3751: result: $CTAGS" >&5
3752 echo "${ECHO_T}$CTAGS" >&6
3754 echo "$as_me:3754: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3758 test -n "$CTAGS" && break
3761 for ac_prog in exetags etags
3763 # Extract the first word of "$ac_prog", so it can be a program name with args.
3764 set dummy $ac_prog; ac_word=$2
3765 echo "$as_me:3765: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_prog_ETAGS+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 if test -n "$ETAGS"; then
3771 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3773 ac_save_IFS=$IFS; IFS=$ac_path_separator
3775 for ac_dir in $ac_dummy; do
3777 test -z "$ac_dir" && ac_dir=.
3778 $as_executable_p "$ac_dir/$ac_word" || continue
3779 ac_cv_prog_ETAGS="$ac_prog"
3780 echo "$as_me:3780: found $ac_dir/$ac_word" >&5
3786 ETAGS=$ac_cv_prog_ETAGS
3787 if test -n "$ETAGS"; then
3788 echo "$as_me:3788: result: $ETAGS" >&5
3789 echo "${ECHO_T}$ETAGS" >&6
3791 echo "$as_me:3791: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3795 test -n "$ETAGS" && break
3798 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3799 set dummy ${CTAGS:-ctags}; ac_word=$2
3800 echo "$as_me:3800: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 if test -n "$MAKE_LOWER_TAGS"; then
3806 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3808 ac_save_IFS=$IFS; IFS=$ac_path_separator
3810 for ac_dir in $ac_dummy; do
3812 test -z "$ac_dir" && ac_dir=.
3813 $as_executable_p "$ac_dir/$ac_word" || continue
3814 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3815 echo "$as_me:3815: found $ac_dir/$ac_word" >&5
3819 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3822 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3823 if test -n "$MAKE_LOWER_TAGS"; then
3824 echo "$as_me:3824: result: $MAKE_LOWER_TAGS" >&5
3825 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3827 echo "$as_me:3827: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3831 if test "$cf_cv_mixedcase" = yes ; then
3832 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3833 set dummy ${ETAGS:-etags}; ac_word=$2
3834 echo "$as_me:3834: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if test -n "$MAKE_UPPER_TAGS"; then
3840 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3842 ac_save_IFS=$IFS; IFS=$ac_path_separator
3844 for ac_dir in $ac_dummy; do
3846 test -z "$ac_dir" && ac_dir=.
3847 $as_executable_p "$ac_dir/$ac_word" || continue
3848 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3849 echo "$as_me:3849: found $ac_dir/$ac_word" >&5
3853 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3856 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3857 if test -n "$MAKE_UPPER_TAGS"; then
3858 echo "$as_me:3858: result: $MAKE_UPPER_TAGS" >&5
3859 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3861 echo "$as_me:3861: result: no" >&5
3862 echo "${ECHO_T}no" >&6
3869 if test "$MAKE_UPPER_TAGS" = yes ; then
3875 if test "$MAKE_LOWER_TAGS" = yes ; then
3881 echo "$as_me:3881: checking for makeflags variable" >&5
3882 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3883 if test "${cf_cv_makeflags+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3890 cat >cf_makeflags.tmp <<CF_EOF
3893 @ echo '.$cf_option'
3895 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3896 case "$cf_result" in
3898 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3899 case "$cf_result" in
3900 .*CC=*) cf_cv_makeflags=
3902 *) cf_cv_makeflags=$cf_option
3908 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3912 rm -f cf_makeflags.tmp
3915 echo "$as_me:3915: result: $cf_cv_makeflags" >&5
3916 echo "${ECHO_T}$cf_cv_makeflags" >&6
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3921 echo "$as_me:3921: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_RANLIB+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3929 ac_save_IFS=$IFS; IFS=$ac_path_separator
3931 for ac_dir in $ac_dummy; do
3933 test -z "$ac_dir" && ac_dir=.
3934 $as_executable_p "$ac_dir/$ac_word" || continue
3935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3936 echo "$as_me:3936: found $ac_dir/$ac_word" >&5
3942 RANLIB=$ac_cv_prog_RANLIB
3943 if test -n "$RANLIB"; then
3944 echo "$as_me:3944: result: $RANLIB" >&5
3945 echo "${ECHO_T}$RANLIB" >&6
3947 echo "$as_me:3947: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3952 if test -z "$ac_cv_prog_RANLIB"; then
3953 ac_ct_RANLIB=$RANLIB
3954 # Extract the first word of "ranlib", so it can be a program name with args.
3955 set dummy ranlib; ac_word=$2
3956 echo "$as_me:3956: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test -n "$ac_ct_RANLIB"; then
3962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3964 ac_save_IFS=$IFS; IFS=$ac_path_separator
3966 for ac_dir in $ac_dummy; do
3968 test -z "$ac_dir" && ac_dir=.
3969 $as_executable_p "$ac_dir/$ac_word" || continue
3970 ac_cv_prog_ac_ct_RANLIB="ranlib"
3971 echo "$as_me:3971: found $ac_dir/$ac_word" >&5
3975 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3979 if test -n "$ac_ct_RANLIB"; then
3980 echo "$as_me:3980: result: $ac_ct_RANLIB" >&5
3981 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3983 echo "$as_me:3983: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3987 RANLIB=$ac_ct_RANLIB
3989 RANLIB="$ac_cv_prog_RANLIB"
3992 if test -n "$ac_tool_prefix"; then
3993 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}ld; ac_word=$2
3995 echo "$as_me:3995: checking for $ac_word" >&5
3996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997 if test "${ac_cv_prog_LD+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 if test -n "$LD"; then
4001 ac_cv_prog_LD="$LD" # Let the user override the test.
4003 ac_save_IFS=$IFS; IFS=$ac_path_separator
4005 for ac_dir in $ac_dummy; do
4007 test -z "$ac_dir" && ac_dir=.
4008 $as_executable_p "$ac_dir/$ac_word" || continue
4009 ac_cv_prog_LD="${ac_tool_prefix}ld"
4010 echo "$as_me:4010: found $ac_dir/$ac_word" >&5
4017 if test -n "$LD"; then
4018 echo "$as_me:4018: result: $LD" >&5
4019 echo "${ECHO_T}$LD" >&6
4021 echo "$as_me:4021: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4026 if test -z "$ac_cv_prog_LD"; then
4028 # Extract the first word of "ld", so it can be a program name with args.
4029 set dummy ld; ac_word=$2
4030 echo "$as_me:4030: checking for $ac_word" >&5
4031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 if test -n "$ac_ct_LD"; then
4036 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4038 ac_save_IFS=$IFS; IFS=$ac_path_separator
4040 for ac_dir in $ac_dummy; do
4042 test -z "$ac_dir" && ac_dir=.
4043 $as_executable_p "$ac_dir/$ac_word" || continue
4044 ac_cv_prog_ac_ct_LD="ld"
4045 echo "$as_me:4045: found $ac_dir/$ac_word" >&5
4049 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4052 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4053 if test -n "$ac_ct_LD"; then
4054 echo "$as_me:4054: result: $ac_ct_LD" >&5
4055 echo "${ECHO_T}$ac_ct_LD" >&6
4057 echo "$as_me:4057: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4066 if test -n "$ac_tool_prefix"; then
4067 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4068 set dummy ${ac_tool_prefix}ar; ac_word=$2
4069 echo "$as_me:4069: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_prog_AR+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 if test -n "$AR"; then
4075 ac_cv_prog_AR="$AR" # Let the user override the test.
4077 ac_save_IFS=$IFS; IFS=$ac_path_separator
4079 for ac_dir in $ac_dummy; do
4081 test -z "$ac_dir" && ac_dir=.
4082 $as_executable_p "$ac_dir/$ac_word" || continue
4083 ac_cv_prog_AR="${ac_tool_prefix}ar"
4084 echo "$as_me:4084: found $ac_dir/$ac_word" >&5
4091 if test -n "$AR"; then
4092 echo "$as_me:4092: result: $AR" >&5
4093 echo "${ECHO_T}$AR" >&6
4095 echo "$as_me:4095: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4100 if test -z "$ac_cv_prog_AR"; then
4102 # Extract the first word of "ar", so it can be a program name with args.
4103 set dummy ar; ac_word=$2
4104 echo "$as_me:4104: checking for $ac_word" >&5
4105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4106 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 if test -n "$ac_ct_AR"; then
4110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4112 ac_save_IFS=$IFS; IFS=$ac_path_separator
4114 for ac_dir in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir=.
4117 $as_executable_p "$ac_dir/$ac_word" || continue
4118 ac_cv_prog_ac_ct_AR="ar"
4119 echo "$as_me:4119: found $ac_dir/$ac_word" >&5
4123 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4127 if test -n "$ac_ct_AR"; then
4128 echo "$as_me:4128: result: $ac_ct_AR" >&5
4129 echo "${ECHO_T}$ac_ct_AR" >&6
4131 echo "$as_me:4131: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}ar; ac_word=$2
4143 echo "$as_me:4143: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_AR+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 if test -n "$AR"; then
4149 ac_cv_prog_AR="$AR" # Let the user override the test.
4151 ac_save_IFS=$IFS; IFS=$ac_path_separator
4153 for ac_dir in $ac_dummy; do
4155 test -z "$ac_dir" && ac_dir=.
4156 $as_executable_p "$ac_dir/$ac_word" || continue
4157 ac_cv_prog_AR="${ac_tool_prefix}ar"
4158 echo "$as_me:4158: found $ac_dir/$ac_word" >&5
4165 if test -n "$AR"; then
4166 echo "$as_me:4166: result: $AR" >&5
4167 echo "${ECHO_T}$AR" >&6
4169 echo "$as_me:4169: result: no" >&5
4170 echo "${ECHO_T}no" >&6
4174 if test -z "$ac_cv_prog_AR"; then
4176 # Extract the first word of "ar", so it can be a program name with args.
4177 set dummy ar; ac_word=$2
4178 echo "$as_me:4178: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$ac_ct_AR"; then
4184 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4186 ac_save_IFS=$IFS; IFS=$ac_path_separator
4188 for ac_dir in $ac_dummy; do
4190 test -z "$ac_dir" && ac_dir=.
4191 $as_executable_p "$ac_dir/$ac_word" || continue
4192 ac_cv_prog_ac_ct_AR="ar"
4193 echo "$as_me:4193: found $ac_dir/$ac_word" >&5
4197 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4200 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4201 if test -n "$ac_ct_AR"; then
4202 echo "$as_me:4202: result: $ac_ct_AR" >&5
4203 echo "${ECHO_T}$ac_ct_AR" >&6
4205 echo "$as_me:4205: result: no" >&5
4206 echo "${ECHO_T}no" >&6
4214 echo "$as_me:4214: checking for options to update archives" >&5
4215 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4216 if test "${cf_cv_ar_flags+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 cf_cv_ar_flags=unknown
4221 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4224 # check if $ARFLAGS already contains this choice
4225 if test "x$ARFLAGS" != "x" ; then
4226 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4227 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4233 rm -f conftest.$ac_cv_objext
4236 cat >conftest.$ac_ext <<EOF
4237 #line 4237 "configure"
4238 int testdata[3] = { 123, 456, 789 };
4240 if { (eval echo "$as_me:4240: \"$ac_compile\"") >&5
4241 (eval $ac_compile) 2>&5
4243 echo "$as_me:4243: \$? = $ac_status" >&5
4244 (exit $ac_status); } ; then
4245 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4246 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4247 if test -f conftest.a ; then
4248 cf_cv_ar_flags=$cf_ar_flags
4252 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4254 echo "${as_me:-configure}:4254: testing cannot compile test-program ..." 1>&5
4259 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4262 echo "$as_me:4262: result: $cf_cv_ar_flags" >&5
4263 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4265 if test -n "$ARFLAGS" ; then
4266 if test -n "$cf_cv_ar_flags" ; then
4267 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4270 ARFLAGS=$cf_cv_ar_flags
4273 echo "$as_me:4273: checking if you have specified an install-prefix" >&5
4274 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4276 # Check whether --with-install-prefix or --without-install-prefix was given.
4277 if test "${with_install_prefix+set}" = set; then
4278 withval="$with_install_prefix"
4279 case "$withval" in #(vi
4282 *) DESTDIR="$withval"
4286 echo "$as_me:4286: result: $DESTDIR" >&5
4287 echo "${ECHO_T}$DESTDIR" >&6
4289 ###############################################################################
4291 # If we're cross-compiling, allow the user to override the tools and their
4292 # options. The configure script is oriented toward identifying the host
4293 # compiler, etc., but we need a build compiler to generate parts of the source.
4295 if test "$cross_compiling" = yes ; then
4297 # defaults that we might want to override
4298 : ${BUILD_CFLAGS:=''}
4299 : ${BUILD_CPPFLAGS:=''}
4300 : ${BUILD_LDFLAGS:=''}
4302 : ${BUILD_EXEEXT:='$x'}
4303 : ${BUILD_OBJEXT:='o'}
4305 # Check whether --with-build-cc or --without-build-cc was given.
4306 if test "${with_build_cc+set}" = set; then
4307 withval="$with_build_cc"
4310 for ac_prog in gcc cc cl
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 echo "$as_me:4314: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 if test -n "$BUILD_CC"; then
4320 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4322 ac_save_IFS=$IFS; IFS=$ac_path_separator
4324 for ac_dir in $ac_dummy; do
4326 test -z "$ac_dir" && ac_dir=.
4327 $as_executable_p "$ac_dir/$ac_word" || continue
4328 ac_cv_prog_BUILD_CC="$ac_prog"
4329 echo "$as_me:4329: found $ac_dir/$ac_word" >&5
4335 BUILD_CC=$ac_cv_prog_BUILD_CC
4336 if test -n "$BUILD_CC"; then
4337 echo "$as_me:4337: result: $BUILD_CC" >&5
4338 echo "${ECHO_T}$BUILD_CC" >&6
4340 echo "$as_me:4340: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4344 test -n "$BUILD_CC" && break
4348 echo "$as_me:4348: checking for native build C compiler" >&5
4349 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4350 echo "$as_me:4350: result: $BUILD_CC" >&5
4351 echo "${ECHO_T}$BUILD_CC" >&6
4353 echo "$as_me:4353: checking for native build C preprocessor" >&5
4354 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4356 # Check whether --with-build-cpp or --without-build-cpp was given.
4357 if test "${with_build_cpp+set}" = set; then
4358 withval="$with_build_cpp"
4359 BUILD_CPP="$withval"
4361 BUILD_CPP='${BUILD_CC} -E'
4363 echo "$as_me:4363: result: $BUILD_CPP" >&5
4364 echo "${ECHO_T}$BUILD_CPP" >&6
4366 echo "$as_me:4366: checking for native build C flags" >&5
4367 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4369 # Check whether --with-build-cflags or --without-build-cflags was given.
4370 if test "${with_build_cflags+set}" = set; then
4371 withval="$with_build_cflags"
4372 BUILD_CFLAGS="$withval"
4374 echo "$as_me:4374: result: $BUILD_CFLAGS" >&5
4375 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4377 echo "$as_me:4377: checking for native build C preprocessor-flags" >&5
4378 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4380 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4381 if test "${with_build_cppflags+set}" = set; then
4382 withval="$with_build_cppflags"
4383 BUILD_CPPFLAGS="$withval"
4385 echo "$as_me:4385: result: $BUILD_CPPFLAGS" >&5
4386 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4388 echo "$as_me:4388: checking for native build linker-flags" >&5
4389 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4391 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4392 if test "${with_build_ldflags+set}" = set; then
4393 withval="$with_build_ldflags"
4394 BUILD_LDFLAGS="$withval"
4396 echo "$as_me:4396: result: $BUILD_LDFLAGS" >&5
4397 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4399 echo "$as_me:4399: checking for native build linker-libraries" >&5
4400 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4402 # Check whether --with-build-libs or --without-build-libs was given.
4403 if test "${with_build_libs+set}" = set; then
4404 withval="$with_build_libs"
4405 BUILD_LIBS="$withval"
4407 echo "$as_me:4407: result: $BUILD_LIBS" >&5
4408 echo "${ECHO_T}$BUILD_LIBS" >&6
4410 # this assumes we're on Unix.
4414 : ${BUILD_CC:='${CC}'}
4416 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4417 { { echo "$as_me:4417: error: Cross-build requires two compilers.
4418 Use --with-build-cc to specify the native compiler." >&5
4419 echo "$as_me: error: Cross-build requires two compilers.
4420 Use --with-build-cc to specify the native compiler." >&2;}
4421 { (exit 1); exit 1; }; }
4425 : ${BUILD_CC:='${CC}'}
4426 : ${BUILD_CPP:='${CPP}'}
4427 : ${BUILD_CFLAGS:='${CFLAGS}'}
4428 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4429 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4430 : ${BUILD_LIBS:='${LIBS}'}
4431 : ${BUILD_EXEEXT:='$x'}
4432 : ${BUILD_OBJEXT:='o'}
4435 ###############################################################################
4437 ### Options to allow the user to specify the set of libraries which are used.
4438 ### Use "--without-normal --with-shared" to allow the default model to be
4439 ### shared, for example.
4442 echo "$as_me:4442: checking if libtool -version-number should be used" >&5
4443 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4445 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4446 if test "${enable_libtool_version+set}" = set; then
4447 enableval="$enable_libtool_version"
4448 test "$enableval" != no && enableval=yes
4449 if test "$enableval" != "yes" ; then
4450 cf_libtool_version=no
4452 cf_libtool_version=yes
4456 cf_libtool_version=yes
4459 echo "$as_me:4459: result: $cf_libtool_version" >&5
4460 echo "${ECHO_T}$cf_libtool_version" >&6
4462 if test "$cf_libtool_version" = yes ; then
4463 LIBTOOL_VERSION="-version-number"
4465 LIBTOOL_VERSION="-version-info"
4470 # common library maintenance symbols that are convenient for libtool scripts:
4471 LIB_CREATE='${AR} -cr'
4472 LIB_OBJECT='${OBJECTS}'
4476 # symbols used to prop libtool up to enable it to determine what it should be
4484 echo "$as_me:4484: checking if you want to build libraries with libtool" >&5
4485 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4487 # Check whether --with-libtool or --without-libtool was given.
4488 if test "${with_libtool+set}" = set; then
4489 withval="$with_libtool"
4490 with_libtool=$withval
4494 echo "$as_me:4494: result: $with_libtool" >&5
4495 echo "${ECHO_T}$with_libtool" >&6
4496 if test "$with_libtool" != "no"; then
4498 if test "$with_libtool" != "yes" ; then
4500 if test "x$prefix" != xNONE; then
4501 cf_path_syntax="$prefix"
4503 cf_path_syntax="$ac_default_prefix"
4506 case ".$with_libtool" in #(vi
4507 .\$\(*\)*|.\'*\'*) #(vi
4511 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4513 .\${*prefix}*|.\${*dir}*) #(vi
4514 eval with_libtool="$with_libtool"
4515 case ".$with_libtool" in #(vi
4517 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4522 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4525 { { echo "$as_me:4525: error: expected a pathname, not \"$with_libtool\"" >&5
4526 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4527 { (exit 1); exit 1; }; }
4531 LIBTOOL=$with_libtool
4533 # Extract the first word of "libtool", so it can be a program name with args.
4534 set dummy libtool; ac_word=$2
4535 echo "$as_me:4535: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4545 ac_save_IFS=$IFS; IFS=$ac_path_separator
4547 for ac_dir in $ac_dummy; do
4549 test -z "$ac_dir" && ac_dir=.
4550 if $as_executable_p "$ac_dir/$ac_word"; then
4551 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4552 echo "$as_me:4552: found $ac_dir/$ac_word" >&5
4560 LIBTOOL=$ac_cv_path_LIBTOOL
4562 if test -n "$LIBTOOL"; then
4563 echo "$as_me:4563: result: $LIBTOOL" >&5
4564 echo "${ECHO_T}$LIBTOOL" >&6
4566 echo "$as_me:4566: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4571 if test -z "$LIBTOOL" ; then
4572 { { echo "$as_me:4572: error: Cannot find libtool" >&5
4573 echo "$as_me: error: Cannot find libtool" >&2;}
4574 { (exit 1); exit 1; }; }
4576 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4577 LIB_OBJECT='${OBJECTS:.o=.lo}'
4579 LIB_CLEAN='${LIBTOOL} --mode=clean'
4580 LIB_COMPILE='${LIBTOOL} --mode=compile'
4581 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4582 LIB_INSTALL='${LIBTOOL} --mode=install'
4583 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4586 # Show the version of libtool
4587 echo "$as_me:4587: checking version of libtool" >&5
4588 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4590 # Save the version in a cache variable - this is not entirely a good
4591 # thing, but the version string from libtool is very ugly, and for
4592 # bug reports it might be useful to have the original string. "("
4593 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.].*//'`
4594 echo "$as_me:4594: result: $cf_cv_libtool_version" >&5
4595 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4596 if test -z "$cf_cv_libtool_version" ; then
4597 { { echo "$as_me:4597: error: This is not GNU libtool" >&5
4598 echo "$as_me: error: This is not GNU libtool" >&2;}
4599 { (exit 1); exit 1; }; }
4602 # special hack to add -no-undefined (which libtool should do for itself)
4604 case "$cf_cv_system_name" in #(vi
4605 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4606 LT_UNDEF=-no-undefined
4610 # special hack to add --tag option for C++ compiler
4611 case $cf_cv_libtool_version in #(vi
4612 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4613 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4614 LIBTOOL="$LIBTOOL --tag=CC"
4617 LIBTOOL_CXX="$LIBTOOL"
4625 test -z "$LIBTOOL" && ECHO_LT=
4627 if test "$with_libtool" != "no" ; then
4629 cf_list_models="$cf_list_models libtool"
4633 echo "$as_me:4633: checking if you want to build shared libraries" >&5
4634 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4636 # Check whether --with-shared or --without-shared was given.
4637 if test "${with_shared+set}" = set; then
4638 withval="$with_shared"
4639 with_shared=$withval
4643 echo "$as_me:4643: result: $with_shared" >&5
4644 echo "${ECHO_T}$with_shared" >&6
4645 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4647 echo "$as_me:4647: checking if you want to build static libraries" >&5
4648 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4650 # Check whether --with-normal or --without-normal was given.
4651 if test "${with_normal+set}" = set; then
4652 withval="$with_normal"
4653 with_normal=$withval
4657 echo "$as_me:4657: result: $with_normal" >&5
4658 echo "${ECHO_T}$with_normal" >&6
4659 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4661 echo "$as_me:4661: checking if you want to build debug libraries" >&5
4662 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4664 # Check whether --with-debug or --without-debug was given.
4665 if test "${with_debug+set}" = set; then
4666 withval="$with_debug"
4671 echo "$as_me:4671: result: $with_debug" >&5
4672 echo "${ECHO_T}$with_debug" >&6
4673 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4675 echo "$as_me:4675: checking if you want to build profiling libraries" >&5
4676 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4678 # Check whether --with-profile or --without-profile was given.
4679 if test "${with_profile+set}" = set; then
4680 withval="$with_profile"
4681 with_profile=$withval
4685 echo "$as_me:4685: result: $with_profile" >&5
4686 echo "${ECHO_T}$with_profile" >&6
4687 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4691 ###############################################################################
4693 echo "$as_me:4693: checking for specified models" >&5
4694 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4695 test -z "$cf_list_models" && cf_list_models=normal
4696 test "$with_libtool" != "no" && cf_list_models=libtool
4697 echo "$as_me:4697: result: $cf_list_models" >&5
4698 echo "${ECHO_T}$cf_list_models" >&6
4700 ### Use the first model as the default, and save its suffix for use in building
4701 ### up test-applications.
4702 echo "$as_me:4702: checking for default model" >&5
4703 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4704 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4705 echo "$as_me:4705: result: $DFT_LWR_MODEL" >&5
4706 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4708 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4719 echo "$as_me:4719: checking if you want to have a library-prefix" >&5
4720 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4722 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4723 if test "${with_lib_prefix+set}" = set; then
4724 withval="$with_lib_prefix"
4725 with_lib_prefix=$withval
4727 with_lib_prefix=auto
4729 echo "$as_me:4729: result: $with_lib_prefix" >&5
4730 echo "${ECHO_T}$with_lib_prefix" >&6
4732 if test $with_lib_prefix = auto
4735 case $cf_cv_system_name in #(vi
4742 cf_prefix=$LIB_PREFIX
4744 elif test $with_lib_prefix = no
4748 LIB_PREFIX=$with_lib_prefix
4753 ###############################################################################
4755 echo "$as_me:4755: checking if you want to build a separate terminfo library" >&5
4756 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4758 # Check whether --with-termlib or --without-termlib was given.
4759 if test "${with_termlib+set}" = set; then
4760 withval="$with_termlib"
4761 with_termlib=$withval
4765 echo "$as_me:4765: result: $with_termlib" >&5
4766 echo "${ECHO_T}$with_termlib" >&6
4768 echo "$as_me:4768: checking if you want to build a separate tic library" >&5
4769 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4771 # Check whether --with-ticlib or --without-ticlib was given.
4772 if test "${with_ticlib+set}" = set; then
4773 withval="$with_ticlib"
4774 with_ticlib=$withval
4778 echo "$as_me:4778: result: $with_ticlib" >&5
4779 echo "${ECHO_T}$with_ticlib" >&6
4781 ### Checks for special libraries, must be done up-front.
4784 echo "$as_me:4784: checking if you want to link with the GPM mouse library" >&5
4785 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4787 # Check whether --with-gpm or --without-gpm was given.
4788 if test "${with_gpm+set}" = set; then
4794 echo "$as_me:4794: result: $with_gpm" >&5
4795 echo "${ECHO_T}$with_gpm" >&6
4797 if test "$with_gpm" != no ; then
4798 echo "$as_me:4798: checking for gpm.h" >&5
4799 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4800 if test "${ac_cv_header_gpm_h+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line 4804 "configure"
4805 #include "confdefs.h"
4808 if { (eval echo "$as_me:4808: \"$ac_cpp conftest.$ac_ext\"") >&5
4809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811 egrep -v '^ *\+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:4814: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null; then
4816 if test -s conftest.err; then
4817 ac_cpp_err=$ac_c_preproc_warn_flag
4824 if test -z "$ac_cpp_err"; then
4825 ac_cv_header_gpm_h=yes
4827 echo "$as_me: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4829 ac_cv_header_gpm_h=no
4831 rm -f conftest.err conftest.$ac_ext
4833 echo "$as_me:4833: result: $ac_cv_header_gpm_h" >&5
4834 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4835 if test $ac_cv_header_gpm_h = yes; then
4837 cat >>confdefs.h <<\EOF
4838 #define HAVE_GPM_H 1
4841 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4842 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4844 echo "${as_me:-configure}:4844: testing assuming we really have GPM library ..." 1>&5
4846 cat >>confdefs.h <<\EOF
4847 #define HAVE_LIBGPM 1