source: trunk/src/gcc/boehm-gc/configure@ 2012

Last change on this file since 2012 was 1479, checked in by bird, 21 years ago

Joined gcc 3.3.4 with head.

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