* tm.texi: Fix markup.
[official-gcc.git] / boehm-gc / configure
blobefbb687437fa26e0db504ba31f6974186dfa4ac9
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16 ac_help="$ac_help
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
19 ac_help="$ac_help
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-static[=PKGS] build static libraries [default=yes]"
23 ac_help="$ac_help
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
25 ac_help="$ac_help
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
27 ac_help="$ac_help
28 --disable-libtool-lock avoid locking (might break parallel builds)"
29 ac_help="$ac_help
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
31 ac_help="$ac_help
32 --with-target-subdir=SUBDIR
33 configuring with a cross compiler"
34 ac_help="$ac_help
35 --with-cross-host=HOST configuring with a cross compiler"
36 ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39 ac_help="$ac_help
40 --enable-java-gc=TYPE choose garbage collector [boehm]"
41 ac_help="$ac_help
42 --with-ecos enable runtime eCos target support"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
47 build=NONE
48 cache_file=./config.cache
49 exec_prefix=NONE
50 host=NONE
51 no_create=
52 nonopt=NONE
53 no_recursion=
54 prefix=NONE
55 program_prefix=NONE
56 program_suffix=NONE
57 program_transform_name=s,x,x,
58 silent=
59 site=
60 sitefile=
61 srcdir=
62 target=NONE
63 verbose=
64 x_includes=NONE
65 x_libraries=NONE
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
80 subdirs=
81 MFLAGS= MAKEFLAGS=
82 SHELL=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
84 ac_max_here_lines=12
86 ac_prev=
87 for ac_option
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
93 ac_prev=
94 continue
97 case "$ac_option" in
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 *) ac_optarg= ;;
100 esac
102 # Accept the important Cygnus configure options, so we can diagnose typos.
104 case "$ac_option" in
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 ac_prev=bindir ;;
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
112 ac_prev=build ;;
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 ac_prev=datadir ;;
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 | --da=*)
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 case "$ac_option" in
146 *=*) ;;
147 *) ac_optarg=yes ;;
148 esac
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
162 with_gas=yes ;;
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
167 cat << EOF
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
170 Configuration:
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --site-file=FILE use FILE as the site file
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
202 cat << EOF
203 Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
218 exit 0 ;;
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
346 -site-file | --site-file | --site-fil | --site-fi | --site-f)
347 ac_prev=sitefile ;;
348 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
349 sitefile="$ac_optarg" ;;
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352 ac_prev=srcdir ;;
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
363 -target | --target | --targe | --targ | --tar | --ta | --t)
364 ac_prev=target ;;
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 verbose=yes ;;
371 -version | --version | --versio | --versi | --vers)
372 echo "configure generated by autoconf version 2.13"
373 exit 0 ;;
375 -with-* | --with-*)
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 case "$ac_option" in
383 *=*) ;;
384 *) ac_optarg=yes ;;
385 esac
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
397 --x)
398 # Obsolete; use --with-x.
399 with_x=yes ;;
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 nonopt="$ac_option"
428 esac
429 done
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
438 # 0 standard input
439 # 1 file creation
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
446 exec 6>/dev/null
447 else
448 exec 6>&1
450 exec 5>./config.log
452 echo "\
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
455 " 1>&5
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
459 ac_configure_args=
460 for ac_arg
462 case "$ac_arg" in
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 esac
471 done
473 # NLS nuisances.
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 echo > confdefs.h
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file=gcj_mlc.c
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
496 ac_prog=$0
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499 srcdir=$ac_confdir
500 if test ! -r $srcdir/$ac_unique_file; then
501 srcdir=..
503 else
504 ac_srcdir_defaulted=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509 else
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$sitefile"; then
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE; then
519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 else
521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
524 else
525 CONFIG_SITE="$sitefile"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
530 . "$ac_site_file"
532 done
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
536 . $cache_file
537 else
538 echo "creating cache $cache_file"
539 > $cache_file
542 ac_ext=c
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
549 ac_exeext=
550 ac_objext=o
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554 ac_n= ac_c='
555 ' ac_t=' '
556 else
557 ac_n=-n ac_c= ac_t=
559 else
560 ac_n= ac_c='\c' ac_t=
565 # Find a good install program. We prefer a C program (faster),
566 # so one script is as good as another. But avoid the broken or
567 # incompatible versions:
568 # SysV /etc/install, /usr/sbin/install
569 # SunOS /usr/etc/install
570 # IRIX /sbin/install
571 # AIX /bin/install
572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
575 # ./install, which can be erroneously created by make from ./install.sh.
576 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
577 echo "configure:578: checking for a BSD compatible install" >&5
578 if test -z "$INSTALL"; then
579 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
581 else
582 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
583 for ac_dir in $PATH; do
584 # Account for people who put trailing slashes in PATH elements.
585 case "$ac_dir/" in
586 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
588 # OSF1 and SCO ODT 3.0 have their own names for install.
589 # Don't use installbsd from OSF since it installs stuff as root
590 # by default.
591 for ac_prog in ginstall scoinst install; do
592 if test -f $ac_dir/$ac_prog; then
593 if test $ac_prog = install &&
594 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
595 # AIX install. It has an incompatible calling convention.
597 else
598 ac_cv_path_install="$ac_dir/$ac_prog -c"
599 break 2
602 done
604 esac
605 done
606 IFS="$ac_save_IFS"
609 if test "${ac_cv_path_install+set}" = set; then
610 INSTALL="$ac_cv_path_install"
611 else
612 # As a last resort, use the slow shell script. We don't cache a
613 # path for INSTALL within a source directory, because that will
614 # break other packages using the cache if that directory is
615 # removed, or if the path is relative.
616 INSTALL="$ac_install_sh"
619 echo "$ac_t""$INSTALL" 1>&6
621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
622 # It thinks the first close brace ends the variable substitution.
623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
629 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630 echo "configure:631: checking whether build environment is sane" >&5
631 # Just in case
632 sleep 1
633 echo timestamp > conftestfile
634 # Do `set' in a subshell so we don't clobber the current shell's
635 # arguments. Must try -L first in case configure is actually a
636 # symlink; some systems play weird games with the mod time of symlinks
637 # (eg FreeBSD returns the mod time of the symlink's containing
638 # directory).
639 if (
640 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
641 if test "$*" = "X"; then
642 # -L didn't work.
643 set X `ls -t $srcdir/configure conftestfile`
645 if test "$*" != "X $srcdir/configure conftestfile" \
646 && test "$*" != "X conftestfile $srcdir/configure"; then
648 # If neither matched, then we have a broken ls. This can happen
649 # if, for instance, CONFIG_SHELL is bash and it inherits a
650 # broken ls alias from the environment. This has actually
651 # happened. Such a system could not be considered "sane".
652 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
653 alias in your environment" 1>&2; exit 1; }
656 test "$2" = conftestfile
658 then
659 # Ok.
661 else
662 { echo "configure: error: newly created file is older than distributed files!
663 Check your system clock" 1>&2; exit 1; }
665 rm -f conftest*
666 echo "$ac_t""yes" 1>&6
667 if test "$program_transform_name" = s,x,x,; then
668 program_transform_name=
669 else
670 # Double any \ or $. echo might interpret backslashes.
671 cat <<\EOF_SED > conftestsed
672 s,\\,\\\\,g; s,\$,$$,g
673 EOF_SED
674 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
675 rm -f conftestsed
677 test "$program_prefix" != NONE &&
678 program_transform_name="s,^,${program_prefix},; $program_transform_name"
679 # Use a double $ so make ignores it.
680 test "$program_suffix" != NONE &&
681 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
683 # sed with no file args requires a program.
684 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
686 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
687 echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
688 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
689 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
691 else
692 cat > conftestmake <<\EOF
693 all:
694 @echo 'ac_maketemp="${MAKE}"'
696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
697 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
698 if test -n "$ac_maketemp"; then
699 eval ac_cv_prog_make_${ac_make}_set=yes
700 else
701 eval ac_cv_prog_make_${ac_make}_set=no
703 rm -f conftestmake
705 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
706 echo "$ac_t""yes" 1>&6
707 SET_MAKE=
708 else
709 echo "$ac_t""no" 1>&6
710 SET_MAKE="MAKE=${MAKE-make}"
713 if test $host != $build; then
714 ac_tool_prefix=${host_alias}-
715 else
716 ac_tool_prefix=
719 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
720 echo "configure:721: checking for Cygwin environment" >&5
721 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
723 else
724 cat > conftest.$ac_ext <<EOF
725 #line 726 "configure"
726 #include "confdefs.h"
728 int main() {
730 #ifndef __CYGWIN__
731 #define __CYGWIN__ __CYGWIN32__
732 #endif
733 return __CYGWIN__;
734 ; return 0; }
736 if { (eval echo configure:737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
737 rm -rf conftest*
738 ac_cv_cygwin=yes
739 else
740 echo "configure: failed program was:" >&5
741 cat conftest.$ac_ext >&5
742 rm -rf conftest*
743 ac_cv_cygwin=no
745 rm -f conftest*
746 rm -f conftest*
749 echo "$ac_t""$ac_cv_cygwin" 1>&6
750 CYGWIN=
751 test "$ac_cv_cygwin" = yes && CYGWIN=yes
752 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
753 echo "configure:754: checking for mingw32 environment" >&5
754 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
756 else
757 cat > conftest.$ac_ext <<EOF
758 #line 759 "configure"
759 #include "confdefs.h"
761 int main() {
762 return __MINGW32__;
763 ; return 0; }
765 if { (eval echo configure:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
766 rm -rf conftest*
767 ac_cv_mingw32=yes
768 else
769 echo "configure: failed program was:" >&5
770 cat conftest.$ac_ext >&5
771 rm -rf conftest*
772 ac_cv_mingw32=no
774 rm -f conftest*
775 rm -f conftest*
778 echo "$ac_t""$ac_cv_mingw32" 1>&6
779 MINGW32=
780 test "$ac_cv_mingw32" = yes && MINGW32=yes
782 # Check whether --enable-multilib or --disable-multilib was given.
783 if test "${enable_multilib+set}" = set; then
784 enableval="$enable_multilib"
785 case "${enableval}" in
786 yes) multilib=yes ;;
787 no) multilib=no ;;
788 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
789 esac
790 else
791 multilib=yes
795 if test "${srcdir}" = "."; then
796 if test "${with_target_subdir}" != "."; then
797 boehm_gc_basedir="${srcdir}/${with_multisrctop}../."
798 else
799 boehm_gc_basedir="${srcdir}/${with_multisrctop}."
801 else
802 boehm_gc_basedir="${srcdir}/."
805 ac_aux_dir=
806 for ac_dir in $boehm_gc_basedir/.. $srcdir/$boehm_gc_basedir/..; do
807 if test -f $ac_dir/install-sh; then
808 ac_aux_dir=$ac_dir
809 ac_install_sh="$ac_aux_dir/install-sh -c"
810 break
811 elif test -f $ac_dir/install.sh; then
812 ac_aux_dir=$ac_dir
813 ac_install_sh="$ac_aux_dir/install.sh -c"
814 break
816 done
817 if test -z "$ac_aux_dir"; then
818 { echo "configure: error: can not find install-sh or install.sh in $boehm_gc_basedir/.. $srcdir/$boehm_gc_basedir/.." 1>&2; exit 1; }
820 ac_config_guess=$ac_aux_dir/config.guess
821 ac_config_sub=$ac_aux_dir/config.sub
822 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
824 if :; then :; else
825 # This overrides the previous occurrence for automake, but not for
826 # autoconf, which is exactly what we want.
827 ac_aux_dir=
828 for ac_dir in .. $srcdir/..; do
829 if test -f $ac_dir/install-sh; then
830 ac_aux_dir=$ac_dir
831 ac_install_sh="$ac_aux_dir/install-sh -c"
832 break
833 elif test -f $ac_dir/install.sh; then
834 ac_aux_dir=$ac_dir
835 ac_install_sh="$ac_aux_dir/install.sh -c"
836 break
838 done
839 if test -z "$ac_aux_dir"; then
840 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
842 ac_config_guess=$ac_aux_dir/config.guess
843 ac_config_sub=$ac_aux_dir/config.sub
844 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
849 # Do some error checking and defaulting for the host and target type.
850 # The inputs are:
851 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
853 # The rules are:
854 # 1. You are not allowed to specify --host, --target, and nonopt at the
855 # same time.
856 # 2. Host defaults to nonopt.
857 # 3. If nonopt is not specified, then host defaults to the current host,
858 # as determined by config.guess.
859 # 4. Target and build default to nonopt.
860 # 5. If nonopt is not specified, then target and build default to host.
862 # The aliases save the names the user supplied, while $host etc.
863 # will get canonicalized.
864 case $host---$target---$nonopt in
865 NONE---*---* | *---NONE---* | *---*---NONE) ;;
866 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
867 esac
870 # Make sure we can run config.sub.
871 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
872 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
875 echo $ac_n "checking host system type""... $ac_c" 1>&6
876 echo "configure:877: checking host system type" >&5
878 host_alias=$host
879 case "$host_alias" in
880 NONE)
881 case $nonopt in
882 NONE)
883 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
884 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
885 fi ;;
886 *) host_alias=$nonopt ;;
887 esac ;;
888 esac
890 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
891 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
892 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
893 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
894 echo "$ac_t""$host" 1>&6
896 echo $ac_n "checking target system type""... $ac_c" 1>&6
897 echo "configure:898: checking target system type" >&5
899 target_alias=$target
900 case "$target_alias" in
901 NONE)
902 case $nonopt in
903 NONE) target_alias=$host_alias ;;
904 *) target_alias=$nonopt ;;
905 esac ;;
906 esac
908 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
909 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
910 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
911 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
912 echo "$ac_t""$target" 1>&6
914 echo $ac_n "checking build system type""... $ac_c" 1>&6
915 echo "configure:916: checking build system type" >&5
917 build_alias=$build
918 case "$build_alias" in
919 NONE)
920 case $nonopt in
921 NONE) build_alias=$host_alias ;;
922 *) build_alias=$nonopt ;;
923 esac ;;
924 esac
926 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
927 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
928 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
929 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
930 echo "$ac_t""$build" 1>&6
932 test "$host_alias" != "$target_alias" &&
933 test "$program_prefix$program_suffix$program_transform_name" = \
934 NONENONEs,x,x, &&
935 program_prefix=${target_alias}-
938 # This works around an automake problem.
939 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
943 PACKAGE=boehm-gc
945 VERSION=5.1
947 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
948 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
953 missing_dir=`cd $ac_aux_dir && pwd`
954 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
955 echo "configure:956: checking for working aclocal" >&5
956 # Run test in a subshell; some versions of sh will print an error if
957 # an executable is not found, even if stderr is redirected.
958 # Redirect stdin to placate older versions of autoconf. Sigh.
959 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
960 ACLOCAL=aclocal
961 echo "$ac_t""found" 1>&6
962 else
963 ACLOCAL="$missing_dir/missing aclocal"
964 echo "$ac_t""missing" 1>&6
967 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
968 echo "configure:969: checking for working autoconf" >&5
969 # Run test in a subshell; some versions of sh will print an error if
970 # an executable is not found, even if stderr is redirected.
971 # Redirect stdin to placate older versions of autoconf. Sigh.
972 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
973 AUTOCONF=autoconf
974 echo "$ac_t""found" 1>&6
975 else
976 AUTOCONF="$missing_dir/missing autoconf"
977 echo "$ac_t""missing" 1>&6
980 echo $ac_n "checking for working automake""... $ac_c" 1>&6
981 echo "configure:982: checking for working automake" >&5
982 # Run test in a subshell; some versions of sh will print an error if
983 # an executable is not found, even if stderr is redirected.
984 # Redirect stdin to placate older versions of autoconf. Sigh.
985 if (automake --version) < /dev/null > /dev/null 2>&1; then
986 AUTOMAKE=automake
987 echo "$ac_t""found" 1>&6
988 else
989 AUTOMAKE="$missing_dir/missing automake"
990 echo "$ac_t""missing" 1>&6
993 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
994 echo "configure:995: checking for working autoheader" >&5
995 # Run test in a subshell; some versions of sh will print an error if
996 # an executable is not found, even if stderr is redirected.
997 # Redirect stdin to placate older versions of autoconf. Sigh.
998 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
999 AUTOHEADER=autoheader
1000 echo "$ac_t""found" 1>&6
1001 else
1002 AUTOHEADER="$missing_dir/missing autoheader"
1003 echo "$ac_t""missing" 1>&6
1006 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working makeinfo" >&5
1008 # Run test in a subshell; some versions of sh will print an error if
1009 # an executable is not found, even if stderr is redirected.
1010 # Redirect stdin to placate older versions of autoconf. Sigh.
1011 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1012 MAKEINFO=makeinfo
1013 echo "$ac_t""found" 1>&6
1014 else
1015 MAKEINFO="$missing_dir/missing makeinfo"
1016 echo "$ac_t""missing" 1>&6
1021 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1022 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1023 # are probably using a cross compiler, which will not be able to fully
1024 # link an executable. This should really be fixed in autoconf
1025 # itself.
1030 # Extract the first word of "gcc", so it can be a program name with args.
1031 set dummy gcc; ac_word=$2
1032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1033 echo "configure:1034: checking for $ac_word" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1036 else
1037 if test -n "$CC"; then
1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1039 else
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1041 ac_dummy="$PATH"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1045 ac_cv_prog_CC="gcc"
1046 break
1048 done
1049 IFS="$ac_save_ifs"
1052 CC="$ac_cv_prog_CC"
1053 if test -n "$CC"; then
1054 echo "$ac_t""$CC" 1>&6
1055 else
1056 echo "$ac_t""no" 1>&6
1059 if test -z "$CC"; then
1060 # Extract the first word of "cc", so it can be a program name with args.
1061 set dummy cc; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066 else
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1069 else
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1071 ac_prog_rejected=no
1072 ac_dummy="$PATH"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1077 ac_prog_rejected=yes
1078 continue
1080 ac_cv_prog_CC="cc"
1081 break
1083 done
1084 IFS="$ac_save_ifs"
1085 if test $ac_prog_rejected = yes; then
1086 # We found a bogon in the path, so make sure we never use it.
1087 set dummy $ac_cv_prog_CC
1088 shift
1089 if test $# -gt 0; then
1090 # We chose a different compiler from the bogus one.
1091 # However, it has the same basename, so the bogon will be chosen
1092 # first if we set CC to just the basename; use the full file name.
1093 shift
1094 set dummy "$ac_dir/$ac_word" "$@"
1095 shift
1096 ac_cv_prog_CC="$@"
1101 CC="$ac_cv_prog_CC"
1102 if test -n "$CC"; then
1103 echo "$ac_t""$CC" 1>&6
1104 else
1105 echo "$ac_t""no" 1>&6
1108 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1111 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether we are using GNU C" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 cat > conftest.c <<EOF
1117 #ifdef __GNUC__
1118 yes;
1119 #endif
1121 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1122 ac_cv_prog_gcc=yes
1123 else
1124 ac_cv_prog_gcc=no
1128 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1130 if test $ac_cv_prog_gcc = yes; then
1131 GCC=yes
1132 ac_test_CFLAGS="${CFLAGS+set}"
1133 ac_save_CFLAGS="$CFLAGS"
1134 CFLAGS=
1135 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140 echo 'void f(){}' > conftest.c
1141 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1142 ac_cv_prog_cc_g=yes
1143 else
1144 ac_cv_prog_cc_g=no
1146 rm -f conftest*
1150 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1151 if test "$ac_test_CFLAGS" = set; then
1152 CFLAGS="$ac_save_CFLAGS"
1153 elif test $ac_cv_prog_cc_g = yes; then
1154 CFLAGS="-g -O2"
1155 else
1156 CFLAGS="-O2"
1158 else
1159 GCC=
1160 test "${CFLAGS+set}" = set || CFLAGS="-g"
1164 # Likewise for AC_PROG_CXX.
1168 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1170 # Extract the first word of "$ac_prog", so it can be a program name with args.
1171 set dummy $ac_prog; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 if test -n "$CXX"; then
1178 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1179 else
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1181 ac_dummy="$PATH"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_CXX="$ac_prog"
1186 break
1188 done
1189 IFS="$ac_save_ifs"
1192 CXX="$ac_cv_prog_CXX"
1193 if test -n "$CXX"; then
1194 echo "$ac_t""$CXX" 1>&6
1195 else
1196 echo "$ac_t""no" 1>&6
1199 test -n "$CXX" && break
1200 done
1201 test -n "$CXX" || CXX="gcc"
1203 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1205 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether we are using GNU C++" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210 cat > conftest.C <<EOF
1211 #ifdef __GNUC__
1212 yes;
1213 #endif
1215 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1216 ac_cv_prog_gxx=yes
1217 else
1218 ac_cv_prog_gxx=no
1222 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1224 if test $ac_cv_prog_gxx = yes; then
1225 GXX=yes
1226 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1227 ac_save_CXXFLAGS="$CXXFLAGS"
1228 CXXFLAGS=
1229 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether ${CXX-g++} accepts -g" >&5
1231 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1233 else
1234 echo 'void f(){}' > conftest.cc
1235 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1236 ac_cv_prog_cxx_g=yes
1237 else
1238 ac_cv_prog_cxx_g=no
1240 rm -f conftest*
1244 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1245 if test "$ac_test_CXXFLAGS" = set; then
1246 CXXFLAGS="$ac_save_CXXFLAGS"
1247 elif test $ac_cv_prog_cxx_g = yes; then
1248 CXXFLAGS="-g -O2"
1249 else
1250 CXXFLAGS="-O2"
1252 else
1253 GXX=
1254 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1258 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1259 # run it explicitly here, it will be run implicitly before
1260 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1261 # be run before AC_CANONICAL_HOST.
1262 echo $ac_n "checking build system type""... $ac_c" 1>&6
1263 echo "configure:1264: checking build system type" >&5
1265 build_alias=$build
1266 case "$build_alias" in
1267 NONE)
1268 case $nonopt in
1269 NONE) build_alias=$host_alias ;;
1270 *) build_alias=$nonopt ;;
1271 esac ;;
1272 esac
1274 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1275 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1276 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1277 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1278 echo "$ac_t""$build" 1>&6
1281 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1282 set dummy ${ac_tool_prefix}as; ac_word=$2
1283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_word" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288 if test -n "$AS"; then
1289 ac_cv_prog_AS="$AS" # Let the user override the test.
1290 else
1291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1292 ac_dummy="$PATH"
1293 for ac_dir in $ac_dummy; do
1294 test -z "$ac_dir" && ac_dir=.
1295 if test -f $ac_dir/$ac_word; then
1296 ac_cv_prog_AS="${ac_tool_prefix}as"
1297 break
1299 done
1300 IFS="$ac_save_ifs"
1301 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1304 AS="$ac_cv_prog_AS"
1305 if test -n "$AS"; then
1306 echo "$ac_t""$AS" 1>&6
1307 else
1308 echo "$ac_t""no" 1>&6
1313 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1314 set dummy ${ac_tool_prefix}ar; ac_word=$2
1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1316 echo "configure:1317: checking for $ac_word" >&5
1317 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1319 else
1320 if test -n "$AR"; then
1321 ac_cv_prog_AR="$AR" # Let the user override the test.
1322 else
1323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1324 ac_dummy="$PATH"
1325 for ac_dir in $ac_dummy; do
1326 test -z "$ac_dir" && ac_dir=.
1327 if test -f $ac_dir/$ac_word; then
1328 ac_cv_prog_AR="${ac_tool_prefix}ar"
1329 break
1331 done
1332 IFS="$ac_save_ifs"
1333 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1336 AR="$ac_cv_prog_AR"
1337 if test -n "$AR"; then
1338 echo "$ac_t""$AR" 1>&6
1339 else
1340 echo "$ac_t""no" 1>&6
1345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1348 echo "configure:1349: checking for $ac_word" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1351 else
1352 if test -n "$RANLIB"; then
1353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1354 else
1355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1356 ac_dummy="$PATH"
1357 for ac_dir in $ac_dummy; do
1358 test -z "$ac_dir" && ac_dir=.
1359 if test -f $ac_dir/$ac_word; then
1360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1361 break
1363 done
1364 IFS="$ac_save_ifs"
1367 RANLIB="$ac_cv_prog_RANLIB"
1368 if test -n "$RANLIB"; then
1369 echo "$ac_t""$RANLIB" 1>&6
1370 else
1371 echo "$ac_t""no" 1>&6
1375 if test -z "$ac_cv_prog_RANLIB"; then
1376 if test -n "$ac_tool_prefix"; then
1377 # Extract the first word of "ranlib", so it can be a program name with args.
1378 set dummy ranlib; ac_word=$2
1379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1380 echo "configure:1381: checking for $ac_word" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384 if test -n "$RANLIB"; then
1385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1386 else
1387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1388 ac_dummy="$PATH"
1389 for ac_dir in $ac_dummy; do
1390 test -z "$ac_dir" && ac_dir=.
1391 if test -f $ac_dir/$ac_word; then
1392 ac_cv_prog_RANLIB="ranlib"
1393 break
1395 done
1396 IFS="$ac_save_ifs"
1397 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1400 RANLIB="$ac_cv_prog_RANLIB"
1401 if test -n "$RANLIB"; then
1402 echo "$ac_t""$RANLIB" 1>&6
1403 else
1404 echo "$ac_t""no" 1>&6
1407 else
1408 RANLIB=":"
1413 # Find a good install program. We prefer a C program (faster),
1414 # so one script is as good as another. But avoid the broken or
1415 # incompatible versions:
1416 # SysV /etc/install, /usr/sbin/install
1417 # SunOS /usr/etc/install
1418 # IRIX /sbin/install
1419 # AIX /bin/install
1420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1423 # ./install, which can be erroneously created by make from ./install.sh.
1424 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1425 echo "configure:1426: checking for a BSD compatible install" >&5
1426 if test -z "$INSTALL"; then
1427 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429 else
1430 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1431 for ac_dir in $PATH; do
1432 # Account for people who put trailing slashes in PATH elements.
1433 case "$ac_dir/" in
1434 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1436 # OSF1 and SCO ODT 3.0 have their own names for install.
1437 # Don't use installbsd from OSF since it installs stuff as root
1438 # by default.
1439 for ac_prog in ginstall scoinst install; do
1440 if test -f $ac_dir/$ac_prog; then
1441 if test $ac_prog = install &&
1442 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1443 # AIX install. It has an incompatible calling convention.
1445 else
1446 ac_cv_path_install="$ac_dir/$ac_prog -c"
1447 break 2
1450 done
1452 esac
1453 done
1454 IFS="$ac_save_IFS"
1457 if test "${ac_cv_path_install+set}" = set; then
1458 INSTALL="$ac_cv_path_install"
1459 else
1460 # As a last resort, use the slow shell script. We don't cache a
1461 # path for INSTALL within a source directory, because that will
1462 # break other packages using the cache if that directory is
1463 # removed, or if the path is relative.
1464 INSTALL="$ac_install_sh"
1467 echo "$ac_t""$INSTALL" 1>&6
1469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1470 # It thinks the first close brace ends the variable substitution.
1471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1478 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1479 echo "configure:1480: checking whether to enable maintainer-specific portions of Makefiles" >&5
1480 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1481 if test "${enable_maintainer_mode+set}" = set; then
1482 enableval="$enable_maintainer_mode"
1483 USE_MAINTAINER_MODE=$enableval
1484 else
1485 USE_MAINTAINER_MODE=no
1488 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1491 if test $USE_MAINTAINER_MODE = yes; then
1492 MAINTAINER_MODE_TRUE=
1493 MAINTAINER_MODE_FALSE='#'
1494 else
1495 MAINTAINER_MODE_TRUE='#'
1496 MAINTAINER_MODE_FALSE=
1498 MAINT=$MAINTAINER_MODE_TRUE
1502 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1503 # at least currently, we never actually build a program, so we never
1504 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1505 # fails, because we are probably configuring with a cross compiler
1506 # which can't create executables. So we include AC_EXEEXT to keep
1507 # automake happy, but we don't execute it, since we don't care about
1508 # the result.
1509 if false; then
1510 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1511 # to nothing, so nothing would remain between `then' and `fi' if it
1512 # were not for the `:' below.
1516 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1517 echo "configure:1518: checking for executable suffix" >&5
1518 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1521 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1522 ac_cv_exeext=.exe
1523 else
1524 rm -f conftest*
1525 echo 'int main () { return 0; }' > conftest.$ac_ext
1526 ac_cv_exeext=
1527 if { (eval echo configure:1528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1528 for file in conftest.*; do
1529 case $file in
1530 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1531 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1532 esac
1533 done
1534 else
1535 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1537 rm -f conftest*
1538 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1542 EXEEXT=""
1543 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1544 echo "$ac_t""${ac_cv_exeext}" 1>&6
1545 ac_exeext=$EXEEXT
1549 . ${srcdir}/configure.host
1551 case ${boehm_gc_basedir} in
1552 /* | A-Za-z:/\\*) boehm_gc_flagbasedir=${boehm_gc_basedir} ;;
1553 *) boehm_gc_flagbasedir='$(top_builddir)/'${boehm_gc_basedir} ;;
1554 esac
1556 boehm_gc_cflags="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1557 case "${host}" in
1558 *-*-cygwin32*)
1559 boehm_gc_cflags="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1561 esac
1563 boehm_gc_cflags="${boehm_gc_cflags} -fno-builtin"
1565 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
1569 # Check whether --enable-shared or --disable-shared was given.
1570 if test "${enable_shared+set}" = set; then
1571 enableval="$enable_shared"
1572 p=${PACKAGE-default}
1573 case $enableval in
1574 yes) enable_shared=yes ;;
1575 no) enable_shared=no ;;
1577 enable_shared=no
1578 # Look at the argument we got. We use all the common list separators.
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1580 for pkg in $enableval; do
1581 if test "X$pkg" = "X$p"; then
1582 enable_shared=yes
1584 done
1585 IFS="$ac_save_ifs"
1587 esac
1588 else
1589 enable_shared=yes
1592 # Check whether --enable-static or --disable-static was given.
1593 if test "${enable_static+set}" = set; then
1594 enableval="$enable_static"
1595 p=${PACKAGE-default}
1596 case $enableval in
1597 yes) enable_static=yes ;;
1598 no) enable_static=no ;;
1600 enable_static=no
1601 # Look at the argument we got. We use all the common list separators.
1602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1603 for pkg in $enableval; do
1604 if test "X$pkg" = "X$p"; then
1605 enable_static=yes
1607 done
1608 IFS="$ac_save_ifs"
1610 esac
1611 else
1612 enable_static=yes
1615 # Check whether --enable-fast-install or --disable-fast-install was given.
1616 if test "${enable_fast_install+set}" = set; then
1617 enableval="$enable_fast_install"
1618 p=${PACKAGE-default}
1619 case $enableval in
1620 yes) enable_fast_install=yes ;;
1621 no) enable_fast_install=no ;;
1623 enable_fast_install=no
1624 # Look at the argument we got. We use all the common list separators.
1625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1626 for pkg in $enableval; do
1627 if test "X$pkg" = "X$p"; then
1628 enable_fast_install=yes
1630 done
1631 IFS="$ac_save_ifs"
1633 esac
1634 else
1635 enable_fast_install=yes
1638 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1639 if test "${with_gnu_ld+set}" = set; then
1640 withval="$with_gnu_ld"
1641 test "$withval" = no || with_gnu_ld=yes
1642 else
1643 with_gnu_ld=no
1646 ac_prog=ld
1647 if test "$GCC" = yes; then
1648 # Check if gcc -print-prog-name=ld gives a path.
1649 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1650 echo "configure:1651: checking for ld used by GCC" >&5
1651 case $host in
1652 *-*-mingw*)
1653 # gcc leaves a trailing carriage return which upsets mingw
1654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1657 esac
1658 case $ac_prog in
1659 # Accept absolute paths.
1660 [\\/]* | [A-Za-z]:[\\/]*)
1661 re_direlt='/[^/][^/]*/\.\./'
1662 # Canonicalize the path of ld
1663 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1664 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1665 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1666 done
1667 test -z "$LD" && LD="$ac_prog"
1670 # If it fails, then pretend we aren't using GCC.
1671 ac_prog=ld
1674 # If it is relative, then search for the first ld in PATH.
1675 with_gnu_ld=unknown
1677 esac
1678 elif test "$with_gnu_ld" = yes; then
1679 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1680 echo "configure:1681: checking for GNU ld" >&5
1681 else
1682 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1683 echo "configure:1684: checking for non-GNU ld" >&5
1685 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1687 else
1688 if test -z "$LD"; then
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1690 for ac_dir in $PATH; do
1691 test -z "$ac_dir" && ac_dir=.
1692 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1693 lt_cv_path_LD="$ac_dir/$ac_prog"
1694 # Check to see if the program is GNU ld. I'd rather use --version,
1695 # but apparently some GNU ld's only accept -v.
1696 # Break only if it was the GNU/non-GNU ld that we prefer.
1697 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1698 test "$with_gnu_ld" != no && break
1699 else
1700 test "$with_gnu_ld" != yes && break
1703 done
1704 IFS="$ac_save_ifs"
1705 else
1706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1710 LD="$lt_cv_path_LD"
1711 if test -n "$LD"; then
1712 echo "$ac_t""$LD" 1>&6
1713 else
1714 echo "$ac_t""no" 1>&6
1716 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1717 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1718 echo "configure:1719: checking if the linker ($LD) is GNU ld" >&5
1719 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1721 else
1722 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1723 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1724 lt_cv_prog_gnu_ld=yes
1725 else
1726 lt_cv_prog_gnu_ld=no
1730 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1731 with_gnu_ld=$lt_cv_prog_gnu_ld
1734 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $LD option to reload object files" >&5
1736 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1738 else
1739 lt_cv_ld_reload_flag='-r'
1742 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1743 reload_flag=$lt_cv_ld_reload_flag
1744 test -n "$reload_flag" && reload_flag=" $reload_flag"
1746 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1747 echo "configure:1748: checking for BSD-compatible nm" >&5
1748 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750 else
1751 if test -n "$NM"; then
1752 # Let the user override the test.
1753 lt_cv_path_NM="$NM"
1754 else
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1756 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1757 test -z "$ac_dir" && ac_dir=.
1758 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1759 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1760 # Check to see if the nm accepts a BSD-compat flag.
1761 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1762 # nm: unknown option "B" ignored
1763 # Tru64's nm complains that /dev/null is an invalid object file
1764 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1765 lt_cv_path_NM="$tmp_nm -B"
1766 break
1767 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1768 lt_cv_path_NM="$tmp_nm -p"
1769 break
1770 else
1771 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1772 continue # so that we can try to find one that supports BSD flags
1775 done
1776 IFS="$ac_save_ifs"
1777 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1781 NM="$lt_cv_path_NM"
1782 echo "$ac_t""$NM" 1>&6
1784 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether ln -s works" >&5
1786 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1788 else
1789 rm -f conftestdata
1790 if ln -s X conftestdata 2>/dev/null
1791 then
1792 rm -f conftestdata
1793 ac_cv_prog_LN_S="ln -s"
1794 else
1795 ac_cv_prog_LN_S=ln
1798 LN_S="$ac_cv_prog_LN_S"
1799 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1800 echo "$ac_t""yes" 1>&6
1801 else
1802 echo "$ac_t""no" 1>&6
1805 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1806 echo "configure:1807: checking how to recognise dependant libraries" >&5
1807 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810 lt_cv_file_magic_cmd='$MAGIC_CMD'
1811 lt_cv_file_magic_test_file=
1812 lt_cv_deplibs_check_method='unknown'
1813 # Need to set the preceding variable on all platforms that support
1814 # interlibrary dependencies.
1815 # 'none' -- dependencies not supported.
1816 # `unknown' -- same as none, but documents that we really don't know.
1817 # 'pass_all' -- all dependencies passed with no checks.
1818 # 'test_compile' -- check by making test program.
1819 # 'file_magic [regex]' -- check by looking for files in library path
1820 # which responds to the $file_magic_cmd with a given egrep regex.
1821 # If you have `file' or equivalent on your system and you're not sure
1822 # whether `pass_all' will *always* work, you probably want this one.
1824 case $host_os in
1825 aix*)
1826 lt_cv_deplibs_check_method=pass_all
1829 beos*)
1830 lt_cv_deplibs_check_method=pass_all
1833 bsdi4*)
1834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1835 lt_cv_file_magic_cmd='/usr/bin/file -L'
1836 lt_cv_file_magic_test_file=/shlib/libc.so
1839 cygwin* | mingw* |pw32*)
1840 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1841 lt_cv_file_magic_cmd='$OBJDUMP -f'
1844 darwin* | rhapsody*)
1845 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1846 lt_cv_file_magic_cmd='/usr/bin/file -L'
1847 case "$host_os" in
1848 rhapsody* | darwin1.012)
1849 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1851 *) # Darwin 1.3 on
1852 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1854 esac
1857 freebsd* )
1858 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1859 case $host_cpu in
1860 i*86 )
1861 # Not sure whether the presence of OpenBSD here was a mistake.
1862 # Let's accept both of them until this is cleared up.
1863 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1864 lt_cv_file_magic_cmd=/usr/bin/file
1865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1867 esac
1868 else
1869 lt_cv_deplibs_check_method=pass_all
1873 gnu*)
1874 lt_cv_deplibs_check_method=pass_all
1877 hpux10.20*|hpux11*)
1878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1879 lt_cv_file_magic_cmd=/usr/bin/file
1880 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1883 irix5* | irix6*)
1884 case $host_os in
1885 irix5*)
1886 # this will be overridden with pass_all, but let us keep it just in case
1887 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1890 case $LD in
1891 *-32|*"-32 ") libmagic=32-bit;;
1892 *-n32|*"-n32 ") libmagic=N32;;
1893 *-64|*"-64 ") libmagic=64-bit;;
1894 *) libmagic=never-match;;
1895 esac
1896 # this will be overridden with pass_all, but let us keep it just in case
1897 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1899 esac
1900 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1901 lt_cv_deplibs_check_method=pass_all
1904 # This must be Linux ELF.
1905 linux-gnu*)
1906 case $host_cpu in
1907 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1908 lt_cv_deplibs_check_method=pass_all ;;
1910 # glibc up to 2.1.1 does not perform some relocations on ARM
1911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1912 esac
1913 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1916 netbsd*)
1917 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1918 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1919 else
1920 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1924 newsos6)
1925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1926 lt_cv_file_magic_cmd=/usr/bin/file
1927 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1930 osf3* | osf4* | osf5*)
1931 # this will be overridden with pass_all, but let us keep it just in case
1932 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1933 lt_cv_file_magic_test_file=/shlib/libc.so
1934 lt_cv_deplibs_check_method=pass_all
1937 sco3.2v5*)
1938 lt_cv_deplibs_check_method=pass_all
1941 solaris*)
1942 lt_cv_deplibs_check_method=pass_all
1943 lt_cv_file_magic_test_file=/lib/libc.so
1946 sysv5uw[78]* | sysv4*uw2*)
1947 lt_cv_deplibs_check_method=pass_all
1950 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1951 case $host_vendor in
1952 ncr)
1953 lt_cv_deplibs_check_method=pass_all
1955 motorola)
1956 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]'
1957 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1959 esac
1961 esac
1965 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1966 file_magic_cmd=$lt_cv_file_magic_cmd
1967 deplibs_check_method=$lt_cv_deplibs_check_method
1969 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1970 echo "configure:1971: checking for object suffix" >&5
1971 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1973 else
1974 rm -f conftest*
1975 echo 'int i = 1;' > conftest.$ac_ext
1976 if { (eval echo configure:1977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1977 for ac_file in conftest.*; do
1978 case $ac_file in
1979 *.c) ;;
1980 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1981 esac
1982 done
1983 else
1984 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1986 rm -f conftest*
1989 echo "$ac_t""$ac_cv_objext" 1>&6
1990 OBJEXT=$ac_cv_objext
1991 ac_objext=$ac_cv_objext
1993 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1995 # Only perform the check for file, if the check method requires it
1996 case $deplibs_check_method in
1997 file_magic*)
1998 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1999 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2000 echo "configure:2001: checking for ${ac_tool_prefix}file" >&5
2001 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004 case $MAGIC_CMD in
2006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2008 ?:/*)
2009 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2012 ac_save_MAGIC_CMD="$MAGIC_CMD"
2013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2014 ac_dummy="/usr/bin:$PATH"
2015 for ac_dir in $ac_dummy; do
2016 test -z "$ac_dir" && ac_dir=.
2017 if test -f $ac_dir/${ac_tool_prefix}file; then
2018 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2019 if test -n "$file_magic_test_file"; then
2020 case $deplibs_check_method in
2021 "file_magic "*)
2022 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2025 egrep "$file_magic_regex" > /dev/null; then
2027 else
2028 cat <<EOF 1>&2
2030 *** Warning: the command libtool uses to detect shared libraries,
2031 *** $file_magic_cmd, produces output that libtool cannot recognize.
2032 *** The result is that libtool may fail to recognize shared libraries
2033 *** as such. This will affect the creation of libtool libraries that
2034 *** depend on shared libraries, but programs linked with such libtool
2035 *** libraries will work regardless of this problem. Nevertheless, you
2036 *** may want to report the problem to your system manager and/or to
2037 *** bug-libtool@gnu.org
2040 fi ;;
2041 esac
2043 break
2045 done
2046 IFS="$ac_save_ifs"
2047 MAGIC_CMD="$ac_save_MAGIC_CMD"
2049 esac
2052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2053 if test -n "$MAGIC_CMD"; then
2054 echo "$ac_t""$MAGIC_CMD" 1>&6
2055 else
2056 echo "$ac_t""no" 1>&6
2059 if test -z "$lt_cv_path_MAGIC_CMD"; then
2060 if test -n "$ac_tool_prefix"; then
2061 echo $ac_n "checking for file""... $ac_c" 1>&6
2062 echo "configure:2063: checking for file" >&5
2063 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 case $MAGIC_CMD in
2068 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2070 ?:/*)
2071 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2074 ac_save_MAGIC_CMD="$MAGIC_CMD"
2075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2076 ac_dummy="/usr/bin:$PATH"
2077 for ac_dir in $ac_dummy; do
2078 test -z "$ac_dir" && ac_dir=.
2079 if test -f $ac_dir/file; then
2080 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2081 if test -n "$file_magic_test_file"; then
2082 case $deplibs_check_method in
2083 "file_magic "*)
2084 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2087 egrep "$file_magic_regex" > /dev/null; then
2089 else
2090 cat <<EOF 1>&2
2092 *** Warning: the command libtool uses to detect shared libraries,
2093 *** $file_magic_cmd, produces output that libtool cannot recognize.
2094 *** The result is that libtool may fail to recognize shared libraries
2095 *** as such. This will affect the creation of libtool libraries that
2096 *** depend on shared libraries, but programs linked with such libtool
2097 *** libraries will work regardless of this problem. Nevertheless, you
2098 *** may want to report the problem to your system manager and/or to
2099 *** bug-libtool@gnu.org
2102 fi ;;
2103 esac
2105 break
2107 done
2108 IFS="$ac_save_ifs"
2109 MAGIC_CMD="$ac_save_MAGIC_CMD"
2111 esac
2114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2115 if test -n "$MAGIC_CMD"; then
2116 echo "$ac_t""$MAGIC_CMD" 1>&6
2117 else
2118 echo "$ac_t""no" 1>&6
2121 else
2122 MAGIC_CMD=:
2128 esac
2130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_word" >&5
2134 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2136 else
2137 if test -n "$RANLIB"; then
2138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2139 else
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2141 ac_dummy="$PATH"
2142 for ac_dir in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f $ac_dir/$ac_word; then
2145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2146 break
2148 done
2149 IFS="$ac_save_ifs"
2152 RANLIB="$ac_cv_prog_RANLIB"
2153 if test -n "$RANLIB"; then
2154 echo "$ac_t""$RANLIB" 1>&6
2155 else
2156 echo "$ac_t""no" 1>&6
2160 if test -z "$ac_cv_prog_RANLIB"; then
2161 if test -n "$ac_tool_prefix"; then
2162 # Extract the first word of "ranlib", so it can be a program name with args.
2163 set dummy ranlib; ac_word=$2
2164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_word" >&5
2166 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169 if test -n "$RANLIB"; then
2170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2171 else
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2173 ac_dummy="$PATH"
2174 for ac_dir in $ac_dummy; do
2175 test -z "$ac_dir" && ac_dir=.
2176 if test -f $ac_dir/$ac_word; then
2177 ac_cv_prog_RANLIB="ranlib"
2178 break
2180 done
2181 IFS="$ac_save_ifs"
2182 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2185 RANLIB="$ac_cv_prog_RANLIB"
2186 if test -n "$RANLIB"; then
2187 echo "$ac_t""$RANLIB" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2192 else
2193 RANLIB=":"
2197 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}strip; ac_word=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 if test -n "$STRIP"; then
2205 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2206 else
2207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2208 ac_dummy="$PATH"
2209 for ac_dir in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir=.
2211 if test -f $ac_dir/$ac_word; then
2212 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2213 break
2215 done
2216 IFS="$ac_save_ifs"
2219 STRIP="$ac_cv_prog_STRIP"
2220 if test -n "$STRIP"; then
2221 echo "$ac_t""$STRIP" 1>&6
2222 else
2223 echo "$ac_t""no" 1>&6
2227 if test -z "$ac_cv_prog_STRIP"; then
2228 if test -n "$ac_tool_prefix"; then
2229 # Extract the first word of "strip", so it can be a program name with args.
2230 set dummy strip; ac_word=$2
2231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_word" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 if test -n "$STRIP"; then
2237 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2238 else
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2240 ac_dummy="$PATH"
2241 for ac_dir in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word; then
2244 ac_cv_prog_STRIP="strip"
2245 break
2247 done
2248 IFS="$ac_save_ifs"
2249 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2252 STRIP="$ac_cv_prog_STRIP"
2253 if test -n "$STRIP"; then
2254 echo "$ac_t""$STRIP" 1>&6
2255 else
2256 echo "$ac_t""no" 1>&6
2259 else
2260 STRIP=":"
2265 # Check for any special flags to pass to ltconfig.
2266 libtool_flags="--cache-file=$cache_file"
2267 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2268 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2269 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2270 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2271 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2274 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2275 if test "${enable_libtool_lock+set}" = set; then
2276 enableval="$enable_libtool_lock"
2280 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2281 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2283 # Check whether --with-pic or --without-pic was given.
2284 if test "${with_pic+set}" = set; then
2285 withval="$with_pic"
2286 pic_mode="$withval"
2287 else
2288 pic_mode=default
2291 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2292 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2294 # Some flags need to be propagated to the compiler or linker for good
2295 # libtool support.
2296 case $host in
2297 *-*-irix6*)
2298 # Find out which ABI we are using.
2299 echo '#line 2300 "configure"' > conftest.$ac_ext
2300 if { (eval echo configure:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2301 case `/usr/bin/file conftest.$ac_objext` in
2302 *32-bit*)
2303 LD="${LD-ld} -32"
2305 *N32*)
2306 LD="${LD-ld} -n32"
2308 *64-bit*)
2309 LD="${LD-ld} -64"
2311 esac
2313 rm -rf conftest*
2316 *-*-sco3.2v5*)
2317 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2318 SAVE_CFLAGS="$CFLAGS"
2319 CFLAGS="$CFLAGS -belf"
2320 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2321 echo "configure:2322: checking whether the C compiler needs -belf" >&5
2322 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2326 ac_ext=c
2327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2331 cross_compiling=$ac_cv_prog_cc_cross
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2337 int main() {
2339 ; return 0; }
2341 if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2342 rm -rf conftest*
2343 lt_cv_cc_needs_belf=yes
2344 else
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2347 rm -rf conftest*
2348 lt_cv_cc_needs_belf=no
2350 rm -f conftest*
2351 ac_ext=c
2352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2356 cross_compiling=$ac_cv_prog_cc_cross
2360 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2361 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2362 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2363 CFLAGS="$SAVE_CFLAGS"
2368 esac
2370 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2371 echo "configure:2372: checking how to run the C++ preprocessor" >&5
2372 if test -z "$CXXCPP"; then
2373 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2375 else
2376 ac_ext=C
2377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2378 ac_cpp='$CXXCPP $CPPFLAGS'
2379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2381 cross_compiling=$ac_cv_prog_cxx_cross
2382 CXXCPP="${CXX-g++} -E"
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 #include <stdlib.h>
2388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389 { (eval echo configure:2390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2391 if test -z "$ac_err"; then
2393 else
2394 echo "$ac_err" >&5
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2397 rm -rf conftest*
2398 CXXCPP=/lib/cpp
2400 rm -f conftest*
2401 ac_cv_prog_CXXCPP="$CXXCPP"
2402 ac_ext=c
2403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2407 cross_compiling=$ac_cv_prog_cc_cross
2410 CXXCPP="$ac_cv_prog_CXXCPP"
2411 echo "$ac_t""$CXXCPP" 1>&6
2414 # Save cache, so that ltconfig can load it
2415 cat > confcache <<\EOF
2416 # This file is a shell script that caches the results of configure
2417 # tests run on this system so they can be shared between configure
2418 # scripts and configure runs. It is not useful on other systems.
2419 # If it contains results you don't want to keep, you may remove or edit it.
2421 # By default, configure uses ./config.cache as the cache file,
2422 # creating it if it does not exist already. You can give configure
2423 # the --cache-file=FILE option to use a different cache file; that is
2424 # what configure does when it calls configure scripts in
2425 # subdirectories, so they share the cache.
2426 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2427 # config.status only pays attention to the cache file if you give it the
2428 # --recheck option to rerun configure.
2431 # The following way of writing the cache mishandles newlines in values,
2432 # but we know of no workaround that is simple, portable, and efficient.
2433 # So, don't put newlines in cache variables' values.
2434 # Ultrix sh set writes to stderr and can't be redirected directly,
2435 # and sets the high bit in the cache file unless we assign to the vars.
2436 (set) 2>&1 |
2437 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2438 *ac_space=\ *)
2439 # `set' does not quote correctly, so add quotes (double-quote substitution
2440 # turns \\\\ into \\, and sed turns \\ into \).
2441 sed -n \
2442 -e "s/'/'\\\\''/g" \
2443 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2446 # `set' quotes correctly as required by POSIX, so do not add quotes.
2447 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2449 esac >> confcache
2450 if cmp -s $cache_file confcache; then
2452 else
2453 if test -w $cache_file; then
2454 echo "updating cache $cache_file"
2455 cat confcache > $cache_file
2456 else
2457 echo "not updating unwritable cache $cache_file"
2460 rm -f confcache
2463 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2464 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2465 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2466 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2467 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2468 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2469 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2470 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2471 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2472 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2474 # Reload cache, that may have been modified by ltconfig
2475 if test -r "$cache_file"; then
2476 echo "loading cache $cache_file"
2477 . $cache_file
2478 else
2479 echo "creating cache $cache_file"
2480 > $cache_file
2484 # This can be used to rebuild libtool when needed
2485 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2487 # Always use our own libtool.
2488 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2490 # Redirect the config.log output again, so that the ltconfig log is not
2491 # clobbered by the next message.
2492 exec 5>>./config.log
2496 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2497 lt_save_CC="$CC"
2498 lt_save_CFLAGS="$CFLAGS"
2499 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2500 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2501 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2502 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2503 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2504 deplibs_check_method="$deplibs_check_method" \
2505 file_magic_cmd="$file_magic_cmd" \
2506 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2507 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2508 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2509 CC="$lt_save_CC"
2510 CFLAGS="$lt_save_CFLAGS"
2512 # Redirect the config.log output again, so that the ltconfig log is not
2513 # clobbered by the next message.
2514 exec 5>>./config.log
2522 # Check whether --with-target-subdir or --without-target-subdir was given.
2523 if test "${with_target_subdir+set}" = set; then
2524 withval="$with_target_subdir"
2528 # Check whether --with-cross-host or --without-cross-host was given.
2529 if test "${with_cross_host+set}" = set; then
2530 withval="$with_cross_host"
2535 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2536 echo "configure:2537: checking whether to enable maintainer-specific portions of Makefiles" >&5
2537 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2538 if test "${enable_maintainer_mode+set}" = set; then
2539 enableval="$enable_maintainer_mode"
2540 USE_MAINTAINER_MODE=$enableval
2541 else
2542 USE_MAINTAINER_MODE=no
2545 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2548 if test $USE_MAINTAINER_MODE = yes; then
2549 MAINTAINER_MODE_TRUE=
2550 MAINTAINER_MODE_FALSE='#'
2551 else
2552 MAINTAINER_MODE_TRUE='#'
2553 MAINTAINER_MODE_FALSE=
2555 MAINT=$MAINTAINER_MODE_TRUE
2558 # automake wants to see AC_EXEEXT. But we don't need it. And having
2559 # it is actually a problem, because the compiler we're passed can't
2560 # necessarily do a full link. So we fool automake here.
2561 if false; then
2562 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2563 # to nothing, so nothing would remain between `then' and `fi' if it
2564 # were not for the `:' below.
2568 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2569 echo "configure:2570: checking for executable suffix" >&5
2570 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2574 ac_cv_exeext=.exe
2575 else
2576 rm -f conftest*
2577 echo 'int main () { return 0; }' > conftest.$ac_ext
2578 ac_cv_exeext=
2579 if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2580 for file in conftest.*; do
2581 case $file in
2582 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2583 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2584 esac
2585 done
2586 else
2587 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2589 rm -f conftest*
2590 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2594 EXEEXT=""
2595 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2596 echo "$ac_t""${ac_cv_exeext}" 1>&6
2597 ac_exeext=$EXEEXT
2601 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2602 echo "configure:2603: checking for thread model used by GCC" >&5
2603 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2604 echo "$ac_t""$THREADS" 1>&6
2606 INCLUDES=-I${srcdir}/include
2607 THREADLIBS=
2608 case "$THREADS" in
2609 no | none | single)
2610 THREADS=none
2612 posix | pthreads)
2613 THREADS=posix
2614 THREADLIBS=-lpthread
2615 case "$host" in
2616 *-*-linux*)
2617 cat >> confdefs.h <<\EOF
2618 #define LINUX_THREADS 1
2621 cat >> confdefs.h <<\EOF
2622 #define _REENTRANT 1
2626 *-*-freebsd*)
2627 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2628 cat >> confdefs.h <<\EOF
2629 #define FREEBSD_THREADS 1
2632 INCLUDES="$INCLUDES -pthread"
2633 THREADLIBS=-pthread
2635 *-*-solaris*)
2636 cat >> confdefs.h <<\EOF
2637 #define SOLARIS_THREADS 1
2640 cat >> confdefs.h <<\EOF
2641 #define _SOLARIS_PTHREADS 1
2645 *-*-irix*)
2646 cat >> confdefs.h <<\EOF
2647 #define IRIX_THREADS 1
2651 esac
2653 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2654 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2657 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2659 esac
2662 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2663 echo "configure:2664: checking for dlopen in -ldl" >&5
2664 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668 ac_save_LIBS="$LIBS"
2669 LIBS="-ldl $LIBS"
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2673 /* Override any gcc2 internal prototype to avoid an error. */
2674 /* We use char because int might match the return type of a gcc2
2675 builtin and then its argument prototype would still apply. */
2676 char dlopen();
2678 int main() {
2679 dlopen()
2680 ; return 0; }
2682 if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2683 rm -rf conftest*
2684 eval "ac_cv_lib_$ac_lib_var=yes"
2685 else
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 eval "ac_cv_lib_$ac_lib_var=no"
2691 rm -f conftest*
2692 LIBS="$ac_save_LIBS"
2695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2698 else
2699 echo "$ac_t""no" 1>&6
2704 # Check whether --enable-java-gc or --disable-java-gc was given.
2705 if test "${enable_java_gc+set}" = set; then
2706 enableval="$enable_java_gc"
2708 GC=$enableval
2709 else
2710 GC=boehm
2713 target_all=
2714 if test "$GC" = "boehm"; then
2715 target_all=libgcjgc.la
2719 TARGET_ECOS="no"
2720 # Check whether --with-ecos or --without-ecos was given.
2721 if test "${with_ecos+set}" = set; then
2722 withval="$with_ecos"
2723 TARGET_ECOS="$with_ecos"
2728 addobjs=
2729 CXXINCLUDES=
2730 case "$TARGET_ECOS" in
2734 cat >> confdefs.h <<\EOF
2735 #define ECOS 1
2738 CXXINCLUDES="-I${TARGET_ECOS}/include"
2739 addobjs="$addobjs ecos.lo"
2741 esac
2747 machdep=
2748 case "$host" in
2749 alpha*-*-*)
2750 machdep="alpha_mach_dep.lo"
2752 mipstx39-*-elf*)
2753 machdep="mips_ultrix_mach_dep.lo"
2754 cat >> confdefs.h <<\EOF
2755 #define STACKBASE __stackbase
2758 cat >> confdefs.h <<\EOF
2759 #define DATASTART_IS_ETEXT 1
2763 mips-dec-ultrix*)
2764 machdep="mips_ultrix_mach-dep.lo"
2766 mips-*-*)
2767 machdep="mips_sgi_mach_dep.lo"
2768 cat >> confdefs.h <<\EOF
2769 #define NO_EXECUTE_PERMISSION 1
2773 sparc-sun-solaris2.3*)
2774 cat >> confdefs.h <<\EOF
2775 #define SUNOS53_SHARED_LIB 1
2779 esac
2780 if test x"$machdep" = x; then
2781 machdep="mach_dep.lo"
2783 addobjs="$addobjs $machdep"
2786 case "$host" in
2787 sparc-sun-solaris2*)
2788 if test "$GCC" = yes; then
2789 new_CFLAGS=
2790 for i in $CFLAGS; do
2791 case "$i" in
2792 -O*)
2795 new_CFLAGS="$new_CFLAGS $i"
2797 esac
2798 done
2799 CFLAGS="$new_CFLAGS"
2802 esac
2804 MY_CFLAGS="$CFLAGS"
2807 cat >> confdefs.h <<\EOF
2808 #define SILENT 1
2811 cat >> confdefs.h <<\EOF
2812 #define NO_SIGNALS 1
2815 cat >> confdefs.h <<\EOF
2816 #define JAVA_FINALIZATION 1
2819 cat >> confdefs.h <<\EOF
2820 #define GC_GCJ_SUPPORT 1
2824 if test -n "${with_cross_host}"; then
2825 cat >> confdefs.h <<\EOF
2826 #define NO_SIGSET 1
2829 cat >> confdefs.h <<\EOF
2830 #define NO_CLOCK 1
2833 cat >> confdefs.h <<\EOF
2834 #define SMALL_CONFIG 1
2837 cat >> confdefs.h <<\EOF
2838 #define NO_DEBUGGING 1
2845 if test -z "$with_cross_host"; then
2846 USE_LIBDIR_TRUE=
2847 USE_LIBDIR_FALSE='#'
2848 else
2849 USE_LIBDIR_TRUE='#'
2850 USE_LIBDIR_FALSE=
2853 if test "${multilib}" = "yes"; then
2854 multilib_arg="--enable-multilib"
2855 else
2856 multilib_arg=
2859 trap '' 1 2 15
2860 cat > confcache <<\EOF
2861 # This file is a shell script that caches the results of configure
2862 # tests run on this system so they can be shared between configure
2863 # scripts and configure runs. It is not useful on other systems.
2864 # If it contains results you don't want to keep, you may remove or edit it.
2866 # By default, configure uses ./config.cache as the cache file,
2867 # creating it if it does not exist already. You can give configure
2868 # the --cache-file=FILE option to use a different cache file; that is
2869 # what configure does when it calls configure scripts in
2870 # subdirectories, so they share the cache.
2871 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2872 # config.status only pays attention to the cache file if you give it the
2873 # --recheck option to rerun configure.
2876 # The following way of writing the cache mishandles newlines in values,
2877 # but we know of no workaround that is simple, portable, and efficient.
2878 # So, don't put newlines in cache variables' values.
2879 # Ultrix sh set writes to stderr and can't be redirected directly,
2880 # and sets the high bit in the cache file unless we assign to the vars.
2881 (set) 2>&1 |
2882 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2883 *ac_space=\ *)
2884 # `set' does not quote correctly, so add quotes (double-quote substitution
2885 # turns \\\\ into \\, and sed turns \\ into \).
2886 sed -n \
2887 -e "s/'/'\\\\''/g" \
2888 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2891 # `set' quotes correctly as required by POSIX, so do not add quotes.
2892 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2894 esac >> confcache
2895 if cmp -s $cache_file confcache; then
2897 else
2898 if test -w $cache_file; then
2899 echo "updating cache $cache_file"
2900 cat confcache > $cache_file
2901 else
2902 echo "not updating unwritable cache $cache_file"
2905 rm -f confcache
2907 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2910 # Let make expand exec_prefix.
2911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2913 # Any assignment to VPATH causes Sun make to only execute
2914 # the first set of double-colon rules, so remove it if not needed.
2915 # If there is a colon in the path, we need to keep it.
2916 if test "x$srcdir" = x.; then
2917 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2920 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2922 # Transform confdefs.h into DEFS.
2923 # Protect against shell expansion while executing Makefile rules.
2924 # Protect against Makefile macro expansion.
2925 cat > conftest.defs <<\EOF
2926 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2927 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2928 s%\[%\\&%g
2929 s%\]%\\&%g
2930 s%\$%$$%g
2932 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2933 rm -f conftest.defs
2936 # Without the "./", some shells look in PATH for config.status.
2937 : ${CONFIG_STATUS=./config.status}
2939 echo creating $CONFIG_STATUS
2940 rm -f $CONFIG_STATUS
2941 cat > $CONFIG_STATUS <<EOF
2942 #! /bin/sh
2943 # Generated automatically by configure.
2944 # Run this file to recreate the current configuration.
2945 # This directory was configured as follows,
2946 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2948 # $0 $ac_configure_args
2950 # Compiler output produced by configure, useful for debugging
2951 # configure, is in ./config.log if it exists.
2953 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2954 for ac_option
2956 case "\$ac_option" in
2957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2958 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2959 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2960 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2961 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2962 exit 0 ;;
2963 -help | --help | --hel | --he | --h)
2964 echo "\$ac_cs_usage"; exit 0 ;;
2965 *) echo "\$ac_cs_usage"; exit 1 ;;
2966 esac
2967 done
2969 ac_given_srcdir=$srcdir
2970 ac_given_INSTALL="$INSTALL"
2972 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2974 cat >> $CONFIG_STATUS <<EOF
2976 # Protect against being on the right side of a sed subst in config.status.
2977 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2978 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2979 $ac_vpsub
2980 $extrasub
2981 s%@SHELL@%$SHELL%g
2982 s%@CFLAGS@%$CFLAGS%g
2983 s%@CPPFLAGS@%$CPPFLAGS%g
2984 s%@CXXFLAGS@%$CXXFLAGS%g
2985 s%@FFLAGS@%$FFLAGS%g
2986 s%@DEFS@%$DEFS%g
2987 s%@LDFLAGS@%$LDFLAGS%g
2988 s%@LIBS@%$LIBS%g
2989 s%@exec_prefix@%$exec_prefix%g
2990 s%@prefix@%$prefix%g
2991 s%@program_transform_name@%$program_transform_name%g
2992 s%@bindir@%$bindir%g
2993 s%@sbindir@%$sbindir%g
2994 s%@libexecdir@%$libexecdir%g
2995 s%@datadir@%$datadir%g
2996 s%@sysconfdir@%$sysconfdir%g
2997 s%@sharedstatedir@%$sharedstatedir%g
2998 s%@localstatedir@%$localstatedir%g
2999 s%@libdir@%$libdir%g
3000 s%@includedir@%$includedir%g
3001 s%@oldincludedir@%$oldincludedir%g
3002 s%@infodir@%$infodir%g
3003 s%@mandir@%$mandir%g
3004 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
3005 s%@host@%$host%g
3006 s%@host_alias@%$host_alias%g
3007 s%@host_cpu@%$host_cpu%g
3008 s%@host_vendor@%$host_vendor%g
3009 s%@host_os@%$host_os%g
3010 s%@target@%$target%g
3011 s%@target_alias@%$target_alias%g
3012 s%@target_cpu@%$target_cpu%g
3013 s%@target_vendor@%$target_vendor%g
3014 s%@target_os@%$target_os%g
3015 s%@build@%$build%g
3016 s%@build_alias@%$build_alias%g
3017 s%@build_cpu@%$build_cpu%g
3018 s%@build_vendor@%$build_vendor%g
3019 s%@build_os@%$build_os%g
3020 s%@mkinstalldirs@%$mkinstalldirs%g
3021 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3022 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3023 s%@INSTALL_DATA@%$INSTALL_DATA%g
3024 s%@PACKAGE@%$PACKAGE%g
3025 s%@VERSION@%$VERSION%g
3026 s%@ACLOCAL@%$ACLOCAL%g
3027 s%@AUTOCONF@%$AUTOCONF%g
3028 s%@AUTOMAKE@%$AUTOMAKE%g
3029 s%@AUTOHEADER@%$AUTOHEADER%g
3030 s%@MAKEINFO@%$MAKEINFO%g
3031 s%@SET_MAKE@%$SET_MAKE%g
3032 s%@CC@%$CC%g
3033 s%@CXX@%$CXX%g
3034 s%@AS@%$AS%g
3035 s%@AR@%$AR%g
3036 s%@RANLIB@%$RANLIB%g
3037 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3038 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3039 s%@MAINT@%$MAINT%g
3040 s%@EXEEXT@%$EXEEXT%g
3041 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
3042 s%@LN_S@%$LN_S%g
3043 s%@OBJEXT@%$OBJEXT%g
3044 s%@STRIP@%$STRIP%g
3045 s%@LIBTOOL@%$LIBTOOL%g
3046 s%@CXXCPP@%$CXXCPP%g
3047 s%@THREADLIBS@%$THREADLIBS%g
3048 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3049 s%@target_all@%$target_all%g
3050 s%@INCLUDES@%$INCLUDES%g
3051 s%@CXXINCLUDES@%$CXXINCLUDES%g
3052 s%@addobjs@%$addobjs%g
3053 s%@MY_CFLAGS@%$MY_CFLAGS%g
3054 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3055 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3057 CEOF
3060 cat >> $CONFIG_STATUS <<\EOF
3062 # Split the substitutions into bite-sized pieces for seds with
3063 # small command number limits, like on Digital OSF/1 and HP-UX.
3064 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3065 ac_file=1 # Number of current file.
3066 ac_beg=1 # First line for current file.
3067 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3068 ac_more_lines=:
3069 ac_sed_cmds=""
3070 while $ac_more_lines; do
3071 if test $ac_beg -gt 1; then
3072 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3073 else
3074 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3076 if test ! -s conftest.s$ac_file; then
3077 ac_more_lines=false
3078 rm -f conftest.s$ac_file
3079 else
3080 if test -z "$ac_sed_cmds"; then
3081 ac_sed_cmds="sed -f conftest.s$ac_file"
3082 else
3083 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3085 ac_file=`expr $ac_file + 1`
3086 ac_beg=$ac_end
3087 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3089 done
3090 if test -z "$ac_sed_cmds"; then
3091 ac_sed_cmds=cat
3095 cat >> $CONFIG_STATUS <<EOF
3097 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3099 cat >> $CONFIG_STATUS <<\EOF
3100 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3101 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3102 case "$ac_file" in
3103 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3104 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3105 *) ac_file_in="${ac_file}.in" ;;
3106 esac
3108 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3110 # Remove last slash and all that follows it. Not all systems have dirname.
3111 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3112 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3113 # The file is in a subdirectory.
3114 test ! -d "$ac_dir" && mkdir "$ac_dir"
3115 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3116 # A "../" for each directory in $ac_dir_suffix.
3117 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3118 else
3119 ac_dir_suffix= ac_dots=
3122 case "$ac_given_srcdir" in
3123 .) srcdir=.
3124 if test -z "$ac_dots"; then top_srcdir=.
3125 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3126 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3127 *) # Relative path.
3128 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3129 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3130 esac
3132 case "$ac_given_INSTALL" in
3133 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3134 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3135 esac
3137 echo creating "$ac_file"
3138 rm -f "$ac_file"
3139 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3140 case "$ac_file" in
3141 *Makefile*) ac_comsub="1i\\
3142 # $configure_input" ;;
3143 *) ac_comsub= ;;
3144 esac
3146 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3147 sed -e "$ac_comsub
3148 s%@configure_input@%$configure_input%g
3149 s%@srcdir@%$srcdir%g
3150 s%@top_srcdir@%$top_srcdir%g
3151 s%@INSTALL@%$INSTALL%g
3152 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3153 fi; done
3154 rm -f conftest.s*
3157 cat >> $CONFIG_STATUS <<EOF
3158 srcdir=${srcdir}
3159 host=${host}
3160 target=${target}
3161 with_multisubdir=${with_multisubdir}
3162 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3163 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3164 boehm_gc_basedir=${boehm_gc_basedir}
3165 CC="${CC}"
3166 DEFS="$DEFS"
3169 cat >> $CONFIG_STATUS <<\EOF
3171 echo "$DEFS" > boehm-cflags
3173 if test -n "$CONFIG_FILES"; then
3174 ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
3176 exit 0
3178 chmod +x $CONFIG_STATUS
3179 rm -fr confdefs* $ac_clean_files
3180 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1