]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to config.status.
[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
1c26d8fd 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
1c26d8fd 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
2f235b6d 1504echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
ab77073f 1505echo "configure:1506: checking whether build environment is sane" >&5
2f235b6d
PE
1506# Just in case
1507sleep 1
1508echo timestamp > conftestfile
1509# Do `set' in a subshell so we don't clobber the current shell's
1510# arguments. Must try -L first in case configure is actually a
1511# symlink; some systems play weird games with the mod time of symlinks
1512# (eg FreeBSD returns the mod time of the symlink's containing
1513# directory).
1514if (
1515 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1516 if test "$*" = "X"; then
1517 # -L didn't work.
1518 set X `ls -t $srcdir/configure conftestfile`
1519 fi
1520 if test "$*" != "X $srcdir/configure conftestfile" \
1521 && test "$*" != "X conftestfile $srcdir/configure"; then
1522
1523 # If neither matched, then we have a broken ls. This can happen
1524 # if, for instance, CONFIG_SHELL is bash and it inherits a
1525 # broken ls alias from the environment. This has actually
1526 # happened. Such a system could not be considered "sane".
1527 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1528alias in your environment" 1>&2; exit 1; }
1529 fi
1530
1531 test "$2" = conftestfile
1532 )
1533then
1534 # Ok.
1535 :
1536else
1537 { echo "configure: error: newly created file is older than distributed files!
1538Check your system clock" 1>&2; exit 1; }
1539fi
1540rm -f conftest*
1541echo "$ac_t""yes" 1>&6
1542if test "$program_transform_name" = s,x,x,; then
1543 program_transform_name=
1544else
1545 # Double any \ or $. echo might interpret backslashes.
1546 cat <<\EOF_SED > conftestsed
1547s,\\,\\\\,g; s,\$,$$,g
1548EOF_SED
1549 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1550 rm -f conftestsed
1551fi
1552test "$program_prefix" != NONE &&
1553 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1554# Use a double $ so make ignores it.
1555test "$program_suffix" != NONE &&
1556 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1557
1558# sed with no file args requires a program.
1559test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1560
1561echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ab77073f 1562echo "configure:1563: checking whether ${MAKE-make} sets \${MAKE}" >&5
2f235b6d
PE
1563set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1564if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566else
1567 cat > conftestmake <<\EOF
1568all:
1569 @echo 'ac_maketemp="${MAKE}"'
1570EOF
1571# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1572eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1573if test -n "$ac_maketemp"; then
1574 eval ac_cv_prog_make_${ac_make}_set=yes
1575else
1576 eval ac_cv_prog_make_${ac_make}_set=no
1577fi
1578rm -f conftestmake
1579fi
1580if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1582 SET_MAKE=
1583else
1584 echo "$ac_t""no" 1>&6
1585 SET_MAKE="MAKE=${MAKE-make}"
1586fi
1587
1588
1589PACKAGE=$PACKAGE
1590
1591VERSION=$gcc_version
1592
1593if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1594 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1595fi
1596cat >> confdefs.h <<EOF
1597#define PACKAGE "$PACKAGE"
1598EOF
1599
1600cat >> confdefs.h <<EOF
1601#define VERSION "$VERSION"
1602EOF
1603
1604
1605
1606missing_dir=`cd $ac_aux_dir && pwd`
ab77073f
BK
1607echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1608echo "configure:1609: checking for working aclocal" >&5
2f235b6d
PE
1609# Run test in a subshell; some versions of sh will print an error if
1610# an executable is not found, even if stderr is redirected.
1611# Redirect stdin to placate older versions of autoconf. Sigh.
ab77073f
BK
1612if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1613 ACLOCAL=aclocal
2f235b6d
PE
1614 echo "$ac_t""found" 1>&6
1615else
ab77073f 1616 ACLOCAL="$missing_dir/missing aclocal"
2f235b6d
PE
1617 echo "$ac_t""missing" 1>&6
1618fi
1619
1620echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
ab77073f 1621echo "configure:1622: checking for working autoconf" >&5
2f235b6d
PE
1622# Run test in a subshell; some versions of sh will print an error if
1623# an executable is not found, even if stderr is redirected.
1624# Redirect stdin to placate older versions of autoconf. Sigh.
1625if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1626 AUTOCONF=autoconf
1627 echo "$ac_t""found" 1>&6
1628else
1629 AUTOCONF="$missing_dir/missing autoconf"
1630 echo "$ac_t""missing" 1>&6
1631fi
1632
ab77073f
BK
1633echo $ac_n "checking for working automake""... $ac_c" 1>&6
1634echo "configure:1635: checking for working automake" >&5
2f235b6d
PE
1635# Run test in a subshell; some versions of sh will print an error if
1636# an executable is not found, even if stderr is redirected.
1637# Redirect stdin to placate older versions of autoconf. Sigh.
ab77073f
BK
1638if (automake --version) < /dev/null > /dev/null 2>&1; then
1639 AUTOMAKE=automake
2f235b6d
PE
1640 echo "$ac_t""found" 1>&6
1641else
ab77073f 1642 AUTOMAKE="$missing_dir/missing automake"
2f235b6d
PE
1643 echo "$ac_t""missing" 1>&6
1644fi
1645
1646echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
ab77073f 1647echo "configure:1648: checking for working autoheader" >&5
2f235b6d
PE
1648# Run test in a subshell; some versions of sh will print an error if
1649# an executable is not found, even if stderr is redirected.
1650# Redirect stdin to placate older versions of autoconf. Sigh.
1651if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1652 AUTOHEADER=autoheader
1653 echo "$ac_t""found" 1>&6
1654else
1655 AUTOHEADER="$missing_dir/missing autoheader"
1656 echo "$ac_t""missing" 1>&6
1657fi
1658
1659echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
ab77073f 1660echo "configure:1661: checking for working makeinfo" >&5
2f235b6d
PE
1661# Run test in a subshell; some versions of sh will print an error if
1662# an executable is not found, even if stderr is redirected.
1663# Redirect stdin to placate older versions of autoconf. Sigh.
1664if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1665 MAKEINFO=makeinfo
1666 echo "$ac_t""found" 1>&6
1667else
1668 MAKEINFO="$missing_dir/missing makeinfo"
1669 echo "$ac_t""missing" 1>&6
1670fi
1671
1672
1673
1674
1675
5780a46b 1676
f4c79fef 1677
b2dad0e3
BK
1678# Check whether --enable-shared or --disable-shared was given.
1679if test "${enable_shared+set}" = set; then
1680 enableval="$enable_shared"
1681 p=${PACKAGE-default}
c21b6f87 1682case $enableval in
b2dad0e3
BK
1683yes) enable_shared=yes ;;
1684no) enable_shared=no ;;
1685*)
1686 enable_shared=no
1687 # Look at the argument we got. We use all the common list separators.
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1689 for pkg in $enableval; do
1690 if test "X$pkg" = "X$p"; then
1691 enable_shared=yes
1692 fi
1693 done
1694 IFS="$ac_save_ifs"
1695 ;;
1696esac
1697else
1698 enable_shared=yes
1699fi
1700
1701# Check whether --enable-static or --disable-static was given.
1702if test "${enable_static+set}" = set; then
1703 enableval="$enable_static"
1704 p=${PACKAGE-default}
c21b6f87 1705case $enableval in
b2dad0e3
BK
1706yes) enable_static=yes ;;
1707no) enable_static=no ;;
1708*)
1709 enable_static=no
1710 # Look at the argument we got. We use all the common list separators.
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1712 for pkg in $enableval; do
1713 if test "X$pkg" = "X$p"; then
1714 enable_static=yes
1715 fi
1716 done
1717 IFS="$ac_save_ifs"
1718 ;;
1719esac
1720else
1721 enable_static=yes
1722fi
1723
1724# Check whether --enable-fast-install or --disable-fast-install was given.
1725if test "${enable_fast_install+set}" = set; then
1726 enableval="$enable_fast_install"
1727 p=${PACKAGE-default}
c21b6f87 1728case $enableval in
b2dad0e3
BK
1729yes) enable_fast_install=yes ;;
1730no) enable_fast_install=no ;;
1731*)
1732 enable_fast_install=no
1733 # Look at the argument we got. We use all the common list separators.
1734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735 for pkg in $enableval; do
1736 if test "X$pkg" = "X$p"; then
1737 enable_fast_install=yes
1738 fi
1739 done
1740 IFS="$ac_save_ifs"
1741 ;;
1742esac
1743else
1744 enable_fast_install=yes
1745fi
1746
b2dad0e3
BK
1747# Check whether --with-gnu-ld or --without-gnu-ld was given.
1748if test "${with_gnu_ld+set}" = set; then
1749 withval="$with_gnu_ld"
1750 test "$withval" = no || with_gnu_ld=yes
1751else
1752 with_gnu_ld=no
1753fi
1754
1755ac_prog=ld
c21b6f87 1756if test "$GCC" = yes; then
b2dad0e3
BK
1757 # Check if gcc -print-prog-name=ld gives a path.
1758 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
ab77073f 1759echo "configure:1760: checking for ld used by GCC" >&5
3df64633
AO
1760 case $host in
1761 *-*-mingw*)
1762 # gcc leaves a trailing carriage return which upsets mingw
1763 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1764 *)
1765 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1766 esac
c21b6f87 1767 case $ac_prog in
b2dad0e3 1768 # Accept absolute paths.
3840fa2a 1769 [\\/]* | [A-Za-z]:[\\/]*)
b2dad0e3
BK
1770 re_direlt='/[^/][^/]*/\.\./'
1771 # Canonicalize the path of ld
1772 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1773 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1774 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1775 done
1776 test -z "$LD" && LD="$ac_prog"
1777 ;;
1778 "")
1779 # If it fails, then pretend we aren't using GCC.
1780 ac_prog=ld
1781 ;;
1782 *)
1783 # If it is relative, then search for the first ld in PATH.
1784 with_gnu_ld=unknown
1785 ;;
1786 esac
1787elif test "$with_gnu_ld" = yes; then
1788 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
ab77073f 1789echo "configure:1790: checking for GNU ld" >&5
b2dad0e3
BK
1790else
1791 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
ab77073f 1792echo "configure:1793: checking for non-GNU ld" >&5
b2dad0e3 1793fi
c21b6f87 1794if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
b2dad0e3
BK
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796else
1797 if test -z "$LD"; then
3840fa2a 1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
1799 for ac_dir in $PATH; do
1800 test -z "$ac_dir" && ac_dir=.
3840fa2a 1801 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 1802 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3
BK
1803 # Check to see if the program is GNU ld. I'd rather use --version,
1804 # but apparently some GNU ld's only accept -v.
1805 # Break only if it was the GNU/non-GNU ld that we prefer.
c21b6f87 1806 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
b2dad0e3
BK
1807 test "$with_gnu_ld" != no && break
1808 else
1809 test "$with_gnu_ld" != yes && break
1810 fi
1811 fi
1812 done
1813 IFS="$ac_save_ifs"
1814else
c21b6f87 1815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
1816fi
1817fi
1818
c21b6f87 1819LD="$lt_cv_path_LD"
b2dad0e3
BK
1820if test -n "$LD"; then
1821 echo "$ac_t""$LD" 1>&6
1822else
1823 echo "$ac_t""no" 1>&6
1824fi
1825test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1826echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
ab77073f 1827echo "configure:1828: checking if the linker ($LD) is GNU ld" >&5
c21b6f87 1828if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
b2dad0e3
BK
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830else
1831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1832if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
c21b6f87 1833 lt_cv_prog_gnu_ld=yes
b2dad0e3 1834else
c21b6f87 1835 lt_cv_prog_gnu_ld=no
b2dad0e3
BK
1836fi
1837fi
1838
c21b6f87
PE
1839echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1840with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 1841
b2dad0e3 1842
3df64633 1843echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
ab77073f 1844echo "configure:1845: checking for $LD option to reload object files" >&5
3df64633
AO
1845if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847else
1848 lt_cv_ld_reload_flag='-r'
1849fi
1850
1851echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1852reload_flag=$lt_cv_ld_reload_flag
1853test -n "$reload_flag" && reload_flag=" $reload_flag"
b2dad0e3
BK
1854
1855echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
ab77073f 1856echo "configure:1857: checking for BSD-compatible nm" >&5
c21b6f87 1857if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
b2dad0e3
BK
1858 echo $ac_n "(cached) $ac_c" 1>&6
1859else
1860 if test -n "$NM"; then
1861 # Let the user override the test.
c21b6f87 1862 lt_cv_path_NM="$NM"
b2dad0e3 1863else
3840fa2a 1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
1865 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1866 test -z "$ac_dir" && ac_dir=.
3df64633
AO
1867 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1868 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
b2dad0e3
BK
1869 # Check to see if the nm accepts a BSD-compat flag.
1870 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1871 # nm: unknown option "B" ignored
6d93bca4
AO
1872 # Tru64's nm complains that /dev/null is an invalid object file
1873 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
c21b6f87 1874 lt_cv_path_NM="$tmp_nm -B"
b2dad0e3 1875 break
3df64633 1876 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c21b6f87 1877 lt_cv_path_NM="$tmp_nm -p"
b2dad0e3
BK
1878 break
1879 else
c21b6f87 1880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2dad0e3
BK
1881 continue # so that we can try to find one that supports BSD flags
1882 fi
1883 fi
1884 done
1885 IFS="$ac_save_ifs"
c21b6f87 1886 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
b2dad0e3
BK
1887fi
1888fi
1889
c21b6f87 1890NM="$lt_cv_path_NM"
b2dad0e3
BK
1891echo "$ac_t""$NM" 1>&6
1892
3df64633 1893echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
ab77073f 1894echo "configure:1895: checking how to recognise dependant libraries" >&5
3df64633
AO
1895if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897else
3dd7094e 1898 lt_cv_file_magic_cmd='$MAGIC_CMD'
3df64633
AO
1899lt_cv_file_magic_test_file=
1900lt_cv_deplibs_check_method='unknown'
1901# Need to set the preceding variable on all platforms that support
1902# interlibrary dependencies.
1903# 'none' -- dependencies not supported.
1904# `unknown' -- same as none, but documents that we really don't know.
1905# 'pass_all' -- all dependencies passed with no checks.
1906# 'test_compile' -- check by making test program.
1907# 'file_magic [regex]' -- check by looking for files in library path
1908# which responds to the $file_magic_cmd with a given egrep regex.
1909# If you have `file' or equivalent on your system and you're not sure
1910# whether `pass_all' will *always* work, you probably want this one.
1911
c21b6f87
PE
1912case $host_os in
1913aix*)
3df64633
AO
1914 lt_cv_deplibs_check_method=pass_all
1915 ;;
1916
1917beos*)
1918 lt_cv_deplibs_check_method=pass_all
1919 ;;
1920
1921bsdi4*)
c21b6f87
PE
1922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1923 lt_cv_file_magic_cmd='/usr/bin/file -L'
3df64633
AO
1924 lt_cv_file_magic_test_file=/shlib/libc.so
1925 ;;
1926
3dd7094e 1927cygwin* | mingw* |pw32*)
3df64633 1928 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3dd7094e 1929 lt_cv_file_magic_cmd='$OBJDUMP -f'
3df64633
AO
1930 ;;
1931
c21b6f87
PE
1932darwin* | rhapsody*)
1933 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
47e982b2
BK
1934 lt_cv_file_magic_cmd='/usr/bin/file -L'
1935 case "$host_os" in
1936 rhapsody* | darwin1.012)
1937 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1938 ;;
1939 *) # Darwin 1.3 on
1940 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1941 ;;
1942 esac
c21b6f87
PE
1943 ;;
1944
3df64633
AO
1945freebsd* )
1946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
c21b6f87 1947 case $host_cpu in
3df64633 1948 i*86 )
6d93bca4
AO
1949 # Not sure whether the presence of OpenBSD here was a mistake.
1950 # Let's accept both of them until this is cleared up.
c21b6f87
PE
1951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1952 lt_cv_file_magic_cmd=/usr/bin/file
3df64633
AO
1953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1954 ;;
1955 esac
1956 else
1957 lt_cv_deplibs_check_method=pass_all
1958 fi
1959 ;;
1960
1961gnu*)
1962 lt_cv_deplibs_check_method=pass_all
1963 ;;
1964
c21b6f87 1965hpux10.20*|hpux11*)
38cca750
BK
1966 case $host_cpu in
1967 hppa*)
1968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1969 lt_cv_file_magic_cmd=/usr/bin/file
1970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1971 ;;
1972 ia64*)
1973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1974 lt_cv_file_magic_cmd=/usr/bin/file
1975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1976 ;;
1977 esac
3df64633
AO
1978 ;;
1979
1980irix5* | irix6*)
c21b6f87 1981 case $host_os in
3df64633
AO
1982 irix5*)
1983 # this will be overridden with pass_all, but let us keep it just in case
1984 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1985 ;;
1986 *)
c21b6f87 1987 case $LD in
3df64633
AO
1988 *-32|*"-32 ") libmagic=32-bit;;
1989 *-n32|*"-n32 ") libmagic=N32;;
1990 *-64|*"-64 ") libmagic=64-bit;;
1991 *) libmagic=never-match;;
1992 esac
1993 # this will be overridden with pass_all, but let us keep it just in case
c21b6f87
PE
1994 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1995 ;;
3df64633
AO
1996 esac
1997 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1998 lt_cv_deplibs_check_method=pass_all
1999 ;;
2000
2001# This must be Linux ELF.
6d93bca4 2002linux-gnu*)
c21b6f87 2003 case $host_cpu in
bfa1e6b1 2004 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3df64633
AO
2005 lt_cv_deplibs_check_method=pass_all ;;
2006 *)
2007 # glibc up to 2.1.1 does not perform some relocations on ARM
c21b6f87
PE
2008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2009 esac
3df64633
AO
2010 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2011 ;;
2012
2013netbsd*)
c21b6f87 2014 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
47e982b2 2015 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3df64633 2016 else
47e982b2 2017 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3df64633 2018 fi
c21b6f87
PE
2019 ;;
2020
2021newsos6)
2022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2023 lt_cv_file_magic_cmd=/usr/bin/file
2024 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3df64633
AO
2025 ;;
2026
2027osf3* | osf4* | osf5*)
2028 # this will be overridden with pass_all, but let us keep it just in case
2029 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2030 lt_cv_file_magic_test_file=/shlib/libc.so
2031 lt_cv_deplibs_check_method=pass_all
2032 ;;
2033
2034sco3.2v5*)
2035 lt_cv_deplibs_check_method=pass_all
2036 ;;
2037
2038solaris*)
2039 lt_cv_deplibs_check_method=pass_all
2040 lt_cv_file_magic_test_file=/lib/libc.so
2041 ;;
2042
bfa1e6b1
BK
2043sysv5uw[78]* | sysv4*uw2*)
2044 lt_cv_deplibs_check_method=pass_all
2045 ;;
2046
3df64633 2047sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c21b6f87 2048 case $host_vendor in
3df64633
AO
2049 ncr)
2050 lt_cv_deplibs_check_method=pass_all
2051 ;;
2052 motorola)
c21b6f87
PE
2053 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]'
2054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3df64633
AO
2055 ;;
2056 esac
2057 ;;
2058esac
2059
2060fi
2061
2062echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2063file_magic_cmd=$lt_cv_file_magic_cmd
2064deplibs_check_method=$lt_cv_deplibs_check_method
2065
2066echo $ac_n "checking for object suffix""... $ac_c" 1>&6
ab77073f 2067echo "configure:2068: checking for object suffix" >&5
3df64633
AO
2068if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070else
2071 rm -f conftest*
2072echo 'int i = 1;' > conftest.$ac_ext
ab77073f 2073if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3df64633
AO
2074 for ac_file in conftest.*; do
2075 case $ac_file in
2076 *.c) ;;
2077 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2078 esac
2079 done
2080else
2081 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2082fi
2083rm -f conftest*
2084fi
2085
2086echo "$ac_t""$ac_cv_objext" 1>&6
2087OBJEXT=$ac_cv_objext
2088ac_objext=$ac_cv_objext
2089
2090# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2091
2092# Only perform the check for file, if the check method requires it
c21b6f87 2093case $deplibs_check_method in
3df64633 2094file_magic*)
3dd7094e 2095 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3df64633 2096 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
ab77073f 2097echo "configure:2098: checking for ${ac_tool_prefix}file" >&5
3dd7094e 2098if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
3df64633
AO
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100else
c21b6f87 2101 case $MAGIC_CMD in
3df64633 2102 /*)
3dd7094e 2103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
2104 ;;
2105 ?:/*)
3dd7094e 2106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
2107 ;;
2108 *)
3dd7094e 2109 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
2110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2111 ac_dummy="/usr/bin:$PATH"
2112 for ac_dir in $ac_dummy; do
2113 test -z "$ac_dir" && ac_dir=.
2114 if test -f $ac_dir/${ac_tool_prefix}file; then
3dd7094e 2115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3df64633 2116 if test -n "$file_magic_test_file"; then
c21b6f87 2117 case $deplibs_check_method in
3df64633
AO
2118 "file_magic "*)
2119 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 2120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
2121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2122 egrep "$file_magic_regex" > /dev/null; then
2123 :
2124 else
2125 cat <<EOF 1>&2
2126
2127*** Warning: the command libtool uses to detect shared libraries,
2128*** $file_magic_cmd, produces output that libtool cannot recognize.
2129*** The result is that libtool may fail to recognize shared libraries
2130*** as such. This will affect the creation of libtool libraries that
2131*** depend on shared libraries, but programs linked with such libtool
2132*** libraries will work regardless of this problem. Nevertheless, you
2133*** may want to report the problem to your system manager and/or to
2134*** bug-libtool@gnu.org
2135
2136EOF
2137 fi ;;
2138 esac
2139 fi
2140 break
2141 fi
2142 done
2143 IFS="$ac_save_ifs"
3dd7094e 2144 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
2145 ;;
2146esac
2147fi
2148
3dd7094e
AO
2149MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2150if test -n "$MAGIC_CMD"; then
2151 echo "$ac_t""$MAGIC_CMD" 1>&6
3df64633
AO
2152else
2153 echo "$ac_t""no" 1>&6
2154fi
2155
3dd7094e 2156if test -z "$lt_cv_path_MAGIC_CMD"; then
3df64633
AO
2157 if test -n "$ac_tool_prefix"; then
2158 echo $ac_n "checking for file""... $ac_c" 1>&6
ab77073f 2159echo "configure:2160: checking for file" >&5
3dd7094e 2160if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
3df64633
AO
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162else
c21b6f87 2163 case $MAGIC_CMD in
3df64633 2164 /*)
3dd7094e 2165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
2166 ;;
2167 ?:/*)
3dd7094e 2168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
2169 ;;
2170 *)
3dd7094e 2171 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2173 ac_dummy="/usr/bin:$PATH"
2174 for ac_dir in $ac_dummy; do
2175 test -z "$ac_dir" && ac_dir=.
2176 if test -f $ac_dir/file; then
3dd7094e 2177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3df64633 2178 if test -n "$file_magic_test_file"; then
c21b6f87 2179 case $deplibs_check_method in
3df64633
AO
2180 "file_magic "*)
2181 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 2182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
2183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2184 egrep "$file_magic_regex" > /dev/null; then
2185 :
2186 else
2187 cat <<EOF 1>&2
2188
2189*** Warning: the command libtool uses to detect shared libraries,
2190*** $file_magic_cmd, produces output that libtool cannot recognize.
2191*** The result is that libtool may fail to recognize shared libraries
2192*** as such. This will affect the creation of libtool libraries that
2193*** depend on shared libraries, but programs linked with such libtool
2194*** libraries will work regardless of this problem. Nevertheless, you
2195*** may want to report the problem to your system manager and/or to
2196*** bug-libtool@gnu.org
2197
2198EOF
2199 fi ;;
2200 esac
2201 fi
2202 break
2203 fi
2204 done
2205 IFS="$ac_save_ifs"
3dd7094e 2206 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
2207 ;;
2208esac
2209fi
2210
3dd7094e
AO
2211MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2212if test -n "$MAGIC_CMD"; then
2213 echo "$ac_t""$MAGIC_CMD" 1>&6
3df64633
AO
2214else
2215 echo "$ac_t""no" 1>&6
2216fi
2217
2218 else
3dd7094e 2219 MAGIC_CMD=:
3df64633
AO
2220 fi
2221fi
2222
2223 fi
2224 ;;
2225esac
2226
2227# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab77073f 2230echo "configure:2231: checking for $ac_word" >&5
3df64633
AO
2231if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233else
2234 if test -n "$RANLIB"; then
2235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2236else
2237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2238 ac_dummy="$PATH"
2239 for ac_dir in $ac_dummy; do
2240 test -z "$ac_dir" && ac_dir=.
2241 if test -f $ac_dir/$ac_word; then
2242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2243 break
2244 fi
2245 done
2246 IFS="$ac_save_ifs"
2247fi
2248fi
2249RANLIB="$ac_cv_prog_RANLIB"
2250if test -n "$RANLIB"; then
2251 echo "$ac_t""$RANLIB" 1>&6
2252else
2253 echo "$ac_t""no" 1>&6
2254fi
2255
2256
2257if test -z "$ac_cv_prog_RANLIB"; then
2258if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "ranlib", so it can be a program name with args.
2260set dummy ranlib; ac_word=$2
2261echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab77073f 2262echo "configure:2263: checking for $ac_word" >&5
3df64633
AO
2263if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2265else
2266 if test -n "$RANLIB"; then
2267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2268else
2269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2270 ac_dummy="$PATH"
2271 for ac_dir in $ac_dummy; do
2272 test -z "$ac_dir" && ac_dir=.
2273 if test -f $ac_dir/$ac_word; then
2274 ac_cv_prog_RANLIB="ranlib"
2275 break
2276 fi
2277 done
2278 IFS="$ac_save_ifs"
2279 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2280fi
2281fi
2282RANLIB="$ac_cv_prog_RANLIB"
2283if test -n "$RANLIB"; then
2284 echo "$ac_t""$RANLIB" 1>&6
2285else
2286 echo "$ac_t""no" 1>&6
2287fi
2288
2289else
2290 RANLIB=":"
2291fi
2292fi
2293
2294# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295set dummy ${ac_tool_prefix}strip; ac_word=$2
2296echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab77073f 2297echo "configure:2298: checking for $ac_word" >&5
3df64633
AO
2298if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300else
2301 if test -n "$STRIP"; then
2302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303else
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 ac_dummy="$PATH"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310 break
2311 fi
2312 done
2313 IFS="$ac_save_ifs"
2314fi
2315fi
2316STRIP="$ac_cv_prog_STRIP"
2317if test -n "$STRIP"; then
2318 echo "$ac_t""$STRIP" 1>&6
2319else
2320 echo "$ac_t""no" 1>&6
2321fi
2322
2323
2324if test -z "$ac_cv_prog_STRIP"; then
2325if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "strip", so it can be a program name with args.
2327set dummy strip; ac_word=$2
2328echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab77073f 2329echo "configure:2330: checking for $ac_word" >&5
3df64633
AO
2330if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332else
2333 if test -n "$STRIP"; then
2334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2335else
2336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2337 ac_dummy="$PATH"
2338 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 if test -f $ac_dir/$ac_word; then
2341 ac_cv_prog_STRIP="strip"
2342 break
2343 fi
2344 done
2345 IFS="$ac_save_ifs"
2346 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2347fi
2348fi
2349STRIP="$ac_cv_prog_STRIP"
2350if test -n "$STRIP"; then
2351 echo "$ac_t""$STRIP" 1>&6
2352else
2353 echo "$ac_t""no" 1>&6
2354fi
2355
2356else
2357 STRIP=":"
2358fi
2359fi
2360
b2dad0e3 2361
b2dad0e3
BK
2362# Check for any special flags to pass to ltconfig.
2363libtool_flags="--cache-file=$cache_file"
2364test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2365test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2366test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
c21b6f87
PE
2367test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2368test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3840fa2a
BK
2369libtool_flags="$libtool_flags --enable-dlopen"
2370
2371# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2372if test "${enable_libtool_lock+set}" = set; then
2373 enableval="$enable_libtool_lock"
2374 :
2375fi
2376
2377test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2378test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b2dad0e3 2379
3df64633
AO
2380# Check whether --with-pic or --without-pic was given.
2381if test "${with_pic+set}" = set; then
2382 withval="$with_pic"
2383 pic_mode="$withval"
2384else
2385 pic_mode=default
2386fi
2387
2388test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2389test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2390
b2dad0e3
BK
2391# Some flags need to be propagated to the compiler or linker for good
2392# libtool support.
c21b6f87 2393case $host in
b2dad0e3
BK
2394*-*-irix6*)
2395 # Find out which ABI we are using.
ab77073f
BK
2396 echo '#line 2397 "configure"' > conftest.$ac_ext
2397 if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343fdd2
AO
2398 if test "$lt_cv_prog_gnu_ld" = yes; then
2399 case `/usr/bin/file conftest.$ac_objext` in
2400 *32-bit*)
2401 LD="${LD-ld} -melf32bsmip"
2402 ;;
2403 *N32*)
2404 LD="${LD-ld} -melf32bmipn32"
2405 ;;
2406 *64-bit*)
2407 LD="${LD-ld} -melf64bmip"
2408 ;;
2409 esac
2410 else
c21b6f87 2411 case `/usr/bin/file conftest.$ac_objext` in
b2dad0e3
BK
2412 *32-bit*)
2413 LD="${LD-ld} -32"
2414 ;;
2415 *N32*)
2416 LD="${LD-ld} -n32"
2417 ;;
2418 *64-bit*)
2419 LD="${LD-ld} -64"
2420 ;;
2421 esac
3343fdd2 2422 fi
b2dad0e3
BK
2423 fi
2424 rm -rf conftest*
2425 ;;
2426
38cca750
BK
2427ia64-*-hpux*)
2428 # Find out which ABI we are using.
2429 echo 'int i;' > conftest.$ac_ext
3343fdd2 2430 if { (eval echo configure:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38cca750
BK
2431 case "`/usr/bin/file conftest.o`" in
2432 *ELF-32*)
2433 HPUX_IA64_MODE="32"
2434 ;;
2435 *ELF-64*)
2436 HPUX_IA64_MODE="64"
2437 ;;
2438 esac
2439 fi
2440 rm -rf conftest*
2441 ;;
2442
162c7cd9
SW
2443x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2444 # Find out which ABI we are using.
2445 echo 'int i;' > conftest.$ac_ext
3343fdd2 2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
162c7cd9
SW
2447 case "`/usr/bin/file conftest.o`" in
2448 *32-bit*)
2449 case $host in
2450 x86_64-*linux*)
2451 LD="${LD-ld} -m elf_i386"
2452 ;;
2453 ppc64-*linux*)
2454 LD="${LD-ld} -m elf32ppclinux"
2455 ;;
2456 s390x-*linux*)
2457 LD="${LD-ld} -m elf_s390"
2458 ;;
2459 sparc64-*linux*)
2460 LD="${LD-ld} -m elf32_sparc"
2461 ;;
2462 esac
2463 ;;
2464 *64-bit*)
2465 case $host in
2466 x86_64-*linux*)
2467 LD="${LD-ld} -m elf_x86_64"
2468 ;;
2469 ppc*-*linux*|powerpc*-*linux*)
2470 LD="${LD-ld} -m elf64ppc"
2471 ;;
2472 s390*-*linux*)
2473 LD="${LD-ld} -m elf64_s390"
2474 ;;
2475 sparc*-*linux*)
2476 LD="${LD-ld} -m elf64_sparc"
2477 ;;
2478 esac
2479 ;;
2480 esac
2481 fi
2482 rm -rf conftest*
2483 ;;
2484
b2dad0e3
BK
2485*-*-sco3.2v5*)
2486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2487 SAVE_CFLAGS="$CFLAGS"
2488 CFLAGS="$CFLAGS -belf"
2489 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3343fdd2 2490echo "configure:2491: checking whether the C compiler needs -belf" >&5
b2dad0e3
BK
2491if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493else
3df64633
AO
2494
2495 ac_ext=c
2496# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2499ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2500cross_compiling=$ac_cv_prog_cc_cross
2501
2502 cat > conftest.$ac_ext <<EOF
3343fdd2 2503#line 2504 "configure"
b2dad0e3
BK
2504#include "confdefs.h"
2505
2506int main() {
2507
2508; return 0; }
2509EOF
3343fdd2 2510if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
2511 rm -rf conftest*
2512 lt_cv_cc_needs_belf=yes
2513else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 rm -rf conftest*
2517 lt_cv_cc_needs_belf=no
2518fi
2519rm -f conftest*
3df64633
AO
2520 ac_ext=c
2521# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2522ac_cpp='$CPP $CPPFLAGS'
2523ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2524ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2525cross_compiling=$ac_cv_prog_cc_cross
2526
b2dad0e3
BK
2527fi
2528
2529echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2530 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2531 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2532 CFLAGS="$SAVE_CFLAGS"
2533 fi
2534 ;;
2535
2536
2537esac
2538
3df64633 2539echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
3343fdd2 2540echo "configure:2541: checking how to run the C++ preprocessor" >&5
3df64633
AO
2541if test -z "$CXXCPP"; then
2542if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544else
2545 ac_ext=C
2546# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2547ac_cpp='$CXXCPP $CPPFLAGS'
2548ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2549ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2550cross_compiling=$ac_cv_prog_cxx_cross
2551 CXXCPP="${CXX-g++} -E"
2552 cat > conftest.$ac_ext <<EOF
3343fdd2 2553#line 2554 "configure"
3df64633
AO
2554#include "confdefs.h"
2555#include <stdlib.h>
2556EOF
2557ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3343fdd2 2558{ (eval echo configure:2559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3df64633
AO
2559ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2560if test -z "$ac_err"; then
2561 :
2562else
2563 echo "$ac_err" >&5
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2566 rm -rf conftest*
2567 CXXCPP=/lib/cpp
2568fi
2569rm -f conftest*
2570 ac_cv_prog_CXXCPP="$CXXCPP"
2571ac_ext=c
2572# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2573ac_cpp='$CPP $CPPFLAGS'
2574ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2575ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2576cross_compiling=$ac_cv_prog_cc_cross
2577fi
2578fi
2579CXXCPP="$ac_cv_prog_CXXCPP"
2580echo "$ac_t""$CXXCPP" 1>&6
2581
b2dad0e3
BK
2582
2583# Save cache, so that ltconfig can load it
2584cat > confcache <<\EOF
2585# This file is a shell script that caches the results of configure
2586# tests run on this system so they can be shared between configure
2587# scripts and configure runs. It is not useful on other systems.
2588# If it contains results you don't want to keep, you may remove or edit it.
2589#
2590# By default, configure uses ./config.cache as the cache file,
2591# creating it if it does not exist already. You can give configure
2592# the --cache-file=FILE option to use a different cache file; that is
2593# what configure does when it calls configure scripts in
2594# subdirectories, so they share the cache.
2595# Giving --cache-file=/dev/null disables caching, for debugging configure.
2596# config.status only pays attention to the cache file if you give it the
2597# --recheck option to rerun configure.
2598#
2599EOF
2600# The following way of writing the cache mishandles newlines in values,
2601# but we know of no workaround that is simple, portable, and efficient.
2602# So, don't put newlines in cache variables' values.
2603# Ultrix sh set writes to stderr and can't be redirected directly,
2604# and sets the high bit in the cache file unless we assign to the vars.
2605(set) 2>&1 |
2606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2607 *ac_space=\ *)
2608 # `set' does not quote correctly, so add quotes (double-quote substitution
2609 # turns \\\\ into \\, and sed turns \\ into \).
2610 sed -n \
2611 -e "s/'/'\\\\''/g" \
2612 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2613 ;;
2614 *)
2615 # `set' quotes correctly as required by POSIX, so do not add quotes.
2616 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2617 ;;
2618 esac >> confcache
2619if cmp -s $cache_file confcache; then
2620 :
2621else
2622 if test -w $cache_file; then
2623 echo "updating cache $cache_file"
2624 cat confcache > $cache_file
2625 else
2626 echo "not updating unwritable cache $cache_file"
2627 fi
2628fi
2629rm -f confcache
2630
2631
2632# Actually configure libtool. ac_aux_dir is where install-sh is found.
3df64633 2633AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3dd7094e 2634MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
2635LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2636AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2637objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2638deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
b2dad0e3 2639${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3df64633 2640$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
b2dad0e3
BK
2641|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2642
2643# Reload cache, that may have been modified by ltconfig
2644if test -r "$cache_file"; then
2645 echo "loading cache $cache_file"
2646 . $cache_file
2647else
2648 echo "creating cache $cache_file"
2649 > $cache_file
2650fi
2651
2652
2653# This can be used to rebuild libtool when needed
3df64633 2654LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2dad0e3
BK
2655
2656# Always use our own libtool.
2657LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2658
2659# Redirect the config.log output again, so that the ltconfig log is not
2660# clobbered by the next message.
2661exec 5>>./config.log
2662
3df64633
AO
2663
2664
3df64633
AO
2665LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2666lt_save_CC="$CC"
2667lt_save_CFLAGS="$CFLAGS"
2668AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
c21b6f87 2669MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
2670LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2671AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2672objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2673deplibs_check_method="$deplibs_check_method" \
2674file_magic_cmd="$file_magic_cmd" \
2675${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2676--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2677|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2678CC="$lt_save_CC"
2679CFLAGS="$lt_save_CFLAGS"
2680
2681# Redirect the config.log output again, so that the ltconfig log is not
2682# clobbered by the next message.
2683exec 5>>./config.log
2684
3df64633
AO
2685
2686
2687
2688
3dd7094e 2689
34791641
PE
2690
2691
33590f13 2692
33590f13
BK
2693# Check for c++ or library specific bits that don't require linking.
2694#GLIBCPP_CHECK_COMPILER_VERSION
5780a46b 2695echo $ac_n "checking for GNU make""... $ac_c" 1>&6
3343fdd2 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
04e78786 2719
33590f13 2720# Enable all the variable C++ stuff. C_MBCHAR must come early.
c470c17d 2721echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3343fdd2 2722echo "configure:2723: checking how to run the C preprocessor" >&5
c470c17d
BK
2723# On Suns, sometimes $CPP names a directory.
2724if test -n "$CPP" && test -d "$CPP"; then
2725 CPP=
2726fi
2727if test -z "$CPP"; then
2728if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
b2dad0e3
BK
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730else
c470c17d
BK
2731 # This must be in double quotes, not single quotes, because CPP may get
2732 # substituted into the Makefile and "${CC-cc}" will confuse make.
2733 CPP="${CC-cc} -E"
2734 # On the NeXT, cc -E runs the code through the compiler's parser,
2735 # not just through cpp.
b2dad0e3 2736 cat > conftest.$ac_ext <<EOF
3343fdd2 2737#line 2738 "configure"
b2dad0e3 2738#include "confdefs.h"
c470c17d
BK
2739#include <assert.h>
2740Syntax Error
b2dad0e3
BK
2741EOF
2742ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3343fdd2 2743{ (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2744ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745if test -z "$ac_err"; then
2746 :
2747else
2748 echo "$ac_err" >&5
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
c470c17d
BK
2752 CPP="${CC-cc} -E -traditional-cpp"
2753 cat > conftest.$ac_ext <<EOF
3343fdd2 2754#line 2755 "configure"
c470c17d
BK
2755#include "confdefs.h"
2756#include <assert.h>
2757Syntax Error
2758EOF
2759ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3343fdd2 2760{ (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c470c17d
BK
2761ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762if test -z "$ac_err"; then
2763 :
2764else
2765 echo "$ac_err" >&5
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2768 rm -rf conftest*
2769 CPP="${CC-cc} -nologo -E"
2770 cat > conftest.$ac_ext <<EOF
3343fdd2 2771#line 2772 "configure"
c470c17d
BK
2772#include "confdefs.h"
2773#include <assert.h>
2774Syntax Error
2775EOF
2776ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3343fdd2 2777{ (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c470c17d
BK
2778ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779if test -z "$ac_err"; then
2780 :
2781else
2782 echo "$ac_err" >&5
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2785 rm -rf conftest*
2786 CPP=/lib/cpp
b2dad0e3
BK
2787fi
2788rm -f conftest*
2789fi
33590f13
BK
2790rm -f conftest*
2791fi
2792rm -f conftest*
2793 ac_cv_prog_CPP="$CPP"
2794fi
2795 CPP="$ac_cv_prog_CPP"
2796else
2797 ac_cv_prog_CPP="$CPP"
2798fi
2799echo "$ac_t""$CPP" 1>&6
2800
2801
2802 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
3343fdd2 2803echo "configure:2804: checking for cstdio to use" >&5
33590f13
BK
2804 # Check whether --enable-cstdio or --disable-cstdio was given.
2805if test "${enable_cstdio+set}" = set; then
2806 enableval="$enable_cstdio"
2807 if test x$enable_cstdio = xno; then
2808 enable_cstdio=stdio
2809 fi
2810else
2811 enable_cstdio=stdio
2812fi
2813
2814
2815 enable_cstdio_flag=$enable_cstdio
2816
2817 case x${enable_cstdio_flag} in
2818 xlibio)
2819 CSTDIO_H=config/io/c_io_libio.h
2820 BASIC_FILE_H=config/io/basic_file_libio.h
2821 BASIC_FILE_CC=config/io/basic_file_libio.cc
2822 echo "$ac_t""libio" 1>&6
2823
2824 # see if we are on a system with libio native (ie, linux)
2825 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2826echo $ac_n "checking for libio.h""... $ac_c" 1>&6
3343fdd2 2827echo "configure:2828: checking for libio.h" >&5
33590f13
BK
2828if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830else
2831 cat > conftest.$ac_ext <<EOF
3343fdd2 2832#line 2833 "configure"
33590f13
BK
2833#include "confdefs.h"
2834#include <libio.h>
2835EOF
2836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3343fdd2 2837{ (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
33590f13
BK
2838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839if test -z "$ac_err"; then
2840 rm -rf conftest*
2841 eval "ac_cv_header_$ac_safe=yes"
2842else
2843 echo "$ac_err" >&5
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_header_$ac_safe=no"
2848fi
2849rm -f conftest*
2850fi
2851if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 has_libio=yes
2854else
2855 echo "$ac_t""no" 1>&6
2856has_libio=no
2857fi
2858
2859
2860 # Need to check and see what version of glibc is being used. If
37bc6ca2 2861 # it's not glibc-2.2 or higher, then we'll need to go ahead and
33590f13
BK
2862 # compile most of libio for linux systems.
2863 if test x$has_libio = x"yes"; then
2864 case "$target" in
2865 *-*-linux*)
2866 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
3343fdd2 2867echo "configure:2868: checking for glibc version >= 2.2" >&5
33590f13 2868 cat > conftest.$ac_ext <<EOF
3343fdd2 2869#line 2870 "configure"
33590f13
BK
2870#include "confdefs.h"
2871
2872 #include <features.h>
37bc6ca2 2873 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
33590f13
BK
2874 ok
2875 #endif
2876
2877EOF
2878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "ok" >/dev/null 2>&1; then
2880 rm -rf conftest*
2881 glibc_satisfactory=yes
2882else
2883 rm -rf conftest*
2884 glibc_satisfactory=no
2885fi
2886rm -f conftest*
2887
2888 echo "$ac_t""$glibc_satisfactory" 1>&6
2889 ;;
2890 esac
2891
2892 # XXX at the moment, admit defeat and force the recompilation
2893 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
37bc6ca2 2894 glibc_satisfactory=no
33590f13
BK
2895
2896 if test x$glibc_satisfactory = x"yes"; then
2897 need_libio=no
37bc6ca2 2898 need_wlibio=no
33590f13
BK
2899 else
2900 need_libio=yes
2901 # bkoz XXX need to add checks to enable this
2902 # pme XXX here's a first pass at such a check
2903 if test x$enable_c_mbchar != xno; then
2904 need_wlibio=yes
2905 else
2906 need_wlibio=no
2907 fi
2908 fi
2909
2910 else
2911 # Using libio, but <libio.h> doesn't exist on the target system. . .
2912 need_libio=yes
2913 # bkoz XXX need to add checks to enable this
2914 # pme XXX here's a first pass at such a check
2915 if test x$enable_c_mbchar != xno; then
2916 need_wlibio=yes
2917 else
2918 need_wlibio=no
2919 fi
2920 fi
2921 ;;
2922 xstdio | x | xno | xnone | xyes)
2923 # default
2924 CSTDIO_H=config/io/c_io_stdio.h
2925 BASIC_FILE_H=config/io/basic_file_stdio.h
2926 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2927 echo "$ac_t""stdio" 1>&6
2928
2929 # We're not using stdio.
2930 need_libio=no
2931 need_wlibio=no
2932 ;;
2933 *)
2934 echo "$enable_cstdio is an unknown io package" 1>&2
2935 exit 1
2936 ;;
2937 esac
2938
2939
2940
2941
2942 # 2000-08-04 bkoz hack
2943 CCODECVT_C=config/io/c_io_libio_codecvt.c
2944
2945 # 2000-08-04 bkoz hack
2946
2947
2948
4e10943d
BK
2949if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2950 GLIBCPP_BUILD_LIBIO_TRUE=
2951 GLIBCPP_BUILD_LIBIO_FALSE='#'
b2dad0e3 2952else
4e10943d
BK
2953 GLIBCPP_BUILD_LIBIO_TRUE='#'
2954 GLIBCPP_BUILD_LIBIO_FALSE=
2955fi
2956
2957
2958if test "$need_libio" = yes; then
2959 GLIBCPP_NEED_LIBIO_TRUE=
2960 GLIBCPP_NEED_LIBIO_FALSE='#'
b2dad0e3 2961else
4e10943d
BK
2962 GLIBCPP_NEED_LIBIO_TRUE='#'
2963 GLIBCPP_NEED_LIBIO_FALSE=
b2dad0e3 2964fi
4e10943d
BK
2965
2966
2967if test "$need_wlibio" = yes; then
2968 GLIBCPP_NEED_WLIBIO_TRUE=
2969 GLIBCPP_NEED_WLIBIO_FALSE='#'
2970else
2971 GLIBCPP_NEED_WLIBIO_TRUE='#'
2972 GLIBCPP_NEED_WLIBIO_FALSE=
b2dad0e3 2973fi
4e10943d
BK
2974 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2975 libio_la=../libio/libio.la
2976 else
2977 libio_la=
2978 fi
2979
2980
2981
2982 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3343fdd2 2983echo "configure:2984: checking for clocale to use" >&5
4e10943d
BK
2984 # Check whether --enable-clocale or --disable-clocale was given.
2985if test "${enable_clocale+set}" = set; then
2986 enableval="$enable_clocale"
2987 if test x$enable_clocale = xno; then
56deb74c 2988 enable_clocale=no
4e10943d 2989 fi
b2dad0e3 2990else
56deb74c 2991 enable_clocale=no
b2dad0e3
BK
2992fi
2993
20427c6b 2994
4e10943d 2995 enable_clocale_flag=$enable_clocale
dd75251f 2996
56deb74c
BK
2997 if test x$enable_clocale_flag = xno; then
2998 case x${target_os} in
2999 xlinux* | xgnu*)
3000 cat > conftest.$ac_ext <<EOF
3343fdd2 3001#line 3002 "configure"
56deb74c
BK
3002#include "confdefs.h"
3003
3004 #include <features.h>
37bc6ca2 3005 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
1451a492 3006 _GLIBCPP_ok
56deb74c
BK
3007 #endif
3008
3009EOF
3010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451a492 3011 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
56deb74c
BK
3012 rm -rf conftest*
3013 enable_clocale_flag=gnu
3014else
3015 rm -rf conftest*
3016 enable_clocale_flag=generic
3017fi
3018rm -f conftest*
3019
1451a492
BK
3020
3021 # Test for bugs early in glibc-2.2.x series
3022 if test x$enable_clocale_flag = xgnu; then
3023 if test "$cross_compiling" = yes; then
3024 enable_clocale_flag=generic
3025else
3026 cat > conftest.$ac_ext <<EOF
3343fdd2 3027#line 3028 "configure"
1451a492
BK
3028#include "confdefs.h"
3029
3030 #define _GNU_SOURCE 1
3031 #include <locale.h>
89671b70
JJ
3032 #include <string.h>
3033 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3034 extern __typeof(newlocale) __newlocale;
3035 extern __typeof(duplocale) __duplocale;
3036 extern __typeof(strcoll_l) __strcoll_l;
3037 #endif
1451a492
BK
3038 int main()
3039 {
3040