OSDN Git Service

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