2 # From configure.in Revision: 1.351 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20030208.
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"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -disable-* | --disable-*)
198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 # Reject names that are not valid shell variable names.
200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 { (exit 1); exit 1; }; }
203 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 eval "enable_$ac_feature=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 # Reject names that are not valid shell variable names.
209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 { (exit 1); exit 1; }; }
212 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217 eval "enable_$ac_feature='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix=$ac_optarg ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he | -h)
234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 ac_init_help=recursive ;;
236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 ac_init_help=short ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host_alias ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host_alias=$ac_optarg ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir=$ac_optarg ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir=$ac_optarg ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir=$ac_optarg ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir=$ac_optarg ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir=$ac_optarg ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix=$ac_optarg ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix=$ac_optarg ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name=$ac_optarg ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir=$ac_optarg ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir=$ac_optarg ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir=$ac_optarg ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target_alias ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target_alias=$ac_optarg ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers | -V)
389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid package name: $ac_package" >&2
393 { (exit 1); exit 1; }; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "with_$ac_package='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid package name: $ac_package" >&2
406 { (exit 1); exit 1; }; }
407 ac_package=`echo $ac_package | sed 's/-/_/g'`
408 eval "with_$ac_package=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes=$ac_optarg ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries=$ac_optarg ;;
428 -*) { echo "$as_me: error: unrecognized option: $ac_option
429 Try \`$0 --help' for more information." >&2
430 { (exit 1); exit 1; }; }
434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 { (exit 1); exit 1; }; }
439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 eval "$ac_envvar='$ac_optarg'"
444 # FIXME: should be removed in autoconf 3.0.
445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454 if test -n "$ac_prev"; then
455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 { echo "$as_me: error: missing argument to $ac_option" >&2
457 { (exit 1); exit 1; }; }
460 # Be sure to have absolute paths.
461 for ac_var in exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 { (exit 1); exit 1; }; };;
471 # Be sure to have absolute paths.
472 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 localstatedir libdir includedir oldincludedir infodir mandir
475 eval ac_val=$`echo $ac_var`
477 [\\/$]* | ?:[\\/]* ) ;;
478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 { (exit 1); exit 1; }; };;
483 # There might be people who depend on the old broken behavior: `$host'
484 # used to hold the argument of --host etc.
489 # FIXME: should be removed in autoconf 3.0.
490 if test "x$host_alias" != x; then
491 if test "x$build_alias" = x; then
492 cross_compiling=maybe
493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 If a cross compiler is detected then cross compile mode will be used." >&2
495 elif test "x$build_alias" != "x$host_alias"; then
501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503 test "$silent" = yes && exec 6>/dev/null
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 { (exit 1); exit 1; }; }
524 { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 { (exit 1); exit 1; }; }
528 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 ac_env_build_alias_set=${build_alias+set}
530 ac_env_build_alias_value=$build_alias
531 ac_cv_env_build_alias_set=${build_alias+set}
532 ac_cv_env_build_alias_value=$build_alias
533 ac_env_host_alias_set=${host_alias+set}
534 ac_env_host_alias_value=$host_alias
535 ac_cv_env_host_alias_set=${host_alias+set}
536 ac_cv_env_host_alias_value=$host_alias
537 ac_env_target_alias_set=${target_alias+set}
538 ac_env_target_alias_value=$target_alias
539 ac_cv_env_target_alias_set=${target_alias+set}
540 ac_cv_env_target_alias_value=$target_alias
541 ac_env_CC_set=${CC+set}
543 ac_cv_env_CC_set=${CC+set}
544 ac_cv_env_CC_value=$CC
545 ac_env_CFLAGS_set=${CFLAGS+set}
546 ac_env_CFLAGS_value=$CFLAGS
547 ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 ac_cv_env_CFLAGS_value=$CFLAGS
549 ac_env_LDFLAGS_set=${LDFLAGS+set}
550 ac_env_LDFLAGS_value=$LDFLAGS
551 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 ac_cv_env_LDFLAGS_value=$LDFLAGS
553 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 ac_env_CPPFLAGS_value=$CPPFLAGS
555 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 ac_env_CPP_set=${CPP+set}
558 ac_env_CPP_value=$CPP
559 ac_cv_env_CPP_set=${CPP+set}
560 ac_cv_env_CPP_value=$CPP
561 ac_env_CXX_set=${CXX+set}
562 ac_env_CXX_value=$CXX
563 ac_cv_env_CXX_set=${CXX+set}
564 ac_cv_env_CXX_value=$CXX
565 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
566 ac_env_CXXFLAGS_value=$CXXFLAGS
567 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
568 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
569 ac_env_CXXCPP_set=${CXXCPP+set}
570 ac_env_CXXCPP_value=$CXXCPP
571 ac_cv_env_CXXCPP_set=${CXXCPP+set}
572 ac_cv_env_CXXCPP_value=$CXXCPP
575 # Report the --help message.
577 if test "$ac_init_help" = "long"; then
578 # Omit some internal or obsolete options to make the list less imposing.
579 # This message is too long to be a string in the A/UX 3.1 sh.
581 \`configure' configures this package to adapt to many kinds of systems.
583 Usage: $0 [OPTION]... [VAR=VALUE]...
585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
586 VAR=VALUE. See below for descriptions of some of the useful variables.
588 Defaults for the options are specified in brackets.
591 -h, --help display this help and exit
592 --help=short display options specific to this package
593 --help=recursive display the short help of all the included packages
594 -V, --version display version information and exit
595 -q, --quiet, --silent do not print \`checking...' messages
596 --cache-file=FILE cache test results in FILE [disabled]
597 -C, --config-cache alias for \`--cache-file=config.cache'
598 -n, --no-create do not create output files
599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
604 Installation directories:
605 --prefix=PREFIX install architecture-independent files in PREFIX
607 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
610 By default, \`make install' will install all the files in
611 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
612 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
613 for instance \`--prefix=\$HOME'.
615 For better control, use the options below.
617 Fine tuning of the installation directories:
618 --bindir=DIR user executables [EPREFIX/bin]
619 --sbindir=DIR system admin executables [EPREFIX/sbin]
620 --libexecdir=DIR program executables [EPREFIX/libexec]
621 --datadir=DIR read-only architecture-independent data [PREFIX/share]
622 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
623 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
624 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
625 --libdir=DIR object code libraries [EPREFIX/lib]
626 --includedir=DIR C header files [PREFIX/include]
627 --oldincludedir=DIR C header files for non-gcc [/usr/include]
628 --infodir=DIR info documentation [PREFIX/info]
629 --mandir=DIR man documentation [PREFIX/man]
635 --program-prefix=PREFIX prepend PREFIX to installed program names
636 --program-suffix=SUFFIX append SUFFIX to installed program names
637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
642 --target=TARGET configure for building compilers for TARGET [HOST]
646 if test -n "$ac_init_help"; then
651 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
652 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
655 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
656 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-rel-version=XXX override derived release version
659 --with-abi-version=XXX override derived ABI version
660 --with-system-type=XXX test: override derived host system-type
661 --without-cxx do not adjust ncurses bool to match C++
662 --without-cxx-binding do not build C++ binding and demo
663 --without-ada suppress check for Ada95, don't build demo
664 --without-progs suppress build with programs (e.g., tic)
665 --without-curses-h install curses.h as ncurses.h only
666 --with-install-prefix prefixes actual install-location ($DESTDIR)
667 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
668 --with-build-cc=XXX the build C compiler ($BUILD_CC)
669 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
670 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
671 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
672 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
673 --with-build-libs=XXX the build libraries ($(BUILD_LIBS)
674 Options to Specify the Libraries Built/Used:
675 --with-libtool generate libraries with libtool
676 --with-shared generate shared-libraries
677 --with-normal generate normal-libraries (default)
678 --with-debug generate debug-libraries (default)
679 --with-profile generate profile-libraries
680 --with-termlib generate separate terminfo library
681 --with-dbmalloc use Conor Cahill's dbmalloc library
682 --with-dmalloc use Gray Watson's dmalloc library
683 --with-gpm use Alessandro Rubini's GPM library
684 --with-sysmouse use sysmouse (FreeBSD console)
685 --enable-rpath use rpath option when generating shared libraries
686 --with-shlib-version=X Specify rel or abi version for shared libs
687 Fine-Tuning Your Configuration:
688 --disable-overwrite leave out the link to -lcurses
689 --disable-database do not use terminfo, only fallbacks/termcap
690 --with-database=XXX specify terminfo source to install
691 --with-fallbacks=XXX specify list of fallback terminal descriptions
692 --without-xterm-new specify if xterm terminfo should be old version
693 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
694 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
695 --disable-big-core assume machine has little memory
696 --enable-termcap compile in termcap fallback support
697 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
698 --enable-getcap fast termcap load, no xrefs to terminfo
699 --enable-getcap-cache cache translated termcaps in ~/.terminfo
700 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
701 --disable-root-environ limit environment when running as root
702 --enable-symlinks make tic use symbolic links not hard links
703 --enable-broken_linker compile with broken-linker support code
704 --enable-widec compile with wide-char/UTF-8 code
705 --disable-lp64 allow chtype to be long (ignore _LP64)
706 --disable-largefile omit support for large files
707 --with-bool=TYPE override fallback type of bool variable
708 --with-caps=alt compile with alternate Caps file
709 --with-chtype=TYPE override type of chtype
710 --with-ospeed=TYPE override type of ospeed variable
711 --with-mmask-t=TYPE override type of mmask_t
712 --enable-bsdpad recognize BSD-style prefix padding
713 --with-rcs-ids compile-in RCS identifiers
714 Options to Specify How Manpages are Installed:
715 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
716 optionally formatted/catonly, e.g., gzip,formatted
717 --with-manpage-renames specify manpage-renaming
718 --with-manpage-aliases specify manpage-aliases using .so
719 --with-manpage-symlinks specify manpage-aliases using symlinks
720 --with-manpage-tbl specify manpage processing with tbl
722 --disable-ext-funcs disable function-extensions
723 --enable-const compile with extra/non-standard const
724 --enable-no-padding compile with $NCURSES_NO_PADDING code
725 --enable-sigwinch compile with SIGWINCH handler
726 --enable-tcap-names compile with user-definable terminal capabilities
728 --with-develop enable all development options
729 --enable-hard-tabs compile with hard-tabs code
730 --enable-xmc-glitch compile with limited support for xmc
732 --disable-assumed-color do not assume anything about default-colors
733 --disable-hashmap compile without hashmap scrolling-optimization
734 --enable-colorfgbg compile with $COLORFGBG code
735 --enable-ext-colors compile for experimental 256-color support
736 --enable-ext-mouse compile for experimental mouse-encoding
737 --enable-safe-sprintf compile with experimental safe-sprintf code
738 --disable-scroll-hints compile without scroll-hints code
739 Testing/development Options:
740 --enable-echo build: display "compiling" commands (default)
741 --enable-warnings build: turn on GCC compiler warnings
742 --enable-assertions test: turn on generation of assertion code
743 --disable-leaks test: suppress permanent memory-leaks
744 --enable-expanded test: generate functions for certain macros
745 --disable-macros test: use functions rather than macros
746 --with-trace test: add trace() function to all models of ncurses
747 Ada95 Binding Options:
748 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
749 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
750 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
752 Some influential environment variables:
753 CC C compiler command
754 CFLAGS C compiler flags
755 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
756 nonstandard directory <lib dir>
757 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
758 headers in a nonstandard directory <include dir>
760 CXX C++ compiler command
761 CXXFLAGS C++ compiler flags
762 CXXCPP C++ preprocessor
764 Use these variables to override the choices made by `configure' or to help
765 it to find libraries and programs with nonstandard names/locations.
770 if test "$ac_init_help" = "recursive"; then
771 # If there are subdirs, report their specific --help.
773 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
775 # A "../" for each directory in /$ac_subdir.
776 ac_dots=`echo $ac_subdir |
777 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
780 .) # No --srcdir option. We are building in place.
781 ac_sub_srcdir=$srcdir ;;
782 [\\/]* | ?:[\\/]* ) # Absolute path.
783 ac_sub_srcdir=$srcdir/$ac_subdir ;;
785 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
788 # Check for guested configure; otherwise get Cygnus style configure.
789 if test -f $ac_sub_srcdir/configure.gnu; then
791 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
792 elif test -f $ac_sub_srcdir/configure; then
794 $SHELL $ac_sub_srcdir/configure --help=recursive
795 elif test -f $ac_sub_srcdir/configure.ac ||
796 test -f $ac_sub_srcdir/configure.in; then
800 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
806 test -n "$ac_init_help" && exit 0
807 if $ac_init_version; then
810 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
811 Free Software Foundation, Inc.
812 This configure script is free software; the Free Software Foundation
813 gives unlimited permission to copy, distribute and modify it.
819 This file contains any messages produced by compilers while
820 running configure, to aid debugging if configure makes a mistake.
822 It was created by $as_me, which was
823 generated by GNU Autoconf 2.52.20030208. Invocation command line was
834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
846 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
863 # Keep a trace of the command line.
864 # Strip out --no-create and --no-recursion so they do not pile up.
865 # Also quote any args containing shell meta-characters.
871 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
872 | --no-cr | --no-c) ;;
873 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
874 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
875 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
876 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
877 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
879 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
882 # Get rid of the leading space.
885 # When interrupted or exit'd, cleanup temporary files, and complete
886 # config.log. We remove comments because anyway the quotes in there
887 # would cause problems or look ugly.
889 # Save into config.log some information that might help in debugging.
891 echo "## ----------------- ##" >&5
892 echo "## Cache variables. ##" >&5
893 echo "## ----------------- ##" >&5
895 # The following way of writing the cache mishandles newlines in values,
898 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
901 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
906 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
910 sed "/^$/d" confdefs.h >conftest.log
911 if test -s conftest.log; then
913 echo "## ------------ ##" >&5
914 echo "## confdefs.h. ##" >&5
915 echo "## ------------ ##" >&5
920 test "$ac_signal" != 0 &&
921 echo "$as_me: caught signal $ac_signal" >&5
922 echo "$as_me: exit $exit_status" >&5
923 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
926 for ac_signal in 1 2 13 15; do
927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
932 rm -rf conftest* confdefs.h
933 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
936 # Let the site file select an alternate cache file if it wants to.
937 # Prefer explicitly selected file to automatically selected ones.
938 if test -z "$CONFIG_SITE"; then
939 if test "x$prefix" != xNONE; then
940 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
942 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
945 for ac_site_file in $CONFIG_SITE; do
946 if test -r "$ac_site_file"; then
947 { echo "$as_me:947: loading site script $ac_site_file" >&5
948 echo "$as_me: loading site script $ac_site_file" >&6;}
949 cat "$ac_site_file" >&5
954 if test -r "$cache_file"; then
955 # Some versions of bash will fail to source /dev/null (special
956 # files actually), so we avoid doing that.
957 if test -f "$cache_file"; then
958 { echo "$as_me:958: loading cache $cache_file" >&5
959 echo "$as_me: loading cache $cache_file" >&6;}
961 [\\/]* | ?:[\\/]* ) . $cache_file;;
966 { echo "$as_me:966: creating cache $cache_file" >&5
967 echo "$as_me: creating cache $cache_file" >&6;}
971 # Check that the precious variables saved in the cache have kept the same
973 ac_cache_corrupted=false
974 for ac_var in `(set) 2>&1 |
975 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
977 eval ac_new_set=\$ac_env_${ac_var}_set
978 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
979 eval ac_new_val="\$ac_env_${ac_var}_value"
980 case $ac_old_set,$ac_new_set in
982 { echo "$as_me:982: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
983 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
984 ac_cache_corrupted=: ;;
986 { echo "$as_me:986: error: \`$ac_var' was not set in the previous run" >&5
987 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
988 ac_cache_corrupted=: ;;
991 if test "x$ac_old_val" != "x$ac_new_val"; then
992 { echo "$as_me:992: error: \`$ac_var' has changed since the previous run:" >&5
993 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
994 { echo "$as_me:994: former value: $ac_old_val" >&5
995 echo "$as_me: former value: $ac_old_val" >&2;}
996 { echo "$as_me:996: current value: $ac_new_val" >&5
997 echo "$as_me: current value: $ac_new_val" >&2;}
1001 # Pass precious variables to config.status. It doesn't matter if
1002 # we pass some twice (in addition to the command line arguments).
1003 if test "$ac_new_set" = set; then
1005 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1006 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1007 ac_configure_args="$ac_configure_args '$ac_arg'"
1009 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1014 if $ac_cache_corrupted; then
1015 { echo "$as_me:1015: error: changes in the environment can compromise the build" >&5
1016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1017 { { echo "$as_me:1017: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1019 { (exit 1); exit 1; }; }
1023 ac_cpp='$CPP $CPPFLAGS'
1024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1029 *c*,-n*) ECHO_N= ECHO_C='
1031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1034 echo "#! $SHELL" >conftest.sh
1035 echo "exit 0" >>conftest.sh
1036 chmod +x conftest.sh
1037 if { (echo "$as_me:1037: PATH=\".;.\"; conftest.sh") >&5
1038 (PATH=".;."; conftest.sh) 2>&5
1040 echo "$as_me:1040: \$? = $ac_status" >&5
1041 (exit $ac_status); }; then
1042 ac_path_separator=';'
1046 PATH_SEPARATOR="$ac_path_separator"
1049 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1051 NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1052 NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1053 NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1054 cf_cv_abi_version=${NCURSES_MAJOR}
1055 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1056 cf_cv_timestamp=`date`
1057 echo "$as_me:1057: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1058 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1060 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1062 # Check whether --with-rel-version or --without-rel-version was given.
1063 if test "${with_rel_version+set}" = set; then
1064 withval="$with_rel_version"
1065 { echo "$as_me:1065: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1066 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1067 cf_cv_rel_version=$withval
1070 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1071 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1073 if test -n "$NCURSES_MAJOR" ; then
1074 case $NCURSES_MAJOR in #(vi
1078 { { echo "$as_me:1078: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1079 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1080 { (exit 1); exit 1; }; }
1084 { { echo "$as_me:1084: error: Release major-version value is empty" >&5
1085 echo "$as_me: error: Release major-version value is empty" >&2;}
1086 { (exit 1); exit 1; }; }
1089 if test -n "$NCURSES_MINOR" ; then
1090 case $NCURSES_MINOR in #(vi
1094 { { echo "$as_me:1094: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1095 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1096 { (exit 1); exit 1; }; }
1100 { { echo "$as_me:1100: error: Release minor-version value is empty" >&5
1101 echo "$as_me: error: Release minor-version value is empty" >&2;}
1102 { (exit 1); exit 1; }; }
1105 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1107 # Check whether --with-abi-version or --without-abi-version was given.
1108 if test "${with_abi_version+set}" = set; then
1109 withval="$with_abi_version"
1110 { echo "$as_me:1110: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1111 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1112 cf_cv_abi_version=$withval
1115 if test -n "$cf_cv_abi_version" ; then
1116 case $cf_cv_abi_version in #(vi
1120 { { echo "$as_me:1120: error: ABI version is not a number: $cf_cv_abi_version" >&5
1121 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1122 { (exit 1); exit 1; }; }
1126 { { echo "$as_me:1126: error: ABI version value is empty" >&5
1127 echo "$as_me: error: ABI version value is empty" >&2;}
1128 { (exit 1); exit 1; }; }
1132 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1133 if test -f $ac_dir/install-sh; then
1135 ac_install_sh="$ac_aux_dir/install-sh -c"
1137 elif test -f $ac_dir/install.sh; then
1139 ac_install_sh="$ac_aux_dir/install.sh -c"
1141 elif test -f $ac_dir/shtool; then
1143 ac_install_sh="$ac_aux_dir/shtool install -c"
1147 if test -z "$ac_aux_dir"; then
1148 { { echo "$as_me:1148: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1149 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1150 { (exit 1); exit 1; }; }
1152 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1153 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1154 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1156 # Make sure we can run config.sub.
1157 $ac_config_sub sun4 >/dev/null 2>&1 ||
1158 { { echo "$as_me:1158: error: cannot run $ac_config_sub" >&5
1159 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1160 { (exit 1); exit 1; }; }
1162 echo "$as_me:1162: checking build system type" >&5
1163 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1164 if test "${ac_cv_build+set}" = set; then
1165 echo $ECHO_N "(cached) $ECHO_C" >&6
1167 ac_cv_build_alias=$build_alias
1168 test -z "$ac_cv_build_alias" &&
1169 ac_cv_build_alias=`$ac_config_guess`
1170 test -z "$ac_cv_build_alias" &&
1171 { { echo "$as_me:1171: error: cannot guess build type; you must specify one" >&5
1172 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1173 { (exit 1); exit 1; }; }
1174 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1175 { { echo "$as_me:1175: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1176 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1177 { (exit 1); exit 1; }; }
1180 echo "$as_me:1180: result: $ac_cv_build" >&5
1181 echo "${ECHO_T}$ac_cv_build" >&6
1183 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1184 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1185 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1187 echo "$as_me:1187: checking host system type" >&5
1188 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1189 if test "${ac_cv_host+set}" = set; then
1190 echo $ECHO_N "(cached) $ECHO_C" >&6
1192 ac_cv_host_alias=$host_alias
1193 test -z "$ac_cv_host_alias" &&
1194 ac_cv_host_alias=$ac_cv_build_alias
1195 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1196 { { echo "$as_me:1196: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1197 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1198 { (exit 1); exit 1; }; }
1201 echo "$as_me:1201: result: $ac_cv_host" >&5
1202 echo "${ECHO_T}$ac_cv_host" >&6
1204 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1205 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1206 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1208 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1209 echo "$as_me:1209: checking target system type" >&5
1210 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1211 if test "${ac_cv_target+set}" = set; then
1212 echo $ECHO_N "(cached) $ECHO_C" >&6
1214 ac_cv_target_alias=$target_alias
1215 test "x$ac_cv_target_alias" = "x" &&
1216 ac_cv_target_alias=$ac_cv_host_alias
1217 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1218 { { echo "$as_me:1218: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1219 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1220 { (exit 1); exit 1; }; }
1223 echo "$as_me:1223: result: $ac_cv_target" >&5
1224 echo "${ECHO_T}$ac_cv_target" >&6
1225 target=$ac_cv_target
1226 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1227 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1228 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1230 # The aliases save the names the user supplied, while $host etc.
1231 # will get canonicalized.
1232 test -n "$target_alias" &&
1233 test "$program_prefix$program_suffix$program_transform_name" = \
1235 program_prefix=${target_alias}-
1236 system_name="$host_os"
1238 system_name="`(uname -s -r) 2>/dev/null`"
1239 if test -z "$system_name" ; then
1240 system_name="`(hostname) 2>/dev/null`"
1243 test -n "$system_name" && cat >>confdefs.h <<EOF
1244 #define SYSTEM_NAME "$system_name"
1247 if test "${cf_cv_system_name+set}" = set; then
1248 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 cf_cv_system_name="$system_name"
1253 test -z "$system_name" && system_name="$cf_cv_system_name"
1254 test -n "$cf_cv_system_name" && echo "$as_me:1254: result: Configuring for $cf_cv_system_name" >&5
1255 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1257 if test ".$system_name" != ".$cf_cv_system_name" ; then
1258 echo "$as_me:1258: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1259 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1260 { { echo "$as_me:1260: error: \"Please remove config.cache and try again.\"" >&5
1261 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1262 { (exit 1); exit 1; }; }
1265 # Check whether --with-system-type or --without-system-type was given.
1266 if test "${with_system_type+set}" = set; then
1267 withval="$with_system_type"
1268 { echo "$as_me:1268: WARNING: overriding system type to $withval" >&5
1269 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1270 cf_cv_system_name=$withval
1273 ### Save the given $CFLAGS to allow user-override.
1274 cf_user_CFLAGS="$CFLAGS"
1276 ### Default install-location
1278 echo "$as_me:1278: checking for prefix" >&5
1279 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1280 if test "x$prefix" = "xNONE" ; then
1281 case "$cf_cv_system_name" in
1282 # non-vendor systems don't have a conflict
1283 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1286 *) prefix=$ac_default_prefix
1290 echo "$as_me:1290: result: $prefix" >&5
1291 echo "${ECHO_T}$prefix" >&6
1293 if test "x$prefix" = "xNONE" ; then
1294 echo "$as_me:1294: checking for default include-directory" >&5
1295 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1296 test -n "$verbose" && echo 1>&6
1299 $includedir/ncurses \
1301 $prefix/include/ncurses \
1302 /usr/local/include \
1303 /usr/local/include/ncurses \
1305 /usr/include/ncurses
1307 cf_dir=`eval echo $cf_symbol`
1308 if test -f $cf_dir/curses.h ; then
1309 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1310 includedir="$cf_symbol"
1311 test -n "$verbose" && echo $ac_n " found " 1>&6
1315 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1317 echo "$as_me:1317: result: $includedir" >&5
1318 echo "${ECHO_T}$includedir" >&6
1321 ### Checks for programs.
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327 if test -n "$ac_tool_prefix"; then
1328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1329 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1330 echo "$as_me:1330: checking for $ac_word" >&5
1331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1332 if test "${ac_cv_prog_CC+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 if test -n "$CC"; then
1336 ac_cv_prog_CC="$CC" # Let the user override the test.
1338 ac_save_IFS=$IFS; IFS=$ac_path_separator
1340 for ac_dir in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir=.
1343 $as_executable_p "$ac_dir/$ac_word" || continue
1344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1345 echo "$as_me:1345: found $ac_dir/$ac_word" >&5
1352 if test -n "$CC"; then
1353 echo "$as_me:1353: result: $CC" >&5
1354 echo "${ECHO_T}$CC" >&6
1356 echo "$as_me:1356: result: no" >&5
1357 echo "${ECHO_T}no" >&6
1361 if test -z "$ac_cv_prog_CC"; then
1363 # Extract the first word of "gcc", so it can be a program name with args.
1364 set dummy gcc; ac_word=$2
1365 echo "$as_me:1365: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 if test -n "$ac_ct_CC"; then
1371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1373 ac_save_IFS=$IFS; IFS=$ac_path_separator
1375 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 $as_executable_p "$ac_dir/$ac_word" || continue
1379 ac_cv_prog_ac_ct_CC="gcc"
1380 echo "$as_me:1380: found $ac_dir/$ac_word" >&5
1386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1387 if test -n "$ac_ct_CC"; then
1388 echo "$as_me:1388: result: $ac_ct_CC" >&5
1389 echo "${ECHO_T}$ac_ct_CC" >&6
1391 echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1400 if test -z "$CC"; then
1401 if test -n "$ac_tool_prefix"; then
1402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1403 set dummy ${ac_tool_prefix}cc; ac_word=$2
1404 echo "$as_me:1404: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 if test -n "$CC"; then
1410 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1414 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 $as_executable_p "$ac_dir/$ac_word" || continue
1418 ac_cv_prog_CC="${ac_tool_prefix}cc"
1419 echo "$as_me:1419: found $ac_dir/$ac_word" >&5
1426 if test -n "$CC"; then
1427 echo "$as_me:1427: result: $CC" >&5
1428 echo "${ECHO_T}$CC" >&6
1430 echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1435 if test -z "$ac_cv_prog_CC"; then
1437 # Extract the first word of "cc", so it can be a program name with args.
1438 set dummy cc; ac_word=$2
1439 echo "$as_me:1439: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 if test -n "$ac_ct_CC"; then
1445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447 ac_save_IFS=$IFS; IFS=$ac_path_separator
1449 for ac_dir in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir=.
1452 $as_executable_p "$ac_dir/$ac_word" || continue
1453 ac_cv_prog_ac_ct_CC="cc"
1454 echo "$as_me:1454: found $ac_dir/$ac_word" >&5
1460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1461 if test -n "$ac_ct_CC"; then
1462 echo "$as_me:1462: result: $ac_ct_CC" >&5
1463 echo "${ECHO_T}$ac_ct_CC" >&6
1465 echo "$as_me:1465: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1475 if test -z "$CC"; then
1476 # Extract the first word of "cc", so it can be a program name with args.
1477 set dummy cc; ac_word=$2
1478 echo "$as_me:1478: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 if test -n "$CC"; then
1484 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 ac_save_IFS=$IFS; IFS=$ac_path_separator
1489 for ac_dir in $ac_dummy; do
1491 test -z "$ac_dir" && ac_dir=.
1492 $as_executable_p "$ac_dir/$ac_word" || continue
1493 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1494 ac_prog_rejected=yes
1498 echo "$as_me:1498: found $ac_dir/$ac_word" >&5
1502 if test $ac_prog_rejected = yes; then
1503 # We found a bogon in the path, so make sure we never use it.
1504 set dummy $ac_cv_prog_CC
1506 if test $# != 0; then
1507 # We chose a different compiler from the bogus one.
1508 # However, it has the same basename, so the bogon will be chosen
1509 # first if we set CC to just the basename; use the full file name.
1511 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1519 if test -n "$CC"; then
1520 echo "$as_me:1520: result: $CC" >&5
1521 echo "${ECHO_T}$CC" >&6
1523 echo "$as_me:1523: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1528 if test -z "$CC"; then
1529 if test -n "$ac_tool_prefix"; then
1532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1534 echo "$as_me:1534: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1542 ac_save_IFS=$IFS; IFS=$ac_path_separator
1544 for ac_dir in $ac_dummy; do
1546 test -z "$ac_dir" && ac_dir=.
1547 $as_executable_p "$ac_dir/$ac_word" || continue
1548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1549 echo "$as_me:1549: found $ac_dir/$ac_word" >&5
1556 if test -n "$CC"; then
1557 echo "$as_me:1557: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1560 echo "$as_me:1560: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1564 test -n "$CC" && break
1567 if test -z "$CC"; then
1571 # Extract the first word of "$ac_prog", so it can be a program name with args.
1572 set dummy $ac_prog; ac_word=$2
1573 echo "$as_me:1573: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 if test -n "$ac_ct_CC"; then
1579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1581 ac_save_IFS=$IFS; IFS=$ac_path_separator
1583 for ac_dir in $ac_dummy; do
1585 test -z "$ac_dir" && ac_dir=.
1586 $as_executable_p "$ac_dir/$ac_word" || continue
1587 ac_cv_prog_ac_ct_CC="$ac_prog"
1588 echo "$as_me:1588: found $ac_dir/$ac_word" >&5
1594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595 if test -n "$ac_ct_CC"; then
1596 echo "$as_me:1596: result: $ac_ct_CC" >&5
1597 echo "${ECHO_T}$ac_ct_CC" >&6
1599 echo "$as_me:1599: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1603 test -n "$ac_ct_CC" && break
1611 test -z "$CC" && { { echo "$as_me:1611: error: no acceptable cc found in \$PATH" >&5
1612 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1613 { (exit 1); exit 1; }; }
1615 # Provide some information about the compiler.
1616 echo "$as_me:1616:" \
1617 "checking for C compiler version" >&5
1618 ac_compiler=`set X $ac_compile; echo $2`
1619 { (eval echo "$as_me:1619: \"$ac_compiler --version </dev/null >&5\"") >&5
1620 (eval $ac_compiler --version </dev/null >&5) 2>&5
1622 echo "$as_me:1622: \$? = $ac_status" >&5
1623 (exit $ac_status); }
1624 { (eval echo "$as_me:1624: \"$ac_compiler -v </dev/null >&5\"") >&5
1625 (eval $ac_compiler -v </dev/null >&5) 2>&5
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1629 { (eval echo "$as_me:1629: \"$ac_compiler -V </dev/null >&5\"") >&5
1630 (eval $ac_compiler -V </dev/null >&5) 2>&5
1632 echo "$as_me:1632: \$? = $ac_status" >&5
1633 (exit $ac_status); }
1635 cat >conftest.$ac_ext <<_ACEOF
1636 #line 1636 "configure"
1637 #include "confdefs.h"
1647 ac_clean_files_save=$ac_clean_files
1648 ac_clean_files="$ac_clean_files a.out a.exe"
1649 # Try to create an executable without -o first, disregard a.out.
1650 # It will help us diagnose broken compilers, and finding out an intuition
1652 echo "$as_me:1652: checking for C compiler default output" >&5
1653 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1654 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1655 if { (eval echo "$as_me:1655: \"$ac_link_default\"") >&5
1656 (eval $ac_link_default) 2>&5
1658 echo "$as_me:1658: \$? = $ac_status" >&5
1659 (exit $ac_status); }; then
1660 # Find the output, starting from the most likely. This scheme is
1661 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1663 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1664 ls a.out conftest 2>/dev/null;
1665 ls a.* conftest.* 2>/dev/null`; do
1667 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1668 a.out ) # We found the default executable, but exeext='' is most
1671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1672 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1679 echo "$as_me: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1681 { { echo "$as_me:1681: error: C compiler cannot create executables" >&5
1682 echo "$as_me: error: C compiler cannot create executables" >&2;}
1683 { (exit 77); exit 77; }; }
1686 ac_exeext=$ac_cv_exeext
1687 echo "$as_me:1687: result: $ac_file" >&5
1688 echo "${ECHO_T}$ac_file" >&6
1690 # Check the compiler produces executables we can run. If not, either
1691 # the compiler is broken, or we cross compile.
1692 echo "$as_me:1692: checking whether the C compiler works" >&5
1693 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1694 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1695 # If not cross compiling, check that we can run a simple program.
1696 if test "$cross_compiling" != yes; then
1697 if { ac_try='./$ac_file'
1698 { (eval echo "$as_me:1698: \"$ac_try\"") >&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); }; }; then
1705 if test "$cross_compiling" = maybe; then
1708 { { echo "$as_me:1708: error: cannot run C compiled programs.
1709 If you meant to cross compile, use \`--host'." >&5
1710 echo "$as_me: error: cannot run C compiled programs.
1711 If you meant to cross compile, use \`--host'." >&2;}
1712 { (exit 1); exit 1; }; }
1716 echo "$as_me:1716: result: yes" >&5
1717 echo "${ECHO_T}yes" >&6
1719 rm -f a.out a.exe conftest$ac_cv_exeext
1720 ac_clean_files=$ac_clean_files_save
1721 # Check the compiler produces executables we can run. If not, either
1722 # the compiler is broken, or we cross compile.
1723 echo "$as_me:1723: checking whether we are cross compiling" >&5
1724 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1725 echo "$as_me:1725: result: $cross_compiling" >&5
1726 echo "${ECHO_T}$cross_compiling" >&6
1728 echo "$as_me:1728: checking for executable suffix" >&5
1729 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1730 if { (eval echo "$as_me:1730: \"$ac_link\"") >&5
1731 (eval $ac_link) 2>&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); }; then
1735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1737 # work properly (i.e., refer to `conftest.exe'), while it won't with
1739 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1741 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1749 { { echo "$as_me:1749: error: cannot compute EXEEXT: cannot compile and link" >&5
1750 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1751 { (exit 1); exit 1; }; }
1754 rm -f conftest$ac_cv_exeext
1755 echo "$as_me:1755: result: $ac_cv_exeext" >&5
1756 echo "${ECHO_T}$ac_cv_exeext" >&6
1758 rm -f conftest.$ac_ext
1759 EXEEXT=$ac_cv_exeext
1761 echo "$as_me:1761: checking for object suffix" >&5
1762 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1763 if test "${ac_cv_objext+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line 1767 "configure"
1768 #include "confdefs.h"
1778 rm -f conftest.o conftest.obj
1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); }; then
1784 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1787 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1792 echo "$as_me: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1794 { { echo "$as_me:1794: error: cannot compute OBJEXT: cannot compile" >&5
1795 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1796 { (exit 1); exit 1; }; }
1799 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1801 echo "$as_me:1801: result: $ac_cv_objext" >&5
1802 echo "${ECHO_T}$ac_cv_objext" >&6
1803 OBJEXT=$ac_cv_objext
1805 echo "$as_me:1805: checking whether we are using the GNU C compiler" >&5
1806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 cat >conftest.$ac_ext <<_ACEOF
1811 #line 1811 "configure"
1812 #include "confdefs.h"
1825 rm -f conftest.$ac_objext
1826 if { (eval echo "$as_me:1826: \"$ac_compile\"") >&5
1827 (eval $ac_compile) 2>&5
1829 echo "$as_me:1829: \$? = $ac_status" >&5
1830 (exit $ac_status); } &&
1831 { ac_try='test -s conftest.$ac_objext'
1832 { (eval echo "$as_me:1832: \"$ac_try\"") >&5
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1843 rm -f conftest.$ac_objext conftest.$ac_ext
1844 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1847 echo "$as_me:1847: result: $ac_cv_c_compiler_gnu" >&5
1848 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1849 GCC=`test $ac_compiler_gnu = yes && echo yes`
1850 ac_test_CFLAGS=${CFLAGS+set}
1851 ac_save_CFLAGS=$CFLAGS
1853 echo "$as_me:1853: checking whether $CC accepts -g" >&5
1854 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1855 if test "${ac_cv_prog_cc_g+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 cat >conftest.$ac_ext <<_ACEOF
1859 #line 1859 "configure"
1860 #include "confdefs.h"
1870 rm -f conftest.$ac_objext
1871 if { (eval echo "$as_me:1871: \"$ac_compile\"") >&5
1872 (eval $ac_compile) 2>&5
1874 echo "$as_me:1874: \$? = $ac_status" >&5
1875 (exit $ac_status); } &&
1876 { ac_try='test -s conftest.$ac_objext'
1877 { (eval echo "$as_me:1877: \"$ac_try\"") >&5
1880 echo "$as_me:1880: \$? = $ac_status" >&5
1881 (exit $ac_status); }; }; then
1884 echo "$as_me: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1888 rm -f conftest.$ac_objext conftest.$ac_ext
1890 echo "$as_me:1890: result: $ac_cv_prog_cc_g" >&5
1891 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1892 if test "$ac_test_CFLAGS" = set; then
1893 CFLAGS=$ac_save_CFLAGS
1894 elif test $ac_cv_prog_cc_g = yes; then
1895 if test "$GCC" = yes; then
1901 if test "$GCC" = yes; then
1907 # Some people use a C++ compiler to compile C. Since we use `exit',
1908 # in C++ we need to declare it. In case someone uses the same compiler
1909 # for both compiling C and C++ we need to have the C++ compiler decide
1910 # the declaration of exit, since it's the most demanding environment.
1911 cat >conftest.$ac_ext <<_ACEOF
1916 rm -f conftest.$ac_objext
1917 if { (eval echo "$as_me:1917: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:1923: \"$ac_try\"") >&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1928 for ac_declaration in \
1930 '#include <stdlib.h>' \
1931 'extern "C" void std::exit (int) throw (); using std::exit;' \
1932 'extern "C" void std::exit (int); using std::exit;' \
1933 'extern "C" void exit (int) throw ();' \
1934 'extern "C" void exit (int);' \
1937 cat >conftest.$ac_ext <<_ACEOF
1938 #line 1938 "configure"
1939 #include "confdefs.h"
1950 rm -f conftest.$ac_objext
1951 if { (eval echo "$as_me:1951: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>&5
1954 echo "$as_me:1954: \$? = $ac_status" >&5
1955 (exit $ac_status); } &&
1956 { ac_try='test -s conftest.$ac_objext'
1957 { (eval echo "$as_me:1957: \"$ac_try\"") >&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit $ac_status); }; }; then
1964 echo "$as_me: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1968 rm -f conftest.$ac_objext conftest.$ac_ext
1969 cat >conftest.$ac_ext <<_ACEOF
1970 #line 1970 "configure"
1971 #include "confdefs.h"
1981 rm -f conftest.$ac_objext
1982 if { (eval echo "$as_me:1982: \"$ac_compile\"") >&5
1983 (eval $ac_compile) 2>&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); } &&
1987 { ac_try='test -s conftest.$ac_objext'
1988 { (eval echo "$as_me:1988: \"$ac_try\"") >&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); }; }; then
1995 echo "$as_me: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1998 rm -f conftest.$ac_objext conftest.$ac_ext
2001 if test -n "$ac_declaration"; then
2002 echo '#ifdef __cplusplus' >>confdefs.h
2003 echo $ac_declaration >>confdefs.h
2004 echo '#endif' >>confdefs.h
2008 echo "$as_me: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 rm -f conftest.$ac_objext conftest.$ac_ext
2013 ac_cpp='$CPP $CPPFLAGS'
2014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 if test "$GCC" = yes ; then
2020 echo "$as_me:2020: checking version of $CC" >&5
2021 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2022 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2023 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2024 echo "$as_me:2024: result: $GCC_VERSION" >&5
2025 echo "${ECHO_T}$GCC_VERSION" >&6
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 echo "$as_me:2033: checking how to run the C preprocessor" >&5
2034 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2035 # On Suns, sometimes $CPP names a directory.
2036 if test -n "$CPP" && test -d "$CPP"; then
2039 if test -z "$CPP"; then
2040 if test "${ac_cv_prog_CPP+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 # Double quotes because CPP needs to be expanded
2044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2047 for ac_c_preproc_warn_flag in '' yes
2049 # Use a header file that comes with gcc, so configuring glibc
2050 # with a fresh cross-compiler works.
2051 # On the NeXT, cc -E runs the code through the compiler's parser,
2052 # not just through cpp. "Syntax error" is here to catch this case.
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2059 if { (eval echo "$as_me:2059: \"$ac_cpp conftest.$ac_ext\"") >&5
2060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2062 egrep -v '^ *\+' conftest.er1 >conftest.err
2064 cat conftest.err >&5
2065 echo "$as_me:2065: \$? = $ac_status" >&5
2066 (exit $ac_status); } >/dev/null; then
2067 if test -s conftest.err; then
2068 ac_cpp_err=$ac_c_preproc_warn_flag
2075 if test -z "$ac_cpp_err"; then
2078 echo "$as_me: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2080 # Broken: fails on valid input.
2083 rm -f conftest.err conftest.$ac_ext
2085 # OK, works on sane cases. Now check whether non-existent headers
2086 # can be detected and how.
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line 2088 "configure"
2089 #include "confdefs.h"
2090 #include <ac_nonexistent.h>
2092 if { (eval echo "$as_me:2092: \"$ac_cpp conftest.$ac_ext\"") >&5
2093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2095 egrep -v '^ *\+' conftest.er1 >conftest.err
2097 cat conftest.err >&5
2098 echo "$as_me:2098: \$? = $ac_status" >&5
2099 (exit $ac_status); } >/dev/null; then
2100 if test -s conftest.err; then
2101 ac_cpp_err=$ac_c_preproc_warn_flag
2108 if test -z "$ac_cpp_err"; then
2109 # Broken: success on invalid input.
2112 echo "$as_me: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 # Passes both tests.
2118 rm -f conftest.err conftest.$ac_ext
2121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2122 rm -f conftest.err conftest.$ac_ext
2123 if $ac_preproc_ok; then
2135 echo "$as_me:2135: result: $CPP" >&5
2136 echo "${ECHO_T}$CPP" >&6
2138 for ac_c_preproc_warn_flag in '' yes
2140 # Use a header file that comes with gcc, so configuring glibc
2141 # with a fresh cross-compiler works.
2142 # On the NeXT, cc -E runs the code through the compiler's parser,
2143 # not just through cpp. "Syntax error" is here to catch this case.
2144 cat >conftest.$ac_ext <<_ACEOF
2145 #line 2145 "configure"
2146 #include "confdefs.h"
2150 if { (eval echo "$as_me:2150: \"$ac_cpp conftest.$ac_ext\"") >&5
2151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2153 egrep -v '^ *\+' conftest.er1 >conftest.err
2155 cat conftest.err >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); } >/dev/null; then
2158 if test -s conftest.err; then
2159 ac_cpp_err=$ac_c_preproc_warn_flag
2166 if test -z "$ac_cpp_err"; then
2169 echo "$as_me: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 # Broken: fails on valid input.
2174 rm -f conftest.err conftest.$ac_ext
2176 # OK, works on sane cases. Now check whether non-existent headers
2177 # can be detected and how.
2178 cat >conftest.$ac_ext <<_ACEOF
2179 #line 2179 "configure"
2180 #include "confdefs.h"
2181 #include <ac_nonexistent.h>
2183 if { (eval echo "$as_me:2183: \"$ac_cpp conftest.$ac_ext\"") >&5
2184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2186 egrep -v '^ *\+' conftest.er1 >conftest.err
2188 cat conftest.err >&5
2189 echo "$as_me:2189: \$? = $ac_status" >&5
2190 (exit $ac_status); } >/dev/null; then
2191 if test -s conftest.err; then
2192 ac_cpp_err=$ac_c_preproc_warn_flag
2199 if test -z "$ac_cpp_err"; then
2200 # Broken: success on invalid input.
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 # Passes both tests.
2209 rm -f conftest.err conftest.$ac_ext
2212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2213 rm -f conftest.err conftest.$ac_ext
2214 if $ac_preproc_ok; then
2217 { { echo "$as_me:2217: error: C preprocessor \"$CPP\" fails sanity check" >&5
2218 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2219 { (exit 1); exit 1; }; }
2223 ac_cpp='$CPP $CPPFLAGS'
2224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 if test $ac_cv_c_compiler_gnu = yes; then
2229 echo "$as_me:2229: checking whether $CC needs -traditional" >&5
2230 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2231 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 ac_pattern="Autoconf.*'x'"
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line 2236 "configure"
2237 #include "confdefs.h"
2239 int Autoconf = TIOCGETP;
2241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2242 egrep "$ac_pattern" >/dev/null 2>&1; then
2243 ac_cv_prog_gcc_traditional=yes
2245 ac_cv_prog_gcc_traditional=no
2249 if test $ac_cv_prog_gcc_traditional = no; then
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line 2251 "configure"
2252 #include "confdefs.h"
2254 int Autoconf = TCGETA;
2256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2257 egrep "$ac_pattern" >/dev/null 2>&1; then
2258 ac_cv_prog_gcc_traditional=yes
2264 echo "$as_me:2264: result: $ac_cv_prog_gcc_traditional" >&5
2265 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2266 if test $ac_cv_prog_gcc_traditional = yes; then
2267 CC="$CC -traditional"
2271 echo "$as_me:2271: checking whether $CC understands -c and -o together" >&5
2272 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2273 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 cat > conftest.$ac_ext <<CF_EOF
2284 # We do the test twice because some compilers refuse to overwrite an
2285 # existing .o file with -o, though they will create one.
2286 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2287 if { (eval echo "$as_me:2287: \"$ac_try\"") >&5
2290 echo "$as_me:2290: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 test -f conftest2.$ac_objext && { (eval echo "$as_me:2292: \"$ac_try\"") >&5
2295 echo "$as_me:2295: \$? = $ac_status" >&5
2296 (exit $ac_status); };
2298 eval cf_cv_prog_CC_c_o=yes
2300 eval cf_cv_prog_CC_c_o=no
2305 if test $cf_cv_prog_CC_c_o = yes; then
2306 echo "$as_me:2306: result: yes" >&5
2307 echo "${ECHO_T}yes" >&6
2309 echo "$as_me:2309: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2313 echo "$as_me:2313: checking for POSIXized ISC" >&5
2314 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2315 if test -d /etc/conf/kconfig.d &&
2316 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2318 echo "$as_me:2318: result: yes" >&5
2319 echo "${ECHO_T}yes" >&6
2320 ISC=yes # If later tests want to check for ISC.
2322 cat >>confdefs.h <<\EOF
2323 #define _POSIX_SOURCE 1
2326 if test "$GCC" = yes; then
2332 echo "$as_me:2332: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2337 echo "$as_me:2337: checking for ${CC-cc} option to accept ANSI C" >&5
2338 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2339 if test "${cf_cv_ansi_cc+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 cf_save_CFLAGS="$CFLAGS"
2345 cf_save_CPPFLAGS="$CPPFLAGS"
2346 # Don't try gcc -ansi; that turns off useful extensions and
2347 # breaks some systems' header files.
2348 # AIX -qlanglvl=ansi
2349 # Ultrix and OSF/1 -std1
2350 # HP-UX -Aa -D_HPUX_SOURCE
2352 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2353 for cf_arg in "-DCC_HAS_PROTOS" \
2358 "-Aa -D_HPUX_SOURCE" \
2365 cf_new_extra_cppflags=
2367 for cf_add_cflags in $cf_arg
2369 case $cf_fix_cppflags in
2371 case $cf_add_cflags in #(vi
2372 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2373 case $cf_add_cflags in
2375 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2377 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2378 && test -z "${cf_tst_cflags}" \
2379 && cf_fix_cppflags=yes
2381 if test $cf_fix_cppflags = yes ; then
2382 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2384 elif test "${cf_tst_cflags}" = "\"'" ; then
2385 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2391 *$cf_add_cflags) #(vi
2394 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2399 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2404 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2406 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2408 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2409 && test -z "${cf_tst_cflags}" \
2410 && cf_fix_cppflags=no
2415 if test -n "$cf_new_cflags" ; then
2417 CFLAGS="$CFLAGS $cf_new_cflags"
2420 if test -n "$cf_new_cppflags" ; then
2422 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2425 if test -n "$cf_new_extra_cppflags" ; then
2427 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2430 cat >conftest.$ac_ext <<_ACEOF
2431 #line 2431 "configure"
2432 #include "confdefs.h"
2434 #ifndef CC_HAS_PROTOS
2435 #if !defined(__STDC__) || (__STDC__ != 1)
2444 int test (int i, double x);
2445 struct s1 {int (*f) (int a);};
2446 struct s2 {int (*f) (double a);};
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:2452: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>&5
2455 echo "$as_me:2455: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:2458: \"$ac_try\"") >&5
2461 echo "$as_me:2461: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2463 cf_cv_ansi_cc="$cf_arg"; break
2465 echo "$as_me: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2468 rm -f conftest.$ac_objext conftest.$ac_ext
2470 CFLAGS="$cf_save_CFLAGS"
2471 CPPFLAGS="$cf_save_CPPFLAGS"
2474 echo "$as_me:2474: result: $cf_cv_ansi_cc" >&5
2475 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2477 if test "$cf_cv_ansi_cc" != "no"; then
2478 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2483 cf_new_extra_cppflags=
2485 for cf_add_cflags in $cf_cv_ansi_cc
2487 case $cf_fix_cppflags in
2489 case $cf_add_cflags in #(vi
2490 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2491 case $cf_add_cflags in
2493 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2495 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2496 && test -z "${cf_tst_cflags}" \
2497 && cf_fix_cppflags=yes
2499 if test $cf_fix_cppflags = yes ; then
2500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2502 elif test "${cf_tst_cflags}" = "\"'" ; then
2503 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2509 *$cf_add_cflags) #(vi
2512 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2517 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2522 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2524 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2526 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2527 && test -z "${cf_tst_cflags}" \
2528 && cf_fix_cppflags=no
2533 if test -n "$cf_new_cflags" ; then
2535 CFLAGS="$CFLAGS $cf_new_cflags"
2538 if test -n "$cf_new_cppflags" ; then
2540 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2543 if test -n "$cf_new_extra_cppflags" ; then
2545 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2549 cat >>confdefs.h <<\EOF
2550 #define CC_HAS_PROTOS 1
2556 if test "$cf_cv_ansi_cc" = "no"; then
2557 { { echo "$as_me:2557: error: Your compiler does not appear to recognize prototypes.
2558 You have the following choices:
2559 a. adjust your compiler options
2560 b. get an up-to-date compiler
2561 c. use a wrapper such as unproto" >&5
2562 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2563 You have the following choices:
2564 a. adjust your compiler options
2565 b. get an up-to-date compiler
2566 c. use a wrapper such as unproto" >&2;}
2567 { (exit 1); exit 1; }; }
2570 case $cf_cv_system_name in
2572 CFLAGS="$CFLAGS -Zmt"
2573 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2574 CXXFLAGS="$CXXFLAGS -Zmt"
2575 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2576 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2583 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2584 #define PROG_EXT "$PROG_EXT"
2587 if test "$cross_compiling" = yes ; then
2590 case "$cf_cv_system_name" in #(vi
2592 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2594 *) LDPATH=$PATH:/sbin:/usr/sbin
2595 # Extract the first word of "ldconfig", so it can be a program name with args.
2596 set dummy ldconfig; ac_word=$2
2597 echo "$as_me:2597: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2607 ac_save_IFS=$IFS; IFS=$ac_path_separator
2609 for ac_dir in $ac_dummy; do
2611 test -z "$ac_dir" && ac_dir=.
2612 if $as_executable_p "$ac_dir/$ac_word"; then
2613 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2614 echo "$as_me:2614: found $ac_dir/$ac_word" >&5
2622 LDCONFIG=$ac_cv_path_LDCONFIG
2624 if test -n "$LDCONFIG"; then
2625 echo "$as_me:2625: result: $LDCONFIG" >&5
2626 echo "${ECHO_T}$LDCONFIG" >&6
2628 echo "$as_me:2628: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2636 echo "$as_me:2636: checking if you want to ensure bool is consistent with C++" >&5
2637 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2639 # Check whether --with-cxx or --without-cxx was given.
2640 if test "${with_cxx+set}" = set; then
2642 cf_with_cxx=$withval
2646 echo "$as_me:2646: result: $cf_with_cxx" >&5
2647 echo "${ECHO_T}$cf_with_cxx" >&6
2648 if test "X$cf_with_cxx" = Xno ; then
2652 # with autoconf 2.13, we can change the error to a warning:
2654 ac_cpp='$CXXCPP $CPPFLAGS'
2655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2658 if test -n "$ac_tool_prefix"; then
2659 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2663 echo "$as_me:2663: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CXX+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 if test -n "$CXX"; then
2669 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2671 ac_save_IFS=$IFS; IFS=$ac_path_separator
2673 for ac_dir in $ac_dummy; do
2675 test -z "$ac_dir" && ac_dir=.
2676 $as_executable_p "$ac_dir/$ac_word" || continue
2677 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2678 echo "$as_me:2678: found $ac_dir/$ac_word" >&5
2685 if test -n "$CXX"; then
2686 echo "$as_me:2686: result: $CXX" >&5
2687 echo "${ECHO_T}$CXX" >&6
2689 echo "$as_me:2689: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2693 test -n "$CXX" && break
2696 if test -z "$CXX"; then
2698 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 echo "$as_me:2702: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$ac_ct_CXX"; then
2708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2710 ac_save_IFS=$IFS; IFS=$ac_path_separator
2712 for ac_dir in $ac_dummy; do
2714 test -z "$ac_dir" && ac_dir=.
2715 $as_executable_p "$ac_dir/$ac_word" || continue
2716 ac_cv_prog_ac_ct_CXX="$ac_prog"
2717 echo "$as_me:2717: found $ac_dir/$ac_word" >&5
2723 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2724 if test -n "$ac_ct_CXX"; then
2725 echo "$as_me:2725: result: $ac_ct_CXX" >&5
2726 echo "${ECHO_T}$ac_ct_CXX" >&6
2728 echo "$as_me:2728: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2732 test -n "$ac_ct_CXX" && break
2734 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2739 # Provide some information about the compiler.
2740 echo "$as_me:2740:" \
2741 "checking for C++ compiler version" >&5
2742 ac_compiler=`set X $ac_compile; echo $2`
2743 { (eval echo "$as_me:2743: \"$ac_compiler --version </dev/null >&5\"") >&5
2744 (eval $ac_compiler --version </dev/null >&5) 2>&5
2746 echo "$as_me:2746: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748 { (eval echo "$as_me:2748: \"$ac_compiler -v </dev/null >&5\"") >&5
2749 (eval $ac_compiler -v </dev/null >&5) 2>&5
2751 echo "$as_me:2751: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2753 { (eval echo "$as_me:2753: \"$ac_compiler -V </dev/null >&5\"") >&5
2754 (eval $ac_compiler -V </dev/null >&5) 2>&5
2756 echo "$as_me:2756: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2759 echo "$as_me:2759: checking whether we are using the GNU C++ compiler" >&5
2760 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2761 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.$ac_ext <<_ACEOF
2765 #line 2765 "configure"
2766 #include "confdefs.h"
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:2780: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>&5
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:2786: \"$ac_try\"") >&5
2789 echo "$as_me:2789: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2797 rm -f conftest.$ac_objext conftest.$ac_ext
2798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2801 echo "$as_me:2801: result: $ac_cv_cxx_compiler_gnu" >&5
2802 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2803 GXX=`test $ac_compiler_gnu = yes && echo yes`
2804 ac_test_CXXFLAGS=${CXXFLAGS+set}
2805 ac_save_CXXFLAGS=$CXXFLAGS
2807 echo "$as_me:2807: checking whether $CXX accepts -g" >&5
2808 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2809 if test "${ac_cv_prog_cxx_g+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 cat >conftest.$ac_ext <<_ACEOF
2813 #line 2813 "configure"
2814 #include "confdefs.h"
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:2825: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>&5
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:2831: \"$ac_try\"") >&5
2834 echo "$as_me:2834: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 ac_cv_prog_cxx_g=yes
2838 echo "$as_me: failed program was:" >&5
2839 cat conftest.$ac_ext >&5
2842 rm -f conftest.$ac_objext conftest.$ac_ext
2844 echo "$as_me:2844: result: $ac_cv_prog_cxx_g" >&5
2845 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2846 if test "$ac_test_CXXFLAGS" = set; then
2847 CXXFLAGS=$ac_save_CXXFLAGS
2848 elif test $ac_cv_prog_cxx_g = yes; then
2849 if test "$GXX" = yes; then
2855 if test "$GXX" = yes; then
2861 for ac_declaration in \
2863 '#include <stdlib.h>' \
2864 'extern "C" void std::exit (int) throw (); using std::exit;' \
2865 'extern "C" void std::exit (int); using std::exit;' \
2866 'extern "C" void exit (int) throw ();' \
2867 'extern "C" void exit (int);' \
2870 cat >conftest.$ac_ext <<_ACEOF
2871 #line 2871 "configure"
2872 #include "confdefs.h"
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:2884: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>&5
2887 echo "$as_me:2887: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:2890: \"$ac_try\"") >&5
2893 echo "$as_me:2893: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 echo "$as_me: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2901 rm -f conftest.$ac_objext conftest.$ac_ext
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line 2903 "configure"
2904 #include "confdefs.h"
2914 rm -f conftest.$ac_objext
2915 if { (eval echo "$as_me:2915: \"$ac_compile\"") >&5
2916 (eval $ac_compile) 2>&5
2918 echo "$as_me:2918: \$? = $ac_status" >&5
2919 (exit $ac_status); } &&
2920 { ac_try='test -s conftest.$ac_objext'
2921 { (eval echo "$as_me:2921: \"$ac_try\"") >&5
2924 echo "$as_me:2924: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2928 echo "$as_me: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2931 rm -f conftest.$ac_objext conftest.$ac_ext
2934 if test -n "$ac_declaration"; then
2935 echo '#ifdef __cplusplus' >>confdefs.h
2936 echo $ac_declaration >>confdefs.h
2937 echo '#endif' >>confdefs.h
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 # autoconf 2.5x removed the error - by hardcoding it to g++.
2947 if test "$CXX" = "g++" ; then
2948 # Extract the first word of "g++", so it can be a program name with args.
2949 set dummy g++; ac_word=$2
2950 echo "$as_me:2950: checking for $ac_word" >&5
2951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952 if test "${ac_cv_path_CXX+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2960 ac_save_IFS=$IFS; IFS=$ac_path_separator
2962 for ac_dir in $ac_dummy; do
2964 test -z "$ac_dir" && ac_dir=.
2965 if $as_executable_p "$ac_dir/$ac_word"; then
2966 ac_cv_path_CXX="$ac_dir/$ac_word"
2967 echo "$as_me:2967: found $ac_dir/$ac_word" >&5
2977 if test -n "$CXX"; then
2978 echo "$as_me:2978: result: $CXX" >&5
2979 echo "${ECHO_T}$CXX" >&6
2981 echo "$as_me:2981: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2986 if test "$CXX" = "g++" ; then
2987 { echo "$as_me:2987: WARNING: ignoring hardcoded g++" >&5
2988 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
2989 cf_with_cxx=no; CXX=""; GXX="";
2994 if test "$GXX" = yes; then
2995 echo "$as_me:2995: checking version of g++" >&5
2996 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
2997 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2998 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2999 echo "$as_me:2999: result: $GXX_VERSION" >&5
3000 echo "${ECHO_T}$GXX_VERSION" >&6
3003 case $GXX_VERSION in
3005 GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
3007 { echo "$as_me:3007: WARNING: templates do not work" >&5
3008 echo "$as_me: WARNING: templates do not work" >&2;}
3012 echo "$as_me:3012: checking if you want to build C++ binding and demo" >&5
3013 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3015 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3016 if test "${with_cxx_binding+set}" = set; then
3017 withval="$with_cxx_binding"
3018 cf_with_cxx_binding=$withval
3020 cf_with_cxx_binding=$cf_with_cxx
3022 echo "$as_me:3022: result: $cf_with_cxx_binding" >&5
3023 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3025 echo "$as_me:3025: checking if you want to build with Ada95" >&5
3026 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3028 # Check whether --with-ada or --without-ada was given.
3029 if test "${with_ada+set}" = set; then
3031 cf_with_ada=$withval
3035 echo "$as_me:3035: result: $cf_with_ada" >&5
3036 echo "${ECHO_T}$cf_with_ada" >&6
3038 echo "$as_me:3038: checking if you want to build programs such as tic" >&5
3039 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3041 # Check whether --with-progs or --without-progs was given.
3042 if test "${with_progs+set}" = set; then
3043 withval="$with_progs"
3044 cf_with_progs=$withval
3048 echo "$as_me:3048: result: $cf_with_progs" >&5
3049 echo "${ECHO_T}$cf_with_progs" >&6
3051 echo "$as_me:3051: checking if you wish to install curses.h" >&5
3052 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3054 # Check whether --with-curses-h or --without-curses-h was given.
3055 if test "${with_curses_h+set}" = set; then
3056 withval="$with_curses_h"
3057 with_curses_h=$withval
3061 echo "$as_me:3061: result: $with_curses_h" >&5
3062 echo "${ECHO_T}$with_curses_h" >&6
3064 modules_to_build="ncurses"
3065 if test "X$cf_with_progs" != Xno ; then
3066 modules_to_build="$modules_to_build progs tack"
3068 modules_to_build="$modules_to_build panel menu form"
3070 test "$program_prefix" != NONE &&
3071 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3072 # Use a double $ so make ignores it.
3073 test "$program_suffix" != NONE &&
3074 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3075 # Double any \ or $. echo might interpret backslashes.
3076 # By default was `s,x,x', remove it if useless.
3077 cat <<\_ACEOF >conftest.sed
3078 s/[\\$]/&&/g;s/;s,x,x,$//
3080 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3083 for ac_prog in mawk gawk nawk awk
3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086 set dummy $ac_prog; ac_word=$2
3087 echo "$as_me:3087: checking for $ac_word" >&5
3088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089 if test "${ac_cv_prog_AWK+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 if test -n "$AWK"; then
3093 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3095 ac_save_IFS=$IFS; IFS=$ac_path_separator
3097 for ac_dir in $ac_dummy; do
3099 test -z "$ac_dir" && ac_dir=.
3100 $as_executable_p "$ac_dir/$ac_word" || continue
3101 ac_cv_prog_AWK="$ac_prog"
3102 echo "$as_me:3102: found $ac_dir/$ac_word" >&5
3109 if test -n "$AWK"; then
3110 echo "$as_me:3110: result: $AWK" >&5
3111 echo "${ECHO_T}$AWK" >&6
3113 echo "$as_me:3113: result: no" >&5
3114 echo "${ECHO_T}no" >&6
3117 test -n "$AWK" && break
3120 echo "$as_me:3120: checking whether ${MAKE-make} sets \${MAKE}" >&5
3121 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3122 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3123 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 cat >conftest.make <<\EOF
3128 @echo 'ac_maketemp="${MAKE}"'
3130 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3131 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3132 if test -n "$ac_maketemp"; then
3133 eval ac_cv_prog_make_${ac_make}_set=yes
3135 eval ac_cv_prog_make_${ac_make}_set=no
3139 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3140 echo "$as_me:3140: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3144 echo "$as_me:3144: result: no" >&5
3145 echo "${ECHO_T}no" >&6
3146 SET_MAKE="MAKE=${MAKE-make}"
3149 # Find a good install program. We prefer a C program (faster),
3150 # so one script is as good as another. But avoid the broken or
3151 # incompatible versions:
3152 # SysV /etc/install, /usr/sbin/install
3153 # SunOS /usr/etc/install
3154 # IRIX /sbin/install
3156 # AmigaOS /C/install, which installs bootblocks on floppy discs
3157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3160 # ./install, which can be erroneously created by make from ./install.sh.
3161 echo "$as_me:3161: checking for a BSD compatible install" >&5
3162 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3163 if test -z "$INSTALL"; then
3164 if test "${ac_cv_path_install+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 ac_save_IFS=$IFS; IFS=$ac_path_separator
3168 for ac_dir in $PATH; do
3170 # Account for people who put trailing slashes in PATH elements.
3172 / | ./ | .// | /cC/* \
3173 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3176 # OSF1 and SCO ODT 3.0 have their own names for install.
3177 # Don't use installbsd from OSF since it installs stuff as root
3179 for ac_prog in ginstall scoinst install; do
3180 if $as_executable_p "$ac_dir/$ac_prog"; then
3181 if test $ac_prog = install &&
3182 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3183 # AIX install. It has an incompatible calling convention.
3185 elif test $ac_prog = install &&
3186 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3187 # program-specific install script used by HP pwplus--don't use.
3190 ac_cv_path_install="$ac_dir/$ac_prog -c"
3200 if test "${ac_cv_path_install+set}" = set; then
3201 INSTALL=$ac_cv_path_install
3203 # As a last resort, use the slow shell script. We don't cache a
3204 # path for INSTALL within a source directory, because that will
3205 # break other packages using the cache if that directory is
3206 # removed, or if the path is relative.
3207 INSTALL=$ac_install_sh
3210 echo "$as_me:3210: result: $INSTALL" >&5
3211 echo "${ECHO_T}$INSTALL" >&6
3213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3214 # It thinks the first close brace ends the variable substitution.
3215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3225 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3226 test -z "$cf_dir" && cf_dir=.
3227 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3231 echo "$as_me:3231: checking for long file names" >&5
3232 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3233 if test "${ac_cv_sys_long_file_names+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 ac_cv_sys_long_file_names=yes
3237 # Test for long file names in all the places we know might matter:
3238 # . the current directory, where building will happen
3239 # $prefix/lib where we will be installing things
3240 # $exec_prefix/lib likewise
3241 # eval it to expand exec_prefix.
3242 # $TMPDIR if set, where it might want to write temporary files
3243 # if $TMPDIR is not set:
3244 # /tmp where it might want to write temporary files
3247 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3250 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3252 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3253 test -d $ac_dir || continue
3254 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3255 ac_xdir=$ac_dir/cf$$
3256 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3257 ac_tf1=$ac_xdir/conftest9012345
3258 ac_tf2=$ac_xdir/conftest9012346
3259 (echo 1 >$ac_tf1) 2>/dev/null
3260 (echo 2 >$ac_tf2) 2>/dev/null
3261 ac_val=`cat $ac_tf1 2>/dev/null`
3262 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3263 ac_cv_sys_long_file_names=no
3264 rm -rf $ac_xdir 2>/dev/null
3267 rm -rf $ac_xdir 2>/dev/null
3270 echo "$as_me:3270: result: $ac_cv_sys_long_file_names" >&5
3271 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3272 if test $ac_cv_sys_long_file_names = yes; then
3274 cat >>confdefs.h <<\EOF
3275 #define HAVE_LONG_FILE_NAMES 1
3280 echo "$as_me:3280: checking if filesystem supports mixed-case filenames" >&5
3281 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3282 if test "${cf_cv_mixedcase+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test "$cross_compiling" = yes ; then
3287 case $target_alias in #(vi
3288 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3296 rm -f conftest CONFTEST
3298 if test -f CONFTEST ; then
3303 rm -f conftest CONFTEST
3307 echo "$as_me:3307: result: $cf_cv_mixedcase" >&5
3308 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3309 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3310 #define MIXEDCASE_FILENAMES 1
3313 echo "$as_me:3313: checking whether ln -s works" >&5
3314 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3316 if test "$LN_S" = "ln -s"; then
3317 echo "$as_me:3317: result: yes" >&5
3318 echo "${ECHO_T}yes" >&6
3320 echo "$as_me:3320: result: no, using $LN_S" >&5
3321 echo "${ECHO_T}no, using $LN_S" >&6
3324 # Extract the first word of "ctags", so it can be a program name with args.
3325 set dummy ctags; ac_word=$2
3326 echo "$as_me:3326: checking for $ac_word" >&5
3327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 if test -n "$MAKE_LOWER_TAGS"; then
3332 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3334 ac_save_IFS=$IFS; IFS=$ac_path_separator
3336 for ac_dir in $ac_dummy; do
3338 test -z "$ac_dir" && ac_dir=.
3339 $as_executable_p "$ac_dir/$ac_word" || continue
3340 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3341 echo "$as_me:3341: found $ac_dir/$ac_word" >&5
3345 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3348 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3349 if test -n "$MAKE_LOWER_TAGS"; then
3350 echo "$as_me:3350: result: $MAKE_LOWER_TAGS" >&5
3351 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3353 echo "$as_me:3353: result: no" >&5
3354 echo "${ECHO_T}no" >&6
3357 if test "$cf_cv_mixedcase" = yes ; then
3358 # Extract the first word of "etags", so it can be a program name with args.
3359 set dummy etags; ac_word=$2
3360 echo "$as_me:3360: checking for $ac_word" >&5
3361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3362 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 if test -n "$MAKE_UPPER_TAGS"; then
3366 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3368 ac_save_IFS=$IFS; IFS=$ac_path_separator
3370 for ac_dir in $ac_dummy; do
3372 test -z "$ac_dir" && ac_dir=.
3373 $as_executable_p "$ac_dir/$ac_word" || continue
3374 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3375 echo "$as_me:3375: found $ac_dir/$ac_word" >&5
3379 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3382 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3383 if test -n "$MAKE_UPPER_TAGS"; then
3384 echo "$as_me:3384: result: $MAKE_UPPER_TAGS" >&5
3385 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3387 echo "$as_me:3387: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3395 if test "$MAKE_UPPER_TAGS" = yes ; then
3401 if test "$MAKE_LOWER_TAGS" = yes ; then
3407 for ac_prog in tdlint lint alint
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 echo "$as_me:3411: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_LINT+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test -n "$LINT"; then
3417 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3419 ac_save_IFS=$IFS; IFS=$ac_path_separator
3421 for ac_dir in $ac_dummy; do
3423 test -z "$ac_dir" && ac_dir=.
3424 $as_executable_p "$ac_dir/$ac_word" || continue
3425 ac_cv_prog_LINT="$ac_prog"
3426 echo "$as_me:3426: found $ac_dir/$ac_word" >&5
3432 LINT=$ac_cv_prog_LINT
3433 if test -n "$LINT"; then
3434 echo "$as_me:3434: result: $LINT" >&5
3435 echo "${ECHO_T}$LINT" >&6
3437 echo "$as_me:3437: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3441 test -n "$LINT" && break
3444 for ac_prog in man man_db
3446 # Extract the first word of "$ac_prog", so it can be a program name with args.
3447 set dummy $ac_prog; ac_word=$2
3448 echo "$as_me:3448: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_prog_MAN+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if test -n "$MAN"; then
3454 ac_cv_prog_MAN="$MAN" # Let the user override the test.
3456 ac_save_IFS=$IFS; IFS=$ac_path_separator
3458 for ac_dir in $ac_dummy; do
3460 test -z "$ac_dir" && ac_dir=.
3461 $as_executable_p "$ac_dir/$ac_word" || continue
3462 ac_cv_prog_MAN="$ac_prog"
3463 echo "$as_me:3463: found $ac_dir/$ac_word" >&5
3470 if test -n "$MAN"; then
3471 echo "$as_me:3471: result: $MAN" >&5
3472 echo "${ECHO_T}$MAN" >&6
3474 echo "$as_me:3474: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3478 test -n "$MAN" && break
3481 if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3484 echo "$as_me:3484: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3486 if test "${ac_cv_prog_RANLIB+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 if test -n "$RANLIB"; then
3490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3492 ac_save_IFS=$IFS; IFS=$ac_path_separator
3494 for ac_dir in $ac_dummy; do
3496 test -z "$ac_dir" && ac_dir=.
3497 $as_executable_p "$ac_dir/$ac_word" || continue
3498 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3499 echo "$as_me:3499: found $ac_dir/$ac_word" >&5
3505 RANLIB=$ac_cv_prog_RANLIB
3506 if test -n "$RANLIB"; then
3507 echo "$as_me:3507: result: $RANLIB" >&5
3508 echo "${ECHO_T}$RANLIB" >&6
3510 echo "$as_me:3510: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3515 if test -z "$ac_cv_prog_RANLIB"; then
3516 ac_ct_RANLIB=$RANLIB
3517 # Extract the first word of "ranlib", so it can be a program name with args.
3518 set dummy ranlib; ac_word=$2
3519 echo "$as_me:3519: checking for $ac_word" >&5
3520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 if test -n "$ac_ct_RANLIB"; then
3525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3527 ac_save_IFS=$IFS; IFS=$ac_path_separator
3529 for ac_dir in $ac_dummy; do
3531 test -z "$ac_dir" && ac_dir=.
3532 $as_executable_p "$ac_dir/$ac_word" || continue
3533 ac_cv_prog_ac_ct_RANLIB="ranlib"
3534 echo "$as_me:3534: found $ac_dir/$ac_word" >&5
3538 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3542 if test -n "$ac_ct_RANLIB"; then
3543 echo "$as_me:3543: result: $ac_ct_RANLIB" >&5
3544 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3546 echo "$as_me:3546: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3550 RANLIB=$ac_ct_RANLIB
3552 RANLIB="$ac_cv_prog_RANLIB"
3555 if test -n "$ac_tool_prefix"; then
3556 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}ld; ac_word=$2
3558 echo "$as_me:3558: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_LD+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test -n "$LD"; then
3564 ac_cv_prog_LD="$LD" # Let the user override the test.
3566 ac_save_IFS=$IFS; IFS=$ac_path_separator
3568 for ac_dir in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir=.
3571 $as_executable_p "$ac_dir/$ac_word" || continue
3572 ac_cv_prog_LD="${ac_tool_prefix}ld"
3573 echo "$as_me:3573: found $ac_dir/$ac_word" >&5
3580 if test -n "$LD"; then
3581 echo "$as_me:3581: result: $LD" >&5
3582 echo "${ECHO_T}$LD" >&6
3584 echo "$as_me:3584: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3589 if test -z "$ac_cv_prog_LD"; then
3591 # Extract the first word of "ld", so it can be a program name with args.
3592 set dummy ld; ac_word=$2
3593 echo "$as_me:3593: checking for $ac_word" >&5
3594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 if test -n "$ac_ct_LD"; then
3599 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3601 ac_save_IFS=$IFS; IFS=$ac_path_separator
3603 for ac_dir in $ac_dummy; do
3605 test -z "$ac_dir" && ac_dir=.
3606 $as_executable_p "$ac_dir/$ac_word" || continue
3607 ac_cv_prog_ac_ct_LD="ld"
3608 echo "$as_me:3608: found $ac_dir/$ac_word" >&5
3612 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3615 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3616 if test -n "$ac_ct_LD"; then
3617 echo "$as_me:3617: result: $ac_ct_LD" >&5
3618 echo "${ECHO_T}$ac_ct_LD" >&6
3620 echo "$as_me:3620: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}ar; ac_word=$2
3632 echo "$as_me:3632: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634 if test "${ac_cv_prog_AR+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 if test -n "$AR"; then
3638 ac_cv_prog_AR="$AR" # Let the user override the test.
3640 ac_save_IFS=$IFS; IFS=$ac_path_separator
3642 for ac_dir in $ac_dummy; do
3644 test -z "$ac_dir" && ac_dir=.
3645 $as_executable_p "$ac_dir/$ac_word" || continue
3646 ac_cv_prog_AR="${ac_tool_prefix}ar"
3647 echo "$as_me:3647: found $ac_dir/$ac_word" >&5
3654 if test -n "$AR"; then
3655 echo "$as_me:3655: result: $AR" >&5
3656 echo "${ECHO_T}$AR" >&6
3658 echo "$as_me:3658: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3663 if test -z "$ac_cv_prog_AR"; then
3665 # Extract the first word of "ar", so it can be a program name with args.
3666 set dummy ar; ac_word=$2
3667 echo "$as_me:3667: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 if test -n "$ac_ct_AR"; then
3673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3675 ac_save_IFS=$IFS; IFS=$ac_path_separator
3677 for ac_dir in $ac_dummy; do
3679 test -z "$ac_dir" && ac_dir=.
3680 $as_executable_p "$ac_dir/$ac_word" || continue
3681 ac_cv_prog_ac_ct_AR="ar"
3682 echo "$as_me:3682: found $ac_dir/$ac_word" >&5
3686 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3689 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3690 if test -n "$ac_ct_AR"; then
3691 echo "$as_me:3691: result: $ac_ct_AR" >&5
3692 echo "${ECHO_T}$ac_ct_AR" >&6
3694 echo "$as_me:3694: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3703 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 echo "$as_me:3707: checking for archiver options (symbol AR_OPTS)" >&5
3708 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3709 test -z "$AR_OPTS" && AR_OPTS=rv
3710 echo "$as_me:3710: result: $AR_OPTS" >&5
3711 echo "${ECHO_T}$AR_OPTS" >&6
3713 cf_cv_subst_AR_OPTS=$AR_OPTS
3716 AR_OPTS=${cf_cv_subst_AR_OPTS}
3718 echo "$as_me:3718: checking for makeflags variable" >&5
3719 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3720 if test "${cf_cv_makeflags+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
3727 cat >cf_makeflags.tmp <<CF_EOF
3730 @ echo '.$cf_option'
3732 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
3733 case "$cf_result" in
3735 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3736 case "$cf_result" in
3737 .*CC=*) cf_cv_makeflags=
3739 *) cf_cv_makeflags=$cf_option
3744 *) echo no match "$cf_result"
3748 rm -f cf_makeflags.tmp
3751 echo "$as_me:3751: result: $cf_cv_makeflags" >&5
3752 echo "${ECHO_T}$cf_cv_makeflags" >&6
3754 echo "$as_me:3754: checking if you have specified an install-prefix" >&5
3755 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3757 # Check whether --with-install-prefix or --without-install-prefix was given.
3758 if test "${with_install_prefix+set}" = set; then
3759 withval="$with_install_prefix"
3760 case "$withval" in #(vi
3763 *) DESTDIR="$withval"
3767 echo "$as_me:3767: result: $DESTDIR" >&5
3768 echo "${ECHO_T}$DESTDIR" >&6
3770 ###############################################################################
3772 # If we're cross-compiling, allow the user to override the tools and their
3773 # options. The configure script is oriented toward identifying the host
3774 # compiler, etc., but we need a build compiler to generate parts of the source.
3776 if test "$cross_compiling" = yes ; then
3778 # defaults that we might want to override
3779 : ${BUILD_CFLAGS:=''}
3780 : ${BUILD_CPPFLAGS:=''}
3781 : ${BUILD_LDFLAGS:=''}
3783 : ${BUILD_EXEEXT:='$x'}
3784 : ${BUILD_OBJEXT:='o'}
3786 # Check whether --with-build-cc or --without-build-cc was given.
3787 if test "${with_build_cc+set}" = set; then
3788 withval="$with_build_cc"
3791 for ac_prog in gcc cc cl
3793 # Extract the first word of "$ac_prog", so it can be a program name with args.
3794 set dummy $ac_prog; ac_word=$2
3795 echo "$as_me:3795: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -n "$BUILD_CC"; then
3801 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3803 ac_save_IFS=$IFS; IFS=$ac_path_separator
3805 for ac_dir in $ac_dummy; do
3807 test -z "$ac_dir" && ac_dir=.
3808 $as_executable_p "$ac_dir/$ac_word" || continue
3809 ac_cv_prog_BUILD_CC="$ac_prog"
3810 echo "$as_me:3810: found $ac_dir/$ac_word" >&5
3816 BUILD_CC=$ac_cv_prog_BUILD_CC
3817 if test -n "$BUILD_CC"; then
3818 echo "$as_me:3818: result: $BUILD_CC" >&5
3819 echo "${ECHO_T}$BUILD_CC" >&6
3821 echo "$as_me:3821: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3825 test -n "$BUILD_CC" && break
3829 echo "$as_me:3829: checking for native build C compiler" >&5
3830 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3831 echo "$as_me:3831: result: $BUILD_CC" >&5
3832 echo "${ECHO_T}$BUILD_CC" >&6
3834 echo "$as_me:3834: checking for native build C preprocessor" >&5
3835 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3837 # Check whether --with-build-cpp or --without-build-cpp was given.
3838 if test "${with_build_cpp+set}" = set; then
3839 withval="$with_build_cpp"
3840 BUILD_CPP="$withval"
3842 BUILD_CPP='$(BUILD_CC) -E'
3844 echo "$as_me:3844: result: $BUILD_CPP" >&5
3845 echo "${ECHO_T}$BUILD_CPP" >&6
3847 echo "$as_me:3847: checking for native build C flags" >&5
3848 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3850 # Check whether --with-build-cflags or --without-build-cflags was given.
3851 if test "${with_build_cflags+set}" = set; then
3852 withval="$with_build_cflags"
3853 BUILD_CFLAGS="$withval"
3855 echo "$as_me:3855: result: $BUILD_CFLAGS" >&5
3856 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3858 echo "$as_me:3858: checking for native build C preprocessor-flags" >&5
3859 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3861 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3862 if test "${with_build_cppflags+set}" = set; then
3863 withval="$with_build_cppflags"
3864 BUILD_CPPFLAGS="$withval"
3866 echo "$as_me:3866: result: $BUILD_CPPFLAGS" >&5
3867 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3869 echo "$as_me:3869: checking for native build linker-flags" >&5
3870 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3872 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3873 if test "${with_build_ldflags+set}" = set; then
3874 withval="$with_build_ldflags"
3875 BUILD_LDFLAGS="$withval"
3877 echo "$as_me:3877: result: $BUILD_LDFLAGS" >&5
3878 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3880 echo "$as_me:3880: checking for native build linker-libraries" >&5
3881 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3883 # Check whether --with-build-libs or --without-build-libs was given.
3884 if test "${with_build_libs+set}" = set; then
3885 withval="$with_build_libs"
3886 BUILD_LIBS="$withval"
3888 echo "$as_me:3888: result: $BUILD_LIBS" >&5
3889 echo "${ECHO_T}$BUILD_LIBS" >&6
3891 # this assumes we're on Unix.
3895 : ${BUILD_CC:='$(CC)'}
3897 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '$(CC)' ) ; then
3898 { { echo "$as_me:3898: error: Cross-build requires two compilers.
3899 Use --with-build-cc to specify the native compiler." >&5
3900 echo "$as_me: error: Cross-build requires two compilers.
3901 Use --with-build-cc to specify the native compiler." >&2;}
3902 { (exit 1); exit 1; }; }
3906 : ${BUILD_CC:='$(CC)'}
3907 : ${BUILD_CPP:='$(CPP)'}
3908 : ${BUILD_CFLAGS:='$(CFLAGS)'}
3909 : ${BUILD_CPPFLAGS:='$(CPPFLAGS)'}
3910 : ${BUILD_LDFLAGS:='$(LDFLAGS)'}
3911 : ${BUILD_LIBS:='$(LIBS)'}
3912 : ${BUILD_EXEEXT:='$x'}
3913 : ${BUILD_OBJEXT:='o'}
3916 ###############################################################################
3918 ### Options to allow the user to specify the set of libraries which are used.
3919 ### Use "--without-normal --with-shared" to allow the default model to be
3920 ### shared, for example.
3925 # common library maintenance symbols that are convenient for libtool scripts:
3926 LIB_CREATE='$(AR) -cr'
3927 LIB_OBJECT='$(OBJECTS)'
3931 # symbols used to prop libtool up to enable it to determine what it should be
3939 echo "$as_me:3939: checking if you want to build libraries with libtool" >&5
3940 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
3942 # Check whether --with-libtool or --without-libtool was given.
3943 if test "${with_libtool+set}" = set; then
3944 withval="$with_libtool"
3945 with_libtool=$withval
3949 echo "$as_me:3949: result: $with_libtool" >&5
3950 echo "${ECHO_T}$with_libtool" >&6
3951 if test "$with_libtool" != "no"; then
3953 if test "$with_libtool" != "yes" ; then
3955 case ".$with_libtool" in #(vi
3956 .\$\(*\)*|.\'*\'*) #(vi
3960 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3963 eval with_libtool="$with_libtool"
3964 case ".$with_libtool" in #(vi
3966 with_libtool=`echo $with_libtool | sed -e s%NONE%$ac_default_prefix%`
3971 with_libtool=`echo $with_libtool | sed -e s%NONE%$ac_default_prefix%`
3974 { { echo "$as_me:3974: error: expected a pathname, not \"$with_libtool\"" >&5
3975 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
3976 { (exit 1); exit 1; }; }
3980 LIBTOOL=$with_libtool
3982 # Extract the first word of "libtool", so it can be a program name with args.
3983 set dummy libtool; ac_word=$2
3984 echo "$as_me:3984: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_path_LIBTOOL+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
3994 ac_save_IFS=$IFS; IFS=$ac_path_separator
3996 for ac_dir in $ac_dummy; do
3998 test -z "$ac_dir" && ac_dir=.
3999 if $as_executable_p "$ac_dir/$ac_word"; then
4000 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4001 echo "$as_me:4001: found $ac_dir/$ac_word" >&5
4009 LIBTOOL=$ac_cv_path_LIBTOOL
4011 if test -n "$LIBTOOL"; then
4012 echo "$as_me:4012: result: $LIBTOOL" >&5
4013 echo "${ECHO_T}$LIBTOOL" >&6
4015 echo "$as_me:4015: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4020 if test -z "$LIBTOOL" ; then
4021 { { echo "$as_me:4021: error: Cannot find libtool" >&5
4022 echo "$as_me: error: Cannot find libtool" >&2;}
4023 { (exit 1); exit 1; }; }
4025 LIB_CREATE='$(LIBTOOL) --mode=link $(CC) -rpath $(DESTDIR)$(libdir) -version-info `cut -f1 $(srcdir)/VERSION` -o'
4026 LIB_OBJECT='$(OBJECTS:.o=.lo)'
4028 LIB_CLEAN='$(LIBTOOL) --mode=clean'
4029 LIB_COMPILE='$(LIBTOOL) --mode=compile'
4030 LIB_LINK='$(LIBTOOL) --mode=link'
4031 LIB_INSTALL='$(LIBTOOL) --mode=install'
4032 LIB_UNINSTALL='$(LIBTOOL) --mode=uninstall'
4035 # Show the version of libtool
4036 echo "$as_me:4036: checking version of libtool" >&5
4037 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4039 # Save the version in a cache variable - this is not entirely a good
4040 # thing, but the version string from libtool is very ugly, and for
4041 # bug reports it might be useful to have the original string.
4042 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4043 echo "$as_me:4043: result: $cf_cv_libtool_version" >&5
4044 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4045 if test -z "$cf_cv_libtool_version" ; then
4046 { { echo "$as_me:4046: error: This is not libtool" >&5
4047 echo "$as_me: error: This is not libtool" >&2;}
4048 { (exit 1); exit 1; }; }
4051 # special hack to add --tag option for C++ compiler
4052 case $cf_cv_libtool_version in
4054 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4057 LIBTOOL_CXX="$LIBTOOL"
4065 test -z "$LIBTOOL" && ECHO_LT=
4067 if test "$with_libtool" != "no" ; then
4069 cf_list_models="$cf_list_models libtool"
4073 echo "$as_me:4073: checking if you want to build shared libraries" >&5
4074 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >