* builtins.def (BUILT_IN_LABS, BUILT_IN_LLABS, BUILT_IN_IMAXABS):
[official-gcc.git] / boehm-gc / configure
blobcd68c6b51e3d708b7bfff01a5c775ffe101ade96
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-threads=TYPE choose threading package"
41 ac_help="$ac_help
42 --enable-java-gc=TYPE choose garbage collector [boehm]"
43 ac_help="$ac_help
44 --with-ecos enable runtime eCos target support"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
87 ac_prev=
88 for ac_option
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
103 # Accept the important Cygnus configure options, so we can diagnose typos.
105 case "$ac_option" in
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
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 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 nonopt="$ac_option"
423 esac
424 done
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441 exec 6>/dev/null
442 else
443 exec 6>&1
445 exec 5>./config.log
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466 done
468 # NLS nuisances.
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=gc_mark.h
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
498 else
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
521 . "$ac_site_file"
523 done
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
527 . $cache_file
528 else
529 echo "creating cache $cache_file"
530 > $cache_file
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
540 ac_exeext=
541 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='
546 ' ac_t=' '
547 else
548 ac_n=-n ac_c= ac_t=
550 else
551 ac_n= ac_c='\c' ac_t=
556 ac_aux_dir=
557 for ac_dir in .. $srcdir/..; do
558 if test -f $ac_dir/install-sh; then
559 ac_aux_dir=$ac_dir
560 ac_install_sh="$ac_aux_dir/install-sh -c"
561 break
562 elif test -f $ac_dir/install.sh; then
563 ac_aux_dir=$ac_dir
564 ac_install_sh="$ac_aux_dir/install.sh -c"
565 break
567 done
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
571 ac_config_guess=$ac_aux_dir/config.guess
572 ac_config_sub=$ac_aux_dir/config.sub
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
578 # The inputs are:
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
581 # The rules are:
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
583 # same time.
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595 esac
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
606 host_alias=$host
607 case "$host_alias" in
608 NONE)
609 case $nonopt in
610 NONE)
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613 fi ;;
614 *) host_alias=$nonopt ;;
615 esac ;;
616 esac
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
627 target_alias=$target
628 case "$target_alias" in
629 NONE)
630 case $nonopt in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
633 esac ;;
634 esac
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
645 build_alias=$build
646 case "$build_alias" in
647 NONE)
648 case $nonopt in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
651 esac ;;
652 esac
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
662 NONENONEs,x,x, &&
663 program_prefix=${target_alias}-
666 # Find a good install program. We prefer a C program (faster),
667 # so one script is as good as another. But avoid the broken or
668 # incompatible versions:
669 # SysV /etc/install, /usr/sbin/install
670 # SunOS /usr/etc/install
671 # IRIX /sbin/install
672 # AIX /bin/install
673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
676 # ./install, which can be erroneously created by make from ./install.sh.
677 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
678 echo "configure:679: checking for a BSD compatible install" >&5
679 if test -z "$INSTALL"; then
680 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682 else
683 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
684 for ac_dir in $PATH; do
685 # Account for people who put trailing slashes in PATH elements.
686 case "$ac_dir/" in
687 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
689 # OSF1 and SCO ODT 3.0 have their own names for install.
690 # Don't use installbsd from OSF since it installs stuff as root
691 # by default.
692 for ac_prog in ginstall scoinst install; do
693 if test -f $ac_dir/$ac_prog; then
694 if test $ac_prog = install &&
695 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
696 # AIX install. It has an incompatible calling convention.
698 else
699 ac_cv_path_install="$ac_dir/$ac_prog -c"
700 break 2
703 done
705 esac
706 done
707 IFS="$ac_save_IFS"
710 if test "${ac_cv_path_install+set}" = set; then
711 INSTALL="$ac_cv_path_install"
712 else
713 # As a last resort, use the slow shell script. We don't cache a
714 # path for INSTALL within a source directory, because that will
715 # break other packages using the cache if that directory is
716 # removed, or if the path is relative.
717 INSTALL="$ac_install_sh"
720 echo "$ac_t""$INSTALL" 1>&6
722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
723 # It thinks the first close brace ends the variable substitution.
724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
730 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
731 echo "configure:732: checking whether build environment is sane" >&5
732 # Just in case
733 sleep 1
734 echo timestamp > conftestfile
735 # Do `set' in a subshell so we don't clobber the current shell's
736 # arguments. Must try -L first in case configure is actually a
737 # symlink; some systems play weird games with the mod time of symlinks
738 # (eg FreeBSD returns the mod time of the symlink's containing
739 # directory).
740 if (
741 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
742 if test "$*" = "X"; then
743 # -L didn't work.
744 set X `ls -t $srcdir/configure conftestfile`
746 if test "$*" != "X $srcdir/configure conftestfile" \
747 && test "$*" != "X conftestfile $srcdir/configure"; then
749 # If neither matched, then we have a broken ls. This can happen
750 # if, for instance, CONFIG_SHELL is bash and it inherits a
751 # broken ls alias from the environment. This has actually
752 # happened. Such a system could not be considered "sane".
753 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
754 alias in your environment" 1>&2; exit 1; }
757 test "$2" = conftestfile
759 then
760 # Ok.
762 else
763 { echo "configure: error: newly created file is older than distributed files!
764 Check your system clock" 1>&2; exit 1; }
766 rm -f conftest*
767 echo "$ac_t""yes" 1>&6
768 if test "$program_transform_name" = s,x,x,; then
769 program_transform_name=
770 else
771 # Double any \ or $. echo might interpret backslashes.
772 cat <<\EOF_SED > conftestsed
773 s,\\,\\\\,g; s,\$,$$,g
774 EOF_SED
775 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
776 rm -f conftestsed
778 test "$program_prefix" != NONE &&
779 program_transform_name="s,^,${program_prefix},; $program_transform_name"
780 # Use a double $ so make ignores it.
781 test "$program_suffix" != NONE &&
782 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
784 # sed with no file args requires a program.
785 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
787 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
788 echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5
789 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
790 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792 else
793 cat > conftestmake <<\EOF
794 all:
795 @echo 'ac_maketemp="${MAKE}"'
797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
798 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
799 if test -n "$ac_maketemp"; then
800 eval ac_cv_prog_make_${ac_make}_set=yes
801 else
802 eval ac_cv_prog_make_${ac_make}_set=no
804 rm -f conftestmake
806 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
807 echo "$ac_t""yes" 1>&6
808 SET_MAKE=
809 else
810 echo "$ac_t""no" 1>&6
811 SET_MAKE="MAKE=${MAKE-make}"
814 if test $host != $build; then
815 ac_tool_prefix=${host_alias}-
816 else
817 ac_tool_prefix=
820 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
821 echo "configure:822: checking for Cygwin environment" >&5
822 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
824 else
825 cat > conftest.$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
829 int main() {
831 #ifndef __CYGWIN__
832 #define __CYGWIN__ __CYGWIN32__
833 #endif
834 return __CYGWIN__;
835 ; return 0; }
837 if { (eval echo configure:838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
838 rm -rf conftest*
839 ac_cv_cygwin=yes
840 else
841 echo "configure: failed program was:" >&5
842 cat conftest.$ac_ext >&5
843 rm -rf conftest*
844 ac_cv_cygwin=no
846 rm -f conftest*
847 rm -f conftest*
850 echo "$ac_t""$ac_cv_cygwin" 1>&6
851 CYGWIN=
852 test "$ac_cv_cygwin" = yes && CYGWIN=yes
853 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
854 echo "configure:855: checking for mingw32 environment" >&5
855 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
857 else
858 cat > conftest.$ac_ext <<EOF
859 #line 860 "configure"
860 #include "confdefs.h"
862 int main() {
863 return __MINGW32__;
864 ; return 0; }
866 if { (eval echo configure:867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
867 rm -rf conftest*
868 ac_cv_mingw32=yes
869 else
870 echo "configure: failed program was:" >&5
871 cat conftest.$ac_ext >&5
872 rm -rf conftest*
873 ac_cv_mingw32=no
875 rm -f conftest*
876 rm -f conftest*
879 echo "$ac_t""$ac_cv_mingw32" 1>&6
880 MINGW32=
881 test "$ac_cv_mingw32" = yes && MINGW32=yes
883 # Check whether --enable-multilib or --disable-multilib was given.
884 if test "${enable_multilib+set}" = set; then
885 enableval="$enable_multilib"
886 case "${enableval}" in
887 yes) multilib=yes ;;
888 no) multilib=no ;;
889 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
890 esac
891 else
892 multilib=yes
896 if test "${srcdir}" = "."; then
897 if test "${with_target_subdir}" != "."; then
898 boehm_gc_basedir="${srcdir}/${with_multisrctop}../."
899 else
900 boehm_gc_basedir="${srcdir}/${with_multisrctop}."
902 else
903 boehm_gc_basedir="${srcdir}/."
908 # Make sure we can run config.sub.
909 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 echo $ac_n "checking host system type""... $ac_c" 1>&6
914 echo "configure:915: checking host system type" >&5
916 host_alias=$host
917 case "$host_alias" in
918 NONE)
919 case $nonopt in
920 NONE)
921 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
923 fi ;;
924 *) host_alias=$nonopt ;;
925 esac ;;
926 esac
928 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$host" 1>&6
936 PACKAGE=boehm-gc
938 VERSION=5.1
940 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
941 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
946 missing_dir=`cd $ac_aux_dir && pwd`
947 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
948 echo "configure:949: checking for working aclocal" >&5
949 # Run test in a subshell; some versions of sh will print an error if
950 # an executable is not found, even if stderr is redirected.
951 # Redirect stdin to placate older versions of autoconf. Sigh.
952 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
953 ACLOCAL=aclocal
954 echo "$ac_t""found" 1>&6
955 else
956 ACLOCAL="$missing_dir/missing aclocal"
957 echo "$ac_t""missing" 1>&6
960 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
961 echo "configure:962: checking for working autoconf" >&5
962 # Run test in a subshell; some versions of sh will print an error if
963 # an executable is not found, even if stderr is redirected.
964 # Redirect stdin to placate older versions of autoconf. Sigh.
965 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
966 AUTOCONF=autoconf
967 echo "$ac_t""found" 1>&6
968 else
969 AUTOCONF="$missing_dir/missing autoconf"
970 echo "$ac_t""missing" 1>&6
973 echo $ac_n "checking for working automake""... $ac_c" 1>&6
974 echo "configure:975: checking for working automake" >&5
975 # Run test in a subshell; some versions of sh will print an error if
976 # an executable is not found, even if stderr is redirected.
977 # Redirect stdin to placate older versions of autoconf. Sigh.
978 if (automake --version) < /dev/null > /dev/null 2>&1; then
979 AUTOMAKE=automake
980 echo "$ac_t""found" 1>&6
981 else
982 AUTOMAKE="$missing_dir/missing automake"
983 echo "$ac_t""missing" 1>&6
986 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
987 echo "configure:988: checking for working autoheader" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf. Sigh.
991 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
992 AUTOHEADER=autoheader
993 echo "$ac_t""found" 1>&6
994 else
995 AUTOHEADER="$missing_dir/missing autoheader"
996 echo "$ac_t""missing" 1>&6
999 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working makeinfo" >&5
1001 # Run test in a subshell; some versions of sh will print an error if
1002 # an executable is not found, even if stderr is redirected.
1003 # Redirect stdin to placate older versions of autoconf. Sigh.
1004 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1005 MAKEINFO=makeinfo
1006 echo "$ac_t""found" 1>&6
1007 else
1008 MAKEINFO="$missing_dir/missing makeinfo"
1009 echo "$ac_t""missing" 1>&6
1014 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1015 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1016 # are probably using a cross compiler, which will not be able to fully
1017 # link an executable. This should really be fixed in autoconf
1018 # itself.
1023 # Extract the first word of "gcc", so it can be a program name with args.
1024 set dummy gcc; ac_word=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 if test -n "$CC"; then
1031 ac_cv_prog_CC="$CC" # Let the user override the test.
1032 else
1033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 ac_dummy="$PATH"
1035 for ac_dir in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir=.
1037 if test -f $ac_dir/$ac_word; then
1038 ac_cv_prog_CC="gcc"
1039 break
1041 done
1042 IFS="$ac_save_ifs"
1045 CC="$ac_cv_prog_CC"
1046 if test -n "$CC"; then
1047 echo "$ac_t""$CC" 1>&6
1048 else
1049 echo "$ac_t""no" 1>&6
1052 if test -z "$CC"; then
1053 # Extract the first word of "cc", so it can be a program name with args.
1054 set dummy cc; ac_word=$2
1055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1056 echo "configure:1057: checking for $ac_word" >&5
1057 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1059 else
1060 if test -n "$CC"; then
1061 ac_cv_prog_CC="$CC" # Let the user override the test.
1062 else
1063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1064 ac_prog_rejected=no
1065 ac_dummy="$PATH"
1066 for ac_dir in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir=.
1068 if test -f $ac_dir/$ac_word; then
1069 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1070 ac_prog_rejected=yes
1071 continue
1073 ac_cv_prog_CC="cc"
1074 break
1076 done
1077 IFS="$ac_save_ifs"
1078 if test $ac_prog_rejected = yes; then
1079 # We found a bogon in the path, so make sure we never use it.
1080 set dummy $ac_cv_prog_CC
1081 shift
1082 if test $# -gt 0; then
1083 # We chose a different compiler from the bogus one.
1084 # However, it has the same basename, so the bogon will be chosen
1085 # first if we set CC to just the basename; use the full file name.
1086 shift
1087 set dummy "$ac_dir/$ac_word" "$@"
1088 shift
1089 ac_cv_prog_CC="$@"
1094 CC="$ac_cv_prog_CC"
1095 if test -n "$CC"; then
1096 echo "$ac_t""$CC" 1>&6
1097 else
1098 echo "$ac_t""no" 1>&6
1101 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1104 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether we are using GNU C" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1108 else
1109 cat > conftest.c <<EOF
1110 #ifdef __GNUC__
1111 yes;
1112 #endif
1114 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1115 ac_cv_prog_gcc=yes
1116 else
1117 ac_cv_prog_gcc=no
1121 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1123 if test $ac_cv_prog_gcc = yes; then
1124 GCC=yes
1125 ac_test_CFLAGS="${CFLAGS+set}"
1126 ac_save_CFLAGS="$CFLAGS"
1127 CFLAGS=
1128 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether ${CC-cc} accepts -g" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1132 else
1133 echo 'void f(){}' > conftest.c
1134 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1135 ac_cv_prog_cc_g=yes
1136 else
1137 ac_cv_prog_cc_g=no
1139 rm -f conftest*
1143 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1144 if test "$ac_test_CFLAGS" = set; then
1145 CFLAGS="$ac_save_CFLAGS"
1146 elif test $ac_cv_prog_cc_g = yes; then
1147 CFLAGS="-g -O2"
1148 else
1149 CFLAGS="-O2"
1151 else
1152 GCC=
1153 test "${CFLAGS+set}" = set || CFLAGS="-g"
1157 # Likewise for AC_PROG_CXX.
1161 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1163 # Extract the first word of "$ac_prog", so it can be a program name with args.
1164 set dummy $ac_prog; ac_word=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170 if test -n "$CXX"; then
1171 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1172 else
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1174 ac_dummy="$PATH"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_prog_CXX="$ac_prog"
1179 break
1181 done
1182 IFS="$ac_save_ifs"
1185 CXX="$ac_cv_prog_CXX"
1186 if test -n "$CXX"; then
1187 echo "$ac_t""$CXX" 1>&6
1188 else
1189 echo "$ac_t""no" 1>&6
1192 test -n "$CXX" && break
1193 done
1194 test -n "$CXX" || CXX="gcc"
1196 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether we are using GNU C++" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203 cat > conftest.C <<EOF
1204 #ifdef __GNUC__
1205 yes;
1206 #endif
1208 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1209 ac_cv_prog_gxx=yes
1210 else
1211 ac_cv_prog_gxx=no
1215 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1217 if test $ac_cv_prog_gxx = yes; then
1218 GXX=yes
1219 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1220 ac_save_CXXFLAGS="$CXXFLAGS"
1221 CXXFLAGS=
1222 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether ${CXX-g++} accepts -g" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227 echo 'void f(){}' > conftest.cc
1228 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1229 ac_cv_prog_cxx_g=yes
1230 else
1231 ac_cv_prog_cxx_g=no
1233 rm -f conftest*
1237 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1238 if test "$ac_test_CXXFLAGS" = set; then
1239 CXXFLAGS="$ac_save_CXXFLAGS"
1240 elif test $ac_cv_prog_cxx_g = yes; then
1241 CXXFLAGS="-g -O2"
1242 else
1243 CXXFLAGS="-O2"
1245 else
1246 GXX=
1247 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1251 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1252 # run it explicitly here, it will be run implicitly before
1253 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1254 # be run before AC_CANONICAL_HOST.
1255 echo $ac_n "checking build system type""... $ac_c" 1>&6
1256 echo "configure:1257: checking build system type" >&5
1258 build_alias=$build
1259 case "$build_alias" in
1260 NONE)
1261 case $nonopt in
1262 NONE) build_alias=$host_alias ;;
1263 *) build_alias=$nonopt ;;
1264 esac ;;
1265 esac
1267 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1268 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$ac_t""$build" 1>&6
1274 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1275 set dummy ${ac_tool_prefix}as; ac_word=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281 if test -n "$AS"; then
1282 ac_cv_prog_AS="$AS" # Let the user override the test.
1283 else
1284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 ac_dummy="$PATH"
1286 for ac_dir in $ac_dummy; do
1287 test -z "$ac_dir" && ac_dir=.
1288 if test -f $ac_dir/$ac_word; then
1289 ac_cv_prog_AS="${ac_tool_prefix}as"
1290 break
1292 done
1293 IFS="$ac_save_ifs"
1294 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1297 AS="$ac_cv_prog_AS"
1298 if test -n "$AS"; then
1299 echo "$ac_t""$AS" 1>&6
1300 else
1301 echo "$ac_t""no" 1>&6
1306 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1307 set dummy ${ac_tool_prefix}ar; ac_word=$2
1308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1309 echo "configure:1310: checking for $ac_word" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313 if test -n "$AR"; then
1314 ac_cv_prog_AR="$AR" # Let the user override the test.
1315 else
1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1317 ac_dummy="$PATH"
1318 for ac_dir in $ac_dummy; do
1319 test -z "$ac_dir" && ac_dir=.
1320 if test -f $ac_dir/$ac_word; then
1321 ac_cv_prog_AR="${ac_tool_prefix}ar"
1322 break
1324 done
1325 IFS="$ac_save_ifs"
1326 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1329 AR="$ac_cv_prog_AR"
1330 if test -n "$AR"; then
1331 echo "$ac_t""$AR" 1>&6
1332 else
1333 echo "$ac_t""no" 1>&6
1338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1344 else
1345 if test -n "$RANLIB"; then
1346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1347 else
1348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1349 ac_dummy="$PATH"
1350 for ac_dir in $ac_dummy; do
1351 test -z "$ac_dir" && ac_dir=.
1352 if test -f $ac_dir/$ac_word; then
1353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1354 break
1356 done
1357 IFS="$ac_save_ifs"
1360 RANLIB="$ac_cv_prog_RANLIB"
1361 if test -n "$RANLIB"; then
1362 echo "$ac_t""$RANLIB" 1>&6
1363 else
1364 echo "$ac_t""no" 1>&6
1368 if test -z "$ac_cv_prog_RANLIB"; then
1369 if test -n "$ac_tool_prefix"; then
1370 # Extract the first word of "ranlib", so it can be a program name with args.
1371 set dummy ranlib; ac_word=$2
1372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_word" >&5
1374 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1376 else
1377 if test -n "$RANLIB"; then
1378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1379 else
1380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1381 ac_dummy="$PATH"
1382 for ac_dir in $ac_dummy; do
1383 test -z "$ac_dir" && ac_dir=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_prog_RANLIB="ranlib"
1386 break
1388 done
1389 IFS="$ac_save_ifs"
1390 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1393 RANLIB="$ac_cv_prog_RANLIB"
1394 if test -n "$RANLIB"; then
1395 echo "$ac_t""$RANLIB" 1>&6
1396 else
1397 echo "$ac_t""no" 1>&6
1400 else
1401 RANLIB=":"
1406 # Find a good install program. We prefer a C program (faster),
1407 # so one script is as good as another. But avoid the broken or
1408 # incompatible versions:
1409 # SysV /etc/install, /usr/sbin/install
1410 # SunOS /usr/etc/install
1411 # IRIX /sbin/install
1412 # AIX /bin/install
1413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1416 # ./install, which can be erroneously created by make from ./install.sh.
1417 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1418 echo "configure:1419: checking for a BSD compatible install" >&5
1419 if test -z "$INSTALL"; then
1420 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1424 for ac_dir in $PATH; do
1425 # Account for people who put trailing slashes in PATH elements.
1426 case "$ac_dir/" in
1427 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1429 # OSF1 and SCO ODT 3.0 have their own names for install.
1430 # Don't use installbsd from OSF since it installs stuff as root
1431 # by default.
1432 for ac_prog in ginstall scoinst install; do
1433 if test -f $ac_dir/$ac_prog; then
1434 if test $ac_prog = install &&
1435 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1436 # AIX install. It has an incompatible calling convention.
1438 else
1439 ac_cv_path_install="$ac_dir/$ac_prog -c"
1440 break 2
1443 done
1445 esac
1446 done
1447 IFS="$ac_save_IFS"
1450 if test "${ac_cv_path_install+set}" = set; then
1451 INSTALL="$ac_cv_path_install"
1452 else
1453 # As a last resort, use the slow shell script. We don't cache a
1454 # path for INSTALL within a source directory, because that will
1455 # break other packages using the cache if that directory is
1456 # removed, or if the path is relative.
1457 INSTALL="$ac_install_sh"
1460 echo "$ac_t""$INSTALL" 1>&6
1462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1463 # It thinks the first close brace ends the variable substitution.
1464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1471 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether to enable maintainer-specific portions of Makefiles" >&5
1473 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1474 if test "${enable_maintainer_mode+set}" = set; then
1475 enableval="$enable_maintainer_mode"
1476 USE_MAINTAINER_MODE=$enableval
1477 else
1478 USE_MAINTAINER_MODE=no
1481 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1484 if test $USE_MAINTAINER_MODE = yes; then
1485 MAINTAINER_MODE_TRUE=
1486 MAINTAINER_MODE_FALSE='#'
1487 else
1488 MAINTAINER_MODE_TRUE='#'
1489 MAINTAINER_MODE_FALSE=
1491 MAINT=$MAINTAINER_MODE_TRUE
1495 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1496 # at least currently, we never actually build a program, so we never
1497 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1498 # fails, because we are probably configuring with a cross compiler
1499 # which can't create executables. So we include AC_EXEEXT to keep
1500 # automake happy, but we don't execute it, since we don't care about
1501 # the result.
1502 if false; then
1505 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1506 echo "configure:1507: checking for executable suffix" >&5
1507 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1511 ac_cv_exeext=.exe
1512 else
1513 rm -f conftest*
1514 echo 'int main () { return 0; }' > conftest.$ac_ext
1515 ac_cv_exeext=
1516 if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1517 for file in conftest.*; do
1518 case $file in
1519 *.c | *.o | *.obj) ;;
1520 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1521 esac
1522 done
1523 else
1524 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1526 rm -f conftest*
1527 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1531 EXEEXT=""
1532 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1533 echo "$ac_t""${ac_cv_exeext}" 1>&6
1534 ac_exeext=$EXEEXT
1538 . ${boehm_gc_basedir}/configure.host
1540 case ${boehm_gc_basedir} in
1541 /* | A-Za-z:/\\*) boehm_gc_flagbasedir=${boehm_gc_basedir} ;;
1542 *) boehm_gc_flagbasedir='$(top_builddir)/'${boehm_gc_basedir} ;;
1543 esac
1545 boehm_gc_cflags="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1546 case "${host}" in
1547 *-*-cygwin32*)
1548 boehm_gc_cflags="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1550 esac
1552 boehm_gc_cflags="${boehm_gc_cflags} -fno-builtin"
1554 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
1558 # Check whether --enable-shared or --disable-shared was given.
1559 if test "${enable_shared+set}" = set; then
1560 enableval="$enable_shared"
1561 p=${PACKAGE-default}
1562 case "$enableval" in
1563 yes) enable_shared=yes ;;
1564 no) enable_shared=no ;;
1566 enable_shared=no
1567 # Look at the argument we got. We use all the common list separators.
1568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1569 for pkg in $enableval; do
1570 if test "X$pkg" = "X$p"; then
1571 enable_shared=yes
1573 done
1574 IFS="$ac_save_ifs"
1576 esac
1577 else
1578 enable_shared=yes
1581 # Check whether --enable-static or --disable-static was given.
1582 if test "${enable_static+set}" = set; then
1583 enableval="$enable_static"
1584 p=${PACKAGE-default}
1585 case "$enableval" in
1586 yes) enable_static=yes ;;
1587 no) enable_static=no ;;
1589 enable_static=no
1590 # Look at the argument we got. We use all the common list separators.
1591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1592 for pkg in $enableval; do
1593 if test "X$pkg" = "X$p"; then
1594 enable_static=yes
1596 done
1597 IFS="$ac_save_ifs"
1599 esac
1600 else
1601 enable_static=yes
1604 # Check whether --enable-fast-install or --disable-fast-install was given.
1605 if test "${enable_fast_install+set}" = set; then
1606 enableval="$enable_fast_install"
1607 p=${PACKAGE-default}
1608 case "$enableval" in
1609 yes) enable_fast_install=yes ;;
1610 no) enable_fast_install=no ;;
1612 enable_fast_install=no
1613 # Look at the argument we got. We use all the common list separators.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1615 for pkg in $enableval; do
1616 if test "X$pkg" = "X$p"; then
1617 enable_fast_install=yes
1619 done
1620 IFS="$ac_save_ifs"
1622 esac
1623 else
1624 enable_fast_install=yes
1627 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1628 if test "${with_gnu_ld+set}" = set; then
1629 withval="$with_gnu_ld"
1630 test "$withval" = no || with_gnu_ld=yes
1631 else
1632 with_gnu_ld=no
1635 ac_prog=ld
1636 if test "$ac_cv_prog_gcc" = yes; then
1637 # Check if gcc -print-prog-name=ld gives a path.
1638 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1639 echo "configure:1640: checking for ld used by GCC" >&5
1640 case $host in
1641 *-*-mingw*)
1642 # gcc leaves a trailing carriage return which upsets mingw
1643 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1645 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1646 esac
1647 case "$ac_prog" in
1648 # Accept absolute paths.
1649 [\\/]* | [A-Za-z]:[\\/]*)
1650 re_direlt='/[^/][^/]*/\.\./'
1651 # Canonicalize the path of ld
1652 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1653 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1654 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1655 done
1656 test -z "$LD" && LD="$ac_prog"
1659 # If it fails, then pretend we aren't using GCC.
1660 ac_prog=ld
1663 # If it is relative, then search for the first ld in PATH.
1664 with_gnu_ld=unknown
1666 esac
1667 elif test "$with_gnu_ld" = yes; then
1668 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1669 echo "configure:1670: checking for GNU ld" >&5
1670 else
1671 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1672 echo "configure:1673: checking for non-GNU ld" >&5
1674 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677 if test -z "$LD"; then
1678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1679 for ac_dir in $PATH; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1682 ac_cv_path_LD="$ac_dir/$ac_prog"
1683 # Check to see if the program is GNU ld. I'd rather use --version,
1684 # but apparently some GNU ld's only accept -v.
1685 # Break only if it was the GNU/non-GNU ld that we prefer.
1686 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1687 test "$with_gnu_ld" != no && break
1688 else
1689 test "$with_gnu_ld" != yes && break
1692 done
1693 IFS="$ac_save_ifs"
1694 else
1695 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1699 LD="$ac_cv_path_LD"
1700 if test -n "$LD"; then
1701 echo "$ac_t""$LD" 1>&6
1702 else
1703 echo "$ac_t""no" 1>&6
1705 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1706 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1707 echo "configure:1708: checking if the linker ($LD) is GNU ld" >&5
1708 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1712 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1713 ac_cv_prog_gnu_ld=yes
1714 else
1715 ac_cv_prog_gnu_ld=no
1719 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1720 with_gnu_ld=$ac_cv_prog_gnu_ld
1723 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $LD option to reload object files" >&5
1725 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1727 else
1728 lt_cv_ld_reload_flag='-r'
1731 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1732 reload_flag=$lt_cv_ld_reload_flag
1733 test -n "$reload_flag" && reload_flag=" $reload_flag"
1735 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1736 echo "configure:1737: checking for BSD-compatible nm" >&5
1737 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 if test -n "$NM"; then
1741 # Let the user override the test.
1742 ac_cv_path_NM="$NM"
1743 else
1744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1745 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1746 test -z "$ac_dir" && ac_dir=.
1747 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1748 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1749 # Check to see if the nm accepts a BSD-compat flag.
1750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1751 # nm: unknown option "B" ignored
1752 # Tru64's nm complains that /dev/null is an invalid object file
1753 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1754 ac_cv_path_NM="$tmp_nm -B"
1755 break
1756 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1757 ac_cv_path_NM="$tmp_nm -p"
1758 break
1759 else
1760 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1761 continue # so that we can try to find one that supports BSD flags
1764 done
1765 IFS="$ac_save_ifs"
1766 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1770 NM="$ac_cv_path_NM"
1771 echo "$ac_t""$NM" 1>&6
1773 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether ln -s works" >&5
1775 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777 else
1778 rm -f conftestdata
1779 if ln -s X conftestdata 2>/dev/null
1780 then
1781 rm -f conftestdata
1782 ac_cv_prog_LN_S="ln -s"
1783 else
1784 ac_cv_prog_LN_S=ln
1787 LN_S="$ac_cv_prog_LN_S"
1788 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1789 echo "$ac_t""yes" 1>&6
1790 else
1791 echo "$ac_t""no" 1>&6
1794 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1795 echo "configure:1796: checking how to recognise dependant libraries" >&5
1796 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1798 else
1799 lt_cv_file_magic_cmd='$MAGIC_CMD'
1800 lt_cv_file_magic_test_file=
1801 lt_cv_deplibs_check_method='unknown'
1802 # Need to set the preceding variable on all platforms that support
1803 # interlibrary dependencies.
1804 # 'none' -- dependencies not supported.
1805 # `unknown' -- same as none, but documents that we really don't know.
1806 # 'pass_all' -- all dependencies passed with no checks.
1807 # 'test_compile' -- check by making test program.
1808 # 'file_magic [regex]' -- check by looking for files in library path
1809 # which responds to the $file_magic_cmd with a given egrep regex.
1810 # If you have `file' or equivalent on your system and you're not sure
1811 # whether `pass_all' will *always* work, you probably want this one.
1813 case "$host_os" in
1814 aix4*)
1815 lt_cv_deplibs_check_method=pass_all
1818 beos*)
1819 lt_cv_deplibs_check_method=pass_all
1822 bsdi4*)
1823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1824 lt_cv_file_magic_cmd='/usr/bin/file -L'
1825 lt_cv_file_magic_test_file=/shlib/libc.so
1828 cygwin* | mingw* |pw32*)
1829 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1830 lt_cv_file_magic_cmd='$OBJDUMP -f'
1833 freebsd* )
1834 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1835 case "$host_cpu" in
1836 i*86 )
1837 # Not sure whether the presence of OpenBSD here was a mistake.
1838 # Let's accept both of them until this is cleared up.
1839 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1840 lt_cv_file_magic_cmd=/usr/bin/file
1841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1843 esac
1844 else
1845 lt_cv_deplibs_check_method=pass_all
1849 gnu*)
1850 lt_cv_deplibs_check_method=pass_all
1853 hpux10.20*)
1854 # TODO: Does this work for hpux-11 too?
1855 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1856 lt_cv_file_magic_cmd=/usr/bin/file
1857 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1860 irix5* | irix6*)
1861 case "$host_os" in
1862 irix5*)
1863 # this will be overridden with pass_all, but let us keep it just in case
1864 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1867 case "$LD" in
1868 *-32|*"-32 ") libmagic=32-bit;;
1869 *-n32|*"-n32 ") libmagic=N32;;
1870 *-64|*"-64 ") libmagic=64-bit;;
1871 *) libmagic=never-match;;
1872 esac
1873 # this will be overridden with pass_all, but let us keep it just in case
1874 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1876 esac
1877 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1878 lt_cv_deplibs_check_method=pass_all
1881 # This must be Linux ELF.
1882 linux-gnu*)
1883 case "$host_cpu" in
1884 alpha* | i*86 | powerpc* | sparc* | ia64* )
1885 lt_cv_deplibs_check_method=pass_all ;;
1887 # glibc up to 2.1.1 does not perform some relocations on ARM
1888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1889 esac
1890 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1893 netbsd*)
1894 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1895 else
1896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1897 lt_cv_file_magic_cmd='/usr/bin/file -L'
1898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1902 osf3* | osf4* | osf5*)
1903 # this will be overridden with pass_all, but let us keep it just in case
1904 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1905 lt_cv_file_magic_test_file=/shlib/libc.so
1906 lt_cv_deplibs_check_method=pass_all
1909 sco3.2v5*)
1910 lt_cv_deplibs_check_method=pass_all
1913 solaris*)
1914 lt_cv_deplibs_check_method=pass_all
1915 lt_cv_file_magic_test_file=/lib/libc.so
1918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1919 case "$host_vendor" in
1920 ncr)
1921 lt_cv_deplibs_check_method=pass_all
1923 motorola)
1924 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]'
1925 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1927 esac
1929 esac
1933 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1934 file_magic_cmd=$lt_cv_file_magic_cmd
1935 deplibs_check_method=$lt_cv_deplibs_check_method
1937 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1938 echo "configure:1939: checking for object suffix" >&5
1939 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942 rm -f conftest*
1943 echo 'int i = 1;' > conftest.$ac_ext
1944 if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1945 for ac_file in conftest.*; do
1946 case $ac_file in
1947 *.c) ;;
1948 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1949 esac
1950 done
1951 else
1952 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1954 rm -f conftest*
1957 echo "$ac_t""$ac_cv_objext" 1>&6
1958 OBJEXT=$ac_cv_objext
1959 ac_objext=$ac_cv_objext
1961 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1963 # Only perform the check for file, if the check method requires it
1964 case "$deplibs_check_method" in
1965 file_magic*)
1966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1967 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1968 echo "configure:1969: checking for ${ac_tool_prefix}file" >&5
1969 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1971 else
1972 case "$MAGIC_CMD" in
1974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1976 ?:/*)
1977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1980 ac_save_MAGIC_CMD="$MAGIC_CMD"
1981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1982 ac_dummy="/usr/bin:$PATH"
1983 for ac_dir in $ac_dummy; do
1984 test -z "$ac_dir" && ac_dir=.
1985 if test -f $ac_dir/${ac_tool_prefix}file; then
1986 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1987 if test -n "$file_magic_test_file"; then
1988 case "$deplibs_check_method" in
1989 "file_magic "*)
1990 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1993 egrep "$file_magic_regex" > /dev/null; then
1995 else
1996 cat <<EOF 1>&2
1998 *** Warning: the command libtool uses to detect shared libraries,
1999 *** $file_magic_cmd, produces output that libtool cannot recognize.
2000 *** The result is that libtool may fail to recognize shared libraries
2001 *** as such. This will affect the creation of libtool libraries that
2002 *** depend on shared libraries, but programs linked with such libtool
2003 *** libraries will work regardless of this problem. Nevertheless, you
2004 *** may want to report the problem to your system manager and/or to
2005 *** bug-libtool@gnu.org
2008 fi ;;
2009 esac
2011 break
2013 done
2014 IFS="$ac_save_ifs"
2015 MAGIC_CMD="$ac_save_MAGIC_CMD"
2017 esac
2020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2021 if test -n "$MAGIC_CMD"; then
2022 echo "$ac_t""$MAGIC_CMD" 1>&6
2023 else
2024 echo "$ac_t""no" 1>&6
2027 if test -z "$lt_cv_path_MAGIC_CMD"; then
2028 if test -n "$ac_tool_prefix"; then
2029 echo $ac_n "checking for file""... $ac_c" 1>&6
2030 echo "configure:2031: checking for file" >&5
2031 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 case "$MAGIC_CMD" in
2036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2038 ?:/*)
2039 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2042 ac_save_MAGIC_CMD="$MAGIC_CMD"
2043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2044 ac_dummy="/usr/bin:$PATH"
2045 for ac_dir in $ac_dummy; do
2046 test -z "$ac_dir" && ac_dir=.
2047 if test -f $ac_dir/file; then
2048 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2049 if test -n "$file_magic_test_file"; then
2050 case "$deplibs_check_method" in
2051 "file_magic "*)
2052 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2055 egrep "$file_magic_regex" > /dev/null; then
2057 else
2058 cat <<EOF 1>&2
2060 *** Warning: the command libtool uses to detect shared libraries,
2061 *** $file_magic_cmd, produces output that libtool cannot recognize.
2062 *** The result is that libtool may fail to recognize shared libraries
2063 *** as such. This will affect the creation of libtool libraries that
2064 *** depend on shared libraries, but programs linked with such libtool
2065 *** libraries will work regardless of this problem. Nevertheless, you
2066 *** may want to report the problem to your system manager and/or to
2067 *** bug-libtool@gnu.org
2070 fi ;;
2071 esac
2073 break
2075 done
2076 IFS="$ac_save_ifs"
2077 MAGIC_CMD="$ac_save_MAGIC_CMD"
2079 esac
2082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2083 if test -n "$MAGIC_CMD"; then
2084 echo "$ac_t""$MAGIC_CMD" 1>&6
2085 else
2086 echo "$ac_t""no" 1>&6
2089 else
2090 MAGIC_CMD=:
2096 esac
2098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_word" >&5
2102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105 if test -n "$RANLIB"; then
2106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2107 else
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2109 ac_dummy="$PATH"
2110 for ac_dir in $ac_dummy; do
2111 test -z "$ac_dir" && ac_dir=.
2112 if test -f $ac_dir/$ac_word; then
2113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2114 break
2116 done
2117 IFS="$ac_save_ifs"
2120 RANLIB="$ac_cv_prog_RANLIB"
2121 if test -n "$RANLIB"; then
2122 echo "$ac_t""$RANLIB" 1>&6
2123 else
2124 echo "$ac_t""no" 1>&6
2128 if test -z "$ac_cv_prog_RANLIB"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "ranlib", so it can be a program name with args.
2131 set dummy 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="ranlib"
2146 break
2148 done
2149 IFS="$ac_save_ifs"
2150 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2153 RANLIB="$ac_cv_prog_RANLIB"
2154 if test -n "$RANLIB"; then
2155 echo "$ac_t""$RANLIB" 1>&6
2156 else
2157 echo "$ac_t""no" 1>&6
2160 else
2161 RANLIB=":"
2165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}strip; ac_word=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 if test -n "$STRIP"; then
2173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2174 else
2175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2176 ac_dummy="$PATH"
2177 for ac_dir in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir=.
2179 if test -f $ac_dir/$ac_word; then
2180 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2181 break
2183 done
2184 IFS="$ac_save_ifs"
2187 STRIP="$ac_cv_prog_STRIP"
2188 if test -n "$STRIP"; then
2189 echo "$ac_t""$STRIP" 1>&6
2190 else
2191 echo "$ac_t""no" 1>&6
2195 if test -z "$ac_cv_prog_STRIP"; then
2196 if test -n "$ac_tool_prefix"; then
2197 # Extract the first word of "strip", so it can be a program name with args.
2198 set dummy 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="strip"
2213 break
2215 done
2216 IFS="$ac_save_ifs"
2217 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2220 STRIP="$ac_cv_prog_STRIP"
2221 if test -n "$STRIP"; then
2222 echo "$ac_t""$STRIP" 1>&6
2223 else
2224 echo "$ac_t""no" 1>&6
2227 else
2228 STRIP=":"
2233 # Check for any special flags to pass to ltconfig.
2234 libtool_flags="--cache-file=$cache_file"
2235 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2236 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2237 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2238 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2239 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2242 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2243 if test "${enable_libtool_lock+set}" = set; then
2244 enableval="$enable_libtool_lock"
2248 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2249 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2251 # Check whether --with-pic or --without-pic was given.
2252 if test "${with_pic+set}" = set; then
2253 withval="$with_pic"
2254 pic_mode="$withval"
2255 else
2256 pic_mode=default
2259 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2260 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2262 # Some flags need to be propagated to the compiler or linker for good
2263 # libtool support.
2264 case "$host" in
2265 *-*-irix6*)
2266 # Find out which ABI we are using.
2267 echo '#line 2268 "configure"' > conftest.$ac_ext
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2269 case "`/usr/bin/file conftest.o`" in
2270 *32-bit*)
2271 LD="${LD-ld} -32"
2273 *N32*)
2274 LD="${LD-ld} -n32"
2276 *64-bit*)
2277 LD="${LD-ld} -64"
2279 esac
2281 rm -rf conftest*
2284 *-*-sco3.2v5*)
2285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2286 SAVE_CFLAGS="$CFLAGS"
2287 CFLAGS="$CFLAGS -belf"
2288 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2289 echo "configure:2290: checking whether the C compiler needs -belf" >&5
2290 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2294 ac_ext=c
2295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2299 cross_compiling=$ac_cv_prog_cc_cross
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2305 int main() {
2307 ; return 0; }
2309 if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2310 rm -rf conftest*
2311 lt_cv_cc_needs_belf=yes
2312 else
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2315 rm -rf conftest*
2316 lt_cv_cc_needs_belf=no
2318 rm -f conftest*
2319 ac_ext=c
2320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2324 cross_compiling=$ac_cv_prog_cc_cross
2328 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2329 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2331 CFLAGS="$SAVE_CFLAGS"
2336 esac
2338 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2339 echo "configure:2340: checking how to run the C++ preprocessor" >&5
2340 if test -z "$CXXCPP"; then
2341 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2344 ac_ext=C
2345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2346 ac_cpp='$CXXCPP $CPPFLAGS'
2347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2349 cross_compiling=$ac_cv_prog_cxx_cross
2350 CXXCPP="${CXX-g++} -E"
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2354 #include <stdlib.h>
2356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357 { (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359 if test -z "$ac_err"; then
2361 else
2362 echo "$ac_err" >&5
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2365 rm -rf conftest*
2366 CXXCPP=/lib/cpp
2368 rm -f conftest*
2369 ac_cv_prog_CXXCPP="$CXXCPP"
2370 ac_ext=c
2371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2375 cross_compiling=$ac_cv_prog_cc_cross
2378 CXXCPP="$ac_cv_prog_CXXCPP"
2379 echo "$ac_t""$CXXCPP" 1>&6
2382 # Save cache, so that ltconfig can load it
2383 cat > confcache <<\EOF
2384 # This file is a shell script that caches the results of configure
2385 # tests run on this system so they can be shared between configure
2386 # scripts and configure runs. It is not useful on other systems.
2387 # If it contains results you don't want to keep, you may remove or edit it.
2389 # By default, configure uses ./config.cache as the cache file,
2390 # creating it if it does not exist already. You can give configure
2391 # the --cache-file=FILE option to use a different cache file; that is
2392 # what configure does when it calls configure scripts in
2393 # subdirectories, so they share the cache.
2394 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2395 # config.status only pays attention to the cache file if you give it the
2396 # --recheck option to rerun configure.
2399 # The following way of writing the cache mishandles newlines in values,
2400 # but we know of no workaround that is simple, portable, and efficient.
2401 # So, don't put newlines in cache variables' values.
2402 # Ultrix sh set writes to stderr and can't be redirected directly,
2403 # and sets the high bit in the cache file unless we assign to the vars.
2404 (set) 2>&1 |
2405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2406 *ac_space=\ *)
2407 # `set' does not quote correctly, so add quotes (double-quote substitution
2408 # turns \\\\ into \\, and sed turns \\ into \).
2409 sed -n \
2410 -e "s/'/'\\\\''/g" \
2411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2414 # `set' quotes correctly as required by POSIX, so do not add quotes.
2415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2417 esac >> confcache
2418 if cmp -s $cache_file confcache; then
2420 else
2421 if test -w $cache_file; then
2422 echo "updating cache $cache_file"
2423 cat confcache > $cache_file
2424 else
2425 echo "not updating unwritable cache $cache_file"
2428 rm -f confcache
2431 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2432 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2433 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2434 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2435 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2436 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2437 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2438 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2439 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2440 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2442 # Reload cache, that may have been modified by ltconfig
2443 if test -r "$cache_file"; then
2444 echo "loading cache $cache_file"
2445 . $cache_file
2446 else
2447 echo "creating cache $cache_file"
2448 > $cache_file
2452 # This can be used to rebuild libtool when needed
2453 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2455 # Always use our own libtool.
2456 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2458 # Redirect the config.log output again, so that the ltconfig log is not
2459 # clobbered by the next message.
2460 exec 5>>./config.log
2465 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2466 lt_save_CC="$CC"
2467 lt_save_CFLAGS="$CFLAGS"
2468 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2469 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2470 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2471 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2472 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2473 deplibs_check_method="$deplibs_check_method" \
2474 file_magic_cmd="$file_magic_cmd" \
2475 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2476 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2477 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2478 CC="$lt_save_CC"
2479 CFLAGS="$lt_save_CFLAGS"
2481 # Redirect the config.log output again, so that the ltconfig log is not
2482 # clobbered by the next message.
2483 exec 5>>./config.log
2492 # Check whether --with-target-subdir or --without-target-subdir was given.
2493 if test "${with_target_subdir+set}" = set; then
2494 withval="$with_target_subdir"
2498 # Check whether --with-cross-host or --without-cross-host was given.
2499 if test "${with_cross_host+set}" = set; then
2500 withval="$with_cross_host"
2505 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2506 echo "configure:2507: checking whether to enable maintainer-specific portions of Makefiles" >&5
2507 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2508 if test "${enable_maintainer_mode+set}" = set; then
2509 enableval="$enable_maintainer_mode"
2510 USE_MAINTAINER_MODE=$enableval
2511 else
2512 USE_MAINTAINER_MODE=no
2515 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2518 if test $USE_MAINTAINER_MODE = yes; then
2519 MAINTAINER_MODE_TRUE=
2520 MAINTAINER_MODE_FALSE='#'
2521 else
2522 MAINTAINER_MODE_TRUE='#'
2523 MAINTAINER_MODE_FALSE=
2525 MAINT=$MAINTAINER_MODE_TRUE
2528 # automake wants to see AC_EXEEXT. But we don't need it. And having
2529 # it is actually a problem, because the compiler we're passed can't
2530 # necessarily do a full link. So we fool automake here.
2531 if test "x" = "y"; then
2534 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2535 echo "configure:2536: checking for executable suffix" >&5
2536 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2538 else
2539 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2540 ac_cv_exeext=.exe
2541 else
2542 rm -f conftest*
2543 echo 'int main () { return 0; }' > conftest.$ac_ext
2544 ac_cv_exeext=
2545 if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2546 for file in conftest.*; do
2547 case $file in
2548 *.c | *.o | *.obj) ;;
2549 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2550 esac
2551 done
2552 else
2553 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2555 rm -f conftest*
2556 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2560 EXEEXT=""
2561 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2562 echo "$ac_t""${ac_cv_exeext}" 1>&6
2563 ac_exeext=$EXEEXT
2567 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2568 echo "configure:2569: checking for threads package to use" >&5
2569 # Check whether --enable-threads or --disable-threads was given.
2570 if test "${enable_threads+set}" = set; then
2571 enableval="$enable_threads"
2572 THREADS=$enableval
2573 else
2574 THREADS=no
2578 if test "$THREADS" = yes; then
2579 case "$host" in
2580 *-*-vxworks*)
2581 THREADS=vxworks
2583 *-*-linux*)
2584 # FIXME: this isn't correct in all cases.
2585 THREADS=posix
2587 *-*-win*)
2588 THREADS=win32
2590 *-*-irix[1-5].*)
2591 # No built-in threads library on IRIX 5.* and older.
2592 THREADS=none
2594 *-*-irix*)
2595 # FIXME: for now, choose POSIX, because we implement that.
2596 # Later, choose irix threads.
2597 THREADS=posix
2599 *-*-solaris*)
2600 # FIXME: for now, choose POSIX, because we implement that.
2601 # Later, choose solaris threads.
2602 THREADS=posix
2605 # For now.
2606 THREADS=none
2608 esac
2611 INCLUDES=
2612 THREADLIB=
2613 case "$THREADS" in
2614 no | none | single)
2615 THREADS=none
2617 posix | pthreads)
2618 THREADS=posix
2619 case "$host" in
2620 *-*-linux*)
2621 cat >> confdefs.h <<\EOF
2622 #define LINUX_THREADS 1
2625 cat >> confdefs.h <<\EOF
2626 #define _REENTRANT 1
2630 *-*-solaris*)
2631 cat >> confdefs.h <<\EOF
2632 #define SOLARIS_THREADS 1
2635 cat >> confdefs.h <<\EOF
2636 #define _SOLARIS_PTHREADS 1
2640 *-*-irix*)
2641 cat >> confdefs.h <<\EOF
2642 #define IRIX_THREADS 1
2646 esac
2647 THREADLIB=-lpthread
2649 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2650 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2653 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2655 esac
2656 echo "$ac_t""$THREADS" 1>&6
2659 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2660 echo "configure:2661: checking for dlopen in -ldl" >&5
2661 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665 ac_save_LIBS="$LIBS"
2666 LIBS="-ldl $LIBS"
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 /* Override any gcc2 internal prototype to avoid an error. */
2671 /* We use char because int might match the return type of a gcc2
2672 builtin and then its argument prototype would still apply. */
2673 char dlopen();
2675 int main() {
2676 dlopen()
2677 ; return 0; }
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2680 rm -rf conftest*
2681 eval "ac_cv_lib_$ac_lib_var=yes"
2682 else
2683 echo "configure: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2685 rm -rf conftest*
2686 eval "ac_cv_lib_$ac_lib_var=no"
2688 rm -f conftest*
2689 LIBS="$ac_save_LIBS"
2692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2695 else
2696 echo "$ac_t""no" 1>&6
2701 # Check whether --enable-java-gc or --disable-java-gc was given.
2702 if test "${enable_java_gc+set}" = set; then
2703 enableval="$enable_java_gc"
2705 GC=$enableval
2706 else
2707 GC=boehm
2710 target_all=
2711 if test "$GC" = "boehm"; then
2712 target_all=libgcjgc.la
2716 TARGET_ECOS="no"
2717 # Check whether --with-ecos or --without-ecos was given.
2718 if test "${with_ecos+set}" = set; then
2719 withval="$with_ecos"
2720 TARGET_ECOS="$with_ecos"
2725 addobjs=
2726 CXXINCLUDES=
2727 case "$TARGET_ECOS" in
2731 cat >> confdefs.h <<\EOF
2732 #define ECOS 1
2735 CXXINCLUDES="-I${TARGET_ECOS}/include"
2736 addobjs="$addobjs ecos.lo"
2738 esac
2744 machdep=
2745 case "$host" in
2746 # alpha_mach_dep.s assumes that pointers are not saved in fp registers.
2747 # Gcc on a 21264 can spill pointers to fp registers. Oops.
2748 # alpha*-*-*)
2749 # machdep="alpha_mach_dep.lo"
2750 # ;;
2751 mipstx39-*-elf*)
2752 machdep="mips_ultrix_mach_dep.lo"
2753 cat >> confdefs.h <<\EOF
2754 #define STACKBASE __stackbase
2757 cat >> confdefs.h <<\EOF
2758 #define DATASTART_IS_ETEXT 1
2762 mips-dec-ultrix*)
2763 machdep="mips_ultrix_mach-dep.lo"
2765 mips-*-*)
2766 machdep="mips_sgi_mach_dep.lo"
2767 cat >> confdefs.h <<\EOF
2768 #define NO_EXECUTE_PERMISSION 1
2772 sparc-sun-solaris2.3*)
2773 cat >> confdefs.h <<\EOF
2774 #define SUNOS53_SHARED_LIB 1
2778 esac
2779 if test x"$machdep" = x; then
2780 machdep="mach_dep.lo"
2782 addobjs="$addobjs $machdep"
2785 case "$host" in
2786 sparc-sun-solaris2*)
2787 if test "$GCC" = yes; then
2788 new_CFLAGS=
2789 for i in $CFLAGS; do
2790 case "$i" in
2791 -O*)
2794 new_CFLAGS="$new_CFLAGS $i"
2796 esac
2797 done
2798 CFLAGS="$new_CFLAGS"
2801 esac
2803 MY_CFLAGS="$CFLAGS"
2806 cat >> confdefs.h <<\EOF
2807 #define SILENT 1
2810 cat >> confdefs.h <<\EOF
2811 #define NO_SIGNALS 1
2814 cat >> confdefs.h <<\EOF
2815 #define JAVA_FINALIZATION 1
2818 cat >> confdefs.h <<\EOF
2819 #define GC_GCJ_SUPPORT 1
2823 if test -n "${with_cross_host}"; then
2824 cat >> confdefs.h <<\EOF
2825 #define NO_SIGSET 1
2828 cat >> confdefs.h <<\EOF
2829 #define NO_CLOCK 1
2832 cat >> confdefs.h <<\EOF
2833 #define SMALL_CONFIG 1
2836 cat >> confdefs.h <<\EOF
2837 #define NO_DEBUGGING 1
2844 if test -z "$with_cross_host"; then
2845 USE_LIBDIR_TRUE=
2846 USE_LIBDIR_FALSE='#'
2847 else
2848 USE_LIBDIR_TRUE='#'
2849 USE_LIBDIR_FALSE=
2852 if test "${multilib}" = "yes"; then
2853 multilib_arg="--enable-multilib"
2854 else
2855 multilib_arg=
2858 trap '' 1 2 15
2859 cat > confcache <<\EOF
2860 # This file is a shell script that caches the results of configure
2861 # tests run on this system so they can be shared between configure
2862 # scripts and configure runs. It is not useful on other systems.
2863 # If it contains results you don't want to keep, you may remove or edit it.
2865 # By default, configure uses ./config.cache as the cache file,
2866 # creating it if it does not exist already. You can give configure
2867 # the --cache-file=FILE option to use a different cache file; that is
2868 # what configure does when it calls configure scripts in
2869 # subdirectories, so they share the cache.
2870 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2871 # config.status only pays attention to the cache file if you give it the
2872 # --recheck option to rerun configure.
2875 # The following way of writing the cache mishandles newlines in values,
2876 # but we know of no workaround that is simple, portable, and efficient.
2877 # So, don't put newlines in cache variables' values.
2878 # Ultrix sh set writes to stderr and can't be redirected directly,
2879 # and sets the high bit in the cache file unless we assign to the vars.
2880 (set) 2>&1 |
2881 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2882 *ac_space=\ *)
2883 # `set' does not quote correctly, so add quotes (double-quote substitution
2884 # turns \\\\ into \\, and sed turns \\ into \).
2885 sed -n \
2886 -e "s/'/'\\\\''/g" \
2887 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2890 # `set' quotes correctly as required by POSIX, so do not add quotes.
2891 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2893 esac >> confcache
2894 if cmp -s $cache_file confcache; then
2896 else
2897 if test -w $cache_file; then
2898 echo "updating cache $cache_file"
2899 cat confcache > $cache_file
2900 else
2901 echo "not updating unwritable cache $cache_file"
2904 rm -f confcache
2906 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2909 # Let make expand exec_prefix.
2910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2912 # Any assignment to VPATH causes Sun make to only execute
2913 # the first set of double-colon rules, so remove it if not needed.
2914 # If there is a colon in the path, we need to keep it.
2915 if test "x$srcdir" = x.; then
2916 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2919 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2921 # Transform confdefs.h into DEFS.
2922 # Protect against shell expansion while executing Makefile rules.
2923 # Protect against Makefile macro expansion.
2924 cat > conftest.defs <<\EOF
2925 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2926 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2927 s%\[%\\&%g
2928 s%\]%\\&%g
2929 s%\$%$$%g
2931 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2932 rm -f conftest.defs
2935 # Without the "./", some shells look in PATH for config.status.
2936 : ${CONFIG_STATUS=./config.status}
2938 echo creating $CONFIG_STATUS
2939 rm -f $CONFIG_STATUS
2940 cat > $CONFIG_STATUS <<EOF
2941 #! /bin/sh
2942 # Generated automatically by configure.
2943 # Run this file to recreate the current configuration.
2944 # This directory was configured as follows,
2945 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2947 # $0 $ac_configure_args
2949 # Compiler output produced by configure, useful for debugging
2950 # configure, is in ./config.log if it exists.
2952 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2953 for ac_option
2955 case "\$ac_option" in
2956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2957 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2958 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2959 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2960 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2961 exit 0 ;;
2962 -help | --help | --hel | --he | --h)
2963 echo "\$ac_cs_usage"; exit 0 ;;
2964 *) echo "\$ac_cs_usage"; exit 1 ;;
2965 esac
2966 done
2968 ac_given_srcdir=$srcdir
2969 ac_given_INSTALL="$INSTALL"
2971 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2973 cat >> $CONFIG_STATUS <<EOF
2975 # Protect against being on the right side of a sed subst in config.status.
2976 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2977 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2978 $ac_vpsub
2979 $extrasub
2980 s%@SHELL@%$SHELL%g
2981 s%@CFLAGS@%$CFLAGS%g
2982 s%@CPPFLAGS@%$CPPFLAGS%g
2983 s%@CXXFLAGS@%$CXXFLAGS%g
2984 s%@FFLAGS@%$FFLAGS%g
2985 s%@DEFS@%$DEFS%g
2986 s%@LDFLAGS@%$LDFLAGS%g
2987 s%@LIBS@%$LIBS%g
2988 s%@exec_prefix@%$exec_prefix%g
2989 s%@prefix@%$prefix%g
2990 s%@program_transform_name@%$program_transform_name%g
2991 s%@bindir@%$bindir%g
2992 s%@sbindir@%$sbindir%g
2993 s%@libexecdir@%$libexecdir%g
2994 s%@datadir@%$datadir%g
2995 s%@sysconfdir@%$sysconfdir%g
2996 s%@sharedstatedir@%$sharedstatedir%g
2997 s%@localstatedir@%$localstatedir%g
2998 s%@libdir@%$libdir%g
2999 s%@includedir@%$includedir%g
3000 s%@oldincludedir@%$oldincludedir%g
3001 s%@infodir@%$infodir%g
3002 s%@mandir@%$mandir%g
3003 s%@host@%$host%g
3004 s%@host_alias@%$host_alias%g
3005 s%@host_cpu@%$host_cpu%g
3006 s%@host_vendor@%$host_vendor%g
3007 s%@host_os@%$host_os%g
3008 s%@target@%$target%g
3009 s%@target_alias@%$target_alias%g
3010 s%@target_cpu@%$target_cpu%g
3011 s%@target_vendor@%$target_vendor%g
3012 s%@target_os@%$target_os%g
3013 s%@build@%$build%g
3014 s%@build_alias@%$build_alias%g
3015 s%@build_cpu@%$build_cpu%g
3016 s%@build_vendor@%$build_vendor%g
3017 s%@build_os@%$build_os%g
3018 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
3019 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3020 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3021 s%@INSTALL_DATA@%$INSTALL_DATA%g
3022 s%@PACKAGE@%$PACKAGE%g
3023 s%@VERSION@%$VERSION%g
3024 s%@ACLOCAL@%$ACLOCAL%g
3025 s%@AUTOCONF@%$AUTOCONF%g
3026 s%@AUTOMAKE@%$AUTOMAKE%g
3027 s%@AUTOHEADER@%$AUTOHEADER%g
3028 s%@MAKEINFO@%$MAKEINFO%g
3029 s%@SET_MAKE@%$SET_MAKE%g
3030 s%@CC@%$CC%g
3031 s%@CXX@%$CXX%g
3032 s%@AS@%$AS%g
3033 s%@AR@%$AR%g
3034 s%@RANLIB@%$RANLIB%g
3035 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3036 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3037 s%@MAINT@%$MAINT%g
3038 s%@EXEEXT@%$EXEEXT%g
3039 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
3040 s%@LN_S@%$LN_S%g
3041 s%@OBJEXT@%$OBJEXT%g
3042 s%@STRIP@%$STRIP%g
3043 s%@LIBTOOL@%$LIBTOOL%g
3044 s%@CXXCPP@%$CXXCPP%g
3045 s%@THREADLIB@%$THREADLIB%g
3046 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3047 s%@target_all@%$target_all%g
3048 s%@INCLUDES@%$INCLUDES%g
3049 s%@CXXINCLUDES@%$CXXINCLUDES%g
3050 s%@addobjs@%$addobjs%g
3051 s%@MY_CFLAGS@%$MY_CFLAGS%g
3052 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3053 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3055 CEOF
3058 cat >> $CONFIG_STATUS <<\EOF
3060 # Split the substitutions into bite-sized pieces for seds with
3061 # small command number limits, like on Digital OSF/1 and HP-UX.
3062 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3063 ac_file=1 # Number of current file.
3064 ac_beg=1 # First line for current file.
3065 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3066 ac_more_lines=:
3067 ac_sed_cmds=""
3068 while $ac_more_lines; do
3069 if test $ac_beg -gt 1; then
3070 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3071 else
3072 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3074 if test ! -s conftest.s$ac_file; then
3075 ac_more_lines=false
3076 rm -f conftest.s$ac_file
3077 else
3078 if test -z "$ac_sed_cmds"; then
3079 ac_sed_cmds="sed -f conftest.s$ac_file"
3080 else
3081 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3083 ac_file=`expr $ac_file + 1`
3084 ac_beg=$ac_end
3085 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3087 done
3088 if test -z "$ac_sed_cmds"; then
3089 ac_sed_cmds=cat
3093 cat >> $CONFIG_STATUS <<EOF
3095 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3097 cat >> $CONFIG_STATUS <<\EOF
3098 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3100 case "$ac_file" in
3101 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3102 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3103 *) ac_file_in="${ac_file}.in" ;;
3104 esac
3106 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3108 # Remove last slash and all that follows it. Not all systems have dirname.
3109 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3110 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3111 # The file is in a subdirectory.
3112 test ! -d "$ac_dir" && mkdir "$ac_dir"
3113 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3114 # A "../" for each directory in $ac_dir_suffix.
3115 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3116 else
3117 ac_dir_suffix= ac_dots=
3120 case "$ac_given_srcdir" in
3121 .) srcdir=.
3122 if test -z "$ac_dots"; then top_srcdir=.
3123 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3124 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3125 *) # Relative path.
3126 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3127 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3128 esac
3130 case "$ac_given_INSTALL" in
3131 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3132 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3133 esac
3135 echo creating "$ac_file"
3136 rm -f "$ac_file"
3137 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3138 case "$ac_file" in
3139 *Makefile*) ac_comsub="1i\\
3140 # $configure_input" ;;
3141 *) ac_comsub= ;;
3142 esac
3144 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3145 sed -e "$ac_comsub
3146 s%@configure_input@%$configure_input%g
3147 s%@srcdir@%$srcdir%g
3148 s%@top_srcdir@%$top_srcdir%g
3149 s%@INSTALL@%$INSTALL%g
3150 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3151 fi; done
3152 rm -f conftest.s*
3155 cat >> $CONFIG_STATUS <<EOF
3156 srcdir=${srcdir}
3157 host=${host}
3158 target=${target}
3159 with_multisubdir=${with_multisubdir}
3160 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3161 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3162 boehm_gc_basedir=${boehm_gc_basedir}
3163 CC="${CC}"
3164 DEFS="$DEFS"
3167 cat >> $CONFIG_STATUS <<\EOF
3169 echo "$DEFS" > boehm-cflags
3171 if test -n "$CONFIG_FILES"; then
3172 ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
3174 exit 0
3176 chmod +x $CONFIG_STATUS
3177 rm -fr confdefs* $ac_clean_files
3178 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1