acinclude.m4: Remove bogus duplicate call to AC_CANONICAL_BUILD.
[gcc.git] / boehm-gc / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
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=yes]"
45 ac_help="$ac_help
46 --with-target-subdir=SUBDIR
47 configuring with a cross compiler"
48 ac_help="$ac_help
49 --with-cross-host=HOST configuring with a cross compiler"
50 ac_help="$ac_help
51 --enable-full-debug include full support for pointer backtracing etc."
52
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
56 build=NONE
57 cache_file=./config.cache
58 exec_prefix=NONE
59 host=NONE
60 no_create=
61 nonopt=NONE
62 no_recursion=
63 prefix=NONE
64 program_prefix=NONE
65 program_suffix=NONE
66 program_transform_name=s,x,x,
67 silent=
68 site=
69 srcdir=
70 target=NONE
71 verbose=
72 x_includes=NONE
73 x_libraries=NONE
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
86
87 # Initialize some other variables.
88 subdirs=
89 MFLAGS= MAKEFLAGS=
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
92 ac_max_here_lines=12
93
94 ac_prev=
95 for ac_option
96 do
97
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
101 ac_prev=
102 continue
103 fi
104
105 case "$ac_option" in
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 *) ac_optarg= ;;
108 esac
109
110 # Accept the important Cygnus configure options, so we can diagnose typos.
111
112 case "$ac_option" in
113
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
115 ac_prev=bindir ;;
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
118
119 -build | --build | --buil | --bui | --bu)
120 ac_prev=build ;;
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122 build="$ac_optarg" ;;
123
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
130
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132 ac_prev=datadir ;;
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134 | --da=*)
135 datadir="$ac_optarg" ;;
136
137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 fi
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
145
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 fi
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 case "$ac_option" in
154 *=*) ;;
155 *) ac_optarg=yes ;;
156 esac
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
158
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
167
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
170 with_gas=yes ;;
171
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
175 cat << EOF
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
178 Configuration:
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
186 [$ac_default_prefix]
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
188 [same as prefix]
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
193 [PREFIX/share]
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 [PREFIX/com]
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
208 EOF
209 cat << EOF
210 Host type:
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
221 EOF
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
224 fi
225 exit 0 ;;
226
227 -host | --host | --hos | --ho)
228 ac_prev=host ;;
229 -host=* | --host=* | --hos=* | --ho=*)
230 host="$ac_optarg" ;;
231
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
238
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
240 ac_prev=infodir ;;
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
243
244 -libdir | --libdir | --libdi | --libd)
245 ac_prev=libdir ;;
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
248
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
255
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
264
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266 ac_prev=mandir ;;
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
269
270 -nfp | --nfp | --nf)
271 # Obsolete; use --without-fp.
272 with_fp=no ;;
273
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c)
276 no_create=yes ;;
277
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 no_recursion=yes ;;
281
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
290
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292 ac_prev=prefix ;;
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
295
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
302
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
309
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
326
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
329 silent=yes ;;
330
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 ac_prev=sbindir ;;
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 | --sbi=* | --sb=*)
335 sbindir="$ac_optarg" ;;
336
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
340 | --sha | --sh)
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 | --sha=* | --sh=*)
346 sharedstatedir="$ac_optarg" ;;
347
348 -site | --site | --sit)
349 ac_prev=site ;;
350 -site=* | --site=* | --sit=*)
351 site="$ac_optarg" ;;
352
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354 ac_prev=srcdir ;;
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
357
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
364
365 -target | --target | --targe | --targ | --tar | --ta | --t)
366 ac_prev=target ;;
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
369
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 verbose=yes ;;
372
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
375 exit 0 ;;
376
377 -with-* | --with-*)
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 case "$ac_option" in
385 *=*) ;;
386 *) ac_optarg=yes ;;
387 esac
388 eval "with_${ac_package}='$ac_optarg'" ;;
389
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 fi
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
398
399 --x)
400 # Obsolete; use --with-x.
401 with_x=yes ;;
402
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
409
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
416
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418 ;;
419
420 *)
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 fi
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 fi
427 nonopt="$ac_option"
428 ;;
429
430 esac
431 done
432
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 fi
436
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438
439 # File descriptor usage:
440 # 0 standard input
441 # 1 file creation
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
448 exec 6>/dev/null
449 else
450 exec 6>&1
451 fi
452 exec 5>./config.log
453
454 echo "\
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
457 " 1>&5
458
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
461 ac_configure_args=
462 for ac_arg
463 do
464 case "$ac_arg" in
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 esac
473 done
474
475 # NLS nuisances.
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
484
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 echo > confdefs.h
489
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=gcj_mlc.c
493
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
498 ac_prog=$0
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501 srcdir=$ac_confdir
502 if test ! -r $srcdir/$ac_unique_file; then
503 srcdir=..
504 fi
505 else
506 ac_srcdir_defaulted=no
507 fi
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511 else
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 fi
514 fi
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521 else
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 fi
524 fi
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
528 . "$ac_site_file"
529 fi
530 done
531
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
534 . $cache_file
535 else
536 echo "creating cache $cache_file"
537 > $cache_file
538 fi
539
540 ac_ext=c
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
546
547 ac_exeext=
548 ac_objext=o
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='
553 ' ac_t=' '
554 else
555 ac_n=-n ac_c= ac_t=
556 fi
557 else
558 ac_n= ac_c='\c' ac_t=
559 fi
560
561
562
563 # This works around the fact that libtool configuration may change LD
564 # for this particular configuration, but some shells, instead of
565 # keeping the changes in LD private, export them just because LD is
566 # exported.
567 ORIGINAL_LD_FOR_MULTILIBS=$LD
568
569 ac_aux_dir=
570 for ac_dir in . $srcdir/.; do
571 if test -f $ac_dir/install-sh; then
572 ac_aux_dir=$ac_dir
573 ac_install_sh="$ac_aux_dir/install-sh -c"
574 break
575 elif test -f $ac_dir/install.sh; then
576 ac_aux_dir=$ac_dir
577 ac_install_sh="$ac_aux_dir/install.sh -c"
578 break
579 fi
580 done
581 if test -z "$ac_aux_dir"; then
582 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
583 fi
584 ac_config_guess=$ac_aux_dir/config.guess
585 ac_config_sub=$ac_aux_dir/config.sub
586 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
587
588
589 # Check whether --enable-multilib or --disable-multilib was given.
590 if test "${enable_multilib+set}" = set; then
591 enableval="$enable_multilib"
592 case "${enableval}" in
593 yes) multilib=yes ;;
594 no) multilib=no ;;
595 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
596 esac
597 else
598 multilib=yes
599 fi
600
601
602 if test "${srcdir}" = "."; then
603 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
604 gc_basedir="${srcdir}/${with_multisrctop}../."
605 else
606 gc_basedir="${srcdir}/${with_multisrctop}."
607 fi
608 else
609 gc_basedir="${srcdir}/."
610 fi
611
612 ac_aux_dir=
613 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
614 if test -f $ac_dir/install-sh; then
615 ac_aux_dir=$ac_dir
616 ac_install_sh="$ac_aux_dir/install-sh -c"
617 break
618 elif test -f $ac_dir/install.sh; then
619 ac_aux_dir=$ac_dir
620 ac_install_sh="$ac_aux_dir/install.sh -c"
621 break
622 fi
623 done
624 if test -z "$ac_aux_dir"; then
625 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; }
626 fi
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630
631 if :; then :; else
632 # This overrides the previous occurrence for automake, but not for
633 # autoconf, which is exactly what we want.
634 ac_aux_dir=
635 for ac_dir in .. $srcdir/..; do
636 if test -f $ac_dir/install-sh; then
637 ac_aux_dir=$ac_dir
638 ac_install_sh="$ac_aux_dir/install-sh -c"
639 break
640 elif test -f $ac_dir/install.sh; then
641 ac_aux_dir=$ac_dir
642 ac_install_sh="$ac_aux_dir/install.sh -c"
643 break
644 fi
645 done
646 if test -z "$ac_aux_dir"; then
647 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
648 fi
649 ac_config_guess=$ac_aux_dir/config.guess
650 ac_config_sub=$ac_aux_dir/config.sub
651 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
652
653 fi
654
655
656 # Do some error checking and defaulting for the host and target type.
657 # The inputs are:
658 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
659 #
660 # The rules are:
661 # 1. You are not allowed to specify --host, --target, and nonopt at the
662 # same time.
663 # 2. Host defaults to nonopt.
664 # 3. If nonopt is not specified, then host defaults to the current host,
665 # as determined by config.guess.
666 # 4. Target and build default to nonopt.
667 # 5. If nonopt is not specified, then target and build default to host.
668
669 # The aliases save the names the user supplied, while $host etc.
670 # will get canonicalized.
671 case $host---$target---$nonopt in
672 NONE---*---* | *---NONE---* | *---*---NONE) ;;
673 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
674 esac
675
676
677 # Make sure we can run config.sub.
678 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
679 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
680 fi
681
682 echo $ac_n "checking host system type""... $ac_c" 1>&6
683 echo "configure:684: checking host system type" >&5
684
685 host_alias=$host
686 case "$host_alias" in
687 NONE)
688 case $nonopt in
689 NONE)
690 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
691 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
692 fi ;;
693 *) host_alias=$nonopt ;;
694 esac ;;
695 esac
696
697 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
698 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$host" 1>&6
702
703 echo $ac_n "checking target system type""... $ac_c" 1>&6
704 echo "configure:705: checking target system type" >&5
705
706 target_alias=$target
707 case "$target_alias" in
708 NONE)
709 case $nonopt in
710 NONE) target_alias=$host_alias ;;
711 *) target_alias=$nonopt ;;
712 esac ;;
713 esac
714
715 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
716 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$target" 1>&6
720
721 echo $ac_n "checking build system type""... $ac_c" 1>&6
722 echo "configure:723: checking build system type" >&5
723
724 build_alias=$build
725 case "$build_alias" in
726 NONE)
727 case $nonopt in
728 NONE) build_alias=$host_alias ;;
729 *) build_alias=$nonopt ;;
730 esac ;;
731 esac
732
733 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
734 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
737 echo "$ac_t""$build" 1>&6
738
739 test "$host_alias" != "$target_alias" &&
740 test "$program_prefix$program_suffix$program_transform_name" = \
741 NONENONEs,x,x, &&
742 program_prefix=${target_alias}-
743
744
745 # This works around an automake problem.
746 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
747
748
749 # Find a good install program. We prefer a C program (faster),
750 # so one script is as good as another. But avoid the broken or
751 # incompatible versions:
752 # SysV /etc/install, /usr/sbin/install
753 # SunOS /usr/etc/install
754 # IRIX /sbin/install
755 # AIX /bin/install
756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
759 # ./install, which can be erroneously created by make from ./install.sh.
760 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
761 echo "configure:762: checking for a BSD compatible install" >&5
762 if test -z "$INSTALL"; then
763 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
765 else
766 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
767 for ac_dir in $PATH; do
768 # Account for people who put trailing slashes in PATH elements.
769 case "$ac_dir/" in
770 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
771 *)
772 # OSF1 and SCO ODT 3.0 have their own names for install.
773 # Don't use installbsd from OSF since it installs stuff as root
774 # by default.
775 for ac_prog in ginstall scoinst install; do
776 if test -f $ac_dir/$ac_prog; then
777 if test $ac_prog = install &&
778 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
779 # AIX install. It has an incompatible calling convention.
780 :
781 else
782 ac_cv_path_install="$ac_dir/$ac_prog -c"
783 break 2
784 fi
785 fi
786 done
787 ;;
788 esac
789 done
790 IFS="$ac_save_IFS"
791
792 fi
793 if test "${ac_cv_path_install+set}" = set; then
794 INSTALL="$ac_cv_path_install"
795 else
796 # As a last resort, use the slow shell script. We don't cache a
797 # path for INSTALL within a source directory, because that will
798 # break other packages using the cache if that directory is
799 # removed, or if the path is relative.
800 INSTALL="$ac_install_sh"
801 fi
802 fi
803 echo "$ac_t""$INSTALL" 1>&6
804
805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
806 # It thinks the first close brace ends the variable substitution.
807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
808
809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
810
811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
812
813 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
814 echo "configure:815: checking whether build environment is sane" >&5
815 # Just in case
816 sleep 1
817 echo timestamp > conftestfile
818 # Do `set' in a subshell so we don't clobber the current shell's
819 # arguments. Must try -L first in case configure is actually a
820 # symlink; some systems play weird games with the mod time of symlinks
821 # (eg FreeBSD returns the mod time of the symlink's containing
822 # directory).
823 if (
824 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
825 if test "$*" = "X"; then
826 # -L didn't work.
827 set X `ls -t $srcdir/configure conftestfile`
828 fi
829 if test "$*" != "X $srcdir/configure conftestfile" \
830 && test "$*" != "X conftestfile $srcdir/configure"; then
831
832 # If neither matched, then we have a broken ls. This can happen
833 # if, for instance, CONFIG_SHELL is bash and it inherits a
834 # broken ls alias from the environment. This has actually
835 # happened. Such a system could not be considered "sane".
836 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
837 alias in your environment" 1>&2; exit 1; }
838 fi
839
840 test "$2" = conftestfile
841 )
842 then
843 # Ok.
844 :
845 else
846 { echo "configure: error: newly created file is older than distributed files!
847 Check your system clock" 1>&2; exit 1; }
848 fi
849 rm -f conftest*
850 echo "$ac_t""yes" 1>&6
851 if test "$program_transform_name" = s,x,x,; then
852 program_transform_name=
853 else
854 # Double any \ or $. echo might interpret backslashes.
855 cat <<\EOF_SED > conftestsed
856 s,\\,\\\\,g; s,\$,$$,g
857 EOF_SED
858 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
859 rm -f conftestsed
860 fi
861 test "$program_prefix" != NONE &&
862 program_transform_name="s,^,${program_prefix},; $program_transform_name"
863 # Use a double $ so make ignores it.
864 test "$program_suffix" != NONE &&
865 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
866
867 # sed with no file args requires a program.
868 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
869
870 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
871 echo "configure:872: checking whether ${MAKE-make} sets \${MAKE}" >&5
872 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
873 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
875 else
876 cat > conftestmake <<\EOF
877 all:
878 @echo 'ac_maketemp="${MAKE}"'
879 EOF
880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
881 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
882 if test -n "$ac_maketemp"; then
883 eval ac_cv_prog_make_${ac_make}_set=yes
884 else
885 eval ac_cv_prog_make_${ac_make}_set=no
886 fi
887 rm -f conftestmake
888 fi
889 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
890 echo "$ac_t""yes" 1>&6
891 SET_MAKE=
892 else
893 echo "$ac_t""no" 1>&6
894 SET_MAKE="MAKE=${MAKE-make}"
895 fi
896
897 if test $host != $build; then
898 ac_tool_prefix=${host_alias}-
899 else
900 ac_tool_prefix=
901 fi
902
903 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
904 echo "configure:905: checking for Cygwin environment" >&5
905 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
907 else
908 cat > conftest.$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
911
912 int main() {
913
914 #ifndef __CYGWIN__
915 #define __CYGWIN__ __CYGWIN32__
916 #endif
917 return __CYGWIN__;
918 ; return 0; }
919 EOF
920 if { (eval echo configure:921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
921 rm -rf conftest*
922 ac_cv_cygwin=yes
923 else
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 rm -rf conftest*
927 ac_cv_cygwin=no
928 fi
929 rm -f conftest*
930 rm -f conftest*
931 fi
932
933 echo "$ac_t""$ac_cv_cygwin" 1>&6
934 CYGWIN=
935 test "$ac_cv_cygwin" = yes && CYGWIN=yes
936 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
937 echo "configure:938: checking for mingw32 environment" >&5
938 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
940 else
941 cat > conftest.$ac_ext <<EOF
942 #line 943 "configure"
943 #include "confdefs.h"
944
945 int main() {
946 return __MINGW32__;
947 ; return 0; }
948 EOF
949 if { (eval echo configure:950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
950 rm -rf conftest*
951 ac_cv_mingw32=yes
952 else
953 echo "configure: failed program was:" >&5
954 cat conftest.$ac_ext >&5
955 rm -rf conftest*
956 ac_cv_mingw32=no
957 fi
958 rm -f conftest*
959 rm -f conftest*
960 fi
961
962 echo "$ac_t""$ac_cv_mingw32" 1>&6
963 MINGW32=
964 test "$ac_cv_mingw32" = yes && MINGW32=yes
965
966
967
968 PACKAGE=gc
969
970 VERSION=6.0
971
972 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
973 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
974 fi
975
976
977
978 missing_dir=`cd $ac_aux_dir && pwd`
979 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
980 echo "configure:981: checking for working aclocal" >&5
981 # Run test in a subshell; some versions of sh will print an error if
982 # an executable is not found, even if stderr is redirected.
983 # Redirect stdin to placate older versions of autoconf. Sigh.
984 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
985 ACLOCAL=aclocal
986 echo "$ac_t""found" 1>&6
987 else
988 ACLOCAL="$missing_dir/missing aclocal"
989 echo "$ac_t""missing" 1>&6
990 fi
991
992 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
993 echo "configure:994: checking for working autoconf" >&5
994 # Run test in a subshell; some versions of sh will print an error if
995 # an executable is not found, even if stderr is redirected.
996 # Redirect stdin to placate older versions of autoconf. Sigh.
997 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
998 AUTOCONF=autoconf
999 echo "$ac_t""found" 1>&6
1000 else
1001 AUTOCONF="$missing_dir/missing autoconf"
1002 echo "$ac_t""missing" 1>&6
1003 fi
1004
1005 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1006 echo "configure:1007: checking for working automake" >&5
1007 # Run test in a subshell; some versions of sh will print an error if
1008 # an executable is not found, even if stderr is redirected.
1009 # Redirect stdin to placate older versions of autoconf. Sigh.
1010 if (automake --version) < /dev/null > /dev/null 2>&1; then
1011 AUTOMAKE=automake
1012 echo "$ac_t""found" 1>&6
1013 else
1014 AUTOMAKE="$missing_dir/missing automake"
1015 echo "$ac_t""missing" 1>&6
1016 fi
1017
1018 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1019 echo "configure:1020: checking for working autoheader" >&5
1020 # Run test in a subshell; some versions of sh will print an error if
1021 # an executable is not found, even if stderr is redirected.
1022 # Redirect stdin to placate older versions of autoconf. Sigh.
1023 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1024 AUTOHEADER=autoheader
1025 echo "$ac_t""found" 1>&6
1026 else
1027 AUTOHEADER="$missing_dir/missing autoheader"
1028 echo "$ac_t""missing" 1>&6
1029 fi
1030
1031 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1032 echo "configure:1033: checking for working makeinfo" >&5
1033 # Run test in a subshell; some versions of sh will print an error if
1034 # an executable is not found, even if stderr is redirected.
1035 # Redirect stdin to placate older versions of autoconf. Sigh.
1036 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1037 MAKEINFO=makeinfo
1038 echo "$ac_t""found" 1>&6
1039 else
1040 MAKEINFO="$missing_dir/missing makeinfo"
1041 echo "$ac_t""missing" 1>&6
1042 fi
1043
1044
1045
1046 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1047 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1048 # are probably using a cross compiler, which will not be able to fully
1049 # link an executable. This should really be fixed in autoconf
1050 # itself.
1051
1052
1053
1054
1055 # Extract the first word of "gcc", so it can be a program name with args.
1056 set dummy gcc; ac_word=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061 else
1062 if test -n "$CC"; then
1063 ac_cv_prog_CC="$CC" # Let the user override the test.
1064 else
1065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1066 ac_dummy="$PATH"
1067 for ac_dir in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f $ac_dir/$ac_word; then
1070 ac_cv_prog_CC="gcc"
1071 break
1072 fi
1073 done
1074 IFS="$ac_save_ifs"
1075 fi
1076 fi
1077 CC="$ac_cv_prog_CC"
1078 if test -n "$CC"; then
1079 echo "$ac_t""$CC" 1>&6
1080 else
1081 echo "$ac_t""no" 1>&6
1082 fi
1083
1084 if test -z "$CC"; then
1085 # Extract the first word of "cc", so it can be a program name with args.
1086 set dummy cc; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092 if test -n "$CC"; then
1093 ac_cv_prog_CC="$CC" # Let the user override the test.
1094 else
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1096 ac_prog_rejected=no
1097 ac_dummy="$PATH"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1102 ac_prog_rejected=yes
1103 continue
1104 fi
1105 ac_cv_prog_CC="cc"
1106 break
1107 fi
1108 done
1109 IFS="$ac_save_ifs"
1110 if test $ac_prog_rejected = yes; then
1111 # We found a bogon in the path, so make sure we never use it.
1112 set dummy $ac_cv_prog_CC
1113 shift
1114 if test $# -gt 0; then
1115 # We chose a different compiler from the bogus one.
1116 # However, it has the same basename, so the bogon will be chosen
1117 # first if we set CC to just the basename; use the full file name.
1118 shift
1119 set dummy "$ac_dir/$ac_word" "$@"
1120 shift
1121 ac_cv_prog_CC="$@"
1122 fi
1123 fi
1124 fi
1125 fi
1126 CC="$ac_cv_prog_CC"
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1129 else
1130 echo "$ac_t""no" 1>&6
1131 fi
1132
1133 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1134 fi
1135
1136 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether we are using GNU C" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141 cat > conftest.c <<EOF
1142 #ifdef __GNUC__
1143 yes;
1144 #endif
1145 EOF
1146 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1147 ac_cv_prog_gcc=yes
1148 else
1149 ac_cv_prog_gcc=no
1150 fi
1151 fi
1152
1153 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1154
1155 if test $ac_cv_prog_gcc = yes; then
1156 GCC=yes
1157 ac_test_CFLAGS="${CFLAGS+set}"
1158 ac_save_CFLAGS="$CFLAGS"
1159 CFLAGS=
1160 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether ${CC-cc} accepts -g" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1164 else
1165 echo 'void f(){}' > conftest.c
1166 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1167 ac_cv_prog_cc_g=yes
1168 else
1169 ac_cv_prog_cc_g=no
1170 fi
1171 rm -f conftest*
1172
1173 fi
1174
1175 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1176 if test "$ac_test_CFLAGS" = set; then
1177 CFLAGS="$ac_save_CFLAGS"
1178 elif test $ac_cv_prog_cc_g = yes; then
1179 CFLAGS="-g -O2"
1180 else
1181 CFLAGS="-O2"
1182 fi
1183 else
1184 GCC=
1185 test "${CFLAGS+set}" = set || CFLAGS="-g"
1186 fi
1187
1188
1189 # Likewise for AC_PROG_CXX.
1190
1191
1192
1193 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1194 do
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy $ac_prog; ac_word=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201 else
1202 if test -n "$CXX"; then
1203 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1204 else
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1206 ac_dummy="$PATH"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_CXX="$ac_prog"
1211 break
1212 fi
1213 done
1214 IFS="$ac_save_ifs"
1215 fi
1216 fi
1217 CXX="$ac_cv_prog_CXX"
1218 if test -n "$CXX"; then
1219 echo "$ac_t""$CXX" 1>&6
1220 else
1221 echo "$ac_t""no" 1>&6
1222 fi
1223
1224 test -n "$CXX" && break
1225 done
1226 test -n "$CXX" || CXX="gcc"
1227
1228 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1229
1230 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C++" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235 cat > conftest.C <<EOF
1236 #ifdef __GNUC__
1237 yes;
1238 #endif
1239 EOF
1240 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1241 ac_cv_prog_gxx=yes
1242 else
1243 ac_cv_prog_gxx=no
1244 fi
1245 fi
1246
1247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1248
1249 if test $ac_cv_prog_gxx = yes; then
1250 GXX=yes
1251 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1252 ac_save_CXXFLAGS="$CXXFLAGS"
1253 CXXFLAGS=
1254 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ${CXX-g++} accepts -g" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259 echo 'void f(){}' > conftest.cc
1260 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1261 ac_cv_prog_cxx_g=yes
1262 else
1263 ac_cv_prog_cxx_g=no
1264 fi
1265 rm -f conftest*
1266
1267 fi
1268
1269 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1270 if test "$ac_test_CXXFLAGS" = set; then
1271 CXXFLAGS="$ac_save_CXXFLAGS"
1272 elif test $ac_cv_prog_cxx_g = yes; then
1273 CXXFLAGS="-g -O2"
1274 else
1275 CXXFLAGS="-O2"
1276 fi
1277 else
1278 GXX=
1279 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1280 fi
1281
1282
1283 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1284 set dummy ${ac_tool_prefix}as; ac_word=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290 if test -n "$AS"; then
1291 ac_cv_prog_AS="$AS" # Let the user override the test.
1292 else
1293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1294 ac_dummy="$PATH"
1295 for ac_dir in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_AS="${ac_tool_prefix}as"
1299 break
1300 fi
1301 done
1302 IFS="$ac_save_ifs"
1303 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1304 fi
1305 fi
1306 AS="$ac_cv_prog_AS"
1307 if test -n "$AS"; then
1308 echo "$ac_t""$AS" 1>&6
1309 else
1310 echo "$ac_t""no" 1>&6
1311 fi
1312
1313
1314
1315 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1316 set dummy ${ac_tool_prefix}ar; ac_word=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 if test -n "$AR"; then
1323 ac_cv_prog_AR="$AR" # Let the user override the test.
1324 else
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1326 ac_dummy="$PATH"
1327 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_AR="${ac_tool_prefix}ar"
1331 break
1332 fi
1333 done
1334 IFS="$ac_save_ifs"
1335 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1336 fi
1337 fi
1338 AR="$ac_cv_prog_AR"
1339 if test -n "$AR"; then
1340 echo "$ac_t""$AR" 1>&6
1341 else
1342 echo "$ac_t""no" 1>&6
1343 fi
1344
1345
1346
1347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 if test -n "$RANLIB"; then
1355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1356 else
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1358 ac_dummy="$PATH"
1359 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1363 break
1364 fi
1365 done
1366 IFS="$ac_save_ifs"
1367 fi
1368 fi
1369 RANLIB="$ac_cv_prog_RANLIB"
1370 if test -n "$RANLIB"; then
1371 echo "$ac_t""$RANLIB" 1>&6
1372 else
1373 echo "$ac_t""no" 1>&6
1374 fi
1375
1376
1377 if test -z "$ac_cv_prog_RANLIB"; then
1378 if test -n "$ac_tool_prefix"; then
1379 # Extract the first word of "ranlib", so it can be a program name with args.
1380 set dummy ranlib; ac_word=$2
1381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1382 echo "configure:1383: checking for $ac_word" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385 else
1386 if test -n "$RANLIB"; then
1387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1388 else
1389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1390 ac_dummy="$PATH"
1391 for ac_dir in $ac_dummy; do
1392 test -z "$ac_dir" && ac_dir=.
1393 if test -f $ac_dir/$ac_word; then
1394 ac_cv_prog_RANLIB="ranlib"
1395 break
1396 fi
1397 done
1398 IFS="$ac_save_ifs"
1399 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1400 fi
1401 fi
1402 RANLIB="$ac_cv_prog_RANLIB"
1403 if test -n "$RANLIB"; then
1404 echo "$ac_t""$RANLIB" 1>&6
1405 else
1406 echo "$ac_t""no" 1>&6
1407 fi
1408
1409 else
1410 RANLIB=":"
1411 fi
1412 fi
1413
1414
1415 # Find a good install program. We prefer a C program (faster),
1416 # so one script is as good as another. But avoid the broken or
1417 # incompatible versions:
1418 # SysV /etc/install, /usr/sbin/install
1419 # SunOS /usr/etc/install
1420 # IRIX /sbin/install
1421 # AIX /bin/install
1422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1425 # ./install, which can be erroneously created by make from ./install.sh.
1426 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1427 echo "configure:1428: checking for a BSD compatible install" >&5
1428 if test -z "$INSTALL"; then
1429 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1433 for ac_dir in $PATH; do
1434 # Account for people who put trailing slashes in PATH elements.
1435 case "$ac_dir/" in
1436 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1437 *)
1438 # OSF1 and SCO ODT 3.0 have their own names for install.
1439 # Don't use installbsd from OSF since it installs stuff as root
1440 # by default.
1441 for ac_prog in ginstall scoinst install; do
1442 if test -f $ac_dir/$ac_prog; then
1443 if test $ac_prog = install &&
1444 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1445 # AIX install. It has an incompatible calling convention.
1446 :
1447 else
1448 ac_cv_path_install="$ac_dir/$ac_prog -c"
1449 break 2
1450 fi
1451 fi
1452 done
1453 ;;
1454 esac
1455 done
1456 IFS="$ac_save_IFS"
1457
1458 fi
1459 if test "${ac_cv_path_install+set}" = set; then
1460 INSTALL="$ac_cv_path_install"
1461 else
1462 # As a last resort, use the slow shell script. We don't cache a
1463 # path for INSTALL within a source directory, because that will
1464 # break other packages using the cache if that directory is
1465 # removed, or if the path is relative.
1466 INSTALL="$ac_install_sh"
1467 fi
1468 fi
1469 echo "$ac_t""$INSTALL" 1>&6
1470
1471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1472 # It thinks the first close brace ends the variable substitution.
1473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1474
1475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1476
1477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1478
1479
1480 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether to enable maintainer-specific portions of Makefiles" >&5
1482 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1483 if test "${enable_maintainer_mode+set}" = set; then
1484 enableval="$enable_maintainer_mode"
1485 USE_MAINTAINER_MODE=$enableval
1486 else
1487 USE_MAINTAINER_MODE=no
1488 fi
1489
1490 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1491
1492
1493 if test $USE_MAINTAINER_MODE = yes; then
1494 MAINTAINER_MODE_TRUE=
1495 MAINTAINER_MODE_FALSE='#'
1496 else
1497 MAINTAINER_MODE_TRUE='#'
1498 MAINTAINER_MODE_FALSE=
1499 fi
1500 MAINT=$MAINTAINER_MODE_TRUE
1501
1502
1503
1504 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1505 # at least currently, we never actually build a program, so we never
1506 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1507 # fails, because we are probably configuring with a cross compiler
1508 # which can't create executables. So we include AC_EXEEXT to keep
1509 # automake happy, but we don't execute it, since we don't care about
1510 # the result.
1511 if false; then
1512 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1513 # to nothing, so nothing would remain between `then' and `fi' if it
1514 # were not for the `:' below.
1515 :
1516
1517
1518 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1519 echo "configure:1520: checking for executable suffix" >&5
1520 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1522 else
1523 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1524 ac_cv_exeext=.exe
1525 else
1526 rm -f conftest*
1527 echo 'int main () { return 0; }' > conftest.$ac_ext
1528 ac_cv_exeext=
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1530 for file in conftest.*; do
1531 case $file in
1532 *.$ac_ext | *.c | *.o | *.obj) ;;
1533 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1534 esac
1535 done
1536 else
1537 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1538 fi
1539 rm -f conftest*
1540 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1541 fi
1542 fi
1543
1544 EXEEXT=""
1545 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1546 echo "$ac_t""${ac_cv_exeext}" 1>&6
1547 ac_exeext=$EXEEXT
1548
1549 fi
1550
1551 . ${srcdir}/configure.host
1552
1553 case ${gc_basedir} in
1554 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
1555 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1556 esac
1557
1558 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1559 case "${host}" in
1560 *-*-cygwin32*)
1561 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1562 ;;
1563 esac
1564
1565
1566 GC_CFLAGS=${gc_cflags}
1567
1568
1569
1570 # Check whether --enable-shared or --disable-shared was given.
1571 if test "${enable_shared+set}" = set; then
1572 enableval="$enable_shared"
1573 p=${PACKAGE-default}
1574 case $enableval in
1575 yes) enable_shared=yes ;;
1576 no) enable_shared=no ;;
1577 *)
1578 enable_shared=no
1579 # Look at the argument we got. We use all the common list separators.
1580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1581 for pkg in $enableval; do
1582 if test "X$pkg" = "X$p"; then
1583 enable_shared=yes
1584 fi
1585 done
1586 IFS="$ac_save_ifs"
1587 ;;
1588 esac
1589 else
1590 enable_shared=yes
1591 fi
1592
1593 # Check whether --enable-static or --disable-static was given.
1594 if test "${enable_static+set}" = set; then
1595 enableval="$enable_static"
1596 p=${PACKAGE-default}
1597 case $enableval in
1598 yes) enable_static=yes ;;
1599 no) enable_static=no ;;
1600 *)
1601 enable_static=no
1602 # Look at the argument we got. We use all the common list separators.
1603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1604 for pkg in $enableval; do
1605 if test "X$pkg" = "X$p"; then
1606 enable_static=yes
1607 fi
1608 done
1609 IFS="$ac_save_ifs"
1610 ;;
1611 esac
1612 else
1613 enable_static=yes
1614 fi
1615
1616 # Check whether --enable-fast-install or --disable-fast-install was given.
1617 if test "${enable_fast_install+set}" = set; then
1618 enableval="$enable_fast_install"
1619 p=${PACKAGE-default}
1620 case $enableval in
1621 yes) enable_fast_install=yes ;;
1622 no) enable_fast_install=no ;;
1623 *)
1624 enable_fast_install=no
1625 # Look at the argument we got. We use all the common list separators.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1627 for pkg in $enableval; do
1628 if test "X$pkg" = "X$p"; then
1629 enable_fast_install=yes
1630 fi
1631 done
1632 IFS="$ac_save_ifs"
1633 ;;
1634 esac
1635 else
1636 enable_fast_install=yes
1637 fi
1638
1639 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1640 if test "${with_gnu_ld+set}" = set; then
1641 withval="$with_gnu_ld"
1642 test "$withval" = no || with_gnu_ld=yes
1643 else
1644 with_gnu_ld=no
1645 fi
1646
1647 ac_prog=ld
1648 if test "$GCC" = yes; then
1649 # Check if gcc -print-prog-name=ld gives a path.
1650 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1651 echo "configure:1652: checking for ld used by GCC" >&5
1652 case $host in
1653 *-*-mingw*)
1654 # gcc leaves a trailing carriage return which upsets mingw
1655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1656 *)
1657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1658 esac
1659 case $ac_prog in
1660 # Accept absolute paths.
1661 [\\/]* | [A-Za-z]:[\\/]*)
1662 re_direlt='/[^/][^/]*/\.\./'
1663 # Canonicalize the path of ld
1664 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1665 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1666 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1667 done
1668 test -z "$LD" && LD="$ac_prog"
1669 ;;
1670 "")
1671 # If it fails, then pretend we aren't using GCC.
1672 ac_prog=ld
1673 ;;
1674 *)
1675 # If it is relative, then search for the first ld in PATH.
1676 with_gnu_ld=unknown
1677 ;;
1678 esac
1679 elif test "$with_gnu_ld" = yes; then
1680 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1681 echo "configure:1682: checking for GNU ld" >&5
1682 else
1683 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1684 echo "configure:1685: checking for non-GNU ld" >&5
1685 fi
1686 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1688 else
1689 if test -z "$LD"; then
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1691 for ac_dir in $PATH; do
1692 test -z "$ac_dir" && ac_dir=.
1693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1694 lt_cv_path_LD="$ac_dir/$ac_prog"
1695 # Check to see if the program is GNU ld. I'd rather use --version,
1696 # but apparently some GNU ld's only accept -v.
1697 # Break only if it was the GNU/non-GNU ld that we prefer.
1698 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1699 test "$with_gnu_ld" != no && break
1700 else
1701 test "$with_gnu_ld" != yes && break
1702 fi
1703 fi
1704 done
1705 IFS="$ac_save_ifs"
1706 else
1707 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1708 fi
1709 fi
1710
1711 LD="$lt_cv_path_LD"
1712 if test -n "$LD"; then
1713 echo "$ac_t""$LD" 1>&6
1714 else
1715 echo "$ac_t""no" 1>&6
1716 fi
1717 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1718 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1719 echo "configure:1720: checking if the linker ($LD) is GNU ld" >&5
1720 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1722 else
1723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1724 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1725 lt_cv_prog_gnu_ld=yes
1726 else
1727 lt_cv_prog_gnu_ld=no
1728 fi
1729 fi
1730
1731 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1732 with_gnu_ld=$lt_cv_prog_gnu_ld
1733
1734
1735 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $LD option to reload object files" >&5
1737 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 lt_cv_ld_reload_flag='-r'
1741 fi
1742
1743 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1744 reload_flag=$lt_cv_ld_reload_flag
1745 test -n "$reload_flag" && reload_flag=" $reload_flag"
1746
1747 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1748 echo "configure:1749: checking for BSD-compatible nm" >&5
1749 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 if test -n "$NM"; then
1753 # Let the user override the test.
1754 lt_cv_path_NM="$NM"
1755 else
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1757 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1758 test -z "$ac_dir" && ac_dir=.
1759 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1760 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1761 # Check to see if the nm accepts a BSD-compat flag.
1762 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1763 # nm: unknown option "B" ignored
1764 # Tru64's nm complains that /dev/null is an invalid object file
1765 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1766 lt_cv_path_NM="$tmp_nm -B"
1767 break
1768 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1769 lt_cv_path_NM="$tmp_nm -p"
1770 break
1771 else
1772 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1773 continue # so that we can try to find one that supports BSD flags
1774 fi
1775 fi
1776 done
1777 IFS="$ac_save_ifs"
1778 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1779 fi
1780 fi
1781
1782 NM="$lt_cv_path_NM"
1783 echo "$ac_t""$NM" 1>&6
1784
1785 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether ln -s works" >&5
1787 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1789 else
1790 rm -f conftestdata
1791 if ln -s X conftestdata 2>/dev/null
1792 then
1793 rm -f conftestdata
1794 ac_cv_prog_LN_S="ln -s"
1795 else
1796 ac_cv_prog_LN_S=ln
1797 fi
1798 fi
1799 LN_S="$ac_cv_prog_LN_S"
1800 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1807 echo "configure:1808: checking how to recognise dependant libraries" >&5
1808 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811 lt_cv_file_magic_cmd='$MAGIC_CMD'
1812 lt_cv_file_magic_test_file=
1813 lt_cv_deplibs_check_method='unknown'
1814 # Need to set the preceding variable on all platforms that support
1815 # interlibrary dependencies.
1816 # 'none' -- dependencies not supported.
1817 # `unknown' -- same as none, but documents that we really don't know.
1818 # 'pass_all' -- all dependencies passed with no checks.
1819 # 'test_compile' -- check by making test program.
1820 # 'file_magic [regex]' -- check by looking for files in library path
1821 # which responds to the $file_magic_cmd with a given egrep regex.
1822 # If you have `file' or equivalent on your system and you're not sure
1823 # whether `pass_all' will *always* work, you probably want this one.
1824
1825 case $host_os in
1826 aix*)
1827 lt_cv_deplibs_check_method=pass_all
1828 ;;
1829
1830 beos*)
1831 lt_cv_deplibs_check_method=pass_all
1832 ;;
1833
1834 bsdi4*)
1835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1836 lt_cv_file_magic_cmd='/usr/bin/file -L'
1837 lt_cv_file_magic_test_file=/shlib/libc.so
1838 ;;
1839
1840 cygwin* | mingw* |pw32*)
1841 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1842 lt_cv_file_magic_cmd='$OBJDUMP -f'
1843 ;;
1844
1845 darwin* | rhapsody*)
1846 # this will be overwritten by pass_all, but leave it in just in case
1847 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1848 lt_cv_file_magic_cmd='/usr/bin/file -L'
1849 case "$host_os" in
1850 rhapsody* | darwin1.012)
1851 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1852 ;;
1853 *) # Darwin 1.3 on
1854 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1855 ;;
1856 esac
1857 lt_cv_deplibs_check_method=pass_all
1858 ;;
1859
1860 freebsd* )
1861 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1862 case $host_cpu in
1863 i*86 )
1864 # Not sure whether the presence of OpenBSD here was a mistake.
1865 # Let's accept both of them until this is cleared up.
1866 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1867 lt_cv_file_magic_cmd=/usr/bin/file
1868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1869 ;;
1870 esac
1871 else
1872 lt_cv_deplibs_check_method=pass_all
1873 fi
1874 ;;
1875
1876 gnu*)
1877 lt_cv_deplibs_check_method=pass_all
1878 ;;
1879
1880 hpux10.20*|hpux11*)
1881 case $host_cpu in
1882 hppa*)
1883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1884 lt_cv_file_magic_cmd=/usr/bin/file
1885 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1886 ;;
1887 ia64*)
1888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1889 lt_cv_file_magic_cmd=/usr/bin/file
1890 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1891 ;;
1892 esac
1893 ;;
1894
1895 irix5* | irix6*)
1896 case $host_os in
1897 irix5*)
1898 # this will be overridden with pass_all, but let us keep it just in case
1899 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1900 ;;
1901 *)
1902 case $LD in
1903 *-32|*"-32 ") libmagic=32-bit;;
1904 *-n32|*"-n32 ") libmagic=N32;;
1905 *-64|*"-64 ") libmagic=64-bit;;
1906 *) libmagic=never-match;;
1907 esac
1908 # this will be overridden with pass_all, but let us keep it just in case
1909 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1910 ;;
1911 esac
1912 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1913 lt_cv_deplibs_check_method=pass_all
1914 ;;
1915
1916 # This must be Linux ELF.
1917 linux-gnu*)
1918 case $host_cpu in
1919 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1920 lt_cv_deplibs_check_method=pass_all ;;
1921 *)
1922 # glibc up to 2.1.1 does not perform some relocations on ARM
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1924 esac
1925 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1926 ;;
1927
1928 netbsd*)
1929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1930 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1931 else
1932 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1933 fi
1934 ;;
1935
1936 newsos6)
1937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1938 lt_cv_file_magic_cmd=/usr/bin/file
1939 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1940 ;;
1941
1942 osf3* | osf4* | osf5*)
1943 # this will be overridden with pass_all, but let us keep it just in case
1944 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1945 lt_cv_file_magic_test_file=/shlib/libc.so
1946 lt_cv_deplibs_check_method=pass_all
1947 ;;
1948
1949 sco3.2v5*)
1950 lt_cv_deplibs_check_method=pass_all
1951 ;;
1952
1953 solaris*)
1954 lt_cv_deplibs_check_method=pass_all
1955 lt_cv_file_magic_test_file=/lib/libc.so
1956 ;;
1957
1958 sysv5uw[78]* | sysv4*uw2*)
1959 lt_cv_deplibs_check_method=pass_all
1960 ;;
1961
1962 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1963 case $host_vendor in
1964 ncr)
1965 lt_cv_deplibs_check_method=pass_all
1966 ;;
1967 motorola)
1968 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]'
1969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1970 ;;
1971 esac
1972 ;;
1973 esac
1974
1975 fi
1976
1977 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1978 file_magic_cmd=$lt_cv_file_magic_cmd
1979 deplibs_check_method=$lt_cv_deplibs_check_method
1980
1981 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1982 echo "configure:1983: checking for object suffix" >&5
1983 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986 rm -f conftest*
1987 echo 'int i = 1;' > conftest.$ac_ext
1988 if { (eval echo configure:1989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1989 for ac_file in conftest.*; do
1990 case $ac_file in
1991 *.c) ;;
1992 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1993 esac
1994 done
1995 else
1996 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1997 fi
1998 rm -f conftest*
1999 fi
2000
2001 echo "$ac_t""$ac_cv_objext" 1>&6
2002 OBJEXT=$ac_cv_objext
2003 ac_objext=$ac_cv_objext
2004
2005 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2006
2007 # Only perform the check for file, if the check method requires it
2008 case $deplibs_check_method in
2009 file_magic*)
2010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2011 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2012 echo "configure:2013: checking for ${ac_tool_prefix}file" >&5
2013 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015 else
2016 case $MAGIC_CMD in
2017 /*)
2018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2019 ;;
2020 ?:/*)
2021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2022 ;;
2023 *)
2024 ac_save_MAGIC_CMD="$MAGIC_CMD"
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2026 ac_dummy="/usr/bin:$PATH"
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/${ac_tool_prefix}file; then
2030 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2031 if test -n "$file_magic_test_file"; then
2032 case $deplibs_check_method in
2033 "file_magic "*)
2034 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2036 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2037 egrep "$file_magic_regex" > /dev/null; then
2038 :
2039 else
2040 cat <<EOF 1>&2
2041
2042 *** Warning: the command libtool uses to detect shared libraries,
2043 *** $file_magic_cmd, produces output that libtool cannot recognize.
2044 *** The result is that libtool may fail to recognize shared libraries
2045 *** as such. This will affect the creation of libtool libraries that
2046 *** depend on shared libraries, but programs linked with such libtool
2047 *** libraries will work regardless of this problem. Nevertheless, you
2048 *** may want to report the problem to your system manager and/or to
2049 *** bug-libtool@gnu.org
2050
2051 EOF
2052 fi ;;
2053 esac
2054 fi
2055 break
2056 fi
2057 done
2058 IFS="$ac_save_ifs"
2059 MAGIC_CMD="$ac_save_MAGIC_CMD"
2060 ;;
2061 esac
2062 fi
2063
2064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2065 if test -n "$MAGIC_CMD"; then
2066 echo "$ac_t""$MAGIC_CMD" 1>&6
2067 else
2068 echo "$ac_t""no" 1>&6
2069 fi
2070
2071 if test -z "$lt_cv_path_MAGIC_CMD"; then
2072 if test -n "$ac_tool_prefix"; then
2073 echo $ac_n "checking for file""... $ac_c" 1>&6
2074 echo "configure:2075: checking for file" >&5
2075 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2077 else
2078 case $MAGIC_CMD in
2079 /*)
2080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2081 ;;
2082 ?:/*)
2083 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2084 ;;
2085 *)
2086 ac_save_MAGIC_CMD="$MAGIC_CMD"
2087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2088 ac_dummy="/usr/bin:$PATH"
2089 for ac_dir in $ac_dummy; do
2090 test -z "$ac_dir" && ac_dir=.
2091 if test -f $ac_dir/file; then
2092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2093 if test -n "$file_magic_test_file"; then
2094 case $deplibs_check_method in
2095 "file_magic "*)
2096 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2099 egrep "$file_magic_regex" > /dev/null; then
2100 :
2101 else
2102 cat <<EOF 1>&2
2103
2104 *** Warning: the command libtool uses to detect shared libraries,
2105 *** $file_magic_cmd, produces output that libtool cannot recognize.
2106 *** The result is that libtool may fail to recognize shared libraries
2107 *** as such. This will affect the creation of libtool libraries that
2108 *** depend on shared libraries, but programs linked with such libtool
2109 *** libraries will work regardless of this problem. Nevertheless, you
2110 *** may want to report the problem to your system manager and/or to
2111 *** bug-libtool@gnu.org
2112
2113 EOF
2114 fi ;;
2115 esac
2116 fi
2117 break
2118 fi
2119 done
2120 IFS="$ac_save_ifs"
2121 MAGIC_CMD="$ac_save_MAGIC_CMD"
2122 ;;
2123 esac
2124 fi
2125
2126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2127 if test -n "$MAGIC_CMD"; then
2128 echo "$ac_t""$MAGIC_CMD" 1>&6
2129 else
2130 echo "$ac_t""no" 1>&6
2131 fi
2132
2133 else
2134 MAGIC_CMD=:
2135 fi
2136 fi
2137
2138 fi
2139 ;;
2140 esac
2141
2142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_word" >&5
2146 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2148 else
2149 if test -n "$RANLIB"; then
2150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2151 else
2152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2153 ac_dummy="$PATH"
2154 for ac_dir in $ac_dummy; do
2155 test -z "$ac_dir" && ac_dir=.
2156 if test -f $ac_dir/$ac_word; then
2157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2158 break
2159 fi
2160 done
2161 IFS="$ac_save_ifs"
2162 fi
2163 fi
2164 RANLIB="$ac_cv_prog_RANLIB"
2165 if test -n "$RANLIB"; then
2166 echo "$ac_t""$RANLIB" 1>&6
2167 else
2168 echo "$ac_t""no" 1>&6
2169 fi
2170
2171
2172 if test -z "$ac_cv_prog_RANLIB"; then
2173 if test -n "$ac_tool_prefix"; then
2174 # Extract the first word of "ranlib", so it can be a program name with args.
2175 set dummy ranlib; ac_word=$2
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_word" >&5
2178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181 if test -n "$RANLIB"; then
2182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2183 else
2184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2185 ac_dummy="$PATH"
2186 for ac_dir in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir=.
2188 if test -f $ac_dir/$ac_word; then
2189 ac_cv_prog_RANLIB="ranlib"
2190 break
2191 fi
2192 done
2193 IFS="$ac_save_ifs"
2194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2195 fi
2196 fi
2197 RANLIB="$ac_cv_prog_RANLIB"
2198 if test -n "$RANLIB"; then
2199 echo "$ac_t""$RANLIB" 1>&6
2200 else
2201 echo "$ac_t""no" 1>&6
2202 fi
2203
2204 else
2205 RANLIB=":"
2206 fi
2207 fi
2208
2209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2210 set dummy ${ac_tool_prefix}strip; ac_word=$2
2211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_word" >&5
2213 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216 if test -n "$STRIP"; then
2217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2218 else
2219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2220 ac_dummy="$PATH"
2221 for ac_dir in $ac_dummy; do
2222 test -z "$ac_dir" && ac_dir=.
2223 if test -f $ac_dir/$ac_word; then
2224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2225 break
2226 fi
2227 done
2228 IFS="$ac_save_ifs"
2229 fi
2230 fi
2231 STRIP="$ac_cv_prog_STRIP"
2232 if test -n "$STRIP"; then
2233 echo "$ac_t""$STRIP" 1>&6
2234 else
2235 echo "$ac_t""no" 1>&6
2236 fi
2237
2238
2239 if test -z "$ac_cv_prog_STRIP"; then
2240 if test -n "$ac_tool_prefix"; then
2241 # Extract the first word of "strip", so it can be a program name with args.
2242 set dummy strip; ac_word=$2
2243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_word" >&5
2245 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2247 else
2248 if test -n "$STRIP"; then
2249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2250 else
2251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2252 ac_dummy="$PATH"
2253 for ac_dir in $ac_dummy; do
2254 test -z "$ac_dir" && ac_dir=.
2255 if test -f $ac_dir/$ac_word; then
2256 ac_cv_prog_STRIP="strip"
2257 break
2258 fi
2259 done
2260 IFS="$ac_save_ifs"
2261 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2262 fi
2263 fi
2264 STRIP="$ac_cv_prog_STRIP"
2265 if test -n "$STRIP"; then
2266 echo "$ac_t""$STRIP" 1>&6
2267 else
2268 echo "$ac_t""no" 1>&6
2269 fi
2270
2271 else
2272 STRIP=":"
2273 fi
2274 fi
2275
2276
2277 # Check for any special flags to pass to ltconfig.
2278 libtool_flags="--cache-file=$cache_file"
2279 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2280 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2281 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2282 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2283 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2284
2285
2286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2287 if test "${enable_libtool_lock+set}" = set; then
2288 enableval="$enable_libtool_lock"
2289 :
2290 fi
2291
2292 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2293 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2294
2295 # Check whether --with-pic or --without-pic was given.
2296 if test "${with_pic+set}" = set; then
2297 withval="$with_pic"
2298 pic_mode="$withval"
2299 else
2300 pic_mode=default
2301 fi
2302
2303 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2304 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2305
2306 # Some flags need to be propagated to the compiler or linker for good
2307 # libtool support.
2308 case $host in
2309 *-*-irix6*)
2310 # Find out which ABI we are using.
2311 echo '#line 2312 "configure"' > conftest.$ac_ext
2312 if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313 if test "$lt_cv_prog_gnu_ld" = yes; then
2314 case `/usr/bin/file conftest.$ac_objext` in
2315 *32-bit*)
2316 LD="${LD-ld} -melf32bsmip"
2317 ;;
2318 *N32*)
2319 LD="${LD-ld} -melf32bmipn32"
2320 ;;
2321 *64-bit*)
2322 LD="${LD-ld} -melf64bmip"
2323 ;;
2324 esac
2325 else
2326 case `/usr/bin/file conftest.$ac_objext` in
2327 *32-bit*)
2328 LD="${LD-ld} -32"
2329 ;;
2330 *N32*)
2331 LD="${LD-ld} -n32"
2332 ;;
2333 *64-bit*)
2334 LD="${LD-ld} -64"
2335 ;;
2336 esac
2337 fi
2338 fi
2339 rm -rf conftest*
2340 ;;
2341
2342 ia64-*-hpux*)
2343 # Find out which ABI we are using.
2344 echo 'int i;' > conftest.$ac_ext
2345 if { (eval echo configure:2346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2346 case "`/usr/bin/file conftest.o`" in
2347 *ELF-32*)
2348 HPUX_IA64_MODE="32"
2349 ;;
2350 *ELF-64*)
2351 HPUX_IA64_MODE="64"
2352 ;;
2353 esac
2354 fi
2355 rm -rf conftest*
2356 ;;
2357
2358 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2359 # Find out which ABI we are using.
2360 echo 'int i;' > conftest.$ac_ext
2361 if { (eval echo configure:2362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2362 case "`/usr/bin/file conftest.o`" in
2363 *32-bit*)
2364 case $host in
2365 x86_64-*linux*)
2366 LD="${LD-ld} -m elf_i386"
2367 ;;
2368 ppc64-*linux*|powerpc64-*linux*)
2369 LD="${LD-ld} -m elf32ppclinux"
2370 ;;
2371 s390x-*linux*)
2372 LD="${LD-ld} -m elf_s390"
2373 ;;
2374 sparc64-*linux*)
2375 LD="${LD-ld} -m elf32_sparc"
2376 ;;
2377 esac
2378 ;;
2379 *64-bit*)
2380 case $host in
2381 x86_64-*linux*)
2382 LD="${LD-ld} -m elf_x86_64"
2383 ;;
2384 ppc*-*linux*|powerpc*-*linux*)
2385 LD="${LD-ld} -m elf64ppc"
2386 ;;
2387 s390*-*linux*)
2388 LD="${LD-ld} -m elf64_s390"
2389 ;;
2390 sparc*-*linux*)
2391 LD="${LD-ld} -m elf64_sparc"
2392 ;;
2393 esac
2394 ;;
2395 esac
2396 fi
2397 rm -rf conftest*
2398 ;;
2399
2400 *-*-sco3.2v5*)
2401 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2402 SAVE_CFLAGS="$CFLAGS"
2403 CFLAGS="$CFLAGS -belf"
2404 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2405 echo "configure:2406: checking whether the C compiler needs -belf" >&5
2406 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2408 else
2409
2410 ac_ext=c
2411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2412 ac_cpp='$CPP $CPPFLAGS'
2413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2415 cross_compiling=$ac_cv_prog_cc_cross
2416
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420
2421 int main() {
2422
2423 ; return 0; }
2424 EOF
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2426 rm -rf conftest*
2427 lt_cv_cc_needs_belf=yes
2428 else
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 rm -rf conftest*
2432 lt_cv_cc_needs_belf=no
2433 fi
2434 rm -f conftest*
2435 ac_ext=c
2436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2440 cross_compiling=$ac_cv_prog_cc_cross
2441
2442 fi
2443
2444 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2445 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2447 CFLAGS="$SAVE_CFLAGS"
2448 fi
2449 ;;
2450
2451
2452 esac
2453
2454 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2455 echo "configure:2456: checking how to run the C++ preprocessor" >&5
2456 if test -z "$CXXCPP"; then
2457 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2459 else
2460 ac_ext=C
2461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2462 ac_cpp='$CXXCPP $CPPFLAGS'
2463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2465 cross_compiling=$ac_cv_prog_cxx_cross
2466 CXXCPP="${CXX-g++} -E"
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2470 #include <stdlib.h>
2471 EOF
2472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2473 { (eval echo configure:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2475 if test -z "$ac_err"; then
2476 :
2477 else
2478 echo "$ac_err" >&5
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -rf conftest*
2482 CXXCPP=/lib/cpp
2483 fi
2484 rm -f conftest*
2485 ac_cv_prog_CXXCPP="$CXXCPP"
2486 ac_ext=c
2487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling=$ac_cv_prog_cc_cross
2492 fi
2493 fi
2494 CXXCPP="$ac_cv_prog_CXXCPP"
2495 echo "$ac_t""$CXXCPP" 1>&6
2496
2497
2498 # Save cache, so that ltconfig can load it
2499 cat > confcache <<\EOF
2500 # This file is a shell script that caches the results of configure
2501 # tests run on this system so they can be shared between configure
2502 # scripts and configure runs. It is not useful on other systems.
2503 # If it contains results you don't want to keep, you may remove or edit it.
2504 #
2505 # By default, configure uses ./config.cache as the cache file,
2506 # creating it if it does not exist already. You can give configure
2507 # the --cache-file=FILE option to use a different cache file; that is
2508 # what configure does when it calls configure scripts in
2509 # subdirectories, so they share the cache.
2510 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2511 # config.status only pays attention to the cache file if you give it the
2512 # --recheck option to rerun configure.
2513 #
2514 EOF
2515 # The following way of writing the cache mishandles newlines in values,
2516 # but we know of no workaround that is simple, portable, and efficient.
2517 # So, don't put newlines in cache variables' values.
2518 # Ultrix sh set writes to stderr and can't be redirected directly,
2519 # and sets the high bit in the cache file unless we assign to the vars.
2520 (set) 2>&1 |
2521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2522 *ac_space=\ *)
2523 # `set' does not quote correctly, so add quotes (double-quote substitution
2524 # turns \\\\ into \\, and sed turns \\ into \).
2525 sed -n \
2526 -e "s/'/'\\\\''/g" \
2527 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2528 ;;
2529 *)
2530 # `set' quotes correctly as required by POSIX, so do not add quotes.
2531 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2532 ;;
2533 esac >> confcache
2534 if cmp -s $cache_file confcache; then
2535 :
2536 else
2537 if test -w $cache_file; then
2538 echo "updating cache $cache_file"
2539 cat confcache > $cache_file
2540 else
2541 echo "not updating unwritable cache $cache_file"
2542 fi
2543 fi
2544 rm -f confcache
2545
2546
2547 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2548 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2549 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2550 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2551 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2552 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2553 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2554 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2555 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2556 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2557
2558 # Reload cache, that may have been modified by ltconfig
2559 if test -r "$cache_file"; then
2560 echo "loading cache $cache_file"
2561 . $cache_file
2562 else
2563 echo "creating cache $cache_file"
2564 > $cache_file
2565 fi
2566
2567
2568 # This can be used to rebuild libtool when needed
2569 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2570
2571 # Always use our own libtool.
2572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2573
2574 # Redirect the config.log output again, so that the ltconfig log is not
2575 # clobbered by the next message.
2576 exec 5>>./config.log
2577
2578
2579
2580 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2581 lt_save_CC="$CC"
2582 lt_save_CFLAGS="$CFLAGS"
2583 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2584 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2585 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2586 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2587 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2588 deplibs_check_method="$deplibs_check_method" \
2589 file_magic_cmd="$file_magic_cmd" \
2590 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2591 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2592 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2593 CC="$lt_save_CC"
2594 CFLAGS="$lt_save_CFLAGS"
2595
2596 # Redirect the config.log output again, so that the ltconfig log is not
2597 # clobbered by the next message.
2598 exec 5>>./config.log
2599
2600
2601
2602
2603
2604
2605
2606 # Check whether --with-target-subdir or --without-target-subdir was given.
2607 if test "${with_target_subdir+set}" = set; then
2608 withval="$with_target_subdir"
2609 :
2610 fi
2611
2612 # Check whether --with-cross-host or --without-cross-host was given.
2613 if test "${with_cross_host+set}" = set; then
2614 withval="$with_cross_host"
2615 :
2616 fi
2617
2618
2619 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2620 echo "configure:2621: checking whether to enable maintainer-specific portions of Makefiles" >&5
2621 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2622 if test "${enable_maintainer_mode+set}" = set; then
2623 enableval="$enable_maintainer_mode"
2624 USE_MAINTAINER_MODE=$enableval
2625 else
2626 USE_MAINTAINER_MODE=no
2627 fi
2628
2629 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2630
2631
2632 if test $USE_MAINTAINER_MODE = yes; then
2633 MAINTAINER_MODE_TRUE=
2634 MAINTAINER_MODE_FALSE='#'
2635 else
2636 MAINTAINER_MODE_TRUE='#'
2637 MAINTAINER_MODE_FALSE=
2638 fi
2639 MAINT=$MAINTAINER_MODE_TRUE
2640
2641
2642 # automake wants to see AC_EXEEXT. But we don't need it. And having
2643 # it is actually a problem, because the compiler we're passed can't
2644 # necessarily do a full link. So we fool automake here.
2645 if false; then
2646 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2647 # to nothing, so nothing would remain between `then' and `fi' if it
2648 # were not for the `:' below.
2649 :
2650
2651
2652 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2653 echo "configure:2654: checking for executable suffix" >&5
2654 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2656 else
2657 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2658 ac_cv_exeext=.exe
2659 else
2660 rm -f conftest*
2661 echo 'int main () { return 0; }' > conftest.$ac_ext
2662 ac_cv_exeext=
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2664 for file in conftest.*; do
2665 case $file in
2666 *.$ac_ext | *.c | *.o | *.obj) ;;
2667 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2668 esac
2669 done
2670 else
2671 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2672 fi
2673 rm -f conftest*
2674 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2675 fi
2676 fi
2677
2678 EXEEXT=""
2679 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2680 echo "$ac_t""${ac_cv_exeext}" 1>&6
2681 ac_exeext=$EXEEXT
2682
2683 fi
2684
2685 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2686 echo "configure:2687: checking for thread model used by GCC" >&5
2687 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2688 if test -z "$THREADS"; then
2689 THREADS=no
2690 fi
2691 echo "$ac_t""$THREADS" 1>&6
2692
2693 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2694 if test "${enable_parallel_mark+set}" = set; then
2695 enableval="$enable_parallel_mark"
2696 case "$THREADS" in
2697 no | none | single)
2698 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2699 ;;
2700 esac
2701
2702 fi
2703
2704
2705 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
2706 THREADLIBS=
2707 case "$THREADS" in
2708 no | none | single)
2709 THREADS=none
2710 ;;
2711 posix | pthreads)
2712 THREADS=posix
2713 THREADLIBS=-lpthread
2714 case "$host" in
2715 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
2716 cat >> confdefs.h <<\EOF
2717 #define GC_LINUX_THREADS 1
2718 EOF
2719
2720 cat >> confdefs.h <<\EOF
2721 #define _REENTRANT 1
2722 EOF
2723
2724 if test "${enable_parallel_mark}" = yes; then
2725 cat >> confdefs.h <<\EOF
2726 #define PARALLEL_MARK 1
2727 EOF
2728
2729 fi
2730 cat >> confdefs.h <<\EOF
2731 #define THREAD_LOCAL_ALLOC 1
2732 EOF
2733
2734 ;;
2735 *-*-linux*)
2736 cat >> confdefs.h <<\EOF
2737 #define GC_LINUX_THREADS 1
2738 EOF
2739
2740 cat >> confdefs.h <<\EOF
2741 #define _REENTRANT 1
2742 EOF
2743
2744 ;;
2745 *-*-aix*)
2746 cat >> confdefs.h <<\EOF
2747 #define GC_AIX_THREADS 1
2748 EOF
2749
2750 cat >> confdefs.h <<\EOF
2751 #define _REENTRANT 1
2752 EOF
2753
2754 ;;
2755 *-*-hpux*)
2756 echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2
2757 cat >> confdefs.h <<\EOF
2758 #define GC_HPUX_THREADS 1
2759 EOF
2760
2761 cat >> confdefs.h <<\EOF
2762 #define _POSIX_C_SOURCE 199506L
2763 EOF
2764
2765 if test "${enable_parallel_mark}" = yes; then
2766 cat >> confdefs.h <<\EOF
2767 #define PARALLEL_MARK 1
2768 EOF
2769
2770 fi
2771 cat >> confdefs.h <<\EOF
2772 #define THREAD_LOCAL_ALLOC 1
2773 EOF
2774
2775 THREADLIBS="-lpthread -lrt"
2776 ;;
2777 *-*-freebsd*)
2778 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2779 cat >> confdefs.h <<\EOF
2780 #define GC_FREEBSD_THREADS 1
2781 EOF
2782
2783 INCLUDES="$INCLUDES -pthread"
2784 THREADLIBS=-pthread
2785 ;;
2786 *-*-solaris*)
2787 cat >> confdefs.h <<\EOF
2788 #define GC_SOLARIS_THREADS 1
2789 EOF
2790
2791 cat >> confdefs.h <<\EOF
2792 #define GC_SOLARIS_PTHREADS 1
2793 EOF
2794
2795 ;;
2796 *-*-irix*)
2797 cat >> confdefs.h <<\EOF
2798 #define GC_IRIX_THREADS 1
2799 EOF
2800
2801 ;;
2802 *-*-cygwin*)
2803 cat >> confdefs.h <<\EOF
2804 #define GC_WIN32_THREADS 1
2805 EOF
2806
2807 ;;
2808 *-*-darwin*)
2809 cat >> confdefs.h <<\EOF
2810 #define GC_DARWIN_THREADS 1
2811 EOF
2812
2813 cat >> confdefs.h <<\EOF
2814 #define THREAD_LOCAL_ALLOC 1
2815 EOF
2816
2817 if test "${enable_parallel_mark}" = yes; then
2818 cat >> confdefs.h <<\EOF
2819 #define PARALLEL_MARK 1
2820 EOF
2821
2822 fi
2823 ;;
2824 *-*-osf*)
2825 cat >> confdefs.h <<\EOF
2826 #define GC_OSF1_THREADS 1
2827 EOF
2828
2829 if test "${enable_parallel_mark}" = yes; then
2830 cat >> confdefs.h <<\EOF
2831 #define PARALLEL_MARK 1
2832 EOF
2833
2834 cat >> confdefs.h <<\EOF
2835 #define THREAD_LOCAL_ALLOC 1
2836 EOF
2837
2838 # May want to enable it in other cases, too.
2839 # Measurements havent yet been done.
2840 fi
2841 INCLUDES="$INCLUDES -pthread"
2842 THREADLIBS="-lpthread -lrt"
2843 ;;
2844 esac
2845 ;;
2846 win32)
2847 cat >> confdefs.h <<\EOF
2848 #define GC_WIN32_THREADS 1
2849 EOF
2850
2851 ;;
2852 dgux386)
2853 THREADS=dgux386
2854 echo "$ac_t""$THREADLIBS" 1>&6
2855 # Use pthread GCC switch
2856 THREADLIBS=-pthread
2857 if test "${enable_parallel_mark}" = yes; then
2858 cat >> confdefs.h <<\EOF
2859 #define PARALLEL_MARK 1
2860 EOF
2861
2862 fi
2863 cat >> confdefs.h <<\EOF
2864 #define THREAD_LOCAL_ALLOC 1
2865 EOF
2866
2867 cat >> confdefs.h <<\EOF
2868 #define GC_DGUX386_THREADS 1
2869 EOF
2870
2871 cat >> confdefs.h <<\EOF
2872 #define DGUX_THREADS 1
2873 EOF
2874
2875 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
2876 INCLUDES="-pthread $INCLUDES"
2877 ;;
2878 aix)
2879 THREADS=posix
2880 THREADLIBS=-lpthread
2881 cat >> confdefs.h <<\EOF
2882 #define GC_AIX_THREADS 1
2883 EOF
2884
2885 cat >> confdefs.h <<\EOF
2886 #define _REENTRANT 1
2887 EOF
2888
2889 ;;
2890 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
2891 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2892 ;;
2893 *)
2894 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2895 ;;
2896 esac
2897
2898
2899 case "$host" in
2900 powerpc-*-darwin*)
2901 powerpc_darwin=true
2902 ;;
2903 esac
2904
2905
2906 if test x$powerpc_darwin = xtrue; then
2907 POWERPC_DARWIN_TRUE=
2908 POWERPC_DARWIN_FALSE='#'
2909 else
2910 POWERPC_DARWIN_TRUE='#'
2911 POWERPC_DARWIN_FALSE=
2912 fi
2913
2914 # We never want libdl on darwin. It is a fake libdl that just ends up making
2915 # dyld calls anyway
2916 case "$host" in
2917 *-*-darwin*) ;;
2918 *)
2919 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2920 echo "configure:2921: checking for dlopen in -ldl" >&5
2921 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2924 else
2925 ac_save_LIBS="$LIBS"
2926 LIBS="-ldl $LIBS"
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2933 char dlopen();
2934
2935 int main() {
2936 dlopen()
2937 ; return 0; }
2938 EOF
2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2940 rm -rf conftest*
2941 eval "ac_cv_lib_$ac_lib_var=yes"
2942 else
2943 echo "configure: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2945 rm -rf conftest*
2946 eval "ac_cv_lib_$ac_lib_var=no"
2947 fi
2948 rm -f conftest*
2949 LIBS="$ac_save_LIBS"
2950
2951 fi
2952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2953 echo "$ac_t""yes" 1>&6
2954 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2955 else
2956 echo "$ac_t""no" 1>&6
2957 fi
2958
2959 ;;
2960 esac
2961
2962
2963
2964 target_all=libgcjgc.la
2965
2966
2967
2968 TARGET_ECOS="no"
2969 # Check whether --with-ecos or --without-ecos was given.
2970 if test "${with_ecos+set}" = set; then
2971 withval="$with_ecos"
2972 TARGET_ECOS="$with_ecos"
2973
2974 fi
2975
2976
2977 addobjs=
2978 addlibs=
2979 addincludes=
2980 addtests=
2981 CXXINCLUDES=
2982 case "$TARGET_ECOS" in
2983 no)
2984 ;;
2985 *)
2986 cat >> confdefs.h <<\EOF
2987 #define ECOS 1
2988 EOF
2989
2990 CXXINCLUDES="-I${TARGET_ECOS}/include"
2991 addobjs="$addobjs ecos.lo"
2992 ;;
2993 esac
2994
2995 if test "${enable_cplusplus}" = yes; then
2996 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
2997 addtests="$addtests test_cpp"
2998 fi
2999
3000
3001
3002 if test "${enable_cplusplus}" = yes; then
3003 CPLUSPLUS_TRUE=
3004 CPLUSPLUS_FALSE='#'
3005 else
3006 CPLUSPLUS_TRUE='#'
3007 CPLUSPLUS_FALSE=
3008 fi
3009
3010
3011
3012
3013
3014
3015 # Configuration of shared libraries
3016 #
3017 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
3018 echo "configure:3019: checking whether to build shared libraries" >&5
3019 # Check whether --enable-shared or --disable-shared was given.
3020 if test "${enable_shared+set}" = set; then
3021 enableval="$enable_shared"
3022 p=${PACKAGE-default}
3023 case $enableval in
3024 yes) enable_shared=yes ;;
3025 no) enable_shared=no ;;
3026 *)
3027 enable_shared=no
3028 # Look at the argument we got. We use all the common list separators.
3029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3030 for pkg in $enableval; do
3031 if test "X$pkg" = "X$p"; then
3032 enable_shared=yes
3033 fi
3034 done
3035 IFS="$ac_save_ifs"
3036 ;;
3037 esac
3038 else
3039 enable_shared=yes
3040 fi
3041
3042
3043 case "$host" in
3044 alpha-*-openbsd*)
3045 enable_shared=no
3046 echo "$ac_t""no" 1>&6
3047 ;;
3048 *)
3049 echo "$ac_t""yes" 1>&6
3050 ;;
3051 esac
3052
3053 # Configuration of machine-dependent code
3054 #
3055 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
3056 # anything else that creates trampolines in gc-allocated memory)
3057 # always needs exec permission. The exceptions to this are IA-64 and
3058 # some variations of Power PC, where trampolines don't contain
3059 # executable code.
3060 #
3061 echo $ac_n "checking which machine-dependent code should be used""... $ac_c" 1>&6
3062 echo "configure:3063: checking which machine-dependent code should be used" >&5
3063 machdep=
3064 case "$host" in
3065 alpha*-*-openbsd*)
3066 machdep="alpha_mach_dep.lo"
3067 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
3068 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
3069 fi
3070 ;;
3071 alpha*-*-linux*)
3072 machdep="alpha_mach_dep.lo"
3073 ;;
3074 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
3075 cat >> confdefs.h <<\EOF
3076 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
3077 EOF
3078
3079 ;;
3080 mipstx39-*-elf*)
3081 machdep="mips_ultrix_mach_dep.lo"
3082 cat >> confdefs.h <<\EOF
3083 #define STACKBASE __stackbase
3084 EOF
3085
3086 cat >> confdefs.h <<\EOF
3087 #define DATASTART_IS_ETEXT 1
3088 EOF
3089
3090 ;;
3091 mips-dec-ultrix*)
3092 machdep="mips_ultrix_mach-dep.lo"
3093 ;;
3094 mips-nec-sysv*|mips-unknown-sysv*)
3095 ;;
3096 mips*-*-linux*)
3097 ;;
3098 mips-*-*)
3099 machdep="mips_sgi_mach_dep.lo"
3100 ;;
3101 sparc-*-netbsd*)
3102 machdep="sparc_netbsd_mach_dep.lo"
3103 ;;
3104 sparc-sun-solaris2.3)
3105 machdep="sparc_mach_dep.lo"
3106 cat >> confdefs.h <<\EOF
3107 #define SUNOS53_SHARED_LIB 1
3108 EOF
3109
3110 ;;
3111 sparc-sun-solaris2.*)
3112 machdep="sparc_mach_dep.lo"
3113 ;;
3114 ia64-*-*)
3115 cat >> confdefs.h <<\EOF
3116 #define NO_EXECUTE_PERMISSION 1
3117 EOF
3118
3119 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
3120 ;;
3121 esac
3122 if test x"$machdep" = x; then
3123 echo "$ac_t""$machdep" 1>&6
3124 machdep="mach_dep.lo"
3125 fi
3126 addobjs="$addobjs $machdep"
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138 #
3139 # Check for AViiON Machines running DGUX
3140 #
3141 echo $ac_n "checking if host is AViiON running DGUX""... $ac_c" 1>&6
3142 echo "configure:3143: checking if host is AViiON running DGUX" >&5
3143 ac_is_dgux=no
3144 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3145 echo "configure:3146: checking how to run the C preprocessor" >&5
3146 # On Suns, sometimes $CPP names a directory.
3147 if test -n "$CPP" && test -d "$CPP"; then
3148 CPP=
3149 fi
3150 if test -z "$CPP"; then
3151 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3153 else
3154 # This must be in double quotes, not single quotes, because CPP may get
3155 # substituted into the Makefile and "${CC-cc}" will confuse make.
3156 CPP="${CC-cc} -E"
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp.
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <assert.h>
3163 Syntax Error
3164 EOF
3165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3166 { (eval echo configure:3167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3168 if test -z "$ac_err"; then
3169 :
3170 else
3171 echo "$ac_err" >&5
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3174 rm -rf conftest*
3175 CPP="${CC-cc} -E -traditional-cpp"
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <assert.h>
3180 Syntax Error
3181 EOF
3182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3183 { (eval echo configure:3184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3185 if test -z "$ac_err"; then
3186 :
3187 else
3188 echo "$ac_err" >&5
3189 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5
3191 rm -rf conftest*
3192 CPP="${CC-cc} -nologo -E"
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <assert.h>
3197 Syntax Error
3198 EOF
3199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3200 { (eval echo configure:3201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3202 if test -z "$ac_err"; then
3203 :
3204 else
3205 echo "$ac_err" >&5
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3208 rm -rf conftest*
3209 CPP=/lib/cpp
3210 fi
3211 rm -f conftest*
3212 fi
3213 rm -f conftest*
3214 fi
3215 rm -f conftest*
3216 ac_cv_prog_CPP="$CPP"
3217 fi
3218 CPP="$ac_cv_prog_CPP"
3219 else
3220 ac_cv_prog_CPP="$CPP"
3221 fi
3222 echo "$ac_t""$CPP" 1>&6
3223
3224 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
3225 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
3226 echo "configure:3227: checking for sys/dg_sys_info.h" >&5
3227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3229 else
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <sys/dg_sys_info.h>
3234 EOF
3235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3236 { (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3238 if test -z "$ac_err"; then
3239 rm -rf conftest*
3240 eval "ac_cv_header_$ac_safe=yes"
3241 else
3242 echo "$ac_err" >&5
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 rm -rf conftest*
3246 eval "ac_cv_header_$ac_safe=no"
3247 fi
3248 rm -f conftest*
3249 fi
3250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3252 ac_is_dgux=yes;
3253 else
3254 echo "$ac_t""no" 1>&6
3255 fi
3256
3257
3258 echo "$ac_t""$ac_is_dgux" 1>&6
3259 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
3260 if test $ac_is_dgux = yes; then
3261 if test "$enable_full_debug" = "yes"; then
3262 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3263 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3264 else
3265 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3266 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3267 fi
3268
3269
3270 fi
3271
3272 # Check whether --with-target-subdir or --without-target-subdir was given.
3273 if test "${with_target_subdir+set}" = set; then
3274 withval="$with_target_subdir"
3275 :
3276 fi
3277
3278 # Check whether --with-cross-host or --without-cross-host was given.
3279 if test "${with_cross_host+set}" = set; then
3280 withval="$with_cross_host"
3281 :
3282 fi
3283
3284
3285 # automake wants to see AC_EXEEXT. But we don't need it. And having
3286 # it is actually a problem, because the compiler we're passed can't
3287 # necessarily do a full link. So we fool automake here.
3288 if false; then
3289 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
3290 # to nothing, so nothing would remain between `then' and `fi' if it
3291 # were not for the `:' below.
3292 :
3293
3294
3295 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3296 echo "configure:3297: checking for executable suffix" >&5
3297 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3299 else
3300 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3301 ac_cv_exeext=.exe
3302 else
3303 rm -f conftest*
3304 echo 'int main () { return 0; }' > conftest.$ac_ext
3305 ac_cv_exeext=
3306 if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3307 for file in conftest.*; do
3308 case $file in
3309 *.$ac_ext | *.c | *.o | *.obj) ;;
3310 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3311 esac
3312 done
3313 else
3314 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3315 fi
3316 rm -f conftest*
3317 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3318 fi
3319 fi
3320
3321 EXEEXT=""
3322 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3323 echo "$ac_t""${ac_cv_exeext}" 1>&6
3324 ac_exeext=$EXEEXT
3325
3326 fi
3327
3328 echo $ac_n "checking whether Solaris gcc optimization fix is necessary""... $ac_c" 1>&6
3329 echo "configure:3330: checking whether Solaris gcc optimization fix is necessary" >&5
3330 case "$host" in
3331 sparc-sun-solaris2*|*aix*)
3332 if test "$GCC" = yes; then
3333 echo "$ac_t""yes" 1>&6
3334 new_CFLAGS=
3335 for i in $CFLAGS; do
3336 case "$i" in
3337 -O*)
3338 ;;
3339 *)
3340 new_CFLAGS="$new_CFLAGS $i"
3341 ;;
3342 esac
3343 done
3344 CFLAGS="$new_CFLAGS"
3345 else
3346 echo "$ac_t""no" 1>&6
3347 fi
3348 ;;
3349 *) echo "$ac_t""no" 1>&6 ;;
3350 esac
3351
3352 MY_CFLAGS="$CFLAGS"
3353
3354
3355 cat >> confdefs.h <<\EOF
3356 #define SILENT 1
3357 EOF
3358
3359 cat >> confdefs.h <<\EOF
3360 #define NO_SIGNALS 1
3361 EOF
3362
3363 cat >> confdefs.h <<\EOF
3364 #define ALL_INTERIOR_POINTERS 1
3365 EOF
3366
3367
3368 cat >> confdefs.h <<\EOF
3369 #define JAVA_FINALIZATION 1
3370 EOF
3371
3372 cat >> confdefs.h <<\EOF
3373 #define GC_GCJ_SUPPORT 1
3374 EOF
3375
3376 cat >> confdefs.h <<\EOF
3377 #define ATOMIC_UNCOLLECTABLE 1
3378 EOF
3379
3380
3381 if test -n "${with_cross_host}"; then
3382 cat >> confdefs.h <<\EOF
3383 #define NO_SIGSET 1
3384 EOF
3385
3386 cat >> confdefs.h <<\EOF
3387 #define NO_DEBUGGING 1
3388 EOF
3389
3390 fi
3391
3392 # Check whether --enable-full-debug or --disable-full-debug was given.
3393 if test "${enable_full_debug+set}" = set; then
3394 enableval="$enable_full_debug"
3395 if test "$enable_full_debug" = "yes"; then
3396 echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2
3397 cat >> confdefs.h <<\EOF
3398 #define KEEP_BACK_PTRS 1
3399 EOF
3400
3401 cat >> confdefs.h <<\EOF
3402 #define DBG_HDRS_ALL 1
3403 EOF
3404
3405 case $host in
3406 ia64-*-linux* )
3407 cat >> confdefs.h <<\EOF
3408 #define MAKE_BACK_GRAPH 1
3409 EOF
3410
3411 ;;
3412 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
3413 cat >> confdefs.h <<\EOF
3414 #define MAKE_BACK_GRAPH 1
3415 EOF
3416
3417 echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2
3418 cat >> confdefs.h <<\EOF
3419 #define SAVE_CALL_COUNT 8
3420 EOF
3421
3422 ;;
3423 i345686-*-dgux*)
3424 cat >> confdefs.h <<\EOF
3425 #define MAKE_BACK_GRAPH 1
3426 EOF
3427
3428 ;;
3429 esac
3430 fi
3431 fi
3432
3433
3434 if test -n "$with_cross_host" &&
3435 test x"$with_cross_host" != x"no"; then
3436 toolexecdir='$(exec_prefix)/$(target_alias)'
3437 toolexeclibdir='$(toolexecdir)/lib'
3438 else
3439 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3440 toolexeclibdir='$(libdir)'
3441 fi
3442 multi_os_directory=`$CC -print-multi-os-directory`
3443 case $multi_os_directory in
3444 .) ;; # Avoid trailing /.
3445 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3446 esac
3447
3448
3449
3450 if test "${multilib}" = "yes"; then
3451 multilib_arg="--enable-multilib"
3452 else
3453 multilib_arg=
3454 fi
3455
3456 trap '' 1 2 15
3457 cat > confcache <<\EOF
3458 # This file is a shell script that caches the results of configure
3459 # tests run on this system so they can be shared between configure
3460 # scripts and configure runs. It is not useful on other systems.
3461 # If it contains results you don't want to keep, you may remove or edit it.
3462 #
3463 # By default, configure uses ./config.cache as the cache file,
3464 # creating it if it does not exist already. You can give configure
3465 # the --cache-file=FILE option to use a different cache file; that is
3466 # what configure does when it calls configure scripts in
3467 # subdirectories, so they share the cache.
3468 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3469 # config.status only pays attention to the cache file if you give it the
3470 # --recheck option to rerun configure.
3471 #
3472 EOF
3473 # The following way of writing the cache mishandles newlines in values,
3474 # but we know of no workaround that is simple, portable, and efficient.
3475 # So, don't put newlines in cache variables' values.
3476 # Ultrix sh set writes to stderr and can't be redirected directly,
3477 # and sets the high bit in the cache file unless we assign to the vars.
3478 (set) 2>&1 |
3479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3480 *ac_space=\ *)
3481 # `set' does not quote correctly, so add quotes (double-quote substitution
3482 # turns \\\\ into \\, and sed turns \\ into \).
3483 sed -n \
3484 -e "s/'/'\\\\''/g" \
3485 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3486 ;;
3487 *)
3488 # `set' quotes correctly as required by POSIX, so do not add quotes.
3489 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3490 ;;
3491 esac >> confcache
3492 if cmp -s $cache_file confcache; then
3493 :
3494 else
3495 if test -w $cache_file; then
3496 echo "updating cache $cache_file"
3497 cat confcache > $cache_file
3498 else
3499 echo "not updating unwritable cache $cache_file"
3500 fi
3501 fi
3502 rm -f confcache
3503
3504 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3505
3506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3507 # Let make expand exec_prefix.
3508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3509
3510 # Any assignment to VPATH causes Sun make to only execute
3511 # the first set of double-colon rules, so remove it if not needed.
3512 # If there is a colon in the path, we need to keep it.
3513 if test "x$srcdir" = x.; then
3514 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3515 fi
3516
3517 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3518
3519 # Transform confdefs.h into DEFS.
3520 # Protect against shell expansion while executing Makefile rules.
3521 # Protect against Makefile macro expansion.
3522 cat > conftest.defs <<\EOF
3523 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3524 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3525 s%\[%\\&%g
3526 s%\]%\\&%g
3527 s%\$%$$%g
3528 EOF
3529 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3530 rm -f conftest.defs
3531
3532
3533 # Without the "./", some shells look in PATH for config.status.
3534 : ${CONFIG_STATUS=./config.status}
3535
3536 echo creating $CONFIG_STATUS
3537 rm -f $CONFIG_STATUS
3538 cat > $CONFIG_STATUS <<EOF
3539 #! /bin/sh
3540 # Generated automatically by configure.
3541 # Run this file to recreate the current configuration.
3542 # This directory was configured as follows,
3543 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3544 #
3545 # $0 $ac_configure_args
3546 #
3547 # Compiler output produced by configure, useful for debugging
3548 # configure, is in ./config.log if it exists.
3549
3550 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3551 for ac_option
3552 do
3553 case "\$ac_option" in
3554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3555 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3556 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3557 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3558 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3559 exit 0 ;;
3560 -help | --help | --hel | --he | --h)
3561 echo "\$ac_cs_usage"; exit 0 ;;
3562 *) echo "\$ac_cs_usage"; exit 1 ;;
3563 esac
3564 done
3565
3566 ac_given_srcdir=$srcdir
3567 ac_given_INSTALL="$INSTALL"
3568
3569 trap 'rm -fr `echo "Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3570 EOF
3571 cat >> $CONFIG_STATUS <<EOF
3572
3573 # Protect against being on the right side of a sed subst in config.status.
3574 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3575 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3576 $ac_vpsub
3577 $extrasub
3578 s%@SHELL@%$SHELL%g
3579 s%@CFLAGS@%$CFLAGS%g
3580 s%@CPPFLAGS@%$CPPFLAGS%g
3581 s%@CXXFLAGS@%$CXXFLAGS%g
3582 s%@FFLAGS@%$FFLAGS%g
3583 s%@DEFS@%$DEFS%g
3584 s%@LDFLAGS@%$LDFLAGS%g
3585 s%@LIBS@%$LIBS%g
3586 s%@exec_prefix@%$exec_prefix%g
3587 s%@prefix@%$prefix%g
3588 s%@program_transform_name@%$program_transform_name%g
3589 s%@bindir@%$bindir%g
3590 s%@sbindir@%$sbindir%g
3591 s%@libexecdir@%$libexecdir%g
3592 s%@datadir@%$datadir%g
3593 s%@sysconfdir@%$sysconfdir%g
3594 s%@sharedstatedir@%$sharedstatedir%g
3595 s%@localstatedir@%$localstatedir%g
3596 s%@libdir@%$libdir%g
3597 s%@includedir@%$includedir%g
3598 s%@oldincludedir@%$oldincludedir%g
3599 s%@infodir@%$infodir%g
3600 s%@mandir@%$mandir%g
3601 s%@gc_basedir@%$gc_basedir%g
3602 s%@host@%$host%g
3603 s%@host_alias@%$host_alias%g
3604 s%@host_cpu@%$host_cpu%g
3605 s%@host_vendor@%$host_vendor%g
3606 s%@host_os@%$host_os%g
3607 s%@target@%$target%g
3608 s%@target_alias@%$target_alias%g
3609 s%@target_cpu@%$target_cpu%g
3610 s%@target_vendor@%$target_vendor%g
3611 s%@target_os@%$target_os%g
3612 s%@build@%$build%g
3613 s%@build_alias@%$build_alias%g
3614 s%@build_cpu@%$build_cpu%g
3615 s%@build_vendor@%$build_vendor%g
3616 s%@build_os@%$build_os%g
3617 s%@mkinstalldirs@%$mkinstalldirs%g
3618 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3619 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3620 s%@INSTALL_DATA@%$INSTALL_DATA%g
3621 s%@PACKAGE@%$PACKAGE%g
3622 s%@VERSION@%$VERSION%g
3623 s%@ACLOCAL@%$ACLOCAL%g
3624 s%@AUTOCONF@%$AUTOCONF%g
3625 s%@AUTOMAKE@%$AUTOMAKE%g
3626 s%@AUTOHEADER@%$AUTOHEADER%g
3627 s%@MAKEINFO@%$MAKEINFO%g
3628 s%@SET_MAKE@%$SET_MAKE%g
3629 s%@CC@%$CC%g
3630 s%@CXX@%$CXX%g
3631 s%@AS@%$AS%g
3632 s%@AR@%$AR%g
3633 s%@RANLIB@%$RANLIB%g
3634 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3635 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3636 s%@MAINT@%$MAINT%g
3637 s%@EXEEXT@%$EXEEXT%g
3638 s%@GC_CFLAGS@%$GC_CFLAGS%g
3639 s%@LN_S@%$LN_S%g
3640 s%@OBJEXT@%$OBJEXT%g
3641 s%@STRIP@%$STRIP%g
3642 s%@LIBTOOL@%$LIBTOOL%g
3643 s%@CXXCPP@%$CXXCPP%g
3644 s%@THREADLIBS@%$THREADLIBS%g
3645 s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3646 s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3647 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3648 s%@target_all@%$target_all%g
3649 s%@CPLUSPLUS_TRUE@%$CPLUSPLUS_TRUE%g
3650 s%@CPLUSPLUS_FALSE@%$CPLUSPLUS_FALSE%g
3651 s%@INCLUDES@%$INCLUDES%g
3652 s%@CXXINCLUDES@%$CXXINCLUDES%g
3653 s%@addobjs@%$addobjs%g
3654 s%@addincludes@%$addincludes%g
3655 s%@addlibs@%$addlibs%g
3656 s%@addtests@%$addtests%g
3657 s%@CPP@%$CPP%g
3658 s%@MY_CFLAGS@%$MY_CFLAGS%g
3659 s%@toolexecdir@%$toolexecdir%g
3660 s%@toolexeclibdir@%$toolexeclibdir%g
3661
3662 CEOF
3663 EOF
3664
3665 cat >> $CONFIG_STATUS <<\EOF
3666
3667 # Split the substitutions into bite-sized pieces for seds with
3668 # small command number limits, like on Digital OSF/1 and HP-UX.
3669 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3670 ac_file=1 # Number of current file.
3671 ac_beg=1 # First line for current file.
3672 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3673 ac_more_lines=:
3674 ac_sed_cmds=""
3675 while $ac_more_lines; do
3676 if test $ac_beg -gt 1; then
3677 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3678 else
3679 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3680 fi
3681 if test ! -s conftest.s$ac_file; then
3682 ac_more_lines=false
3683 rm -f conftest.s$ac_file
3684 else
3685 if test -z "$ac_sed_cmds"; then
3686 ac_sed_cmds="sed -f conftest.s$ac_file"
3687 else
3688 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3689 fi
3690 ac_file=`expr $ac_file + 1`
3691 ac_beg=$ac_end
3692 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3693 fi
3694 done
3695 if test -z "$ac_sed_cmds"; then
3696 ac_sed_cmds=cat
3697 fi
3698 EOF
3699
3700 cat >> $CONFIG_STATUS <<EOF
3701
3702 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3703 EOF
3704 cat >> $CONFIG_STATUS <<\EOF
3705 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3707 case "$ac_file" in
3708 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3709 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3710 *) ac_file_in="${ac_file}.in" ;;
3711 esac
3712
3713 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3714
3715 # Remove last slash and all that follows it. Not all systems have dirname.
3716 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3717 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3718 # The file is in a subdirectory.
3719 test ! -d "$ac_dir" && mkdir "$ac_dir"
3720 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3721 # A "../" for each directory in $ac_dir_suffix.
3722 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3723 else
3724 ac_dir_suffix= ac_dots=
3725 fi
3726
3727 case "$ac_given_srcdir" in
3728 .) srcdir=.
3729 if test -z "$ac_dots"; then top_srcdir=.
3730 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3731 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3732 *) # Relative path.
3733 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3734 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3735 esac
3736
3737 case "$ac_given_INSTALL" in
3738 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3739 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3740 esac
3741
3742 echo creating "$ac_file"
3743 rm -f "$ac_file"
3744 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3745 case "$ac_file" in
3746 *Makefile*) ac_comsub="1i\\
3747 # $configure_input" ;;
3748 *) ac_comsub= ;;
3749 esac
3750
3751 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3752 sed -e "$ac_comsub
3753 s%@configure_input@%$configure_input%g
3754 s%@srcdir@%$srcdir%g
3755 s%@top_srcdir@%$top_srcdir%g
3756 s%@INSTALL@%$INSTALL%g
3757 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3758 fi; done
3759 rm -f conftest.s*
3760
3761 EOF
3762 cat >> $CONFIG_STATUS <<EOF
3763 srcdir=${srcdir}
3764 host=${host}
3765 target=${target}
3766 with_multisubdir=${with_multisubdir}
3767 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3768 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3769 gc_basedir=${gc_basedir}
3770 CC="${CC}"
3771 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
3772 DEFS="$DEFS"
3773 INCLUDES="$INCLUDES"
3774
3775 EOF
3776 cat >> $CONFIG_STATUS <<\EOF
3777
3778 echo "$INCLUDES $DEFS" > boehm-cflags
3779
3780 if test -n "$CONFIG_FILES"; then
3781 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3782 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3783 fi
3784 exit 0
3785 EOF
3786 chmod +x $CONFIG_STATUS
3787 rm -fr confdefs* $ac_clean_files
3788 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3789