re PR java/15715 (member interfaces are always static)
[gcc.git] / boehm-gc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
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
85
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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
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
122 as_myself=$0
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
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 |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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; }; }
177
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="gcj_mlc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LN_S LIBTOOL CXXCPP CPPFLAGS THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE EXTRA_TEST_LIBS target_all target_noncanonical CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests CPP EGREP MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXXCPP_set=${CXXCPP+set}
754 ac_env_CXXCPP_value=$CXXCPP
755 ac_cv_env_CXXCPP_set=${CXXCPP+set}
756 ac_cv_env_CXXCPP_value=$CXXCPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CPP_set=${CPP+set}
762 ac_env_CPP_value=$CPP
763 ac_cv_env_CPP_set=${CPP+set}
764 ac_cv_env_CPP_value=$CPP
765
766 #
767 # Report the --help message.
768 #
769 if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
772 cat <<_ACEOF
773 \`configure' configures this package to adapt to many kinds of systems.
774
775 Usage: $0 [OPTION]... [VAR=VALUE]...
776
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE. See below for descriptions of some of the useful variables.
779
780 Defaults for the options are specified in brackets.
781
782 Configuration:
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
792
793 _ACEOF
794
795 cat <<_ACEOF
796 Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
798 [$ac_default_prefix]
799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 [PREFIX]
801
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
806
807 For better control, use the options below.
808
809 Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
822 _ACEOF
823
824 cat <<\_ACEOF
825
826 Program names:
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830
831 System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839
840 cat <<\_ACEOF
841
842 Optional Features:
843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845 --enable-multilib build many library versions (default)
846 --disable-dependency-tracking speeds up one-time build
847 --enable-dependency-tracking do not reject slow dependency extractors
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-shared=PKGS build shared libraries default=yes
851 --enable-static=PKGS build static libraries default=yes
852 --enable-fast-install=PKGS optimize for fast installation default=yes
853 --disable-libtool-lock avoid locking (might break parallel builds)
854 --enable-parallel-mark parallelize marking and free list construction
855 --enable-full-debug include full support for pointer backtracing etc.
856
857 Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-gnu-ld assume the C compiler uses GNU ld default=no
861 --with-pic try to use only PIC/non-PIC objects default=use both
862 --with-target-subdir=SUBDIR
863 configuring with a cross compiler
864 --with-cross-host=HOST configuring with a cross compiler
865 --with-ecos enable runtime eCos target support
866
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CXX C++ compiler command
875 CXXFLAGS C++ compiler flags
876 CXXCPP C++ preprocessor
877 CPP C preprocessor
878
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
881
882 _ACEOF
883 fi
884
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
887 ac_popdir=`pwd`
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
890 ac_builddir=.
891
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897 ac_dir_suffix= ac_top_builddir=
898 fi
899
900 case $srcdir in
901 .) # No --srcdir option. We are building in place.
902 ac_srcdir=.
903 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=.
905 else
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 fi ;;
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
911 *) # Relative path.
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
915
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
920 *)
921 case "$ac_dir" in
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *)
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
938 *)
939 case $ac_srcdir in
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *)
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 esac;;
953 esac
954
955 cd $ac_dir
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
958 echo
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
961 echo
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
965 echo
966 $ac_configure --help
967 else
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 fi
970 cd "$ac_popdir"
971 done
972 fi
973
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976 cat <<\_ACEOF
977
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
991
992 $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052 for ac_arg
1053 do
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 2)
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1077 ;;
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1080 fi
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1084 ;;
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1098 {
1099 echo
1100
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1108 {
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 ;;
1116 *)
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 ;;
1120 esac;
1121 }
1122 echo
1123
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1131 do
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1136
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150 fi
1151
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1161 fi
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1169 ' 0
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1222 fi
1223 done
1224
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1235 fi
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1240 fi
1241
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1261 *)
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1283 fi
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1291 fi
1292
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318 # This works around the fact that libtool configuration may change LD
1319 # for this particular configuration, but some shells, instead of
1320 # keeping the changes in LD private, export them just because LD is
1321 # exported.
1322 ORIGINAL_LD_FOR_MULTILIBS=$LD
1323
1324 # Default to --enable-multilib
1325 # Check whether --enable-multilib or --disable-multilib was given.
1326 if test "${enable_multilib+set}" = set; then
1327 enableval="$enable_multilib"
1328 case "$enableval" in
1329 yes) multilib=yes ;;
1330 no) multilib=no ;;
1331 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1332 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1333 { (exit 1); exit 1; }; } ;;
1334 esac
1335 else
1336 multilib=yes
1337 fi;
1338
1339 # We may get other options which we leave undocumented:
1340 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1341 # See config-ml.in if you want the gory details.
1342
1343 if test "$srcdir" = "."; then
1344 if test "$with_target_subdir" != "."; then
1345 multi_basedir="$srcdir/$with_multisrctop../.."
1346 else
1347 multi_basedir="$srcdir/$with_multisrctop.."
1348 fi
1349 else
1350 multi_basedir="$srcdir/.."
1351 fi
1352
1353
1354 ac_config_commands="$ac_config_commands default-1"
1355
1356
1357 ac_aux_dir=
1358 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1359 if test -f $ac_dir/install-sh; then
1360 ac_aux_dir=$ac_dir
1361 ac_install_sh="$ac_aux_dir/install-sh -c"
1362 break
1363 elif test -f $ac_dir/install.sh; then
1364 ac_aux_dir=$ac_dir
1365 ac_install_sh="$ac_aux_dir/install.sh -c"
1366 break
1367 elif test -f $ac_dir/shtool; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/shtool install -c"
1370 break
1371 fi
1372 done
1373 if test -z "$ac_aux_dir"; then
1374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1375 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1376 { (exit 1); exit 1; }; }
1377 fi
1378 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1379 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1380 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1381
1382 # Make sure we can run config.sub.
1383 $ac_config_sub sun4 >/dev/null 2>&1 ||
1384 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1385 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1386 { (exit 1); exit 1; }; }
1387
1388 echo "$as_me:$LINENO: checking build system type" >&5
1389 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1390 if test "${ac_cv_build+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393 ac_cv_build_alias=$build_alias
1394 test -z "$ac_cv_build_alias" &&
1395 ac_cv_build_alias=`$ac_config_guess`
1396 test -z "$ac_cv_build_alias" &&
1397 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1398 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1399 { (exit 1); exit 1; }; }
1400 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405 fi
1406 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1407 echo "${ECHO_T}$ac_cv_build" >&6
1408 build=$ac_cv_build
1409 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
1413
1414 echo "$as_me:$LINENO: checking host system type" >&5
1415 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1416 if test "${ac_cv_host+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419 ac_cv_host_alias=$host_alias
1420 test -z "$ac_cv_host_alias" &&
1421 ac_cv_host_alias=$ac_cv_build_alias
1422 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1424 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427 fi
1428 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1429 echo "${ECHO_T}$ac_cv_host" >&6
1430 host=$ac_cv_host
1431 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
1435
1436 echo "$as_me:$LINENO: checking target system type" >&5
1437 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1438 if test "${ac_cv_target+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441 ac_cv_target_alias=$target_alias
1442 test "x$ac_cv_target_alias" = "x" &&
1443 ac_cv_target_alias=$ac_cv_host_alias
1444 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1446 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1447 { (exit 1); exit 1; }; }
1448
1449 fi
1450 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1451 echo "${ECHO_T}$ac_cv_target" >&6
1452 target=$ac_cv_target
1453 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1454 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1455 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1456
1457
1458 # The aliases save the names the user supplied, while $host etc.
1459 # will get canonicalized.
1460 test -n "$target_alias" &&
1461 test "$program_prefix$program_suffix$program_transform_name" = \
1462 NONENONEs,x,x, &&
1463 program_prefix=${target_alias}-
1464
1465 # Get the 'noncanonical' system names.
1466 case ${build_alias} in
1467 "") build_noncanonical=${build} ;;
1468 *) build_noncanonical=${build_alias} ;;
1469 esac
1470
1471 case ${host_alias} in
1472 "") host_noncanonical=${build_noncanonical} ;;
1473 *) host_noncanonical=${host_alias} ;;
1474 esac
1475
1476 case ${target_alias} in
1477 "") target_noncanonical=${host_noncanonical} ;;
1478 *) target_noncanonical=${target_alias} ;;
1479 esac
1480
1481
1482 # This works around an automake problem.
1483 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1484
1485
1486 am__api_version="1.8"
1487 # Find a good install program. We prefer a C program (faster),
1488 # so one script is as good as another. But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1493 # AIX /bin/install
1494 # AmigaOS /C/install, which installs bootblocks on floppy discs
1495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498 # OS/2's system install, which has a completely different semantic
1499 # ./install, which can be erroneously created by make from ./install.sh.
1500 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1501 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1502 if test -z "$INSTALL"; then
1503 if test "${ac_cv_path_install+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 # Account for people who put trailing slashes in PATH elements.
1512 case $as_dir/ in
1513 ./ | .// | /cC/* | \
1514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1515 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1516 /usr/ucb/* ) ;;
1517 *)
1518 # OSF1 and SCO ODT 3.0 have their own names for install.
1519 # Don't use installbsd from OSF since it installs stuff as root
1520 # by default.
1521 for ac_prog in ginstall scoinst install; do
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1524 if test $ac_prog = install &&
1525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1526 # AIX install. It has an incompatible calling convention.
1527 :
1528 elif test $ac_prog = install &&
1529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1530 # program-specific install script used by HP pwplus--don't use.
1531 :
1532 else
1533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1534 break 3
1535 fi
1536 fi
1537 done
1538 done
1539 ;;
1540 esac
1541 done
1542
1543
1544 fi
1545 if test "${ac_cv_path_install+set}" = set; then
1546 INSTALL=$ac_cv_path_install
1547 else
1548 # As a last resort, use the slow shell script. We don't cache a
1549 # path for INSTALL within a source directory, because that will
1550 # break other packages using the cache if that directory is
1551 # removed, or if the path is relative.
1552 INSTALL=$ac_install_sh
1553 fi
1554 fi
1555 echo "$as_me:$LINENO: result: $INSTALL" >&5
1556 echo "${ECHO_T}$INSTALL" >&6
1557
1558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1559 # It thinks the first close brace ends the variable substitution.
1560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1561
1562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1563
1564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1565
1566 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1567 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1568 # Just in case
1569 sleep 1
1570 echo timestamp > conftest.file
1571 # Do `set' in a subshell so we don't clobber the current shell's
1572 # arguments. Must try -L first in case configure is actually a
1573 # symlink; some systems play weird games with the mod time of symlinks
1574 # (eg FreeBSD returns the mod time of the symlink's containing
1575 # directory).
1576 if (
1577 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1578 if test "$*" = "X"; then
1579 # -L didn't work.
1580 set X `ls -t $srcdir/configure conftest.file`
1581 fi
1582 rm -f conftest.file
1583 if test "$*" != "X $srcdir/configure conftest.file" \
1584 && test "$*" != "X conftest.file $srcdir/configure"; then
1585
1586 # If neither matched, then we have a broken ls. This can happen
1587 # if, for instance, CONFIG_SHELL is bash and it inherits a
1588 # broken ls alias from the environment. This has actually
1589 # happened. Such a system could not be considered "sane".
1590 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1591 alias in your environment" >&5
1592 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1593 alias in your environment" >&2;}
1594 { (exit 1); exit 1; }; }
1595 fi
1596
1597 test "$2" = conftest.file
1598 )
1599 then
1600 # Ok.
1601 :
1602 else
1603 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1604 Check your system clock" >&5
1605 echo "$as_me: error: newly created file is older than distributed files!
1606 Check your system clock" >&2;}
1607 { (exit 1); exit 1; }; }
1608 fi
1609 echo "$as_me:$LINENO: result: yes" >&5
1610 echo "${ECHO_T}yes" >&6
1611 test "$program_prefix" != NONE &&
1612 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1613 # Use a double $ so make ignores it.
1614 test "$program_suffix" != NONE &&
1615 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1616 # Double any \ or $. echo might interpret backslashes.
1617 # By default was `s,x,x', remove it if useless.
1618 cat <<\_ACEOF >conftest.sed
1619 s/[\\$]/&&/g;s/;s,x,x,$//
1620 _ACEOF
1621 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1622 rm conftest.sed
1623
1624 # expand $ac_aux_dir to an absolute path
1625 am_aux_dir=`cd $ac_aux_dir && pwd`
1626
1627 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1628 # Use eval to expand $SHELL
1629 if eval "$MISSING --run true"; then
1630 am_missing_run="$MISSING --run "
1631 else
1632 am_missing_run=
1633 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1634 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1635 fi
1636
1637 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1638 # Keeping the `.' argument allows $(mkdir_p) to be used without
1639 # argument. Indeed, we sometimes output rules like
1640 # $(mkdir_p) $(somedir)
1641 # where $(somedir) is conditionally defined.
1642 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1643 # expensive solution, as it forces Make to start a sub-shell.)
1644 mkdir_p='mkdir -p -- .'
1645 else
1646 # On NextStep and OpenStep, the `mkdir' command does not
1647 # recognize any option. It will interpret all options as
1648 # directories to create, and then abort because `.' already
1649 # exists.
1650 for d in ./-p ./--version;
1651 do
1652 test -d $d && rmdir $d
1653 done
1654 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1655 if test -f "$ac_aux_dir/mkinstalldirs"; then
1656 mkdir_p='$(mkinstalldirs)'
1657 else
1658 mkdir_p='$(install_sh) -d'
1659 fi
1660 fi
1661
1662 for ac_prog in gawk mawk nawk awk
1663 do
1664 # Extract the first word of "$ac_prog", so it can be a program name with args.
1665 set dummy $ac_prog; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_AWK+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671 if test -n "$AWK"; then
1672 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_AWK="$ac_prog"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 break 2
1684 fi
1685 done
1686 done
1687
1688 fi
1689 fi
1690 AWK=$ac_cv_prog_AWK
1691 if test -n "$AWK"; then
1692 echo "$as_me:$LINENO: result: $AWK" >&5
1693 echo "${ECHO_T}$AWK" >&6
1694 else
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699 test -n "$AWK" && break
1700 done
1701
1702 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1703 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1704 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1705 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 cat >conftest.make <<\_ACEOF
1709 all:
1710 @echo 'ac_maketemp="$(MAKE)"'
1711 _ACEOF
1712 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1713 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1714 if test -n "$ac_maketemp"; then
1715 eval ac_cv_prog_make_${ac_make}_set=yes
1716 else
1717 eval ac_cv_prog_make_${ac_make}_set=no
1718 fi
1719 rm -f conftest.make
1720 fi
1721 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1722 echo "$as_me:$LINENO: result: yes" >&5
1723 echo "${ECHO_T}yes" >&6
1724 SET_MAKE=
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 SET_MAKE="MAKE=${MAKE-make}"
1729 fi
1730
1731 rm -rf .tst 2>/dev/null
1732 mkdir .tst 2>/dev/null
1733 if test -d .tst; then
1734 am__leading_dot=.
1735 else
1736 am__leading_dot=_
1737 fi
1738 rmdir .tst 2>/dev/null
1739
1740 # test to see if srcdir already configured
1741 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1742 test -f $srcdir/config.status; then
1743 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1744 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1745 { (exit 1); exit 1; }; }
1746 fi
1747
1748 # test whether we have cygpath
1749 if test -z "$CYGPATH_W"; then
1750 if (cygpath --version) >/dev/null 2>/dev/null; then
1751 CYGPATH_W='cygpath -w'
1752 else
1753 CYGPATH_W=echo
1754 fi
1755 fi
1756
1757
1758 # Define the identity of the package.
1759 PACKAGE=gc
1760 VERSION=6.1a1
1761
1762
1763 # Some tools Automake needs.
1764
1765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1766
1767
1768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1769
1770
1771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1772
1773
1774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1775
1776
1777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1778
1779
1780 AMTAR=${AMTAR-"${am_missing_run}tar"}
1781
1782 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1783
1784 # Installed binaries are usually stripped using `strip' when the user
1785 # run `make install-strip'. However `strip' might not be the right
1786 # tool to use in cross-compilation environments, therefore Automake
1787 # will honor the `STRIP' environment variable to overrule this program.
1788 if test "$cross_compiling" != no; then
1789 if test -n "$ac_tool_prefix"; then
1790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1791 set dummy ${ac_tool_prefix}strip; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_STRIP+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 if test -n "$STRIP"; then
1798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1810 fi
1811 done
1812 done
1813
1814 fi
1815 fi
1816 STRIP=$ac_cv_prog_STRIP
1817 if test -n "$STRIP"; then
1818 echo "$as_me:$LINENO: result: $STRIP" >&5
1819 echo "${ECHO_T}$STRIP" >&6
1820 else
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823 fi
1824
1825 fi
1826 if test -z "$ac_cv_prog_STRIP"; then
1827 ac_ct_STRIP=$STRIP
1828 # Extract the first word of "strip", so it can be a program name with args.
1829 set dummy strip; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$ac_ct_STRIP"; then
1836 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_ac_ct_STRIP="strip"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1848 fi
1849 done
1850 done
1851
1852 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1853 fi
1854 fi
1855 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1856 if test -n "$ac_ct_STRIP"; then
1857 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1858 echo "${ECHO_T}$ac_ct_STRIP" >&6
1859 else
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864 STRIP=$ac_ct_STRIP
1865 else
1866 STRIP="$ac_cv_prog_STRIP"
1867 fi
1868
1869 fi
1870 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1871
1872 # We need awk for the "check" target. The system "awk" is bad on
1873 # some platforms.
1874
1875
1876
1877
1878 # The autoconf 2.5x version of the no-executables hack.
1879 # GCC_NO_EXECUTABLES
1880 # -----------------
1881 # FIXME: The GCC team has specific needs which the current Autoconf
1882 # framework cannot solve elegantly. This macro implements a dirty
1883 # hack until Autoconf is able to provide the services its users
1884 # need.
1885 #
1886 # Several of the support libraries that are often built with GCC can't
1887 # assume the tool-chain is already capable of linking a program: the
1888 # compiler often expects to be able to link with some of such
1889 # libraries.
1890 #
1891 # In several of these libraries, workarounds have been introduced to
1892 # avoid the AC_PROG_CC_WORKS test, that would just abort their
1893 # configuration. The introduction of AC_EXEEXT, enabled either by
1894 # libtool or by CVS autoconf, have just made matters worse.
1895 #
1896 # Unlike the previous AC_NO_EXECUTABLES, this test does not
1897 # disable link tests at autoconf time, but at configure time.
1898 # This allows AC_NO_EXECUTABLES to be invoked conditionally.
1899 # GCC_NO_EXECUTABLES
1900
1901
1902
1903 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
1904 # the wrong, non-multilib-adjusted value will be used in multilibs.
1905 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
1906
1907
1908
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 if test -n "$ac_tool_prefix"; then
1915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 if test -n "$CC"; then
1923 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936 done
1937 done
1938
1939 fi
1940 fi
1941 CC=$ac_cv_prog_CC
1942 if test -n "$CC"; then
1943 echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6
1945 else
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948 fi
1949
1950 fi
1951 if test -z "$ac_cv_prog_CC"; then
1952 ac_ct_CC=$CC
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_ac_ct_CC="gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974 done
1975 done
1976
1977 fi
1978 fi
1979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1980 if test -n "$ac_ct_CC"; then
1981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1982 echo "${ECHO_T}$ac_ct_CC" >&6
1983 else
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988 CC=$ac_ct_CC
1989 else
1990 CC="$ac_cv_prog_CC"
1991 fi
1992
1993 if test -z "$CC"; then
1994 if test -n "$ac_tool_prefix"; then
1995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1996 set dummy ${ac_tool_prefix}cc; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002 if test -n "$CC"; then
2003 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_CC="${ac_tool_prefix}cc"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 break 2
2015 fi
2016 done
2017 done
2018
2019 fi
2020 fi
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2025 else
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030 fi
2031 if test -z "$ac_cv_prog_CC"; then
2032 ac_ct_CC=$CC
2033 # Extract the first word of "cc", so it can be a program name with args.
2034 set dummy cc; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 if test -n "$ac_ct_CC"; then
2041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_ac_ct_CC="cc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054 done
2055 done
2056
2057 fi
2058 fi
2059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2060 if test -n "$ac_ct_CC"; then
2061 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2062 echo "${ECHO_T}$ac_ct_CC" >&6
2063 else
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2067
2068 CC=$ac_ct_CC
2069 else
2070 CC="$ac_cv_prog_CC"
2071 fi
2072
2073 fi
2074 if test -z "$CC"; then
2075 # Extract the first word of "cc", so it can be a program name with args.
2076 set dummy cc; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 else
2085 ac_prog_rejected=no
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2094 ac_prog_rejected=yes
2095 continue
2096 fi
2097 ac_cv_prog_CC="cc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2100 fi
2101 done
2102 done
2103
2104 if test $ac_prog_rejected = yes; then
2105 # We found a bogon in the path, so make sure we never use it.
2106 set dummy $ac_cv_prog_CC
2107 shift
2108 if test $# != 0; then
2109 # We chose a different compiler from the bogus one.
2110 # However, it has the same basename, so the bogon will be chosen
2111 # first if we set CC to just the basename; use the full file name.
2112 shift
2113 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2114 fi
2115 fi
2116 fi
2117 fi
2118 CC=$ac_cv_prog_CC
2119 if test -n "$CC"; then
2120 echo "$as_me:$LINENO: result: $CC" >&5
2121 echo "${ECHO_T}$CC" >&6
2122 else
2123 echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2125 fi
2126
2127 fi
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 for ac_prog in cl
2131 do
2132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2152 fi
2153 done
2154 done
2155
2156 fi
2157 fi
2158 CC=$ac_cv_prog_CC
2159 if test -n "$CC"; then
2160 echo "$as_me:$LINENO: result: $CC" >&5
2161 echo "${ECHO_T}$CC" >&6
2162 else
2163 echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6
2165 fi
2166
2167 test -n "$CC" && break
2168 done
2169 fi
2170 if test -z "$CC"; then
2171 ac_ct_CC=$CC
2172 for ac_prog in cl
2173 do
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175 set dummy $ac_prog; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$ac_ct_CC"; then
2182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 ac_cv_prog_ac_ct_CC="$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195 done
2196 done
2197
2198 fi
2199 fi
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6
2204 else
2205 echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2207 fi
2208
2209 test -n "$ac_ct_CC" && break
2210 done
2211
2212 CC=$ac_ct_CC
2213 fi
2214
2215 fi
2216
2217
2218 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: no acceptable C compiler found in \$PATH
2221 See \`config.log' for more details." >&2;}
2222 { (exit 1); exit 1; }; }
2223
2224 # Provide some information about the compiler.
2225 echo "$as_me:$LINENO:" \
2226 "checking for C compiler version" >&5
2227 ac_compiler=`set X $ac_compile; echo $2`
2228 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2229 (eval $ac_compiler --version </dev/null >&5) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2234 (eval $ac_compiler -v </dev/null >&5) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }
2238 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2239 (eval $ac_compiler -V </dev/null >&5) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243
2244 cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h. */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2250
2251 int
2252 main ()
2253 {
2254
2255 ;
2256 return 0;
2257 }
2258 _ACEOF
2259 # FIXME: Cleanup?
2260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2261 (eval $ac_link) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 gcc_no_link=no
2266 else
2267 gcc_no_link=yes
2268 fi
2269
2270 if test x$gcc_no_link = xyes; then
2271 # Setting cross_compile will disable run tests; it will
2272 # also disable AC_CHECK_FILE but that's generally
2273 # correct if we can't link.
2274 cross_compiling=yes
2275 EXEEXT=
2276 else
2277 cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2283
2284 int
2285 main ()
2286 {
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 ac_clean_files_save=$ac_clean_files
2293 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2294 # Try to create an executable without -o first, disregard a.out.
2295 # It will help us diagnose broken compilers, and finding out an intuition
2296 # of exeext.
2297 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2298 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2300 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2301 (eval $ac_link_default) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Find the output, starting from the most likely. This scheme is
2306 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2307 # resort.
2308
2309 # Be careful to initialize this variable, since it used to be cached.
2310 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2311 ac_cv_exeext=
2312 # b.out is created by i960 compilers.
2313 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2314 do
2315 test -f "$ac_file" || continue
2316 case $ac_file in
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2318 ;;
2319 conftest.$ac_ext )
2320 # This is the source file.
2321 ;;
2322 [ab].out )
2323 # We found the default executable, but exeext='' is most
2324 # certainly right.
2325 break;;
2326 *.* )
2327 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 # FIXME: I believe we export ac_cv_exeext for Libtool,
2329 # but it would be cool to find out if it's true. Does anybody
2330 # maintain Libtool? --akim.
2331 export ac_cv_exeext
2332 break;;
2333 * )
2334 break;;
2335 esac
2336 done
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: C compiler cannot create executables
2344 See \`config.log' for more details." >&2;}
2345 { (exit 77); exit 77; }; }
2346 fi
2347
2348 ac_exeext=$ac_cv_exeext
2349 echo "$as_me:$LINENO: result: $ac_file" >&5
2350 echo "${ECHO_T}$ac_file" >&6
2351
2352 # Check the compiler produces executables we can run. If not, either
2353 # the compiler is broken, or we cross compile.
2354 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2355 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2356 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2357 # If not cross compiling, check that we can run a simple program.
2358 if test "$cross_compiling" != yes; then
2359 if { ac_try='./$ac_file'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 cross_compiling=no
2366 else
2367 if test "$cross_compiling" = maybe; then
2368 cross_compiling=yes
2369 else
2370 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2371 If you meant to cross compile, use \`--host'.
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot run C compiled programs.
2374 If you meant to cross compile, use \`--host'.
2375 See \`config.log' for more details." >&2;}
2376 { (exit 1); exit 1; }; }
2377 fi
2378 fi
2379 fi
2380 echo "$as_me:$LINENO: result: yes" >&5
2381 echo "${ECHO_T}yes" >&6
2382
2383 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2384 ac_clean_files=$ac_clean_files_save
2385 # Check the compiler produces executables we can run. If not, either
2386 # the compiler is broken, or we cross compile.
2387 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2388 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2389 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2390 echo "${ECHO_T}$cross_compiling" >&6
2391
2392 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2393 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2401 # work properly (i.e., refer to `conftest.exe'), while it won't with
2402 # `rm'.
2403 for ac_file in conftest.exe conftest conftest.*; do
2404 test -f "$ac_file" || continue
2405 case $ac_file in
2406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408 export ac_cv_exeext
2409 break;;
2410 * ) break;;
2411 esac
2412 done
2413 else
2414 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2419 fi
2420
2421 rm -f conftest$ac_cv_exeext
2422 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2423 echo "${ECHO_T}$ac_cv_exeext" >&6
2424
2425 rm -f conftest.$ac_ext
2426 EXEEXT=$ac_cv_exeext
2427 ac_exeext=$EXEEXT
2428 fi
2429 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2430 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2431 if test "${ac_cv_objext+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2440
2441 int
2442 main ()
2443 {
2444
2445 ;
2446 return 0;
2447 }
2448 _ACEOF
2449 rm -f conftest.o conftest.obj
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2456 case $ac_file in
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2458 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2459 break;;
2460 esac
2461 done
2462 else
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2471 fi
2472
2473 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2474 fi
2475 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2476 echo "${ECHO_T}$ac_cv_objext" >&6
2477 OBJEXT=$ac_cv_objext
2478 ac_objext=$OBJEXT
2479 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2480 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2481 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490
2491 int
2492 main ()
2493 {
2494 #ifndef __GNUC__
2495 choke me
2496 #endif
2497
2498 ;
2499 return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_compiler_gnu=yes
2524 else
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2527
2528 ac_compiler_gnu=no
2529 fi
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2532
2533 fi
2534 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2535 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2536 GCC=`test $ac_compiler_gnu = yes && echo yes`
2537 ac_test_CFLAGS=${CFLAGS+set}
2538 ac_save_CFLAGS=$CFLAGS
2539 CFLAGS="-g"
2540 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2541 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2542 if test "${ac_cv_prog_cc_g+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2551
2552 int
2553 main ()
2554 {
2555
2556 ;
2557 return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>conftest.er1
2563 ac_status=$?
2564 grep -v '^ *+' conftest.er1 >conftest.err
2565 rm -f conftest.er1
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_cv_prog_cc_g=yes
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 ac_cv_prog_cc_g=no
2587 fi
2588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589 fi
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2596 CFLAGS="-g -O2"
2597 else
2598 CFLAGS="-g"
2599 fi
2600 else
2601 if test "$GCC" = yes; then
2602 CFLAGS="-O2"
2603 else
2604 CFLAGS=
2605 fi
2606 fi
2607 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 ac_cv_prog_cc_stdc=no
2613 ac_save_CC=$CC
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620 #include <stdarg.h>
2621 #include <stdio.h>
2622 #include <sys/types.h>
2623 #include <sys/stat.h>
2624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625 struct buf { int x; };
2626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2628 char **p;
2629 int i;
2630 {
2631 return p[i];
2632 }
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2634 {
2635 char *s;
2636 va_list v;
2637 va_start (v,p);
2638 s = g (p, va_arg (v,int));
2639 va_end (v);
2640 return s;
2641 }
2642
2643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644 function prototypes and stuff, but not '\xHH' hex character constants.
2645 These don't provoke an error unfortunately, instead are silently treated
2646 as 'x'. The following induces an error, until -std1 is added to get
2647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2648 array size at least. It's necessary to write '\x00'==0 to get something
2649 that's true only with -std1. */
2650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2651
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2656 int argc;
2657 char **argv;
2658 int
2659 main ()
2660 {
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 # Don't try gcc -ansi; that turns off useful extensions and
2667 # breaks some systems' header files.
2668 # AIX -qlanglvl=ansi
2669 # Ultrix and OSF/1 -std1
2670 # HP-UX 10.20 and later -Ae
2671 # HP-UX older versions -Aa -D_HPUX_SOURCE
2672 # SVR4 -Xc -D__EXTENSIONS__
2673 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2674 do
2675 CC="$ac_save_CC $ac_arg"
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2679 ac_status=$?
2680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; } &&
2691 { ac_try='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 ac_cv_prog_cc_stdc=$ac_arg
2698 break
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2702
2703 fi
2704 rm -f conftest.err conftest.$ac_objext
2705 done
2706 rm -f conftest.$ac_ext conftest.$ac_objext
2707 CC=$ac_save_CC
2708
2709 fi
2710
2711 case "x$ac_cv_prog_cc_stdc" in
2712 x|xno)
2713 echo "$as_me:$LINENO: result: none needed" >&5
2714 echo "${ECHO_T}none needed" >&6 ;;
2715 *)
2716 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2717 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2718 CC="$CC $ac_cv_prog_cc_stdc" ;;
2719 esac
2720
2721 # Some people use a C++ compiler to compile C. Since we use `exit',
2722 # in C++ we need to declare it. In case someone uses the same compiler
2723 # for both compiling C and C++ we need to have the C++ compiler decide
2724 # the declaration of exit, since it's the most demanding environment.
2725 cat >conftest.$ac_ext <<_ACEOF
2726 #ifndef __cplusplus
2727 choke me
2728 #endif
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 for ac_declaration in \
2752 '' \
2753 'extern "C" void std::exit (int) throw (); using std::exit;' \
2754 'extern "C" void std::exit (int); using std::exit;' \
2755 'extern "C" void exit (int) throw ();' \
2756 'extern "C" void exit (int);' \
2757 'void exit (int);'
2758 do
2759 cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h. */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2765 $ac_declaration
2766 #include <stdlib.h>
2767 int
2768 main ()
2769 {
2770 exit (42);
2771 ;
2772 return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2796 :
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 continue
2802 fi
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2810 $ac_declaration
2811 int
2812 main ()
2813 {
2814 exit (42);
2815 ;
2816 return 0;
2817 }
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 break
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 fi
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 done
2848 rm -f conftest*
2849 if test -n "$ac_declaration"; then
2850 echo '#ifdef __cplusplus' >>confdefs.h
2851 echo $ac_declaration >>confdefs.h
2852 echo '#endif' >>confdefs.h
2853 fi
2854
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 fi
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 DEPDIR="${am__leading_dot}deps"
2867
2868 ac_config_commands="$ac_config_commands depfiles"
2869
2870
2871 am_make=${MAKE-make}
2872 cat > confinc << 'END'
2873 am__doit:
2874 @echo done
2875 .PHONY: am__doit
2876 END
2877 # If we don't find an include directive, just comment out the code.
2878 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2879 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2880 am__include="#"
2881 am__quote=
2882 _am_result=none
2883 # First try GNU make style include.
2884 echo "include confinc" > confmf
2885 # We grep out `Entering directory' and `Leaving directory'
2886 # messages which can occur if `w' ends up in MAKEFLAGS.
2887 # In particular we don't look at `^make:' because GNU make might
2888 # be invoked under some other name (usually "gmake"), in which
2889 # case it prints its new name instead of `make'.
2890 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2891 am__include=include
2892 am__quote=
2893 _am_result=GNU
2894 fi
2895 # Now try BSD make style include.
2896 if test "$am__include" = "#"; then
2897 echo '.include "confinc"' > confmf
2898 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2899 am__include=.include
2900 am__quote="\""
2901 _am_result=BSD
2902 fi
2903 fi
2904
2905
2906 echo "$as_me:$LINENO: result: $_am_result" >&5
2907 echo "${ECHO_T}$_am_result" >&6
2908 rm -f confinc confmf
2909
2910 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2911 if test "${enable_dependency_tracking+set}" = set; then
2912 enableval="$enable_dependency_tracking"
2913
2914 fi;
2915 if test "x$enable_dependency_tracking" != xno; then
2916 am_depcomp="$ac_aux_dir/depcomp"
2917 AMDEPBACKSLASH='\'
2918 fi
2919
2920
2921 if test "x$enable_dependency_tracking" != xno; then
2922 AMDEP_TRUE=
2923 AMDEP_FALSE='#'
2924 else
2925 AMDEP_TRUE='#'
2926 AMDEP_FALSE=
2927 fi
2928
2929
2930
2931
2932 depcc="$CC" am_compiler_list=
2933
2934 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940 # We make a subdir and do the tests there. Otherwise we can end up
2941 # making bogus files that we don't know about and never remove. For
2942 # instance it was reported that on HP-UX the gcc test will end up
2943 # making a dummy file named `D' -- because `-MD' means `put the output
2944 # in D'.
2945 mkdir conftest.dir
2946 # Copy depcomp to subdir because otherwise we won't find it if we're
2947 # using a relative directory.
2948 cp "$am_depcomp" conftest.dir
2949 cd conftest.dir
2950 # We will build objects and dependencies in a subdirectory because
2951 # it helps to detect inapplicable dependency modes. For instance
2952 # both Tru64's cc and ICC support -MD to output dependencies as a
2953 # side effect of compilation, but ICC will put the dependencies in
2954 # the current directory while Tru64 will put them in the object
2955 # directory.
2956 mkdir sub
2957
2958 am_cv_CC_dependencies_compiler_type=none
2959 if test "$am_compiler_list" = ""; then
2960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2961 fi
2962 for depmode in $am_compiler_list; do
2963 # Setup a source with many dependencies, because some compilers
2964 # like to wrap large dependency lists on column 80 (with \), and
2965 # we should not choose a depcomp mode which is confused by this.
2966 #
2967 # We need to recreate these files for each test, as the compiler may
2968 # overwrite some of them when testing with obscure command lines.
2969 # This happens at least with the AIX C compiler.
2970 : > sub/conftest.c
2971 for i in 1 2 3 4 5 6; do
2972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2974 # Solaris 8's {/usr,}/bin/sh.
2975 touch sub/conftst$i.h
2976 done
2977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2978
2979 case $depmode in
2980 nosideeffect)
2981 # after this tag, mechanisms are not by side-effect, so they'll
2982 # only be used when explicitly requested
2983 if test "x$enable_dependency_tracking" = xyes; then
2984 continue
2985 else
2986 break
2987 fi
2988 ;;
2989 none) break ;;
2990 esac
2991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2992 # mode. It turns out that the SunPro C++ compiler does not properly
2993 # handle `-M -o', and we need to detect this.
2994 if depmode=$depmode \
2995 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2997 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2998 >/dev/null 2>conftest.err &&
2999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3000 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3002 # icc doesn't choke on unknown options, it will just issue warnings
3003 # or remarks (even with -Werror). So we grep stderr for any message
3004 # that says an option was ignored or not supported.
3005 # When given -MP, icc 7.0 and 7.1 complain thusly:
3006 # icc: Command line warning: ignoring option '-M'; no argument required
3007 # The diagnosis changed in icc 8.0:
3008 # icc: Command line remark: option '-MP' not supported
3009 if (grep 'ignoring option' conftest.err ||
3010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3011 am_cv_CC_dependencies_compiler_type=$depmode
3012 break
3013 fi
3014 fi
3015 done
3016
3017 cd ..
3018 rm -rf conftest.dir
3019 else
3020 am_cv_CC_dependencies_compiler_type=none
3021 fi
3022
3023 fi
3024 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3027
3028
3029
3030 if
3031 test "x$enable_dependency_tracking" != xno \
3032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3033 am__fastdepCC_TRUE=
3034 am__fastdepCC_FALSE='#'
3035 else
3036 am__fastdepCC_TRUE='#'
3037 am__fastdepCC_FALSE=
3038 fi
3039
3040
3041 ac_ext=cc
3042 ac_cpp='$CXXCPP $CPPFLAGS'
3043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3046 if test -n "$ac_tool_prefix"; then
3047 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3048 do
3049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3051 echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3053 if test "${ac_cv_prog_CXX+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 if test -n "$CXX"; then
3057 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072
3073 fi
3074 fi
3075 CXX=$ac_cv_prog_CXX
3076 if test -n "$CXX"; then
3077 echo "$as_me:$LINENO: result: $CXX" >&5
3078 echo "${ECHO_T}$CXX" >&6
3079 else
3080 echo "$as_me:$LINENO: result: no" >&5
3081 echo "${ECHO_T}no" >&6
3082 fi
3083
3084 test -n "$CXX" && break
3085 done
3086 fi
3087 if test -z "$CXX"; then
3088 ac_ct_CXX=$CXX
3089 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3090 do
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3095 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098 if test -n "$ac_ct_CXX"; then
3099 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_ac_ct_CXX="$ac_prog"
3109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114
3115 fi
3116 fi
3117 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3118 if test -n "$ac_ct_CXX"; then
3119 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3120 echo "${ECHO_T}$ac_ct_CXX" >&6
3121 else
3122 echo "$as_me:$LINENO: result: no" >&5
3123 echo "${ECHO_T}no" >&6
3124 fi
3125
3126 test -n "$ac_ct_CXX" && break
3127 done
3128 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3129
3130 CXX=$ac_ct_CXX
3131 fi
3132
3133
3134 # Provide some information about the compiler.
3135 echo "$as_me:$LINENO:" \
3136 "checking for C++ compiler version" >&5
3137 ac_compiler=`set X $ac_compile; echo $2`
3138 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3139 (eval $ac_compiler --version </dev/null >&5) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3144 (eval $ac_compiler -v </dev/null >&5) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3149 (eval $ac_compiler -V </dev/null >&5) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3153
3154 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3155 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3156 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3165
3166 int
3167 main ()
3168 {
3169 #ifndef __GNUC__
3170 choke me
3171 #endif
3172
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3179 (eval $ac_compile) 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_compiler_gnu=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 ac_compiler_gnu=no
3204 fi
3205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3207
3208 fi
3209 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3210 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3211 GXX=`test $ac_compiler_gnu = yes && echo yes`
3212 ac_test_CXXFLAGS=${CXXFLAGS+set}
3213 ac_save_CXXFLAGS=$CXXFLAGS
3214 CXXFLAGS="-g"
3215 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3216 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3217 if test "${ac_cv_prog_cxx_g+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226
3227 int
3228 main ()
3229 {
3230
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_prog_cxx_g=yes
3257 else
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 ac_cv_prog_cxx_g=no
3262 fi
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 fi
3265 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3267 if test "$ac_test_CXXFLAGS" = set; then
3268 CXXFLAGS=$ac_save_CXXFLAGS
3269 elif test $ac_cv_prog_cxx_g = yes; then
3270 if test "$GXX" = yes; then
3271 CXXFLAGS="-g -O2"
3272 else
3273 CXXFLAGS="-g"
3274 fi
3275 else
3276 if test "$GXX" = yes; then
3277 CXXFLAGS="-O2"
3278 else
3279 CXXFLAGS=
3280 fi
3281 fi
3282 for ac_declaration in \
3283 '' \
3284 'extern "C" void std::exit (int) throw (); using std::exit;' \
3285 'extern "C" void std::exit (int); using std::exit;' \
3286 'extern "C" void exit (int) throw ();' \
3287 'extern "C" void exit (int);' \
3288 'void exit (int);'
3289 do
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3296 $ac_declaration
3297 #include <stdlib.h>
3298 int
3299 main ()
3300 {
3301 exit (42);
3302 ;
3303 return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try='test -s conftest.$ac_objext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 :
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 continue
3333 fi
3334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 $ac_declaration
3342 int
3343 main ()
3344 {
3345 exit (42);
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352 (eval $ac_compile) 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 break
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 fi
3377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3378 done
3379 rm -f conftest*
3380 if test -n "$ac_declaration"; then
3381 echo '#ifdef __cplusplus' >>confdefs.h
3382 echo $ac_declaration >>confdefs.h
3383 echo '#endif' >>confdefs.h
3384 fi
3385
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392 depcc="$CXX" am_compiler_list=
3393
3394 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3395 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3396 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3400 # We make a subdir and do the tests there. Otherwise we can end up
3401 # making bogus files that we don't know about and never remove. For
3402 # instance it was reported that on HP-UX the gcc test will end up
3403 # making a dummy file named `D' -- because `-MD' means `put the output
3404 # in D'.
3405 mkdir conftest.dir
3406 # Copy depcomp to subdir because otherwise we won't find it if we're
3407 # using a relative directory.
3408 cp "$am_depcomp" conftest.dir
3409 cd conftest.dir
3410 # We will build objects and dependencies in a subdirectory because
3411 # it helps to detect inapplicable dependency modes. For instance
3412 # both Tru64's cc and ICC support -MD to output dependencies as a
3413 # side effect of compilation, but ICC will put the dependencies in
3414 # the current directory while Tru64 will put them in the object
3415 # directory.
3416 mkdir sub
3417
3418 am_cv_CXX_dependencies_compiler_type=none
3419 if test "$am_compiler_list" = ""; then
3420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3421 fi
3422 for depmode in $am_compiler_list; do
3423 # Setup a source with many dependencies, because some compilers
3424 # like to wrap large dependency lists on column 80 (with \), and
3425 # we should not choose a depcomp mode which is confused by this.
3426 #
3427 # We need to recreate these files for each test, as the compiler may
3428 # overwrite some of them when testing with obscure command lines.
3429 # This happens at least with the AIX C compiler.
3430 : > sub/conftest.c
3431 for i in 1 2 3 4 5 6; do
3432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3433 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3434 # Solaris 8's {/usr,}/bin/sh.
3435 touch sub/conftst$i.h
3436 done
3437 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3438
3439 case $depmode in
3440 nosideeffect)
3441 # after this tag, mechanisms are not by side-effect, so they'll
3442 # only be used when explicitly requested
3443 if test "x$enable_dependency_tracking" = xyes; then
3444 continue
3445 else
3446 break
3447 fi
3448 ;;
3449 none) break ;;
3450 esac
3451 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3452 # mode. It turns out that the SunPro C++ compiler does not properly
3453 # handle `-M -o', and we need to detect this.
3454 if depmode=$depmode \
3455 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3456 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3457 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3458 >/dev/null 2>conftest.err &&
3459 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3460 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3461 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3462 # icc doesn't choke on unknown options, it will just issue warnings
3463 # or remarks (even with -Werror). So we grep stderr for any message
3464 # that says an option was ignored or not supported.
3465 # When given -MP, icc 7.0 and 7.1 complain thusly:
3466 # icc: Command line warning: ignoring option '-M'; no argument required
3467 # The diagnosis changed in icc 8.0:
3468 # icc: Command line remark: option '-MP' not supported
3469 if (grep 'ignoring option' conftest.err ||
3470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3471 am_cv_CXX_dependencies_compiler_type=$depmode
3472 break
3473 fi
3474 fi
3475 done
3476
3477 cd ..
3478 rm -rf conftest.dir
3479 else
3480 am_cv_CXX_dependencies_compiler_type=none
3481 fi
3482
3483 fi
3484 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3485 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3486 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3487
3488
3489
3490 if
3491 test "x$enable_dependency_tracking" != xno \
3492 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3493 am__fastdepCXX_TRUE=
3494 am__fastdepCXX_FALSE='#'
3495 else
3496 am__fastdepCXX_TRUE='#'
3497 am__fastdepCXX_FALSE=
3498 fi
3499
3500
3501
3502
3503 if test "x$CC" != xcc; then
3504 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3505 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3506 else
3507 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3508 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3509 fi
3510 set dummy $CC; ac_cc=`echo $2 |
3511 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3512 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 # Make sure it works both with $CC and with simple cc.
3531 # We do the test twice because some compilers refuse to overwrite an
3532 # existing .o file with -o, though they will create one.
3533 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3534 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); };
3544 then
3545 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3546 if test "x$CC" != xcc; then
3547 # Test first that cc exists at all.
3548 if { ac_try='cc -c conftest.$ac_ext >&5'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 (eval $ac_try) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3554 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3555 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); };
3565 then
3566 # cc works too.
3567 :
3568 else
3569 # cc exists but doesn't like -o.
3570 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3571 fi
3572 fi
3573 fi
3574 else
3575 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3576 fi
3577 rm -f conftest*
3578
3579 fi
3580 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3581 echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6
3583 else
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586
3587 cat >>confdefs.h <<\_ACEOF
3588 #define NO_MINUS_C_MINUS_O 1
3589 _ACEOF
3590
3591 fi
3592
3593 # FIXME: we rely on the cache variable name because
3594 # there is no other way.
3595 set dummy $CC
3596 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3597 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3598 # Losing compiler, so override with the script.
3599 # FIXME: It is wrong to rewrite CC.
3600 # But if we don't then we get into trouble of one sort or another.
3601 # A longer-term fix would be to have automake use am__CC in this case,
3602 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3603 CC="$am_aux_dir/compile $CC"
3604 fi
3605
3606
3607
3608
3609
3610 # Newer automakes demand CCAS and CCASFLAGS.
3611 : ${CCAS='$(CC)'}
3612 : ${CCASFLAGS='$(CFLAGS)'}
3613
3614
3615
3616 if test -n "$ac_tool_prefix"; then
3617 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3618 set dummy ${ac_tool_prefix}as; ac_word=$2
3619 echo "$as_me:$LINENO: checking for $ac_word" >&5
3620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621 if test "${ac_cv_prog_AS+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 if test -n "$AS"; then
3625 ac_cv_prog_AS="$AS" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_AS="${ac_tool_prefix}as"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3637 fi
3638 done
3639 done
3640
3641 fi
3642 fi
3643 AS=$ac_cv_prog_AS
3644 if test -n "$AS"; then
3645 echo "$as_me:$LINENO: result: $AS" >&5
3646 echo "${ECHO_T}$AS" >&6
3647 else
3648 echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3650 fi
3651
3652 fi
3653 if test -z "$ac_cv_prog_AS"; then
3654 ac_ct_AS=$AS
3655 # Extract the first word of "as", so it can be a program name with args.
3656 set dummy as; ac_word=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 if test -n "$ac_ct_AS"; then
3663 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_ac_ct_AS="as"
3673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678
3679 fi
3680 fi
3681 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3682 if test -n "$ac_ct_AS"; then
3683 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3684 echo "${ECHO_T}$ac_ct_AS" >&6
3685 else
3686 echo "$as_me:$LINENO: result: no" >&5
3687 echo "${ECHO_T}no" >&6
3688 fi
3689
3690 AS=$ac_ct_AS
3691 else
3692 AS="$ac_cv_prog_AS"
3693 fi
3694
3695 if test -n "$ac_tool_prefix"; then
3696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3697 set dummy ${ac_tool_prefix}ar; ac_word=$2
3698 echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_prog_AR+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 if test -n "$AR"; then
3704 ac_cv_prog_AR="$AR" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_AR="${ac_tool_prefix}ar"
3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717 done
3718 done
3719
3720 fi
3721 fi
3722 AR=$ac_cv_prog_AR
3723 if test -n "$AR"; then
3724 echo "$as_me:$LINENO: result: $AR" >&5
3725 echo "${ECHO_T}$AR" >&6
3726 else
3727 echo "$as_me:$LINENO: result: no" >&5
3728 echo "${ECHO_T}no" >&6
3729 fi
3730
3731 fi
3732 if test -z "$ac_cv_prog_AR"; then
3733 ac_ct_AR=$AR
3734 # Extract the first word of "ar", so it can be a program name with args.
3735 set dummy ar; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 if test -n "$ac_ct_AR"; then
3742 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_ac_ct_AR="ar"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3754 fi
3755 done
3756 done
3757
3758 fi
3759 fi
3760 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3761 if test -n "$ac_ct_AR"; then
3762 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3763 echo "${ECHO_T}$ac_ct_AR" >&6
3764 else
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3767 fi
3768
3769 AR=$ac_ct_AR
3770 else
3771 AR="$ac_cv_prog_AR"
3772 fi
3773
3774 if test -n "$ac_tool_prefix"; then
3775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3777 echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3779 if test "${ac_cv_prog_RANLIB+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 if test -n "$RANLIB"; then
3783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3787 do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3795 fi
3796 done
3797 done
3798
3799 fi
3800 fi
3801 RANLIB=$ac_cv_prog_RANLIB
3802 if test -n "$RANLIB"; then
3803 echo "$as_me:$LINENO: result: $RANLIB" >&5
3804 echo "${ECHO_T}$RANLIB" >&6
3805 else
3806 echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6
3808 fi
3809
3810 fi
3811 if test -z "$ac_cv_prog_RANLIB"; then
3812 ac_ct_RANLIB=$RANLIB
3813 # Extract the first word of "ranlib", so it can be a program name with args.
3814 set dummy ranlib; ac_word=$2
3815 echo "$as_me:$LINENO: checking for $ac_word" >&5
3816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3817 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 if test -n "$ac_ct_RANLIB"; then
3821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3825 do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_ac_ct_RANLIB="ranlib"
3831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834 done
3835 done
3836
3837 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3838 fi
3839 fi
3840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3841 if test -n "$ac_ct_RANLIB"; then
3842 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3843 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3844 else
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3847 fi
3848
3849 RANLIB=$ac_ct_RANLIB
3850 else
3851 RANLIB="$ac_cv_prog_RANLIB"
3852 fi
3853
3854
3855 # Find a good install program. We prefer a C program (faster),
3856 # so one script is as good as another. But avoid the broken or
3857 # incompatible versions:
3858 # SysV /etc/install, /usr/sbin/install
3859 # SunOS /usr/etc/install
3860 # IRIX /sbin/install
3861 # AIX /bin/install
3862 # AmigaOS /C/install, which installs bootblocks on floppy discs
3863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3866 # OS/2's system install, which has a completely different semantic
3867 # ./install, which can be erroneously created by make from ./install.sh.
3868 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3870 if test -z "$INSTALL"; then
3871 if test "${ac_cv_path_install+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 # Account for people who put trailing slashes in PATH elements.
3880 case $as_dir/ in
3881 ./ | .// | /cC/* | \
3882 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3883 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3884 /usr/ucb/* ) ;;
3885 *)
3886 # OSF1 and SCO ODT 3.0 have their own names for install.
3887 # Don't use installbsd from OSF since it installs stuff as root
3888 # by default.
3889 for ac_prog in ginstall scoinst install; do
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3892 if test $ac_prog = install &&
3893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3894 # AIX install. It has an incompatible calling convention.
3895 :
3896 elif test $ac_prog = install &&
3897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3898 # program-specific install script used by HP pwplus--don't use.
3899 :
3900 else
3901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3902 break 3
3903 fi
3904 fi
3905 done
3906 done
3907 ;;
3908 esac
3909 done
3910
3911
3912 fi
3913 if test "${ac_cv_path_install+set}" = set; then
3914 INSTALL=$ac_cv_path_install
3915 else
3916 # As a last resort, use the slow shell script. We don't cache a
3917 # path for INSTALL within a source directory, because that will
3918 # break other packages using the cache if that directory is
3919 # removed, or if the path is relative.
3920 INSTALL=$ac_install_sh
3921 fi
3922 fi
3923 echo "$as_me:$LINENO: result: $INSTALL" >&5
3924 echo "${ECHO_T}$INSTALL" >&6
3925
3926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3927 # It thinks the first close brace ends the variable substitution.
3928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3929
3930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3931
3932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3933
3934
3935 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3936 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3937 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3938 if test "${enable_maintainer_mode+set}" = set; then
3939 enableval="$enable_maintainer_mode"
3940 USE_MAINTAINER_MODE=$enableval
3941 else
3942 USE_MAINTAINER_MODE=no
3943 fi;
3944 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3945 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3946
3947
3948 if test $USE_MAINTAINER_MODE = yes; then
3949 MAINTAINER_MODE_TRUE=
3950 MAINTAINER_MODE_FALSE='#'
3951 else
3952 MAINTAINER_MODE_TRUE='#'
3953 MAINTAINER_MODE_FALSE=
3954 fi
3955
3956 MAINT=$MAINTAINER_MODE_TRUE
3957
3958
3959
3960 . ${srcdir}/configure.host
3961
3962 case ${gc_basedir} in
3963 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3964 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3965 esac
3966
3967 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3968 case "${host}" in
3969 *-*-cygwin32*)
3970 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3971 ;;
3972 esac
3973
3974
3975 GC_CFLAGS=${gc_cflags}
3976
3977
3978 # Check whether --enable-shared or --disable-shared was given.
3979 if test "${enable_shared+set}" = set; then
3980 enableval="$enable_shared"
3981 p=${PACKAGE-default}
3982 case $enableval in
3983 yes) enable_shared=yes ;;
3984 no) enable_shared=no ;;
3985 *)
3986 enable_shared=no
3987 # Look at the argument we got. We use all the common list separators.
3988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3989 for pkg in $enableval; do
3990 if test "X$pkg" = "X$p"; then
3991 enable_shared=yes
3992 fi
3993 done
3994 IFS="$ac_save_ifs"
3995 ;;
3996 esac
3997 else
3998 enable_shared=yes
3999 fi;
4000 # Check whether --enable-static or --disable-static was given.
4001 if test "${enable_static+set}" = set; then
4002 enableval="$enable_static"
4003 p=${PACKAGE-default}
4004 case $enableval in
4005 yes) enable_static=yes ;;
4006 no) enable_static=no ;;
4007 *)
4008 enable_static=no
4009 # Look at the argument we got. We use all the common list separators.
4010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4011 for pkg in $enableval; do
4012 if test "X$pkg" = "X$p"; then
4013 enable_static=yes
4014 fi
4015 done
4016 IFS="$ac_save_ifs"
4017 ;;
4018 esac
4019 else
4020 enable_static=yes
4021 fi;
4022 # Check whether --enable-fast-install or --disable-fast-install was given.
4023 if test "${enable_fast_install+set}" = set; then
4024 enableval="$enable_fast_install"
4025 p=${PACKAGE-default}
4026 case $enableval in
4027 yes) enable_fast_install=yes ;;
4028 no) enable_fast_install=no ;;
4029 *)
4030 enable_fast_install=no
4031 # Look at the argument we got. We use all the common list separators.
4032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4033 for pkg in $enableval; do
4034 if test "X$pkg" = "X$p"; then
4035 enable_fast_install=yes
4036 fi
4037 done
4038 IFS="$ac_save_ifs"
4039 ;;
4040 esac
4041 else
4042 enable_fast_install=yes
4043 fi;
4044
4045 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4046 if test "${with_gnu_ld+set}" = set; then
4047 withval="$with_gnu_ld"
4048 test "$withval" = no || with_gnu_ld=yes
4049 else
4050 with_gnu_ld=no
4051 fi;
4052 ac_prog=ld
4053 if test "$GCC" = yes; then
4054 # Check if gcc -print-prog-name=ld gives a path.
4055 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4056 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4057 case $host in
4058 *-*-mingw*)
4059 # gcc leaves a trailing carriage return which upsets mingw
4060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4061 *)
4062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4063 esac
4064 case $ac_prog in
4065 # Accept absolute paths.
4066 [\\/]* | [A-Za-z]:[\\/]*)
4067 re_direlt='/[^/][^/]*/\.\./'
4068 # Canonicalize the path of ld
4069 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4070 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4071 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4072 done
4073 test -z "$LD" && LD="$ac_prog"
4074 ;;
4075 "")
4076 # If it fails, then pretend we aren't using GCC.
4077 ac_prog=ld
4078 ;;
4079 *)
4080 # If it is relative, then search for the first ld in PATH.
4081 with_gnu_ld=unknown
4082 ;;
4083 esac
4084 elif test "$with_gnu_ld" = yes; then
4085 echo "$as_me:$LINENO: checking for GNU ld" >&5
4086 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4087 else
4088 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4089 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4090 fi
4091 if test "${lt_cv_path_LD+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 if test -z "$LD"; then
4095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4096 for ac_dir in $PATH; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4099 lt_cv_path_LD="$ac_dir/$ac_prog"
4100 # Check to see if the program is GNU ld. I'd rather use --version,
4101 # but apparently some GNU ld's only accept -v.
4102 # Break only if it was the GNU/non-GNU ld that we prefer.
4103 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4104 test "$with_gnu_ld" != no && break
4105 else
4106 test "$with_gnu_ld" != yes && break
4107 fi
4108 fi
4109 done
4110 IFS="$ac_save_ifs"
4111 else
4112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4113 fi
4114 fi
4115
4116 LD="$lt_cv_path_LD"
4117 if test -n "$LD"; then
4118 echo "$as_me:$LINENO: result: $LD" >&5
4119 echo "${ECHO_T}$LD" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4123 fi
4124 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4125 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4126 { (exit 1); exit 1; }; }
4127 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4128 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4129 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4133 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4134 lt_cv_prog_gnu_ld=yes
4135 else
4136 lt_cv_prog_gnu_ld=no
4137 fi
4138 fi
4139 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4140 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4141 with_gnu_ld=$lt_cv_prog_gnu_ld
4142
4143
4144 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4145 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4146 if test "${lt_cv_ld_reload_flag+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 lt_cv_ld_reload_flag='-r'
4150 fi
4151 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4152 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4153 reload_flag=$lt_cv_ld_reload_flag
4154 test -n "$reload_flag" && reload_flag=" $reload_flag"
4155
4156 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4157 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4158 if test "${lt_cv_path_NM+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 if test -n "$NM"; then
4162 # Let the user override the test.
4163 lt_cv_path_NM="$NM"
4164 else
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4167 test -z "$ac_dir" && ac_dir=.
4168 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4169 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4170 # Check to see if the nm accepts a BSD-compat flag.
4171 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4172 # nm: unknown option "B" ignored
4173 # Tru64's nm complains that /dev/null is an invalid object file
4174 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4175 lt_cv_path_NM="$tmp_nm -B"
4176 break
4177 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4178 lt_cv_path_NM="$tmp_nm -p"
4179 break
4180 else
4181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4182 continue # so that we can try to find one that supports BSD flags
4183 fi
4184 fi
4185 done
4186 IFS="$ac_save_ifs"
4187 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4188 fi
4189 fi
4190
4191 NM="$lt_cv_path_NM"
4192 echo "$as_me:$LINENO: result: $NM" >&5
4193 echo "${ECHO_T}$NM" >&6
4194
4195 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4196 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4197 LN_S=$as_ln_s
4198 if test "$LN_S" = "ln -s"; then
4199 echo "$as_me:$LINENO: result: yes" >&5
4200 echo "${ECHO_T}yes" >&6
4201 else
4202 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4203 echo "${ECHO_T}no, using $LN_S" >&6
4204 fi
4205
4206 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4207 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4208 if test "${lt_cv_deplibs_check_method+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 lt_cv_file_magic_cmd='$MAGIC_CMD'
4212 lt_cv_file_magic_test_file=
4213 lt_cv_deplibs_check_method='unknown'
4214 # Need to set the preceding variable on all platforms that support
4215 # interlibrary dependencies.
4216 # 'none' -- dependencies not supported.
4217 # `unknown' -- same as none, but documents that we really don't know.
4218 # 'pass_all' -- all dependencies passed with no checks.
4219 # 'test_compile' -- check by making test program.
4220 # 'file_magic [regex]' -- check by looking for files in library path
4221 # which responds to the $file_magic_cmd with a given egrep regex.
4222 # If you have `file' or equivalent on your system and you're not sure
4223 # whether `pass_all' will *always* work, you probably want this one.
4224
4225 case $host_os in
4226 aix*)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229
4230 beos*)
4231 lt_cv_deplibs_check_method=pass_all
4232 ;;
4233
4234 bsdi4*)
4235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4236 lt_cv_file_magic_cmd='/usr/bin/file -L'
4237 lt_cv_file_magic_test_file=/shlib/libc.so
4238 ;;
4239
4240 cygwin* | mingw* |pw32*)
4241 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4242 lt_cv_file_magic_cmd='$OBJDUMP -f'
4243 ;;
4244
4245 darwin* | rhapsody*)
4246 # this will be overwritten by pass_all, but leave it in just in case
4247 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4248 lt_cv_file_magic_cmd='/usr/bin/file -L'
4249 case "$host_os" in
4250 rhapsody* | darwin1.012)
4251 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4252 ;;
4253 *) # Darwin 1.3 on
4254 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4255 ;;
4256 esac
4257 lt_cv_deplibs_check_method=pass_all
4258 ;;
4259
4260 freebsd* | kfreebsd*-gnu)
4261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4262 case $host_cpu in
4263 i*86 )
4264 # Not sure whether the presence of OpenBSD here was a mistake.
4265 # Let's accept both of them until this is cleared up.
4266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4267 lt_cv_file_magic_cmd=/usr/bin/file
4268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4269 ;;
4270 esac
4271 else
4272 lt_cv_deplibs_check_method=pass_all
4273 fi
4274 ;;
4275
4276 gnu*)
4277 lt_cv_deplibs_check_method=pass_all
4278 ;;
4279
4280 hpux10.20*|hpux11*)
4281 case $host_cpu in
4282 hppa*)
4283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4284 lt_cv_file_magic_cmd=/usr/bin/file
4285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4286 ;;
4287 ia64*)
4288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4289 lt_cv_file_magic_cmd=/usr/bin/file
4290 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4291 ;;
4292 esac
4293 ;;
4294
4295 irix5* | irix6*)
4296 case $host_os in
4297 irix5*)
4298 # this will be overridden with pass_all, but let us keep it just in case
4299 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4300 ;;
4301 *)
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 # this will be overridden with pass_all, but let us keep it just in case
4309 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4310 ;;
4311 esac
4312 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316 # This must be Linux ELF.
4317 linux-gnu*)
4318 case $host_cpu in
4319 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4320 lt_cv_deplibs_check_method=pass_all ;;
4321 *)
4322 # glibc up to 2.1.1 does not perform some relocations on ARM
4323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4324 esac
4325 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4326 ;;
4327
4328 netbsd* | knetbsd*-gnu)
4329 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4330 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4331 else
4332 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4333 fi
4334 ;;
4335
4336 newsos6)
4337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4338 lt_cv_file_magic_cmd=/usr/bin/file
4339 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4340 ;;
4341
4342 osf3* | osf4* | osf5*)
4343 # this will be overridden with pass_all, but let us keep it just in case
4344 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4345 lt_cv_file_magic_test_file=/shlib/libc.so
4346 lt_cv_deplibs_check_method=pass_all
4347 ;;
4348
4349 sco3.2v5*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
4352
4353 solaris*)
4354 lt_cv_deplibs_check_method=pass_all
4355 lt_cv_file_magic_test_file=/lib/libc.so
4356 ;;
4357
4358 sysv5uw[78]* | sysv4*uw2*)
4359 lt_cv_deplibs_check_method=pass_all
4360 ;;
4361
4362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4363 case $host_vendor in
4364 ncr)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367 motorola)
4368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4370 ;;
4371 esac
4372 ;;
4373 esac
4374
4375 fi
4376 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4377 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4378 file_magic_cmd=$lt_cv_file_magic_cmd
4379 deplibs_check_method=$lt_cv_deplibs_check_method
4380
4381
4382
4383
4384
4385 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4386
4387 # Only perform the check for file, if the check method requires it
4388 case $deplibs_check_method in
4389 file_magic*)
4390 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4391 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4392 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4393 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 case $MAGIC_CMD in
4397 /*)
4398 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4399 ;;
4400 ?:/*)
4401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4402 ;;
4403 *)
4404 ac_save_MAGIC_CMD="$MAGIC_CMD"
4405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4406 ac_dummy="/usr/bin:$PATH"
4407 for ac_dir in $ac_dummy; do
4408 test -z "$ac_dir" && ac_dir=.
4409 if test -f $ac_dir/${ac_tool_prefix}file; then
4410 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4411 if test -n "$file_magic_test_file"; then
4412 case $deplibs_check_method in
4413 "file_magic "*)
4414 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4417 egrep "$file_magic_regex" > /dev/null; then
4418 :
4419 else
4420 cat <<EOF 1>&2
4421
4422 *** Warning: the command libtool uses to detect shared libraries,
4423 *** $file_magic_cmd, produces output that libtool cannot recognize.
4424 *** The result is that libtool may fail to recognize shared libraries
4425 *** as such. This will affect the creation of libtool libraries that
4426 *** depend on shared libraries, but programs linked with such libtool
4427 *** libraries will work regardless of this problem. Nevertheless, you
4428 *** may want to report the problem to your system manager and/or to
4429 *** bug-libtool@gnu.org
4430
4431 EOF
4432 fi ;;
4433 esac
4434 fi
4435 break
4436 fi
4437 done
4438 IFS="$ac_save_ifs"
4439 MAGIC_CMD="$ac_save_MAGIC_CMD"
4440 ;;
4441 esac
4442 fi
4443
4444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4445 if test -n "$MAGIC_CMD"; then
4446 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4447 echo "${ECHO_T}$MAGIC_CMD" >&6
4448 else
4449 echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6
4451 fi
4452
4453 if test -z "$lt_cv_path_MAGIC_CMD"; then
4454 if test -n "$ac_tool_prefix"; then
4455 echo "$as_me:$LINENO: checking for file" >&5
4456 echo $ECHO_N "checking for file... $ECHO_C" >&6
4457 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460 case $MAGIC_CMD in
4461 /*)
4462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4463 ;;
4464 ?:/*)
4465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4466 ;;
4467 *)
4468 ac_save_MAGIC_CMD="$MAGIC_CMD"
4469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4470 ac_dummy="/usr/bin:$PATH"
4471 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 if test -f $ac_dir/file; then
4474 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4475 if test -n "$file_magic_test_file"; then
4476 case $deplibs_check_method in
4477 "file_magic "*)
4478 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4480 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4481 egrep "$file_magic_regex" > /dev/null; then
4482 :
4483 else
4484 cat <<EOF 1>&2
4485
4486 *** Warning: the command libtool uses to detect shared libraries,
4487 *** $file_magic_cmd, produces output that libtool cannot recognize.
4488 *** The result is that libtool may fail to recognize shared libraries
4489 *** as such. This will affect the creation of libtool libraries that
4490 *** depend on shared libraries, but programs linked with such libtool
4491 *** libraries will work regardless of this problem. Nevertheless, you
4492 *** may want to report the problem to your system manager and/or to
4493 *** bug-libtool@gnu.org
4494
4495 EOF
4496 fi ;;
4497 esac
4498 fi
4499 break
4500 fi
4501 done
4502 IFS="$ac_save_ifs"
4503 MAGIC_CMD="$ac_save_MAGIC_CMD"
4504 ;;
4505 esac
4506 fi
4507
4508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4509 if test -n "$MAGIC_CMD"; then
4510 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4511 echo "${ECHO_T}$MAGIC_CMD" >&6
4512 else
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517 else
4518 MAGIC_CMD=:
4519 fi
4520 fi
4521
4522 fi
4523 ;;
4524 esac
4525
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_RANLIB+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 if test -n "$RANLIB"; then
4535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550
4551 fi
4552 fi
4553 RANLIB=$ac_cv_prog_RANLIB
4554 if test -n "$RANLIB"; then
4555 echo "$as_me:$LINENO: result: $RANLIB" >&5
4556 echo "${ECHO_T}$RANLIB" >&6
4557 else
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4560 fi
4561
4562 fi
4563 if test -z "$ac_cv_prog_RANLIB"; then
4564 ac_ct_RANLIB=$RANLIB
4565 # Extract the first word of "ranlib", so it can be a program name with args.
4566 set dummy ranlib; ac_word=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 if test -n "$ac_ct_RANLIB"; then
4573 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_ac_ct_RANLIB="ranlib"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586 done
4587 done
4588
4589 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4590 fi
4591 fi
4592 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4593 if test -n "$ac_ct_RANLIB"; then
4594 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4595 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4596 else
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4599 fi
4600
4601 RANLIB=$ac_ct_RANLIB
4602 else
4603 RANLIB="$ac_cv_prog_RANLIB"
4604 fi
4605
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}strip; ac_word=$2
4609 echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_prog_STRIP+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 if test -n "$STRIP"; then
4615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630
4631 fi
4632 fi
4633 STRIP=$ac_cv_prog_STRIP
4634 if test -n "$STRIP"; then
4635 echo "$as_me:$LINENO: result: $STRIP" >&5
4636 echo "${ECHO_T}$STRIP" >&6
4637 else
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 fi
4641
4642 fi
4643 if test -z "$ac_cv_prog_STRIP"; then
4644 ac_ct_STRIP=$STRIP
4645 # Extract the first word of "strip", so it can be a program name with args.
4646 set dummy strip; ac_word=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 if test -n "$ac_ct_STRIP"; then
4653 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_ac_ct_STRIP="strip"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668
4669 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4670 fi
4671 fi
4672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4673 if test -n "$ac_ct_STRIP"; then
4674 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4675 echo "${ECHO_T}$ac_ct_STRIP" >&6
4676 else
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4679 fi
4680
4681 STRIP=$ac_ct_STRIP
4682 else
4683 STRIP="$ac_cv_prog_STRIP"
4684 fi
4685
4686
4687 # Check for any special flags to pass to ltconfig.
4688 libtool_flags="--cache-file=$cache_file"
4689 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4690 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4691 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4692 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4693 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4694
4695
4696 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4697 if test "${enable_libtool_lock+set}" = set; then
4698 enableval="$enable_libtool_lock"
4699
4700 fi;
4701 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4702 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4703
4704
4705 # Check whether --with-pic or --without-pic was given.
4706 if test "${with_pic+set}" = set; then
4707 withval="$with_pic"
4708 pic_mode="$withval"
4709 else
4710 pic_mode=default
4711 fi;
4712 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4713 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4714
4715 # Some flags need to be propagated to the compiler or linker for good
4716 # libtool support.
4717 case $host in
4718 *-*-irix6*)
4719 # Find out which ABI we are using.
4720 echo '#line 4720 "configure"' > conftest.$ac_ext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; then
4726 if test "$lt_cv_prog_gnu_ld" = yes; then
4727 case `/usr/bin/file conftest.$ac_objext` in
4728 *32-bit*)
4729 LD="${LD-ld} -melf32bsmip"
4730 ;;
4731 *N32*)
4732 LD="${LD-ld} -melf32bmipn32"
4733 ;;
4734 *64-bit*)
4735 LD="${LD-ld} -melf64bmip"
4736 ;;
4737 esac
4738 else
4739 case `/usr/bin/file conftest.$ac_objext` in
4740 *32-bit*)
4741 LD="${LD-ld} -32"
4742 ;;
4743 *N32*)
4744 LD="${LD-ld} -n32"
4745 ;;
4746 *64-bit*)
4747 LD="${LD-ld} -64"
4748 ;;
4749 esac
4750 fi
4751 fi
4752 rm -rf conftest*
4753 ;;
4754
4755 ia64-*-hpux*)
4756 # Find out which ABI we are using.
4757 echo 'int i;' > conftest.$ac_ext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; then
4763 case "`/usr/bin/file conftest.o`" in
4764 *ELF-32*)
4765 HPUX_IA64_MODE="32"
4766 ;;
4767 *ELF-64*)
4768 HPUX_IA64_MODE="64"
4769 ;;
4770 esac
4771 fi
4772 rm -rf conftest*
4773 ;;
4774
4775 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4776 # Find out which ABI we are using.
4777 echo 'int i;' > conftest.$ac_ext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; then
4783 case "`/usr/bin/file conftest.o`" in
4784 *32-bit*)
4785 case $host in
4786 x86_64-*linux*)
4787 LD="${LD-ld} -m elf_i386"
4788 ;;
4789 ppc64-*linux*|powerpc64-*linux*)
4790 LD="${LD-ld} -m elf32ppclinux"
4791 ;;
4792 s390x-*linux*)
4793 LD="${LD-ld} -m elf_s390"
4794 ;;
4795 sparc64-*linux*)
4796 LD="${LD-ld} -m elf32_sparc"
4797 ;;
4798 esac
4799 ;;
4800 *64-bit*)
4801 case $host in
4802 x86_64-*linux*)
4803 LD="${LD-ld} -m elf_x86_64"
4804 ;;
4805 ppc*-*linux*|powerpc*-*linux*)
4806 LD="${LD-ld} -m elf64ppc"
4807 ;;
4808 s390*-*linux*)
4809 LD="${LD-ld} -m elf64_s390"
4810 ;;
4811 sparc*-*linux*)
4812 LD="${LD-ld} -m elf64_sparc"
4813 ;;
4814 esac
4815 ;;
4816 esac
4817 fi
4818 rm -rf conftest*
4819 ;;
4820
4821 *-*-sco3.2v5*)
4822 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4823 SAVE_CFLAGS="$CFLAGS"
4824 CFLAGS="$CFLAGS -belf"
4825 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4826 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4827 if test "${lt_cv_cc_needs_belf+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830
4831
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
4838 if test x$gcc_no_link = xyes; then
4839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4841 { (exit 1); exit 1; }; }
4842 fi
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849
4850 int
4851 main ()
4852 {
4853
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext conftest$ac_exeext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4860 (eval $ac_link) 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try='test -s conftest$ac_exeext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4879 lt_cv_cc_needs_belf=yes
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 lt_cv_cc_needs_belf=no
4885 fi
4886 rm -f conftest.err conftest.$ac_objext \
4887 conftest$ac_exeext conftest.$ac_ext
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894 fi
4895 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4896 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899 CFLAGS="$SAVE_CFLAGS"
4900 fi
4901 ;;
4902
4903
4904 esac
4905
4906
4907 # Save cache, so that ltconfig can load it
4908 cat >confcache <<\_ACEOF
4909 # This file is a shell script that caches the results of configure
4910 # tests run on this system so they can be shared between configure
4911 # scripts and configure runs, see configure's option --config-cache.
4912 # It is not useful on other systems. If it contains results you don't
4913 # want to keep, you may remove or edit it.
4914 #
4915 # config.status only pays attention to the cache file if you give it
4916 # the --recheck option to rerun configure.
4917 #
4918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4920 # following values.
4921
4922 _ACEOF
4923
4924 # The following way of writing the cache mishandles newlines in values,
4925 # but we know of no workaround that is simple, portable, and efficient.
4926 # So, don't put newlines in cache variables' values.
4927 # Ultrix sh set writes to stderr and can't be redirected directly,
4928 # and sets the high bit in the cache file unless we assign to the vars.
4929 {
4930 (set) 2>&1 |
4931 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4932 *ac_space=\ *)
4933 # `set' does not quote correctly, so add quotes (double-quote
4934 # substitution turns \\\\ into \\, and sed turns \\ into \).
4935 sed -n \
4936 "s/'/'\\\\''/g;
4937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4938 ;;
4939 *)
4940 # `set' quotes correctly as required by POSIX, so do not add quotes.
4941 sed -n \
4942 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4943 ;;
4944 esac;
4945 } |
4946 sed '
4947 t clear
4948 : clear
4949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4950 t end
4951 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4952 : end' >>confcache
4953 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4954 if test -w $cache_file; then
4955 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4956 cat confcache >$cache_file
4957 else
4958 echo "not updating unwritable cache $cache_file"
4959 fi
4960 fi
4961 rm -f confcache
4962
4963 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4964 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4965 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4966 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4967 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4968 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4969 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4970 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4971 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4972 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4973 echo "$as_me: error: libtool configure failed" >&2;}
4974 { (exit 1); exit 1; }; }
4975
4976 # Reload cache, that may have been modified by ltconfig
4977 if test -r "$cache_file"; then
4978 # Some versions of bash will fail to source /dev/null (special
4979 # files actually), so we avoid doing that.
4980 if test -f "$cache_file"; then
4981 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4982 echo "$as_me: loading cache $cache_file" >&6;}
4983 case $cache_file in
4984 [\\/]* | ?:[\\/]* ) . $cache_file;;
4985 *) . ./$cache_file;;
4986 esac
4987 fi
4988 else
4989 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4990 echo "$as_me: creating cache $cache_file" >&6;}
4991 >$cache_file
4992 fi
4993
4994
4995 # This can be used to rebuild libtool when needed
4996 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4997
4998 # Always use our own libtool.
4999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5000
5001 # Redirect the config.log output again, so that the ltconfig log is not
5002 # clobbered by the next message.
5003 exec 5>>./config.log
5004
5005 ac_ext=cc
5006 ac_cpp='$CXXCPP $CPPFLAGS'
5007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5010 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5011 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5012 if test -z "$CXXCPP"; then
5013 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 # Double quotes because CXXCPP needs to be expanded
5017 for CXXCPP in "$CXX -E" "/lib/cpp"
5018 do
5019 ac_preproc_ok=false
5020 for ac_cxx_preproc_warn_flag in '' yes
5021 do
5022 # Use a header file that comes with gcc, so configuring glibc
5023 # with a fresh cross-compiler works.
5024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 # <limits.h> exists even on freestanding compilers.
5026 # On the NeXT, cc -E runs the code through the compiler's parser,
5027 # not just through cpp. "Syntax error" is here to catch this case.
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #ifdef __STDC__
5035 # include <limits.h>
5036 #else
5037 # include <assert.h>
5038 #endif
5039 Syntax error
5040 _ACEOF
5041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null; then
5049 if test -s conftest.err; then
5050 ac_cpp_err=$ac_cxx_preproc_warn_flag
5051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5052 else
5053 ac_cpp_err=
5054 fi
5055 else
5056 ac_cpp_err=yes
5057 fi
5058 if test -z "$ac_cpp_err"; then
5059 :
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 # Broken: fails on valid input.
5065 continue
5066 fi
5067 rm -f conftest.err conftest.$ac_ext
5068
5069 # OK, works on sane cases. Now check whether non-existent headers
5070 # can be detected and how.
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5078 _ACEOF
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null; then
5087 if test -s conftest.err; then
5088 ac_cpp_err=$ac_cxx_preproc_warn_flag
5089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5090 else
5091 ac_cpp_err=
5092 fi
5093 else
5094 ac_cpp_err=yes
5095 fi
5096 if test -z "$ac_cpp_err"; then
5097 # Broken: success on invalid input.
5098 continue
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 # Passes both tests.
5104 ac_preproc_ok=:
5105 break
5106 fi
5107 rm -f conftest.err conftest.$ac_ext
5108
5109 done
5110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5111 rm -f conftest.err conftest.$ac_ext
5112 if $ac_preproc_ok; then
5113 break
5114 fi
5115
5116 done
5117 ac_cv_prog_CXXCPP=$CXXCPP
5118
5119 fi
5120 CXXCPP=$ac_cv_prog_CXXCPP
5121 else
5122 ac_cv_prog_CXXCPP=$CXXCPP
5123 fi
5124 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5125 echo "${ECHO_T}$CXXCPP" >&6
5126 ac_preproc_ok=false
5127 for ac_cxx_preproc_warn_flag in '' yes
5128 do
5129 # Use a header file that comes with gcc, so configuring glibc
5130 # with a fresh cross-compiler works.
5131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132 # <limits.h> exists even on freestanding compilers.
5133 # On the NeXT, cc -E runs the code through the compiler's parser,
5134 # not just through cpp. "Syntax error" is here to catch this case.
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h. */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #ifdef __STDC__
5142 # include <limits.h>
5143 #else
5144 # include <assert.h>
5145 #endif
5146 Syntax error
5147 _ACEOF
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_cxx_preproc_warn_flag
5158 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5159 else
5160 ac_cpp_err=
5161 fi
5162 else
5163 ac_cpp_err=yes
5164 fi
5165 if test -z "$ac_cpp_err"; then
5166 :
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171 # Broken: fails on valid input.
5172 continue
5173 fi
5174 rm -f conftest.err conftest.$ac_ext
5175
5176 # OK, works on sane cases. Now check whether non-existent headers
5177 # can be detected and how.
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 #include <ac_nonexistent.h>
5185 _ACEOF
5186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5188 ac_status=$?
5189 grep -v '^ *+' conftest.er1 >conftest.err
5190 rm -f conftest.er1
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } >/dev/null; then
5194 if test -s conftest.err; then
5195 ac_cpp_err=$ac_cxx_preproc_warn_flag
5196 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5197 else
5198 ac_cpp_err=
5199 fi
5200 else
5201 ac_cpp_err=yes
5202 fi
5203 if test -z "$ac_cpp_err"; then
5204 # Broken: success on invalid input.
5205 continue
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 # Passes both tests.
5211 ac_preproc_ok=:
5212 break
5213 fi
5214 rm -f conftest.err conftest.$ac_ext
5215
5216 done
5217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5218 rm -f conftest.err conftest.$ac_ext
5219 if $ac_preproc_ok; then
5220 :
5221 else
5222 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5225 See \`config.log' for more details." >&2;}
5226 { (exit 1); exit 1; }; }
5227 fi
5228
5229 ac_ext=c
5230 ac_cpp='$CPP $CPPFLAGS'
5231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234
5235
5236
5237 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5238 lt_save_CC="$CC"
5239 lt_save_CFLAGS="$CFLAGS"
5240 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5241 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5242 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5243 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5244 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5245 deplibs_check_method="$deplibs_check_method" \
5246 file_magic_cmd="$file_magic_cmd" \
5247 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5248 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5249 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5250 echo "$as_me: error: libtool tag configuration failed" >&2;}
5251 { (exit 1); exit 1; }; }
5252 CC="$lt_save_CC"
5253 CFLAGS="$lt_save_CFLAGS"
5254
5255 # Redirect the config.log output again, so that the ltconfig log is not
5256 # clobbered by the next message.
5257 exec 5>>./config.log
5258
5259
5260
5261
5262
5263
5264
5265
5266 # Check whether --with-target-subdir or --without-target-subdir was given.
5267 if test "${with_target_subdir+set}" = set; then
5268 withval="$with_target_subdir"
5269
5270 fi;
5271
5272 # Check whether --with-cross-host or --without-cross-host was given.
5273 if test "${with_cross_host+set}" = set; then
5274 withval="$with_cross_host"
5275
5276 fi;
5277
5278 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
5279 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5280 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5281 if test -z "$THREADS"; then
5282 THREADS=no
5283 fi
5284 echo "$as_me:$LINENO: result: $THREADS" >&5
5285 echo "${ECHO_T}$THREADS" >&6
5286
5287 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
5288 if test "${enable_parallel_mark+set}" = set; then
5289 enableval="$enable_parallel_mark"
5290 case "$THREADS" in
5291 no | none | single)
5292 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
5293 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
5294 { (exit 1); exit 1; }; }
5295 ;;
5296 esac
5297
5298 fi;
5299
5300 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
5301 THREADLIBS=
5302 case "$THREADS" in
5303 no | none | single)
5304 THREADS=none
5305 ;;
5306 posix | pthreads)
5307 THREADS=posix
5308 THREADLIBS=-lpthread
5309 case "$host" in
5310 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
5311 cat >>confdefs.h <<\_ACEOF
5312 #define GC_LINUX_THREADS 1
5313 _ACEOF
5314
5315 cat >>confdefs.h <<\_ACEOF
5316 #define _REENTRANT 1
5317 _ACEOF
5318
5319 if test "${enable_parallel_mark}" = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 #define PARALLEL_MARK 1
5322 _ACEOF
5323
5324 fi
5325 cat >>confdefs.h <<\_ACEOF
5326 #define THREAD_LOCAL_ALLOC 1
5327 _ACEOF
5328
5329 ;;
5330 *-*-linux*)
5331 cat >>confdefs.h <<\_ACEOF
5332 #define GC_LINUX_THREADS 1
5333 _ACEOF
5334
5335 cat >>confdefs.h <<\_ACEOF
5336 #define _REENTRANT 1
5337 _ACEOF
5338
5339 ;;
5340 *-*-aix*)
5341 cat >>confdefs.h <<\_ACEOF
5342 #define GC_AIX_THREADS 1
5343 _ACEOF
5344
5345 cat >>confdefs.h <<\_ACEOF
5346 #define _REENTRANT 1
5347 _ACEOF
5348
5349 ;;
5350 *-*-hpux*)
5351 { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
5352 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
5353 cat >>confdefs.h <<\_ACEOF
5354 #define GC_HPUX_THREADS 1
5355 _ACEOF
5356
5357 cat >>confdefs.h <<\_ACEOF
5358 #define _POSIX_C_SOURCE 199506L
5359 _ACEOF
5360
5361 if test "${enable_parallel_mark}" = yes; then
5362 cat >>confdefs.h <<\_ACEOF
5363 #define PARALLEL_MARK 1
5364 _ACEOF
5365
5366 fi
5367 cat >>confdefs.h <<\_ACEOF
5368 #define THREAD_LOCAL_ALLOC 1
5369 _ACEOF
5370
5371 THREADLIBS="-lpthread -lrt"
5372 ;;
5373 *-*-freebsd*)
5374 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
5375 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
5376 cat >>confdefs.h <<\_ACEOF
5377 #define GC_FREEBSD_THREADS 1
5378 _ACEOF
5379
5380 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
5381 THREADLIBS=-pthread
5382 ;;
5383 *-*-solaris*)
5384 cat >>confdefs.h <<\_ACEOF
5385 #define GC_SOLARIS_THREADS 1
5386 _ACEOF
5387
5388 cat >>confdefs.h <<\_ACEOF
5389 #define GC_SOLARIS_PTHREADS 1
5390 _ACEOF
5391
5392 ;;
5393 *-*-irix*)
5394 cat >>confdefs.h <<\_ACEOF
5395 #define GC_IRIX_THREADS 1
5396 _ACEOF
5397
5398 ;;
5399 *-*-cygwin*)
5400 cat >>confdefs.h <<\_ACEOF
5401 #define GC_WIN32_THREADS 1
5402 _ACEOF
5403
5404 ;;
5405 *-*-darwin*)
5406 cat >>confdefs.h <<\_ACEOF
5407 #define GC_DARWIN_THREADS 1
5408 _ACEOF
5409
5410 cat >>confdefs.h <<\_ACEOF
5411 #define THREAD_LOCAL_ALLOC 1
5412 _ACEOF
5413
5414 if test "${enable_parallel_mark}" = yes; then
5415 cat >>confdefs.h <<\_ACEOF
5416 #define PARALLEL_MARK 1
5417 _ACEOF
5418
5419 fi
5420 ;;
5421 *-*-osf*)
5422 cat >>confdefs.h <<\_ACEOF
5423 #define GC_OSF1_THREADS 1
5424 _ACEOF
5425
5426 if test "${enable_parallel_mark}" = yes; then
5427 cat >>confdefs.h <<\_ACEOF
5428 #define PARALLEL_MARK 1
5429 _ACEOF
5430
5431 cat >>confdefs.h <<\_ACEOF
5432 #define THREAD_LOCAL_ALLOC 1
5433 _ACEOF
5434
5435 # May want to enable it in other cases, too.
5436 # Measurements havent yet been done.
5437 fi
5438 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
5439 THREADLIBS="-lpthread -lrt"
5440 ;;
5441 esac
5442 ;;
5443 win32)
5444 cat >>confdefs.h <<\_ACEOF
5445 #define GC_WIN32_THREADS 1
5446 _ACEOF
5447
5448 ;;
5449 dgux386)
5450 THREADS=dgux386
5451 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
5452 echo "${ECHO_T}$THREADLIBS" >&6
5453 # Use pthread GCC switch
5454 THREADLIBS=-pthread
5455 if test "${enable_parallel_mark}" = yes; then
5456 cat >>confdefs.h <<\_ACEOF
5457 #define PARALLEL_MARK 1
5458 _ACEOF
5459
5460 fi
5461 cat >>confdefs.h <<\_ACEOF
5462 #define THREAD_LOCAL_ALLOC 1
5463 _ACEOF
5464
5465 cat >>confdefs.h <<\_ACEOF
5466 #define GC_DGUX386_THREADS 1
5467 _ACEOF
5468
5469 cat >>confdefs.h <<\_ACEOF
5470 #define DGUX_THREADS 1
5471 _ACEOF
5472
5473 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5474 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
5475 ;;
5476 aix)
5477 THREADS=posix
5478 THREADLIBS=-lpthread
5479 cat >>confdefs.h <<\_ACEOF
5480 #define GC_AIX_THREADS 1
5481 _ACEOF
5482
5483 cat >>confdefs.h <<\_ACEOF
5484 #define _REENTRANT 1
5485 _ACEOF
5486
5487 ;;
5488 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5489 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5490 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5491 { (exit 1); exit 1; }; }
5492 ;;
5493 *)
5494 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5495 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5496 { (exit 1); exit 1; }; }
5497 ;;
5498 esac
5499
5500
5501 case "$host" in
5502 powerpc-*-darwin*)
5503 powerpc_darwin=true
5504 ;;
5505 esac
5506
5507
5508 if test x$powerpc_darwin = xtrue; then
5509 POWERPC_DARWIN_TRUE=
5510 POWERPC_DARWIN_FALSE='#'
5511 else
5512 POWERPC_DARWIN_TRUE='#'
5513 POWERPC_DARWIN_FALSE=
5514 fi
5515
5516
5517 # We never want libdl on darwin. It is a fake libdl that just ends up making
5518 # dyld calls anyway
5519 case "$host" in
5520 *-*-darwin*) ;;
5521 *)
5522 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5523 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5524 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 ac_check_lib_save_LIBS=$LIBS
5528 LIBS="-ldl $LIBS"
5529 if test x$gcc_no_link = xyes; then
5530 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5532 { (exit 1); exit 1; }; }
5533 fi
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540
5541 /* Override any gcc2 internal prototype to avoid an error. */
5542 #ifdef __cplusplus
5543 extern "C"
5544 #endif
5545 /* We use char because int might match the return type of a gcc2
5546 builtin and then its argument prototype would still apply. */
5547 char dlopen ();
5548 int
5549 main ()
5550 {
5551 dlopen ();
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest$ac_exeext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_lib_dl_dlopen=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 ac_cv_lib_dl_dlopen=no
5583 fi
5584 rm -f conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586 LIBS=$ac_check_lib_save_LIBS
5587 fi
5588 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5589 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5590 if test $ac_cv_lib_dl_dlopen = yes; then
5591 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5592 fi
5593
5594 ;;
5595 esac
5596
5597
5598
5599 target_all=libgcjgc.la
5600
5601
5602
5603 TARGET_ECOS="no"
5604
5605 # Check whether --with-ecos or --without-ecos was given.
5606 if test "${with_ecos+set}" = set; then
5607 withval="$with_ecos"
5608 TARGET_ECOS="$with_ecos"
5609
5610 fi;
5611
5612 addobjs=
5613 addlibs=
5614 addincludes=
5615 addtests=
5616 case "$TARGET_ECOS" in
5617 no)
5618 ;;
5619 *)
5620 cat >>confdefs.h <<\_ACEOF
5621 #define ECOS 1
5622 _ACEOF
5623
5624 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
5625 addobjs="$addobjs ecos.lo"
5626 ;;
5627 esac
5628
5629 if test "${enable_cplusplus}" = yes; then
5630 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5631 addtests="$addtests test_cpp"
5632 fi
5633
5634
5635
5636 if test "${enable_cplusplus}" = yes; then
5637 CPLUSPLUS_TRUE=
5638 CPLUSPLUS_FALSE='#'
5639 else
5640 CPLUSPLUS_TRUE='#'
5641 CPLUSPLUS_FALSE=
5642 fi
5643
5644
5645
5646
5647
5648
5649 # Configuration of shared libraries
5650 #
5651 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5652 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5653 # Check whether --enable-shared or --disable-shared was given.
5654 if test "${enable_shared+set}" = set; then
5655 enableval="$enable_shared"
5656 p=${PACKAGE-default}
5657 case $enableval in
5658 yes) enable_shared=yes ;;
5659 no) enable_shared=no ;;
5660 *)
5661 enable_shared=no
5662 # Look at the argument we got. We use all the common list separators.
5663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5664 for pkg in $enableval; do
5665 if test "X$pkg" = "X$p"; then
5666 enable_shared=yes
5667 fi
5668 done
5669 IFS="$ac_save_ifs"
5670 ;;
5671 esac
5672 else
5673 enable_shared=yes
5674 fi;
5675
5676 case "$host" in
5677 alpha-*-openbsd*)
5678 enable_shared=no
5679 echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5681 ;;
5682 *)
5683 echo "$as_me:$LINENO: result: yes" >&5
5684 echo "${ECHO_T}yes" >&6
5685 ;;
5686 esac
5687
5688 # Configuration of machine-dependent code
5689 #
5690 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5691 # anything else that creates trampolines in gc-allocated memory)
5692 # always needs exec permission. The exceptions to this are IA-64 and
5693 # some variations of Power PC, where trampolines don't contain
5694 # executable code.
5695 #
5696 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5697 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5698 machdep=
5699 case "$host" in
5700 alpha*-*-openbsd*)
5701 machdep="alpha_mach_dep.lo"
5702 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5703 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5704 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5705 fi
5706 ;;
5707 alpha*-*-linux*)
5708 machdep="alpha_mach_dep.lo"
5709 ;;
5710 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5711 cat >>confdefs.h <<\_ACEOF
5712 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5713 _ACEOF
5714
5715 ;;
5716 mipstx39-*-elf*)
5717 machdep="mips_ultrix_mach_dep.lo"
5718 cat >>confdefs.h <<\_ACEOF
5719 #define STACKBASE __stackbase
5720 _ACEOF
5721
5722 cat >>confdefs.h <<\_ACEOF
5723 #define DATASTART_IS_ETEXT 1
5724 _ACEOF
5725
5726 ;;
5727 mips-dec-ultrix*)
5728 machdep="mips_ultrix_mach-dep.lo"
5729 ;;
5730 mips-nec-sysv*|mips-unknown-sysv*)
5731 ;;
5732 mips*-*-linux*)
5733 ;;
5734 mips-*-*)
5735 machdep="mips_sgi_mach_dep.lo"
5736 ;;
5737 sparc-*-netbsd*)
5738 machdep="sparc_netbsd_mach_dep.lo"
5739 ;;
5740 sparc-sun-solaris2.3)
5741 machdep="sparc_mach_dep.lo"
5742 cat >>confdefs.h <<\_ACEOF
5743 #define SUNOS53_SHARED_LIB 1
5744 _ACEOF
5745
5746 ;;
5747 sparc-sun-solaris2.*)
5748 machdep="sparc_mach_dep.lo"
5749 ;;
5750 ia64-*-*)
5751 cat >>confdefs.h <<\_ACEOF
5752 #define NO_EXECUTE_PERMISSION 1
5753 _ACEOF
5754
5755 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5756 ;;
5757 esac
5758 if test x"$machdep" = x; then
5759 echo "$as_me:$LINENO: result: $machdep" >&5
5760 echo "${ECHO_T}$machdep" >&6
5761 machdep="mach_dep.lo"
5762 fi
5763 addobjs="$addobjs $machdep"
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775 #
5776 # Check for AViiON Machines running DGUX
5777 #
5778 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5779 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5780 ac_is_dgux=no
5781 ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5787 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5788 # On Suns, sometimes $CPP names a directory.
5789 if test -n "$CPP" && test -d "$CPP"; then
5790 CPP=
5791 fi
5792 if test -z "$CPP"; then
5793 if test "${ac_cv_prog_CPP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 # Double quotes because CPP needs to be expanded
5797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5798 do
5799 ac_preproc_ok=false
5800 for ac_c_preproc_warn_flag in '' yes
5801 do
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #ifdef __STDC__
5815 # include <limits.h>
5816 #else
5817 # include <assert.h>
5818 #endif
5819 Syntax error
5820 _ACEOF
5821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } >/dev/null; then
5829 if test -s conftest.err; then
5830 ac_cpp_err=$ac_c_preproc_warn_flag
5831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5832 else
5833 ac_cpp_err=
5834 fi
5835 else
5836 ac_cpp_err=yes
5837 fi
5838 if test -z "$ac_cpp_err"; then
5839 :
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 # Broken: fails on valid input.
5845 continue
5846 fi
5847 rm -f conftest.err conftest.$ac_ext
5848
5849 # OK, works on sane cases. Now check whether non-existent headers
5850 # can be detected and how.
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <ac_nonexistent.h>
5858 _ACEOF
5859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } >/dev/null; then
5867 if test -s conftest.err; then
5868 ac_cpp_err=$ac_c_preproc_warn_flag
5869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5870 else
5871 ac_cpp_err=
5872 fi
5873 else
5874 ac_cpp_err=yes
5875 fi
5876 if test -z "$ac_cpp_err"; then
5877 # Broken: success on invalid input.
5878 continue
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883 # Passes both tests.
5884 ac_preproc_ok=:
5885 break
5886 fi
5887 rm -f conftest.err conftest.$ac_ext
5888
5889 done
5890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5891 rm -f conftest.err conftest.$ac_ext
5892 if $ac_preproc_ok; then
5893 break
5894 fi
5895
5896 done
5897 ac_cv_prog_CPP=$CPP
5898
5899 fi
5900 CPP=$ac_cv_prog_CPP
5901 else
5902 ac_cv_prog_CPP=$CPP
5903 fi
5904 echo "$as_me:$LINENO: result: $CPP" >&5
5905 echo "${ECHO_T}$CPP" >&6
5906 ac_preproc_ok=false
5907 for ac_c_preproc_warn_flag in '' yes
5908 do
5909 # Use a header file that comes with gcc, so configuring glibc
5910 # with a fresh cross-compiler works.
5911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5912 # <limits.h> exists even on freestanding compilers.
5913 # On the NeXT, cc -E runs the code through the compiler's parser,
5914 # not just through cpp. "Syntax error" is here to catch this case.
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #ifdef __STDC__
5922 # include <limits.h>
5923 #else
5924 # include <assert.h>
5925 #endif
5926 Syntax error
5927 _ACEOF
5928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } >/dev/null; then
5936 if test -s conftest.err; then
5937 ac_cpp_err=$ac_c_preproc_warn_flag
5938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5939 else
5940 ac_cpp_err=
5941 fi
5942 else
5943 ac_cpp_err=yes
5944 fi
5945 if test -z "$ac_cpp_err"; then
5946 :
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 # Broken: fails on valid input.
5952 continue
5953 fi
5954 rm -f conftest.err conftest.$ac_ext
5955
5956 # OK, works on sane cases. Now check whether non-existent headers
5957 # can be detected and how.
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <ac_nonexistent.h>
5965 _ACEOF
5966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } >/dev/null; then
5974 if test -s conftest.err; then
5975 ac_cpp_err=$ac_c_preproc_warn_flag
5976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5977 else
5978 ac_cpp_err=
5979 fi
5980 else
5981 ac_cpp_err=yes
5982 fi
5983 if test -z "$ac_cpp_err"; then
5984 # Broken: success on invalid input.
5985 continue
5986 else
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5989
5990 # Passes both tests.
5991 ac_preproc_ok=:
5992 break
5993 fi
5994 rm -f conftest.err conftest.$ac_ext
5995
5996 done
5997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5998 rm -f conftest.err conftest.$ac_ext
5999 if $ac_preproc_ok; then
6000 :
6001 else
6002 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6003 See \`config.log' for more details." >&5
6004 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6005 See \`config.log' for more details." >&2;}
6006 { (exit 1); exit 1; }; }
6007 fi
6008
6009 ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015
6016 echo "$as_me:$LINENO: checking for egrep" >&5
6017 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6018 if test "${ac_cv_prog_egrep+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6022 then ac_cv_prog_egrep='grep -E'
6023 else ac_cv_prog_egrep='egrep'
6024 fi
6025 fi
6026 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6027 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6028 EGREP=$ac_cv_prog_egrep
6029
6030
6031 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6033 if test "${ac_cv_header_stdc+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <stdlib.h>
6043 #include <stdarg.h>
6044 #include <string.h>
6045 #include <float.h>
6046
6047 int
6048 main ()
6049 {
6050
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; } &&
6070 { ac_try='test -s conftest.$ac_objext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_header_stdc=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 ac_cv_header_stdc=no
6082 fi
6083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6084
6085 if test $ac_cv_header_stdc = yes; then
6086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #include <string.h>
6094
6095 _ACEOF
6096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097 $EGREP "memchr" >/dev/null 2>&1; then
6098 :
6099 else
6100 ac_cv_header_stdc=no
6101 fi
6102 rm -f conftest*
6103
6104 fi
6105
6106 if test $ac_cv_header_stdc = yes; then
6107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 #include <stdlib.h>
6115
6116 _ACEOF
6117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6118 $EGREP "free" >/dev/null 2>&1; then
6119 :
6120 else
6121 ac_cv_header_stdc=no
6122 fi
6123 rm -f conftest*
6124
6125 fi
6126
6127 if test $ac_cv_header_stdc = yes; then
6128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6129 if test "$cross_compiling" = yes; then
6130 :
6131 else
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #include <ctype.h>
6139 #if ((' ' & 0x0FF) == 0x020)
6140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6142 #else
6143 # define ISLOWER(c) \
6144 (('a' <= (c) && (c) <= 'i') \
6145 || ('j' <= (c) && (c) <= 'r') \
6146 || ('s' <= (c) && (c) <= 'z'))
6147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6148 #endif
6149
6150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6151 int
6152 main ()
6153 {
6154 int i;
6155 for (i = 0; i < 256; i++)
6156 if (XOR (islower (i), ISLOWER (i))
6157 || toupper (i) != TOUPPER (i))
6158 exit(2);
6159 exit (0);
6160 }
6161 _ACEOF
6162 rm -f conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 :
6174 else
6175 echo "$as_me: program exited with status $ac_status" >&5
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 ( exit $ac_status )
6180 ac_cv_header_stdc=no
6181 fi
6182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 fi
6185 fi
6186 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6187 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6188 if test $ac_cv_header_stdc = yes; then
6189
6190 cat >>confdefs.h <<\_ACEOF
6191 #define STDC_HEADERS 1
6192 _ACEOF
6193
6194 fi
6195
6196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6207 inttypes.h stdint.h unistd.h
6208 do
6209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6210 echo "$as_me:$LINENO: checking for $ac_header" >&5
6211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 $ac_includes_default
6222
6223 #include <$ac_header>
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227 (eval $ac_compile) 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try='test -s conftest.$ac_objext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 eval "$as_ac_Header=yes"
6247 else
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251 eval "$as_ac_Header=no"
6252 fi
6253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254 fi
6255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6258 cat >>confdefs.h <<_ACEOF
6259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6260 _ACEOF
6261
6262 fi
6263
6264 done
6265
6266
6267 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6268 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
6269 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
6270 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 fi
6273 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
6274 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
6275 else
6276 # Is the header compilable?
6277 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
6278 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 $ac_includes_default
6286 #include <sys/dg_sys_info.h>
6287 _ACEOF
6288 rm -f conftest.$ac_objext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6290 (eval $ac_compile) 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest.$ac_objext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_header_compiler=yes
6310 else
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314 ac_header_compiler=no
6315 fi
6316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6318 echo "${ECHO_T}$ac_header_compiler" >&6
6319
6320 # Is the header present?
6321 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
6322 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 #include <sys/dg_sys_info.h>
6330 _ACEOF
6331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } >/dev/null; then
6339 if test -s conftest.err; then
6340 ac_cpp_err=$ac_c_preproc_warn_flag
6341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6342 else
6343 ac_cpp_err=
6344 fi
6345 else
6346 ac_cpp_err=yes
6347 fi
6348 if test -z "$ac_cpp_err"; then
6349 ac_header_preproc=yes
6350 else
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 ac_header_preproc=no
6355 fi
6356 rm -f conftest.err conftest.$ac_ext
6357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6358 echo "${ECHO_T}$ac_header_preproc" >&6
6359
6360 # So? What about this header?
6361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6362 yes:no: )
6363 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
6364 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
6366 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
6367 ac_header_preproc=yes
6368 ;;
6369 no:yes:* )
6370 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
6371 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
6372 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
6373 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
6375 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
6377 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
6378 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
6379 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
6381 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
6382 (
6383 cat <<\_ASBOX
6384 ## ------------------------------------------ ##
6385 ## Report this to the AC_PACKAGE_NAME lists. ##
6386 ## ------------------------------------------ ##
6387 _ASBOX
6388 ) |
6389 sed "s/^/$as_me: WARNING: /" >&2
6390 ;;
6391 esac
6392 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
6393 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
6394 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
6398 fi
6399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
6400 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
6401
6402 fi
6403 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
6404 ac_is_dgux=yes;
6405 fi
6406
6407
6408
6409 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
6410 echo "${ECHO_T}$ac_is_dgux" >&6
6411 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
6412 if test $ac_is_dgux = yes; then
6413 if test "$enable_full_debug" = "yes"; then
6414 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6415 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6416 else
6417 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6418 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6419 fi
6420
6421
6422 fi
6423
6424
6425 # Check whether --with-target-subdir or --without-target-subdir was given.
6426 if test "${with_target_subdir+set}" = set; then
6427 withval="$with_target_subdir"
6428
6429 fi;
6430
6431 # Check whether --with-cross-host or --without-cross-host was given.
6432 if test "${with_cross_host+set}" = set; then
6433 withval="$with_cross_host"
6434
6435 fi;
6436
6437 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
6438 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
6439 case "$host" in
6440 sparc-sun-solaris2*|*aix*)
6441 if test "$GCC" = yes; then
6442 echo "$as_me:$LINENO: result: yes" >&5
6443 echo "${ECHO_T}yes" >&6
6444 new_CFLAGS=
6445 for i in $CFLAGS; do
6446 case "$i" in
6447 -O*)
6448 ;;
6449 *)
6450 new_CFLAGS="$new_CFLAGS $i"
6451 ;;
6452 esac
6453 done
6454 CFLAGS="$new_CFLAGS"
6455 else
6456 echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6
6458 fi
6459 ;;
6460 *) echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6 ;;
6462 esac
6463
6464 MY_CFLAGS="$CFLAGS"
6465
6466
6467 cat >>confdefs.h <<\_ACEOF
6468 #define SILENT 1
6469 _ACEOF
6470
6471 cat >>confdefs.h <<\_ACEOF
6472 #define NO_SIGNALS 1
6473 _ACEOF
6474
6475 cat >>confdefs.h <<\_ACEOF
6476 #define ALL_INTERIOR_POINTERS 1
6477 _ACEOF
6478
6479
6480 cat >>confdefs.h <<\_ACEOF
6481 #define JAVA_FINALIZATION 1
6482 _ACEOF
6483
6484 cat >>confdefs.h <<\_ACEOF
6485 #define GC_GCJ_SUPPORT 1
6486 _ACEOF
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define ATOMIC_UNCOLLECTABLE 1
6490 _ACEOF
6491
6492
6493 if test -n "${with_cross_host}"; then
6494 cat >>confdefs.h <<\_ACEOF
6495 #define NO_SIGSET 1
6496 _ACEOF
6497
6498 cat >>confdefs.h <<\_ACEOF
6499 #define NO_DEBUGGING 1
6500 _ACEOF
6501
6502 fi
6503
6504 # Check whether --enable-full-debug or --disable-full-debug was given.
6505 if test "${enable_full_debug+set}" = set; then
6506 enableval="$enable_full_debug"
6507 if test "$enable_full_debug" = "yes"; then
6508 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
6509 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
6510 cat >>confdefs.h <<\_ACEOF
6511 #define KEEP_BACK_PTRS 1
6512 _ACEOF
6513
6514 cat >>confdefs.h <<\_ACEOF
6515 #define DBG_HDRS_ALL 1
6516 _ACEOF
6517
6518 case $host in
6519 ia64-*-linux* )
6520 cat >>confdefs.h <<\_ACEOF
6521 #define MAKE_BACK_GRAPH 1
6522 _ACEOF
6523
6524 ;;
6525 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
6526 cat >>confdefs.h <<\_ACEOF
6527 #define MAKE_BACK_GRAPH 1
6528 _ACEOF
6529
6530 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
6531 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
6532 cat >>confdefs.h <<\_ACEOF
6533 #define SAVE_CALL_COUNT 8
6534 _ACEOF
6535
6536 ;;
6537 i345686-*-dgux*)
6538 cat >>confdefs.h <<\_ACEOF
6539 #define MAKE_BACK_GRAPH 1
6540 _ACEOF
6541
6542 ;;
6543 esac
6544 fi
6545 fi;
6546
6547 if test -n "$with_cross_host" &&
6548 test x"$with_cross_host" != x"no"; then
6549 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
6550 toolexeclibdir='$(toolexecdir)/lib'
6551 else
6552 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
6553 toolexeclibdir='$(libdir)'
6554 fi
6555 multi_os_directory=`$CC -print-multi-os-directory`
6556 case $multi_os_directory in
6557 .) ;; # Avoid trailing /.
6558 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6559 esac
6560
6561
6562
6563 if test "${multilib}" = "yes"; then
6564 multilib_arg="--enable-multilib"
6565 else
6566 multilib_arg=
6567 fi
6568
6569 ac_config_commands="$ac_config_commands boehm-cflags"
6570
6571 ac_config_files="$ac_config_files Makefile include/Makefile"
6572
6573 cat >confcache <<\_ACEOF
6574 # This file is a shell script that caches the results of configure
6575 # tests run on this system so they can be shared between configure
6576 # scripts and configure runs, see configure's option --config-cache.
6577 # It is not useful on other systems. If it contains results you don't
6578 # want to keep, you may remove or edit it.
6579 #
6580 # config.status only pays attention to the cache file if you give it
6581 # the --recheck option to rerun configure.
6582 #
6583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6585 # following values.
6586
6587 _ACEOF
6588
6589 # The following way of writing the cache mishandles newlines in values,
6590 # but we know of no workaround that is simple, portable, and efficient.
6591 # So, don't put newlines in cache variables' values.
6592 # Ultrix sh set writes to stderr and can't be redirected directly,
6593 # and sets the high bit in the cache file unless we assign to the vars.
6594 {
6595 (set) 2>&1 |
6596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6597 *ac_space=\ *)
6598 # `set' does not quote correctly, so add quotes (double-quote
6599 # substitution turns \\\\ into \\, and sed turns \\ into \).
6600 sed -n \
6601 "s/'/'\\\\''/g;
6602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6603 ;;
6604 *)
6605 # `set' quotes correctly as required by POSIX, so do not add quotes.
6606 sed -n \
6607 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6608 ;;
6609 esac;
6610 } |
6611 sed '
6612 t clear
6613 : clear
6614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6615 t end
6616 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6617 : end' >>confcache
6618 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6619 if test -w $cache_file; then
6620 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6621 cat confcache >$cache_file
6622 else
6623 echo "not updating unwritable cache $cache_file"
6624 fi
6625 fi
6626 rm -f confcache
6627
6628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6629 # Let make expand exec_prefix.
6630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6631
6632 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6633 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6634 # trailing colons and then remove the whole line if VPATH becomes empty
6635 # (actually we leave an empty line to preserve line numbers).
6636 if test "x$srcdir" = x.; then
6637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6638 s/:*\$(srcdir):*/:/;
6639 s/:*\${srcdir}:*/:/;
6640 s/:*@srcdir@:*/:/;
6641 s/^\([^=]*=[ ]*\):*/\1/;
6642 s/:*$//;
6643 s/^[^=]*=[ ]*$//;
6644 }'
6645 fi
6646
6647 # Transform confdefs.h into DEFS.
6648 # Protect against shell expansion while executing Makefile rules.
6649 # Protect against Makefile macro expansion.
6650 #
6651 # If the first sed substitution is executed (which looks for macros that
6652 # take arguments), then we branch to the quote section. Otherwise,
6653 # look for a macro that doesn't take arguments.
6654 cat >confdef2opt.sed <<\_ACEOF
6655 t clear
6656 : clear
6657 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6658 t quote
6659 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6660 t quote
6661 d
6662 : quote
6663 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6664 s,\[,\\&,g
6665 s,\],\\&,g
6666 s,\$,$$,g
6667 p
6668 _ACEOF
6669 # We use echo to avoid assuming a particular line-breaking character.
6670 # The extra dot is to prevent the shell from consuming trailing
6671 # line-breaks from the sub-command output. A line-break within
6672 # single-quotes doesn't work because, if this script is created in a
6673 # platform that uses two characters for line-breaks (e.g., DOS), tr
6674 # would break.
6675 ac_LF_and_DOT=`echo; echo .`
6676 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6677 rm -f confdef2opt.sed
6678
6679
6680 ac_libobjs=
6681 ac_ltlibobjs=
6682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6683 # 1. Remove the extension, and $U if already installed.
6684 ac_i=`echo "$ac_i" |
6685 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6686 # 2. Add them.
6687 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6688 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6689 done
6690 LIBOBJS=$ac_libobjs
6691
6692 LTLIBOBJS=$ac_ltlibobjs
6693
6694
6695 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6696 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6697 Usually this means the macro was only invoked conditionally." >&5
6698 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6699 Usually this means the macro was only invoked conditionally." >&2;}
6700 { (exit 1); exit 1; }; }
6701 fi
6702 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6703 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6704 Usually this means the macro was only invoked conditionally." >&5
6705 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6706 Usually this means the macro was only invoked conditionally." >&2;}
6707 { (exit 1); exit 1; }; }
6708 fi
6709 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6710 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6711 Usually this means the macro was only invoked conditionally." >&5
6712 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6713 Usually this means the macro was only invoked conditionally." >&2;}
6714 { (exit 1); exit 1; }; }
6715 fi
6716 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6717 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6718 Usually this means the macro was only invoked conditionally." >&5
6719 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6720 Usually this means the macro was only invoked conditionally." >&2;}
6721 { (exit 1); exit 1; }; }
6722 fi
6723 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
6724 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
6725 Usually this means the macro was only invoked conditionally." >&5
6726 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
6727 Usually this means the macro was only invoked conditionally." >&2;}
6728 { (exit 1); exit 1; }; }
6729 fi
6730 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
6731 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
6732 Usually this means the macro was only invoked conditionally." >&5
6733 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
6734 Usually this means the macro was only invoked conditionally." >&2;}
6735 { (exit 1); exit 1; }; }
6736 fi
6737
6738 : ${CONFIG_STATUS=./config.status}
6739 ac_clean_files_save=$ac_clean_files
6740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6741 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6742 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6743 cat >$CONFIG_STATUS <<_ACEOF
6744 #! $SHELL
6745 # Generated by $as_me.
6746 # Run this file to recreate the current configuration.
6747 # Compiler output produced by configure, useful for debugging
6748 # configure, is in config.log if it exists.
6749
6750 debug=false
6751 ac_cs_recheck=false
6752 ac_cs_silent=false
6753 SHELL=\${CONFIG_SHELL-$SHELL}
6754 _ACEOF
6755
6756 cat >>$CONFIG_STATUS <<\_ACEOF
6757 ## --------------------- ##
6758 ## M4sh Initialization. ##
6759 ## --------------------- ##
6760
6761 # Be Bourne compatible
6762 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6763 emulate sh
6764 NULLCMD=:
6765 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6766 # is contrary to our usage. Disable this feature.
6767 alias -g '${1+"$@"}'='"$@"'
6768 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6769 set -o posix
6770 fi
6771 DUALCASE=1; export DUALCASE # for MKS sh
6772
6773 # Support unset when possible.
6774 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6775 as_unset=unset
6776 else
6777 as_unset=false
6778 fi
6779
6780
6781 # Work around bugs in pre-3.0 UWIN ksh.
6782 $as_unset ENV MAIL MAILPATH
6783 PS1='$ '
6784 PS2='> '
6785 PS4='+ '
6786
6787 # NLS nuisances.
6788 for as_var in \
6789 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6790 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6791 LC_TELEPHONE LC_TIME
6792 do
6793 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6794 eval $as_var=C; export $as_var
6795 else
6796 $as_unset $as_var
6797 fi
6798 done
6799
6800 # Required to use basename.
6801 if expr a : '\(a\)' >/dev/null 2>&1; then
6802 as_expr=expr
6803 else
6804 as_expr=false
6805 fi
6806
6807 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6808 as_basename=basename
6809 else
6810 as_basename=false
6811 fi
6812
6813
6814 # Name of the executable.
6815 as_me=`$as_basename "$0" ||
6816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6817 X"$0" : 'X\(//\)$' \| \
6818 X"$0" : 'X\(/\)$' \| \
6819 . : '\(.\)' 2>/dev/null ||
6820 echo X/"$0" |
6821 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6822 /^X\/\(\/\/\)$/{ s//\1/; q; }
6823 /^X\/\(\/\).*/{ s//\1/; q; }
6824 s/.*/./; q'`
6825
6826
6827 # PATH needs CR, and LINENO needs CR and PATH.
6828 # Avoid depending upon Character Ranges.
6829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6832 as_cr_digits='0123456789'
6833 as_cr_alnum=$as_cr_Letters$as_cr_digits
6834
6835 # The user is always right.
6836 if test "${PATH_SEPARATOR+set}" != set; then
6837 echo "#! /bin/sh" >conf$$.sh
6838 echo "exit 0" >>conf$$.sh
6839 chmod +x conf$$.sh
6840 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6841 PATH_SEPARATOR=';'
6842 else
6843 PATH_SEPARATOR=:
6844 fi
6845 rm -f conf$$.sh
6846 fi
6847
6848
6849 as_lineno_1=$LINENO
6850 as_lineno_2=$LINENO
6851 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6852 test "x$as_lineno_1" != "x$as_lineno_2" &&
6853 test "x$as_lineno_3" = "x$as_lineno_2" || {
6854 # Find who we are. Look in the path if we contain no path at all
6855 # relative or not.
6856 case $0 in
6857 *[\\/]* ) as_myself=$0 ;;
6858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6864 done
6865
6866 ;;
6867 esac
6868 # We did not find ourselves, most probably we were run as `sh COMMAND'
6869 # in which case we are not to be found in the path.
6870 if test "x$as_myself" = x; then
6871 as_myself=$0
6872 fi
6873 if test ! -f "$as_myself"; then
6874 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6875 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6876 { (exit 1); exit 1; }; }
6877 fi
6878 case $CONFIG_SHELL in
6879 '')
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6882 do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for as_base in sh bash ksh sh5; do
6886 case $as_dir in
6887 /*)
6888 if ("$as_dir/$as_base" -c '
6889 as_lineno_1=$LINENO
6890 as_lineno_2=$LINENO
6891 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6892 test "x$as_lineno_1" != "x$as_lineno_2" &&
6893 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6894 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6895 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6896 CONFIG_SHELL=$as_dir/$as_base
6897 export CONFIG_SHELL
6898 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6899 fi;;
6900 esac
6901 done
6902 done
6903 ;;
6904 esac
6905
6906 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6907 # uniformly replaced by the line number. The first 'sed' inserts a
6908 # line-number line before each line; the second 'sed' does the real
6909 # work. The second script uses 'N' to pair each line-number line
6910 # with the numbered line, and appends trailing '-' during
6911 # substitution so that $LINENO is not a special case at line end.
6912 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6913 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6914 sed '=' <$as_myself |
6915 sed '
6916 N
6917 s,$,-,
6918 : loop
6919 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6920 t loop
6921 s,-$,,
6922 s,^['$as_cr_digits']*\n,,
6923 ' >$as_me.lineno &&
6924 chmod +x $as_me.lineno ||
6925 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6926 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6927 { (exit 1); exit 1; }; }
6928
6929 # Don't try to exec as it changes $[0], causing all sort of problems
6930 # (the dirname of $[0] is not the place where we might find the
6931 # original and so on. Autoconf is especially sensible to this).
6932 . ./$as_me.lineno
6933 # Exit status is that of the last command.
6934 exit
6935 }
6936
6937
6938 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6939 *c*,-n*) ECHO_N= ECHO_C='
6940 ' ECHO_T=' ' ;;
6941 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6942 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6943 esac
6944
6945 if expr a : '\(a\)' >/dev/null 2>&1; then
6946 as_expr=expr
6947 else
6948 as_expr=false
6949 fi
6950
6951 rm -f conf$$ conf$$.exe conf$$.file
6952 echo >conf$$.file
6953 if ln -s conf$$.file conf$$ 2>/dev/null; then
6954 # We could just check for DJGPP; but this test a) works b) is more generic
6955 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6956 if test -f conf$$.exe; then
6957 # Don't use ln at all; we don't have any links
6958 as_ln_s='cp -p'
6959 else
6960 as_ln_s='ln -s'
6961 fi
6962 elif ln conf$$.file conf$$ 2>/dev/null; then
6963 as_ln_s=ln
6964 else
6965 as_ln_s='cp -p'
6966 fi
6967 rm -f conf$$ conf$$.exe conf$$.file
6968
6969 if mkdir -p . 2>/dev/null; then
6970 as_mkdir_p=:
6971 else
6972 test -d ./-p && rmdir ./-p
6973 as_mkdir_p=false
6974 fi
6975
6976 as_executable_p="test -f"
6977
6978 # Sed expression to map a string onto a valid CPP name.
6979 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6980
6981 # Sed expression to map a string onto a valid variable name.
6982 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6983
6984
6985 # IFS
6986 # We need space, tab and new line, in precisely that order.
6987 as_nl='
6988 '
6989 IFS=" $as_nl"
6990
6991 # CDPATH.
6992 $as_unset CDPATH
6993
6994 exec 6>&1
6995
6996 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6997 # report actual input values of CONFIG_FILES etc. instead of their
6998 # values after options handling. Logging --version etc. is OK.
6999 exec 5>>config.log
7000 {
7001 echo
7002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7003 ## Running $as_me. ##
7004 _ASBOX
7005 } >&5
7006 cat >&5 <<_CSEOF
7007
7008 This file was extended by $as_me, which was
7009 generated by GNU Autoconf 2.59. Invocation command line was
7010
7011 CONFIG_FILES = $CONFIG_FILES
7012 CONFIG_HEADERS = $CONFIG_HEADERS
7013 CONFIG_LINKS = $CONFIG_LINKS
7014 CONFIG_COMMANDS = $CONFIG_COMMANDS
7015 $ $0 $@
7016
7017 _CSEOF
7018 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7019 echo >&5
7020 _ACEOF
7021
7022 # Files that config.status was made for.
7023 if test -n "$ac_config_files"; then
7024 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7025 fi
7026
7027 if test -n "$ac_config_headers"; then
7028 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7029 fi
7030
7031 if test -n "$ac_config_links"; then
7032 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7033 fi
7034
7035 if test -n "$ac_config_commands"; then
7036 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7037 fi
7038
7039 cat >>$CONFIG_STATUS <<\_ACEOF
7040
7041 ac_cs_usage="\
7042 \`$as_me' instantiates files from templates according to the
7043 current configuration.
7044
7045 Usage: $0 [OPTIONS] [FILE]...
7046
7047 -h, --help print this help, then exit
7048 -V, --version print version number, then exit
7049 -q, --quiet do not print progress messages
7050 -d, --debug don't remove temporary files
7051 --recheck update $as_me by reconfiguring in the same conditions
7052 --file=FILE[:TEMPLATE]
7053 instantiate the configuration file FILE
7054
7055 Configuration files:
7056 $config_files
7057
7058 Configuration commands:
7059 $config_commands
7060
7061 Report bugs to <bug-autoconf@gnu.org>."
7062 _ACEOF
7063
7064 cat >>$CONFIG_STATUS <<_ACEOF
7065 ac_cs_version="\\
7066 config.status
7067 configured by $0, generated by GNU Autoconf 2.59,
7068 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7069
7070 Copyright (C) 2003 Free Software Foundation, Inc.
7071 This config.status script is free software; the Free Software Foundation
7072 gives unlimited permission to copy, distribute and modify it."
7073 srcdir=$srcdir
7074 INSTALL="$INSTALL"
7075 _ACEOF
7076
7077 cat >>$CONFIG_STATUS <<\_ACEOF
7078 # If no file are specified by the user, then we need to provide default
7079 # value. By we need to know if files were specified by the user.
7080 ac_need_defaults=:
7081 while test $# != 0
7082 do
7083 case $1 in
7084 --*=*)
7085 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7086 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7087 ac_shift=:
7088 ;;
7089 -*)
7090 ac_option=$1
7091 ac_optarg=$2
7092 ac_shift=shift
7093 ;;
7094 *) # This is not an option, so the user has probably given explicit
7095 # arguments.
7096 ac_option=$1
7097 ac_need_defaults=false;;
7098 esac
7099
7100 case $ac_option in
7101 # Handling of the options.
7102 _ACEOF
7103 cat >>$CONFIG_STATUS <<\_ACEOF
7104 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7105 ac_cs_recheck=: ;;
7106 --version | --vers* | -V )
7107 echo "$ac_cs_version"; exit 0 ;;
7108 --he | --h)
7109 # Conflict between --help and --header
7110 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7111 Try \`$0 --help' for more information." >&5
7112 echo "$as_me: error: ambiguous option: $1
7113 Try \`$0 --help' for more information." >&2;}
7114 { (exit 1); exit 1; }; };;
7115 --help | --hel | -h )
7116 echo "$ac_cs_usage"; exit 0 ;;
7117 --debug | --d* | -d )
7118 debug=: ;;
7119 --file | --fil | --fi | --f )
7120 $ac_shift
7121 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7122 ac_need_defaults=false;;
7123 --header | --heade | --head | --hea )
7124 $ac_shift
7125 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7126 ac_need_defaults=false;;
7127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7128 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7129 ac_cs_silent=: ;;
7130
7131 # This is an error.
7132 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7133 Try \`$0 --help' for more information." >&5
7134 echo "$as_me: error: unrecognized option: $1
7135 Try \`$0 --help' for more information." >&2;}
7136 { (exit 1); exit 1; }; } ;;
7137
7138 *) ac_config_targets="$ac_config_targets $1" ;;
7139
7140 esac
7141 shift
7142 done
7143
7144 ac_configure_extra_args=
7145
7146 if $ac_cs_silent; then
7147 exec 6>/dev/null
7148 ac_configure_extra_args="$ac_configure_extra_args --silent"
7149 fi
7150
7151 _ACEOF
7152 cat >>$CONFIG_STATUS <<_ACEOF
7153 if \$ac_cs_recheck; then
7154 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7155 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7156 fi
7157
7158 _ACEOF
7159
7160 cat >>$CONFIG_STATUS <<_ACEOF
7161 #
7162 # INIT-COMMANDS section.
7163 #
7164
7165
7166 srcdir="$srcdir"
7167 host="$host"
7168 target="$target"
7169 with_multisubdir="$with_multisubdir"
7170 with_multisrctop="$with_multisrctop"
7171 with_target_subdir="$with_target_subdir"
7172 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7173 multi_basedir="$multi_basedir"
7174 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7175 CC="$CC"
7176 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7177
7178 DEFS="$DEFS"
7179 AM_CPPFLAGS="$AM_CPPFLAGS"
7180
7181 _ACEOF
7182
7183
7184
7185 cat >>$CONFIG_STATUS <<\_ACEOF
7186 for ac_config_target in $ac_config_targets
7187 do
7188 case "$ac_config_target" in
7189 # Handling of arguments.
7190 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7191 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7192 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7193 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7194 "boehm-cflags" ) CONFIG_COMMANDS="$CONFIG_COMMANDS boehm-cflags" ;;
7195 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7196 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7197 { (exit 1); exit 1; }; };;
7198 esac
7199 done
7200
7201 # If the user did not use the arguments to specify the items to instantiate,
7202 # then the envvar interface is used. Set only those that are not.
7203 # We use the long form for the default assignment because of an extremely
7204 # bizarre bug on SunOS 4.1.3.
7205 if $ac_need_defaults; then
7206 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7207 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7208 fi
7209
7210 # Have a temporary directory for convenience. Make it in the build tree
7211 # simply because there is no reason to put it here, and in addition,
7212 # creating and moving files from /tmp can sometimes cause problems.
7213 # Create a temporary directory, and hook for its removal unless debugging.
7214 $debug ||
7215 {
7216 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7217 trap '{ (exit 1); exit 1; }' 1 2 13 15
7218 }
7219
7220 # Create a (secure) tmp directory for tmp files.
7221
7222 {
7223 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7224 test -n "$tmp" && test -d "$tmp"
7225 } ||
7226 {
7227 tmp=./confstat$$-$RANDOM
7228 (umask 077 && mkdir $tmp)
7229 } ||
7230 {
7231 echo "$me: cannot create a temporary directory in ." >&2
7232 { (exit 1); exit 1; }
7233 }
7234
7235 _ACEOF
7236
7237 cat >>$CONFIG_STATUS <<_ACEOF
7238
7239 #
7240 # CONFIG_FILES section.
7241 #
7242
7243 # No need to generate the scripts if there are no CONFIG_FILES.
7244 # This happens for instance when ./config.status config.h
7245 if test -n "\$CONFIG_FILES"; then
7246 # Protect against being on the right side of a sed subst in config.status.
7247 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7248 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7249 s,@SHELL@,$SHELL,;t t
7250 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7251 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7252 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7253 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7254 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7255 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7256 s,@exec_prefix@,$exec_prefix,;t t
7257 s,@prefix@,$prefix,;t t
7258 s,@program_transform_name@,$program_transform_name,;t t
7259 s,@bindir@,$bindir,;t t
7260 s,@sbindir@,$sbindir,;t t
7261 s,@libexecdir@,$libexecdir,;t t
7262 s,@datadir@,$datadir,;t t
7263 s,@sysconfdir@,$sysconfdir,;t t
7264 s,@sharedstatedir@,$sharedstatedir,;t t
7265 s,@localstatedir@,$localstatedir,;t t
7266 s,@libdir@,$libdir,;t t
7267 s,@includedir@,$includedir,;t t
7268 s,@oldincludedir@,$oldincludedir,;t t
7269 s,@infodir@,$infodir,;t t
7270 s,@mandir@,$mandir,;t t
7271 s,@build_alias@,$build_alias,;t t
7272 s,@host_alias@,$host_alias,;t t
7273 s,@target_alias@,$target_alias,;t t
7274 s,@DEFS@,$DEFS,;t t
7275 s,@ECHO_C@,$ECHO_C,;t t
7276 s,@ECHO_N@,$ECHO_N,;t t
7277 s,@ECHO_T@,$ECHO_T,;t t
7278 s,@LIBS@,$LIBS,;t t
7279 s,@multi_basedir@,$multi_basedir,;t t
7280 s,@build@,$build,;t t
7281 s,@build_cpu@,$build_cpu,;t t
7282 s,@build_vendor@,$build_vendor,;t t
7283 s,@build_os@,$build_os,;t t
7284 s,@host@,$host,;t t
7285 s,@host_cpu@,$host_cpu,;t t
7286 s,@host_vendor@,$host_vendor,;t t
7287 s,@host_os@,$host_os,;t t
7288 s,@target@,$target,;t t
7289 s,@target_cpu@,$target_cpu,;t t
7290 s,@target_vendor@,$target_vendor,;t t
7291 s,@target_os@,$target_os,;t t
7292 s,@mkinstalldirs@,$mkinstalldirs,;t t
7293 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7294 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7295 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7296 s,@CYGPATH_W@,$CYGPATH_W,;t t
7297 s,@PACKAGE@,$PACKAGE,;t t
7298 s,@VERSION@,$VERSION,;t t
7299 s,@ACLOCAL@,$ACLOCAL,;t t
7300 s,@AUTOCONF@,$AUTOCONF,;t t
7301 s,@AUTOMAKE@,$AUTOMAKE,;t t
7302 s,@AUTOHEADER@,$AUTOHEADER,;t t
7303 s,@MAKEINFO@,$MAKEINFO,;t t
7304 s,@AMTAR@,$AMTAR,;t t
7305 s,@install_sh@,$install_sh,;t t
7306 s,@STRIP@,$STRIP,;t t
7307 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7308 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7309 s,@mkdir_p@,$mkdir_p,;t t
7310 s,@AWK@,$AWK,;t t
7311 s,@SET_MAKE@,$SET_MAKE,;t t
7312 s,@am__leading_dot@,$am__leading_dot,;t t
7313 s,@CC@,$CC,;t t
7314 s,@ac_ct_CC@,$ac_ct_CC,;t t
7315 s,@EXEEXT@,$EXEEXT,;t t
7316 s,@OBJEXT@,$OBJEXT,;t t
7317 s,@DEPDIR@,$DEPDIR,;t t
7318 s,@am__include@,$am__include,;t t
7319 s,@am__quote@,$am__quote,;t t
7320 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7321 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7322 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7323 s,@CCDEPMODE@,$CCDEPMODE,;t t
7324 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7325 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7326 s,@CXX@,$CXX,;t t
7327 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7328 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7329 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
7330 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
7331 s,@CFLAGS@,$CFLAGS,;t t
7332 s,@CXXFLAGS@,$CXXFLAGS,;t t
7333 s,@CCAS@,$CCAS,;t t
7334 s,@CCASFLAGS@,$CCASFLAGS,;t t
7335 s,@AS@,$AS,;t t
7336 s,@ac_ct_AS@,$ac_ct_AS,;t t
7337 s,@AR@,$AR,;t t
7338 s,@ac_ct_AR@,$ac_ct_AR,;t t
7339 s,@RANLIB@,$RANLIB,;t t
7340 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7341 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7342 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7343 s,@MAINT@,$MAINT,;t t
7344 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
7345 s,@LN_S@,$LN_S,;t t
7346 s,@LIBTOOL@,$LIBTOOL,;t t
7347 s,@CXXCPP@,$CXXCPP,;t t
7348 s,@CPPFLAGS@,$CPPFLAGS,;t t
7349 s,@THREADLIBS@,$THREADLIBS,;t t
7350 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7351 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7352 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
7353 s,@target_all@,$target_all,;t t
7354 s,@target_noncanonical@,$target_noncanonical,;t t
7355 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
7356 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
7357 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
7358 s,@addobjs@,$addobjs,;t t
7359 s,@addincludes@,$addincludes,;t t
7360 s,@addlibs@,$addlibs,;t t
7361 s,@addtests@,$addtests,;t t
7362 s,@CPP@,$CPP,;t t
7363 s,@EGREP@,$EGREP,;t t
7364 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
7365 s,@toolexecdir@,$toolexecdir,;t t
7366 s,@toolexeclibdir@,$toolexeclibdir,;t t
7367 s,@LIBOBJS@,$LIBOBJS,;t t
7368 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7369 CEOF
7370
7371 _ACEOF
7372
7373 cat >>$CONFIG_STATUS <<\_ACEOF
7374 # Split the substitutions into bite-sized pieces for seds with
7375 # small command number limits, like on Digital OSF/1 and HP-UX.
7376 ac_max_sed_lines=48
7377 ac_sed_frag=1 # Number of current file.
7378 ac_beg=1 # First line for current file.
7379 ac_end=$ac_max_sed_lines # Line after last line for current file.
7380 ac_more_lines=:
7381 ac_sed_cmds=
7382 while $ac_more_lines; do
7383 if test $ac_beg -gt 1; then
7384 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7385 else
7386 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7387 fi
7388 if test ! -s $tmp/subs.frag; then
7389 ac_more_lines=false
7390 else
7391 # The purpose of the label and of the branching condition is to
7392 # speed up the sed processing (if there are no `@' at all, there
7393 # is no need to browse any of the substitutions).
7394 # These are the two extra sed commands mentioned above.
7395 (echo ':t
7396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7397 if test -z "$ac_sed_cmds"; then
7398 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7399 else
7400 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7401 fi
7402 ac_sed_frag=`expr $ac_sed_frag + 1`
7403 ac_beg=$ac_end
7404 ac_end=`expr $ac_end + $ac_max_sed_lines`
7405 fi
7406 done
7407 if test -z "$ac_sed_cmds"; then
7408 ac_sed_cmds=cat
7409 fi
7410 fi # test -n "$CONFIG_FILES"
7411
7412 _ACEOF
7413 cat >>$CONFIG_STATUS <<\_ACEOF
7414 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7415 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7416 case $ac_file in
7417 - | *:- | *:-:* ) # input from stdin
7418 cat >$tmp/stdin
7419 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7420 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7421 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7422 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7423 * ) ac_file_in=$ac_file.in ;;
7424 esac
7425
7426 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7427 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7429 X"$ac_file" : 'X\(//\)[^/]' \| \
7430 X"$ac_file" : 'X\(//\)$' \| \
7431 X"$ac_file" : 'X\(/\)' \| \
7432 . : '\(.\)' 2>/dev/null ||
7433 echo X"$ac_file" |
7434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7436 /^X\(\/\/\)$/{ s//\1/; q; }
7437 /^X\(\/\).*/{ s//\1/; q; }
7438 s/.*/./; q'`
7439 { if $as_mkdir_p; then
7440 mkdir -p "$ac_dir"
7441 else
7442 as_dir="$ac_dir"
7443 as_dirs=
7444 while test ! -d "$as_dir"; do
7445 as_dirs="$as_dir $as_dirs"
7446 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7448 X"$as_dir" : 'X\(//\)[^/]' \| \
7449 X"$as_dir" : 'X\(//\)$' \| \
7450 X"$as_dir" : 'X\(/\)' \| \
7451 . : '\(.\)' 2>/dev/null ||
7452 echo X"$as_dir" |
7453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7454 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7455 /^X\(\/\/\)$/{ s//\1/; q; }
7456 /^X\(\/\).*/{ s//\1/; q; }
7457 s/.*/./; q'`
7458 done
7459 test ! -n "$as_dirs" || mkdir $as_dirs
7460 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7461 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7462 { (exit 1); exit 1; }; }; }
7463
7464 ac_builddir=.
7465
7466 if test "$ac_dir" != .; then
7467 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7468 # A "../" for each directory in $ac_dir_suffix.
7469 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7470 else
7471 ac_dir_suffix= ac_top_builddir=
7472 fi
7473
7474 case $srcdir in
7475 .) # No --srcdir option. We are building in place.
7476 ac_srcdir=.
7477 if test -z "$ac_top_builddir"; then
7478 ac_top_srcdir=.
7479 else
7480 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7481 fi ;;
7482 [\\/]* | ?:[\\/]* ) # Absolute path.
7483 ac_srcdir=$srcdir$ac_dir_suffix;
7484 ac_top_srcdir=$srcdir ;;
7485 *) # Relative path.
7486 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7487 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7488 esac
7489
7490 # Do not use `cd foo && pwd` to compute absolute paths, because
7491 # the directories may not exist.
7492 case `pwd` in
7493 .) ac_abs_builddir="$ac_dir";;
7494 *)
7495 case "$ac_dir" in
7496 .) ac_abs_builddir=`pwd`;;
7497 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7498 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7499 esac;;
7500 esac
7501 case $ac_abs_builddir in
7502 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7503 *)
7504 case ${ac_top_builddir}. in
7505 .) ac_abs_top_builddir=$ac_abs_builddir;;
7506 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7507 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7508 esac;;
7509 esac
7510 case $ac_abs_builddir in
7511 .) ac_abs_srcdir=$ac_srcdir;;
7512 *)
7513 case $ac_srcdir in
7514 .) ac_abs_srcdir=$ac_abs_builddir;;
7515 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7516 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7517 esac;;
7518 esac
7519 case $ac_abs_builddir in
7520 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7521 *)
7522 case $ac_top_srcdir in
7523 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7524 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7525 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7526 esac;;
7527 esac
7528
7529
7530 case $INSTALL in
7531 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7532 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7533 esac
7534
7535 # Let's still pretend it is `configure' which instantiates (i.e., don't
7536 # use $as_me), people would be surprised to read:
7537 # /* config.h. Generated by config.status. */
7538 if test x"$ac_file" = x-; then
7539 configure_input=
7540 else
7541 configure_input="$ac_file. "
7542 fi
7543 configure_input=$configure_input"Generated from `echo $ac_file_in |
7544 sed 's,.*/,,'` by configure."
7545
7546 # First look for the input files in the build tree, otherwise in the
7547 # src tree.
7548 ac_file_inputs=`IFS=:
7549 for f in $ac_file_in; do
7550 case $f in
7551 -) echo $tmp/stdin ;;
7552 [\\/$]*)
7553 # Absolute (can't be DOS-style, as IFS=:)
7554 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7555 echo "$as_me: error: cannot find input file: $f" >&2;}
7556 { (exit 1); exit 1; }; }
7557 echo "$f";;
7558 *) # Relative
7559 if test -f "$f"; then
7560 # Build tree
7561 echo "$f"
7562 elif test -f "$srcdir/$f"; then
7563 # Source tree
7564 echo "$srcdir/$f"
7565 else
7566 # /dev/null tree
7567 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7568 echo "$as_me: error: cannot find input file: $f" >&2;}
7569 { (exit 1); exit 1; }; }
7570 fi;;
7571 esac
7572 done` || { (exit 1); exit 1; }
7573
7574 if test x"$ac_file" != x-; then
7575 { echo "$as_me:$LINENO: creating $ac_file" >&5
7576 echo "$as_me: creating $ac_file" >&6;}
7577 rm -f "$ac_file"
7578 fi
7579 _ACEOF
7580 cat >>$CONFIG_STATUS <<_ACEOF
7581 sed "$ac_vpsub
7582 $extrasub
7583 _ACEOF
7584 cat >>$CONFIG_STATUS <<\_ACEOF
7585 :t
7586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7587 s,@configure_input@,$configure_input,;t t
7588 s,@srcdir@,$ac_srcdir,;t t
7589 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7590 s,@top_srcdir@,$ac_top_srcdir,;t t
7591 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7592 s,@builddir@,$ac_builddir,;t t
7593 s,@abs_builddir@,$ac_abs_builddir,;t t
7594 s,@top_builddir@,$ac_top_builddir,;t t
7595 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7596 s,@INSTALL@,$ac_INSTALL,;t t
7597 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7598 rm -f $tmp/stdin
7599 if test x"$ac_file" != x-; then
7600 mv $tmp/out $ac_file
7601 else
7602 cat $tmp/out
7603 rm -f $tmp/out
7604 fi
7605
7606 done
7607 _ACEOF
7608 cat >>$CONFIG_STATUS <<\_ACEOF
7609
7610 #
7611 # CONFIG_COMMANDS section.
7612 #
7613 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7614 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7615 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7616 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7617 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7618 X"$ac_dest" : 'X\(//\)[^/]' \| \
7619 X"$ac_dest" : 'X\(//\)$' \| \
7620 X"$ac_dest" : 'X\(/\)' \| \
7621 . : '\(.\)' 2>/dev/null ||
7622 echo X"$ac_dest" |
7623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7625 /^X\(\/\/\)$/{ s//\1/; q; }
7626 /^X\(\/\).*/{ s//\1/; q; }
7627 s/.*/./; q'`
7628 { if $as_mkdir_p; then
7629 mkdir -p "$ac_dir"
7630 else
7631 as_dir="$ac_dir"
7632 as_dirs=
7633 while test ! -d "$as_dir"; do
7634 as_dirs="$as_dir $as_dirs"
7635 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7637 X"$as_dir" : 'X\(//\)[^/]' \| \
7638 X"$as_dir" : 'X\(//\)$' \| \
7639 X"$as_dir" : 'X\(/\)' \| \
7640 . : '\(.\)' 2>/dev/null ||
7641 echo X"$as_dir" |
7642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7644 /^X\(\/\/\)$/{ s//\1/; q; }
7645 /^X\(\/\).*/{ s//\1/; q; }
7646 s/.*/./; q'`
7647 done
7648 test ! -n "$as_dirs" || mkdir $as_dirs
7649 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7650 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7651 { (exit 1); exit 1; }; }; }
7652
7653 ac_builddir=.
7654
7655 if test "$ac_dir" != .; then
7656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7657 # A "../" for each directory in $ac_dir_suffix.
7658 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7659 else
7660 ac_dir_suffix= ac_top_builddir=
7661 fi
7662
7663 case $srcdir in
7664 .) # No --srcdir option. We are building in place.
7665 ac_srcdir=.
7666 if test -z "$ac_top_builddir"; then
7667 ac_top_srcdir=.
7668 else
7669 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7670 fi ;;
7671 [\\/]* | ?:[\\/]* ) # Absolute path.
7672 ac_srcdir=$srcdir$ac_dir_suffix;
7673 ac_top_srcdir=$srcdir ;;
7674 *) # Relative path.
7675 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7676 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7677 esac
7678
7679 # Do not use `cd foo && pwd` to compute absolute paths, because
7680 # the directories may not exist.
7681 case `pwd` in
7682 .) ac_abs_builddir="$ac_dir";;
7683 *)
7684 case "$ac_dir" in
7685 .) ac_abs_builddir=`pwd`;;
7686 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7687 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7688 esac;;
7689 esac
7690 case $ac_abs_builddir in
7691 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7692 *)
7693 case ${ac_top_builddir}. in
7694 .) ac_abs_top_builddir=$ac_abs_builddir;;
7695 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7696 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7697 esac;;
7698 esac
7699 case $ac_abs_builddir in
7700 .) ac_abs_srcdir=$ac_srcdir;;
7701 *)
7702 case $ac_srcdir in
7703 .) ac_abs_srcdir=$ac_abs_builddir;;
7704 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7705 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7706 esac;;
7707 esac
7708 case $ac_abs_builddir in
7709 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7710 *)
7711 case $ac_top_srcdir in
7712 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7713 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7714 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7715 esac;;
7716 esac
7717
7718
7719 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7720 echo "$as_me: executing $ac_dest commands" >&6;}
7721 case $ac_dest in
7722 default-1 )
7723 # Only add multilib support code if we just rebuilt the top-level
7724 # Makefile.
7725 case " $CONFIG_FILES " in
7726 *" Makefile "*)
7727 ac_file=Makefile . ${multi_basedir}/config-ml.in
7728 ;;
7729 esac ;;
7730 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7731 # Strip MF so we end up with the name of the file.
7732 mf=`echo "$mf" | sed -e 's/:.*$//'`
7733 # Check whether this is an Automake generated Makefile or not.
7734 # We used to match only the files named `Makefile.in', but
7735 # some people rename them; so instead we look at the file content.
7736 # Grep'ing the first line is not enough: some people post-process
7737 # each Makefile.in and add a new line on top of each file to say so.
7738 # So let's grep whole file.
7739 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7740 dirpart=`(dirname "$mf") 2>/dev/null ||
7741 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7742 X"$mf" : 'X\(//\)[^/]' \| \
7743 X"$mf" : 'X\(//\)$' \| \
7744 X"$mf" : 'X\(/\)' \| \
7745 . : '\(.\)' 2>/dev/null ||
7746 echo X"$mf" |
7747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7749 /^X\(\/\/\)$/{ s//\1/; q; }
7750 /^X\(\/\).*/{ s//\1/; q; }
7751 s/.*/./; q'`
7752 else
7753 continue
7754 fi
7755 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7756 # Extract the definition of DEP_FILES from the Makefile without
7757 # running `make'.
7758 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7759 test -z "$DEPDIR" && continue
7760 # When using ansi2knr, U may be empty or an underscore; expand it
7761 U=`sed -n 's/^U = //p' < "$mf"`
7762 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7763 # We invoke sed twice because it is the simplest approach to
7764 # changing $(DEPDIR) to its actual value in the expansion.
7765 for file in `sed -n '
7766 /^DEP_FILES = .*\\\\$/ {
7767 s/^DEP_FILES = //
7768 :loop
7769 s/\\\\$//
7770 p
7771 n
7772 /\\\\$/ b loop
7773 p
7774 }
7775 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7776 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7777 # Make sure the directory exists.
7778 test -f "$dirpart/$file" && continue
7779 fdir=`(dirname "$file") 2>/dev/null ||
7780 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7781 X"$file" : 'X\(//\)[^/]' \| \
7782 X"$file" : 'X\(//\)$' \| \
7783 X"$file" : 'X\(/\)' \| \
7784 . : '\(.\)' 2>/dev/null ||
7785 echo X"$file" |
7786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7788 /^X\(\/\/\)$/{ s//\1/; q; }
7789 /^X\(\/\).*/{ s//\1/; q; }
7790 s/.*/./; q'`
7791 { if $as_mkdir_p; then
7792 mkdir -p $dirpart/$fdir
7793 else
7794 as_dir=$dirpart/$fdir
7795 as_dirs=
7796 while test ! -d "$as_dir"; do
7797 as_dirs="$as_dir $as_dirs"
7798 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7800 X"$as_dir" : 'X\(//\)[^/]' \| \
7801 X"$as_dir" : 'X\(//\)$' \| \
7802 X"$as_dir" : 'X\(/\)' \| \
7803 . : '\(.\)' 2>/dev/null ||
7804 echo X"$as_dir" |
7805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7807 /^X\(\/\/\)$/{ s//\1/; q; }
7808 /^X\(\/\).*/{ s//\1/; q; }
7809 s/.*/./; q'`
7810 done
7811 test ! -n "$as_dirs" || mkdir $as_dirs
7812 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7813 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7814 { (exit 1); exit 1; }; }; }
7815
7816 # echo "creating $dirpart/$file"
7817 echo '# dummy' > "$dirpart/$file"
7818 done
7819 done
7820 ;;
7821 boehm-cflags )
7822 echo "$AM_CPPFLAGS $DEFS" > boehm-cflags ;;
7823 esac
7824 done
7825 _ACEOF
7826
7827 cat >>$CONFIG_STATUS <<\_ACEOF
7828
7829 { (exit 0); exit 0; }
7830 _ACEOF
7831 chmod +x $CONFIG_STATUS
7832 ac_clean_files=$ac_clean_files_save
7833
7834
7835 # configure is writing to config.log, and then calls config.status.
7836 # config.status does its own redirection, appending to config.log.
7837 # Unfortunately, on DOS this fails, as config.log is still kept open
7838 # by configure, so config.status won't be able to write to it; its
7839 # output is simply discarded. So we exec the FD to /dev/null,
7840 # effectively closing config.log, so it can be properly (re)opened and
7841 # appended to by config.status. When coming back to configure, we
7842 # need to make the FD available again.
7843 if test "$no_create" != yes; then
7844 ac_cs_success=:
7845 ac_config_status_args=
7846 test "$silent" = yes &&
7847 ac_config_status_args="$ac_config_status_args --quiet"
7848 exec 5>/dev/null
7849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7850 exec 5>>config.log
7851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7852 # would make configure fail if this is the last instruction.
7853 $ac_cs_success || { (exit 1); exit 1; }
7854 fi
7855