2 # From configure.in Revision: 1.434 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20080325.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-progs suppress build with programs (e.g., tic)
701 --without-curses-h install curses.h as ncurses.h only
702 --enable-mixed-case tic should assume mixed-case filenames
703 --with-install-prefix prefixes actual install-location ($DESTDIR)
704 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
705 --with-build-cc=XXX the build C compiler ($BUILD_CC)
706 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
707 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
708 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
709 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
710 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
711 Options to Specify the Libraries Built/Used:
712 --with-libtool generate libraries with libtool
713 --with-shared generate shared-libraries
714 --with-normal generate normal-libraries (default)
715 --with-debug generate debug-libraries (default)
716 --with-profile generate profile-libraries
717 --with-termlib generate separate terminfo library
718 --with-ticlib generate separate tic library
719 --with-gpm use Alessandro Rubini's GPM library
720 --without-dlsym do not use dlsym() to load GPM dynamically
721 --with-sysmouse use sysmouse (FreeBSD console)
722 --enable-rpath use rpath option when generating shared libraries
723 --disable-relink relink shared libraries during install
724 --with-shlib-version=X Specify rel or abi version for shared libs
725 Fine-Tuning Your Configuration:
726 --disable-overwrite leave out the link to -lcurses
727 --disable-database do not use terminfo, only fallbacks/termcap
728 --with-database=XXX specify terminfo source to install
729 --with-hashed-db specify hashed-database library
730 --with-fallbacks=XXX specify list of fallback terminal descriptions
731 --without-xterm-new specify if xterm terminfo should be old version
732 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
733 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
734 --disable-big-core assume machine has little memory
735 --disable-big-strings assume compiler has only standard-size strings
736 --enable-termcap compile in termcap fallback support
737 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
738 --enable-getcap fast termcap load, no xrefs to terminfo
739 --enable-getcap-cache cache translated termcaps in ~/.terminfo
740 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
741 --disable-root-environ restrict environment when running as root
742 --enable-symlinks make tic use symbolic links not hard links
743 --enable-broken_linker compile with broken-linker support code
744 --enable-bsdpad recognize BSD-style prefix padding
745 --enable-widec compile with wide-char/UTF-8 code
746 --disable-lp64 allow chtype to be long (ignore _LP64)
747 --disable-largefile omit support for large files
748 --disable-tparm-varargs compile tparm() without varargs interface
749 --with-bool=TYPE override fallback type of bool variable
750 --with-caps=alt compile with alternate Caps file
751 --with-chtype=TYPE override type of chtype
752 --with-ospeed=TYPE override type of ospeed variable
753 --with-mmask-t=TYPE override type of mmask_t
754 --with-rcs-ids compile-in RCS identifiers
755 Options to Specify How Manpages are Installed:
756 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
757 optionally formatted/catonly, e.g., gzip,formatted
758 --with-manpage-renames specify manpage-renaming
759 --with-manpage-aliases specify manpage-aliases using .so
760 --with-manpage-symlinks specify manpage-aliases using symlinks
761 --with-manpage-tbl specify manpage processing with tbl
763 --disable-ext-funcs disable function-extensions
764 --enable-const compile with extra/non-standard const
765 --enable-ext-colors compile for 256-color support
766 --enable-ext-mouse compile for extended mouse-encoding
767 --enable-no-padding compile with $NCURSES_NO_PADDING code
768 --enable-signed-char compile using signed Boolean's in term.h
769 --enable-sigwinch compile with SIGWINCH handler
770 --enable-tcap-names compile with user-definable terminal capabilities
772 --without-develop disable development options
773 --enable-hard-tabs compile with hard-tabs code
774 --enable-xmc-glitch compile with support for xmc (magic-cookie)
776 --disable-assumed-color do not assume anything about default-colors
777 --disable-hashmap compile without hashmap scrolling-optimization
778 --enable-colorfgbg compile with $COLORFGBG code
779 --with-pthread use POSIX thread library
780 --enable-reentrant compile with experimental reentrant code
781 --enable-safe-sprintf compile with experimental safe-sprintf code
782 --disable-scroll-hints compile without scroll-hints code
783 --enable-wgetch-events compile with experimental wgetch-events code
784 Testing/development Options:
785 --enable-echo build: display "compiling" commands (default)
786 --enable-warnings build: turn on GCC compiler warnings
787 --enable-assertions test: turn on generation of assertion code
788 --with-dmalloc test: use Gray Watson's dmalloc library
789 --with-dbmalloc test: use Conor Cahill's dbmalloc library
790 --with-valgrind test: use valgrind
791 --disable-leaks test: free permanent memory, analyze leaks
792 --enable-expanded test: generate functions for certain macros
793 --disable-macros test: use functions rather than macros
794 --with-trace test: add trace() function to all models of ncurses
795 Ada95 Binding Options:
796 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
797 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
798 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
800 Some influential environment variables:
801 CC C compiler command
802 CFLAGS C compiler flags
803 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
804 nonstandard directory <lib dir>
805 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
806 headers in a nonstandard directory <include dir>
808 CXX C++ compiler command
809 CXXFLAGS C++ compiler flags
810 CXXCPP C++ preprocessor
812 Use these variables to override the choices made by `configure' or to help
813 it to find libraries and programs with nonstandard names/locations.
818 if test "$ac_init_help" = "recursive"; then
819 # If there are subdirs, report their specific --help.
821 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
823 # A "../" for each directory in /$ac_subdir.
824 ac_dots=`echo $ac_subdir |
825 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
828 .) # No --srcdir option. We are building in place.
829 ac_sub_srcdir=$srcdir ;;
830 [\\/]* | ?:[\\/]* ) # Absolute path.
831 ac_sub_srcdir=$srcdir/$ac_subdir ;;
833 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
836 # Check for guested configure; otherwise get Cygnus style configure.
837 if test -f $ac_sub_srcdir/configure.gnu; then
839 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
840 elif test -f $ac_sub_srcdir/configure; then
842 $SHELL $ac_sub_srcdir/configure --help=recursive
843 elif test -f $ac_sub_srcdir/configure.ac ||
844 test -f $ac_sub_srcdir/configure.in; then
848 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
854 test -n "$ac_init_help" && exit 0
855 if $ac_init_version; then
858 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
859 Free Software Foundation, Inc.
860 This configure script is free software; the Free Software Foundation
861 gives unlimited permission to copy, distribute and modify it.
867 This file contains any messages produced by compilers while
868 running configure, to aid debugging if configure makes a mistake.
870 It was created by $as_me, which was
871 generated by GNU Autoconf 2.52.20080325. Invocation command line was
882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
883 uname -m = `(uname -m) 2>/dev/null || echo unknown`
884 uname -r = `(uname -r) 2>/dev/null || echo unknown`
885 uname -s = `(uname -s) 2>/dev/null || echo unknown`
886 uname -v = `(uname -v) 2>/dev/null || echo unknown`
888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
889 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
891 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
892 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
894 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
895 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
896 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
897 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
911 # Keep a trace of the command line.
912 # Strip out --no-create and --no-recursion so they do not pile up.
913 # Also quote any args containing shell meta-characters.
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920 | --no-cr | --no-c) ;;
921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
923 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
924 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
925 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
927 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
930 # Get rid of the leading space.
933 # When interrupted or exit'd, cleanup temporary files, and complete
934 # config.log. We remove comments because anyway the quotes in there
935 # would cause problems or look ugly.
937 # Save into config.log some information that might help in debugging.
939 echo "## ----------------- ##" >&5
940 echo "## Cache variables. ##" >&5
941 echo "## ----------------- ##" >&5
943 # The following way of writing the cache mishandles newlines in values,
946 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
949 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
954 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
958 sed "/^$/d" confdefs.h >conftest.log
959 if test -s conftest.log; then
961 echo "## ------------ ##" >&5
962 echo "## confdefs.h. ##" >&5
963 echo "## ------------ ##" >&5
968 test "$ac_signal" != 0 &&
969 echo "$as_me: caught signal $ac_signal" >&5
970 echo "$as_me: exit $exit_status" >&5
971 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
974 for ac_signal in 1 2 13 15; do
975 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
979 # confdefs.h avoids OS command line length limits that DEFS can exceed.
980 rm -rf conftest* confdefs.h
981 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
984 # Let the site file select an alternate cache file if it wants to.
985 # Prefer explicitly selected file to automatically selected ones.
986 if test -z "$CONFIG_SITE"; then
987 if test "x$prefix" != xNONE; then
988 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
990 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
993 for ac_site_file in $CONFIG_SITE; do
994 if test -r "$ac_site_file"; then
995 { echo "$as_me:995: loading site script $ac_site_file" >&5
996 echo "$as_me: loading site script $ac_site_file" >&6;}
997 cat "$ac_site_file" >&5
1002 if test -r "$cache_file"; then
1003 # Some versions of bash will fail to source /dev/null (special
1004 # files actually), so we avoid doing that.
1005 if test -f "$cache_file"; then
1006 { echo "$as_me:1006: loading cache $cache_file" >&5
1007 echo "$as_me: loading cache $cache_file" >&6;}
1009 [\\/]* | ?:[\\/]* ) . $cache_file;;
1010 *) . ./$cache_file;;
1014 { echo "$as_me:1014: creating cache $cache_file" >&5
1015 echo "$as_me: creating cache $cache_file" >&6;}
1019 # Check that the precious variables saved in the cache have kept the same
1021 ac_cache_corrupted=false
1022 for ac_var in `(set) 2>&1 |
1023 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1024 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1025 eval ac_new_set=\$ac_env_${ac_var}_set
1026 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1027 eval ac_new_val="\$ac_env_${ac_var}_value"
1028 case $ac_old_set,$ac_new_set in
1030 { echo "$as_me:1030: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1031 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1032 ac_cache_corrupted=: ;;
1034 { echo "$as_me:1034: error: \`$ac_var' was not set in the previous run" >&5
1035 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1036 ac_cache_corrupted=: ;;
1039 if test "x$ac_old_val" != "x$ac_new_val"; then
1040 { echo "$as_me:1040: error: \`$ac_var' has changed since the previous run:" >&5
1041 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1042 { echo "$as_me:1042: former value: $ac_old_val" >&5
1043 echo "$as_me: former value: $ac_old_val" >&2;}
1044 { echo "$as_me:1044: current value: $ac_new_val" >&5
1045 echo "$as_me: current value: $ac_new_val" >&2;}
1046 ac_cache_corrupted=:
1049 # Pass precious variables to config.status. It doesn't matter if
1050 # we pass some twice (in addition to the command line arguments).
1051 if test "$ac_new_set" = set; then
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1055 ac_configure_args="$ac_configure_args '$ac_arg'"
1057 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1062 if $ac_cache_corrupted; then
1063 { echo "$as_me:1063: error: changes in the environment can compromise the build" >&5
1064 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1065 { { echo "$as_me:1065: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1066 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1067 { (exit 1); exit 1; }; }
1071 ac_cpp='$CPP $CPPFLAGS'
1072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1075 ac_main_return=return
1077 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1078 *c*,-n*) ECHO_N= ECHO_C='
1080 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1081 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1083 echo "#! $SHELL" >conftest.sh
1084 echo "exit 0" >>conftest.sh
1085 chmod +x conftest.sh
1086 if { (echo "$as_me:1086: PATH=\".;.\"; conftest.sh") >&5
1087 (PATH=".;."; conftest.sh) 2>&5
1089 echo "$as_me:1089: \$? = $ac_status" >&5
1090 (exit $ac_status); }; then
1091 ac_path_separator=';'
1095 PATH_SEPARATOR="$ac_path_separator"
1098 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1102 echo "$as_me:1102: checking for egrep" >&5
1103 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1104 if test "${ac_cv_prog_egrep+set}" = set; then
1105 echo $ECHO_N "(cached) $ECHO_C" >&6
1107 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1108 then ac_cv_prog_egrep='grep -E'
1109 else ac_cv_prog_egrep='egrep'
1112 echo "$as_me:1112: result: $ac_cv_prog_egrep" >&5
1113 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1114 EGREP=$ac_cv_prog_egrep
1116 test -z "$EGREP" && { { echo "$as_me:1116: error: No egrep program found" >&5
1117 echo "$as_me: error: No egrep program found" >&2;}
1118 { (exit 1); exit 1; }; }
1120 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1121 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1122 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1123 cf_cv_abi_version=${NCURSES_MAJOR}
1124 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1125 cf_cv_timestamp=`date`
1126 echo "$as_me:1126: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1127 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1129 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1131 # Check whether --with-rel-version or --without-rel-version was given.
1132 if test "${with_rel_version+set}" = set; then
1133 withval="$with_rel_version"
1134 { echo "$as_me:1134: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1135 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1136 cf_cv_rel_version=$withval
1139 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1140 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1142 if test -n "$NCURSES_MAJOR" ; then
1143 case $NCURSES_MAJOR in #(vi
1147 { { echo "$as_me:1147: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1148 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1149 { (exit 1); exit 1; }; }
1153 { { echo "$as_me:1153: error: Release major-version value is empty" >&5
1154 echo "$as_me: error: Release major-version value is empty" >&2;}
1155 { (exit 1); exit 1; }; }
1158 if test -n "$NCURSES_MINOR" ; then
1159 case $NCURSES_MINOR in #(vi
1163 { { echo "$as_me:1163: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1164 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1165 { (exit 1); exit 1; }; }
1169 { { echo "$as_me:1169: error: Release minor-version value is empty" >&5
1170 echo "$as_me: error: Release minor-version value is empty" >&2;}
1171 { (exit 1); exit 1; }; }
1174 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1176 # Check whether --with-abi-version or --without-abi-version was given.
1177 if test "${with_abi_version+set}" = set; then
1178 withval="$with_abi_version"
1179 { echo "$as_me:1179: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1180 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1181 cf_cv_abi_version=$withval
1184 if test -n "$cf_cv_abi_version" ; then
1185 case $cf_cv_abi_version in #(vi
1189 { { echo "$as_me:1189: error: ABI version is not a number: $cf_cv_abi_version" >&5
1190 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1191 { (exit 1); exit 1; }; }
1195 { { echo "$as_me:1195: error: ABI version value is empty" >&5
1196 echo "$as_me: error: ABI version value is empty" >&2;}
1197 { (exit 1); exit 1; }; }
1201 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1202 if test -f $ac_dir/install-sh; then
1204 ac_install_sh="$ac_aux_dir/install-sh -c"
1206 elif test -f $ac_dir/install.sh; then
1208 ac_install_sh="$ac_aux_dir/install.sh -c"
1210 elif test -f $ac_dir/shtool; then
1212 ac_install_sh="$ac_aux_dir/shtool install -c"
1216 if test -z "$ac_aux_dir"; then
1217 { { echo "$as_me:1217: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1218 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1219 { (exit 1); exit 1; }; }
1221 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1222 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1223 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1225 # Make sure we can run config.sub.
1226 $ac_config_sub sun4 >/dev/null 2>&1 ||
1227 { { echo "$as_me:1227: error: cannot run $ac_config_sub" >&5
1228 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1229 { (exit 1); exit 1; }; }
1231 echo "$as_me:1231: checking build system type" >&5
1232 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1233 if test "${ac_cv_build+set}" = set; then
1234 echo $ECHO_N "(cached) $ECHO_C" >&6
1236 ac_cv_build_alias=$build_alias
1237 test -z "$ac_cv_build_alias" &&
1238 ac_cv_build_alias=`$ac_config_guess`
1239 test -z "$ac_cv_build_alias" &&
1240 { { echo "$as_me:1240: error: cannot guess build type; you must specify one" >&5
1241 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1242 { (exit 1); exit 1; }; }
1243 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1244 { { echo "$as_me:1244: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1245 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1246 { (exit 1); exit 1; }; }
1249 echo "$as_me:1249: result: $ac_cv_build" >&5
1250 echo "${ECHO_T}$ac_cv_build" >&6
1252 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1253 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1254 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1256 echo "$as_me:1256: checking host system type" >&5
1257 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1258 if test "${ac_cv_host+set}" = set; then
1259 echo $ECHO_N "(cached) $ECHO_C" >&6
1261 ac_cv_host_alias=$host_alias
1262 test -z "$ac_cv_host_alias" &&
1263 ac_cv_host_alias=$ac_cv_build_alias
1264 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1265 { { echo "$as_me:1265: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1266 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1267 { (exit 1); exit 1; }; }
1270 echo "$as_me:1270: result: $ac_cv_host" >&5
1271 echo "${ECHO_T}$ac_cv_host" >&6
1273 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1274 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1275 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1277 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1278 echo "$as_me:1278: checking target system type" >&5
1279 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1280 if test "${ac_cv_target+set}" = set; then
1281 echo $ECHO_N "(cached) $ECHO_C" >&6
1283 ac_cv_target_alias=$target_alias
1284 test "x$ac_cv_target_alias" = "x" &&
1285 ac_cv_target_alias=$ac_cv_host_alias
1286 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1287 { { echo "$as_me:1287: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1288 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1289 { (exit 1); exit 1; }; }
1292 echo "$as_me:1292: result: $ac_cv_target" >&5
1293 echo "${ECHO_T}$ac_cv_target" >&6
1294 target=$ac_cv_target
1295 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1296 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1297 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1299 # The aliases save the names the user supplied, while $host etc.
1300 # will get canonicalized.
1301 test -n "$target_alias" &&
1302 test "$program_prefix$program_suffix$program_transform_name" = \
1304 program_prefix=${target_alias}-
1305 system_name="$host_os"
1307 system_name="`(uname -s -r) 2>/dev/null`"
1308 if test -z "$system_name" ; then
1309 system_name="`(hostname) 2>/dev/null`"
1312 test -n "$system_name" && cat >>confdefs.h <<EOF
1313 #define SYSTEM_NAME "$system_name"
1316 if test "${cf_cv_system_name+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 cf_cv_system_name="$system_name"
1322 test -z "$system_name" && system_name="$cf_cv_system_name"
1323 test -n "$cf_cv_system_name" && echo "$as_me:1323: result: Configuring for $cf_cv_system_name" >&5
1324 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1326 if test ".$system_name" != ".$cf_cv_system_name" ; then
1327 echo "$as_me:1327: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1328 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1329 { { echo "$as_me:1329: error: \"Please remove config.cache and try again.\"" >&5
1330 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1331 { (exit 1); exit 1; }; }
1334 # Check whether --with-system-type or --without-system-type was given.
1335 if test "${with_system_type+set}" = set; then
1336 withval="$with_system_type"
1337 { echo "$as_me:1337: WARNING: overriding system type to $withval" >&5
1338 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1339 cf_cv_system_name=$withval
1342 ### Save the given $CFLAGS to allow user-override.
1343 cf_user_CFLAGS="$CFLAGS"
1345 ### Default install-location
1347 echo "$as_me:1347: checking for prefix" >&5
1348 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1349 if test "x$prefix" = "xNONE" ; then
1350 case "$cf_cv_system_name" in
1351 # non-vendor systems don't have a conflict
1352 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1355 *) prefix=$ac_default_prefix
1359 echo "$as_me:1359: result: $prefix" >&5
1360 echo "${ECHO_T}$prefix" >&6
1362 if test "x$prefix" = "xNONE" ; then
1363 echo "$as_me:1363: checking for default include-directory" >&5
1364 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1365 test -n "$verbose" && echo 1>&6
1368 $includedir/ncurses \
1370 $prefix/include/ncurses \
1371 /usr/local/include \
1372 /usr/local/include/ncurses \
1374 /usr/include/ncurses
1376 cf_dir=`eval echo $cf_symbol`
1377 if test -f $cf_dir/curses.h ; then
1378 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1379 includedir="$cf_symbol"
1380 test -n "$verbose" && echo $ac_n " found " 1>&6
1384 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1386 echo "$as_me:1386: result: $includedir" >&5
1387 echo "${ECHO_T}$includedir" >&6
1390 ### Checks for programs.
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1396 ac_main_return=return
1397 if test -n "$ac_tool_prefix"; then
1398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1400 echo "$as_me:1400: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 if test -n "$CC"; then
1406 ac_cv_prog_CC="$CC" # Let the user override the test.
1408 ac_save_IFS=$IFS; IFS=$ac_path_separator
1410 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 $as_executable_p "$ac_dir/$ac_word" || continue
1414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1415 echo "$as_me:1415: found $ac_dir/$ac_word" >&5
1422 if test -n "$CC"; then
1423 echo "$as_me:1423: result: $CC" >&5
1424 echo "${ECHO_T}$CC" >&6
1426 echo "$as_me:1426: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1431 if test -z "$ac_cv_prog_CC"; then
1433 # Extract the first word of "gcc", so it can be a program name with args.
1434 set dummy gcc; ac_word=$2
1435 echo "$as_me:1435: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 if test -n "$ac_ct_CC"; then
1441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1443 ac_save_IFS=$IFS; IFS=$ac_path_separator
1445 for ac_dir in $ac_dummy; do
1447 test -z "$ac_dir" && ac_dir=.
1448 $as_executable_p "$ac_dir/$ac_word" || continue
1449 ac_cv_prog_ac_ct_CC="gcc"
1450 echo "$as_me:1450: found $ac_dir/$ac_word" >&5
1456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1457 if test -n "$ac_ct_CC"; then
1458 echo "$as_me:1458: result: $ac_ct_CC" >&5
1459 echo "${ECHO_T}$ac_ct_CC" >&6
1461 echo "$as_me:1461: result: no" >&5
1462 echo "${ECHO_T}no" >&6
1470 if test -z "$CC"; then
1471 if test -n "$ac_tool_prefix"; then
1472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1473 set dummy ${ac_tool_prefix}cc; ac_word=$2
1474 echo "$as_me:1474: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$CC"; then
1480 ac_cv_prog_CC="$CC" # Let the user override the test.
1482 ac_save_IFS=$IFS; IFS=$ac_path_separator
1484 for ac_dir in $ac_dummy; do
1486 test -z "$ac_dir" && ac_dir=.
1487 $as_executable_p "$ac_dir/$ac_word" || continue
1488 ac_cv_prog_CC="${ac_tool_prefix}cc"
1489 echo "$as_me:1489: found $ac_dir/$ac_word" >&5
1496 if test -n "$CC"; then
1497 echo "$as_me:1497: result: $CC" >&5
1498 echo "${ECHO_T}$CC" >&6
1500 echo "$as_me:1500: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1505 if test -z "$ac_cv_prog_CC"; then
1507 # Extract the first word of "cc", so it can be a program name with args.
1508 set dummy cc; ac_word=$2
1509 echo "$as_me:1509: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$ac_ct_CC"; then
1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 ac_save_IFS=$IFS; IFS=$ac_path_separator
1519 for ac_dir in $ac_dummy; do
1521 test -z "$ac_dir" && ac_dir=.
1522 $as_executable_p "$ac_dir/$ac_word" || continue
1523 ac_cv_prog_ac_ct_CC="cc"
1524 echo "$as_me:1524: found $ac_dir/$ac_word" >&5
1530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532 echo "$as_me:1532: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1535 echo "$as_me:1535: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1545 if test -z "$CC"; then
1546 # Extract the first word of "cc", so it can be a program name with args.
1547 set dummy cc; ac_word=$2
1548 echo "$as_me:1548: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1557 ac_save_IFS=$IFS; IFS=$ac_path_separator
1559 for ac_dir in $ac_dummy; do
1561 test -z "$ac_dir" && ac_dir=.
1562 $as_executable_p "$ac_dir/$ac_word" || continue
1563 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1564 ac_prog_rejected=yes
1568 echo "$as_me:1568: found $ac_dir/$ac_word" >&5
1572 if test $ac_prog_rejected = yes; then
1573 # We found a bogon in the path, so make sure we never use it.
1574 set dummy $ac_cv_prog_CC
1576 if test $# != 0; then
1577 # We chose a different compiler from the bogus one.
1578 # However, it has the same basename, so the bogon will be chosen
1579 # first if we set CC to just the basename; use the full file name.
1581 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1589 if test -n "$CC"; then
1590 echo "$as_me:1590: result: $CC" >&5
1591 echo "${ECHO_T}$CC" >&6
1593 echo "$as_me:1593: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1598 if test -z "$CC"; then
1599 if test -n "$ac_tool_prefix"; then
1602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1604 echo "$as_me:1604: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1612 ac_save_IFS=$IFS; IFS=$ac_path_separator
1614 for ac_dir in $ac_dummy; do
1616 test -z "$ac_dir" && ac_dir=.
1617 $as_executable_p "$ac_dir/$ac_word" || continue
1618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619 echo "$as_me:1619: found $ac_dir/$ac_word" >&5
1626 if test -n "$CC"; then
1627 echo "$as_me:1627: result: $CC" >&5
1628 echo "${ECHO_T}$CC" >&6
1630 echo "$as_me:1630: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1634 test -n "$CC" && break
1637 if test -z "$CC"; then
1641 # Extract the first word of "$ac_prog", so it can be a program name with args.
1642 set dummy $ac_prog; ac_word=$2
1643 echo "$as_me:1643: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 ac_save_IFS=$IFS; IFS=$ac_path_separator
1653 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 $as_executable_p "$ac_dir/$ac_word" || continue
1657 ac_cv_prog_ac_ct_CC="$ac_prog"
1658 echo "$as_me:1658: found $ac_dir/$ac_word" >&5
1664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1665 if test -n "$ac_ct_CC"; then
1666 echo "$as_me:1666: result: $ac_ct_CC" >&5
1667 echo "${ECHO_T}$ac_ct_CC" >&6
1669 echo "$as_me:1669: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1673 test -n "$ac_ct_CC" && break
1681 test -z "$CC" && { { echo "$as_me:1681: error: no acceptable cc found in \$PATH" >&5
1682 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1683 { (exit 1); exit 1; }; }
1685 # Provide some information about the compiler.
1686 echo "$as_me:1686:" \
1687 "checking for C compiler version" >&5
1688 ac_compiler=`set X $ac_compile; echo $2`
1689 { (eval echo "$as_me:1689: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </dev/null >&5) 2>&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694 { (eval echo "$as_me:1694: \"$ac_compiler -v </dev/null >&5\"") >&5
1695 (eval $ac_compiler -v </dev/null >&5) 2>&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }
1699 { (eval echo "$as_me:1699: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
1702 echo "$as_me:1702: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1705 cat >conftest.$ac_ext <<_ACEOF
1706 #line 1706 "configure"
1707 #include "confdefs.h"
1717 ac_clean_files_save=$ac_clean_files
1718 ac_clean_files="$ac_clean_files a.out a.exe"
1719 # Try to create an executable without -o first, disregard a.out.
1720 # It will help us diagnose broken compilers, and finding out an intuition
1722 echo "$as_me:1722: checking for C compiler default output" >&5
1723 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1724 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1725 if { (eval echo "$as_me:1725: \"$ac_link_default\"") >&5
1726 (eval $ac_link_default) 2>&5
1728 echo "$as_me:1728: \$? = $ac_status" >&5
1729 (exit $ac_status); }; then
1730 # Find the output, starting from the most likely. This scheme is
1731 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1734 ls a.out conftest 2>/dev/null;
1735 ls a.* conftest.* 2>/dev/null`; do
1737 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1738 a.out ) # We found the default executable, but exeext='' is most
1741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1749 echo "$as_me: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 { { echo "$as_me:1751: error: C compiler cannot create executables" >&5
1752 echo "$as_me: error: C compiler cannot create executables" >&2;}
1753 { (exit 77); exit 77; }; }
1756 ac_exeext=$ac_cv_exeext
1757 echo "$as_me:1757: result: $ac_file" >&5
1758 echo "${ECHO_T}$ac_file" >&6
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:1762: checking whether the C compiler works" >&5
1763 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1764 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1765 # If not cross compiling, check that we can run a simple program.
1766 if test "$cross_compiling" != yes; then
1767 if { ac_try='./$ac_file'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1775 if test "$cross_compiling" = maybe; then
1778 { { echo "$as_me:1778: error: cannot run C compiled programs.
1779 If you meant to cross compile, use \`--host'." >&5
1780 echo "$as_me: error: cannot run C compiled programs.
1781 If you meant to cross compile, use \`--host'." >&2;}
1782 { (exit 1); exit 1; }; }
1786 echo "$as_me:1786: result: yes" >&5
1787 echo "${ECHO_T}yes" >&6
1789 rm -f a.out a.exe conftest$ac_cv_exeext
1790 ac_clean_files=$ac_clean_files_save
1791 # Check the compiler produces executables we can run. If not, either
1792 # the compiler is broken, or we cross compile.
1793 echo "$as_me:1793: checking whether we are cross compiling" >&5
1794 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795 echo "$as_me:1795: result: $cross_compiling" >&5
1796 echo "${ECHO_T}$cross_compiling" >&6
1798 echo "$as_me:1798: checking for executable suffix" >&5
1799 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1800 if { (eval echo "$as_me:1800: \"$ac_link\"") >&5
1801 (eval $ac_link) 2>&5
1803 echo "$as_me:1803: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1806 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1807 # work properly (i.e., refer to `conftest.exe'), while it won't with
1809 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1811 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 { { echo "$as_me:1819: error: cannot compute EXEEXT: cannot compile and link" >&5
1820 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1821 { (exit 1); exit 1; }; }
1824 rm -f conftest$ac_cv_exeext
1825 echo "$as_me:1825: result: $ac_cv_exeext" >&5
1826 echo "${ECHO_T}$ac_cv_exeext" >&6
1828 rm -f conftest.$ac_ext
1829 EXEEXT=$ac_cv_exeext
1831 echo "$as_me:1831: checking for object suffix" >&5
1832 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1833 if test "${ac_cv_objext+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 cat >conftest.$ac_ext <<_ACEOF
1837 #line 1837 "configure"
1838 #include "confdefs.h"
1848 rm -f conftest.o conftest.obj
1849 if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
1850 (eval $ac_compile) 2>&5
1852 echo "$as_me:1852: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1857 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1862 echo "$as_me: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 { { echo "$as_me:1864: error: cannot compute OBJEXT: cannot compile" >&5
1865 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1866 { (exit 1); exit 1; }; }
1869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1871 echo "$as_me:1871: result: $ac_cv_objext" >&5
1872 echo "${ECHO_T}$ac_cv_objext" >&6
1873 OBJEXT=$ac_cv_objext
1875 echo "$as_me:1875: checking whether we are using the GNU C compiler" >&5
1876 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 cat >conftest.$ac_ext <<_ACEOF
1881 #line 1881 "configure"
1882 #include "confdefs.h"
1895 rm -f conftest.$ac_objext
1896 if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
1897 (eval $ac_compile) 2>&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); } &&
1901 { ac_try='test -s conftest.$ac_objext'
1902 { (eval echo "$as_me:1902: \"$ac_try\"") >&5
1905 echo "$as_me:1905: \$? = $ac_status" >&5
1906 (exit $ac_status); }; }; then
1909 echo "$as_me: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1913 rm -f conftest.$ac_objext conftest.$ac_ext
1914 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1917 echo "$as_me:1917: result: $ac_cv_c_compiler_gnu" >&5
1918 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1919 GCC=`test $ac_compiler_gnu = yes && echo yes`
1920 ac_test_CFLAGS=${CFLAGS+set}
1921 ac_save_CFLAGS=$CFLAGS
1923 echo "$as_me:1923: checking whether $CC accepts -g" >&5
1924 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1925 if test "${ac_cv_prog_cc_g+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 cat >conftest.$ac_ext <<_ACEOF
1929 #line 1929 "configure"
1930 #include "confdefs.h"
1940 rm -f conftest.$ac_objext
1941 if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1944 echo "$as_me:1944: \$? = $ac_status" >&5
1945 (exit $ac_status); } &&
1946 { ac_try='test -s conftest.$ac_objext'
1947 { (eval echo "$as_me:1947: \"$ac_try\"") >&5
1950 echo "$as_me:1950: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1954 echo "$as_me: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1958 rm -f conftest.$ac_objext conftest.$ac_ext
1960 echo "$as_me:1960: result: $ac_cv_prog_cc_g" >&5
1961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1962 if test "$ac_test_CFLAGS" = set; then
1963 CFLAGS=$ac_save_CFLAGS
1964 elif test $ac_cv_prog_cc_g = yes; then
1965 if test "$GCC" = yes; then
1971 if test "$GCC" = yes; then
1977 # Some people use a C++ compiler to compile C. Since we use `exit',
1978 # in C++ we need to declare it. In case someone uses the same compiler
1979 # for both compiling C and C++ we need to have the C++ compiler decide
1980 # the declaration of exit, since it's the most demanding environment.
1981 cat >conftest.$ac_ext <<_ACEOF
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>&5
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); } &&
1992 { ac_try='test -s conftest.$ac_objext'
1993 { (eval echo "$as_me:1993: \"$ac_try\"") >&5
1996 echo "$as_me:1996: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
1998 for ac_declaration in \
2000 '#include <stdlib.h>' \
2001 'extern "C" void std::exit (int) throw (); using std::exit;' \
2002 'extern "C" void std::exit (int); using std::exit;' \
2003 'extern "C" void exit (int) throw ();' \
2004 'extern "C" void exit (int);' \
2007 cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:2027: \"$ac_try\"") >&5
2030 echo "$as_me:2030: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2034 echo "$as_me: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2038 rm -f conftest.$ac_objext conftest.$ac_ext
2039 cat >conftest.$ac_ext <<_ACEOF
2040 #line 2040 "configure"
2041 #include "confdefs.h"
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:2052: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>&5
2055 echo "$as_me:2055: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -s conftest.$ac_objext'
2058 { (eval echo "$as_me:2058: \"$ac_try\"") >&5
2061 echo "$as_me:2061: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2065 echo "$as_me: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2068 rm -f conftest.$ac_objext conftest.$ac_ext
2071 if test -n "$ac_declaration"; then
2072 echo '#ifdef __cplusplus' >>confdefs.h
2073 echo $ac_declaration >>confdefs.h
2074 echo '#endif' >>confdefs.h
2078 echo "$as_me: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 rm -f conftest.$ac_objext conftest.$ac_ext
2083 ac_cpp='$CPP $CPPFLAGS'
2084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087 ac_main_return=return
2090 if test "$GCC" = yes ; then
2091 echo "$as_me:2091: checking version of $CC" >&5
2092 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2093 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2094 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2095 echo "$as_me:2095: result: $GCC_VERSION" >&5
2096 echo "${ECHO_T}$GCC_VERSION" >&6
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 ac_main_return=return
2105 echo "$as_me:2105: checking how to run the C preprocessor" >&5
2106 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2107 # On Suns, sometimes $CPP names a directory.
2108 if test -n "$CPP" && test -d "$CPP"; then
2111 if test -z "$CPP"; then
2112 if test "${ac_cv_prog_CPP+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 # Double quotes because CPP needs to be expanded
2116 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2119 for ac_c_preproc_warn_flag in '' yes
2121 # Use a header file that comes with gcc, so configuring glibc
2122 # with a fresh cross-compiler works.
2123 # On the NeXT, cc -E runs the code through the compiler's parser,
2124 # not just through cpp. "Syntax error" is here to catch this case.
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line 2126 "configure"
2127 #include "confdefs.h"
2131 if { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5
2132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2134 egrep -v '^ *\+' conftest.er1 >conftest.err
2136 cat conftest.err >&5
2137 echo "$as_me:2137: \$? = $ac_status" >&5
2138 (exit $ac_status); } >/dev/null; then
2139 if test -s conftest.err; then
2140 ac_cpp_err=$ac_c_preproc_warn_flag
2147 if test -z "$ac_cpp_err"; then
2150 echo "$as_me: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2152 # Broken: fails on valid input.
2155 rm -f conftest.err conftest.$ac_ext
2157 # OK, works on sane cases. Now check whether non-existent headers
2158 # can be detected and how.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2162 #include <ac_nonexistent.h>
2164 if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 cat conftest.err >&5
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit $ac_status); } >/dev/null; then
2172 if test -s conftest.err; then
2173 ac_cpp_err=$ac_c_preproc_warn_flag
2180 if test -z "$ac_cpp_err"; then
2181 # Broken: success on invalid input.
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 # Passes both tests.
2190 rm -f conftest.err conftest.$ac_ext
2193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2194 rm -f conftest.err conftest.$ac_ext
2195 if $ac_preproc_ok; then
2207 echo "$as_me:2207: result: $CPP" >&5
2208 echo "${ECHO_T}$CPP" >&6
2210 for ac_c_preproc_warn_flag in '' yes
2212 # Use a header file that comes with gcc, so configuring glibc
2213 # with a fresh cross-compiler works.
2214 # On the NeXT, cc -E runs the code through the compiler's parser,
2215 # not just through cpp. "Syntax error" is here to catch this case.
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #line 2217 "configure"
2218 #include "confdefs.h"
2222 if { (eval echo "$as_me:2222: \"$ac_cpp conftest.$ac_ext\"") >&5
2223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2225 egrep -v '^ *\+' conftest.er1 >conftest.err
2227 cat conftest.err >&5
2228 echo "$as_me:2228: \$? = $ac_status" >&5
2229 (exit $ac_status); } >/dev/null; then
2230 if test -s conftest.err; then
2231 ac_cpp_err=$ac_c_preproc_warn_flag
2238 if test -z "$ac_cpp_err"; then
2241 echo "$as_me: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2243 # Broken: fails on valid input.
2246 rm -f conftest.err conftest.$ac_ext
2248 # OK, works on sane cases. Now check whether non-existent headers
2249 # can be detected and how.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line 2251 "configure"
2252 #include "confdefs.h"
2253 #include <ac_nonexistent.h>
2255 if { (eval echo "$as_me:2255: \"$ac_cpp conftest.$ac_ext\"") >&5
2256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258 egrep -v '^ *\+' conftest.er1 >conftest.err
2260 cat conftest.err >&5
2261 echo "$as_me:2261: \$? = $ac_status" >&5
2262 (exit $ac_status); } >/dev/null; then
2263 if test -s conftest.err; then
2264 ac_cpp_err=$ac_c_preproc_warn_flag
2271 if test -z "$ac_cpp_err"; then
2272 # Broken: success on invalid input.
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Passes both tests.
2281 rm -f conftest.err conftest.$ac_ext
2284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2285 rm -f conftest.err conftest.$ac_ext
2286 if $ac_preproc_ok; then
2289 { { echo "$as_me:2289: error: C preprocessor \"$CPP\" fails sanity check" >&5
2290 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2291 { (exit 1); exit 1; }; }
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299 ac_main_return=return
2301 if test $ac_cv_c_compiler_gnu = yes; then
2302 echo "$as_me:2302: checking whether $CC needs -traditional" >&5
2303 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2304 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 ac_pattern="Autoconf.*'x'"
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line 2309 "configure"
2310 #include "confdefs.h"
2312 int Autoconf = TIOCGETP;
2314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2315 egrep "$ac_pattern" >/dev/null 2>&1; then
2316 ac_cv_prog_gcc_traditional=yes
2318 ac_cv_prog_gcc_traditional=no
2322 if test $ac_cv_prog_gcc_traditional = no; then
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line 2324 "configure"
2325 #include "confdefs.h"
2327 int Autoconf = TCGETA;
2329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2330 egrep "$ac_pattern" >/dev/null 2>&1; then
2331 ac_cv_prog_gcc_traditional=yes
2337 echo "$as_me:2337: result: $ac_cv_prog_gcc_traditional" >&5
2338 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2339 if test $ac_cv_prog_gcc_traditional = yes; then
2340 CC="$CC -traditional"
2344 echo "$as_me:2344: checking whether $CC understands -c and -o together" >&5
2345 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2346 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 cat > conftest.$ac_ext <<CF_EOF
2354 ${cf_cv_main_return:-return}(0);
2357 # We do the test twice because some compilers refuse to overwrite an
2358 # existing .o file with -o, though they will create one.
2359 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2360 if { (eval echo "$as_me:2360: \"$ac_try\"") >&5
2363 echo "$as_me:2363: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 test -f conftest2.$ac_objext && { (eval echo "$as_me:2365: \"$ac_try\"") >&5
2368 echo "$as_me:2368: \$? = $ac_status" >&5
2369 (exit $ac_status); };
2371 eval cf_cv_prog_CC_c_o=yes
2373 eval cf_cv_prog_CC_c_o=no
2378 if test $cf_cv_prog_CC_c_o = yes; then
2379 echo "$as_me:2379: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 echo "$as_me:2382: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 echo "$as_me:2386: checking for POSIXized ISC" >&5
2387 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2388 if test -d /etc/conf/kconfig.d &&
2389 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2391 echo "$as_me:2391: result: yes" >&5
2392 echo "${ECHO_T}yes" >&6
2393 ISC=yes # If later tests want to check for ISC.
2395 cat >>confdefs.h <<\EOF
2396 #define _POSIX_SOURCE 1
2399 if test "$GCC" = yes; then
2405 echo "$as_me:2405: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2410 echo "$as_me:2410: checking for ${CC-cc} option to accept ANSI C" >&5
2411 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2412 if test "${cf_cv_ansi_cc+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cf_save_CFLAGS="$CFLAGS"
2418 cf_save_CPPFLAGS="$CPPFLAGS"
2419 # Don't try gcc -ansi; that turns off useful extensions and
2420 # breaks some systems' header files.
2421 # AIX -qlanglvl=ansi
2422 # Ultrix and OSF/1 -std1
2423 # HP-UX -Aa -D_HPUX_SOURCE
2425 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2426 for cf_arg in "-DCC_HAS_PROTOS" \
2431 "-Aa -D_HPUX_SOURCE" \
2438 cf_new_extra_cppflags=
2440 for cf_add_cflags in $cf_arg
2442 case $cf_fix_cppflags in
2444 case $cf_add_cflags in #(vi
2445 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2446 case $cf_add_cflags in
2448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2450 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2451 && test -z "${cf_tst_cflags}" \
2452 && cf_fix_cppflags=yes
2454 if test $cf_fix_cppflags = yes ; then
2455 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2457 elif test "${cf_tst_cflags}" = "\"'" ; then
2458 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2464 *$cf_add_cflags) #(vi
2467 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2472 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2477 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2479 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2481 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2482 && test -z "${cf_tst_cflags}" \
2483 && cf_fix_cppflags=no
2488 if test -n "$cf_new_cflags" ; then
2490 CFLAGS="$CFLAGS $cf_new_cflags"
2493 if test -n "$cf_new_cppflags" ; then
2495 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2498 if test -n "$cf_new_extra_cppflags" ; then
2500 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line 2504 "configure"
2505 #include "confdefs.h"
2507 #ifndef CC_HAS_PROTOS
2508 #if !defined(__STDC__) || (__STDC__ != 1)
2517 int test (int i, double x);
2518 struct s1 {int (*f) (int a);};
2519 struct s2 {int (*f) (double a);};
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:2525: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
2528 echo "$as_me:2528: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:2531: \"$ac_try\"") >&5
2534 echo "$as_me:2534: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 cf_cv_ansi_cc="$cf_arg"; break
2538 echo "$as_me: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2543 CFLAGS="$cf_save_CFLAGS"
2544 CPPFLAGS="$cf_save_CPPFLAGS"
2547 echo "$as_me:2547: result: $cf_cv_ansi_cc" >&5
2548 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2550 if test "$cf_cv_ansi_cc" != "no"; then
2551 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2556 cf_new_extra_cppflags=
2558 for cf_add_cflags in $cf_cv_ansi_cc
2560 case $cf_fix_cppflags in
2562 case $cf_add_cflags in #(vi
2563 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2564 case $cf_add_cflags in
2566 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2568 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2569 && test -z "${cf_tst_cflags}" \
2570 && cf_fix_cppflags=yes
2572 if test $cf_fix_cppflags = yes ; then
2573 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2575 elif test "${cf_tst_cflags}" = "\"'" ; then
2576 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2582 *$cf_add_cflags) #(vi
2585 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2590 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2595 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2597 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2599 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2600 && test -z "${cf_tst_cflags}" \
2601 && cf_fix_cppflags=no
2606 if test -n "$cf_new_cflags" ; then
2608 CFLAGS="$CFLAGS $cf_new_cflags"
2611 if test -n "$cf_new_cppflags" ; then
2613 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2616 if test -n "$cf_new_extra_cppflags" ; then
2618 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2622 cat >>confdefs.h <<\EOF
2623 #define CC_HAS_PROTOS 1
2629 if test "$cf_cv_ansi_cc" = "no"; then
2630 { { echo "$as_me:2630: error: Your compiler does not appear to recognize prototypes.
2631 You have the following choices:
2632 a. adjust your compiler options
2633 b. get an up-to-date compiler
2634 c. use a wrapper such as unproto" >&5
2635 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2636 You have the following choices:
2637 a. adjust your compiler options
2638 b. get an up-to-date compiler
2639 c. use a wrapper such as unproto" >&2;}
2640 { (exit 1); exit 1; }; }
2643 case $cf_cv_system_name in
2645 CFLAGS="$CFLAGS -Zmt"
2646 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2647 CXXFLAGS="$CXXFLAGS -Zmt"
2648 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2649 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2656 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2657 #define PROG_EXT "$PROG_EXT"
2660 if test "$cross_compiling" = yes ; then
2663 case "$cf_cv_system_name" in #(vi
2665 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2667 *) LDPATH=$PATH:/sbin:/usr/sbin
2668 # Extract the first word of "ldconfig", so it can be a program name with args.
2669 set dummy ldconfig; ac_word=$2
2670 echo "$as_me:2670: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2672 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2680 ac_save_IFS=$IFS; IFS=$ac_path_separator
2682 for ac_dir in $ac_dummy; do
2684 test -z "$ac_dir" && ac_dir=.
2685 if $as_executable_p "$ac_dir/$ac_word"; then
2686 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2687 echo "$as_me:2687: found $ac_dir/$ac_word" >&5
2695 LDCONFIG=$ac_cv_path_LDCONFIG
2697 if test -n "$LDCONFIG"; then
2698 echo "$as_me:2698: result: $LDCONFIG" >&5
2699 echo "${ECHO_T}$LDCONFIG" >&6
2701 echo "$as_me:2701: result: no" >&5
2702 echo "${ECHO_T}no" >&6
2709 echo "$as_me:2709: checking if you want to ensure bool is consistent with C++" >&5
2710 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2712 # Check whether --with-cxx or --without-cxx was given.
2713 if test "${with_cxx+set}" = set; then
2715 cf_with_cxx=$withval
2719 echo "$as_me:2719: result: $cf_with_cxx" >&5
2720 echo "${ECHO_T}$cf_with_cxx" >&6
2721 if test "X$cf_with_cxx" = Xno ; then
2725 # with autoconf 2.13, we can change the error to a warning:
2727 ac_cpp='$CXXCPP $CPPFLAGS'
2728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2731 ac_main_return=return
2732 if test -n "$ac_tool_prefix"; then
2733 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2737 echo "$as_me:2737: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2739 if test "${ac_cv_prog_CXX+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 if test -n "$CXX"; then
2743 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2745 ac_save_IFS=$IFS; IFS=$ac_path_separator
2747 for ac_dir in $ac_dummy; do
2749 test -z "$ac_dir" && ac_dir=.
2750 $as_executable_p "$ac_dir/$ac_word" || continue
2751 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2752 echo "$as_me:2752: found $ac_dir/$ac_word" >&5
2759 if test -n "$CXX"; then
2760 echo "$as_me:2760: result: $CXX" >&5
2761 echo "${ECHO_T}$CXX" >&6
2763 echo "$as_me:2763: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2767 test -n "$CXX" && break
2770 if test -z "$CXX"; then
2772 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 echo "$as_me:2776: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$ac_ct_CXX"; then
2782 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2784 ac_save_IFS=$IFS; IFS=$ac_path_separator
2786 for ac_dir in $ac_dummy; do
2788 test -z "$ac_dir" && ac_dir=.
2789 $as_executable_p "$ac_dir/$ac_word" || continue
2790 ac_cv_prog_ac_ct_CXX="$ac_prog"
2791 echo "$as_me:2791: found $ac_dir/$ac_word" >&5
2797 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2798 if test -n "$ac_ct_CXX"; then
2799 echo "$as_me:2799: result: $ac_ct_CXX" >&5
2800 echo "${ECHO_T}$ac_ct_CXX" >&6
2802 echo "$as_me:2802: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2806 test -n "$ac_ct_CXX" && break
2808 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2813 # Provide some information about the compiler.
2814 echo "$as_me:2814:" \
2815 "checking for C++ compiler version" >&5
2816 ac_compiler=`set X $ac_compile; echo $2`
2817 { (eval echo "$as_me:2817: \"$ac_compiler --version </dev/null >&5\"") >&5
2818 (eval $ac_compiler --version </dev/null >&5) 2>&5
2820 echo "$as_me:2820: \$? = $ac_status" >&5
2821 (exit $ac_status); }
2822 { (eval echo "$as_me:2822: \"$ac_compiler -v </dev/null >&5\"") >&5
2823 (eval $ac_compiler -v </dev/null >&5) 2>&5
2825 echo "$as_me:2825: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827 { (eval echo "$as_me:2827: \"$ac_compiler -V </dev/null >&5\"") >&5
2828 (eval $ac_compiler -V </dev/null >&5) 2>&5
2830 echo "$as_me:2830: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2833 echo "$as_me:2833: checking whether we are using the GNU C++ compiler" >&5
2834 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2835 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.$ac_ext <<_ACEOF
2839 #line 2839 "configure"
2840 #include "confdefs.h"
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>&5
2857 echo "$as_me:2857: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:2860: \"$ac_try\"") >&5
2863 echo "$as_me:2863: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2867 echo "$as_me: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2871 rm -f conftest.$ac_objext conftest.$ac_ext
2872 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2875 echo "$as_me:2875: result: $ac_cv_cxx_compiler_gnu" >&5
2876 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2877 GXX=`test $ac_compiler_gnu = yes && echo yes`
2878 ac_test_CXXFLAGS=${CXXFLAGS+set}
2879 ac_save_CXXFLAGS=$CXXFLAGS
2881 echo "$as_me:2881: checking whether $CXX accepts -g" >&5
2882 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2883 if test "${ac_cv_prog_cxx_g+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 cat >conftest.$ac_ext <<_ACEOF
2887 #line 2887 "configure"
2888 #include "confdefs.h"
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>&5
2902 echo "$as_me:2902: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:2905: \"$ac_try\"") >&5
2908 echo "$as_me:2908: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2910 ac_cv_prog_cxx_g=yes
2912 echo "$as_me: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2916 rm -f conftest.$ac_objext conftest.$ac_ext
2918 echo "$as_me:2918: result: $ac_cv_prog_cxx_g" >&5
2919 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2920 if test "$ac_test_CXXFLAGS" = set; then
2921 CXXFLAGS=$ac_save_CXXFLAGS
2922 elif test $ac_cv_prog_cxx_g = yes; then
2923 if test "$GXX" = yes; then
2929 if test "$GXX" = yes; then
2935 for ac_declaration in \
2937 '#include <stdlib.h>' \
2938 'extern "C" void std::exit (int) throw (); using std::exit;' \
2939 'extern "C" void std::exit (int); using std::exit;' \
2940 'extern "C" void exit (int) throw ();' \
2941 'extern "C" void exit (int);' \
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #line 2945 "configure"
2946 #include "confdefs.h"
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:2958: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>&5
2961 echo "$as_me:2961: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -s conftest.$ac_objext'
2964 { (eval echo "$as_me:2964: \"$ac_try\"") >&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2971 echo "$as_me: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2975 rm -f conftest.$ac_objext conftest.$ac_ext
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #line 2977 "configure"
2978 #include "confdefs.h"
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3005 rm -f conftest.$ac_objext conftest.$ac_ext
3008 if test -n "$ac_declaration"; then
3009 echo '#ifdef __cplusplus' >>confdefs.h
3010 echo $ac_declaration >>confdefs.h
3011 echo '#endif' >>confdefs.h
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 ac_main_return=return
3021 # autoconf 2.5x removed the error - by hardcoding it to g++.
3022 if test "$CXX" = "g++" ; then
3023 # Extract the first word of "g++", so it can be a program name with args.
3024 set dummy g++; ac_word=$2
3025 echo "$as_me:3025: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_path_CXX+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3035 ac_save_IFS=$IFS; IFS=$ac_path_separator
3037 for ac_dir in $ac_dummy; do
3039 test -z "$ac_dir" && ac_dir=.
3040 if $as_executable_p "$ac_dir/$ac_word"; then
3041 ac_cv_path_CXX="$ac_dir/$ac_word"
3042 echo "$as_me:3042: found $ac_dir/$ac_word" >&5
3052 if test -n "$CXX"; then
3053 echo "$as_me:3053: result: $CXX" >&5
3054 echo "${ECHO_T}$CXX" >&6
3056 echo "$as_me:3056: result: no" >&5
3057 echo "${ECHO_T}no" >&6
3061 if test "$CXX" = "g++" ; then
3062 { echo "$as_me:3062: WARNING: ignoring hardcoded g++" >&5
3063 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3064 cf_with_cxx=no; CXX=""; GXX="";
3069 if test "$GXX" = yes; then
3070 echo "$as_me:3070: checking version of g++" >&5
3071 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3072 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3073 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3074 echo "$as_me:3074: result: $GXX_VERSION" >&5
3075 echo "${ECHO_T}$GXX_VERSION" >&6
3078 case $GXX_VERSION in
3080 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3082 { echo "$as_me:3082: WARNING: templates do not work" >&5
3083 echo "$as_me: WARNING: templates do not work" >&2;}
3087 echo "$as_me:3087: checking if you want to build C++ binding and demo" >&5
3088 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3090 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3091 if test "${with_cxx_binding+set}" = set; then
3092 withval="$with_cxx_binding"
3093 cf_with_cxx_binding=$withval
3095 cf_with_cxx_binding=$cf_with_cxx
3097 echo "$as_me:3097: result: $cf_with_cxx_binding" >&5
3098 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3100 echo "$as_me:3100: checking if you want to build with Ada95" >&5
3101 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3103 # Check whether --with-ada or --without-ada was given.
3104 if test "${with_ada+set}" = set; then
3106 cf_with_ada=$withval
3110 echo "$as_me:3110: result: $cf_with_ada" >&5
3111 echo "${ECHO_T}$cf_with_ada" >&6
3113 echo "$as_me:3113: checking if you want to build programs such as tic" >&5
3114 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3116 # Check whether --with-progs or --without-progs was given.
3117 if test "${with_progs+set}" = set; then
3118 withval="$with_progs"
3119 cf_with_progs=$withval
3123 echo "$as_me:3123: result: $cf_with_progs" >&5
3124 echo "${ECHO_T}$cf_with_progs" >&6
3126 echo "$as_me:3126: checking if you wish to install curses.h" >&5
3127 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3129 # Check whether --with-curses-h or --without-curses-h was given.
3130 if test "${with_curses_h+set}" = set; then
3131 withval="$with_curses_h"
3132 with_curses_h=$withval
3136 echo "$as_me:3136: result: $with_curses_h" >&5
3137 echo "${ECHO_T}$with_curses_h" >&6
3139 modules_to_build="ncurses"
3140 if test "X$cf_with_progs" != Xno ; then
3141 modules_to_build="$modules_to_build progs tack"
3143 modules_to_build="$modules_to_build panel menu form"
3145 test "$program_prefix" != NONE &&
3146 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3147 # Use a double $ so make ignores it.
3148 test "$program_suffix" != NONE &&
3149 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3150 # Double any \ or $. echo might interpret backslashes.
3151 # By default was `s,x,x', remove it if useless.
3152 cat <<\_ACEOF >conftest.sed
3153 s/[\\$]/&&/g;s/;s,x,x,$//
3155 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3158 for ac_prog in mawk gawk nawk awk
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy $ac_prog; ac_word=$2
3162 echo "$as_me:3162: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_AWK+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 if test -n "$AWK"; then
3168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3170 ac_save_IFS=$IFS; IFS=$ac_path_separator
3172 for ac_dir in $ac_dummy; do
3174 test -z "$ac_dir" && ac_dir=.
3175 $as_executable_p "$ac_dir/$ac_word" || continue
3176 ac_cv_prog_AWK="$ac_prog"
3177 echo "$as_me:3177: found $ac_dir/$ac_word" >&5
3184 if test -n "$AWK"; then
3185 echo "$as_me:3185: result: $AWK" >&5
3186 echo "${ECHO_T}$AWK" >&6
3188 echo "$as_me:3188: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3192 test -n "$AWK" && break
3195 test -z "$AWK" && { { echo "$as_me:3195: error: No awk program found" >&5
3196 echo "$as_me: error: No awk program found" >&2;}
3197 { (exit 1); exit 1; }; }
3199 echo "$as_me:3199: checking for egrep" >&5
3200 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3201 if test "${ac_cv_prog_egrep+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3205 then ac_cv_prog_egrep='grep -E'
3206 else ac_cv_prog_egrep='egrep'
3209 echo "$as_me:3209: result: $ac_cv_prog_egrep" >&5
3210 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3211 EGREP=$ac_cv_prog_egrep
3213 test -z "$EGREP" && { { echo "$as_me:3213: error: No egrep program found" >&5
3214 echo "$as_me: error: No egrep program found" >&2;}
3215 { (exit 1); exit 1; }; }
3217 # Find a good install program. We prefer a C program (faster),
3218 # so one script is as good as another. But avoid the broken or
3219 # incompatible versions:
3220 # SysV /etc/install, /usr/sbin/install
3221 # SunOS /usr/etc/install
3222 # IRIX /sbin/install
3224 # AmigaOS /C/install, which installs bootblocks on floppy discs
3225 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3228 # ./install, which can be erroneously created by make from ./install.sh.
3229 echo "$as_me:3229: checking for a BSD compatible install" >&5
3230 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3231 if test -z "$INSTALL"; then
3232 if test "${ac_cv_path_install+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 ac_save_IFS=$IFS; IFS=$ac_path_separator
3236 for ac_dir in $PATH; do
3238 # Account for people who put trailing slashes in PATH elements.
3240 / | ./ | .// | /cC/* \
3241 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3244 # OSF1 and SCO ODT 3.0 have their own names for install.
3245 # Don't use installbsd from OSF since it installs stuff as root
3247 for ac_prog in ginstall scoinst install; do
3248 if $as_executable_p "$ac_dir/$ac_prog"; then
3249 if test $ac_prog = install &&
3250 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3251 # AIX install. It has an incompatible calling convention.
3253 elif test $ac_prog = install &&
3254 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3255 # program-specific install script used by HP pwplus--don't use.
3258 ac_cv_path_install="$ac_dir/$ac_prog -c"
3268 if test "${ac_cv_path_install+set}" = set; then
3269 INSTALL=$ac_cv_path_install
3271 # As a last resort, use the slow shell script. We don't cache a
3272 # path for INSTALL within a source directory, because that will
3273 # break other packages using the cache if that directory is
3274 # removed, or if the path is relative.
3275 INSTALL=$ac_install_sh
3278 echo "$as_me:3278: result: $INSTALL" >&5
3279 echo "${ECHO_T}$INSTALL" >&6
3281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3282 # It thinks the first close brace ends the variable substitution.
3283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3285 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3293 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3294 test -z "$cf_dir" && cf_dir=.
3295 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3299 for ac_prog in tdlint lint alint
3301 # Extract the first word of "$ac_prog", so it can be a program name with args.
3302 set dummy $ac_prog; ac_word=$2
3303 echo "$as_me:3303: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305 if test "${ac_cv_prog_LINT+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 if test -n "$LINT"; then
3309 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3311 ac_save_IFS=$IFS; IFS=$ac_path_separator
3313 for ac_dir in $ac_dummy; do
3315 test -z "$ac_dir" && ac_dir=.
3316 $as_executable_p "$ac_dir/$ac_word" || continue
3317 ac_cv_prog_LINT="$ac_prog"
3318 echo "$as_me:3318: found $ac_dir/$ac_word" >&5
3324 LINT=$ac_cv_prog_LINT
3325 if test -n "$LINT"; then
3326 echo "$as_me:3326: result: $LINT" >&5
3327 echo "${ECHO_T}$LINT" >&6
3329 echo "$as_me:3329: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3333 test -n "$LINT" && break
3336 echo "$as_me:3336: checking whether ln -s works" >&5
3337 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3339 if test "$LN_S" = "ln -s"; then
3340 echo "$as_me:3340: result: yes" >&5
3341 echo "${ECHO_T}yes" >&6
3343 echo "$as_me:3343: result: no, using $LN_S" >&5
3344 echo "${ECHO_T}no, using $LN_S" >&6
3347 echo "$as_me:3347: checking for long file names" >&5
3348 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3349 if test "${ac_cv_sys_long_file_names+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 ac_cv_sys_long_file_names=yes
3353 # Test for long file names in all the places we know might matter:
3354 # . the current directory, where building will happen
3355 # $prefix/lib where we will be installing things
3356 # $exec_prefix/lib likewise
3357 # eval it to expand exec_prefix.
3358 # $TMPDIR if set, where it might want to write temporary files
3359 # if $TMPDIR is not set:
3360 # /tmp where it might want to write temporary files
3363 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3366 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3368 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3369 test -d $ac_dir || continue
3370 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3371 ac_xdir=$ac_dir/cf$$
3372 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3373 ac_tf1=$ac_xdir/conftest9012345
3374 ac_tf2=$ac_xdir/conftest9012346
3375 (echo 1 >$ac_tf1) 2>/dev/null
3376 (echo 2 >$ac_tf2) 2>/dev/null
3377 ac_val=`cat $ac_tf1 2>/dev/null`
3378 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3379 ac_cv_sys_long_file_names=no
3380 rm -rf $ac_xdir 2>/dev/null
3383 rm -rf $ac_xdir 2>/dev/null
3386 echo "$as_me:3386: result: $ac_cv_sys_long_file_names" >&5
3387 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3388 if test $ac_cv_sys_long_file_names = yes; then
3390 cat >>confdefs.h <<\EOF
3391 #define HAVE_LONG_FILE_NAMES 1
3396 echo "$as_me:3396: checking if we should assume mixed-case filenames" >&5
3397 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3399 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3400 if test "${enable_mixed_case+set}" = set; then
3401 enableval="$enable_mixed_case"
3402 enable_mixedcase=$enableval
3404 enable_mixedcase=auto
3406 echo "$as_me:3406: result: $enable_mixedcase" >&5
3407 echo "${ECHO_T}$enable_mixedcase" >&6
3408 if test "$enable_mixedcase" = "auto" ; then
3410 echo "$as_me:3410: checking if filesystem supports mixed-case filenames" >&5
3411 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3412 if test "${cf_cv_mixedcase+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test "$cross_compiling" = yes ; then
3417 case $target_alias in #(vi
3418 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3426 rm -f conftest CONFTEST
3428 if test -f CONFTEST ; then
3433 rm -f conftest CONFTEST
3437 echo "$as_me:3437: result: $cf_cv_mixedcase" >&5
3438 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3439 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3440 #define MIXEDCASE_FILENAMES 1
3444 cf_cv_mixedcase=$enable_mixedcase
3445 if test "$enable_mixedcase" = "yes" ; then
3446 cat >>confdefs.h <<\EOF
3447 #define MIXEDCASE_FILENAMES 1
3453 # do this after mixed-case option (tags/TAGS is not as important as tic).
3454 echo "$as_me:3454: checking whether ${MAKE-make} sets \${MAKE}" >&5
3455 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3456 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3457 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 cat >conftest.make <<\EOF
3462 @echo 'ac_maketemp="${MAKE}"'
3464 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3465 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3466 if test -n "$ac_maketemp"; then
3467 eval ac_cv_prog_make_${ac_make}_set=yes
3469 eval ac_cv_prog_make_${ac_make}_set=no
3473 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3474 echo "$as_me:3474: result: yes" >&5
3475 echo "${ECHO_T}yes" >&6
3478 echo "$as_me:3478: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3480 SET_MAKE="MAKE=${MAKE-make}"
3483 # Extract the first word of "ctags", so it can be a program name with args.
3484 set dummy ctags; ac_word=$2
3485 echo "$as_me:3485: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -n "$MAKE_LOWER_TAGS"; then
3491 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3493 ac_save_IFS=$IFS; IFS=$ac_path_separator
3495 for ac_dir in $ac_dummy; do
3497 test -z "$ac_dir" && ac_dir=.
3498 $as_executable_p "$ac_dir/$ac_word" || continue
3499 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3500 echo "$as_me:3500: found $ac_dir/$ac_word" >&5
3504 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3507 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3508 if test -n "$MAKE_LOWER_TAGS"; then
3509 echo "$as_me:3509: result: $MAKE_LOWER_TAGS" >&5
3510 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3512 echo "$as_me:3512: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3516 if test "$cf_cv_mixedcase" = yes ; then
3517 # Extract the first word of "etags", so it can be a program name with args.
3518 set dummy etags; ac_word=$2
3519 echo "$as_me:3519: checking for $ac_word" >&5
3520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3521 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 if test -n "$MAKE_UPPER_TAGS"; then
3525 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3527 ac_save_IFS=$IFS; IFS=$ac_path_separator
3529 for ac_dir in $ac_dummy; do
3531 test -z "$ac_dir" && ac_dir=.
3532 $as_executable_p "$ac_dir/$ac_word" || continue
3533 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3534 echo "$as_me:3534: found $ac_dir/$ac_word" >&5
3538 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3541 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3542 if test -n "$MAKE_UPPER_TAGS"; then
3543 echo "$as_me:3543: result: $MAKE_UPPER_TAGS" >&5
3544 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3546 echo "$as_me:3546: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3554 if test "$MAKE_UPPER_TAGS" = yes ; then
3560 if test "$MAKE_LOWER_TAGS" = yes ; then
3566 echo "$as_me:3566: checking for makeflags variable" >&5
3567 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3568 if test "${cf_cv_makeflags+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3575 cat >cf_makeflags.tmp <<CF_EOF
3578 @ echo '.$cf_option'
3580 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3581 case "$cf_result" in
3583 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3584 case "$cf_result" in
3585 .*CC=*) cf_cv_makeflags=
3587 *) cf_cv_makeflags=$cf_option
3593 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3597 rm -f cf_makeflags.tmp
3600 echo "$as_me:3600: result: $cf_cv_makeflags" >&5
3601 echo "${ECHO_T}$cf_cv_makeflags" >&6
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3605 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3606 echo "$as_me:3606: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_RANLIB+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if test -n "$RANLIB"; then
3612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3614 ac_save_IFS=$IFS; IFS=$ac_path_separator
3616 for ac_dir in $ac_dummy; do
3618 test -z "$ac_dir" && ac_dir=.
3619 $as_executable_p "$ac_dir/$ac_word" || continue
3620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3621 echo "$as_me:3621: found $ac_dir/$ac_word" >&5
3627 RANLIB=$ac_cv_prog_RANLIB
3628 if test -n "$RANLIB"; then
3629 echo "$as_me:3629: result: $RANLIB" >&5
3630 echo "${ECHO_T}$RANLIB" >&6
3632 echo "$as_me:3632: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3637 if test -z "$ac_cv_prog_RANLIB"; then
3638 ac_ct_RANLIB=$RANLIB
3639 # Extract the first word of "ranlib", so it can be a program name with args.
3640 set dummy ranlib; ac_word=$2
3641 echo "$as_me:3641: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 if test -n "$ac_ct_RANLIB"; then
3647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3649 ac_save_IFS=$IFS; IFS=$ac_path_separator
3651 for ac_dir in $ac_dummy; do
3653 test -z "$ac_dir" && ac_dir=.
3654 $as_executable_p "$ac_dir/$ac_word" || continue
3655 ac_cv_prog_ac_ct_RANLIB="ranlib"
3656 echo "$as_me:3656: found $ac_dir/$ac_word" >&5
3660 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3664 if test -n "$ac_ct_RANLIB"; then
3665 echo "$as_me:3665: result: $ac_ct_RANLIB" >&5
3666 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3668 echo "$as_me:3668: result: no" >&5
3669 echo "${ECHO_T}no" >&6
3672 RANLIB=$ac_ct_RANLIB
3674 RANLIB="$ac_cv_prog_RANLIB"
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}ld; ac_word=$2
3680 echo "$as_me:3680: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_LD+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 if test -n "$LD"; then
3686 ac_cv_prog_LD="$LD" # Let the user override the test.
3688 ac_save_IFS=$IFS; IFS=$ac_path_separator
3690 for ac_dir in $ac_dummy; do
3692 test -z "$ac_dir" && ac_dir=.
3693 $as_executable_p "$ac_dir/$ac_word" || continue
3694 ac_cv_prog_LD="${ac_tool_prefix}ld"
3695 echo "$as_me:3695: found $ac_dir/$ac_word" >&5
3702 if test -n "$LD"; then
3703 echo "$as_me:3703: result: $LD" >&5
3704 echo "${ECHO_T}$LD" >&6
3706 echo "$as_me:3706: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3711 if test -z "$ac_cv_prog_LD"; then
3713 # Extract the first word of "ld", so it can be a program name with args.
3714 set dummy ld; ac_word=$2
3715 echo "$as_me:3715: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 if test -n "$ac_ct_LD"; then
3721 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3723 ac_save_IFS=$IFS; IFS=$ac_path_separator
3725 for ac_dir in $ac_dummy; do
3727 test -z "$ac_dir" && ac_dir=.
3728 $as_executable_p "$ac_dir/$ac_word" || continue
3729 ac_cv_prog_ac_ct_LD="ld"
3730 echo "$as_me:3730: found $ac_dir/$ac_word" >&5
3734 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3737 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3738 if test -n "$ac_ct_LD"; then
3739 echo "$as_me:3739: result: $ac_ct_LD" >&5
3740 echo "${ECHO_T}$ac_ct_LD" >&6
3742 echo "$as_me:3742: result: no" >&5
3743 echo "${ECHO_T}no" >&6
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}ar; ac_word=$2
3754 echo "$as_me:3754: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_AR+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 if test -n "$AR"; then
3760 ac_cv_prog_AR="$AR" # Let the user override the test.
3762 ac_save_IFS=$IFS; IFS=$ac_path_separator
3764 for ac_dir in $ac_dummy; do
3766 test -z "$ac_dir" && ac_dir=.
3767 $as_executable_p "$ac_dir/$ac_word" || continue
3768 ac_cv_prog_AR="${ac_tool_prefix}ar"
3769 echo "$as_me:3769: found $ac_dir/$ac_word" >&5
3776 if test -n "$AR"; then
3777 echo "$as_me:3777: result: $AR" >&5
3778 echo "${ECHO_T}$AR" >&6
3780 echo "$as_me:3780: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3785 if test -z "$ac_cv_prog_AR"; then
3787 # Extract the first word of "ar", so it can be a program name with args.
3788 set dummy ar; ac_word=$2
3789 echo "$as_me:3789: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 if test -n "$ac_ct_AR"; then
3795 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3797 ac_save_IFS=$IFS; IFS=$ac_path_separator
3799 for ac_dir in $ac_dummy; do
3801 test -z "$ac_dir" && ac_dir=.
3802 $as_executable_p "$ac_dir/$ac_word" || continue
3803 ac_cv_prog_ac_ct_AR="ar"
3804 echo "$as_me:3804: found $ac_dir/$ac_word" >&5
3808 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3811 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3812 if test -n "$ac_ct_AR"; then
3813 echo "$as_me:3813: result: $ac_ct_AR" >&5
3814 echo "${ECHO_T}$ac_ct_AR" >&6
3816 echo "$as_me:3816: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3825 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 echo "$as_me:3829: checking for archiver options (symbol AR_OPTS)" >&5
3830 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3832 if test -z "$AR_OPTS" ; then
3837 cf_cv_subst_AR_OPTS=$AR_OPTS
3838 echo "$as_me:3838: result: $AR_OPTS" >&5
3839 echo "${ECHO_T}$AR_OPTS" >&6
3843 echo "$as_me:3843: checking if you have specified an install-prefix" >&5
3844 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3846 # Check whether --with-install-prefix or --without-install-prefix was given.
3847 if test "${with_install_prefix+set}" = set; then
3848 withval="$with_install_prefix"
3849 case "$withval" in #(vi
3852 *) DESTDIR="$withval"
3856 echo "$as_me:3856: result: $DESTDIR" >&5
3857 echo "${ECHO_T}$DESTDIR" >&6
3859 ###############################################################################
3861 # If we're cross-compiling, allow the user to override the tools and their
3862 # options. The configure script is oriented toward identifying the host
3863 # compiler, etc., but we need a build compiler to generate parts of the source.
3865 if test "$cross_compiling" = yes ; then
3867 # defaults that we might want to override
3868 : ${BUILD_CFLAGS:=''}
3869 : ${BUILD_CPPFLAGS:=''}
3870 : ${BUILD_LDFLAGS:=''}
3872 : ${BUILD_EXEEXT:='$x'}
3873 : ${BUILD_OBJEXT:='o'}
3875 # Check whether --with-build-cc or --without-build-cc was given.
3876 if test "${with_build_cc+set}" = set; then
3877 withval="$with_build_cc"
3880 for ac_prog in gcc cc cl
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883 set dummy $ac_prog; ac_word=$2
3884 echo "$as_me:3884: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$BUILD_CC"; then
3890 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3892 ac_save_IFS=$IFS; IFS=$ac_path_separator
3894 for ac_dir in $ac_dummy; do
3896 test -z "$ac_dir" && ac_dir=.
3897 $as_executable_p "$ac_dir/$ac_word" || continue
3898 ac_cv_prog_BUILD_CC="$ac_prog"
3899 echo "$as_me:3899: found $ac_dir/$ac_word" >&5
3905 BUILD_CC=$ac_cv_prog_BUILD_CC
3906 if test -n "$BUILD_CC"; then
3907 echo "$as_me:3907: result: $BUILD_CC" >&5
3908 echo "${ECHO_T}$BUILD_CC" >&6
3910 echo "$as_me:3910: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3914 test -n "$BUILD_CC" && break
3918 echo "$as_me:3918: checking for native build C compiler" >&5
3919 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3920 echo "$as_me:3920: result: $BUILD_CC" >&5
3921 echo "${ECHO_T}$BUILD_CC" >&6
3923 echo "$as_me:3923: checking for native build C preprocessor" >&5
3924 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3926 # Check whether --with-build-cpp or --without-build-cpp was given.
3927 if test "${with_build_cpp+set}" = set; then
3928 withval="$with_build_cpp"
3929 BUILD_CPP="$withval"
3931 BUILD_CPP='${BUILD_CC} -E'
3933 echo "$as_me:3933: result: $BUILD_CPP" >&5
3934 echo "${ECHO_T}$BUILD_CPP" >&6
3936 echo "$as_me:3936: checking for native build C flags" >&5
3937 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3939 # Check whether --with-build-cflags or --without-build-cflags was given.
3940 if test "${with_build_cflags+set}" = set; then
3941 withval="$with_build_cflags"
3942 BUILD_CFLAGS="$withval"
3944 echo "$as_me:3944: result: $BUILD_CFLAGS" >&5
3945 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3947 echo "$as_me:3947: checking for native build C preprocessor-flags" >&5
3948 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3950 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3951 if test "${with_build_cppflags+set}" = set; then
3952 withval="$with_build_cppflags"
3953 BUILD_CPPFLAGS="$withval"
3955 echo "$as_me:3955: result: $BUILD_CPPFLAGS" >&5
3956 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3958 echo "$as_me:3958: checking for native build linker-flags" >&5
3959 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3961 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3962 if test "${with_build_ldflags+set}" = set; then
3963 withval="$with_build_ldflags"
3964 BUILD_LDFLAGS="$withval"
3966 echo "$as_me:3966: result: $BUILD_LDFLAGS" >&5
3967 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3969 echo "$as_me:3969: checking for native build linker-libraries" >&5
3970 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3972 # Check whether --with-build-libs or --without-build-libs was given.
3973 if test "${with_build_libs+set}" = set; then
3974 withval="$with_build_libs"
3975 BUILD_LIBS="$withval"
3977 echo "$as_me:3977: result: $BUILD_LIBS" >&5
3978 echo "${ECHO_T}$BUILD_LIBS" >&6
3980 # this assumes we're on Unix.
3984 : ${BUILD_CC:='${CC}'}
3986 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3987 { { echo "$as_me:3987: error: Cross-build requires two compilers.
3988 Use --with-build-cc to specify the native compiler." >&5
3989 echo "$as_me: error: Cross-build requires two compilers.
3990 Use --with-build-cc to specify the native compiler." >&2;}
3991 { (exit 1); exit 1; }; }
3995 : ${BUILD_CC:='${CC}'}
3996 : ${BUILD_CPP:='${CPP}'}
3997 : ${BUILD_CFLAGS:='${CFLAGS}'}
3998 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3999 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4000 : ${BUILD_LIBS:='${LIBS}'}
4001 : ${BUILD_EXEEXT:='$x'}
4002 : ${BUILD_OBJEXT:='o'}
4005 ###############################################################################
4007 ### Options to allow the user to specify the set of libraries which are used.
4008 ### Use "--without-normal --with-shared" to allow the default model to be
4009 ### shared, for example.
4014 # common library maintenance symbols that are convenient for libtool scripts:
4015 LIB_CREATE='${AR} -cr'
4016 LIB_OBJECT='${OBJECTS}'
4020 # symbols used to prop libtool up to enable it to determine what it should be
4028 echo "$as_me:4028: checking if you want to build libraries with libtool" >&5
4029 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4031 # Check whether --with-libtool or --without-libtool was given.
4032 if test "${with_libtool+set}" = set; then
4033 withval="$with_libtool"
4034 with_libtool=$withval
4038 echo "$as_me:4038: result: $with_libtool" >&5
4039 echo "${ECHO_T}$with_libtool" >&6
4040 if test "$with_libtool" != "no"; then
4042 if test "$with_libtool" != "yes" ; then
4044 if test "x$prefix" != xNONE; then
4045 cf_path_syntax="$prefix"
4047 cf_path_syntax="$ac_default_prefix"
4050 case ".$with_libtool" in #(vi
4051 .\$\(*\)*|.\'*\'*) #(vi
4055 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4058 eval with_libtool="$with_libtool"
4059 case ".$with_libtool" in #(vi
4061 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4066 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4069 { { echo "$as_me:4069: error: expected a pathname, not \"$with_libtool\"" >&5
4070 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4071 { (exit 1); exit 1; }; }
4075 LIBTOOL=$with_libtool
4077 # Extract the first word of "libtool", so it can be a program name with args.
4078 set dummy libtool; ac_word=$2
4079 echo "$as_me:4079: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4089 ac_save_IFS=$IFS; IFS=$ac_path_separator
4091 for ac_dir in $ac_dummy; do
4093 test -z "$ac_dir" && ac_dir=.
4094 if $as_executable_p "$ac_dir/$ac_word"; then
4095 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4096 echo "$as_me:4096: found $ac_dir/$ac_word" >&5
4104 LIBTOOL=$ac_cv_path_LIBTOOL
4106 if test -n "$LIBTOOL"; then
4107 echo "$as_me:4107: result: $LIBTOOL" >&5
4108 echo "${ECHO_T}$LIBTOOL" >&6
4110 echo "$as_me:4110: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4115 if test -z "$LIBTOOL" ; then
4116 { { echo "$as_me:4116: error: Cannot find libtool" >&5
4117 echo "$as_me: error: Cannot find libtool" >&2;}
4118 { (exit 1); exit 1; }; }
4120 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
4121 LIB_OBJECT='${OBJECTS:.o=.lo}'
4123 LIB_CLEAN='${LIBTOOL} --mode=clean'
4124 LIB_COMPILE='${LIBTOOL} --mode=compile'
4125 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4126 LIB_INSTALL='${LIBTOOL} --mode=install'
4127 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4130 # Show the version of libtool
4131 echo "$as_me:4131: checking version of libtool" >&5
4132 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4134 # Save the version in a cache variable - this is not entirely a good
4135 # thing, but the version string from libtool is very ugly, and for
4136 # bug reports it might be useful to have the original string.
4137 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4138 echo "$as_me:4138: result: $cf_cv_libtool_version" >&5
4139 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4140 if test -z "$cf_cv_libtool_version" ; then
4141 { { echo "$as_me:4141: error: This is not GNU libtool" >&5
4142 echo "$as_me: error: This is not GNU libtool" >&2;}
4143 { (exit 1); exit 1; }; }
4146 # special hack to add --tag option for C++ compiler
4147 case $cf_cv_libtool_version in
4149 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4150 LIBTOOL="$LIBTOOL --tag=CC"
4153 LIBTOOL_CXX="$LIBTOOL"
4161 test -z "$LIBTOOL" && ECHO_LT=
4163 if test "$with_libtool" != "no" ; then
4165 cf_list_models="$cf_list_models libtool"
4169 echo "$as_me:4169: checking if you want to build shared libraries" >&5
4170 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4172 # Check whether --with-shared or --without-shared was given.
4173 if test "${with_shared+set}" = set; then
4174 withval="$with_shared"
4175 with_shared=$withval
4179 echo "$as_me:4179: result: $with_shared" >&5
4180 echo "${ECHO_T}$with_shared" >&6
4181 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4183 echo "$as_me:4183: checking if you want to build static libraries" >&5
4184 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4186 # Check whether --with-normal or --without-normal was given.
4187 if test "${with_normal+set}" = set; then
4188 withval="$with_normal"
4189 with_normal=$withval
4193 echo "$as_me:4193: result: $with_normal" >&5
4194 echo "${ECHO_T}$with_normal" >&6
4195 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4197 echo "$as_me:4197: checking if you want to build debug libraries" >&5
4198 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4200 # Check whether --with-debug or --without-debug was given.
4201 if test "${with_debug+set}" = set; then
4202 withval="$with_debug"
4207 echo "$as_me:4207: result: $with_debug" >&5
4208 echo "${ECHO_T}$with_debug" >&6
4209 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4211 echo "$as_me:4211: checking if you want to build profiling libraries" >&5
4212 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4214 # Check whether --with-profile or --without-profile was given.
4215 if test "${with_profile+set}" = set; then
4216 withval="$with_profile"
4217 with_profile=$withval
4221 echo "$as_me:4221: result: $with_profile" >&5
4222 echo "${ECHO_T}$with_profile" >&6
4223 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4227 ###############################################################################
4229 echo "$as_me:4229: checking for specified models" >&5
4230 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4231 test -z "$cf_list_models" && cf_list_models=normal
4232 test "$with_libtool" != "no" && cf_list_models=libtool
4233 echo "$as_me:4233: result: $cf_list_models" >&5
4234 echo "${ECHO_T}$cf_list_models" >&6
4236 ### Use the first model as the default, and save its suffix for use in building
4237 ### up test-applications.
4238 echo "$as_me:4238: checking for default model" >&5
4239 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4240 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4241 echo "$as_me:4241: result: $DFT_LWR_MODEL" >&5
4242 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4244 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4255 case $cf_cv_system_name in
4256 OS/2*) LIB_PREFIX='' ;;
4257 os2*) LIB_PREFIX='' ;;
4258 *) LIB_PREFIX='lib' ;;
4260 cf_prefix=$LIB_PREFIX
4262 LIB_PREFIX=$cf_prefix
4266 ###############################################################################
4268 echo "$as_me:4268: checking if you want to build a separate terminfo library" >&5
4269 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4271 # Check whether --with-termlib or --without-termlib was given.
4272 if test "${with_termlib+set}" = set; then
4273 withval="$with_termlib"
4274 with_termlib=$withval
4278 echo "$as_me:4278: result: $with_termlib" >&5
4279 echo "${ECHO_T}$with_termlib" >&6
4281 echo "$as_me:4281: checking if you want to build a separate tic library" >&5
4282 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4284 # Check whether --with-ticlib or --without-ticlib was given.
4285 if test "${with_ticlib+set}" = set; then
4286 withval="$with_ticlib"
4287 with_ticlib=$withval
4291 echo "$as_me:4291: result: $with_ticlib" >&5
4292 echo "${ECHO_T}$with_ticlib" >&6
4294 ### Checks for special libraries, must be done up-front.
4297 echo "$as_me:4297: checking if you want to link with the GPM mouse library" >&5
4298 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4300 # Check whether --with-gpm or --without-gpm was given.
4301 if test "${with_gpm+set}" = set; then
4307 echo "$as_me:4307: result: $with_gpm" >&5
4308 echo "${ECHO_T}$with_gpm" >&6
4310 if test "$with_gpm" != no ; then
4311 echo "$as_me:4311: checking for gpm.h" >&5
4312 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4313 if test "${ac_cv_header_gpm_h+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 cat >conftest.$ac_ext <<_ACEOF
4317 #line 4317 "configure"
4318 #include "confdefs.h"
4321 if { (eval echo "$as_me:4321: \"$ac_cpp conftest.$ac_ext\"") >&5
4322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4324 egrep -v '^ *\+' conftest.er1 >conftest.err
4326 cat conftest.err >&5
4327 echo "$as_me:4327: \$? = $ac_status" >&5
4328 (exit $ac_status); } >/dev/null; then
4329 if test -s conftest.err; then
4330 ac_cpp_err=$ac_c_preproc_warn_flag
4337 if test -z "$ac_cpp_err"; then
4338 ac_cv_header_gpm_h=yes
4340 echo "$as_me: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 ac_cv_header_gpm_h=no
4344 rm -f conftest.err conftest.$ac_ext
4346 echo "$as_me:4346: result: $ac_cv_header_gpm_h" >&5
4347 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4348 if test $ac_cv_header_gpm_h = yes; then
4350 cat >>confdefs.h <<\EOF
4351 #define HAVE_GPM_H 1
4354 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4355 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4357 echo "${as_me-configure}:4357: testing assuming we really have GPM library ..." 1>&5
4359 cat >>confdefs.h <<\EOF
4360 #define HAVE_LIBGPM 1
4364 echo "$as_me:4364: checking for Gpm_Open in -lgpm" >&5
4365 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4366 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 ac_check_lib_save_LIBS=$LIBS
4371 cat >conftest.$ac_ext <<_ACEOF
4372 #line 4372 "configure"
4373 #include "confdefs.h"
4375 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:4391: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>&5
4394 echo "$as_me:4394: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest$ac_exeext'
4397 { (eval echo "$as_me:4397: \"$ac_try\"") >&5
4400 echo "$as_me:4400: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 ac_cv_lib_gpm_Gpm_Open=yes
4404 echo "$as_me: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4406 ac_cv_lib_gpm_Gpm_Open=no
4408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4409 LIBS=$ac_check_lib_save_LIBS
4411 echo "$as_me:4411: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4412 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4413 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4417 { { echo "$as_me:4417: error: Cannot link with GPM library" >&5
4418 echo "$as_me: error: Cannot link with GPM library" >&2;}
4419 { (exit 1); exit 1; }; }
4427 test "$with_gpm" != maybe && { echo "$as_me:4427: WARNING: Cannot find GPM header" >&5
4428 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4435 if test "$with_gpm" != no ; then
4436 echo "$as_me:4436: checking if you want to load GPM dynamically" >&5
4437 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4439 # Check whether --with-dlsym or --without-dlsym was given.
4440 if test "${with_dlsym+set}" = set; then
4441 withval="$with_dlsym"
4446 echo "$as_me:4446: result: $with_dlsym" >&5
4447 echo "${ECHO_T}$with_dlsym" >&6
4448 if test "$with_dlsym" = yes ; then
4451 echo "$as_me:4451: checking for dlsym" >&5
4452 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4453 if test "${ac_cv_func_dlsym+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 cat >conftest.$ac_ext <<_ACEOF
4457 #line 4457 "configure"
4458 #include "confdefs.h"
4459 /* System header to define __stub macros and hopefully few prototypes,
4460 which can conflict with char dlsym (); below. */
4462 /* Override any gcc2 internal prototype to avoid an error. */
4466 /* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4474 /* The GNU C library defines this for functions which it implements
4475 to always fail with ENOSYS. Some functions are actually named
4476 something starting with __ and the normal name is an alias. */
4477 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (eval echo "$as_me:4488: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4491 echo "$as_me:4491: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -s conftest$ac_exeext'
4494 { (eval echo "$as_me:4494: \"$ac_try\"") >&5
4497 echo "$as_me:4497: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_cv_func_dlsym=yes
4501 echo "$as_me: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4507 echo "$as_me:4507: result: $ac_cv_func_dlsym" >&5
4508 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4509 if test $ac_cv_func_dlsym = yes; then
4514 echo "$as_me:4514: checking for dlsym in -ldl" >&5
4515 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4516 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_check_lib_save_LIBS=$LIBS
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line 4522 "configure"
4523 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4540 rm -f conftest.$ac_objext conftest$ac_exeext
4541 if { (eval echo "$as_me:4541: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>&5
4544 echo "$as_me:4544: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest$ac_exeext'
4547 { (eval echo "$as_me:4547: \"$ac_try\"") >&5
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_cv_lib_dl_dlsym=yes
4554 echo "$as_me: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 ac_cv_lib_dl_dlsym=no
4558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4559 LIBS=$ac_check_lib_save_LIBS
4561 echo "$as_me:4561: result: $ac_cv_lib_dl_dlsym" >&5
4562 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4563 if test $ac_cv_lib_dl_dlsym = yes; then
4571 if test "$cf_have_dlsym" = yes ; then
4572 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4574 echo "$as_me:4574: checking whether able to link to dl*() functions" >&5
4575 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4576 cat >conftest.$ac_ext <<_ACEOF
4577 #line 4577 "configure"
4578 #include "confdefs.h"
4585 if ((obj = dlopen("filename", 0)) != 0) {
4586 if (dlsym(obj, "symbolname") == 0) {
4594 rm -f conftest.$ac_objext conftest$ac_exeext
4595 if { (eval echo "$as_me:4595: \"$ac_link\"") >&5
4596 (eval $ac_link) 2>&5
4598 echo "$as_me:4598: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -s conftest$ac_exeext'
4601 { (eval echo "$as_me:4601: \"$ac_try\"") >&5
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4607 cat >>confdefs.h <<\EOF
4608 #define HAVE_LIBDL 1
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 { { echo "$as_me:4615: error: Cannot link test program for libdl" >&5
4616 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4617 { (exit 1); exit 1; }; }
4619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4620 echo "$as_me:4620: result: ok" >&5
4621 echo "${ECHO_T}ok" >&6
4623 { { echo "$as_me:4623: error: Cannot find dlsym function" >&5
4624 echo "$as_me: error: Cannot find dlsym function" >&2;}
4625 { (exit 1); exit 1; }; }
4628 if test "$with_gpm" != yes ; then
4629 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4631 echo "${as_me-configure}:4631: testing assuming soname for gpm is $with_gpm ..." 1>&5
4633 cf_cv_gpm_soname="$with_gpm"
4636 echo "$as_me:4636: checking for soname of gpm library" >&5
4637 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4638 if test "${cf_cv_gpm_soname+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 cf_cv_gpm_soname=unknown
4643 if test "$cross_compiling" != yes ; then
4644 cat >conftest.$ac_ext <<CF_EOF
4648 if (Gpm_Open(0,0)) Gpm_Close();
4649 ${cf_cv_main_return:-return}(0);
4652 cf_save_LIBS="$LIBS"
4654 if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>&5
4657 echo "$as_me:4657: \$? = $ac_status" >&5
4658 (exit $ac_status); } ; then
4659 if { (eval echo "$as_me:4659: \"$ac_link\"") >&5
4660 (eval $ac_link) 2>&5
4662 echo "$as_me:4662: \$? = $ac_status" >&5
4663 (exit $ac_status); } ; then
4664 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4665 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4669 LIBS="$cf_save_LIBS"
4673 echo "$as_me:4673: result: $cf_cv_gpm_soname" >&5
4674 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4677 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4678 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4681 SHLIB_LIST="-ldl $SHLIB_LIST"
4683 SHLIB_LIST="-lgpm $SHLIB_LIST"
4685 cat >>confdefs.h <<\EOF
4686 #define HAVE_LIBGPM 1
4689 echo "$as_me:4689: checking for Gpm_Wgetch in -lgpm" >&5
4690 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4691 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 ac_check_lib_save_LIBS=$LIBS
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line 4697 "configure"
4698 #include "confdefs.h"
4700 /* Override any gcc2 internal prototype to avoid an error. */
4704 /* We use char because int might match the return type of a gcc2
4705 builtin and then its argument prototype would still apply. */
4715 rm -f conftest.$ac_objext conftest$ac_exeext
4716 if { (eval echo "$as_me:4716: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>&5
4719 echo "$as_me:4719: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -s conftest$ac_exeext'
4722 { (eval echo "$as_me:4722: \"$ac_try\"") >&5
4725 echo "$as_me:4725: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_cv_lib_gpm_Gpm_Wgetch=yes
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 ac_cv_lib_gpm_Gpm_Wgetch=no
4733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4736 echo "$as_me:4736: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4737 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4738 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4740 echo "$as_me:4740: checking if GPM is weakly bound to curses library" >&5
4741 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
4742 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 cf_cv_check_gpm_wgetch=unknown
4747 if test "$cross_compiling" != yes ; then
4749 cat >conftest.$ac_ext <<CF_EOF
4754 ${cf_cv_main_return:-return}(0);
4758 cf_save_LIBS="$LIBS"
4759 # This only works if we can look at the symbol table. If a shared
4760 # library is stripped for install, we cannot use that. So we're forced
4761 # to rely on the static library, noting that some packagers may not
4763 LIBS="-static -lgpm -dynamic $LIBS"
4764 if { (eval echo "$as_me:4764: \"$ac_compile\"") >&5
4765 (eval $ac_compile) 2>&5
4767 echo "$as_me:4767: \$? = $ac_status" >&5
4768 (exit $ac_status); } ; then
4769 if { (eval echo "$as_me:4769: \"$ac_link\"") >&5
4770 (eval $ac_link) 2>&5
4772 echo "$as_me:4772: \$? = $ac_status" >&5
4773 (exit $ac_status); } ; then
4774 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
4775 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
4776 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
4780 LIBS="$cf_save_LIBS"
4784 echo "$as_me:4784: result: $cf_cv_check_gpm_wgetch" >&5
4785 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
4787 if test "$cf_cv_check_gpm_wgetch" != yes ; then
4788 { echo "$as_me:4788: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4789 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4796 # not everyone has "test -c"
4797 if test -c /dev/sysmouse 2>/dev/null ; then
4798 echo "$as_me:4798: checking if you want to use sysmouse" >&5
4799 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4801 # Check whether --with-sysmouse or --without-sysmouse was given.
4802 if test "${with_sysmouse+set}" = set; then
4803 withval="$with_sysmouse"
4804 cf_with_sysmouse=$withval
4806 cf_with_sysmouse=maybe
4808 if test "$cf_with_sysmouse" != no ; then
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line 4810 "configure"
4811 #include "confdefs.h"
4813 #include <osreldate.h>
4814 #if (__FreeBSD_version >= 400017)
4815 #include <sys/consio.h>
4816 #include <sys/fbio.h>
4818 #include <machine/console.h>
4825 struct mouse_info the_mouse;
4826 ioctl(0, CONS_MOUSECTL, &the_mouse);
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:4833: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>&5
4836 echo "$as_me:4836: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:4839: \"$ac_try\"") >&5
4842 echo "$as_me:4842: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 cf_with_sysmouse=yes
4846 echo "$as_me: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4850 rm -f conftest.$ac_objext conftest.$ac_ext
4852 echo "$as_me:4852: result: $cf_with_sysmouse" >&5
4853 echo "${ECHO_T}$cf_with_sysmouse" >&6
4854 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4855 #define USE_SYSMOUSE 1
4860 if test X"$CC_G_OPT" = X"" ; then
4862 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4865 if test X"$CXX_G_OPT" = X"" ; then
4867 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4870 echo "$as_me:4870: checking for default loader flags" >&5
4871 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4872 case $DFT_LWR_MODEL in
4873 libtool) LD_MODEL='' ;;
4874 normal) LD_MODEL='' ;;
4875 debug) LD_MODEL=$CC_G_OPT ;;
4876 profile) LD_MODEL='-pg';;
4877 shared) LD_MODEL='' ;;
4879 echo "$as_me:4879: result: $LD_MODEL" >&5
4880 echo "${ECHO_T}$LD_MODEL" >&6
4882 case $DFT_LWR_MODEL in
4884 echo "$as_me:4884: checking if rpath option should be used" >&5
4885 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4887 # Check whether --enable-rpath or --disable-rpath was given.
4888 if test "${enable_rpath+set}" = set; then
4889 enableval="$enable_rpath"
4890 cf_cv_ld_rpath=$enableval
4894 echo "$as_me:4894: result: $cf_cv_ld_rpath" >&5
4895 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
4896 echo "$as_me:4896: checking if shared libraries should be relinked during install" >&5
4897 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6