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