2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="cygserver.cc"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT CXX ac_ct_CXX CXXFLAGS all_host install_host AR ac_ct_AR AS ac_ct_AS RANLIB ac_ct_RANLIB LD ac_ct_LD NM ac_ct_NM DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES ALLOCA CPP EGREP SET_MAKE LIBOBJS LTLIBOBJS'
278 # Initialize some variables set by options.
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name=s,x,x,
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
393 -help | --help | --hel | --he | -h)
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
444 # Obsolete; use --without-fp.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
523 -site=* | --site=* | --sit=*)
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
546 -version | --version | --versio | --versi | --vers | -V)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
572 # Obsolete; use --with-x.
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r $srcdir/$ac_unique_file; then
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740 ac_env_CPP_set=${CPP+set}
741 ac_env_CPP_value=$CPP
742 ac_cv_env_CPP_set=${CPP+set}
743 ac_cv_env_CPP_value=$CPP
746 # Report the --help message.
748 if test "$ac_init_help" = "long"; then
749 # Omit some internal or obsolete options to make the list less imposing.
750 # This message is too long to be a string in the A/UX 3.1 sh.
752 \`configure' configures this package to adapt to many kinds of systems.
754 Usage: $0 [OPTION]... [VAR=VALUE]...
756 To assign environment variables (e.g., CC, CFLAGS...), specify them as
757 VAR=VALUE. See below for descriptions of some of the useful variables.
759 Defaults for the options are specified in brackets.
762 -h, --help display this help and exit
763 --help=short display options specific to this package
764 --help=recursive display the short help of all the included packages
765 -V, --version display version information and exit
766 -q, --quiet, --silent do not print \`checking...' messages
767 --cache-file=FILE cache test results in FILE [disabled]
768 -C, --config-cache alias for \`--cache-file=config.cache'
769 -n, --no-create do not create output files
770 --srcdir=DIR find the sources in DIR [configure dir or \`..']
775 Installation directories:
776 --prefix=PREFIX install architecture-independent files in PREFIX
778 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
781 By default, \`make install' will install all the files in
782 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
783 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784 for instance \`--prefix=\$HOME'.
786 For better control, use the options below.
788 Fine tuning of the installation directories:
789 --bindir=DIR user executables [EPREFIX/bin]
790 --sbindir=DIR system admin executables [EPREFIX/sbin]
791 --libexecdir=DIR program executables [EPREFIX/libexec]
792 --datadir=DIR read-only architecture-independent data [PREFIX/share]
793 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
794 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
795 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
796 --libdir=DIR object code libraries [EPREFIX/lib]
797 --includedir=DIR C header files [PREFIX/include]
798 --oldincludedir=DIR C header files for non-gcc [/usr/include]
799 --infodir=DIR info documentation [PREFIX/info]
800 --mandir=DIR man documentation [PREFIX/man]
806 --build=BUILD configure for building on BUILD [guessed]
807 --host=HOST cross-compile to build programs to run on HOST [BUILD]
808 --target=TARGET configure for building compilers for TARGET [HOST]
812 if test -n "$ac_init_help"; then
817 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
818 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
819 --enable-debugging Build a cygwin DLL which has more consistency checking for debugging
821 Some influential environment variables:
822 CC C compiler command
823 CFLAGS C compiler flags
824 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
825 nonstandard directory <lib dir>
826 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
827 headers in a nonstandard directory <include dir>
828 CXX C++ compiler command
829 CXXFLAGS C++ compiler flags
832 Use these variables to override the choices made by `configure' or to help
833 it to find libraries and programs with nonstandard names/locations.
838 if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
841 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
842 test -d $ac_dir || continue
845 if test "$ac_dir" != .; then
846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
847 # A "../" for each directory in $ac_dir_suffix.
848 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
850 ac_dir_suffix= ac_top_builddir=
854 .) # No --srcdir option. We are building in place.
856 if test -z "$ac_top_builddir"; then
859 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
861 [\\/]* | ?:[\\/]* ) # Absolute path.
862 ac_srcdir=$srcdir$ac_dir_suffix;
863 ac_top_srcdir=$srcdir ;;
865 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
866 ac_top_srcdir=$ac_top_builddir$srcdir ;;
869 # Do not use `cd foo && pwd` to compute absolute paths, because
870 # the directories may not exist.
872 .) ac_abs_builddir="$ac_dir";;
875 .) ac_abs_builddir=`pwd`;;
876 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
877 *) ac_abs_builddir=`pwd`/"$ac_dir";;
880 case $ac_abs_builddir in
881 .) ac_abs_top_builddir=${ac_top_builddir}.;;
883 case ${ac_top_builddir}. in
884 .) ac_abs_top_builddir=$ac_abs_builddir;;
885 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
886 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
889 case $ac_abs_builddir in
890 .) ac_abs_srcdir=$ac_srcdir;;
893 .) ac_abs_srcdir=$ac_abs_builddir;;
894 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
895 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
898 case $ac_abs_builddir in
899 .) ac_abs_top_srcdir=$ac_top_srcdir;;
901 case $ac_top_srcdir in
902 .) ac_abs_top_srcdir=$ac_abs_builddir;;
903 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
904 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f $ac_srcdir/configure.gnu; then
912 $SHELL $ac_srcdir/configure.gnu --help=recursive
913 elif test -f $ac_srcdir/configure; then
915 $SHELL $ac_srcdir/configure --help=recursive
916 elif test -f $ac_srcdir/configure.ac ||
917 test -f $ac_srcdir/configure.in; then
921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 test -n "$ac_init_help" && exit 0
928 if $ac_init_version; then
931 Copyright (C) 2003 Free Software Foundation, Inc.
932 This configure script is free software; the Free Software Foundation
933 gives unlimited permission to copy, distribute and modify it.
939 This file contains any messages produced by compilers while
940 running configure, to aid debugging if configure makes a mistake.
942 It was created by $as_me, which was
943 generated by GNU Autoconf 2.59. Invocation command line was
954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977 test -z "$as_dir" && as_dir=.
993 # Keep a trace of the command line.
994 # Strip out --no-create and --no-recursion so they do not pile up.
995 # Strip out --silent because we don't want to record it for future runs.
996 # Also quote any args containing shell meta-characters.
997 # Make two passes to allow for proper duplicate-argument suppression.
1002 ac_must_keep_next=false
1008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1012 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1018 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1019 if test $ac_must_keep_next = true; then
1020 ac_must_keep_next=false # Got value, back to normal.
1023 *=* | --config-cache | -C | -disable-* | --disable-* \
1024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1026 | -with-* | --with-* | -without-* | --without-* | --x)
1027 case "$ac_configure_args0 " in
1028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1031 -* ) ac_must_keep_next=true ;;
1034 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1035 # Get rid of the leading space.
1041 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1042 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078 ## ----------------- ##
1079 ## Output variables. ##
1080 ## ----------------- ##
1083 for ac_var in $ac_subst_vars
1085 eval ac_val=$`echo $ac_var`
1086 echo "$ac_var='"'"'$ac_val'"'"'"
1090 if test -n "$ac_subst_files"; then
1097 for ac_var in $ac_subst_files
1099 eval ac_val=$`echo $ac_var`
1100 echo "$ac_var='"'"'$ac_val'"'"'"
1105 if test -s confdefs.h; then
1112 sed "/^$/d" confdefs.h | sort
1115 test "$ac_signal" != 0 &&
1116 echo "$as_me: caught signal $ac_signal"
1117 echo "$as_me: exit $exit_status"
1119 rm -f core *.core &&
1120 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1123 for ac_signal in 1 2 13 15; do
1124 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1129 rm -rf conftest* confdefs.h
1130 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1133 # Predefined preprocessor variables.
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_NAME "$PACKAGE_NAME"
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_STRING "$PACKAGE_STRING"
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160 # Let the site file select an alternate cache file if it wants to.
1161 # Prefer explicitly selected file to automatically selected ones.
1162 if test -z "$CONFIG_SITE"; then
1163 if test "x$prefix" != xNONE; then
1164 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1166 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1169 for ac_site_file in $CONFIG_SITE; do
1170 if test -r "$ac_site_file"; then
1171 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1172 echo "$as_me: loading site script $ac_site_file" >&6;}
1173 sed 's/^/| /' "$ac_site_file" >&5
1178 if test -r "$cache_file"; then
1179 # Some versions of bash will fail to source /dev/null (special
1180 # files actually), so we avoid doing that.
1181 if test -f "$cache_file"; then
1182 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1183 echo "$as_me: loading cache $cache_file" >&6;}
1185 [\\/]* | ?:[\\/]* ) . $cache_file;;
1186 *) . ./$cache_file;;
1190 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1191 echo "$as_me: creating cache $cache_file" >&6;}
1195 # Check that the precious variables saved in the cache have kept the same
1197 ac_cache_corrupted=false
1198 for ac_var in `(set) 2>&1 |
1199 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1201 eval ac_new_set=\$ac_env_${ac_var}_set
1202 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1203 eval ac_new_val="\$ac_env_${ac_var}_value"
1204 case $ac_old_set,$ac_new_set in
1206 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1207 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1208 ac_cache_corrupted=: ;;
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1215 if test "x$ac_old_val" != "x$ac_new_val"; then
1216 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1217 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1218 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1219 echo "$as_me: former value: $ac_old_val" >&2;}
1220 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1221 echo "$as_me: current value: $ac_new_val" >&2;}
1222 ac_cache_corrupted=:
1225 # Pass precious variables to config.status.
1226 if test "$ac_new_set" = set; then
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 *) ac_arg=$ac_var=$ac_new_val ;;
1232 case " $ac_configure_args " in
1233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1234 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238 if $ac_cache_corrupted; then
1239 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1240 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1241 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1242 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1243 { (exit 1); exit 1; }; }
1247 ac_cpp='$CPP $CPPFLAGS'
1248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1272 for ac_dir in ../.. $srcdir/../..; do
1273 if test -f $ac_dir/install-sh; then
1275 ac_install_sh="$ac_aux_dir/install-sh -c"
1277 elif test -f $ac_dir/install.sh; then
1279 ac_install_sh="$ac_aux_dir/install.sh -c"
1281 elif test -f $ac_dir/shtool; then
1283 ac_install_sh="$ac_aux_dir/shtool install -c"
1287 if test -z "$ac_aux_dir"; then
1288 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5
1289 echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;}
1290 { (exit 1); exit 1; }; }
1292 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1293 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1294 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1297 INSTALL=`cd $srcdir/../..; echo $(pwd)/install-sh -c`
1299 # Find a good install program. We prefer a C program (faster),
1300 # so one script is as good as another. But avoid the broken or
1301 # incompatible versions:
1302 # SysV /etc/install, /usr/sbin/install
1303 # SunOS /usr/etc/install
1304 # IRIX /sbin/install
1306 # AmigaOS /C/install, which installs bootblocks on floppy discs
1307 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1308 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1309 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1310 # OS/2's system install, which has a completely different semantic
1311 # ./install, which can be erroneously created by make from ./install.sh.
1312 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1313 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1314 if test -z "$INSTALL"; then
1315 if test "${ac_cv_path_install+set}" = set; then
1316 echo $ECHO_N "(cached) $ECHO_C" >&6
1318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 test -z "$as_dir" && as_dir=.
1323 # Account for people who put trailing slashes in PATH elements.
1325 ./ | .// | /cC/* | \
1326 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1327 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1330 # OSF1 and SCO ODT 3.0 have their own names for install.
1331 # Don't use installbsd from OSF since it installs stuff as root
1333 for ac_prog in ginstall scoinst install; do
1334 for ac_exec_ext in '' $ac_executable_extensions; do
1335 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1336 if test $ac_prog = install &&
1337 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1338 # AIX install. It has an incompatible calling convention.
1340 elif test $ac_prog = install &&
1341 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1342 # program-specific install script used by HP pwplus--don't use.
1345 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1357 if test "${ac_cv_path_install+set}" = set; then
1358 INSTALL=$ac_cv_path_install
1360 # As a last resort, use the slow shell script. We don't cache a
1361 # path for INSTALL within a source directory, because that will
1362 # break other packages using the cache if that directory is
1363 # removed, or if the path is relative.
1364 INSTALL=$ac_install_sh
1367 echo "$as_me:$LINENO: result: $INSTALL" >&5
1368 echo "${ECHO_T}$INSTALL" >&6
1370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1371 # It thinks the first close brace ends the variable substitution.
1372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1376 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1378 # Make sure we can run config.sub.
1379 $ac_config_sub sun4 >/dev/null 2>&1 ||
1380 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1381 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1382 { (exit 1); exit 1; }; }
1384 echo "$as_me:$LINENO: checking build system type" >&5
1385 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1386 if test "${ac_cv_build+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 ac_cv_build_alias=$build_alias
1390 test -z "$ac_cv_build_alias" &&
1391 ac_cv_build_alias=`$ac_config_guess`
1392 test -z "$ac_cv_build_alias" &&
1393 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1394 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1395 { (exit 1); exit 1; }; }
1396 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1398 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1399 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1403 echo "${ECHO_T}$ac_cv_build" >&6
1405 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410 echo "$as_me:$LINENO: checking host system type" >&5
1411 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1412 if test "${ac_cv_host+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 ac_cv_host_alias=$host_alias
1416 test -z "$ac_cv_host_alias" &&
1417 ac_cv_host_alias=$ac_cv_build_alias
1418 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1425 echo "${ECHO_T}$ac_cv_host" >&6
1427 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$as_me:$LINENO: checking target system type" >&5
1433 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1434 if test "${ac_cv_target+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 ac_cv_target_alias=$target_alias
1438 test "x$ac_cv_target_alias" = "x" &&
1439 ac_cv_target_alias=$ac_cv_host_alias
1440 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1447 echo "${ECHO_T}$ac_cv_target" >&6
1448 target=$ac_cv_target
1449 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 # The aliases save the names the user supplied, while $host etc.
1455 # will get canonicalized.
1456 test -n "$target_alias" &&
1457 test "$program_prefix$program_suffix$program_transform_name" = \
1459 program_prefix=${target_alias}-
1461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 if test -n "$CC"; then
1490 echo "$as_me:$LINENO: result: $CC" >&5
1491 echo "${ECHO_T}$CC" >&6
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1498 if test -z "$ac_cv_prog_CC"; then
1500 # Extract the first word of "gcc", so it can be a program name with args.
1501 set dummy gcc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="gcc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524 test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC="gcc"
1527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1543 ac_cpp='$CPP $CPPFLAGS'
1544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547 if test -n "$ac_tool_prefix"; then
1548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 if test -n "$CC"; then
1556 ac_cv_prog_CC="$CC" # Let the user override the test.
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 if test -n "$CC"; then
1576 echo "$as_me:$LINENO: result: $CC" >&5
1577 echo "${ECHO_T}$CC" >&6
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1584 if test -z "$ac_cv_prog_CC"; then
1586 # Extract the first word of "gcc", so it can be a program name with args.
1587 set dummy gcc; ac_word=$2
1588 echo "$as_me:$LINENO: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 if test -n "$ac_ct_CC"; then
1594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_ac_ct_CC="gcc"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1613 if test -n "$ac_ct_CC"; then
1614 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1615 echo "${ECHO_T}$ac_ct_CC" >&6
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1626 if test -z "$CC"; then
1627 if test -n "$ac_tool_prefix"; then
1628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1629 set dummy ${ac_tool_prefix}cc; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_CC+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 if test -n "$CC"; then
1636 ac_cv_prog_CC="$CC" # Let the user override the test.
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645 ac_cv_prog_CC="${ac_tool_prefix}cc"
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 if test -n "$CC"; then
1656 echo "$as_me:$LINENO: result: $CC" >&5
1657 echo "${ECHO_T}$CC" >&6
1659 echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1664 if test -z "$ac_cv_prog_CC"; then
1666 # Extract the first word of "cc", so it can be a program name with args.
1667 set dummy cc; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 if test -n "$ac_ct_CC"; then
1674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_ac_ct_CC="cc"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1693 if test -n "$ac_ct_CC"; then
1694 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1695 echo "${ECHO_T}$ac_ct_CC" >&6
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1707 if test -z "$CC"; then
1708 # Extract the first word of "cc", so it can be a program name with args.
1709 set dummy cc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$CC"; then
1716 ac_cv_prog_CC="$CC" # Let the user override the test.
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1727 ac_prog_rejected=yes
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 if test $ac_prog_rejected = yes; then
1738 # We found a bogon in the path, so make sure we never use it.
1739 set dummy $ac_cv_prog_CC
1741 if test $# != 0; then
1742 # We chose a different compiler from the bogus one.
1743 # However, it has the same basename, so the bogon will be chosen
1744 # first if we set CC to just the basename; use the full file name.
1746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1752 if test -n "$CC"; then
1753 echo "$as_me:$LINENO: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1761 if test -z "$CC"; then
1762 if test -n "$ac_tool_prefix"; then
1765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 if test -n "$CC"; then
1793 echo "$as_me:$LINENO: result: $CC" >&5
1794 echo "${ECHO_T}$CC" >&6
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1800 test -n "$CC" && break
1803 if test -z "$CC"; then
1807 # Extract the first word of "$ac_prog", so it can be a program name with args.
1808 set dummy $ac_prog; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="$ac_prog"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 test -n "$ac_ct_CC" && break
1851 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1852 See \`config.log' for more details." >&5
1853 echo "$as_me: error: no acceptable C compiler found in \$PATH
1854 See \`config.log' for more details." >&2;}
1855 { (exit 1); exit 1; }; }
1857 # Provide some information about the compiler.
1858 echo "$as_me:$LINENO:" \
1859 "checking for C compiler version" >&5
1860 ac_compiler=`set X $ac_compile; echo $2`
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1862 (eval $ac_compiler --version </dev/null >&5) 2>&5
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }
1866 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1867 (eval $ac_compiler -v </dev/null >&5) 2>&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }
1871 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1872 (eval $ac_compiler -V </dev/null >&5) 2>&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }
1877 cat >conftest.$ac_ext <<_ACEOF
1880 cat confdefs.h >>conftest.$ac_ext
1881 cat >>conftest.$ac_ext <<_ACEOF
1882 /* end confdefs.h. */
1892 ac_clean_files_save=$ac_clean_files
1893 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1894 # Try to create an executable without -o first, disregard a.out.
1895 # It will help us diagnose broken compilers, and finding out an intuition
1897 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1898 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1899 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1900 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1901 (eval $ac_link_default) 2>&5
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }; then
1905 # Find the output, starting from the most likely. This scheme is
1906 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1909 # Be careful to initialize this variable, since it used to be cached.
1910 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1912 # b.out is created by i960 compilers.
1913 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1915 test -f "$ac_file" || continue
1917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1920 # This is the source file.
1923 # We found the default executable, but exeext='' is most
1927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1928 # FIXME: I believe we export ac_cv_exeext for Libtool,
1929 # but it would be cool to find out if it's true. Does anybody
1930 # maintain Libtool? --akim.
1938 echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1941 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: C compiler cannot create executables
1944 See \`config.log' for more details." >&2;}
1945 { (exit 77); exit 77; }; }
1948 ac_exeext=$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_file" >&5
1950 echo "${ECHO_T}$ac_file" >&6
1952 # Check the compiler produces executables we can run. If not, either
1953 # the compiler is broken, or we cross compile.
1954 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1955 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1956 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1957 # If not cross compiling, check that we can run a simple program.
1958 if test "$cross_compiling" != yes; then
1959 if { ac_try='./$ac_file'
1960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; }; then
1967 if test "$cross_compiling" = maybe; then
1970 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1971 If you meant to cross compile, use \`--host'.
1972 See \`config.log' for more details." >&5
1973 echo "$as_me: error: cannot run C compiled programs.
1974 If you meant to cross compile, use \`--host'.
1975 See \`config.log' for more details." >&2;}
1976 { (exit 1); exit 1; }; }
1980 echo "$as_me:$LINENO: result: yes" >&5
1981 echo "${ECHO_T}yes" >&6
1983 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1984 ac_clean_files=$ac_clean_files_save
1985 # Check the compiler produces executables we can run. If not, either
1986 # the compiler is broken, or we cross compile.
1987 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1988 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1989 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1990 echo "${ECHO_T}$cross_compiling" >&6
1992 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1993 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1995 (eval $ac_link) 2>&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; then
1999 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2000 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2001 # work properly (i.e., refer to `conftest.exe'), while it won't with
2003 for ac_file in conftest.exe conftest conftest.*; do
2004 test -f "$ac_file" || continue
2006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2007 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2014 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2015 See \`config.log' for more details." >&5
2016 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2017 See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }
2021 rm -f conftest$ac_cv_exeext
2022 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2023 echo "${ECHO_T}$ac_cv_exeext" >&6
2025 rm -f conftest.$ac_ext
2026 EXEEXT=$ac_cv_exeext
2028 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2029 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2030 if test "${ac_cv_objext+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 cat >conftest.$ac_ext <<_ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2048 rm -f conftest.o conftest.obj
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; then
2054 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2065 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2068 See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2074 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2075 echo "${ECHO_T}$ac_cv_objext" >&6
2076 OBJEXT=$ac_cv_objext
2078 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2079 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2080 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 cat >conftest.$ac_ext <<_ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2101 rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2105 grep -v '^ *+' conftest.er1 >conftest.err
2107 cat conftest.err >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2124 echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2133 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2134 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2135 GCC=`test $ac_compiler_gnu = yes && echo yes`
2136 ac_test_CFLAGS=${CFLAGS+set}
2137 ac_save_CFLAGS=$CFLAGS
2139 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2140 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2141 if test "${ac_cv_prog_cc_g+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2163 grep -v '^ *+' conftest.er1 >conftest.err
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2191 if test "$ac_test_CFLAGS" = set; then
2192 CFLAGS=$ac_save_CFLAGS
2193 elif test $ac_cv_prog_cc_g = yes; then
2194 if test "$GCC" = yes; then
2200 if test "$GCC" = yes; then
2206 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2207 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 ac_cv_prog_cc_stdc=no
2213 cat >conftest.$ac_ext <<_ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2221 #include <sys/types.h>
2222 #include <sys/stat.h>
2223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2224 struct buf { int x; };
2225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2226 static char *e (p, i)
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2237 s = g (p, va_arg (v,int));
2242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2243 function prototypes and stuff, but not '\xHH' hex character constants.
2244 These don't provoke an error unfortunately, instead are silently treated
2245 as 'x'. The following induces an error, until -std1 is added to get
2246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2247 array size at least. It's necessary to write '\x00'==0 to get something
2248 that's true only with -std1. */
2249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2251 int test (int i, double x);
2252 struct s1 {int (*f) (int a);};
2253 struct s2 {int (*f) (double a);};
2254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2260 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2265 # Don't try gcc -ansi; that turns off useful extensions and
2266 # breaks some systems' header files.
2267 # AIX -qlanglvl=ansi
2268 # Ultrix and OSF/1 -std1
2269 # HP-UX 10.20 and later -Ae
2270 # HP-UX older versions -Aa -D_HPUX_SOURCE
2271 # SVR4 -Xc -D__EXTENSIONS__
2272 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2274 CC="$ac_save_CC $ac_arg"
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>conftest.er1
2279 grep -v '^ *+' conftest.er1 >conftest.err
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; } &&
2290 { ac_try='test -s conftest.$ac_objext'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2296 ac_cv_prog_cc_stdc=$ac_arg
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2303 rm -f conftest.err conftest.$ac_objext
2305 rm -f conftest.$ac_ext conftest.$ac_objext
2310 case "x$ac_cv_prog_cc_stdc" in
2312 echo "$as_me:$LINENO: result: none needed" >&5
2313 echo "${ECHO_T}none needed" >&6 ;;
2315 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2316 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2317 CC="$CC $ac_cv_prog_cc_stdc" ;;
2320 # Some people use a C++ compiler to compile C. Since we use `exit',
2321 # in C++ we need to declare it. In case someone uses the same compiler
2322 # for both compiling C and C++ we need to have the C++ compiler decide
2323 # the declaration of exit, since it's the most demanding environment.
2324 cat >conftest.$ac_ext <<_ACEOF
2329 rm -f conftest.$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>conftest.er1
2333 grep -v '^ *+' conftest.er1 >conftest.err
2335 cat conftest.err >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); } &&
2338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 for ac_declaration in \
2352 'extern "C" void std::exit (int) throw (); using std::exit;' \
2353 'extern "C" void std::exit (int); using std::exit;' \
2354 'extern "C" void exit (int) throw ();' \
2355 'extern "C" void exit (int);' \
2358 cat >conftest.$ac_ext <<_ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h. */
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2378 grep -v '^ *+' conftest.er1 >conftest.err
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2422 grep -v '^ *+' conftest.er1 >conftest.err
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 if test -n "$ac_declaration"; then
2449 echo '#ifdef __cplusplus' >>confdefs.h
2450 echo $ac_declaration >>confdefs.h
2451 echo '#endif' >>confdefs.h
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2467 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2468 { (exit 1); exit 1; }; }
2470 if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2472 set dummy ${ac_tool_prefix}g++; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_CXX+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$CXX"; then
2479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 if test -n "$CXX"; then
2499 echo "$as_me:$LINENO: result: $CXX" >&5
2500 echo "${ECHO_T}$CXX" >&6
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2507 if test -z "$ac_cv_prog_CXX"; then
2509 # Extract the first word of "g++", so it can be a program name with args.
2510 set dummy g++; ac_word=$2
2511 echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2513 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 if test -n "$ac_ct_CXX"; then
2517 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2526 ac_cv_prog_ac_ct_CXX="g++"
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX="g++"
2536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2537 if test -n "$ac_ct_CXX"; then
2538 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2539 echo "${ECHO_T}$ac_ct_CXX" >&6
2541 echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2547 CXX="$ac_cv_prog_CXX"
2550 if test -z "$CXX"; then
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}g++; ac_word=$2
2554 echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556 if test "${ac_cv_prog_CXX+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$CXX"; then
2560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 if test -n "$CXX"; then
2580 echo "$as_me:$LINENO: result: $CXX" >&5
2581 echo "${ECHO_T}$CXX" >&6
2583 echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6
2588 if test -z "$ac_cv_prog_CXX"; then
2590 # Extract the first word of "g++", so it can be a program name with args.
2591 set dummy g++; ac_word=$2
2592 echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2594 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 if test -n "$ac_ct_CXX"; then
2598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2607 ac_cv_prog_ac_ct_CXX="g++"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX="c++"
2617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2618 if test -n "$ac_ct_CXX"; then
2619 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2620 echo "${ECHO_T}$ac_ct_CXX" >&6
2622 echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6
2628 CXX="$ac_cv_prog_CXX"
2633 ac_cpp='$CXXCPP $CPPFLAGS'
2634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2637 if test -n "$ac_tool_prefix"; then
2638 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642 echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2644 if test "${ac_cv_prog_CXX+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 if test -n "$CXX"; then
2648 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$CXX"; then
2668 echo "$as_me:$LINENO: result: $CXX" >&5
2669 echo "${ECHO_T}$CXX" >&6
2671 echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6
2675 test -n "$CXX" && break
2678 if test -z "$CXX"; then
2680 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 if test -n "$ac_ct_CXX"; then
2690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_ac_ct_CXX="$ac_prog"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2709 if test -n "$ac_ct_CXX"; then
2710 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2711 echo "${ECHO_T}$ac_ct_CXX" >&6
2713 echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6
2717 test -n "$ac_ct_CXX" && break
2719 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2725 # Provide some information about the compiler.
2726 echo "$as_me:$LINENO:" \
2727 "checking for C++ compiler version" >&5
2728 ac_compiler=`set X $ac_compile; echo $2`
2729 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2730 (eval $ac_compiler --version </dev/null >&5) 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2735 (eval $ac_compiler -v </dev/null >&5) 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2740 (eval $ac_compiler -V </dev/null >&5) 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2745 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2746 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2747 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2772 grep -v '^ *+' conftest.er1 >conftest.err
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2800 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2801 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2802 GXX=`test $ac_compiler_gnu = yes && echo yes`
2803 ac_test_CXXFLAGS=${CXXFLAGS+set}
2804 ac_save_CXXFLAGS=$CXXFLAGS
2806 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2807 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2808 if test "${ac_cv_prog_cxx_g+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_cv_prog_cxx_g=yes
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2858 if test "$ac_test_CXXFLAGS" = set; then
2859 CXXFLAGS=$ac_save_CXXFLAGS
2860 elif test $ac_cv_prog_cxx_g = yes; then
2861 if test "$GXX" = yes; then
2867 if test "$GXX" = yes; then
2873 for ac_declaration in \
2875 'extern "C" void std::exit (int) throw (); using std::exit;' \
2876 'extern "C" void std::exit (int); using std::exit;' \
2877 'extern "C" void exit (int) throw ();' \
2878 'extern "C" void exit (int);' \
2881 cat >conftest.$ac_ext <<_ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2971 if test -n "$ac_declaration"; then
2972 echo '#ifdef __cplusplus' >>confdefs.h
2973 echo $ac_declaration >>confdefs.h
2974 echo '#endif' >>confdefs.h
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2984 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2985 { (exit 1); exit 1; }; }
2988 CXXFLAGS='$(CFLAGS)'
2991 case "$with_cross_host" in
2994 install_host="install_host"
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}ar; ac_word=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_AR+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$AR"; then
3014 ac_cv_prog_AR="$AR" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_AR="${ac_tool_prefix}ar"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test -n "$AR"; then
3034 echo "$as_me:$LINENO: result: $AR" >&5
3035 echo "${ECHO_T}$AR" >&6
3037 echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3042 if test -z "$ac_cv_prog_AR"; then
3044 # Extract the first word of "ar", so it can be a program name with args.
3045 set dummy ar; ac_word=$2
3046 echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3048 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 if test -n "$ac_ct_AR"; then
3052 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_AR="ar"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3071 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3072 if test -n "$ac_ct_AR"; then
3073 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3074 echo "${ECHO_T}$ac_ct_AR" >&6
3076 echo "$as_me:$LINENO: result: no" >&5
3077 echo "${ECHO_T}no" >&6
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}as; ac_word=$2
3088 echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090 if test "${ac_cv_prog_AS+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 if test -n "$AS"; then
3094 ac_cv_prog_AS="$AS" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_AS="${ac_tool_prefix}as"
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 if test -n "$AS"; then
3114 echo "$as_me:$LINENO: result: $AS" >&5
3115 echo "${ECHO_T}$AS" >&6
3117 echo "$as_me:$LINENO: result: no" >&5
3118 echo "${ECHO_T}no" >&6
3122 if test -z "$ac_cv_prog_AS"; then
3124 # Extract the first word of "as", so it can be a program name with args.
3125 set dummy as; ac_word=$2
3126 echo "$as_me:$LINENO: checking for $ac_word" >&5
3127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 if test -n "$ac_ct_AS"; then
3132 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_ac_ct_AS="as"
3142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="as"
3151 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3152 if test -n "$ac_ct_AS"; then
3153 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3154 echo "${ECHO_T}$ac_ct_AS" >&6
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3168 echo "$as_me:$LINENO: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170 if test "${ac_cv_prog_RANLIB+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 if test -n "$RANLIB"; then
3174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 RANLIB=$ac_cv_prog_RANLIB
3193 if test -n "$RANLIB"; then
3194 echo "$as_me:$LINENO: result: $RANLIB" >&5
3195 echo "${ECHO_T}$RANLIB" >&6
3197 echo "$as_me:$LINENO: result: no" >&5
3198 echo "${ECHO_T}no" >&6
3202 if test -z "$ac_cv_prog_RANLIB"; then
3203 ac_ct_RANLIB=$RANLIB
3204 # Extract the first word of "ranlib", so it can be a program name with args.
3205 set dummy ranlib; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 if test -n "$ac_ct_RANLIB"; then
3212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_ac_ct_RANLIB="ranlib"
3222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib"
3231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3232 if test -n "$ac_ct_RANLIB"; then
3233 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3234 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3240 RANLIB=$ac_ct_RANLIB
3242 RANLIB="$ac_cv_prog_RANLIB"
3245 if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3247 set dummy ${ac_tool_prefix}ld; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_LD+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 if test -n "$LD"; then
3254 ac_cv_prog_LD="$LD" # Let the user override the test.
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_LD="${ac_tool_prefix}ld"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$LD"; then
3274 echo "$as_me:$LINENO: result: $LD" >&5
3275 echo "${ECHO_T}$LD" >&6
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3282 if test -z "$ac_cv_prog_LD"; then
3284 # Extract the first word of "ld", so it can be a program name with args.
3285 set dummy ld; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$ac_ct_LD"; then
3292 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_LD="ld"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3311 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3312 if test -n "$ac_ct_LD"; then
3313 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3314 echo "${ECHO_T}$ac_ct_LD" >&6
3316 echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}nm; ac_word=$2
3328 echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_NM+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 if test -n "$NM"; then
3334 ac_cv_prog_NM="$NM" # Let the user override the test.
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_NM="${ac_tool_prefix}nm"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test -n "$NM"; then
3354 echo "$as_me:$LINENO: result: $NM" >&5
3355 echo "${ECHO_T}$NM" >&6
3357 echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6
3362 if test -z "$ac_cv_prog_NM"; then
3364 # Extract the first word of "nm", so it can be a program name with args.
3365 set dummy nm; ac_word=$2
3366 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$ac_ct_NM"; then
3372 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_ac_ct_NM="nm"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
3391 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3392 if test -n "$ac_ct_NM"; then
3393 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
3394 echo "${ECHO_T}$ac_ct_NM" >&6
3396 echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3405 if test -n "$ac_tool_prefix"; then
3406 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3408 echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -n "$DLLTOOL"; then
3414 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 DLLTOOL=$ac_cv_prog_DLLTOOL
3433 if test -n "$DLLTOOL"; then
3434 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3435 echo "${ECHO_T}$DLLTOOL" >&6
3437 echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3442 if test -z "$ac_cv_prog_DLLTOOL"; then
3443 ac_ct_DLLTOOL=$DLLTOOL
3444 # Extract the first word of "dlltool", so it can be a program name with args.
3445 set dummy dlltool; ac_word=$2
3446 echo "$as_me:$LINENO: checking for $ac_word" >&5
3447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3448 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 if test -n "$ac_ct_DLLTOOL"; then
3452 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3471 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3472 if test -n "$ac_ct_DLLTOOL"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3474 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 DLLTOOL=$ac_ct_DLLTOOL
3482 DLLTOOL="$ac_cv_prog_DLLTOOL"
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}windres; ac_word=$2
3488 echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_WINDRES+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 if test -n "$WINDRES"; then
3494 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 WINDRES=$ac_cv_prog_WINDRES
3513 if test -n "$WINDRES"; then
3514 echo "$as_me:$LINENO: result: $WINDRES" >&5
3515 echo "${ECHO_T}$WINDRES" >&6
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3522 if test -z "$ac_cv_prog_WINDRES"; then
3523 ac_ct_WINDRES=$WINDRES
3524 # Extract the first word of "windres", so it can be a program name with args.
3525 set dummy windres; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 if test -n "$ac_ct_WINDRES"; then
3532 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_ac_ct_WINDRES="windres"
3542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="windres"
3551 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
3552 if test -n "$ac_ct_WINDRES"; then
3553 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
3554 echo "${ECHO_T}$ac_ct_WINDRES" >&6
3556 echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6
3560 WINDRES=$ac_ct_WINDRES
3562 WINDRES="$ac_cv_prog_WINDRES"
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3573 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3574 # On Suns, sometimes $CPP names a directory.
3575 if test -n "$CPP" && test -d "$CPP"; then
3578 if test -z "$CPP"; then
3579 if test "${ac_cv_prog_CPP+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 # Double quotes because CPP needs to be expanded
3583 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3586 for ac_c_preproc_warn_flag in '' yes
3588 # Use a header file that comes with gcc, so configuring glibc
3589 # with a fresh cross-compiler works.
3590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3591 # <limits.h> exists even on freestanding compilers.
3592 # On the NeXT, cc -E runs the code through the compiler's parser,
3593 # not just through cpp. "Syntax error" is here to catch this case.
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3601 # include <limits.h>
3603 # include <assert.h>
3607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3624 if test -z "$ac_cpp_err"; then
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 # Broken: fails on valid input.
3633 rm -f conftest.err conftest.$ac_ext
3635 # OK, works on sane cases. Now check whether non-existent headers
3636 # can be detected and how.
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 #include <ac_nonexistent.h>
3645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null; then
3653 if test -s conftest.err; then
3654 ac_cpp_err=$ac_c_preproc_warn_flag
3655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3662 if test -z "$ac_cpp_err"; then
3663 # Broken: success on invalid input.
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 # Passes both tests.
3673 rm -f conftest.err conftest.$ac_ext
3676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3677 rm -f conftest.err conftest.$ac_ext
3678 if $ac_preproc_ok; then
3690 echo "$as_me:$LINENO: result: $CPP" >&5
3691 echo "${ECHO_T}$CPP" >&6
3693 for ac_c_preproc_warn_flag in '' yes
3695 # Use a header file that comes with gcc, so configuring glibc
3696 # with a fresh cross-compiler works.
3697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3698 # <limits.h> exists even on freestanding compilers.
3699 # On the NeXT, cc -E runs the code through the compiler's parser,
3700 # not just through cpp. "Syntax error" is here to catch this case.
3701 cat >conftest.$ac_ext <<_ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3708 # include <limits.h>
3710 # include <assert.h>
3714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3717 grep -v '^ *+' conftest.er1 >conftest.err
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } >/dev/null; then
3722 if test -s conftest.err; then
3723 ac_cpp_err=$ac_c_preproc_warn_flag
3724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3731 if test -z "$ac_cpp_err"; then
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 # Broken: fails on valid input.
3740 rm -f conftest.err conftest.$ac_ext
3742 # OK, works on sane cases. Now check whether non-existent headers
3743 # can be detected and how.
3744 cat >conftest.$ac_ext <<_ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <ac_nonexistent.h>
3752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } >/dev/null; then
3760 if test -s conftest.err; then
3761 ac_cpp_err=$ac_c_preproc_warn_flag
3762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3769 if test -z "$ac_cpp_err"; then
3770 # Broken: success on invalid input.
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 # Passes both tests.
3780 rm -f conftest.err conftest.$ac_ext
3783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3784 rm -f conftest.err conftest.$ac_ext
3785 if $ac_preproc_ok; then
3788 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3789 See \`config.log' for more details." >&5
3790 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3791 See \`config.log' for more details." >&2;}
3792 { (exit 1); exit 1; }; }
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802 echo "$as_me:$LINENO: checking for egrep" >&5
3803 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3804 if test "${ac_cv_prog_egrep+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3808 then ac_cv_prog_egrep='grep -E'
3809 else ac_cv_prog_egrep='egrep'
3812 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3813 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3814 EGREP=$ac_cv_prog_egrep
3817 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3818 # for constant arguments. Useless!
3819 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3820 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3821 if test "${ac_cv_working_alloca_h+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3834 char *p = (char *) alloca (2 * sizeof (int));
3839 rm -f conftest.$ac_objext conftest$ac_exeext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841 (eval $ac_link) 2>conftest.er1
3843 grep -v '^ *+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest$ac_exeext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_cv_working_alloca_h=yes
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ac_cv_working_alloca_h=no
3867 rm -f conftest.err conftest.$ac_objext \
3868 conftest$ac_exeext conftest.$ac_ext
3870 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3871 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3872 if test $ac_cv_working_alloca_h = yes; then
3874 cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_ALLOCA_H 1
3880 echo "$as_me:$LINENO: checking for alloca" >&5
3881 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3882 if test "${ac_cv_func_alloca_works+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 cat >conftest.$ac_ext <<_ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3892 # define alloca __builtin_alloca
3895 # include <malloc.h>
3896 # define alloca _alloca
3899 # include <alloca.h>
3904 # ifndef alloca /* predefined by HP cc +Olibcalls */
3915 char *p = (char *) alloca (1);
3920 rm -f conftest.$ac_objext conftest$ac_exeext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922 (eval $ac_link) 2>conftest.er1
3924 grep -v '^ *+' conftest.er1 >conftest.err
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try='test -s conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_cv_func_alloca_works=yes
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 ac_cv_func_alloca_works=no
3948 rm -f conftest.err conftest.$ac_objext \
3949 conftest$ac_exeext conftest.$ac_ext
3951 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3952 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3954 if test $ac_cv_func_alloca_works = yes; then
3956 cat >>confdefs.h <<\_ACEOF
3957 #define HAVE_ALLOCA 1
3961 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3962 # that cause trouble. Some versions do not even contain alloca or
3963 # contain a buggy version. If you still want to use their alloca,
3964 # use ar to extract alloca.o from them instead of compiling alloca.c.
3966 ALLOCA=alloca.$ac_objext
3968 cat >>confdefs.h <<\_ACEOF
3973 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3974 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3975 if test "${ac_cv_os_cray+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #if defined(CRAY) && ! defined(CRAY2)
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "webecray" >/dev/null 2>&1; then
4000 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4001 echo "${ECHO_T}$ac_cv_os_cray" >&6
4002 if test $ac_cv_os_cray = yes; then
4003 for ac_func in _getb67 GETB67 getb67; do
4004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4005 echo "$as_me:$LINENO: checking for $ac_func" >&5
4006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4007 if eval "test \"\${$as_ac_var+set}\" = set"; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 cat >conftest.$ac_ext <<_ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4018 #define $ac_func innocuous_$ac_func
4020 /* System header to define __stub macros and hopefully few prototypes,
4021 which can conflict with char $ac_func (); below.
4022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 <limits.h> exists even on freestanding compilers. */
4026 # include <limits.h>
4028 # include <assert.h>
4033 /* Override any gcc2 internal prototype to avoid an error. */
4038 /* We use char because int might match the return type of a gcc2
4039 builtin and then its argument prototype would still apply. */
4041 /* The GNU C library defines this for functions which it implements
4042 to always fail with ENOSYS. Some functions are actually named
4043 something starting with __ and the normal name is an alias. */
4044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4047 char (*f) () = $ac_func;
4056 return f != $ac_func;
4061 rm -f conftest.$ac_objext conftest$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063 (eval $ac_link) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest$ac_exeext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 eval "$as_ac_var=yes"
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 eval "$as_ac_var=no"
4089 rm -f conftest.err conftest.$ac_objext \
4090 conftest$ac_exeext conftest.$ac_ext
4092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4094 if test `eval echo '${'$as_ac_var'}'` = yes; then
4096 cat >>confdefs.h <<_ACEOF
4097 #define CRAY_STACKSEG_END $ac_func
4106 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4107 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4108 if test "${ac_cv_c_stack_direction+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test "$cross_compiling" = yes; then
4112 ac_cv_c_stack_direction=0
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4121 find_stack_direction ()
4123 static char *addr = 0;
4128 return find_stack_direction ();
4131 return (&dummy > addr) ? 1 : -1;
4137 exit (find_stack_direction () < 0);
4140 rm -f conftest$ac_exeext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 ac_cv_c_stack_direction=1
4153 echo "$as_me: program exited with status $ac_status" >&5
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4158 ac_cv_c_stack_direction=-1
4160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4163 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4164 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4166 cat >>confdefs.h <<_ACEOF
4167 #define STACK_DIRECTION $ac_cv_c_stack_direction
4173 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4174 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4175 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4176 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 cat >conftest.make <<\_ACEOF
4181 @echo 'ac_maketemp="$(MAKE)"'
4183 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4184 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4185 if test -n "$ac_maketemp"; then
4186 eval ac_cv_prog_make_${ac_make}_set=yes
4188 eval ac_cv_prog_make_${ac_make}_set=no
4192 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4193 echo "$as_me:$LINENO: result: yes" >&5
4194 echo "${ECHO_T}yes" >&6
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 SET_MAKE="MAKE=${MAKE-make}"
4203 # Test for builtin mem* functions.
4207 ac_cpp='$CXXCPP $CPPFLAGS'
4208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4221 void foo(char *s, int c, size_t n)
4223 __builtin_memset(s, c, n);
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 use_builtin_memset=yes
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 use_builtin_memset=no
4262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263 if test $use_builtin_memset = "yes"; then
4264 cat >>confdefs.h <<\_ACEOF
4265 #define HAVE_BUILTIN_MEMSET 1
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 # Check whether --enable-debugging or --disable-debugging was given.
4277 if test "${enable_debugging+set}" = set; then
4278 enableval="$enable_debugging"
4279 case "${enableval}" in
4280 yes) cat >>confdefs.h <<\_ACEOF
4289 ac_config_files="$ac_config_files Makefile"
4290 cat >confcache <<\_ACEOF
4291 # This file is a shell script that caches the results of configure
4292 # tests run on this system so they can be shared between configure
4293 # scripts and configure runs, see configure's option --config-cache.
4294 # It is not useful on other systems. If it contains results you don't
4295 # want to keep, you may remove or edit it.
4297 # config.status only pays attention to the cache file if you give it
4298 # the --recheck option to rerun configure.
4300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4306 # The following way of writing the cache mishandles newlines in values,
4307 # but we know of no workaround that is simple, portable, and efficient.
4308 # So, don't put newlines in cache variables' values.
4309 # Ultrix sh set writes to stderr and can't be redirected directly,
4310 # and sets the high bit in the cache file unless we assign to the vars.
4313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4315 # `set' does not quote correctly, so add quotes (double-quote
4316 # substitution turns \\\\ into \\, and sed turns \\ into \).
4319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4322 # `set' quotes correctly as required by POSIX, so do not add quotes.
4324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4333 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4335 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4336 if test -w $cache_file; then
4337 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4338 cat confcache >$cache_file
4340 echo "not updating unwritable cache $cache_file"
4345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4346 # Let make expand exec_prefix.
4347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4351 # trailing colons and then remove the whole line if VPATH becomes empty
4352 # (actually we leave an empty line to preserve line numbers).
4353 if test "x$srcdir" = x.; then
4354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4355 s/:*\$(srcdir):*/:/;
4356 s/:*\${srcdir}:*/:/;
4358 s/^\([^=]*=[ ]*\):*/\1/;
4364 # Transform confdefs.h into DEFS.
4365 # Protect against shell expansion while executing Makefile rules.
4366 # Protect against Makefile macro expansion.
4368 # If the first sed substitution is executed (which looks for macros that
4369 # take arguments), then we branch to the quote section. Otherwise,
4370 # look for a macro that doesn't take arguments.
4371 cat >confdef2opt.sed <<\_ACEOF
4374 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4376 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4380 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4386 # We use echo to avoid assuming a particular line-breaking character.
4387 # The extra dot is to prevent the shell from consuming trailing
4388 # line-breaks from the sub-command output. A line-break within
4389 # single-quotes doesn't work because, if this script is created in a
4390 # platform that uses two characters for line-breaks (e.g., DOS), tr
4392 ac_LF_and_DOT=`echo; echo .`
4393 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4394 rm -f confdef2opt.sed
4399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4400 # 1. Remove the extension, and $U if already installed.
4401 ac_i=`echo "$ac_i" |
4402 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4404 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4405 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4409 LTLIBOBJS=$ac_ltlibobjs
4413 : ${CONFIG_STATUS=./config.status}
4414 ac_clean_files_save=$ac_clean_files
4415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4416 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4417 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4418 cat >$CONFIG_STATUS <<_ACEOF
4420 # Generated by $as_me.
4421 # Run this file to recreate the current configuration.
4422 # Compiler output produced by configure, useful for debugging
4423 # configure, is in config.log if it exists.
4428 SHELL=\${CONFIG_SHELL-$SHELL}
4431 cat >>$CONFIG_STATUS <<\_ACEOF
4432 ## --------------------- ##
4433 ## M4sh Initialization. ##
4434 ## --------------------- ##
4436 # Be Bourne compatible
4437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4440 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4441 # is contrary to our usage. Disable this feature.
4442 alias -g '${1+"$@"}'='"$@"'
4443 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4446 DUALCASE=1; export DUALCASE # for MKS sh
4448 # Support unset when possible.
4449 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4456 # Work around bugs in pre-3.0 UWIN ksh.
4457 $as_unset ENV MAIL MAILPATH
4464 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4465 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4466 LC_TELEPHONE LC_TIME
4468 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4469 eval $as_var=C; export $as_var
4475 # Required to use basename.
4476 if expr a : '\(a\)' >/dev/null 2>&1; then
4482 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4483 as_basename=basename
4489 # Name of the executable.
4490 as_me=`$as_basename "$0" ||
4491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4492 X"$0" : 'X\(//\)$' \| \
4493 X"$0" : 'X\(/\)$' \| \
4494 . : '\(.\)' 2>/dev/null ||
4496 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4497 /^X\/\(\/\/\)$/{ s//\1/; q; }
4498 /^X\/\(\/\).*/{ s//\1/; q; }
4502 # PATH needs CR, and LINENO needs CR and PATH.
4503 # Avoid depending upon Character Ranges.
4504 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4505 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4506 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4507 as_cr_digits='0123456789'
4508 as_cr_alnum=$as_cr_Letters$as_cr_digits
4510 # The user is always right.
4511 if test "${PATH_SEPARATOR+set}" != set; then
4512 echo "#! /bin/sh" >conf$$.sh
4513 echo "exit 0" >>conf$$.sh
4515 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4526 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4527 test "x$as_lineno_1" != "x$as_lineno_2" &&
4528 test "x$as_lineno_3" = "x$as_lineno_2" || {
4529 # Find who we are. Look in the path if we contain no path at all
4532 *[\\/]* ) as_myself=$0 ;;
4533 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir=.
4538 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4543 # We did not find ourselves, most probably we were run as `sh COMMAND'
4544 # in which case we are not to be found in the path.
4545 if test "x$as_myself" = x; then
4548 if test ! -f "$as_myself"; then
4549 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4550 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4551 { (exit 1); exit 1; }; }
4553 case $CONFIG_SHELL in
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4559 test -z "$as_dir" && as_dir=.
4560 for as_base in sh bash ksh sh5; do
4563 if ("$as_dir/$as_base" -c '
4566 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4567 test "x$as_lineno_1" != "x$as_lineno_2" &&
4568 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4569 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4570 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4571 CONFIG_SHELL=$as_dir/$as_base
4573 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4581 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4582 # uniformly replaced by the line number. The first 'sed' inserts a
4583 # line-number line before each line; the second 'sed' does the real
4584 # work. The second script uses 'N' to pair each line-number line
4585 # with the numbered line, and appends trailing '-' during
4586 # substitution so that $LINENO is not a special case at line end.
4587 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4588 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4589 sed '=' <$as_myself |
4594 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4597 s,^['$as_cr_digits']*\n,,
4599 chmod +x $as_me.lineno ||
4600 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4601 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4602 { (exit 1); exit 1; }; }
4604 # Don't try to exec as it changes $[0], causing all sort of problems
4605 # (the dirname of $[0] is not the place where we might find the
4606 # original and so on. Autoconf is especially sensible to this).
4608 # Exit status is that of the last command.
4613 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4614 *c*,-n*) ECHO_N= ECHO_C='
4616 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4617 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4620 if expr a : '\(a\)' >/dev/null 2>&1; then
4626 rm -f conf$$ conf$$.exe conf$$.file
4628 if ln -s conf$$.file conf$$ 2>/dev/null; then
4629 # We could just check for DJGPP; but this test a) works b) is more generic
4630 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4631 if test -f conf$$.exe; then
4632 # Don't use ln at all; we don't have any links
4637 elif ln conf$$.file conf$$ 2>/dev/null; then
4642 rm -f conf$$ conf$$.exe conf$$.file
4644 if mkdir -p . 2>/dev/null; then
4647 test -d ./-p && rmdir ./-p
4651 as_executable_p="test -f"
4653 # Sed expression to map a string onto a valid CPP name.
4654 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4656 # Sed expression to map a string onto a valid variable name.
4657 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4661 # We need space, tab and new line, in precisely that order.
4671 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4672 # report actual input values of CONFIG_FILES etc. instead of their
4673 # values after options handling. Logging --version etc. is OK.
4677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4678 ## Running $as_me. ##
4683 This file was extended by $as_me, which was
4684 generated by GNU Autoconf 2.59. Invocation command line was
4686 CONFIG_FILES = $CONFIG_FILES
4687 CONFIG_HEADERS = $CONFIG_HEADERS
4688 CONFIG_LINKS = $CONFIG_LINKS
4689 CONFIG_COMMANDS = $CONFIG_COMMANDS
4693 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4697 # Files that config.status was made for.
4698 if test -n "$ac_config_files"; then
4699 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4702 if test -n "$ac_config_headers"; then
4703 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4706 if test -n "$ac_config_links"; then
4707 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4710 if test -n "$ac_config_commands"; then
4711 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4714 cat >>$CONFIG_STATUS <<\_ACEOF
4717 \`$as_me' instantiates files from templates according to the
4718 current configuration.
4720 Usage: $0 [OPTIONS] [FILE]...
4722 -h, --help print this help, then exit
4723 -V, --version print version number, then exit
4724 -q, --quiet do not print progress messages
4725 -d, --debug don't remove temporary files
4726 --recheck update $as_me by reconfiguring in the same conditions
4727 --file=FILE[:TEMPLATE]
4728 instantiate the configuration file FILE
4730 Configuration files:
4733 Report bugs to <bug-autoconf@gnu.org>."
4736 cat >>$CONFIG_STATUS <<_ACEOF
4739 configured by $0, generated by GNU Autoconf 2.59,
4740 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4742 Copyright (C) 2003 Free Software Foundation, Inc.
4743 This config.status script is free software; the Free Software Foundation
4744 gives unlimited permission to copy, distribute and modify it."
4749 cat >>$CONFIG_STATUS <<\_ACEOF
4750 # If no file are specified by the user, then we need to provide default
4751 # value. By we need to know if files were specified by the user.
4757 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4758 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4766 *) # This is not an option, so the user has probably given explicit
4769 ac_need_defaults=false;;
4773 # Handling of the options.
4775 cat >>$CONFIG_STATUS <<\_ACEOF
4776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4778 --version | --vers* | -V )
4779 echo "$ac_cs_version"; exit 0 ;;
4781 # Conflict between --help and --header
4782 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4783 Try \`$0 --help' for more information." >&5
4784 echo "$as_me: error: ambiguous option: $1
4785 Try \`$0 --help' for more information." >&2;}
4786 { (exit 1); exit 1; }; };;
4787 --help | --hel | -h )
4788 echo "$ac_cs_usage"; exit 0 ;;
4789 --debug | --d* | -d )
4791 --file | --fil | --fi | --f )
4793 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4794 ac_need_defaults=false;;
4795 --header | --heade | --head | --hea )
4797 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4798 ac_need_defaults=false;;
4799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4804 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4805 Try \`$0 --help' for more information." >&5
4806 echo "$as_me: error: unrecognized option: $1
4807 Try \`$0 --help' for more information." >&2;}
4808 { (exit 1); exit 1; }; } ;;
4810 *) ac_config_targets="$ac_config_targets $1" ;;
4816 ac_configure_extra_args=
4818 if $ac_cs_silent; then
4820 ac_configure_extra_args="$ac_configure_extra_args --silent"
4824 cat >>$CONFIG_STATUS <<_ACEOF
4825 if \$ac_cs_recheck; then
4826 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4827 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4836 cat >>$CONFIG_STATUS <<\_ACEOF
4837 for ac_config_target in $ac_config_targets
4839 case "$ac_config_target" in
4840 # Handling of arguments.
4841 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4842 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4843 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4844 { (exit 1); exit 1; }; };;
4848 # If the user did not use the arguments to specify the items to instantiate,
4849 # then the envvar interface is used. Set only those that are not.
4850 # We use the long form for the default assignment because of an extremely
4851 # bizarre bug on SunOS 4.1.3.
4852 if $ac_need_defaults; then
4853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4856 # Have a temporary directory for convenience. Make it in the build tree
4857 # simply because there is no reason to put it here, and in addition,
4858 # creating and moving files from /tmp can sometimes cause problems.
4859 # Create a temporary directory, and hook for its removal unless debugging.
4862 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4863 trap '{ (exit 1); exit 1; }' 1 2 13 15
4866 # Create a (secure) tmp directory for tmp files.
4869 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4870 test -n "$tmp" && test -d "$tmp"
4873 tmp=./confstat$$-$RANDOM
4874 (umask 077 && mkdir $tmp)
4877 echo "$me: cannot create a temporary directory in ." >&2
4878 { (exit 1); exit 1; }
4883 cat >>$CONFIG_STATUS <<_ACEOF
4886 # CONFIG_FILES section.
4889 # No need to generate the scripts if there are no CONFIG_FILES.
4890 # This happens for instance when ./config.status config.h
4891 if test -n "\$CONFIG_FILES"; then
4892 # Protect against being on the right side of a sed subst in config.status.
4893 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4894 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4895 s,@SHELL@,$SHELL,;t t
4896 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4897 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4898 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4899 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4900 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4901 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4902 s,@exec_prefix@,$exec_prefix,;t t
4903 s,@prefix@,$prefix,;t t
4904 s,@program_transform_name@,$program_transform_name,;t t
4905 s,@bindir@,$bindir,;t t
4906 s,@sbindir@,$sbindir,;t t
4907 s,@libexecdir@,$libexecdir,;t t
4908 s,@datadir@,$datadir,;t t
4909 s,@sysconfdir@,$sysconfdir,;t t
4910 s,@sharedstatedir@,$sharedstatedir,;t t
4911 s,@localstatedir@,$localstatedir,;t t
4912 s,@libdir@,$libdir,;t t
4913 s,@includedir@,$includedir,;t t
4914 s,@oldincludedir@,$oldincludedir,;t t
4915 s,@infodir@,$infodir,;t t
4916 s,@mandir@,$mandir,;t t
4917 s,@build_alias@,$build_alias,;t t
4918 s,@host_alias@,$host_alias,;t t
4919 s,@target_alias@,$target_alias,;t t
4921 s,@ECHO_C@,$ECHO_C,;t t
4922 s,@ECHO_N@,$ECHO_N,;t t
4923 s,@ECHO_T@,$ECHO_T,;t t
4925 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4926 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4927 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4928 s,@build@,$build,;t t
4929 s,@build_cpu@,$build_cpu,;t t
4930 s,@build_vendor@,$build_vendor,;t t
4931 s,@build_os@,$build_os,;t t
4933 s,@host_cpu@,$host_cpu,;t t
4934 s,@host_vendor@,$host_vendor,;t t
4935 s,@host_os@,$host_os,;t t
4936 s,@target@,$target,;t t
4937 s,@target_cpu@,$target_cpu,;t t
4938 s,@target_vendor@,$target_vendor,;t t
4939 s,@target_os@,$target_os,;t t
4941 s,@ac_ct_CC@,$ac_ct_CC,;t t
4942 s,@CFLAGS@,$CFLAGS,;t t
4943 s,@LDFLAGS@,$LDFLAGS,;t t
4944 s,@CPPFLAGS@,$CPPFLAGS,;t t
4945 s,@EXEEXT@,$EXEEXT,;t t
4946 s,@OBJEXT@,$OBJEXT,;t t
4948 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4949 s,@CXXFLAGS@,$CXXFLAGS,;t t
4950 s,@all_host@,$all_host,;t t
4951 s,@install_host@,$install_host,;t t
4953 s,@ac_ct_AR@,$ac_ct_AR,;t t
4955 s,@ac_ct_AS@,$ac_ct_AS,;t t
4956 s,@RANLIB@,$RANLIB,;t t
4957 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4959 s,@ac_ct_LD@,$ac_ct_LD,;t t
4961 s,@ac_ct_NM@,$ac_ct_NM,;t t
4962 s,@DLLTOOL@,$DLLTOOL,;t t
4963 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
4964 s,@WINDRES@,$WINDRES,;t t
4965 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
4966 s,@ALLOCA@,$ALLOCA,;t t
4968 s,@EGREP@,$EGREP,;t t
4969 s,@SET_MAKE@,$SET_MAKE,;t t
4970 s,@LIBOBJS@,$LIBOBJS,;t t
4971 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4976 cat >>$CONFIG_STATUS <<\_ACEOF
4977 # Split the substitutions into bite-sized pieces for seds with
4978 # small command number limits, like on Digital OSF/1 and HP-UX.
4980 ac_sed_frag=1 # Number of current file.
4981 ac_beg=1 # First line for current file.
4982 ac_end=$ac_max_sed_lines # Line after last line for current file.
4985 while $ac_more_lines; do
4986 if test $ac_beg -gt 1; then
4987 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4989 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4991 if test ! -s $tmp/subs.frag; then
4994 # The purpose of the label and of the branching condition is to
4995 # speed up the sed processing (if there are no `@' at all, there
4996 # is no need to browse any of the substitutions).
4997 # These are the two extra sed commands mentioned above.
4999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5000 if test -z "$ac_sed_cmds"; then
5001 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5003 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5005 ac_sed_frag=`expr $ac_sed_frag + 1`
5007 ac_end=`expr $ac_end + $ac_max_sed_lines`
5010 if test -z "$ac_sed_cmds"; then
5013 fi # test -n "$CONFIG_FILES"
5016 cat >>$CONFIG_STATUS <<\_ACEOF
5017 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5020 - | *:- | *:-:* ) # input from stdin
5022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5026 * ) ac_file_in=$ac_file.in ;;
5029 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5030 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5032 X"$ac_file" : 'X\(//\)[^/]' \| \
5033 X"$ac_file" : 'X\(//\)$' \| \
5034 X"$ac_file" : 'X\(/\)' \| \
5035 . : '\(.\)' 2>/dev/null ||
5037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5039 /^X\(\/\/\)$/{ s//\1/; q; }
5040 /^X\(\/\).*/{ s//\1/; q; }
5042 { if $as_mkdir_p; then
5047 while test ! -d "$as_dir"; do
5048 as_dirs="$as_dir $as_dirs"
5049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5051 X"$as_dir" : 'X\(//\)[^/]' \| \
5052 X"$as_dir" : 'X\(//\)$' \| \
5053 X"$as_dir" : 'X\(/\)' \| \
5054 . : '\(.\)' 2>/dev/null ||
5056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5058 /^X\(\/\/\)$/{ s//\1/; q; }
5059 /^X\(\/\).*/{ s//\1/; q; }
5062 test ! -n "$as_dirs" || mkdir $as_dirs
5063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5065 { (exit 1); exit 1; }; }; }
5069 if test "$ac_dir" != .; then
5070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5071 # A "../" for each directory in $ac_dir_suffix.
5072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5074 ac_dir_suffix= ac_top_builddir=
5078 .) # No --srcdir option. We are building in place.
5080 if test -z "$ac_top_builddir"; then
5083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5085 [\\/]* | ?:[\\/]* ) # Absolute path.
5086 ac_srcdir=$srcdir$ac_dir_suffix;
5087 ac_top_srcdir=$srcdir ;;
5089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5093 # Do not use `cd foo && pwd` to compute absolute paths, because
5094 # the directories may not exist.
5096 .) ac_abs_builddir="$ac_dir";;
5099 .) ac_abs_builddir=`pwd`;;
5100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5104 case $ac_abs_builddir in
5105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5107 case ${ac_top_builddir}. in
5108 .) ac_abs_top_builddir=$ac_abs_builddir;;
5109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5113 case $ac_abs_builddir in
5114 .) ac_abs_srcdir=$ac_srcdir;;
5117 .) ac_abs_srcdir=$ac_abs_builddir;;
5118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5122 case $ac_abs_builddir in
5123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5125 case $ac_top_srcdir in
5126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5135 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5138 # Let's still pretend it is `configure' which instantiates (i.e., don't
5139 # use $as_me), people would be surprised to read:
5140 # /* config.h. Generated by config.status. */
5141 if test x"$ac_file" = x-; then
5144 configure_input="$ac_file. "
5146 configure_input=$configure_input"Generated from `echo $ac_file_in |
5147 sed 's,.*/,,'` by configure."
5149 # First look for the input files in the build tree, otherwise in the
5151 ac_file_inputs=`IFS=:
5152 for f in $ac_file_in; do
5154 -) echo $tmp/stdin ;;
5156 # Absolute (can't be DOS-style, as IFS=:)
5157 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5158 echo "$as_me: error: cannot find input file: $f" >&2;}
5159 { (exit 1); exit 1; }; }
5162 if test -f "$f"; then
5165 elif test -f "$srcdir/$f"; then
5170 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5171 echo "$as_me: error: cannot find input file: $f" >&2;}
5172 { (exit 1); exit 1; }; }
5175 done` || { (exit 1); exit 1; }
5177 if test x"$ac_file" != x-; then
5178 { echo "$as_me:$LINENO: creating $ac_file" >&5
5179 echo "$as_me: creating $ac_file" >&6;}
5183 cat >>$CONFIG_STATUS <<_ACEOF
5187 cat >>$CONFIG_STATUS <<\_ACEOF
5189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5190 s,@configure_input@,$configure_input,;t t
5191 s,@srcdir@,$ac_srcdir,;t t
5192 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5193 s,@top_srcdir@,$ac_top_srcdir,;t t
5194 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5195 s,@builddir@,$ac_builddir,;t t
5196 s,@abs_builddir@,$ac_abs_builddir,;t t
5197 s,@top_builddir@,$ac_top_builddir,;t t
5198 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5199 s,@INSTALL@,$ac_INSTALL,;t t
5200 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5202 if test x"$ac_file" != x-; then
5203 mv $tmp/out $ac_file
5212 cat >>$CONFIG_STATUS <<\_ACEOF
5214 { (exit 0); exit 0; }
5216 chmod +x $CONFIG_STATUS
5217 ac_clean_files=$ac_clean_files_save
5220 # configure is writing to config.log, and then calls config.status.
5221 # config.status does its own redirection, appending to config.log.
5222 # Unfortunately, on DOS this fails, as config.log is still kept open
5223 # by configure, so config.status won't be able to write to it; its
5224 # output is simply discarded. So we exec the FD to /dev/null,
5225 # effectively closing config.log, so it can be properly (re)opened and
5226 # appended to by config.status. When coming back to configure, we
5227 # need to make the FD available again.
5228 if test "$no_create" != yes; then
5230 ac_config_status_args=
5231 test "$silent" = yes &&
5232 ac_config_status_args="$ac_config_status_args --quiet"
5234 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5236 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5237 # would make configure fail if this is the last instruction.
5238 $ac_cs_success || { (exit 1); exit 1; }