2002-08-27 Nick Clifton <nickc@redhat.com>
[official-gcc.git] / boehm-gc / configure
blobf6b2277188cb4e43fa70a7164d68eb7614c75c2e
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16 ac_help="$ac_help
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
19 ac_help="$ac_help
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-static[=PKGS] build static libraries [default=yes]"
23 ac_help="$ac_help
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
25 ac_help="$ac_help
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
27 ac_help="$ac_help
28 --disable-libtool-lock avoid locking (might break parallel builds)"
29 ac_help="$ac_help
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
31 ac_help="$ac_help
32 --with-target-subdir=SUBDIR
33 configuring with a cross compiler"
34 ac_help="$ac_help
35 --with-cross-host=HOST configuring with a cross compiler"
36 ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39 ac_help="$ac_help
40 --enable-parallel-mark parallelize marking and free list construction"
41 ac_help="$ac_help
42 --with-ecos enable runtime eCos target support"
43 ac_help="$ac_help
44 --enable-shared[=PKGS] build shared libraries [default=no]"
45 ac_help="$ac_help
46 --enable-full-debug include full support for pointer backtracing etc."
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
51 build=NONE
52 cache_file=./config.cache
53 exec_prefix=NONE
54 host=NONE
55 no_create=
56 nonopt=NONE
57 no_recursion=
58 prefix=NONE
59 program_prefix=NONE
60 program_suffix=NONE
61 program_transform_name=s,x,x,
62 silent=
63 site=
64 sitefile=
65 srcdir=
66 target=NONE
67 verbose=
68 x_includes=NONE
69 x_libraries=NONE
70 bindir='${exec_prefix}/bin'
71 sbindir='${exec_prefix}/sbin'
72 libexecdir='${exec_prefix}/libexec'
73 datadir='${prefix}/share'
74 sysconfdir='${prefix}/etc'
75 sharedstatedir='${prefix}/com'
76 localstatedir='${prefix}/var'
77 libdir='${exec_prefix}/lib'
78 includedir='${prefix}/include'
79 oldincludedir='/usr/include'
80 infodir='${prefix}/info'
81 mandir='${prefix}/man'
83 # Initialize some other variables.
84 subdirs=
85 MFLAGS= MAKEFLAGS=
86 SHELL=${CONFIG_SHELL-/bin/sh}
87 # Maximum number of lines to put in a shell here document.
88 ac_max_here_lines=12
90 ac_prev=
91 for ac_option
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
97 ac_prev=
98 continue
101 case "$ac_option" in
102 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 *) ac_optarg= ;;
104 esac
106 # Accept the important Cygnus configure options, so we can diagnose typos.
108 case "$ac_option" in
110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
111 ac_prev=bindir ;;
112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
113 bindir="$ac_optarg" ;;
115 -build | --build | --buil | --bui | --bu)
116 ac_prev=build ;;
117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
118 build="$ac_optarg" ;;
120 -cache-file | --cache-file | --cache-fil | --cache-fi \
121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
122 ac_prev=cache_file ;;
123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
125 cache_file="$ac_optarg" ;;
127 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
128 ac_prev=datadir ;;
129 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
130 | --da=*)
131 datadir="$ac_optarg" ;;
133 -disable-* | --disable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}=no" ;;
142 -enable-* | --enable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 case "$ac_option" in
150 *=*) ;;
151 *) ac_optarg=yes ;;
152 esac
153 eval "enable_${ac_feature}='$ac_optarg'" ;;
155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
157 | --exec | --exe | --ex)
158 ac_prev=exec_prefix ;;
159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
161 | --exec=* | --exe=* | --ex=*)
162 exec_prefix="$ac_optarg" ;;
164 -gas | --gas | --ga | --g)
165 # Obsolete; use --with-gas.
166 with_gas=yes ;;
168 -help | --help | --hel | --he)
169 # Omit some internal or obsolete options to make the list less imposing.
170 # This message is too long to be a string in the A/UX 3.1 sh.
171 cat << EOF
172 Usage: configure [options] [host]
173 Options: [defaults in brackets after descriptions]
174 Configuration:
175 --cache-file=FILE cache test results in FILE
176 --help print this message
177 --no-create do not create output files
178 --quiet, --silent do not print \`checking...' messages
179 --site-file=FILE use FILE as the site file
180 --version print the version of autoconf that created configure
181 Directory and file names:
182 --prefix=PREFIX install architecture-independent files in PREFIX
183 [$ac_default_prefix]
184 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
185 [same as prefix]
186 --bindir=DIR user executables in DIR [EPREFIX/bin]
187 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
188 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
189 --datadir=DIR read-only architecture-independent data in DIR
190 [PREFIX/share]
191 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
192 --sharedstatedir=DIR modifiable architecture-independent data in DIR
193 [PREFIX/com]
194 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
195 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
196 --includedir=DIR C header files in DIR [PREFIX/include]
197 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
198 --infodir=DIR info documentation in DIR [PREFIX/info]
199 --mandir=DIR man documentation in DIR [PREFIX/man]
200 --srcdir=DIR find the sources in DIR [configure dir or ..]
201 --program-prefix=PREFIX prepend PREFIX to installed program names
202 --program-suffix=SUFFIX append SUFFIX to installed program names
203 --program-transform-name=PROGRAM
204 run sed PROGRAM on installed program names
206 cat << EOF
207 Host type:
208 --build=BUILD configure for building on BUILD [BUILD=HOST]
209 --host=HOST configure for HOST [guessed]
210 --target=TARGET configure for TARGET [TARGET=HOST]
211 Features and packages:
212 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
213 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
214 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
215 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
216 --x-includes=DIR X include files are in DIR
217 --x-libraries=DIR X library files are in DIR
219 if test -n "$ac_help"; then
220 echo "--enable and --with options recognized:$ac_help"
222 exit 0 ;;
224 -host | --host | --hos | --ho)
225 ac_prev=host ;;
226 -host=* | --host=* | --hos=* | --ho=*)
227 host="$ac_optarg" ;;
229 -includedir | --includedir | --includedi | --included | --include \
230 | --includ | --inclu | --incl | --inc)
231 ac_prev=includedir ;;
232 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
233 | --includ=* | --inclu=* | --incl=* | --inc=*)
234 includedir="$ac_optarg" ;;
236 -infodir | --infodir | --infodi | --infod | --info | --inf)
237 ac_prev=infodir ;;
238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
239 infodir="$ac_optarg" ;;
241 -libdir | --libdir | --libdi | --libd)
242 ac_prev=libdir ;;
243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
244 libdir="$ac_optarg" ;;
246 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
247 | --libexe | --libex | --libe)
248 ac_prev=libexecdir ;;
249 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
250 | --libexe=* | --libex=* | --libe=*)
251 libexecdir="$ac_optarg" ;;
253 -localstatedir | --localstatedir | --localstatedi | --localstated \
254 | --localstate | --localstat | --localsta | --localst \
255 | --locals | --local | --loca | --loc | --lo)
256 ac_prev=localstatedir ;;
257 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
258 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
259 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
260 localstatedir="$ac_optarg" ;;
262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
263 ac_prev=mandir ;;
264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
265 mandir="$ac_optarg" ;;
267 -nfp | --nfp | --nf)
268 # Obsolete; use --without-fp.
269 with_fp=no ;;
271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 | --no-cr | --no-c)
273 no_create=yes ;;
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
277 no_recursion=yes ;;
279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
281 | --oldin | --oldi | --old | --ol | --o)
282 ac_prev=oldincludedir ;;
283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
286 oldincludedir="$ac_optarg" ;;
288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
289 ac_prev=prefix ;;
290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
291 prefix="$ac_optarg" ;;
293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
294 | --program-pre | --program-pr | --program-p)
295 ac_prev=program_prefix ;;
296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
298 program_prefix="$ac_optarg" ;;
300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
301 | --program-suf | --program-su | --program-s)
302 ac_prev=program_suffix ;;
303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
305 program_suffix="$ac_optarg" ;;
307 -program-transform-name | --program-transform-name \
308 | --program-transform-nam | --program-transform-na \
309 | --program-transform-n | --program-transform- \
310 | --program-transform | --program-transfor \
311 | --program-transfo | --program-transf \
312 | --program-trans | --program-tran \
313 | --progr-tra | --program-tr | --program-t)
314 ac_prev=program_transform_name ;;
315 -program-transform-name=* | --program-transform-name=* \
316 | --program-transform-nam=* | --program-transform-na=* \
317 | --program-transform-n=* | --program-transform-=* \
318 | --program-transform=* | --program-transfor=* \
319 | --program-transfo=* | --program-transf=* \
320 | --program-trans=* | --program-tran=* \
321 | --progr-tra=* | --program-tr=* | --program-t=*)
322 program_transform_name="$ac_optarg" ;;
324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
325 | -silent | --silent | --silen | --sile | --sil)
326 silent=yes ;;
328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
329 ac_prev=sbindir ;;
330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
331 | --sbi=* | --sb=*)
332 sbindir="$ac_optarg" ;;
334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
336 | --sharedst | --shareds | --shared | --share | --shar \
337 | --sha | --sh)
338 ac_prev=sharedstatedir ;;
339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
342 | --sha=* | --sh=*)
343 sharedstatedir="$ac_optarg" ;;
345 -site | --site | --sit)
346 ac_prev=site ;;
347 -site=* | --site=* | --sit=*)
348 site="$ac_optarg" ;;
350 -site-file | --site-file | --site-fil | --site-fi | --site-f)
351 ac_prev=sitefile ;;
352 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
353 sitefile="$ac_optarg" ;;
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
356 ac_prev=srcdir ;;
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
368 ac_prev=target ;;
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 verbose=yes ;;
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
377 exit 0 ;;
379 -with-* | --with-*)
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
401 --x)
402 # Obsolete; use --with-x.
403 with_x=yes ;;
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429 nonopt="$ac_option"
432 esac
433 done
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
442 # 0 standard input
443 # 1 file creation
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
450 exec 6>/dev/null
451 else
452 exec 6>&1
454 exec 5>./config.log
456 echo "\
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
459 " 1>&5
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
463 ac_configure_args=
464 for ac_arg
466 case "$ac_arg" in
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
474 esac
475 done
477 # NLS nuisances.
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 echo > confdefs.h
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=gcj_mlc.c
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
500 ac_prog=$0
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
503 srcdir=$ac_confdir
504 if test ! -r $srcdir/$ac_unique_file; then
505 srcdir=..
507 else
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513 else
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$sitefile"; then
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE; then
523 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 else
525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 else
529 CONFIG_SITE="$sitefile"
531 for ac_site_file in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
534 . "$ac_site_file"
536 done
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
540 . $cache_file
541 else
542 echo "creating cache $cache_file"
543 > $cache_file
546 ac_ext=c
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp='$CPP $CPPFLAGS'
549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling=$ac_cv_prog_cc_cross
553 ac_exeext=
554 ac_objext=o
555 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='
559 ' ac_t=' '
560 else
561 ac_n=-n ac_c= ac_t=
563 else
564 ac_n= ac_c='\c' ac_t=
569 # This works around the fact that libtool configuration may change LD
570 # for this particular configuration, but some shells, instead of
571 # keeping the changes in LD private, export them just because LD is
572 # exported.
573 ORIGINAL_LD_FOR_MULTILIBS=$LD
575 ac_aux_dir=
576 for ac_dir in . $srcdir/.; do
577 if test -f $ac_dir/install-sh; then
578 ac_aux_dir=$ac_dir
579 ac_install_sh="$ac_aux_dir/install-sh -c"
580 break
581 elif test -f $ac_dir/install.sh; then
582 ac_aux_dir=$ac_dir
583 ac_install_sh="$ac_aux_dir/install.sh -c"
584 break
586 done
587 if test -z "$ac_aux_dir"; then
588 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
590 ac_config_guess=$ac_aux_dir/config.guess
591 ac_config_sub=$ac_aux_dir/config.sub
592 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
595 # Find a good install program. We prefer a C program (faster),
596 # so one script is as good as another. But avoid the broken or
597 # incompatible versions:
598 # SysV /etc/install, /usr/sbin/install
599 # SunOS /usr/etc/install
600 # IRIX /sbin/install
601 # AIX /bin/install
602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
605 # ./install, which can be erroneously created by make from ./install.sh.
606 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
607 echo "configure:608: checking for a BSD compatible install" >&5
608 if test -z "$INSTALL"; then
609 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
611 else
612 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
613 for ac_dir in $PATH; do
614 # Account for people who put trailing slashes in PATH elements.
615 case "$ac_dir/" in
616 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
618 # OSF1 and SCO ODT 3.0 have their own names for install.
619 # Don't use installbsd from OSF since it installs stuff as root
620 # by default.
621 for ac_prog in ginstall scoinst install; do
622 if test -f $ac_dir/$ac_prog; then
623 if test $ac_prog = install &&
624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
625 # AIX install. It has an incompatible calling convention.
627 else
628 ac_cv_path_install="$ac_dir/$ac_prog -c"
629 break 2
632 done
634 esac
635 done
636 IFS="$ac_save_IFS"
639 if test "${ac_cv_path_install+set}" = set; then
640 INSTALL="$ac_cv_path_install"
641 else
642 # As a last resort, use the slow shell script. We don't cache a
643 # path for INSTALL within a source directory, because that will
644 # break other packages using the cache if that directory is
645 # removed, or if the path is relative.
646 INSTALL="$ac_install_sh"
649 echo "$ac_t""$INSTALL" 1>&6
651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
652 # It thinks the first close brace ends the variable substitution.
653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
659 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
660 echo "configure:661: checking whether build environment is sane" >&5
661 # Just in case
662 sleep 1
663 echo timestamp > conftestfile
664 # Do `set' in a subshell so we don't clobber the current shell's
665 # arguments. Must try -L first in case configure is actually a
666 # symlink; some systems play weird games with the mod time of symlinks
667 # (eg FreeBSD returns the mod time of the symlink's containing
668 # directory).
669 if (
670 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
671 if test "$*" = "X"; then
672 # -L didn't work.
673 set X `ls -t $srcdir/configure conftestfile`
675 if test "$*" != "X $srcdir/configure conftestfile" \
676 && test "$*" != "X conftestfile $srcdir/configure"; then
678 # If neither matched, then we have a broken ls. This can happen
679 # if, for instance, CONFIG_SHELL is bash and it inherits a
680 # broken ls alias from the environment. This has actually
681 # happened. Such a system could not be considered "sane".
682 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
683 alias in your environment" 1>&2; exit 1; }
686 test "$2" = conftestfile
688 then
689 # Ok.
691 else
692 { echo "configure: error: newly created file is older than distributed files!
693 Check your system clock" 1>&2; exit 1; }
695 rm -f conftest*
696 echo "$ac_t""yes" 1>&6
697 if test "$program_transform_name" = s,x,x,; then
698 program_transform_name=
699 else
700 # Double any \ or $. echo might interpret backslashes.
701 cat <<\EOF_SED > conftestsed
702 s,\\,\\\\,g; s,\$,$$,g
703 EOF_SED
704 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
705 rm -f conftestsed
707 test "$program_prefix" != NONE &&
708 program_transform_name="s,^,${program_prefix},; $program_transform_name"
709 # Use a double $ so make ignores it.
710 test "$program_suffix" != NONE &&
711 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
713 # sed with no file args requires a program.
714 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
716 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
717 echo "configure:718: checking whether ${MAKE-make} sets \${MAKE}" >&5
718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
719 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
721 else
722 cat > conftestmake <<\EOF
723 all:
724 @echo 'ac_maketemp="${MAKE}"'
726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
727 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
728 if test -n "$ac_maketemp"; then
729 eval ac_cv_prog_make_${ac_make}_set=yes
730 else
731 eval ac_cv_prog_make_${ac_make}_set=no
733 rm -f conftestmake
735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
736 echo "$ac_t""yes" 1>&6
737 SET_MAKE=
738 else
739 echo "$ac_t""no" 1>&6
740 SET_MAKE="MAKE=${MAKE-make}"
743 if test $host != $build; then
744 ac_tool_prefix=${host_alias}-
745 else
746 ac_tool_prefix=
749 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
750 echo "configure:751: checking for Cygwin environment" >&5
751 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 cat > conftest.$ac_ext <<EOF
755 #line 756 "configure"
756 #include "confdefs.h"
758 int main() {
760 #ifndef __CYGWIN__
761 #define __CYGWIN__ __CYGWIN32__
762 #endif
763 return __CYGWIN__;
764 ; return 0; }
766 if { (eval echo configure:767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
767 rm -rf conftest*
768 ac_cv_cygwin=yes
769 else
770 echo "configure: failed program was:" >&5
771 cat conftest.$ac_ext >&5
772 rm -rf conftest*
773 ac_cv_cygwin=no
775 rm -f conftest*
776 rm -f conftest*
779 echo "$ac_t""$ac_cv_cygwin" 1>&6
780 CYGWIN=
781 test "$ac_cv_cygwin" = yes && CYGWIN=yes
782 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
783 echo "configure:784: checking for mingw32 environment" >&5
784 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 cat > conftest.$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
791 int main() {
792 return __MINGW32__;
793 ; return 0; }
795 if { (eval echo configure:796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
796 rm -rf conftest*
797 ac_cv_mingw32=yes
798 else
799 echo "configure: failed program was:" >&5
800 cat conftest.$ac_ext >&5
801 rm -rf conftest*
802 ac_cv_mingw32=no
804 rm -f conftest*
805 rm -f conftest*
808 echo "$ac_t""$ac_cv_mingw32" 1>&6
809 MINGW32=
810 test "$ac_cv_mingw32" = yes && MINGW32=yes
812 # Check whether --enable-multilib or --disable-multilib was given.
813 if test "${enable_multilib+set}" = set; then
814 enableval="$enable_multilib"
815 case "${enableval}" in
816 yes) multilib=yes ;;
817 no) multilib=no ;;
818 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
819 esac
820 else
821 multilib=yes
825 if test "${srcdir}" = "."; then
826 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
827 gc_basedir="${srcdir}/${with_multisrctop}../."
828 else
829 gc_basedir="${srcdir}/${with_multisrctop}."
831 else
832 gc_basedir="${srcdir}/."
835 ac_aux_dir=
836 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
837 if test -f $ac_dir/install-sh; then
838 ac_aux_dir=$ac_dir
839 ac_install_sh="$ac_aux_dir/install-sh -c"
840 break
841 elif test -f $ac_dir/install.sh; then
842 ac_aux_dir=$ac_dir
843 ac_install_sh="$ac_aux_dir/install.sh -c"
844 break
846 done
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; }
850 ac_config_guess=$ac_aux_dir/config.guess
851 ac_config_sub=$ac_aux_dir/config.sub
852 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
854 if :; then :; else
855 # This overrides the previous occurrence for automake, but not for
856 # autoconf, which is exactly what we want.
857 ac_aux_dir=
858 for ac_dir in .. $srcdir/..; do
859 if test -f $ac_dir/install-sh; then
860 ac_aux_dir=$ac_dir
861 ac_install_sh="$ac_aux_dir/install-sh -c"
862 break
863 elif test -f $ac_dir/install.sh; then
864 ac_aux_dir=$ac_dir
865 ac_install_sh="$ac_aux_dir/install.sh -c"
866 break
868 done
869 if test -z "$ac_aux_dir"; then
870 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
872 ac_config_guess=$ac_aux_dir/config.guess
873 ac_config_sub=$ac_aux_dir/config.sub
874 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
879 # Do some error checking and defaulting for the host and target type.
880 # The inputs are:
881 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
883 # The rules are:
884 # 1. You are not allowed to specify --host, --target, and nonopt at the
885 # same time.
886 # 2. Host defaults to nonopt.
887 # 3. If nonopt is not specified, then host defaults to the current host,
888 # as determined by config.guess.
889 # 4. Target and build default to nonopt.
890 # 5. If nonopt is not specified, then target and build default to host.
892 # The aliases save the names the user supplied, while $host etc.
893 # will get canonicalized.
894 case $host---$target---$nonopt in
895 NONE---*---* | *---NONE---* | *---*---NONE) ;;
896 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
897 esac
900 # Make sure we can run config.sub.
901 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
902 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
905 echo $ac_n "checking host system type""... $ac_c" 1>&6
906 echo "configure:907: checking host system type" >&5
908 host_alias=$host
909 case "$host_alias" in
910 NONE)
911 case $nonopt in
912 NONE)
913 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
914 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
915 fi ;;
916 *) host_alias=$nonopt ;;
917 esac ;;
918 esac
920 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
921 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
922 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
923 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
924 echo "$ac_t""$host" 1>&6
926 echo $ac_n "checking target system type""... $ac_c" 1>&6
927 echo "configure:928: checking target system type" >&5
929 target_alias=$target
930 case "$target_alias" in
931 NONE)
932 case $nonopt in
933 NONE) target_alias=$host_alias ;;
934 *) target_alias=$nonopt ;;
935 esac ;;
936 esac
938 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
939 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
940 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
941 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
942 echo "$ac_t""$target" 1>&6
944 echo $ac_n "checking build system type""... $ac_c" 1>&6
945 echo "configure:946: checking build system type" >&5
947 build_alias=$build
948 case "$build_alias" in
949 NONE)
950 case $nonopt in
951 NONE) build_alias=$host_alias ;;
952 *) build_alias=$nonopt ;;
953 esac ;;
954 esac
956 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
957 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
958 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
959 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
960 echo "$ac_t""$build" 1>&6
962 test "$host_alias" != "$target_alias" &&
963 test "$program_prefix$program_suffix$program_transform_name" = \
964 NONENONEs,x,x, &&
965 program_prefix=${target_alias}-
968 # This works around an automake problem.
969 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
973 PACKAGE=gc
975 VERSION=6.0
977 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
978 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
983 missing_dir=`cd $ac_aux_dir && pwd`
984 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
985 echo "configure:986: checking for working aclocal" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
990 ACLOCAL=aclocal
991 echo "$ac_t""found" 1>&6
992 else
993 ACLOCAL="$missing_dir/missing aclocal"
994 echo "$ac_t""missing" 1>&6
997 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
998 echo "configure:999: checking for working autoconf" >&5
999 # Run test in a subshell; some versions of sh will print an error if
1000 # an executable is not found, even if stderr is redirected.
1001 # Redirect stdin to placate older versions of autoconf. Sigh.
1002 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1003 AUTOCONF=autoconf
1004 echo "$ac_t""found" 1>&6
1005 else
1006 AUTOCONF="$missing_dir/missing autoconf"
1007 echo "$ac_t""missing" 1>&6
1010 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1011 echo "configure:1012: checking for working automake" >&5
1012 # Run test in a subshell; some versions of sh will print an error if
1013 # an executable is not found, even if stderr is redirected.
1014 # Redirect stdin to placate older versions of autoconf. Sigh.
1015 if (automake --version) < /dev/null > /dev/null 2>&1; then
1016 AUTOMAKE=automake
1017 echo "$ac_t""found" 1>&6
1018 else
1019 AUTOMAKE="$missing_dir/missing automake"
1020 echo "$ac_t""missing" 1>&6
1023 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1024 echo "configure:1025: checking for working autoheader" >&5
1025 # Run test in a subshell; some versions of sh will print an error if
1026 # an executable is not found, even if stderr is redirected.
1027 # Redirect stdin to placate older versions of autoconf. Sigh.
1028 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1029 AUTOHEADER=autoheader
1030 echo "$ac_t""found" 1>&6
1031 else
1032 AUTOHEADER="$missing_dir/missing autoheader"
1033 echo "$ac_t""missing" 1>&6
1036 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1037 echo "configure:1038: checking for working makeinfo" >&5
1038 # Run test in a subshell; some versions of sh will print an error if
1039 # an executable is not found, even if stderr is redirected.
1040 # Redirect stdin to placate older versions of autoconf. Sigh.
1041 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1042 MAKEINFO=makeinfo
1043 echo "$ac_t""found" 1>&6
1044 else
1045 MAKEINFO="$missing_dir/missing makeinfo"
1046 echo "$ac_t""missing" 1>&6
1051 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1052 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1053 # are probably using a cross compiler, which will not be able to fully
1054 # link an executable. This should really be fixed in autoconf
1055 # itself.
1060 # Extract the first word of "gcc", so it can be a program name with args.
1061 set dummy gcc; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066 else
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1069 else
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1071 ac_dummy="$PATH"
1072 for ac_dir in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 ac_cv_prog_CC="gcc"
1076 break
1078 done
1079 IFS="$ac_save_ifs"
1082 CC="$ac_cv_prog_CC"
1083 if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1085 else
1086 echo "$ac_t""no" 1>&6
1089 if test -z "$CC"; then
1090 # Extract the first word of "cc", so it can be a program name with args.
1091 set dummy cc; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC="$CC" # Let the user override the test.
1099 else
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 ac_prog_rejected=no
1102 ac_dummy="$PATH"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107 ac_prog_rejected=yes
1108 continue
1110 ac_cv_prog_CC="cc"
1111 break
1113 done
1114 IFS="$ac_save_ifs"
1115 if test $ac_prog_rejected = yes; then
1116 # We found a bogon in the path, so make sure we never use it.
1117 set dummy $ac_cv_prog_CC
1118 shift
1119 if test $# -gt 0; then
1120 # We chose a different compiler from the bogus one.
1121 # However, it has the same basename, so the bogon will be chosen
1122 # first if we set CC to just the basename; use the full file name.
1123 shift
1124 set dummy "$ac_dir/$ac_word" "$@"
1125 shift
1126 ac_cv_prog_CC="$@"
1131 CC="$ac_cv_prog_CC"
1132 if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1138 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1141 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether we are using GNU C" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1145 else
1146 cat > conftest.c <<EOF
1147 #ifdef __GNUC__
1148 yes;
1149 #endif
1151 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1152 ac_cv_prog_gcc=yes
1153 else
1154 ac_cv_prog_gcc=no
1158 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1160 if test $ac_cv_prog_gcc = yes; then
1161 GCC=yes
1162 ac_test_CFLAGS="${CFLAGS+set}"
1163 ac_save_CFLAGS="$CFLAGS"
1164 CFLAGS=
1165 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1166 echo "configure:1167: checking whether ${CC-cc} accepts -g" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170 echo 'void f(){}' > conftest.c
1171 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1172 ac_cv_prog_cc_g=yes
1173 else
1174 ac_cv_prog_cc_g=no
1176 rm -f conftest*
1180 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1181 if test "$ac_test_CFLAGS" = set; then
1182 CFLAGS="$ac_save_CFLAGS"
1183 elif test $ac_cv_prog_cc_g = yes; then
1184 CFLAGS="-g -O2"
1185 else
1186 CFLAGS="-O2"
1188 else
1189 GCC=
1190 test "${CFLAGS+set}" = set || CFLAGS="-g"
1194 # Likewise for AC_PROG_CXX.
1198 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1200 # Extract the first word of "$ac_prog", so it can be a program name with args.
1201 set dummy $ac_prog; ac_word=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206 else
1207 if test -n "$CXX"; then
1208 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1209 else
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1211 ac_dummy="$PATH"
1212 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 if test -f $ac_dir/$ac_word; then
1215 ac_cv_prog_CXX="$ac_prog"
1216 break
1218 done
1219 IFS="$ac_save_ifs"
1222 CXX="$ac_cv_prog_CXX"
1223 if test -n "$CXX"; then
1224 echo "$ac_t""$CXX" 1>&6
1225 else
1226 echo "$ac_t""no" 1>&6
1229 test -n "$CXX" && break
1230 done
1231 test -n "$CXX" || CXX="gcc"
1233 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1235 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether we are using GNU C++" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1239 else
1240 cat > conftest.C <<EOF
1241 #ifdef __GNUC__
1242 yes;
1243 #endif
1245 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1246 ac_cv_prog_gxx=yes
1247 else
1248 ac_cv_prog_gxx=no
1252 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1254 if test $ac_cv_prog_gxx = yes; then
1255 GXX=yes
1256 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1257 ac_save_CXXFLAGS="$CXXFLAGS"
1258 CXXFLAGS=
1259 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether ${CXX-g++} accepts -g" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264 echo 'void f(){}' > conftest.cc
1265 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1266 ac_cv_prog_cxx_g=yes
1267 else
1268 ac_cv_prog_cxx_g=no
1270 rm -f conftest*
1274 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1275 if test "$ac_test_CXXFLAGS" = set; then
1276 CXXFLAGS="$ac_save_CXXFLAGS"
1277 elif test $ac_cv_prog_cxx_g = yes; then
1278 CXXFLAGS="-g -O2"
1279 else
1280 CXXFLAGS="-O2"
1282 else
1283 GXX=
1284 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1288 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1289 # run it explicitly here, it will be run implicitly before
1290 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1291 # be run before AC_CANONICAL_HOST.
1292 echo $ac_n "checking build system type""... $ac_c" 1>&6
1293 echo "configure:1294: checking build system type" >&5
1295 build_alias=$build
1296 case "$build_alias" in
1297 NONE)
1298 case $nonopt in
1299 NONE) build_alias=$host_alias ;;
1300 *) build_alias=$nonopt ;;
1301 esac ;;
1302 esac
1304 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1305 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1306 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1307 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1308 echo "$ac_t""$build" 1>&6
1311 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1312 set dummy ${ac_tool_prefix}as; ac_word=$2
1313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314 echo "configure:1315: checking for $ac_word" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318 if test -n "$AS"; then
1319 ac_cv_prog_AS="$AS" # Let the user override the test.
1320 else
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1322 ac_dummy="$PATH"
1323 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 if test -f $ac_dir/$ac_word; then
1326 ac_cv_prog_AS="${ac_tool_prefix}as"
1327 break
1329 done
1330 IFS="$ac_save_ifs"
1331 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1334 AS="$ac_cv_prog_AS"
1335 if test -n "$AS"; then
1336 echo "$ac_t""$AS" 1>&6
1337 else
1338 echo "$ac_t""no" 1>&6
1343 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1344 set dummy ${ac_tool_prefix}ar; ac_word=$2
1345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_word" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350 if test -n "$AR"; then
1351 ac_cv_prog_AR="$AR" # Let the user override the test.
1352 else
1353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1354 ac_dummy="$PATH"
1355 for ac_dir in $ac_dummy; do
1356 test -z "$ac_dir" && ac_dir=.
1357 if test -f $ac_dir/$ac_word; then
1358 ac_cv_prog_AR="${ac_tool_prefix}ar"
1359 break
1361 done
1362 IFS="$ac_save_ifs"
1363 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1366 AR="$ac_cv_prog_AR"
1367 if test -n "$AR"; then
1368 echo "$ac_t""$AR" 1>&6
1369 else
1370 echo "$ac_t""no" 1>&6
1375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1378 echo "configure:1379: checking for $ac_word" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1381 else
1382 if test -n "$RANLIB"; then
1383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1384 else
1385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1386 ac_dummy="$PATH"
1387 for ac_dir in $ac_dummy; do
1388 test -z "$ac_dir" && ac_dir=.
1389 if test -f $ac_dir/$ac_word; then
1390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1391 break
1393 done
1394 IFS="$ac_save_ifs"
1397 RANLIB="$ac_cv_prog_RANLIB"
1398 if test -n "$RANLIB"; then
1399 echo "$ac_t""$RANLIB" 1>&6
1400 else
1401 echo "$ac_t""no" 1>&6
1405 if test -z "$ac_cv_prog_RANLIB"; then
1406 if test -n "$ac_tool_prefix"; then
1407 # Extract the first word of "ranlib", so it can be a program name with args.
1408 set dummy ranlib; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 if test -n "$RANLIB"; then
1415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1416 else
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1418 ac_dummy="$PATH"
1419 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 if test -f $ac_dir/$ac_word; then
1422 ac_cv_prog_RANLIB="ranlib"
1423 break
1425 done
1426 IFS="$ac_save_ifs"
1427 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1430 RANLIB="$ac_cv_prog_RANLIB"
1431 if test -n "$RANLIB"; then
1432 echo "$ac_t""$RANLIB" 1>&6
1433 else
1434 echo "$ac_t""no" 1>&6
1437 else
1438 RANLIB=":"
1443 # Find a good install program. We prefer a C program (faster),
1444 # so one script is as good as another. But avoid the broken or
1445 # incompatible versions:
1446 # SysV /etc/install, /usr/sbin/install
1447 # SunOS /usr/etc/install
1448 # IRIX /sbin/install
1449 # AIX /bin/install
1450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1453 # ./install, which can be erroneously created by make from ./install.sh.
1454 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1455 echo "configure:1456: checking for a BSD compatible install" >&5
1456 if test -z "$INSTALL"; then
1457 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1461 for ac_dir in $PATH; do
1462 # Account for people who put trailing slashes in PATH elements.
1463 case "$ac_dir/" in
1464 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1466 # OSF1 and SCO ODT 3.0 have their own names for install.
1467 # Don't use installbsd from OSF since it installs stuff as root
1468 # by default.
1469 for ac_prog in ginstall scoinst install; do
1470 if test -f $ac_dir/$ac_prog; then
1471 if test $ac_prog = install &&
1472 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1473 # AIX install. It has an incompatible calling convention.
1475 else
1476 ac_cv_path_install="$ac_dir/$ac_prog -c"
1477 break 2
1480 done
1482 esac
1483 done
1484 IFS="$ac_save_IFS"
1487 if test "${ac_cv_path_install+set}" = set; then
1488 INSTALL="$ac_cv_path_install"
1489 else
1490 # As a last resort, use the slow shell script. We don't cache a
1491 # path for INSTALL within a source directory, because that will
1492 # break other packages using the cache if that directory is
1493 # removed, or if the path is relative.
1494 INSTALL="$ac_install_sh"
1497 echo "$ac_t""$INSTALL" 1>&6
1499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1500 # It thinks the first close brace ends the variable substitution.
1501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1508 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1509 echo "configure:1510: checking whether to enable maintainer-specific portions of Makefiles" >&5
1510 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1511 if test "${enable_maintainer_mode+set}" = set; then
1512 enableval="$enable_maintainer_mode"
1513 USE_MAINTAINER_MODE=$enableval
1514 else
1515 USE_MAINTAINER_MODE=no
1518 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1521 if test $USE_MAINTAINER_MODE = yes; then
1522 MAINTAINER_MODE_TRUE=
1523 MAINTAINER_MODE_FALSE='#'
1524 else
1525 MAINTAINER_MODE_TRUE='#'
1526 MAINTAINER_MODE_FALSE=
1528 MAINT=$MAINTAINER_MODE_TRUE
1532 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1533 # at least currently, we never actually build a program, so we never
1534 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1535 # fails, because we are probably configuring with a cross compiler
1536 # which can't create executables. So we include AC_EXEEXT to keep
1537 # automake happy, but we don't execute it, since we don't care about
1538 # the result.
1539 if false; then
1540 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1541 # to nothing, so nothing would remain between `then' and `fi' if it
1542 # were not for the `:' below.
1546 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1547 echo "configure:1548: checking for executable suffix" >&5
1548 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1550 else
1551 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1552 ac_cv_exeext=.exe
1553 else
1554 rm -f conftest*
1555 echo 'int main () { return 0; }' > conftest.$ac_ext
1556 ac_cv_exeext=
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1558 for file in conftest.*; do
1559 case $file in
1560 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1561 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1562 esac
1563 done
1564 else
1565 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1567 rm -f conftest*
1568 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1572 EXEEXT=""
1573 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1574 echo "$ac_t""${ac_cv_exeext}" 1>&6
1575 ac_exeext=$EXEEXT
1579 . ${srcdir}/configure.host
1581 case ${gc_basedir} in
1582 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
1583 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1584 esac
1586 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1587 case "${host}" in
1588 *-*-cygwin32*)
1589 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1591 esac
1594 GC_CFLAGS=${gc_cflags}
1598 # Check whether --enable-shared or --disable-shared was given.
1599 if test "${enable_shared+set}" = set; then
1600 enableval="$enable_shared"
1601 p=${PACKAGE-default}
1602 case $enableval in
1603 yes) enable_shared=yes ;;
1604 no) enable_shared=no ;;
1606 enable_shared=no
1607 # Look at the argument we got. We use all the common list separators.
1608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1609 for pkg in $enableval; do
1610 if test "X$pkg" = "X$p"; then
1611 enable_shared=yes
1613 done
1614 IFS="$ac_save_ifs"
1616 esac
1617 else
1618 enable_shared=yes
1621 # Check whether --enable-static or --disable-static was given.
1622 if test "${enable_static+set}" = set; then
1623 enableval="$enable_static"
1624 p=${PACKAGE-default}
1625 case $enableval in
1626 yes) enable_static=yes ;;
1627 no) enable_static=no ;;
1629 enable_static=no
1630 # Look at the argument we got. We use all the common list separators.
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1632 for pkg in $enableval; do
1633 if test "X$pkg" = "X$p"; then
1634 enable_static=yes
1636 done
1637 IFS="$ac_save_ifs"
1639 esac
1640 else
1641 enable_static=yes
1644 # Check whether --enable-fast-install or --disable-fast-install was given.
1645 if test "${enable_fast_install+set}" = set; then
1646 enableval="$enable_fast_install"
1647 p=${PACKAGE-default}
1648 case $enableval in
1649 yes) enable_fast_install=yes ;;
1650 no) enable_fast_install=no ;;
1652 enable_fast_install=no
1653 # Look at the argument we got. We use all the common list separators.
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1655 for pkg in $enableval; do
1656 if test "X$pkg" = "X$p"; then
1657 enable_fast_install=yes
1659 done
1660 IFS="$ac_save_ifs"
1662 esac
1663 else
1664 enable_fast_install=yes
1667 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1668 if test "${with_gnu_ld+set}" = set; then
1669 withval="$with_gnu_ld"
1670 test "$withval" = no || with_gnu_ld=yes
1671 else
1672 with_gnu_ld=no
1675 ac_prog=ld
1676 if test "$GCC" = yes; then
1677 # Check if gcc -print-prog-name=ld gives a path.
1678 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1679 echo "configure:1680: checking for ld used by GCC" >&5
1680 case $host in
1681 *-*-mingw*)
1682 # gcc leaves a trailing carriage return which upsets mingw
1683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1686 esac
1687 case $ac_prog in
1688 # Accept absolute paths.
1689 [\\/]* | [A-Za-z]:[\\/]*)
1690 re_direlt='/[^/][^/]*/\.\./'
1691 # Canonicalize the path of ld
1692 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1693 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1694 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1695 done
1696 test -z "$LD" && LD="$ac_prog"
1699 # If it fails, then pretend we aren't using GCC.
1700 ac_prog=ld
1703 # If it is relative, then search for the first ld in PATH.
1704 with_gnu_ld=unknown
1706 esac
1707 elif test "$with_gnu_ld" = yes; then
1708 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1709 echo "configure:1710: checking for GNU ld" >&5
1710 else
1711 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1712 echo "configure:1713: checking for non-GNU ld" >&5
1714 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1716 else
1717 if test -z "$LD"; then
1718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1719 for ac_dir in $PATH; do
1720 test -z "$ac_dir" && ac_dir=.
1721 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1722 lt_cv_path_LD="$ac_dir/$ac_prog"
1723 # Check to see if the program is GNU ld. I'd rather use --version,
1724 # but apparently some GNU ld's only accept -v.
1725 # Break only if it was the GNU/non-GNU ld that we prefer.
1726 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1727 test "$with_gnu_ld" != no && break
1728 else
1729 test "$with_gnu_ld" != yes && break
1732 done
1733 IFS="$ac_save_ifs"
1734 else
1735 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1739 LD="$lt_cv_path_LD"
1740 if test -n "$LD"; then
1741 echo "$ac_t""$LD" 1>&6
1742 else
1743 echo "$ac_t""no" 1>&6
1745 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1746 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1747 echo "configure:1748: checking if the linker ($LD) is GNU ld" >&5
1748 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750 else
1751 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1752 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1753 lt_cv_prog_gnu_ld=yes
1754 else
1755 lt_cv_prog_gnu_ld=no
1759 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1760 with_gnu_ld=$lt_cv_prog_gnu_ld
1763 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1764 echo "configure:1765: checking for $LD option to reload object files" >&5
1765 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1768 lt_cv_ld_reload_flag='-r'
1771 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1772 reload_flag=$lt_cv_ld_reload_flag
1773 test -n "$reload_flag" && reload_flag=" $reload_flag"
1775 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1776 echo "configure:1777: checking for BSD-compatible nm" >&5
1777 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1779 else
1780 if test -n "$NM"; then
1781 # Let the user override the test.
1782 lt_cv_path_NM="$NM"
1783 else
1784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1785 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1786 test -z "$ac_dir" && ac_dir=.
1787 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1788 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1789 # Check to see if the nm accepts a BSD-compat flag.
1790 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1791 # nm: unknown option "B" ignored
1792 # Tru64's nm complains that /dev/null is an invalid object file
1793 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1794 lt_cv_path_NM="$tmp_nm -B"
1795 break
1796 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1797 lt_cv_path_NM="$tmp_nm -p"
1798 break
1799 else
1800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1801 continue # so that we can try to find one that supports BSD flags
1804 done
1805 IFS="$ac_save_ifs"
1806 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1810 NM="$lt_cv_path_NM"
1811 echo "$ac_t""$NM" 1>&6
1813 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1814 echo "configure:1815: checking whether ln -s works" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817 else
1818 rm -f conftestdata
1819 if ln -s X conftestdata 2>/dev/null
1820 then
1821 rm -f conftestdata
1822 ac_cv_prog_LN_S="ln -s"
1823 else
1824 ac_cv_prog_LN_S=ln
1827 LN_S="$ac_cv_prog_LN_S"
1828 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1829 echo "$ac_t""yes" 1>&6
1830 else
1831 echo "$ac_t""no" 1>&6
1834 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1835 echo "configure:1836: checking how to recognise dependant libraries" >&5
1836 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1838 else
1839 lt_cv_file_magic_cmd='$MAGIC_CMD'
1840 lt_cv_file_magic_test_file=
1841 lt_cv_deplibs_check_method='unknown'
1842 # Need to set the preceding variable on all platforms that support
1843 # interlibrary dependencies.
1844 # 'none' -- dependencies not supported.
1845 # `unknown' -- same as none, but documents that we really don't know.
1846 # 'pass_all' -- all dependencies passed with no checks.
1847 # 'test_compile' -- check by making test program.
1848 # 'file_magic [regex]' -- check by looking for files in library path
1849 # which responds to the $file_magic_cmd with a given egrep regex.
1850 # If you have `file' or equivalent on your system and you're not sure
1851 # whether `pass_all' will *always* work, you probably want this one.
1853 case $host_os in
1854 aix*)
1855 lt_cv_deplibs_check_method=pass_all
1858 beos*)
1859 lt_cv_deplibs_check_method=pass_all
1862 bsdi4*)
1863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1864 lt_cv_file_magic_cmd='/usr/bin/file -L'
1865 lt_cv_file_magic_test_file=/shlib/libc.so
1868 cygwin* | mingw* |pw32*)
1869 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1870 lt_cv_file_magic_cmd='$OBJDUMP -f'
1873 darwin* | rhapsody*)
1874 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1875 lt_cv_file_magic_cmd='/usr/bin/file -L'
1876 case "$host_os" in
1877 rhapsody* | darwin1.012)
1878 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1880 *) # Darwin 1.3 on
1881 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1883 esac
1886 freebsd* )
1887 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1888 case $host_cpu in
1889 i*86 )
1890 # Not sure whether the presence of OpenBSD here was a mistake.
1891 # Let's accept both of them until this is cleared up.
1892 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1893 lt_cv_file_magic_cmd=/usr/bin/file
1894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1896 esac
1897 else
1898 lt_cv_deplibs_check_method=pass_all
1902 gnu*)
1903 lt_cv_deplibs_check_method=pass_all
1906 hpux10.20*|hpux11*)
1907 case $host_cpu in
1908 hppa*)
1909 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1910 lt_cv_file_magic_cmd=/usr/bin/file
1911 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1913 ia64*)
1914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1915 lt_cv_file_magic_cmd=/usr/bin/file
1916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1918 esac
1921 irix5* | irix6*)
1922 case $host_os in
1923 irix5*)
1924 # this will be overridden with pass_all, but let us keep it just in case
1925 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1928 case $LD in
1929 *-32|*"-32 ") libmagic=32-bit;;
1930 *-n32|*"-n32 ") libmagic=N32;;
1931 *-64|*"-64 ") libmagic=64-bit;;
1932 *) libmagic=never-match;;
1933 esac
1934 # this will be overridden with pass_all, but let us keep it just in case
1935 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1937 esac
1938 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1939 lt_cv_deplibs_check_method=pass_all
1942 # This must be Linux ELF.
1943 linux-gnu*)
1944 case $host_cpu in
1945 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1946 lt_cv_deplibs_check_method=pass_all ;;
1948 # glibc up to 2.1.1 does not perform some relocations on ARM
1949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1950 esac
1951 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1954 netbsd*)
1955 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1956 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1957 else
1958 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1962 newsos6)
1963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1964 lt_cv_file_magic_cmd=/usr/bin/file
1965 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1968 osf3* | osf4* | osf5*)
1969 # this will be overridden with pass_all, but let us keep it just in case
1970 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1971 lt_cv_file_magic_test_file=/shlib/libc.so
1972 lt_cv_deplibs_check_method=pass_all
1975 sco3.2v5*)
1976 lt_cv_deplibs_check_method=pass_all
1979 solaris*)
1980 lt_cv_deplibs_check_method=pass_all
1981 lt_cv_file_magic_test_file=/lib/libc.so
1984 sysv5uw[78]* | sysv4*uw2*)
1985 lt_cv_deplibs_check_method=pass_all
1988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1989 case $host_vendor in
1990 ncr)
1991 lt_cv_deplibs_check_method=pass_all
1993 motorola)
1994 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]'
1995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1997 esac
1999 esac
2003 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2004 file_magic_cmd=$lt_cv_file_magic_cmd
2005 deplibs_check_method=$lt_cv_deplibs_check_method
2007 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2008 echo "configure:2009: checking for object suffix" >&5
2009 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2011 else
2012 rm -f conftest*
2013 echo 'int i = 1;' > conftest.$ac_ext
2014 if { (eval echo configure:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2015 for ac_file in conftest.*; do
2016 case $ac_file in
2017 *.c) ;;
2018 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2019 esac
2020 done
2021 else
2022 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2024 rm -f conftest*
2027 echo "$ac_t""$ac_cv_objext" 1>&6
2028 OBJEXT=$ac_cv_objext
2029 ac_objext=$ac_cv_objext
2031 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2033 # Only perform the check for file, if the check method requires it
2034 case $deplibs_check_method in
2035 file_magic*)
2036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2037 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2038 echo "configure:2039: checking for ${ac_tool_prefix}file" >&5
2039 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2041 else
2042 case $MAGIC_CMD in
2044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2046 ?:/*)
2047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2050 ac_save_MAGIC_CMD="$MAGIC_CMD"
2051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2052 ac_dummy="/usr/bin:$PATH"
2053 for ac_dir in $ac_dummy; do
2054 test -z "$ac_dir" && ac_dir=.
2055 if test -f $ac_dir/${ac_tool_prefix}file; then
2056 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2057 if test -n "$file_magic_test_file"; then
2058 case $deplibs_check_method in
2059 "file_magic "*)
2060 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2062 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2063 egrep "$file_magic_regex" > /dev/null; then
2065 else
2066 cat <<EOF 1>&2
2068 *** Warning: the command libtool uses to detect shared libraries,
2069 *** $file_magic_cmd, produces output that libtool cannot recognize.
2070 *** The result is that libtool may fail to recognize shared libraries
2071 *** as such. This will affect the creation of libtool libraries that
2072 *** depend on shared libraries, but programs linked with such libtool
2073 *** libraries will work regardless of this problem. Nevertheless, you
2074 *** may want to report the problem to your system manager and/or to
2075 *** bug-libtool@gnu.org
2078 fi ;;
2079 esac
2081 break
2083 done
2084 IFS="$ac_save_ifs"
2085 MAGIC_CMD="$ac_save_MAGIC_CMD"
2087 esac
2090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2091 if test -n "$MAGIC_CMD"; then
2092 echo "$ac_t""$MAGIC_CMD" 1>&6
2093 else
2094 echo "$ac_t""no" 1>&6
2097 if test -z "$lt_cv_path_MAGIC_CMD"; then
2098 if test -n "$ac_tool_prefix"; then
2099 echo $ac_n "checking for file""... $ac_c" 1>&6
2100 echo "configure:2101: checking for file" >&5
2101 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104 case $MAGIC_CMD in
2106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2108 ?:/*)
2109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2112 ac_save_MAGIC_CMD="$MAGIC_CMD"
2113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2114 ac_dummy="/usr/bin:$PATH"
2115 for ac_dir in $ac_dummy; do
2116 test -z "$ac_dir" && ac_dir=.
2117 if test -f $ac_dir/file; then
2118 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2119 if test -n "$file_magic_test_file"; then
2120 case $deplibs_check_method in
2121 "file_magic "*)
2122 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2125 egrep "$file_magic_regex" > /dev/null; then
2127 else
2128 cat <<EOF 1>&2
2130 *** Warning: the command libtool uses to detect shared libraries,
2131 *** $file_magic_cmd, produces output that libtool cannot recognize.
2132 *** The result is that libtool may fail to recognize shared libraries
2133 *** as such. This will affect the creation of libtool libraries that
2134 *** depend on shared libraries, but programs linked with such libtool
2135 *** libraries will work regardless of this problem. Nevertheless, you
2136 *** may want to report the problem to your system manager and/or to
2137 *** bug-libtool@gnu.org
2140 fi ;;
2141 esac
2143 break
2145 done
2146 IFS="$ac_save_ifs"
2147 MAGIC_CMD="$ac_save_MAGIC_CMD"
2149 esac
2152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2153 if test -n "$MAGIC_CMD"; then
2154 echo "$ac_t""$MAGIC_CMD" 1>&6
2155 else
2156 echo "$ac_t""no" 1>&6
2159 else
2160 MAGIC_CMD=:
2166 esac
2168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_word" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2174 else
2175 if test -n "$RANLIB"; then
2176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2177 else
2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2179 ac_dummy="$PATH"
2180 for ac_dir in $ac_dummy; do
2181 test -z "$ac_dir" && ac_dir=.
2182 if test -f $ac_dir/$ac_word; then
2183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2184 break
2186 done
2187 IFS="$ac_save_ifs"
2190 RANLIB="$ac_cv_prog_RANLIB"
2191 if test -n "$RANLIB"; then
2192 echo "$ac_t""$RANLIB" 1>&6
2193 else
2194 echo "$ac_t""no" 1>&6
2198 if test -z "$ac_cv_prog_RANLIB"; then
2199 if test -n "$ac_tool_prefix"; then
2200 # Extract the first word of "ranlib", so it can be a program name with args.
2201 set dummy ranlib; ac_word=$2
2202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_word" >&5
2204 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2206 else
2207 if test -n "$RANLIB"; then
2208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2209 else
2210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2211 ac_dummy="$PATH"
2212 for ac_dir in $ac_dummy; do
2213 test -z "$ac_dir" && ac_dir=.
2214 if test -f $ac_dir/$ac_word; then
2215 ac_cv_prog_RANLIB="ranlib"
2216 break
2218 done
2219 IFS="$ac_save_ifs"
2220 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2223 RANLIB="$ac_cv_prog_RANLIB"
2224 if test -n "$RANLIB"; then
2225 echo "$ac_t""$RANLIB" 1>&6
2226 else
2227 echo "$ac_t""no" 1>&6
2230 else
2231 RANLIB=":"
2235 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}strip; ac_word=$2
2237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_word" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2241 else
2242 if test -n "$STRIP"; then
2243 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2244 else
2245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2246 ac_dummy="$PATH"
2247 for ac_dir in $ac_dummy; do
2248 test -z "$ac_dir" && ac_dir=.
2249 if test -f $ac_dir/$ac_word; then
2250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2251 break
2253 done
2254 IFS="$ac_save_ifs"
2257 STRIP="$ac_cv_prog_STRIP"
2258 if test -n "$STRIP"; then
2259 echo "$ac_t""$STRIP" 1>&6
2260 else
2261 echo "$ac_t""no" 1>&6
2265 if test -z "$ac_cv_prog_STRIP"; then
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "strip", so it can be a program name with args.
2268 set dummy strip; ac_word=$2
2269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2270 echo "configure:2271: checking for $ac_word" >&5
2271 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2273 else
2274 if test -n "$STRIP"; then
2275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2276 else
2277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2278 ac_dummy="$PATH"
2279 for ac_dir in $ac_dummy; do
2280 test -z "$ac_dir" && ac_dir=.
2281 if test -f $ac_dir/$ac_word; then
2282 ac_cv_prog_STRIP="strip"
2283 break
2285 done
2286 IFS="$ac_save_ifs"
2287 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2290 STRIP="$ac_cv_prog_STRIP"
2291 if test -n "$STRIP"; then
2292 echo "$ac_t""$STRIP" 1>&6
2293 else
2294 echo "$ac_t""no" 1>&6
2297 else
2298 STRIP=":"
2303 # Check for any special flags to pass to ltconfig.
2304 libtool_flags="--cache-file=$cache_file"
2305 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2306 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2307 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2308 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2309 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2312 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2313 if test "${enable_libtool_lock+set}" = set; then
2314 enableval="$enable_libtool_lock"
2318 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2319 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2321 # Check whether --with-pic or --without-pic was given.
2322 if test "${with_pic+set}" = set; then
2323 withval="$with_pic"
2324 pic_mode="$withval"
2325 else
2326 pic_mode=default
2329 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2330 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2332 # Some flags need to be propagated to the compiler or linker for good
2333 # libtool support.
2334 case $host in
2335 *-*-irix6*)
2336 # Find out which ABI we are using.
2337 echo '#line 2338 "configure"' > conftest.$ac_ext
2338 if { (eval echo configure:2339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2339 case `/usr/bin/file conftest.$ac_objext` in
2340 *32-bit*)
2341 LD="${LD-ld} -32"
2343 *N32*)
2344 LD="${LD-ld} -n32"
2346 *64-bit*)
2347 LD="${LD-ld} -64"
2349 esac
2351 rm -rf conftest*
2354 ia64-*-hpux*)
2355 # Find out which ABI we are using.
2356 echo 'int i;' > conftest.$ac_ext
2357 if { (eval echo configure:2358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2358 case "`/usr/bin/file conftest.o`" in
2359 *ELF-32*)
2360 HPUX_IA64_MODE="32"
2362 *ELF-64*)
2363 HPUX_IA64_MODE="64"
2365 esac
2367 rm -rf conftest*
2370 *-*-sco3.2v5*)
2371 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2372 SAVE_CFLAGS="$CFLAGS"
2373 CFLAGS="$CFLAGS -belf"
2374 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2375 echo "configure:2376: checking whether the C compiler needs -belf" >&5
2376 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2378 else
2380 ac_ext=c
2381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2385 cross_compiling=$ac_cv_prog_cc_cross
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2391 int main() {
2393 ; return 0; }
2395 if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2396 rm -rf conftest*
2397 lt_cv_cc_needs_belf=yes
2398 else
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 rm -rf conftest*
2402 lt_cv_cc_needs_belf=no
2404 rm -f conftest*
2405 ac_ext=c
2406 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2409 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2410 cross_compiling=$ac_cv_prog_cc_cross
2414 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2415 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2416 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2417 CFLAGS="$SAVE_CFLAGS"
2422 esac
2424 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2425 echo "configure:2426: checking how to run the C++ preprocessor" >&5
2426 if test -z "$CXXCPP"; then
2427 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 ac_ext=C
2431 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2432 ac_cpp='$CXXCPP $CPPFLAGS'
2433 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2434 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2435 cross_compiling=$ac_cv_prog_cxx_cross
2436 CXXCPP="${CXX-g++} -E"
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2440 #include <stdlib.h>
2442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2443 { (eval echo configure:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2445 if test -z "$ac_err"; then
2447 else
2448 echo "$ac_err" >&5
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -rf conftest*
2452 CXXCPP=/lib/cpp
2454 rm -f conftest*
2455 ac_cv_prog_CXXCPP="$CXXCPP"
2456 ac_ext=c
2457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2461 cross_compiling=$ac_cv_prog_cc_cross
2464 CXXCPP="$ac_cv_prog_CXXCPP"
2465 echo "$ac_t""$CXXCPP" 1>&6
2468 # Save cache, so that ltconfig can load it
2469 cat > confcache <<\EOF
2470 # This file is a shell script that caches the results of configure
2471 # tests run on this system so they can be shared between configure
2472 # scripts and configure runs. It is not useful on other systems.
2473 # If it contains results you don't want to keep, you may remove or edit it.
2475 # By default, configure uses ./config.cache as the cache file,
2476 # creating it if it does not exist already. You can give configure
2477 # the --cache-file=FILE option to use a different cache file; that is
2478 # what configure does when it calls configure scripts in
2479 # subdirectories, so they share the cache.
2480 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2481 # config.status only pays attention to the cache file if you give it the
2482 # --recheck option to rerun configure.
2485 # The following way of writing the cache mishandles newlines in values,
2486 # but we know of no workaround that is simple, portable, and efficient.
2487 # So, don't put newlines in cache variables' values.
2488 # Ultrix sh set writes to stderr and can't be redirected directly,
2489 # and sets the high bit in the cache file unless we assign to the vars.
2490 (set) 2>&1 |
2491 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2492 *ac_space=\ *)
2493 # `set' does not quote correctly, so add quotes (double-quote substitution
2494 # turns \\\\ into \\, and sed turns \\ into \).
2495 sed -n \
2496 -e "s/'/'\\\\''/g" \
2497 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2500 # `set' quotes correctly as required by POSIX, so do not add quotes.
2501 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2503 esac >> confcache
2504 if cmp -s $cache_file confcache; then
2506 else
2507 if test -w $cache_file; then
2508 echo "updating cache $cache_file"
2509 cat confcache > $cache_file
2510 else
2511 echo "not updating unwritable cache $cache_file"
2514 rm -f confcache
2517 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2518 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2519 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2520 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2521 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2522 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2523 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2524 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2525 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2526 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2528 # Reload cache, that may have been modified by ltconfig
2529 if test -r "$cache_file"; then
2530 echo "loading cache $cache_file"
2531 . $cache_file
2532 else
2533 echo "creating cache $cache_file"
2534 > $cache_file
2538 # This can be used to rebuild libtool when needed
2539 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2541 # Always use our own libtool.
2542 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2544 # Redirect the config.log output again, so that the ltconfig log is not
2545 # clobbered by the next message.
2546 exec 5>>./config.log
2550 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2551 lt_save_CC="$CC"
2552 lt_save_CFLAGS="$CFLAGS"
2553 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2554 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2555 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2556 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2557 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2558 deplibs_check_method="$deplibs_check_method" \
2559 file_magic_cmd="$file_magic_cmd" \
2560 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2561 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2562 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2563 CC="$lt_save_CC"
2564 CFLAGS="$lt_save_CFLAGS"
2566 # Redirect the config.log output again, so that the ltconfig log is not
2567 # clobbered by the next message.
2568 exec 5>>./config.log
2576 # Check whether --with-target-subdir or --without-target-subdir was given.
2577 if test "${with_target_subdir+set}" = set; then
2578 withval="$with_target_subdir"
2582 # Check whether --with-cross-host or --without-cross-host was given.
2583 if test "${with_cross_host+set}" = set; then
2584 withval="$with_cross_host"
2589 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2590 echo "configure:2591: checking whether to enable maintainer-specific portions of Makefiles" >&5
2591 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2592 if test "${enable_maintainer_mode+set}" = set; then
2593 enableval="$enable_maintainer_mode"
2594 USE_MAINTAINER_MODE=$enableval
2595 else
2596 USE_MAINTAINER_MODE=no
2599 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2602 if test $USE_MAINTAINER_MODE = yes; then
2603 MAINTAINER_MODE_TRUE=
2604 MAINTAINER_MODE_FALSE='#'
2605 else
2606 MAINTAINER_MODE_TRUE='#'
2607 MAINTAINER_MODE_FALSE=
2609 MAINT=$MAINTAINER_MODE_TRUE
2612 # automake wants to see AC_EXEEXT. But we don't need it. And having
2613 # it is actually a problem, because the compiler we're passed can't
2614 # necessarily do a full link. So we fool automake here.
2615 if false; then
2616 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2617 # to nothing, so nothing would remain between `then' and `fi' if it
2618 # were not for the `:' below.
2622 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2623 echo "configure:2624: checking for executable suffix" >&5
2624 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2626 else
2627 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2628 ac_cv_exeext=.exe
2629 else
2630 rm -f conftest*
2631 echo 'int main () { return 0; }' > conftest.$ac_ext
2632 ac_cv_exeext=
2633 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2634 for file in conftest.*; do
2635 case $file in
2636 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2637 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2638 esac
2639 done
2640 else
2641 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2643 rm -f conftest*
2644 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2648 EXEEXT=""
2649 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2650 echo "$ac_t""${ac_cv_exeext}" 1>&6
2651 ac_exeext=$EXEEXT
2655 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2656 echo "configure:2657: checking for thread model used by GCC" >&5
2657 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2658 if test -z "$THREADS"; then
2659 THREADS=no
2661 echo "$ac_t""$THREADS" 1>&6
2663 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2664 if test "${enable_parallel_mark+set}" = set; then
2665 enableval="$enable_parallel_mark"
2666 case "$THREADS" in
2667 no | none | single)
2668 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2670 esac
2675 INCLUDES=-I${srcdir}/include
2676 THREADLIBS=
2677 case "$THREADS" in
2678 no | none | single)
2679 THREADS=none
2681 posix | pthreads)
2682 THREADS=posix
2683 THREADLIBS=-lpthread
2684 case "$host" in
2685 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
2686 cat >> confdefs.h <<\EOF
2687 #define GC_LINUX_THREADS 1
2690 cat >> confdefs.h <<\EOF
2691 #define _REENTRANT 1
2694 if test "${enable_parallel_mark}"; then
2695 cat >> confdefs.h <<\EOF
2696 #define PARALLEL_MARK 1
2700 cat >> confdefs.h <<\EOF
2701 #define THREAD_LOCAL_ALLOC 1
2705 *-*-linux*)
2706 cat >> confdefs.h <<\EOF
2707 #define GC_LINUX_THREADS 1
2710 cat >> confdefs.h <<\EOF
2711 #define _REENTRANT 1
2715 *-*-hpux*)
2716 echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2
2717 cat >> confdefs.h <<\EOF
2718 #define GC_HPUX_THREADS 1
2721 cat >> confdefs.h <<\EOF
2722 #define _POSIX_C_SOURCE 199506L
2725 if test "${enable_parallel_mark}" = yes; then
2726 cat >> confdefs.h <<\EOF
2727 #define PARALLEL_MARK 1
2731 cat >> confdefs.h <<\EOF
2732 #define THREAD_LOCAL_ALLOC 1
2735 THREADLIBS="-lpthread -lrt"
2737 *-*-freebsd*)
2738 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2739 cat >> confdefs.h <<\EOF
2740 #define GC_FREEBSD_THREADS 1
2743 INCLUDES="$INCLUDES -pthread"
2744 THREADLIBS=-pthread
2746 *-*-solaris*)
2747 cat >> confdefs.h <<\EOF
2748 #define GC_SOLARIS_THREADS 1
2751 cat >> confdefs.h <<\EOF
2752 #define GC_SOLARIS_PTHREADS 1
2756 *-*-irix*)
2757 cat >> confdefs.h <<\EOF
2758 #define GC_IRIX_THREADS 1
2762 *-*-cygwin*)
2763 THREADLIBS=
2765 esac
2767 win32)
2768 cat >> confdefs.h <<\EOF
2769 #define GC_WIN32_THREADS 1
2772 cat >> confdefs.h <<\EOF
2773 #define NO_GETENV 1
2777 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
2778 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2781 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2783 esac
2786 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2787 echo "configure:2788: checking for dlopen in -ldl" >&5
2788 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2791 else
2792 ac_save_LIBS="$LIBS"
2793 LIBS="-ldl $LIBS"
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 /* Override any gcc2 internal prototype to avoid an error. */
2798 /* We use char because int might match the return type of a gcc2
2799 builtin and then its argument prototype would still apply. */
2800 char dlopen();
2802 int main() {
2803 dlopen()
2804 ; return 0; }
2806 if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2807 rm -rf conftest*
2808 eval "ac_cv_lib_$ac_lib_var=yes"
2809 else
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 rm -rf conftest*
2813 eval "ac_cv_lib_$ac_lib_var=no"
2815 rm -f conftest*
2816 LIBS="$ac_save_LIBS"
2819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2820 echo "$ac_t""yes" 1>&6
2821 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2822 else
2823 echo "$ac_t""no" 1>&6
2828 target_all=libgcjgc.la
2832 TARGET_ECOS="no"
2833 # Check whether --with-ecos or --without-ecos was given.
2834 if test "${with_ecos+set}" = set; then
2835 withval="$with_ecos"
2836 TARGET_ECOS="$with_ecos"
2841 addobjs=
2842 CXXINCLUDES=
2843 case "$TARGET_ECOS" in
2847 cat >> confdefs.h <<\EOF
2848 #define ECOS 1
2851 CXXINCLUDES="-I${TARGET_ECOS}/include"
2852 addobjs="$addobjs ecos.lo"
2854 esac
2860 machdep=
2861 case "$host" in
2862 alpha*-*-openbsd*)
2863 machdep="alpha_mach_dep.lo"
2864 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
2865 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
2866 # Check whether --enable-shared or --disable-shared was given.
2867 if test "${enable_shared+set}" = set; then
2868 enableval="$enable_shared"
2869 p=${PACKAGE-default}
2870 case $enableval in
2871 yes) enable_shared=yes ;;
2872 no) enable_shared=no ;;
2874 enable_shared=no
2875 # Look at the argument we got. We use all the common list separators.
2876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2877 for pkg in $enableval; do
2878 if test "X$pkg" = "X$p"; then
2879 enable_shared=yes
2881 done
2882 IFS="$ac_save_ifs"
2884 esac
2885 else
2886 enable_shared=no
2891 alpha*-*-*)
2892 machdep="alpha_mach_dep.lo"
2894 i?86-*-solaris2.[89]*)
2895 cat >> confdefs.h <<\EOF
2896 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
2900 mipstx39-*-elf*)
2901 machdep="mips_ultrix_mach_dep.lo"
2902 cat >> confdefs.h <<\EOF
2903 #define STACKBASE __stackbase
2906 cat >> confdefs.h <<\EOF
2907 #define DATASTART_IS_ETEXT 1
2911 mips-dec-ultrix*)
2912 machdep="mips_ultrix_mach-dep.lo"
2914 mips*-*-linux*)
2916 mips-*-*)
2917 machdep="mips_sgi_mach_dep.lo"
2918 cat >> confdefs.h <<\EOF
2919 #define NO_EXECUTE_PERMISSION 1
2923 sparc-sun-solaris2.3*)
2924 machdep="sparc_mach_dep.lo"
2925 cat >> confdefs.h <<\EOF
2926 #define SUNOS53_SHARED_LIB 1
2930 sparc-sun-solaris2.*)
2931 machdep="sparc_mach_dep.lo"
2933 ia64-*-*)
2934 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
2936 esac
2937 if test x"$machdep" = x; then
2938 machdep="mach_dep.lo"
2940 addobjs="$addobjs $machdep"
2943 case "$host" in
2944 sparc-sun-solaris2*)
2945 if test "$GCC" = yes; then
2946 new_CFLAGS=
2947 for i in $CFLAGS; do
2948 case "$i" in
2949 -O*)
2952 new_CFLAGS="$new_CFLAGS $i"
2954 esac
2955 done
2956 CFLAGS="$new_CFLAGS"
2959 esac
2961 MY_CFLAGS="$CFLAGS"
2964 cat >> confdefs.h <<\EOF
2965 #define SILENT 1
2968 cat >> confdefs.h <<\EOF
2969 #define NO_SIGNALS 1
2972 cat >> confdefs.h <<\EOF
2973 #define NO_EXECUTE_PERMISSION 1
2976 cat >> confdefs.h <<\EOF
2977 #define ALL_INTERIOR_POINTERS 1
2981 cat >> confdefs.h <<\EOF
2982 #define JAVA_FINALIZATION 1
2985 cat >> confdefs.h <<\EOF
2986 #define GC_GCJ_SUPPORT 1
2989 cat >> confdefs.h <<\EOF
2990 #define ATOMIC_UNCOLLECTABLE 1
2994 if test -n "${with_cross_host}"; then
2995 cat >> confdefs.h <<\EOF
2996 #define NO_SIGSET 1
2999 cat >> confdefs.h <<\EOF
3000 #define NO_DEBUGGING 1
3005 # Check whether --enable-full-debug or --disable-full-debug was given.
3006 if test "${enable_full_debug+set}" = set; then
3007 enableval="$enable_full_debug"
3008 if test "$enable_full_debug" = "yes"; then
3009 echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2
3010 cat >> confdefs.h <<\EOF
3011 #define KEEP_BACK_PTRS 1
3014 cat >> confdefs.h <<\EOF
3015 #define DBG_HDRS_ALL 1
3018 case $host in
3019 ia64-*-linux* )
3020 cat >> confdefs.h <<\EOF
3021 #define MAKE_BACK_GRAPH 1
3025 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
3026 cat >> confdefs.h <<\EOF
3027 #define MAKE_BACK_GRAPH 1
3030 echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2
3031 cat >> confdefs.h <<\EOF
3032 #define SAVE_CALL_COUNT 8
3036 esac
3043 if test -z "$with_cross_host"; then
3044 USE_LIBDIR_TRUE=
3045 USE_LIBDIR_FALSE='#'
3046 else
3047 USE_LIBDIR_TRUE='#'
3048 USE_LIBDIR_FALSE=
3051 if test "${multilib}" = "yes"; then
3052 multilib_arg="--enable-multilib"
3053 else
3054 multilib_arg=
3057 trap '' 1 2 15
3058 cat > confcache <<\EOF
3059 # This file is a shell script that caches the results of configure
3060 # tests run on this system so they can be shared between configure
3061 # scripts and configure runs. It is not useful on other systems.
3062 # If it contains results you don't want to keep, you may remove or edit it.
3064 # By default, configure uses ./config.cache as the cache file,
3065 # creating it if it does not exist already. You can give configure
3066 # the --cache-file=FILE option to use a different cache file; that is
3067 # what configure does when it calls configure scripts in
3068 # subdirectories, so they share the cache.
3069 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3070 # config.status only pays attention to the cache file if you give it the
3071 # --recheck option to rerun configure.
3074 # The following way of writing the cache mishandles newlines in values,
3075 # but we know of no workaround that is simple, portable, and efficient.
3076 # So, don't put newlines in cache variables' values.
3077 # Ultrix sh set writes to stderr and can't be redirected directly,
3078 # and sets the high bit in the cache file unless we assign to the vars.
3079 (set) 2>&1 |
3080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3081 *ac_space=\ *)
3082 # `set' does not quote correctly, so add quotes (double-quote substitution
3083 # turns \\\\ into \\, and sed turns \\ into \).
3084 sed -n \
3085 -e "s/'/'\\\\''/g" \
3086 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3089 # `set' quotes correctly as required by POSIX, so do not add quotes.
3090 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3092 esac >> confcache
3093 if cmp -s $cache_file confcache; then
3095 else
3096 if test -w $cache_file; then
3097 echo "updating cache $cache_file"
3098 cat confcache > $cache_file
3099 else
3100 echo "not updating unwritable cache $cache_file"
3103 rm -f confcache
3105 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3107 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3108 # Let make expand exec_prefix.
3109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3111 # Any assignment to VPATH causes Sun make to only execute
3112 # the first set of double-colon rules, so remove it if not needed.
3113 # If there is a colon in the path, we need to keep it.
3114 if test "x$srcdir" = x.; then
3115 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3118 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3120 # Transform confdefs.h into DEFS.
3121 # Protect against shell expansion while executing Makefile rules.
3122 # Protect against Makefile macro expansion.
3123 cat > conftest.defs <<\EOF
3124 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3125 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3126 s%\[%\\&%g
3127 s%\]%\\&%g
3128 s%\$%$$%g
3130 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3131 rm -f conftest.defs
3134 # Without the "./", some shells look in PATH for config.status.
3135 : ${CONFIG_STATUS=./config.status}
3137 echo creating $CONFIG_STATUS
3138 rm -f $CONFIG_STATUS
3139 cat > $CONFIG_STATUS <<EOF
3140 #! /bin/sh
3141 # Generated automatically by configure.
3142 # Run this file to recreate the current configuration.
3143 # This directory was configured as follows,
3144 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3146 # $0 $ac_configure_args
3148 # Compiler output produced by configure, useful for debugging
3149 # configure, is in ./config.log if it exists.
3151 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3152 for ac_option
3154 case "\$ac_option" in
3155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3156 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3157 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3158 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3159 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3160 exit 0 ;;
3161 -help | --help | --hel | --he | --h)
3162 echo "\$ac_cs_usage"; exit 0 ;;
3163 *) echo "\$ac_cs_usage"; exit 1 ;;
3164 esac
3165 done
3167 ac_given_srcdir=$srcdir
3168 ac_given_INSTALL="$INSTALL"
3170 trap 'rm -fr `echo "Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3172 cat >> $CONFIG_STATUS <<EOF
3174 # Protect against being on the right side of a sed subst in config.status.
3175 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3176 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3177 $ac_vpsub
3178 $extrasub
3179 s%@SHELL@%$SHELL%g
3180 s%@CFLAGS@%$CFLAGS%g
3181 s%@CPPFLAGS@%$CPPFLAGS%g
3182 s%@CXXFLAGS@%$CXXFLAGS%g
3183 s%@FFLAGS@%$FFLAGS%g
3184 s%@DEFS@%$DEFS%g
3185 s%@LDFLAGS@%$LDFLAGS%g
3186 s%@LIBS@%$LIBS%g
3187 s%@exec_prefix@%$exec_prefix%g
3188 s%@prefix@%$prefix%g
3189 s%@program_transform_name@%$program_transform_name%g
3190 s%@bindir@%$bindir%g
3191 s%@sbindir@%$sbindir%g
3192 s%@libexecdir@%$libexecdir%g
3193 s%@datadir@%$datadir%g
3194 s%@sysconfdir@%$sysconfdir%g
3195 s%@sharedstatedir@%$sharedstatedir%g
3196 s%@localstatedir@%$localstatedir%g
3197 s%@libdir@%$libdir%g
3198 s%@includedir@%$includedir%g
3199 s%@oldincludedir@%$oldincludedir%g
3200 s%@infodir@%$infodir%g
3201 s%@mandir@%$mandir%g
3202 s%@gc_basedir@%$gc_basedir%g
3203 s%@host@%$host%g
3204 s%@host_alias@%$host_alias%g
3205 s%@host_cpu@%$host_cpu%g
3206 s%@host_vendor@%$host_vendor%g
3207 s%@host_os@%$host_os%g
3208 s%@target@%$target%g
3209 s%@target_alias@%$target_alias%g
3210 s%@target_cpu@%$target_cpu%g
3211 s%@target_vendor@%$target_vendor%g
3212 s%@target_os@%$target_os%g
3213 s%@build@%$build%g
3214 s%@build_alias@%$build_alias%g
3215 s%@build_cpu@%$build_cpu%g
3216 s%@build_vendor@%$build_vendor%g
3217 s%@build_os@%$build_os%g
3218 s%@mkinstalldirs@%$mkinstalldirs%g
3219 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3220 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3221 s%@INSTALL_DATA@%$INSTALL_DATA%g
3222 s%@PACKAGE@%$PACKAGE%g
3223 s%@VERSION@%$VERSION%g
3224 s%@ACLOCAL@%$ACLOCAL%g
3225 s%@AUTOCONF@%$AUTOCONF%g
3226 s%@AUTOMAKE@%$AUTOMAKE%g
3227 s%@AUTOHEADER@%$AUTOHEADER%g
3228 s%@MAKEINFO@%$MAKEINFO%g
3229 s%@SET_MAKE@%$SET_MAKE%g
3230 s%@CC@%$CC%g
3231 s%@CXX@%$CXX%g
3232 s%@AS@%$AS%g
3233 s%@AR@%$AR%g
3234 s%@RANLIB@%$RANLIB%g
3235 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3236 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3237 s%@MAINT@%$MAINT%g
3238 s%@EXEEXT@%$EXEEXT%g
3239 s%@GC_CFLAGS@%$GC_CFLAGS%g
3240 s%@LN_S@%$LN_S%g
3241 s%@OBJEXT@%$OBJEXT%g
3242 s%@STRIP@%$STRIP%g
3243 s%@LIBTOOL@%$LIBTOOL%g
3244 s%@CXXCPP@%$CXXCPP%g
3245 s%@THREADLIBS@%$THREADLIBS%g
3246 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3247 s%@target_all@%$target_all%g
3248 s%@INCLUDES@%$INCLUDES%g
3249 s%@CXXINCLUDES@%$CXXINCLUDES%g
3250 s%@addobjs@%$addobjs%g
3251 s%@MY_CFLAGS@%$MY_CFLAGS%g
3252 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3253 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3255 CEOF
3258 cat >> $CONFIG_STATUS <<\EOF
3260 # Split the substitutions into bite-sized pieces for seds with
3261 # small command number limits, like on Digital OSF/1 and HP-UX.
3262 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3263 ac_file=1 # Number of current file.
3264 ac_beg=1 # First line for current file.
3265 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3266 ac_more_lines=:
3267 ac_sed_cmds=""
3268 while $ac_more_lines; do
3269 if test $ac_beg -gt 1; then
3270 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3271 else
3272 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3274 if test ! -s conftest.s$ac_file; then
3275 ac_more_lines=false
3276 rm -f conftest.s$ac_file
3277 else
3278 if test -z "$ac_sed_cmds"; then
3279 ac_sed_cmds="sed -f conftest.s$ac_file"
3280 else
3281 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3283 ac_file=`expr $ac_file + 1`
3284 ac_beg=$ac_end
3285 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3287 done
3288 if test -z "$ac_sed_cmds"; then
3289 ac_sed_cmds=cat
3293 cat >> $CONFIG_STATUS <<EOF
3295 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3297 cat >> $CONFIG_STATUS <<\EOF
3298 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3300 case "$ac_file" in
3301 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3302 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3303 *) ac_file_in="${ac_file}.in" ;;
3304 esac
3306 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3308 # Remove last slash and all that follows it. Not all systems have dirname.
3309 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3310 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3311 # The file is in a subdirectory.
3312 test ! -d "$ac_dir" && mkdir "$ac_dir"
3313 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3314 # A "../" for each directory in $ac_dir_suffix.
3315 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3316 else
3317 ac_dir_suffix= ac_dots=
3320 case "$ac_given_srcdir" in
3321 .) srcdir=.
3322 if test -z "$ac_dots"; then top_srcdir=.
3323 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3324 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3325 *) # Relative path.
3326 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3327 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3328 esac
3330 case "$ac_given_INSTALL" in
3331 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3332 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3333 esac
3335 echo creating "$ac_file"
3336 rm -f "$ac_file"
3337 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3338 case "$ac_file" in
3339 *Makefile*) ac_comsub="1i\\
3340 # $configure_input" ;;
3341 *) ac_comsub= ;;
3342 esac
3344 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3345 sed -e "$ac_comsub
3346 s%@configure_input@%$configure_input%g
3347 s%@srcdir@%$srcdir%g
3348 s%@top_srcdir@%$top_srcdir%g
3349 s%@INSTALL@%$INSTALL%g
3350 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3351 fi; done
3352 rm -f conftest.s*
3355 cat >> $CONFIG_STATUS <<EOF
3356 srcdir=${srcdir}
3357 host=${host}
3358 target=${target}
3359 with_multisubdir=${with_multisubdir}
3360 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3361 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3362 gc_basedir=${gc_basedir}
3363 CC="${CC}"
3364 DEFS="$DEFS"
3367 cat >> $CONFIG_STATUS <<\EOF
3369 echo "$DEFS" > boehm-cflags
3371 if test -n "$CONFIG_FILES"; then
3372 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3373 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3375 exit 0
3377 chmod +x $CONFIG_STATUS
3378 rm -fr confdefs* $ac_clean_files
3379 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1