2 # From configure.in Revision: 1.312 .
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-cflags=XXX the build C compiler-flags
670 --with-build-cppflags=XXX the build C preprocessor-flags
671 --with-build-ldflags=XXX the build linker-flags
672 --with-build-libs=XXX the build libraries
673 Options to Specify the Libraries Built/Used:
674 --with-libtool generate libraries with libtool
675 --with-shared generate shared-libraries
676 --with-normal generate normal-libraries (default)
677 --with-debug generate debug-libraries (default)
678 --with-profile generate profile-libraries
679 --with-termlib generate separate terminfo library
680 --with-dbmalloc test: use Conor Cahill's dbmalloc library
681 --with-dmalloc test: use Gray Watson's dmalloc library
682 --with-gpm use Alessandro Rubini's GPM library
683 --with-sysmouse use sysmouse (FreeBSD console)
684 --enable-rpath use rpath option when generating shared libraries
685 --with-shlib-version=X Specify rel or abi version for shared libs
686 Fine-Tuning Your Configuration:
687 --disable-overwrite leave out the link to -lcurses
688 --disable-database do not use terminfo, only fallbacks/termcap
689 --with-database=XXX specify terminfo source to install
690 --with-fallbacks=XXX specify list of fallback terminal descriptions
691 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
692 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
693 --disable-big-core assume machine has little memory
694 --enable-termcap compile in termcap fallback support
695 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
696 --enable-getcap fast termcap load, no xrefs to terminfo
697 --enable-getcap-cache cache translated termcaps in ~/.terminfo
698 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
699 --enable-symlinks make tic use symbolic links not hard links
700 --enable-broken_linker compile with broken-linker support code
701 --with-bool=TYPE override fallback type of bool variable
702 --with-ospeed=TYPE override type of ospeed variable
703 --enable-bsdpad recognize BSD-style prefix padding
704 --with-rcs-ids compile-in RCS identifiers
705 Options to Specify How Manpages are Installed:
706 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
707 optionally formatted/catonly, e.g., gzip,formatted
708 --with-manpage-renames specify manpage-renaming
709 --with-manpage-aliases specify manpage-aliases using .so
710 --with-manpage-symlinks specify manpage-aliases using symlinks
711 --with-manpage-tbl specify manpage processing with tbl
713 --disable-ext-funcs disable function-extensions
714 --enable-const compile with extra/non-standard const
715 --enable-no-padding compile with $NCURSES_NO_PADDING code
716 --enable-sigwinch compile with SIGWINCH handler
717 --enable-tcap-names compile with user-definable terminal capabilities
719 --with-develop enable all development options
720 --enable-hard-tabs compile with hard-tabs code
721 --disable-root-environ limit environment when running as root
722 --enable-xmc-glitch compile with limited support for xmc
724 --disable-assumed-color do not assume anything about default-colors
725 --disable-hashmap compile without hashmap scrolling-optimization
726 --enable-colorfgbg compile with $COLORFGBG code
727 --enable-safe-sprintf compile with experimental safe-sprintf code
728 --disable-scroll-hints compile without scroll-hints code
729 --enable-widec compile with experimental wide-char/UTF-8 code
730 --with-caps=alt compile with experimental alternate Caps file
731 Testing/development Options:
732 --enable-echo build: display "compiling" commands (default)
733 --enable-warnings build: turn on GCC compiler warnings
734 --enable-assertions test: turn on generation of assertion code
735 --disable-leaks test: suppress permanent memory-leaks
736 --enable-expanded test: generate functions for certain macros
737 --disable-macros test: use functions rather than macros
738 --with-trace test: add trace() function to all models of ncurses
739 Ada95 Binding Options:
740 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
741 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
742 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
744 Some influential environment variables:
745 CC C compiler command
746 CFLAGS C compiler flags
747 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
748 nonstandard directory <lib dir>
749 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
750 headers in a nonstandard directory <include dir>
752 CXX C++ compiler command
753 CXXFLAGS C++ compiler flags
754 CXXCPP C++ preprocessor
756 Use these variables to override the choices made by `configure' or to help
757 it to find libraries and programs with nonstandard names/locations.
762 if test "$ac_init_help" = "recursive"; then
763 # If there are subdirs, report their specific --help.
765 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
767 # A "../" for each directory in /$ac_subdir.
768 ac_dots=`echo $ac_subdir |
769 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
772 .) # No --srcdir option. We are building in place.
773 ac_sub_srcdir=$srcdir ;;
774 [\\/]* | ?:[\\/]* ) # Absolute path.
775 ac_sub_srcdir=$srcdir/$ac_subdir ;;
777 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
780 # Check for guested configure; otherwise get Cygnus style configure.
781 if test -f $ac_sub_srcdir/configure.gnu; then
783 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
784 elif test -f $ac_sub_srcdir/configure; then
786 $SHELL $ac_sub_srcdir/configure --help=recursive
787 elif test -f $ac_sub_srcdir/configure.ac ||
788 test -f $ac_sub_srcdir/configure.in; then
792 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
798 test -n "$ac_init_help" && exit 0
799 if $ac_init_version; then
802 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
803 Free Software Foundation, Inc.
804 This configure script is free software; the Free Software Foundation
805 gives unlimited permission to copy, distribute and modify it.
811 This file contains any messages produced by compilers while
812 running configure, to aid debugging if configure makes a mistake.
814 It was created by $as_me, which was
815 generated by GNU Autoconf 2.52.20030208. Invocation command line was
826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
833 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
835 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
836 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
838 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
839 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
840 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
841 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
855 # Keep a trace of the command line.
856 # Strip out --no-create and --no-recursion so they do not pile up.
857 # Also quote any args containing shell meta-characters.
863 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
864 | --no-cr | --no-c) ;;
865 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
866 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
867 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
868 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
869 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
871 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
874 # Get rid of the leading space.
877 # When interrupted or exit'd, cleanup temporary files, and complete
878 # config.log. We remove comments because anyway the quotes in there
879 # would cause problems or look ugly.
881 # Save into config.log some information that might help in debugging.
883 echo "## ----------------- ##" >&5
884 echo "## Cache variables. ##" >&5
885 echo "## ----------------- ##" >&5
887 # The following way of writing the cache mishandles newlines in values,
890 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
893 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
902 sed "/^$/d" confdefs.h >conftest.log
903 if test -s conftest.log; then
905 echo "## ------------ ##" >&5
906 echo "## confdefs.h. ##" >&5
907 echo "## ------------ ##" >&5
912 test "$ac_signal" != 0 &&
913 echo "$as_me: caught signal $ac_signal" >&5
914 echo "$as_me: exit $exit_status" >&5
915 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
918 for ac_signal in 1 2 13 15; do
919 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
923 # confdefs.h avoids OS command line length limits that DEFS can exceed.
924 rm -rf conftest* confdefs.h
925 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
928 # Let the site file select an alternate cache file if it wants to.
929 # Prefer explicitly selected file to automatically selected ones.
930 if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE; then
932 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
934 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
937 for ac_site_file in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
939 { echo "$as_me:939: loading site script $ac_site_file" >&5
940 echo "$as_me: loading site script $ac_site_file" >&6;}
941 cat "$ac_site_file" >&5
946 if test -r "$cache_file"; then
947 # Some versions of bash will fail to source /dev/null (special
948 # files actually), so we avoid doing that.
949 if test -f "$cache_file"; then
950 { echo "$as_me:950: loading cache $cache_file" >&5
951 echo "$as_me: loading cache $cache_file" >&6;}
953 [\\/]* | ?:[\\/]* ) . $cache_file;;
958 { echo "$as_me:958: creating cache $cache_file" >&5
959 echo "$as_me: creating cache $cache_file" >&6;}
963 # Check that the precious variables saved in the cache have kept the same
965 ac_cache_corrupted=false
966 for ac_var in `(set) 2>&1 |
967 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
968 eval ac_old_set=\$ac_cv_env_${ac_var}_set
969 eval ac_new_set=\$ac_env_${ac_var}_set
970 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
971 eval ac_new_val="\$ac_env_${ac_var}_value"
972 case $ac_old_set,$ac_new_set in
974 { echo "$as_me:974: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
975 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
976 ac_cache_corrupted=: ;;
978 { echo "$as_me:978: error: \`$ac_var' was not set in the previous run" >&5
979 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
980 ac_cache_corrupted=: ;;
983 if test "x$ac_old_val" != "x$ac_new_val"; then
984 { echo "$as_me:984: error: \`$ac_var' has changed since the previous run:" >&5
985 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
986 { echo "$as_me:986: former value: $ac_old_val" >&5
987 echo "$as_me: former value: $ac_old_val" >&2;}
988 { echo "$as_me:988: current value: $ac_new_val" >&5
989 echo "$as_me: current value: $ac_new_val" >&2;}
993 # Pass precious variables to config.status. It doesn't matter if
994 # we pass some twice (in addition to the command line arguments).
995 if test "$ac_new_set" = set; then
997 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
998 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
999 ac_configure_args="$ac_configure_args '$ac_arg'"
1001 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1006 if $ac_cache_corrupted; then
1007 { echo "$as_me:1007: error: changes in the environment can compromise the build" >&5
1008 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1009 { { echo "$as_me:1009: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1010 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1011 { (exit 1); exit 1; }; }
1015 ac_cpp='$CPP $CPPFLAGS'
1016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1020 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1021 *c*,-n*) ECHO_N= ECHO_C='
1023 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1024 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1026 echo "#! $SHELL" >conftest.sh
1027 echo "exit 0" >>conftest.sh
1028 chmod +x conftest.sh
1029 if { (echo "$as_me:1029: PATH=\".;.\"; conftest.sh") >&5
1030 (PATH=".;."; conftest.sh) 2>&5
1032 echo "$as_me:1032: \$? = $ac_status" >&5
1033 (exit $ac_status); }; then
1034 ac_path_separator=';'
1038 PATH_SEPARATOR="$ac_path_separator"
1041 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1043 NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1044 NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1045 NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1046 cf_cv_abi_version=${NCURSES_MAJOR}
1047 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1048 cf_cv_timestamp=`date`
1049 echo "$as_me:1049: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1050 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1052 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1054 # Check whether --with-rel-version or --without-rel-version was given.
1055 if test "${with_rel_version+set}" = set; then
1056 withval="$with_rel_version"
1057 { echo "$as_me:1057: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1058 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1059 cf_cv_rel_version=$withval
1062 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1063 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1065 if test -n "$NCURSES_MAJOR" ; then
1066 case $NCURSES_MAJOR in #(vi
1070 { { echo "$as_me:1070: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1071 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1072 { (exit 1); exit 1; }; }
1076 { { echo "$as_me:1076: error: Release major-version value is empty" >&5
1077 echo "$as_me: error: Release major-version value is empty" >&2;}
1078 { (exit 1); exit 1; }; }
1081 if test -n "$NCURSES_MINOR" ; then
1082 case $NCURSES_MINOR in #(vi
1086 { { echo "$as_me:1086: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1087 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1088 { (exit 1); exit 1; }; }
1092 { { echo "$as_me:1092: error: Release minor-version value is empty" >&5
1093 echo "$as_me: error: Release minor-version value is empty" >&2;}
1094 { (exit 1); exit 1; }; }
1097 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1099 # Check whether --with-abi-version or --without-abi-version was given.
1100 if test "${with_abi_version+set}" = set; then
1101 withval="$with_abi_version"
1102 { echo "$as_me:1102: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1103 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1104 cf_cv_abi_version=$withval
1107 if test -n "$cf_cv_abi_version" ; then
1108 case $cf_cv_abi_version in #(vi
1112 { { echo "$as_me:1112: error: ABI version is not a number: $cf_cv_abi_version" >&5
1113 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1114 { (exit 1); exit 1; }; }
1118 { { echo "$as_me:1118: error: ABI version value is empty" >&5
1119 echo "$as_me: error: ABI version value is empty" >&2;}
1120 { (exit 1); exit 1; }; }
1124 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1125 if test -f $ac_dir/install-sh; then
1127 ac_install_sh="$ac_aux_dir/install-sh -c"
1129 elif test -f $ac_dir/install.sh; then
1131 ac_install_sh="$ac_aux_dir/install.sh -c"
1133 elif test -f $ac_dir/shtool; then
1135 ac_install_sh="$ac_aux_dir/shtool install -c"
1139 if test -z "$ac_aux_dir"; then
1140 { { echo "$as_me:1140: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1141 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1142 { (exit 1); exit 1; }; }
1144 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1145 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1146 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1148 # Make sure we can run config.sub.
1149 $ac_config_sub sun4 >/dev/null 2>&1 ||
1150 { { echo "$as_me:1150: error: cannot run $ac_config_sub" >&5
1151 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1152 { (exit 1); exit 1; }; }
1154 echo "$as_me:1154: checking build system type" >&5
1155 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1156 if test "${ac_cv_build+set}" = set; then
1157 echo $ECHO_N "(cached) $ECHO_C" >&6
1159 ac_cv_build_alias=$build_alias
1160 test -z "$ac_cv_build_alias" &&
1161 ac_cv_build_alias=`$ac_config_guess`
1162 test -z "$ac_cv_build_alias" &&
1163 { { echo "$as_me:1163: error: cannot guess build type; you must specify one" >&5
1164 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1165 { (exit 1); exit 1; }; }
1166 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1167 { { echo "$as_me:1167: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1168 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1169 { (exit 1); exit 1; }; }
1172 echo "$as_me:1172: result: $ac_cv_build" >&5
1173 echo "${ECHO_T}$ac_cv_build" >&6
1175 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1176 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1177 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1179 echo "$as_me:1179: checking host system type" >&5
1180 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1181 if test "${ac_cv_host+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1184 ac_cv_host_alias=$host_alias
1185 test -z "$ac_cv_host_alias" &&
1186 ac_cv_host_alias=$ac_cv_build_alias
1187 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1188 { { echo "$as_me:1188: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1189 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1190 { (exit 1); exit 1; }; }
1193 echo "$as_me:1193: result: $ac_cv_host" >&5
1194 echo "${ECHO_T}$ac_cv_host" >&6
1196 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1197 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1198 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1200 if test -f $srcdir/config.guess ; then
1201 echo "$as_me:1201: checking target system type" >&5
1202 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1203 if test "${ac_cv_target+set}" = set; then
1204 echo $ECHO_N "(cached) $ECHO_C" >&6
1206 ac_cv_target_alias=$target_alias
1207 test "x$ac_cv_target_alias" = "x" &&
1208 ac_cv_target_alias=$ac_cv_host_alias
1209 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1210 { { echo "$as_me:1210: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1211 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1212 { (exit 1); exit 1; }; }
1215 echo "$as_me:1215: result: $ac_cv_target" >&5
1216 echo "${ECHO_T}$ac_cv_target" >&6
1217 target=$ac_cv_target
1218 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1219 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1220 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1222 # The aliases save the names the user supplied, while $host etc.
1223 # will get canonicalized.
1224 test -n "$target_alias" &&
1225 test "$program_prefix$program_suffix$program_transform_name" = \
1227 program_prefix=${target_alias}-
1228 system_name="$host_os"
1230 system_name="`(uname -s -r) 2>/dev/null`"
1231 if test -z "$system_name" ; then
1232 system_name="`(hostname) 2>/dev/null`"
1235 test -n "$system_name" && cat >>confdefs.h <<EOF
1236 #define SYSTEM_NAME "$system_name"
1239 if test "${cf_cv_system_name+set}" = set; then
1240 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 cf_cv_system_name="$system_name"
1245 test -z "$system_name" && system_name="$cf_cv_system_name"
1246 test -n "$cf_cv_system_name" && echo "$as_me:1246: result: Configuring for $cf_cv_system_name" >&5
1247 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1249 if test ".$system_name" != ".$cf_cv_system_name" ; then
1250 echo "$as_me:1250: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1251 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1252 { { echo "$as_me:1252: error: \"Please remove config.cache and try again.\"" >&5
1253 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1254 { (exit 1); exit 1; }; }
1257 # Check whether --with-system-type or --without-system-type was given.
1258 if test "${with_system_type+set}" = set; then
1259 withval="$with_system_type"
1260 { echo "$as_me:1260: WARNING: overriding system type to $withval" >&5
1261 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1262 cf_cv_system_name=$withval
1265 ### Save the given $CFLAGS to allow user-override.
1266 cf_user_CFLAGS="$CFLAGS"
1268 ### Default install-location
1270 echo "$as_me:1270: checking for prefix" >&5
1271 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1272 if test "x$prefix" = "xNONE" ; then
1273 case "$cf_cv_system_name" in
1274 # non-vendor systems don't have a conflict
1275 openbsd*|netbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1278 *) prefix=$ac_default_prefix
1282 echo "$as_me:1282: result: $prefix" >&5
1283 echo "${ECHO_T}$prefix" >&6
1285 if test "x$prefix" = "xNONE" ; then
1286 echo "$as_me:1286: checking for default include-directory" >&5
1287 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1288 test -n "$verbose" && echo 1>&6
1291 $includedir/ncurses \
1293 $prefix/include/ncurses \
1294 /usr/local/include \
1295 /usr/local/include/ncurses \
1297 /usr/include/ncurses
1299 cf_dir=`eval echo $cf_symbol`
1300 if test -f $cf_dir/curses.h ; then
1301 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1302 includedir="$cf_symbol"
1303 test -n "$verbose" && echo $ac_n " found " 1>&6
1307 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1309 echo "$as_me:1309: result: $includedir" >&5
1310 echo "${ECHO_T}$includedir" >&6
1313 ### Checks for programs.
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 if test -n "$ac_tool_prefix"; then
1320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1322 echo "$as_me:1322: checking for $ac_word" >&5
1323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1324 if test "${ac_cv_prog_CC+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 if test -n "$CC"; then
1328 ac_cv_prog_CC="$CC" # Let the user override the test.
1330 ac_save_IFS=$IFS; IFS=$ac_path_separator
1332 for ac_dir in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir=.
1335 $as_executable_p "$ac_dir/$ac_word" || continue
1336 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1337 echo "$as_me:1337: found $ac_dir/$ac_word" >&5
1344 if test -n "$CC"; then
1345 echo "$as_me:1345: result: $CC" >&5
1346 echo "${ECHO_T}$CC" >&6
1348 echo "$as_me:1348: result: no" >&5
1349 echo "${ECHO_T}no" >&6
1353 if test -z "$ac_cv_prog_CC"; then
1355 # Extract the first word of "gcc", so it can be a program name with args.
1356 set dummy gcc; ac_word=$2
1357 echo "$as_me:1357: checking for $ac_word" >&5
1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 if test -n "$ac_ct_CC"; then
1363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1365 ac_save_IFS=$IFS; IFS=$ac_path_separator
1367 for ac_dir in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir=.
1370 $as_executable_p "$ac_dir/$ac_word" || continue
1371 ac_cv_prog_ac_ct_CC="gcc"
1372 echo "$as_me:1372: found $ac_dir/$ac_word" >&5
1378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1379 if test -n "$ac_ct_CC"; then
1380 echo "$as_me:1380: result: $ac_ct_CC" >&5
1381 echo "${ECHO_T}$ac_ct_CC" >&6
1383 echo "$as_me:1383: result: no" >&5
1384 echo "${ECHO_T}no" >&6
1392 if test -z "$CC"; then
1393 if test -n "$ac_tool_prefix"; then
1394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1395 set dummy ${ac_tool_prefix}cc; ac_word=$2
1396 echo "$as_me:1396: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_CC+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 if test -n "$CC"; then
1402 ac_cv_prog_CC="$CC" # Let the user override the test.
1404 ac_save_IFS=$IFS; IFS=$ac_path_separator
1406 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 $as_executable_p "$ac_dir/$ac_word" || continue
1410 ac_cv_prog_CC="${ac_tool_prefix}cc"
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1418 if test -n "$CC"; then
1419 echo "$as_me:1419: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1422 echo "$as_me:1422: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1427 if test -z "$ac_cv_prog_CC"; then
1429 # Extract the first word of "cc", so it can be a program name with args.
1430 set dummy cc; ac_word=$2
1431 echo "$as_me:1431: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$ac_ct_CC"; then
1437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1439 ac_save_IFS=$IFS; IFS=$ac_path_separator
1441 for ac_dir in $ac_dummy; do
1443 test -z "$ac_dir" && ac_dir=.
1444 $as_executable_p "$ac_dir/$ac_word" || continue
1445 ac_cv_prog_ac_ct_CC="cc"
1446 echo "$as_me:1446: found $ac_dir/$ac_word" >&5
1452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1453 if test -n "$ac_ct_CC"; then
1454 echo "$as_me:1454: result: $ac_ct_CC" >&5
1455 echo "${ECHO_T}$ac_ct_CC" >&6
1457 echo "$as_me:1457: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1467 if test -z "$CC"; then
1468 # Extract the first word of "cc", so it can be a program name with args.
1469 set dummy cc; ac_word=$2
1470 echo "$as_me:1470: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 ac_save_IFS=$IFS; IFS=$ac_path_separator
1481 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 $as_executable_p "$ac_dir/$ac_word" || continue
1485 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1486 ac_prog_rejected=yes
1490 echo "$as_me:1490: found $ac_dir/$ac_word" >&5
1494 if test $ac_prog_rejected = yes; then
1495 # We found a bogon in the path, so make sure we never use it.
1496 set dummy $ac_cv_prog_CC
1498 if test $# != 0; then
1499 # We chose a different compiler from the bogus one.
1500 # However, it has the same basename, so the bogon will be chosen
1501 # first if we set CC to just the basename; use the full file name.
1503 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1511 if test -n "$CC"; then
1512 echo "$as_me:1512: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1515 echo "$as_me:1515: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1526 echo "$as_me:1526: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 ac_save_IFS=$IFS; IFS=$ac_path_separator
1536 for ac_dir in $ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 $as_executable_p "$ac_dir/$ac_word" || continue
1540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1541 echo "$as_me:1541: found $ac_dir/$ac_word" >&5
1548 if test -n "$CC"; then
1549 echo "$as_me:1549: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1552 echo "$as_me:1552: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1556 test -n "$CC" && break
1559 if test -z "$CC"; then
1563 # Extract the first word of "$ac_prog", so it can be a program name with args.
1564 set dummy $ac_prog; ac_word=$2
1565 echo "$as_me:1565: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 ac_save_IFS=$IFS; IFS=$ac_path_separator
1575 for ac_dir in $ac_dummy; do
1577 test -z "$ac_dir" && ac_dir=.
1578 $as_executable_p "$ac_dir/$ac_word" || continue
1579 ac_cv_prog_ac_ct_CC="$ac_prog"
1580 echo "$as_me:1580: found $ac_dir/$ac_word" >&5
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:1588: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1591 echo "$as_me:1591: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1595 test -n "$ac_ct_CC" && break
1603 test -z "$CC" && { { echo "$as_me:1603: error: no acceptable cc found in \$PATH" >&5
1604 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1605 { (exit 1); exit 1; }; }
1607 # Provide some information about the compiler.
1608 echo "$as_me:1608:" \
1609 "checking for C compiler version" >&5
1610 ac_compiler=`set X $ac_compile; echo $2`
1611 { (eval echo "$as_me:1611: \"$ac_compiler --version </dev/null >&5\"") >&5
1612 (eval $ac_compiler --version </dev/null >&5) 2>&5
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }
1616 { (eval echo "$as_me:1616: \"$ac_compiler -v </dev/null >&5\"") >&5
1617 (eval $ac_compiler -v </dev/null >&5) 2>&5
1619 echo "$as_me:1619: \$? = $ac_status" >&5
1620 (exit $ac_status); }
1621 { (eval echo "$as_me:1621: \"$ac_compiler -V </dev/null >&5\"") >&5
1622 (eval $ac_compiler -V </dev/null >&5) 2>&5
1624 echo "$as_me:1624: \$? = $ac_status" >&5
1625 (exit $ac_status); }
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line 1628 "configure"
1629 #include "confdefs.h"
1639 ac_clean_files_save=$ac_clean_files
1640 ac_clean_files="$ac_clean_files a.out a.exe"
1641 # Try to create an executable without -o first, disregard a.out.
1642 # It will help us diagnose broken compilers, and finding out an intuition
1644 echo "$as_me:1644: checking for C compiler default output" >&5
1645 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1646 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1647 if { (eval echo "$as_me:1647: \"$ac_link_default\"") >&5
1648 (eval $ac_link_default) 2>&5
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); }; then
1652 # Find the output, starting from the most likely. This scheme is
1653 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1655 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1656 ls a.out conftest 2>/dev/null;
1657 ls a.* conftest.* 2>/dev/null`; do
1659 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1660 a.out ) # We found the default executable, but exeext='' is most
1663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1664 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1671 echo "$as_me: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1673 { { echo "$as_me:1673: error: C compiler cannot create executables" >&5
1674 echo "$as_me: error: C compiler cannot create executables" >&2;}
1675 { (exit 77); exit 77; }; }
1678 ac_exeext=$ac_cv_exeext
1679 echo "$as_me:1679: result: $ac_file" >&5
1680 echo "${ECHO_T}$ac_file" >&6
1682 # Check the compiler produces executables we can run. If not, either
1683 # the compiler is broken, or we cross compile.
1684 echo "$as_me:1684: checking whether the C compiler works" >&5
1685 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1686 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1687 # If not cross compiling, check that we can run a simple program.
1688 if test "$cross_compiling" != yes; then
1689 if { ac_try='./$ac_file'
1690 { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; }; then
1697 if test "$cross_compiling" = maybe; then
1700 { { echo "$as_me:1700: error: cannot run C compiled programs.
1701 If you meant to cross compile, use \`--host'." >&5
1702 echo "$as_me: error: cannot run C compiled programs.
1703 If you meant to cross compile, use \`--host'." >&2;}
1704 { (exit 1); exit 1; }; }
1708 echo "$as_me:1708: result: yes" >&5
1709 echo "${ECHO_T}yes" >&6
1711 rm -f a.out a.exe conftest$ac_cv_exeext
1712 ac_clean_files=$ac_clean_files_save
1713 # Check the compiler produces executables we can run. If not, either
1714 # the compiler is broken, or we cross compile.
1715 echo "$as_me:1715: checking whether we are cross compiling" >&5
1716 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1717 echo "$as_me:1717: result: $cross_compiling" >&5
1718 echo "${ECHO_T}$cross_compiling" >&6
1720 echo "$as_me:1720: checking for executable suffix" >&5
1721 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1722 if { (eval echo "$as_me:1722: \"$ac_link\"") >&5
1723 (eval $ac_link) 2>&5
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); }; then
1727 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1728 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1729 # work properly (i.e., refer to `conftest.exe'), while it won't with
1731 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1733 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1741 { { echo "$as_me:1741: error: cannot compute EXEEXT: cannot compile and link" >&5
1742 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1743 { (exit 1); exit 1; }; }
1746 rm -f conftest$ac_cv_exeext
1747 echo "$as_me:1747: result: $ac_cv_exeext" >&5
1748 echo "${ECHO_T}$ac_cv_exeext" >&6
1750 rm -f conftest.$ac_ext
1751 EXEEXT=$ac_cv_exeext
1753 echo "$as_me:1753: checking for object suffix" >&5
1754 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1755 if test "${ac_cv_objext+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 cat >conftest.$ac_ext <<_ACEOF
1759 #line 1759 "configure"
1760 #include "confdefs.h"
1770 rm -f conftest.o conftest.obj
1771 if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
1772 (eval $ac_compile) 2>&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; then
1776 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1784 echo "$as_me: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 { { echo "$as_me:1786: error: cannot compute OBJEXT: cannot compile" >&5
1787 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1788 { (exit 1); exit 1; }; }
1791 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1793 echo "$as_me:1793: result: $ac_cv_objext" >&5
1794 echo "${ECHO_T}$ac_cv_objext" >&6
1795 OBJEXT=$ac_cv_objext
1797 echo "$as_me:1797: checking whether we are using the GNU C compiler" >&5
1798 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1799 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1817 rm -f conftest.$ac_objext
1818 if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
1819 (eval $ac_compile) 2>&5
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); } &&
1823 { ac_try='test -s conftest.$ac_objext'
1824 { (eval echo "$as_me:1824: \"$ac_try\"") >&5
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1831 echo "$as_me: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1835 rm -f conftest.$ac_objext conftest.$ac_ext
1836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1839 echo "$as_me:1839: result: $ac_cv_c_compiler_gnu" >&5
1840 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1841 GCC=`test $ac_compiler_gnu = yes && echo yes`
1842 ac_test_CFLAGS=${CFLAGS+set}
1843 ac_save_CFLAGS=$CFLAGS
1845 echo "$as_me:1845: checking whether $CC accepts -g" >&5
1846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1847 if test "${ac_cv_prog_cc_g+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1862 rm -f conftest.$ac_objext
1863 if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); } &&
1868 { ac_try='test -s conftest.$ac_objext'
1869 { (eval echo "$as_me:1869: \"$ac_try\"") >&5
1872 echo "$as_me:1872: \$? = $ac_status" >&5
1873 (exit $ac_status); }; }; then
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1880 rm -f conftest.$ac_objext conftest.$ac_ext
1882 echo "$as_me:1882: result: $ac_cv_prog_cc_g" >&5
1883 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1884 if test "$ac_test_CFLAGS" = set; then
1885 CFLAGS=$ac_save_CFLAGS
1886 elif test $ac_cv_prog_cc_g = yes; then
1887 if test "$GCC" = yes; then
1893 if test "$GCC" = yes; then
1899 # Some people use a C++ compiler to compile C. Since we use `exit',
1900 # in C++ we need to declare it. In case someone uses the same compiler
1901 # for both compiling C and C++ we need to have the C++ compiler decide
1902 # the declaration of exit, since it's the most demanding environment.
1903 cat >conftest.$ac_ext <<_ACEOF
1908 rm -f conftest.$ac_objext
1909 if { (eval echo "$as_me:1909: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1912 echo "$as_me:1912: \$? = $ac_status" >&5
1913 (exit $ac_status); } &&
1914 { ac_try='test -s conftest.$ac_objext'
1915 { (eval echo "$as_me:1915: \"$ac_try\"") >&5
1918 echo "$as_me:1918: \$? = $ac_status" >&5
1919 (exit $ac_status); }; }; then
1920 for ac_declaration in \
1922 '#include <stdlib.h>' \
1923 'extern "C" void std::exit (int) throw (); using std::exit;' \
1924 'extern "C" void std::exit (int); using std::exit;' \
1925 'extern "C" void exit (int) throw ();' \
1926 'extern "C" void exit (int);' \
1929 cat >conftest.$ac_ext <<_ACEOF
1930 #line 1930 "configure"
1931 #include "confdefs.h"
1942 rm -f conftest.$ac_objext
1943 if { (eval echo "$as_me:1943: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1946 echo "$as_me:1946: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
1948 { ac_try='test -s conftest.$ac_objext'
1949 { (eval echo "$as_me:1949: \"$ac_try\"") >&5
1952 echo "$as_me:1952: \$? = $ac_status" >&5
1953 (exit $ac_status); }; }; then
1956 echo "$as_me: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1960 rm -f conftest.$ac_objext conftest.$ac_ext
1961 cat >conftest.$ac_ext <<_ACEOF
1962 #line 1962 "configure"
1963 #include "confdefs.h"
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit $ac_status); } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:1980: \"$ac_try\"") >&5
1983 echo "$as_me:1983: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1990 rm -f conftest.$ac_objext conftest.$ac_ext
1993 if test -n "$ac_declaration"; then
1994 echo '#ifdef __cplusplus' >>confdefs.h
1995 echo $ac_declaration >>confdefs.h
1996 echo '#endif' >>confdefs.h
2000 echo "$as_me: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 rm -f conftest.$ac_objext conftest.$ac_ext
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 if test "$GCC" = yes ; then
2012 echo "$as_me:2012: checking version of $CC" >&5
2013 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2014 GCC_VERSION="`${CC} --version|sed -e '2,$d' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2015 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2016 echo "$as_me:2016: result: $GCC_VERSION" >&5
2017 echo "${ECHO_T}$GCC_VERSION" >&6
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 echo "$as_me:2025: checking how to run the C preprocessor" >&5
2026 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2027 # On Suns, sometimes $CPP names a directory.
2028 if test -n "$CPP" && test -d "$CPP"; then
2031 if test -z "$CPP"; then
2032 if test "${ac_cv_prog_CPP+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 # Double quotes because CPP needs to be expanded
2036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2039 for ac_c_preproc_warn_flag in '' yes
2041 # Use a header file that comes with gcc, so configuring glibc
2042 # with a fresh cross-compiler works.
2043 # On the NeXT, cc -E runs the code through the compiler's parser,
2044 # not just through cpp. "Syntax error" is here to catch this case.
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line 2046 "configure"
2047 #include "confdefs.h"
2051 if { (eval echo "$as_me:2051: \"$ac_cpp conftest.$ac_ext\"") >&5
2052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2054 egrep -v '^ *\+' conftest.er1 >conftest.err
2056 cat conftest.err >&5
2057 echo "$as_me:2057: \$? = $ac_status" >&5
2058 (exit $ac_status); } >/dev/null; then
2059 if test -s conftest.err; then
2060 ac_cpp_err=$ac_c_preproc_warn_flag
2067 if test -z "$ac_cpp_err"; then
2070 echo "$as_me: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2072 # Broken: fails on valid input.
2075 rm -f conftest.err conftest.$ac_ext
2077 # OK, works on sane cases. Now check whether non-existent headers
2078 # can be detected and how.
2079 cat >conftest.$ac_ext <<_ACEOF
2080 #line 2080 "configure"
2081 #include "confdefs.h"
2082 #include <ac_nonexistent.h>
2084 if { (eval echo "$as_me:2084: \"$ac_cpp conftest.$ac_ext\"") >&5
2085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2087 egrep -v '^ *\+' conftest.er1 >conftest.err
2089 cat conftest.err >&5
2090 echo "$as_me:2090: \$? = $ac_status" >&5
2091 (exit $ac_status); } >/dev/null; then
2092 if test -s conftest.err; then
2093 ac_cpp_err=$ac_c_preproc_warn_flag
2100 if test -z "$ac_cpp_err"; then
2101 # Broken: success on invalid input.
2104 echo "$as_me: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 # Passes both tests.
2110 rm -f conftest.err conftest.$ac_ext
2113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2114 rm -f conftest.err conftest.$ac_ext
2115 if $ac_preproc_ok; then
2127 echo "$as_me:2127: result: $CPP" >&5
2128 echo "${ECHO_T}$CPP" >&6
2130 for ac_c_preproc_warn_flag in '' yes
2132 # Use a header file that comes with gcc, so configuring glibc
2133 # with a fresh cross-compiler works.
2134 # On the NeXT, cc -E runs the code through the compiler's parser,
2135 # not just through cpp. "Syntax error" is here to catch this case.
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #line 2137 "configure"
2138 #include "confdefs.h"
2142 if { (eval echo "$as_me:2142: \"$ac_cpp conftest.$ac_ext\"") >&5
2143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2145 egrep -v '^ *\+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } >/dev/null; then
2150 if test -s conftest.err; then
2151 ac_cpp_err=$ac_c_preproc_warn_flag
2158 if test -z "$ac_cpp_err"; then
2161 echo "$as_me: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 # Broken: fails on valid input.
2166 rm -f conftest.err conftest.$ac_ext
2168 # OK, works on sane cases. Now check whether non-existent headers
2169 # can be detected and how.
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line 2171 "configure"
2172 #include "confdefs.h"
2173 #include <ac_nonexistent.h>
2175 if { (eval echo "$as_me:2175: \"$ac_cpp conftest.$ac_ext\"") >&5
2176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2178 egrep -v '^ *\+' conftest.er1 >conftest.err
2180 cat conftest.err >&5
2181 echo "$as_me:2181: \$? = $ac_status" >&5
2182 (exit $ac_status); } >/dev/null; then
2183 if test -s conftest.err; then
2184 ac_cpp_err=$ac_c_preproc_warn_flag
2191 if test -z "$ac_cpp_err"; then
2192 # Broken: success on invalid input.
2195 echo "$as_me: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 # Passes both tests.
2201 rm -f conftest.err conftest.$ac_ext
2204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2205 rm -f conftest.err conftest.$ac_ext
2206 if $ac_preproc_ok; then
2209 { { echo "$as_me:2209: error: C preprocessor \"$CPP\" fails sanity check" >&5
2210 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2211 { (exit 1); exit 1; }; }
2215 ac_cpp='$CPP $CPPFLAGS'
2216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220 if test $ac_cv_c_compiler_gnu = yes; then
2221 echo "$as_me:2221: checking whether $CC needs -traditional" >&5
2222 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2223 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 ac_pattern="Autoconf.*'x'"
2227 cat >conftest.$ac_ext <<_ACEOF
2228 #line 2228 "configure"
2229 #include "confdefs.h"
2231 int Autoconf = TIOCGETP;
2233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2234 egrep "$ac_pattern" >/dev/null 2>&1; then
2235 ac_cv_prog_gcc_traditional=yes
2237 ac_cv_prog_gcc_traditional=no
2241 if test $ac_cv_prog_gcc_traditional = no; then
2242 cat >conftest.$ac_ext <<_ACEOF
2243 #line 2243 "configure"
2244 #include "confdefs.h"
2246 int Autoconf = TCGETA;
2248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2249 egrep "$ac_pattern" >/dev/null 2>&1; then
2250 ac_cv_prog_gcc_traditional=yes
2256 echo "$as_me:2256: result: $ac_cv_prog_gcc_traditional" >&5
2257 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2258 if test $ac_cv_prog_gcc_traditional = yes; then
2259 CC="$CC -traditional"
2263 echo "$as_me:2263: checking for POSIXized ISC" >&5
2264 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2265 if test -d /etc/conf/kconfig.d &&
2266 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2268 echo "$as_me:2268: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2270 ISC=yes # If later tests want to check for ISC.
2272 cat >>confdefs.h <<\EOF
2273 #define _POSIX_SOURCE 1
2276 if test "$GCC" = yes; then
2282 echo "$as_me:2282: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2287 echo "$as_me:2287: checking for ${CC-cc} option to accept ANSI C" >&5
2288 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2289 if test "${cf_cv_ansi_cc+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 cf_save_CFLAGS="$CFLAGS"
2295 cf_save_CPPFLAGS="$CPPFLAGS"
2296 # Don't try gcc -ansi; that turns off useful extensions and
2297 # breaks some systems' header files.
2298 # AIX -qlanglvl=ansi
2299 # Ultrix and OSF/1 -std1
2300 # HP-UX -Aa -D_HPUX_SOURCE
2302 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2303 for cf_arg in "-DCC_HAS_PROTOS" \
2308 "-Aa -D_HPUX_SOURCE" \
2314 for cf_add_cflags in $cf_arg
2316 case $cf_add_cflags in #(vi
2317 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2319 *$cf_add_cflags) #(vi
2322 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2327 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2332 if test -n "$cf_new_cflags" ; then
2334 CFLAGS="$CFLAGS $cf_new_cflags"
2337 if test -n "$cf_new_cppflags" ; then
2339 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2346 #ifndef CC_HAS_PROTOS
2347 #if !defined(__STDC__) || (__STDC__ != 1)
2356 int test (int i, double x);
2357 struct s1 {int (*f) (int a);};
2358 struct s2 {int (*f) (double a);};
2363 rm -f conftest.$ac_objext
2364 if { (eval echo "$as_me:2364: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>&5
2367 echo "$as_me:2367: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:2370: \"$ac_try\"") >&5
2373 echo "$as_me:2373: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 cf_cv_ansi_cc="$cf_arg"; break
2377 echo "$as_me: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2382 CFLAGS="$cf_save_CFLAGS"
2383 CPPFLAGS="$cf_save_CPPFLAGS"
2386 echo "$as_me:2386: result: $cf_cv_ansi_cc" >&5
2387 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2389 if test "$cf_cv_ansi_cc" != "no"; then
2390 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2394 for cf_add_cflags in $cf_cv_ansi_cc
2396 case $cf_add_cflags in #(vi
2397 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2399 *$cf_add_cflags) #(vi
2402 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2407 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2412 if test -n "$cf_new_cflags" ; then
2414 CFLAGS="$CFLAGS $cf_new_cflags"
2417 if test -n "$cf_new_cppflags" ; then
2419 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2423 cat >>confdefs.h <<\EOF
2424 #define CC_HAS_PROTOS 1
2430 if test "$cf_cv_ansi_cc" = "no"; then
2431 { { echo "$as_me:2431: error: Your compiler does not appear to recognize prototypes.
2432 You have the following choices:
2433 a. adjust your compiler options
2434 b. get an up-to-date compiler
2435 c. use a wrapper such as unproto" >&5
2436 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2437 You have the following choices:
2438 a. adjust your compiler options
2439 b. get an up-to-date compiler
2440 c. use a wrapper such as unproto" >&2;}
2441 { (exit 1); exit 1; }; }
2444 case $cf_cv_system_name in
2446 CFLAGS="$CFLAGS -Zmt"
2447 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2448 CXXFLAGS="$CXXFLAGS -Zmt"
2449 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2450 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2457 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2458 #define PROG_EXT "$PROG_EXT"
2461 if test "$cross_compiling" = yes ; then
2464 case "$cf_cv_system_name" in #(vi
2466 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2468 *) LDPATH=$PATH:/sbin:/usr/sbin
2469 # Extract the first word of "ldconfig", so it can be a program name with args.
2470 set dummy ldconfig; ac_word=$2
2471 echo "$as_me:2471: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2481 ac_save_IFS=$IFS; IFS=$ac_path_separator
2483 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 if $as_executable_p "$ac_dir/$ac_word"; then
2487 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2488 echo "$as_me:2488: found $ac_dir/$ac_word" >&5
2496 LDCONFIG=$ac_cv_path_LDCONFIG
2498 if test -n "$LDCONFIG"; then
2499 echo "$as_me:2499: result: $LDCONFIG" >&5
2500 echo "${ECHO_T}$LDCONFIG" >&6
2502 echo "$as_me:2502: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2510 echo "$as_me:2510: checking if you want to ensure bool is consistent with C++" >&5
2511 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2513 # Check whether --with-cxx or --without-cxx was given.
2514 if test "${with_cxx+set}" = set; then
2516 cf_with_cxx=$withval
2520 echo "$as_me:2520: result: $cf_with_cxx" >&5
2521 echo "${ECHO_T}$cf_with_cxx" >&6
2522 if test "X$cf_with_cxx" = Xno ; then
2526 # with autoconf 2.13, we can change the error to a warning:
2528 ac_cpp='$CXXCPP $CPPFLAGS'
2529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2532 if test -n "$ac_tool_prefix"; then
2533 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2537 echo "$as_me:2537: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2539 if test "${ac_cv_prog_CXX+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CXX"; then
2543 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2545 ac_save_IFS=$IFS; IFS=$ac_path_separator
2547 for ac_dir in $ac_dummy; do
2549 test -z "$ac_dir" && ac_dir=.
2550 $as_executable_p "$ac_dir/$ac_word" || continue
2551 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2552 echo "$as_me:2552: found $ac_dir/$ac_word" >&5
2559 if test -n "$CXX"; then
2560 echo "$as_me:2560: result: $CXX" >&5
2561 echo "${ECHO_T}$CXX" >&6
2563 echo "$as_me:2563: result: no" >&5
2564 echo "${ECHO_T}no" >&6
2567 test -n "$CXX" && break
2570 if test -z "$CXX"; then
2572 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2575 set dummy $ac_prog; ac_word=$2
2576 echo "$as_me:2576: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 if test -n "$ac_ct_CXX"; then
2582 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2584 ac_save_IFS=$IFS; IFS=$ac_path_separator
2586 for ac_dir in $ac_dummy; do
2588 test -z "$ac_dir" && ac_dir=.
2589 $as_executable_p "$ac_dir/$ac_word" || continue
2590 ac_cv_prog_ac_ct_CXX="$ac_prog"
2591 echo "$as_me:2591: found $ac_dir/$ac_word" >&5
2597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2598 if test -n "$ac_ct_CXX"; then
2599 echo "$as_me:2599: result: $ac_ct_CXX" >&5
2600 echo "${ECHO_T}$ac_ct_CXX" >&6
2602 echo "$as_me:2602: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2606 test -n "$ac_ct_CXX" && break
2608 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2613 # Provide some information about the compiler.
2614 echo "$as_me:2614:" \
2615 "checking for C++ compiler version" >&5
2616 ac_compiler=`set X $ac_compile; echo $2`
2617 { (eval echo "$as_me:2617: \"$ac_compiler --version </dev/null >&5\"") >&5
2618 (eval $ac_compiler --version </dev/null >&5) 2>&5
2620 echo "$as_me:2620: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622 { (eval echo "$as_me:2622: \"$ac_compiler -v </dev/null >&5\"") >&5
2623 (eval $ac_compiler -v </dev/null >&5) 2>&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2627 { (eval echo "$as_me:2627: \"$ac_compiler -V </dev/null >&5\"") >&5
2628 (eval $ac_compiler -V </dev/null >&5) 2>&5
2630 echo "$as_me:2630: \$? = $ac_status" >&5
2631 (exit $ac_status); }
2633 echo "$as_me:2633: checking whether we are using the GNU C++ compiler" >&5
2634 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2635 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 cat >conftest.$ac_ext <<_ACEOF
2639 #line 2639 "configure"
2640 #include "confdefs.h"
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:2654: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:2660: \"$ac_try\"") >&5
2663 echo "$as_me:2663: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2672 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2675 echo "$as_me:2675: result: $ac_cv_cxx_compiler_gnu" >&5
2676 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2677 GXX=`test $ac_compiler_gnu = yes && echo yes`
2678 ac_test_CXXFLAGS=${CXXFLAGS+set}
2679 ac_save_CXXFLAGS=$CXXFLAGS
2681 echo "$as_me:2681: checking whether $CXX accepts -g" >&5
2682 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2683 if test "${ac_cv_prog_cxx_g+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line 2687 "configure"
2688 #include "confdefs.h"
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:2699: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2702 echo "$as_me:2702: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:2705: \"$ac_try\"") >&5
2708 echo "$as_me:2708: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2710 ac_cv_prog_cxx_g=yes
2712 echo "$as_me: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2716 rm -f conftest.$ac_objext conftest.$ac_ext
2718 echo "$as_me:2718: result: $ac_cv_prog_cxx_g" >&5
2719 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2720 if test "$ac_test_CXXFLAGS" = set; then
2721 CXXFLAGS=$ac_save_CXXFLAGS
2722 elif test $ac_cv_prog_cxx_g = yes; then
2723 if test "$GXX" = yes; then
2729 if test "$GXX" = yes; then
2735 for ac_declaration in \
2737 '#include <stdlib.h>' \
2738 'extern "C" void std::exit (int) throw (); using std::exit;' \
2739 'extern "C" void std::exit (int); using std::exit;' \
2740 'extern "C" void exit (int) throw ();' \
2741 'extern "C" void exit (int);' \
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:2758: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:2764: \"$ac_try\"") >&5
2767 echo "$as_me:2767: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 echo "$as_me: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2775 rm -f conftest.$ac_objext conftest.$ac_ext
2776 cat >conftest.$ac_ext <<_ACEOF
2777 #line 2777 "configure"
2778 #include "confdefs.h"
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:2789: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>&5
2792 echo "$as_me:2792: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:2795: \"$ac_try\"") >&5
2798 echo "$as_me:2798: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2805 rm -f conftest.$ac_objext conftest.$ac_ext
2808 if test -n "$ac_declaration"; then
2809 echo '#ifdef __cplusplus' >>confdefs.h
2810 echo $ac_declaration >>confdefs.h
2811 echo '#endif' >>confdefs.h
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820 # autoconf 2.5x removed the error - by hardcoding it to g++.
2821 if test "$CXX" = "g++" ; then
2822 # Extract the first word of "g++", so it can be a program name with args.
2823 set dummy g++; ac_word=$2
2824 echo "$as_me:2824: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_path_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2834 ac_save_IFS=$IFS; IFS=$ac_path_separator
2836 for ac_dir in $ac_dummy; do
2838 test -z "$ac_dir" && ac_dir=.
2839 if $as_executable_p "$ac_dir/$ac_word"; then
2840 ac_cv_path_CXX="$ac_dir/$ac_word"
2841 echo "$as_me:2841: found $ac_dir/$ac_word" >&5
2851 if test -n "$CXX"; then
2852 echo "$as_me:2852: result: $CXX" >&5
2853 echo "${ECHO_T}$CXX" >&6
2855 echo "$as_me:2855: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2860 if test "$CXX" = "g++" ; then
2861 { echo "$as_me:2861: WARNING: ignoring hardcoded g++" >&5
2862 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
2863 cf_with_cxx=no; CXX=""; GXX="";
2868 if test "$GXX" = yes; then
2869 echo "$as_me:2869: checking version of g++" >&5
2870 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
2871 GXX_VERSION="`${CXX-g++} --version|sed -e '2,$d'`"
2872 echo "$as_me:2872: result: $GXX_VERSION" >&5
2873 echo "${ECHO_T}$GXX_VERSION" >&6
2876 case $GXX_VERSION in
2878 GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
2880 { echo "$as_me:2880: WARNING: templates do not work" >&5
2881 echo "$as_me: WARNING: templates do not work" >&2;}
2885 echo "$as_me:2885: checking if you want to build C++ binding and demo" >&5
2886 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2888 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2889 if test "${with_cxx_binding+set}" = set; then
2890 withval="$with_cxx_binding"
2891 cf_with_cxx_binding=$withval
2893 cf_with_cxx_binding=$cf_with_cxx
2895 echo "$as_me:2895: result: $cf_with_cxx_binding" >&5
2896 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2898 echo "$as_me:2898: checking if you want to build with Ada95" >&5
2899 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2901 # Check whether --with-ada or --without-ada was given.
2902 if test "${with_ada+set}" = set; then
2904 cf_with_ada=$withval
2908 echo "$as_me:2908: result: $cf_with_ada" >&5
2909 echo "${ECHO_T}$cf_with_ada" >&6
2911 echo "$as_me:2911: checking if you want to build programs such as tic" >&5
2912 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2914 # Check whether --with-progs or --without-progs was given.
2915 if test "${with_progs+set}" = set; then
2916 withval="$with_progs"
2917 cf_with_progs=$withval
2921 echo "$as_me:2921: result: $cf_with_progs" >&5
2922 echo "${ECHO_T}$cf_with_progs" >&6
2924 echo "$as_me:2924: checking if you wish to install curses.h" >&5
2925 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2927 # Check whether --with-curses-h or --without-curses-h was given.
2928 if test "${with_curses_h+set}" = set; then
2929 withval="$with_curses_h"
2930 with_curses_h=$withval
2934 echo "$as_me:2934: result: $with_curses_h" >&5
2935 echo "${ECHO_T}$with_curses_h" >&6
2937 modules_to_build="ncurses"
2938 if test "X$cf_with_progs" != Xno ; then
2939 modules_to_build="$modules_to_build progs tack"
2941 modules_to_build="$modules_to_build panel menu form"
2943 test "$program_prefix" != NONE &&
2944 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2945 # Use a double $ so make ignores it.
2946 test "$program_suffix" != NONE &&
2947 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2948 # Double any \ or $. echo might interpret backslashes.
2949 # By default was `s,x,x', remove it if useless.
2950 cat <<\_ACEOF >conftest.sed
2951 s/[\\$]/&&/g;s/;s,x,x,$//
2953 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2956 for ac_prog in mawk gawk nawk awk
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 echo "$as_me:2960: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2962 if test "${ac_cv_prog_AWK+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test -n "$AWK"; then
2966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2968 ac_save_IFS=$IFS; IFS=$ac_path_separator
2970 for ac_dir in $ac_dummy; do
2972 test -z "$ac_dir" && ac_dir=.
2973 $as_executable_p "$ac_dir/$ac_word" || continue
2974 ac_cv_prog_AWK="$ac_prog"
2975 echo "$as_me:2975: found $ac_dir/$ac_word" >&5
2982 if test -n "$AWK"; then
2983 echo "$as_me:2983: result: $AWK" >&5
2984 echo "${ECHO_T}$AWK" >&6
2986 echo "$as_me:2986: result: no" >&5
2987 echo "${ECHO_T}no" >&6
2990 test -n "$AWK" && break
2993 echo "$as_me:2993: checking whether ${MAKE-make} sets \${MAKE}" >&5
2994 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2995 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2996 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 cat >conftest.make <<\EOF
3001 @echo 'ac_maketemp="${MAKE}"'
3003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3004 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3005 if test -n "$ac_maketemp"; then
3006 eval ac_cv_prog_make_${ac_make}_set=yes
3008 eval ac_cv_prog_make_${ac_make}_set=no
3012 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3013 echo "$as_me:3013: result: yes" >&5
3014 echo "${ECHO_T}yes" >&6
3017 echo "$as_me:3017: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3019 SET_MAKE="MAKE=${MAKE-make}"
3022 # Find a good install program. We prefer a C program (faster),
3023 # so one script is as good as another. But avoid the broken or
3024 # incompatible versions:
3025 # SysV /etc/install, /usr/sbin/install
3026 # SunOS /usr/etc/install
3027 # IRIX /sbin/install
3029 # AmigaOS /C/install, which installs bootblocks on floppy discs
3030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3033 # ./install, which can be erroneously created by make from ./install.sh.
3034 echo "$as_me:3034: checking for a BSD compatible install" >&5
3035 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3036 if test -z "$INSTALL"; then
3037 if test "${ac_cv_path_install+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 ac_save_IFS=$IFS; IFS=$ac_path_separator
3041 for ac_dir in $PATH; do
3043 # Account for people who put trailing slashes in PATH elements.
3045 / | ./ | .// | /cC/* \
3046 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3049 # OSF1 and SCO ODT 3.0 have their own names for install.
3050 # Don't use installbsd from OSF since it installs stuff as root
3052 for ac_prog in ginstall scoinst install; do
3053 if $as_executable_p "$ac_dir/$ac_prog"; then
3054 if test $ac_prog = install &&
3055 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3056 # AIX install. It has an incompatible calling convention.
3058 elif test $ac_prog = install &&
3059 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3060 # program-specific install script used by HP pwplus--don't use.
3063 ac_cv_path_install="$ac_dir/$ac_prog -c"
3073 if test "${ac_cv_path_install+set}" = set; then
3074 INSTALL=$ac_cv_path_install
3076 # As a last resort, use the slow shell script. We don't cache a
3077 # path for INSTALL within a source directory, because that will
3078 # break other packages using the cache if that directory is
3079 # removed, or if the path is relative.
3080 INSTALL=$ac_install_sh
3083 echo "$as_me:3083: result: $INSTALL" >&5
3084 echo "${ECHO_T}$INSTALL" >&6
3086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3087 # It thinks the first close brace ends the variable substitution.
3088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3098 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3099 test -z "$cf_dir" && cf_dir=.
3100 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3104 echo "$as_me:3104: checking for long file names" >&5
3105 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3106 if test "${ac_cv_sys_long_file_names+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 ac_cv_sys_long_file_names=yes
3110 # Test for long file names in all the places we know might matter:
3111 # . the current directory, where building will happen
3112 # $prefix/lib where we will be installing things
3113 # $exec_prefix/lib likewise
3114 # eval it to expand exec_prefix.
3115 # $TMPDIR if set, where it might want to write temporary files
3116 # if $TMPDIR is not set:
3117 # /tmp where it might want to write temporary files
3120 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3123 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3125 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3126 test -d $ac_dir || continue
3127 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3128 ac_xdir=$ac_dir/cf$$
3129 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3130 ac_tf1=$ac_xdir/conftest9012345
3131 ac_tf2=$ac_xdir/conftest9012346
3132 (echo 1 >$ac_tf1) 2>/dev/null
3133 (echo 2 >$ac_tf2) 2>/dev/null
3134 ac_val=`cat $ac_tf1 2>/dev/null`
3135 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3136 ac_cv_sys_long_file_names=no
3137 rm -rf $ac_xdir 2>/dev/null
3140 rm -rf $ac_xdir 2>/dev/null
3143 echo "$as_me:3143: result: $ac_cv_sys_long_file_names" >&5
3144 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3145 if test $ac_cv_sys_long_file_names = yes; then
3147 cat >>confdefs.h <<\EOF
3148 #define HAVE_LONG_FILE_NAMES 1
3153 echo "$as_me:3153: checking if filesystem supports mixed-case filenames" >&5
3154 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3155 if test "${cf_cv_mixedcase+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test "$cross_compiling" = yes ; then
3160 case $target_alias in #(vi
3161 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3169 rm -f conftest CONFTEST
3171 if test -f CONFTEST ; then
3176 rm -f conftest CONFTEST
3180 echo "$as_me:3180: result: $cf_cv_mixedcase" >&5
3181 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3182 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3183 #define MIXEDCASE_FILENAMES 1
3186 echo "$as_me:3186: checking whether ln -s works" >&5
3187 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3189 if test "$LN_S" = "ln -s"; then
3190 echo "$as_me:3190: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3193 echo "$as_me:3193: result: no, using $LN_S" >&5
3194 echo "${ECHO_T}no, using $LN_S" >&6
3197 # Extract the first word of "ctags", so it can be a program name with args.
3198 set dummy ctags; ac_word=$2
3199 echo "$as_me:3199: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 if test -n "$MAKE_LOWER_TAGS"; then
3205 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3207 ac_save_IFS=$IFS; IFS=$ac_path_separator
3209 for ac_dir in $ac_dummy; do
3211 test -z "$ac_dir" && ac_dir=.
3212 $as_executable_p "$ac_dir/$ac_word" || continue
3213 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3214 echo "$as_me:3214: found $ac_dir/$ac_word" >&5
3218 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3221 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3222 if test -n "$MAKE_LOWER_TAGS"; then
3223 echo "$as_me:3223: result: $MAKE_LOWER_TAGS" >&5
3224 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3226 echo "$as_me:3226: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3230 if test "$cf_cv_mixedcase" = yes ; then
3231 # Extract the first word of "etags", so it can be a program name with args.
3232 set dummy etags; ac_word=$2
3233 echo "$as_me:3233: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 if test -n "$MAKE_UPPER_TAGS"; then
3239 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3241 ac_save_IFS=$IFS; IFS=$ac_path_separator
3243 for ac_dir in $ac_dummy; do
3245 test -z "$ac_dir" && ac_dir=.
3246 $as_executable_p "$ac_dir/$ac_word" || continue
3247 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3248 echo "$as_me:3248: found $ac_dir/$ac_word" >&5
3252 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3255 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3256 if test -n "$MAKE_UPPER_TAGS"; then
3257 echo "$as_me:3257: result: $MAKE_UPPER_TAGS" >&5
3258 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3260 echo "$as_me:3260: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3268 if test "$MAKE_UPPER_TAGS" = yes ; then
3274 if test "$MAKE_LOWER_TAGS" = yes ; then
3280 for ac_prog in tdlint lint alint
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy $ac_prog; ac_word=$2
3284 echo "$as_me:3284: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_LINT+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$LINT"; then
3290 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3292 ac_save_IFS=$IFS; IFS=$ac_path_separator
3294 for ac_dir in $ac_dummy; do
3296 test -z "$ac_dir" && ac_dir=.
3297 $as_executable_p "$ac_dir/$ac_word" || continue
3298 ac_cv_prog_LINT="$ac_prog"
3299 echo "$as_me:3299: found $ac_dir/$ac_word" >&5
3305 LINT=$ac_cv_prog_LINT
3306 if test -n "$LINT"; then
3307 echo "$as_me:3307: result: $LINT" >&5
3308 echo "${ECHO_T}$LINT" >&6
3310 echo "$as_me:3310: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3314 test -n "$LINT" && break
3317 for ac_prog in man man_db
3319 # Extract the first word of "$ac_prog", so it can be a program name with args.
3320 set dummy $ac_prog; ac_word=$2
3321 echo "$as_me:3321: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323 if test "${ac_cv_prog_MAN+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if test -n "$MAN"; then
3327 ac_cv_prog_MAN="$MAN" # Let the user override the test.
3329 ac_save_IFS=$IFS; IFS=$ac_path_separator
3331 for ac_dir in $ac_dummy; do
3333 test -z "$ac_dir" && ac_dir=.
3334 $as_executable_p "$ac_dir/$ac_word" || continue
3335 ac_cv_prog_MAN="$ac_prog"
3336 echo "$as_me:3336: found $ac_dir/$ac_word" >&5
3343 if test -n "$MAN"; then
3344 echo "$as_me:3344: result: $MAN" >&5
3345 echo "${ECHO_T}$MAN" >&6
3347 echo "$as_me:3347: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3351 test -n "$MAN" && break
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3357 echo "$as_me:3357: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 ac_save_IFS=$IFS; IFS=$ac_path_separator
3367 for ac_dir in $ac_dummy; do
3369 test -z "$ac_dir" && ac_dir=.
3370 $as_executable_p "$ac_dir/$ac_word" || continue
3371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3372 echo "$as_me:3372: found $ac_dir/$ac_word" >&5
3378 RANLIB=$ac_cv_prog_RANLIB
3379 if test -n "$RANLIB"; then
3380 echo "$as_me:3380: result: $RANLIB" >&5
3381 echo "${ECHO_T}$RANLIB" >&6
3383 echo "$as_me:3383: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_RANLIB"; then
3389 ac_ct_RANLIB=$RANLIB
3390 # Extract the first word of "ranlib", so it can be a program name with args.
3391 set dummy ranlib; ac_word=$2
3392 echo "$as_me:3392: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$ac_ct_RANLIB"; then
3398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3400 ac_save_IFS=$IFS; IFS=$ac_path_separator
3402 for ac_dir in $ac_dummy; do
3404 test -z "$ac_dir" && ac_dir=.
3405 $as_executable_p "$ac_dir/$ac_word" || continue
3406 ac_cv_prog_ac_ct_RANLIB="ranlib"
3407 echo "$as_me:3407: found $ac_dir/$ac_word" >&5
3411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3415 if test -n "$ac_ct_RANLIB"; then
3416 echo "$as_me:3416: result: $ac_ct_RANLIB" >&5
3417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3419 echo "$as_me:3419: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 RANLIB=$ac_ct_RANLIB
3425 RANLIB="$ac_cv_prog_RANLIB"
3428 if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3430 set dummy ${ac_tool_prefix}ld; ac_word=$2
3431 echo "$as_me:3431: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_prog_LD+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 if test -n "$LD"; then
3437 ac_cv_prog_LD="$LD" # Let the user override the test.
3439 ac_save_IFS=$IFS; IFS=$ac_path_separator
3441 for ac_dir in $ac_dummy; do
3443 test -z "$ac_dir" && ac_dir=.
3444 $as_executable_p "$ac_dir/$ac_word" || continue
3445 ac_cv_prog_LD="${ac_tool_prefix}ld"
3446 echo "$as_me:3446: found $ac_dir/$ac_word" >&5
3453 if test -n "$LD"; then
3454 echo "$as_me:3454: result: $LD" >&5
3455 echo "${ECHO_T}$LD" >&6
3457 echo "$as_me:3457: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3462 if test -z "$ac_cv_prog_LD"; then
3464 # Extract the first word of "ld", so it can be a program name with args.
3465 set dummy ld; ac_word=$2
3466 echo "$as_me:3466: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 if test -n "$ac_ct_LD"; then
3472 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3474 ac_save_IFS=$IFS; IFS=$ac_path_separator
3476 for ac_dir in $ac_dummy; do
3478 test -z "$ac_dir" && ac_dir=.
3479 $as_executable_p "$ac_dir/$ac_word" || continue
3480 ac_cv_prog_ac_ct_LD="ld"
3481 echo "$as_me:3481: found $ac_dir/$ac_word" >&5
3485 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3488 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3489 if test -n "$ac_ct_LD"; then
3490 echo "$as_me:3490: result: $ac_ct_LD" >&5
3491 echo "${ECHO_T}$ac_ct_LD" >&6
3493 echo "$as_me:3493: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}ar; ac_word=$2
3505 echo "$as_me:3505: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_prog_AR+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -n "$AR"; then
3511 ac_cv_prog_AR="$AR" # Let the user override the test.
3513 ac_save_IFS=$IFS; IFS=$ac_path_separator
3515 for ac_dir in $ac_dummy; do
3517 test -z "$ac_dir" && ac_dir=.
3518 $as_executable_p "$ac_dir/$ac_word" || continue
3519 ac_cv_prog_AR="${ac_tool_prefix}ar"
3520 echo "$as_me:3520: found $ac_dir/$ac_word" >&5
3527 if test -n "$AR"; then
3528 echo "$as_me:3528: result: $AR" >&5
3529 echo "${ECHO_T}$AR" >&6
3531 echo "$as_me:3531: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3536 if test -z "$ac_cv_prog_AR"; then
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:3540: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -n "$ac_ct_AR"; then
3546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3548 ac_save_IFS=$IFS; IFS=$ac_path_separator
3550 for ac_dir in $ac_dummy; do
3552 test -z "$ac_dir" && ac_dir=.
3553 $as_executable_p "$ac_dir/$ac_word" || continue
3554 ac_cv_prog_ac_ct_AR="ar"
3555 echo "$as_me:3555: found $ac_dir/$ac_word" >&5
3559 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3562 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3563 if test -n "$ac_ct_AR"; then
3564 echo "$as_me:3564: result: $ac_ct_AR" >&5
3565 echo "${ECHO_T}$ac_ct_AR" >&6
3567 echo "$as_me:3567: result: no" >&5
3568 echo "${ECHO_T}no" >&6
3576 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 echo "$as_me:3580: checking for archiver options (symbol AR_OPTS)" >&5
3581 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3582 test -z "$AR_OPTS" && AR_OPTS=rv
3583 echo "$as_me:3583: result: $AR_OPTS" >&5
3584 echo "${ECHO_T}$AR_OPTS" >&6
3586 cf_cv_subst_AR_OPTS=$AR_OPTS
3589 AR_OPTS=${cf_cv_subst_AR_OPTS}
3591 echo "$as_me:3591: checking for makeflags variable" >&5
3592 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3593 if test "${cf_cv_makeflags+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
3600 cat >cf_makeflags.tmp <<CF_EOF
3603 @ echo '.$cf_option'
3605 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
3606 case "$cf_result" in
3608 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3609 case "$cf_result" in
3610 .*CC=*) cf_cv_makeflags=
3612 *) cf_cv_makeflags=$cf_option
3617 *) echo no match "$cf_result"
3621 rm -f cf_makeflags.tmp
3624 echo "$as_me:3624: result: $cf_cv_makeflags" >&5
3625 echo "${ECHO_T}$cf_cv_makeflags" >&6
3627 echo "$as_me:3627: checking if you have specified an install-prefix" >&5
3628 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3630 # Check whether --with-install-prefix or --without-install-prefix was given.
3631 if test "${with_install_prefix+set}" = set; then
3632 withval="$with_install_prefix"
3633 case "$withval" in #(vi
3636 *) DESTDIR="$withval"
3640 echo "$as_me:3640: result: $DESTDIR" >&5
3641 echo "${ECHO_T}$DESTDIR" >&6
3643 ###############################################################################
3645 # If we're cross-compiling, allow the user to override the tools and their
3646 # options. The configure script is oriented toward identifying the host
3647 # compiler, etc., but we need a build compiler to generate parts of the source.
3648 : ${BUILD_CC:='$(CC)'}
3649 : ${BUILD_CFLAGS:='$(CFLAGS)'}
3650 : ${BUILD_CPPFLAGS:='$(CPPFLAGS)'}
3651 : ${BUILD_LDFLAGS:='$(LDFLAGS)'}
3652 : ${BUILD_LIBS:='$(LIBS)'}
3653 : ${BUILD_EXEEXT:='$x'}
3654 if test "$cross_compiling" = yes ; then
3656 # Check whether --with-build-cc or --without-build-cc was given.
3657 if test "${with_build_cc+set}" = set; then
3658 withval="$with_build_cc"
3661 for ac_prog in $CC gcc cc
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664 set dummy $ac_prog; ac_word=$2
3665 echo "$as_me:3665: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -n "$BUILD_CC"; then
3671 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3673 ac_save_IFS=$IFS; IFS=$ac_path_separator
3675 for ac_dir in $ac_dummy; do
3677 test -z "$ac_dir" && ac_dir=.
3678 $as_executable_p "$ac_dir/$ac_word" || continue
3679 ac_cv_prog_BUILD_CC="$ac_prog"
3680 echo "$as_me:3680: found $ac_dir/$ac_word" >&5
3686 BUILD_CC=$ac_cv_prog_BUILD_CC
3687 if test -n "$BUILD_CC"; then
3688 echo "$as_me:3688: result: $BUILD_CC" >&5
3689 echo "${ECHO_T}$BUILD_CC" >&6
3691 echo "$as_me:3691: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3695 test -n "$BUILD_CC" && break
3700 # Check whether --with-build-cflags or --without-build-cflags was given.
3701 if test "${with_build_cflags+set}" = set; then
3702 withval="$with_build_cflags"
3703 BUILD_CFLAGS="$withval"
3706 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3707 if test "${with_build_cppflags+set}" = set; then
3708 withval="$with_build_cppflags"
3709 BUILD_CPPFLAGS="$withval"
3712 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3713 if test "${with_build_ldflags+set}" = set; then
3714 withval="$with_build_ldflags"
3715 BUILD_LDFLAGS="$withval"
3718 # Check whether --with-build-libs or --without-build-libs was given.
3719 if test "${with_build_libs+set}" = set; then
3720 withval="$with_build_libs"
3721 BUILD_LIBS="$withval"
3726 ###############################################################################
3728 ### Options to allow the user to specify the set of libraries which are used.
3729 ### Use "--without-normal --with-shared" to allow the default model to be
3730 ### shared, for example.
3735 # common library maintenance symbols that are convenient for libtool scripts:
3736 LIB_CREATE='$(AR) -cr'
3737 LIB_OBJECT='$(OBJECTS)'
3741 # symbols used to prop libtool up to enable it to determine what it should be
3749 echo "$as_me:3749: checking if you want to build libraries with libtool" >&5
3750 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
3752 # Check whether --with-libtool or --without-libtool was given.
3753 if test "${with_libtool+set}" = set; then
3754 withval="$with_libtool"
3755 with_libtool=$withval
3759 echo "$as_me:3759: result: $with_libtool" >&5
3760 echo "${ECHO_T}$with_libtool" >&6
3761 if test "$with_libtool" != "no"; then
3763 if test "$with_libtool" != "yes" ; then
3765 case ".$with_libtool" in #(vi
3766 .\$\(*\)*|.\'*\'*) #(vi
3770 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3773 eval with_libtool="$with_libtool"
3774 case ".$with_libtool" in #(vi
3776 with_libtool=`echo $with_libtool | sed -e s%NONE%$ac_default_prefix%`
3781 with_libtool=`echo $with_libtool | sed -e s%NONE%$ac_default_prefix%`
3784 { { echo "$as_me:3784: error: expected a pathname, not \"$with_libtool\"" >&5
3785 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
3786 { (exit 1); exit 1; }; }
3790 LIBTOOL=$with_libtool
3792 # Extract the first word of "libtool", so it can be a program name with args.
3793 set dummy libtool; ac_word=$2
3794 echo "$as_me:3794: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3796 if test "${ac_cv_path_LIBTOOL+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
3804 ac_save_IFS=$IFS; IFS=$ac_path_separator
3806 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 if $as_executable_p "$ac_dir/$ac_word"; then
3810 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
3811 echo "$as_me:3811: found $ac_dir/$ac_word" >&5
3819 LIBTOOL=$ac_cv_path_LIBTOOL
3821 if test -n "$LIBTOOL"; then
3822 echo "$as_me:3822: result: $LIBTOOL" >&5
3823 echo "${ECHO_T}$LIBTOOL" >&6
3825 echo "$as_me:3825: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3830 if test -z "$LIBTOOL" ; then
3831 { { echo "$as_me:3831: error: Cannot find libtool" >&5
3832 echo "$as_me: error: Cannot find libtool" >&2;}
3833 { (exit 1); exit 1; }; }
3835 LIB_CREATE='$(LIBTOOL) --mode=link $(CC) -rpath $(DESTDIR)$(libdir) -version-info `cut -f1 $(srcdir)/VERSION` -o'
3836 LIB_OBJECT='$(OBJECTS:.o=.lo)'
3838 LIB_CLEAN='$(LIBTOOL) --mode=clean'
3839 LIB_COMPILE='$(LIBTOOL) --mode=compile'
3840 LIB_LINK='$(LIBTOOL) --mode=link'
3841 LIB_INSTALL='$(LIBTOOL) --mode=install'
3842 LIB_UNINSTALL='$(LIBTOOL) --mode=uninstall'
3845 # Show the version of libtool
3846 echo "$as_me:3846: checking version of libtool" >&5
3847 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
3849 # Save the version in a cache variable - this is not entirely a good
3850 # thing, but the version string from libtool is very ugly, and for
3851 # bug reports it might be useful to have the original string.
3852 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
3853 echo "$as_me:3853: result: $cf_cv_libtool_version" >&5
3854 echo "${ECHO_T}$cf_cv_libtool_version" >&6
3855 if test -z "$cf_cv_libtool_version" ; then
3856 { { echo "$as_me:3856: error: This is not libtool" >&5
3857 echo "$as_me: error: This is not libtool" >&2;}
3858 { (exit 1); exit 1; }; }
3861 # special hack to add --tag option for C++ compiler
3862 case $cf_cv_libtool_version in
3864 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
3867 LIBTOOL_CXX="$LIBTOOL"
3875 test -z "$LIBTOOL" && ECHO_LT=
3877 if test "$with_libtool" != "no" ; then
3879 cf_list_models="$cf_list_models libtool"
3883 echo "$as_me:3883: checking if you want to build shared libraries" >&5
3884 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
3886 # Check whether --with-shared or --without-shared was given.
3887 if test "${with_shared+set}" = set; then
3888 withval="$with_shared"
3889 with_shared=$withval
3893 echo "$as_me:3893: result: $with_shared" >&5
3894 echo "${ECHO_T}$with_shared" >&6
3895 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3897 echo "$as_me:3897: checking if you want to build static libraries" >&5
3898 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
3900 # Check whether --with-normal or --without-normal was given.
3901 if test "${with_normal+set}" = set; then
3902 withval="$with_normal"
3903 with_normal=$withval
3907 echo "$as_me:3907: result: $with_normal" >&5
3908 echo "${ECHO_T}$with_normal" >&6
3909 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
3911 echo "$as_me:3911: checking if you want to build debug libraries" >&5
3912 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
3914 # Check whether --with-debug or --without-debug was given.
3915 if test "${with_debug+set}" = set; then
3916 withval="$with_debug"
3921 echo "$as_me:3921: result: $with_debug" >&5
3922 echo "${ECHO_T}$with_debug" >&6
3923 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
3925 echo "$as_me:3925: checking if you want to build profiling libraries" >&5
3926 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
3928 # Check whether --with-profile or --without-profile was given.
3929 if test "${with_profile+set}" = set; then
3930 withval="$with_profile"
3931 with_profile=$withval
3935 echo "$as_me:3935: result: $with_profile" >&5
3936 echo "${ECHO_T}$with_profile" >&6
3937 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
3941 ###############################################################################
3943 echo "$as_me:3943: checking for specified models" >&5
3944 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3945 test -z "$cf_list_models" && cf_list_models=normal
3946 test "$with_libtool" != "no" && cf_list_models=libtool
3947 echo "$as_me:3947: result: $cf_list_models" >&5
3948 echo "${ECHO_T}$cf_list_models" >&6
3950 ### Use the first model as the default, and save its suffix for use in building
3951 ### up test-applications.
3952 echo "$as_me:3952: checking for default model" >&5
3953 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3954 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3955 echo "$as_me:3955: result: $DFT_LWR_MODEL" >&5
3956 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3958 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3966 case $cf_cv_system_name in
3967 OS/2*) LIB_PREFIX='' ;;
3968 os2*) LIB_PREFIX='' ;;
3969 *) LIB_PREFIX='lib' ;;
3971 cf_prefix=$LIB_PREFIX
3973 LIB_PREFIX=$cf_prefix
3977 ###############################################################################
3979 echo "$as_me:3979: checking if you want to build a separate terminfo library" >&5
3980 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
3982 # Check whether --with-termlib or --without-termlib was given.
3983 if test "${with_termlib+set}" = set; then
3984 withval="$with_termlib"
3985 with_termlib=$withval
3989 echo "$as_me:3989: result: $with_termlib" >&5
3990 echo "${ECHO_T}$with_termlib" >&6
3992 ### Checks for special libraries, must be done up-front.
3994 echo "$as_me:3994: checking if you want to link with dbmalloc for testing" >&5
3995 echo $ECHO_N "checking if you want to link with dbmalloc for testing... $ECHO_C" >&6
3997 # Check whether --with-dbmalloc or --without-dbmalloc was given.
3998 if test "${with_dbmalloc+set}" = set; then
3999 withval="$with_dbmalloc"
4000 with_dbmalloc=$withval
4004 echo "$as_me:4004: result: $with_dbmalloc" >&5
4005 echo "${ECHO_T}$with_dbmalloc" >&6
4006 if test $with_dbmalloc = yes ; then
4008 echo "$as_me:4008: checking for debug_malloc in -ldbmalloc" >&5
4009 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4010 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 ac_check_lib_save_LIBS=$LIBS
4014 LIBS="-ldbmalloc $LIBS"
4015 cat >conftest.$ac_ext <<_ACEOF
4016 #line 4016 "configure"
4017 #include "confdefs.h"
4019 /* Override any gcc2 internal prototype to avoid an error. */
4023 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */
4025 char debug_malloc ();
4034 rm -f conftest.$ac_objext conftest$ac_exeext
4035 if { (eval echo "$as_me:4035: \"$ac_link\"") >&5
4036 (eval $ac_link) 2>&5
4038 echo "$as_me:4038: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -s conftest$ac_exeext'
4041 { (eval echo "$as_me:4041: \"$ac_try\"") >&5
4044 echo "$as_me:4044: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_cv_lib_dbmalloc_debug_malloc=yes
4048 echo "$as_me: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 ac_cv_lib_dbmalloc_debug_malloc=no
4052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4053 LIBS=$ac_check_lib_save_LIBS
4055 echo "$as_me:4055: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4056 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4057 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4058 cat >>confdefs.h <<EOF
4059 #define HAVE_LIBDBMALLOC 1
4062 LIBS="-ldbmalloc $LIBS"
4068 echo "$as_me:4068: checking if you want to link with dmalloc for testing" >&5
4069 echo $ECHO_N "checking if you want to link with dmalloc for testing... $ECHO_C" >&6
4071 # Check whether --with-dmalloc or --without-dmalloc was given.
4072 if test "${with_dmalloc+set}" = set; then
4073 withval="$with_dmalloc"
4074 with_dmalloc=$withval
4078 echo "$as_me:4078: result: $with_dmalloc" >&5
4079 echo "${ECHO_T}$with_dmalloc" >&6
4080 if test $with_dmalloc = yes ; then
4082 echo "$as_me:4082: checking for dmalloc_debug in -ldmalloc" >&5
4083 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4084 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 ac_check_lib_save_LIBS=$LIBS
4088 LIBS="-ldmalloc $LIBS"
4089 cat >conftest.$ac_ext <<_ACEOF
4090 #line 4090 "configure"
4091 #include "confdefs.h"
4093 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char dmalloc_debug ();