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