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