OSDN Git Service

* libsupc++/exception_support.h: New header file.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / libsupc++ / 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-shared[=PKGS]  build shared libraries [default=yes]"
16 ac_help="$ac_help
17   --enable-static[=PKGS]  build static libraries [default=yes]"
18 ac_help="$ac_help
19   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23   --disable-libtool-lock  avoid locking (might break parallel builds)"
24
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
28 build=NONE
29 cache_file=./config.cache
30 exec_prefix=NONE
31 host=NONE
32 no_create=
33 nonopt=NONE
34 no_recursion=
35 prefix=NONE
36 program_prefix=NONE
37 program_suffix=NONE
38 program_transform_name=s,x,x,
39 silent=
40 site=
41 srcdir=
42 target=NONE
43 verbose=
44 x_includes=NONE
45 x_libraries=NONE
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
58
59 # Initialize some other variables.
60 subdirs=
61 MFLAGS= MAKEFLAGS=
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
64 ac_max_here_lines=12
65
66 ac_prev=
67 for ac_option
68 do
69
70   # If the previous option needs an argument, assign it.
71   if test -n "$ac_prev"; then
72     eval "$ac_prev=\$ac_option"
73     ac_prev=
74     continue
75   fi
76
77   case "$ac_option" in
78   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79   *) ac_optarg= ;;
80   esac
81
82   # Accept the important Cygnus configure options, so we can diagnose typos.
83
84   case "$ac_option" in
85
86   -bindir | --bindir | --bindi | --bind | --bin | --bi)
87     ac_prev=bindir ;;
88   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89     bindir="$ac_optarg" ;;
90
91   -build | --build | --buil | --bui | --bu)
92     ac_prev=build ;;
93   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94     build="$ac_optarg" ;;
95
96   -cache-file | --cache-file | --cache-fil | --cache-fi \
97   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98     ac_prev=cache_file ;;
99   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101     cache_file="$ac_optarg" ;;
102
103   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104     ac_prev=datadir ;;
105   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106   | --da=*)
107     datadir="$ac_optarg" ;;
108
109   -disable-* | --disable-*)
110     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111     # Reject names that are not valid shell variable names.
112     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114     fi
115     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116     eval "enable_${ac_feature}=no" ;;
117
118   -enable-* | --enable-*)
119     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120     # Reject names that are not valid shell variable names.
121     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123     fi
124     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125     case "$ac_option" in
126       *=*) ;;
127       *) ac_optarg=yes ;;
128     esac
129     eval "enable_${ac_feature}='$ac_optarg'" ;;
130
131   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133   | --exec | --exe | --ex)
134     ac_prev=exec_prefix ;;
135   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137   | --exec=* | --exe=* | --ex=*)
138     exec_prefix="$ac_optarg" ;;
139
140   -gas | --gas | --ga | --g)
141     # Obsolete; use --with-gas.
142     with_gas=yes ;;
143
144   -help | --help | --hel | --he)
145     # Omit some internal or obsolete options to make the list less imposing.
146     # This message is too long to be a string in the A/UX 3.1 sh.
147     cat << EOF
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
150 Configuration:
151   --cache-file=FILE       cache test results in FILE
152   --help                  print this message
153   --no-create             do not create output files
154   --quiet, --silent       do not print \`checking...' messages
155   --version               print the version of autoconf that created configure
156 Directory and file names:
157   --prefix=PREFIX         install architecture-independent files in PREFIX
158                           [$ac_default_prefix]
159   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
160                           [same as prefix]
161   --bindir=DIR            user executables in DIR [EPREFIX/bin]
162   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
163   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
164   --datadir=DIR           read-only architecture-independent data in DIR
165                           [PREFIX/share]
166   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
167   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
168                           [PREFIX/com]
169   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
170   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
171   --includedir=DIR        C header files in DIR [PREFIX/include]
172   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
173   --infodir=DIR           info documentation in DIR [PREFIX/info]
174   --mandir=DIR            man documentation in DIR [PREFIX/man]
175   --srcdir=DIR            find the sources in DIR [configure dir or ..]
176   --program-prefix=PREFIX prepend PREFIX to installed program names
177   --program-suffix=SUFFIX append SUFFIX to installed program names
178   --program-transform-name=PROGRAM
179                           run sed PROGRAM on installed program names
180 EOF
181     cat << EOF
182 Host type:
183   --build=BUILD           configure for building on BUILD [BUILD=HOST]
184   --host=HOST             configure for HOST [guessed]
185   --target=TARGET         configure for TARGET [TARGET=HOST]
186 Features and packages:
187   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
188   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
189   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
190   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
191   --x-includes=DIR        X include files are in DIR
192   --x-libraries=DIR       X library files are in DIR
193 EOF
194     if test -n "$ac_help"; then
195       echo "--enable and --with options recognized:$ac_help"
196     fi
197     exit 0 ;;
198
199   -host | --host | --hos | --ho)
200     ac_prev=host ;;
201   -host=* | --host=* | --hos=* | --ho=*)
202     host="$ac_optarg" ;;
203
204   -includedir | --includedir | --includedi | --included | --include \
205   | --includ | --inclu | --incl | --inc)
206     ac_prev=includedir ;;
207   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208   | --includ=* | --inclu=* | --incl=* | --inc=*)
209     includedir="$ac_optarg" ;;
210
211   -infodir | --infodir | --infodi | --infod | --info | --inf)
212     ac_prev=infodir ;;
213   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214     infodir="$ac_optarg" ;;
215
216   -libdir | --libdir | --libdi | --libd)
217     ac_prev=libdir ;;
218   -libdir=* | --libdir=* | --libdi=* | --libd=*)
219     libdir="$ac_optarg" ;;
220
221   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222   | --libexe | --libex | --libe)
223     ac_prev=libexecdir ;;
224   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225   | --libexe=* | --libex=* | --libe=*)
226     libexecdir="$ac_optarg" ;;
227
228   -localstatedir | --localstatedir | --localstatedi | --localstated \
229   | --localstate | --localstat | --localsta | --localst \
230   | --locals | --local | --loca | --loc | --lo)
231     ac_prev=localstatedir ;;
232   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235     localstatedir="$ac_optarg" ;;
236
237   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238     ac_prev=mandir ;;
239   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240     mandir="$ac_optarg" ;;
241
242   -nfp | --nfp | --nf)
243     # Obsolete; use --without-fp.
244     with_fp=no ;;
245
246   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247   | --no-cr | --no-c)
248     no_create=yes ;;
249
250   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252     no_recursion=yes ;;
253
254   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256   | --oldin | --oldi | --old | --ol | --o)
257     ac_prev=oldincludedir ;;
258   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261     oldincludedir="$ac_optarg" ;;
262
263   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264     ac_prev=prefix ;;
265   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266     prefix="$ac_optarg" ;;
267
268   -program-prefix | --program-prefix | --program-prefi | --program-pref \
269   | --program-pre | --program-pr | --program-p)
270     ac_prev=program_prefix ;;
271   -program-prefix=* | --program-prefix=* | --program-prefi=* \
272   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273     program_prefix="$ac_optarg" ;;
274
275   -program-suffix | --program-suffix | --program-suffi | --program-suff \
276   | --program-suf | --program-su | --program-s)
277     ac_prev=program_suffix ;;
278   -program-suffix=* | --program-suffix=* | --program-suffi=* \
279   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280     program_suffix="$ac_optarg" ;;
281
282   -program-transform-name | --program-transform-name \
283   | --program-transform-nam | --program-transform-na \
284   | --program-transform-n | --program-transform- \
285   | --program-transform | --program-transfor \
286   | --program-transfo | --program-transf \
287   | --program-trans | --program-tran \
288   | --progr-tra | --program-tr | --program-t)
289     ac_prev=program_transform_name ;;
290   -program-transform-name=* | --program-transform-name=* \
291   | --program-transform-nam=* | --program-transform-na=* \
292   | --program-transform-n=* | --program-transform-=* \
293   | --program-transform=* | --program-transfor=* \
294   | --program-transfo=* | --program-transf=* \
295   | --program-trans=* | --program-tran=* \
296   | --progr-tra=* | --program-tr=* | --program-t=*)
297     program_transform_name="$ac_optarg" ;;
298
299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300   | -silent | --silent | --silen | --sile | --sil)
301     silent=yes ;;
302
303   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304     ac_prev=sbindir ;;
305   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306   | --sbi=* | --sb=*)
307     sbindir="$ac_optarg" ;;
308
309   -sharedstatedir | --sharedstatedir | --sharedstatedi \
310   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311   | --sharedst | --shareds | --shared | --share | --shar \
312   | --sha | --sh)
313     ac_prev=sharedstatedir ;;
314   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317   | --sha=* | --sh=*)
318     sharedstatedir="$ac_optarg" ;;
319
320   -site | --site | --sit)
321     ac_prev=site ;;
322   -site=* | --site=* | --sit=*)
323     site="$ac_optarg" ;;
324
325   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326     ac_prev=srcdir ;;
327   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328     srcdir="$ac_optarg" ;;
329
330   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331   | --syscon | --sysco | --sysc | --sys | --sy)
332     ac_prev=sysconfdir ;;
333   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335     sysconfdir="$ac_optarg" ;;
336
337   -target | --target | --targe | --targ | --tar | --ta | --t)
338     ac_prev=target ;;
339   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340     target="$ac_optarg" ;;
341
342   -v | -verbose | --verbose | --verbos | --verbo | --verb)
343     verbose=yes ;;
344
345   -version | --version | --versio | --versi | --vers)
346     echo "configure generated by autoconf version 2.13"
347     exit 0 ;;
348
349   -with-* | --with-*)
350     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351     # Reject names that are not valid shell variable names.
352     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354     fi
355     ac_package=`echo $ac_package| sed 's/-/_/g'`
356     case "$ac_option" in
357       *=*) ;;
358       *) ac_optarg=yes ;;
359     esac
360     eval "with_${ac_package}='$ac_optarg'" ;;
361
362   -without-* | --without-*)
363     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364     # Reject names that are not valid shell variable names.
365     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367     fi
368     ac_package=`echo $ac_package| sed 's/-/_/g'`
369     eval "with_${ac_package}=no" ;;
370
371   --x)
372     # Obsolete; use --with-x.
373     with_x=yes ;;
374
375   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376   | --x-incl | --x-inc | --x-in | --x-i)
377     ac_prev=x_includes ;;
378   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380     x_includes="$ac_optarg" ;;
381
382   -x-libraries | --x-libraries | --x-librarie | --x-librari \
383   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384     ac_prev=x_libraries ;;
385   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387     x_libraries="$ac_optarg" ;;
388
389   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390     ;;
391
392   *)
393     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394       echo "configure: warning: $ac_option: invalid host type" 1>&2
395     fi
396     if test "x$nonopt" != xNONE; then
397       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398     fi
399     nonopt="$ac_option"
400     ;;
401
402   esac
403 done
404
405 if test -n "$ac_prev"; then
406   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 fi
408
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410
411 # File descriptor usage:
412 # 0 standard input
413 # 1 file creation
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
420   exec 6>/dev/null
421 else
422   exec 6>&1
423 fi
424 exec 5>./config.log
425
426 echo "\
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
429 " 1>&5
430
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
433 ac_configure_args=
434 for ac_arg
435 do
436   case "$ac_arg" in
437   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438   | --no-cr | --no-c) ;;
439   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444   esac
445 done
446
447 # NLS nuisances.
448 # Only set these to C if already set.  These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
456
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 echo > confdefs.h
461
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=new_handler.cc
465
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468   ac_srcdir_defaulted=yes
469   # Try the directory containing this script, then its parent.
470   ac_prog=$0
471   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473   srcdir=$ac_confdir
474   if test ! -r $srcdir/$ac_unique_file; then
475     srcdir=..
476   fi
477 else
478   ac_srcdir_defaulted=no
479 fi
480 if test ! -r $srcdir/$ac_unique_file; then
481   if test "$ac_srcdir_defaulted" = yes; then
482     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483   else
484     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485   fi
486 fi
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491   if test "x$prefix" != xNONE; then
492     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493   else
494     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495   fi
496 fi
497 for ac_site_file in $CONFIG_SITE; do
498   if test -r "$ac_site_file"; then
499     echo "loading site script $ac_site_file"
500     . "$ac_site_file"
501   fi
502 done
503
504 if test -r "$cache_file"; then
505   echo "loading cache $cache_file"
506   . $cache_file
507 else
508   echo "creating cache $cache_file"
509   > $cache_file
510 fi
511
512 ac_ext=c
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
518
519 ac_exeext=
520 ac_objext=o
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524     ac_n= ac_c='
525 ' ac_t='        '
526   else
527     ac_n=-n ac_c= ac_t=
528   fi
529 else
530   ac_n= ac_c='\c' ac_t=
531 fi
532
533
534 ac_aux_dir=
535 for ac_dir in .. $srcdir/..; do
536   if test -f $ac_dir/install-sh; then
537     ac_aux_dir=$ac_dir
538     ac_install_sh="$ac_aux_dir/install-sh -c"
539     break
540   elif test -f $ac_dir/install.sh; then
541     ac_aux_dir=$ac_dir
542     ac_install_sh="$ac_aux_dir/install.sh -c"
543     break
544   fi
545 done
546 if test -z "$ac_aux_dir"; then
547   { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
548 fi
549 ac_config_guess=$ac_aux_dir/config.guess
550 ac_config_sub=$ac_aux_dir/config.sub
551 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
552
553
554 PACKAGE=libsupc++
555 VERSION=3.0
556
557
558
559
560 # Do some error checking and defaulting for the host and target type.
561 # The inputs are:
562 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
563 #
564 # The rules are:
565 # 1. You are not allowed to specify --host, --target, and nonopt at the
566 #    same time.
567 # 2. Host defaults to nonopt.
568 # 3. If nonopt is not specified, then host defaults to the current host,
569 #    as determined by config.guess.
570 # 4. Target and build default to nonopt.
571 # 5. If nonopt is not specified, then target and build default to host.
572
573 # The aliases save the names the user supplied, while $host etc.
574 # will get canonicalized.
575 case $host---$target---$nonopt in
576 NONE---*---* | *---NONE---* | *---*---NONE) ;;
577 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
578 esac
579
580
581 # Make sure we can run config.sub.
582 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
583 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
584 fi
585
586 echo $ac_n "checking host system type""... $ac_c" 1>&6
587 echo "configure:588: checking host system type" >&5
588
589 host_alias=$host
590 case "$host_alias" in
591 NONE)
592   case $nonopt in
593   NONE)
594     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
595     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
596     fi ;;
597   *) host_alias=$nonopt ;;
598   esac ;;
599 esac
600
601 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
602 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
603 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
604 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
605 echo "$ac_t""$host" 1>&6
606
607 echo $ac_n "checking target system type""... $ac_c" 1>&6
608 echo "configure:609: checking target system type" >&5
609
610 target_alias=$target
611 case "$target_alias" in
612 NONE)
613   case $nonopt in
614   NONE) target_alias=$host_alias ;;
615   *) target_alias=$nonopt ;;
616   esac ;;
617 esac
618
619 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
620 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623 echo "$ac_t""$target" 1>&6
624
625 echo $ac_n "checking build system type""... $ac_c" 1>&6
626 echo "configure:627: checking build system type" >&5
627
628 build_alias=$build
629 case "$build_alias" in
630 NONE)
631   case $nonopt in
632   NONE) build_alias=$host_alias ;;
633   *) build_alias=$nonopt ;;
634   esac ;;
635 esac
636
637 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
638 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$build" 1>&6
642
643 test "$host_alias" != "$target_alias" &&
644   test "$program_prefix$program_suffix$program_transform_name" = \
645     NONENONEs,x,x, &&
646   program_prefix=${target_alias}-
647
648 # Check whether --enable-shared or --disable-shared was given.
649 if test "${enable_shared+set}" = set; then
650   enableval="$enable_shared"
651   p=${PACKAGE-default}
652 case "$enableval" in
653 yes) enable_shared=yes ;;
654 no) enable_shared=no ;;
655 *)
656   enable_shared=no
657   # Look at the argument we got.  We use all the common list separators.
658   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
659   for pkg in $enableval; do
660     if test "X$pkg" = "X$p"; then
661       enable_shared=yes
662     fi
663   done
664   IFS="$ac_save_ifs"
665   ;;
666 esac
667 else
668   enable_shared=yes
669 fi
670
671 # Check whether --enable-static or --disable-static was given.
672 if test "${enable_static+set}" = set; then
673   enableval="$enable_static"
674   p=${PACKAGE-default}
675 case "$enableval" in
676 yes) enable_static=yes ;;
677 no) enable_static=no ;;
678 *)
679   enable_static=no
680   # Look at the argument we got.  We use all the common list separators.
681   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
682   for pkg in $enableval; do
683     if test "X$pkg" = "X$p"; then
684       enable_static=yes
685     fi
686   done
687   IFS="$ac_save_ifs"
688   ;;
689 esac
690 else
691   enable_static=yes
692 fi
693
694 # Check whether --enable-fast-install or --disable-fast-install was given.
695 if test "${enable_fast_install+set}" = set; then
696   enableval="$enable_fast_install"
697   p=${PACKAGE-default}
698 case "$enableval" in
699 yes) enable_fast_install=yes ;;
700 no) enable_fast_install=no ;;
701 *)
702   enable_fast_install=no
703   # Look at the argument we got.  We use all the common list separators.
704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
705   for pkg in $enableval; do
706     if test "X$pkg" = "X$p"; then
707       enable_fast_install=yes
708     fi
709   done
710   IFS="$ac_save_ifs"
711   ;;
712 esac
713 else
714   enable_fast_install=yes
715 fi
716
717 # Extract the first word of "ranlib", so it can be a program name with args.
718 set dummy ranlib; ac_word=$2
719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
720 echo "configure:721: checking for $ac_word" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
722   echo $ac_n "(cached) $ac_c" 1>&6
723 else
724   if test -n "$RANLIB"; then
725   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
726 else
727   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
728   ac_dummy="$PATH"
729   for ac_dir in $ac_dummy; do
730     test -z "$ac_dir" && ac_dir=.
731     if test -f $ac_dir/$ac_word; then
732       ac_cv_prog_RANLIB="ranlib"
733       break
734     fi
735   done
736   IFS="$ac_save_ifs"
737   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
738 fi
739 fi
740 RANLIB="$ac_cv_prog_RANLIB"
741 if test -n "$RANLIB"; then
742   echo "$ac_t""$RANLIB" 1>&6
743 else
744   echo "$ac_t""no" 1>&6
745 fi
746
747 # Extract the first word of "gcc", so it can be a program name with args.
748 set dummy gcc; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752   echo $ac_n "(cached) $ac_c" 1>&6
753 else
754   if test -n "$CC"; then
755   ac_cv_prog_CC="$CC" # Let the user override the test.
756 else
757   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
758   ac_dummy="$PATH"
759   for ac_dir in $ac_dummy; do
760     test -z "$ac_dir" && ac_dir=.
761     if test -f $ac_dir/$ac_word; then
762       ac_cv_prog_CC="gcc"
763       break
764     fi
765   done
766   IFS="$ac_save_ifs"
767 fi
768 fi
769 CC="$ac_cv_prog_CC"
770 if test -n "$CC"; then
771   echo "$ac_t""$CC" 1>&6
772 else
773   echo "$ac_t""no" 1>&6
774 fi
775
776 if test -z "$CC"; then
777   # Extract the first word of "cc", so it can be a program name with args.
778 set dummy cc; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782   echo $ac_n "(cached) $ac_c" 1>&6
783 else
784   if test -n "$CC"; then
785   ac_cv_prog_CC="$CC" # Let the user override the test.
786 else
787   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
788   ac_prog_rejected=no
789   ac_dummy="$PATH"
790   for ac_dir in $ac_dummy; do
791     test -z "$ac_dir" && ac_dir=.
792     if test -f $ac_dir/$ac_word; then
793       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
794         ac_prog_rejected=yes
795         continue
796       fi
797       ac_cv_prog_CC="cc"
798       break
799     fi
800   done
801   IFS="$ac_save_ifs"
802 if test $ac_prog_rejected = yes; then
803   # We found a bogon in the path, so make sure we never use it.
804   set dummy $ac_cv_prog_CC
805   shift
806   if test $# -gt 0; then
807     # We chose a different compiler from the bogus one.
808     # However, it has the same basename, so the bogon will be chosen
809     # first if we set CC to just the basename; use the full file name.
810     shift
811     set dummy "$ac_dir/$ac_word" "$@"
812     shift
813     ac_cv_prog_CC="$@"
814   fi
815 fi
816 fi
817 fi
818 CC="$ac_cv_prog_CC"
819 if test -n "$CC"; then
820   echo "$ac_t""$CC" 1>&6
821 else
822   echo "$ac_t""no" 1>&6
823 fi
824
825   if test -z "$CC"; then
826     case "`uname -s`" in
827     *win32* | *WIN32*)
828       # Extract the first word of "cl", so it can be a program name with args.
829 set dummy cl; ac_word=$2
830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831 echo "configure:832: checking for $ac_word" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
833   echo $ac_n "(cached) $ac_c" 1>&6
834 else
835   if test -n "$CC"; then
836   ac_cv_prog_CC="$CC" # Let the user override the test.
837 else
838   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
839   ac_dummy="$PATH"
840   for ac_dir in $ac_dummy; do
841     test -z "$ac_dir" && ac_dir=.
842     if test -f $ac_dir/$ac_word; then
843       ac_cv_prog_CC="cl"
844       break
845     fi
846   done
847   IFS="$ac_save_ifs"
848 fi
849 fi
850 CC="$ac_cv_prog_CC"
851 if test -n "$CC"; then
852   echo "$ac_t""$CC" 1>&6
853 else
854   echo "$ac_t""no" 1>&6
855 fi
856  ;;
857     esac
858   fi
859   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
860 fi
861
862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
863 echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
864
865 ac_ext=c
866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
867 ac_cpp='$CPP $CPPFLAGS'
868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
870 cross_compiling=$ac_cv_prog_cc_cross
871
872 cat > conftest.$ac_ext << EOF
873
874 #line 875 "configure"
875 #include "confdefs.h"
876
877 main(){return(0);}
878 EOF
879 if { (eval echo configure:880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
880   ac_cv_prog_cc_works=yes
881   # If we can't run a trivial program, we are probably using a cross compiler.
882   if (./conftest; exit) 2>/dev/null; then
883     ac_cv_prog_cc_cross=no
884   else
885     ac_cv_prog_cc_cross=yes
886   fi
887 else
888   echo "configure: failed program was:" >&5
889   cat conftest.$ac_ext >&5
890   ac_cv_prog_cc_works=no
891 fi
892 rm -fr conftest*
893 ac_ext=c
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling=$ac_cv_prog_cc_cross
899
900 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
901 if test $ac_cv_prog_cc_works = no; then
902   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
903 fi
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
906 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
907 cross_compiling=$ac_cv_prog_cc_cross
908
909 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
910 echo "configure:911: checking whether we are using GNU C" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
912   echo $ac_n "(cached) $ac_c" 1>&6
913 else
914   cat > conftest.c <<EOF
915 #ifdef __GNUC__
916   yes;
917 #endif
918 EOF
919 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
920   ac_cv_prog_gcc=yes
921 else
922   ac_cv_prog_gcc=no
923 fi
924 fi
925
926 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
927
928 if test $ac_cv_prog_gcc = yes; then
929   GCC=yes
930 else
931   GCC=
932 fi
933
934 ac_test_CFLAGS="${CFLAGS+set}"
935 ac_save_CFLAGS="$CFLAGS"
936 CFLAGS=
937 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
938 echo "configure:939: checking whether ${CC-cc} accepts -g" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
940   echo $ac_n "(cached) $ac_c" 1>&6
941 else
942   echo 'void f(){}' > conftest.c
943 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
944   ac_cv_prog_cc_g=yes
945 else
946   ac_cv_prog_cc_g=no
947 fi
948 rm -f conftest*
949
950 fi
951
952 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
953 if test "$ac_test_CFLAGS" = set; then
954   CFLAGS="$ac_save_CFLAGS"
955 elif test $ac_cv_prog_cc_g = yes; then
956   if test "$GCC" = yes; then
957     CFLAGS="-g -O2"
958   else
959     CFLAGS="-g"
960   fi
961 else
962   if test "$GCC" = yes; then
963     CFLAGS="-O2"
964   else
965     CFLAGS=
966   fi
967 fi
968
969 # Check whether --with-gnu-ld or --without-gnu-ld was given.
970 if test "${with_gnu_ld+set}" = set; then
971   withval="$with_gnu_ld"
972   test "$withval" = no || with_gnu_ld=yes
973 else
974   with_gnu_ld=no
975 fi
976
977 ac_prog=ld
978 if test "$ac_cv_prog_gcc" = yes; then
979   # Check if gcc -print-prog-name=ld gives a path.
980   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
981 echo "configure:982: checking for ld used by GCC" >&5
982   ac_prog=`($CC -print-prog-name=ld) 2>&5`
983   case "$ac_prog" in
984     # Accept absolute paths.
985     [\\/]* | [A-Za-z]:[\\/]*)
986       re_direlt='/[^/][^/]*/\.\./'
987       # Canonicalize the path of ld
988       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
989       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
990         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
991       done
992       test -z "$LD" && LD="$ac_prog"
993       ;;
994   "")
995     # If it fails, then pretend we aren't using GCC.
996     ac_prog=ld
997     ;;
998   *)
999     # If it is relative, then search for the first ld in PATH.
1000     with_gnu_ld=unknown
1001     ;;
1002   esac
1003 elif test "$with_gnu_ld" = yes; then
1004   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1005 echo "configure:1006: checking for GNU ld" >&5
1006 else
1007   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1008 echo "configure:1009: checking for non-GNU ld" >&5
1009 fi
1010 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1011   echo $ac_n "(cached) $ac_c" 1>&6
1012 else
1013   if test -z "$LD"; then
1014   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1015   for ac_dir in $PATH; do
1016     test -z "$ac_dir" && ac_dir=.
1017     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1018       ac_cv_path_LD="$ac_dir/$ac_prog"
1019       # Check to see if the program is GNU ld.  I'd rather use --version,
1020       # but apparently some GNU ld's only accept -v.
1021       # Break only if it was the GNU/non-GNU ld that we prefer.
1022       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1023         test "$with_gnu_ld" != no && break
1024       else
1025         test "$with_gnu_ld" != yes && break
1026       fi
1027     fi
1028   done
1029   IFS="$ac_save_ifs"
1030 else
1031   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1032 fi
1033 fi
1034
1035 LD="$ac_cv_path_LD"
1036 if test -n "$LD"; then
1037   echo "$ac_t""$LD" 1>&6
1038 else
1039   echo "$ac_t""no" 1>&6
1040 fi
1041 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1042 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1043 echo "configure:1044: checking if the linker ($LD) is GNU ld" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1045   echo $ac_n "(cached) $ac_c" 1>&6
1046 else
1047   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1048 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1049   ac_cv_prog_gnu_ld=yes
1050 else
1051   ac_cv_prog_gnu_ld=no
1052 fi
1053 fi
1054
1055 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1056
1057
1058 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1059 echo "configure:1060: checking for BSD-compatible nm" >&5
1060 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1061   echo $ac_n "(cached) $ac_c" 1>&6
1062 else
1063   if test -n "$NM"; then
1064   # Let the user override the test.
1065   ac_cv_path_NM="$NM"
1066 else
1067   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1068   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1069     test -z "$ac_dir" && ac_dir=.
1070     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1071       # Check to see if the nm accepts a BSD-compat flag.
1072       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1073       #   nm: unknown option "B" ignored
1074       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1075         ac_cv_path_NM="$ac_dir/nm -B"
1076         break
1077       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1078         ac_cv_path_NM="$ac_dir/nm -p"
1079         break
1080       else
1081         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1082         continue # so that we can try to find one that supports BSD flags
1083       fi
1084     fi
1085   done
1086   IFS="$ac_save_ifs"
1087   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1088 fi
1089 fi
1090
1091 NM="$ac_cv_path_NM"
1092 echo "$ac_t""$NM" 1>&6
1093
1094 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether ln -s works" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1097   echo $ac_n "(cached) $ac_c" 1>&6
1098 else
1099   rm -f conftestdata
1100 if ln -s X conftestdata 2>/dev/null
1101 then
1102   rm -f conftestdata
1103   ac_cv_prog_LN_S="ln -s"
1104 else
1105   ac_cv_prog_LN_S=ln
1106 fi
1107 fi
1108 LN_S="$ac_cv_prog_LN_S"
1109 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1110   echo "$ac_t""yes" 1>&6
1111 else
1112   echo "$ac_t""no" 1>&6
1113 fi
1114
1115
1116 case "$target" in
1117 NONE) lt_target="$host" ;;
1118 *) lt_target="$target" ;;
1119 esac
1120
1121 # Check for any special flags to pass to ltconfig.
1122 #
1123 # the following will cause an existing older ltconfig to fail, so
1124 # we ignore this at the expense of the cache file... Checking this 
1125 # will just take longer ... bummer!
1126 #libtool_flags="--cache-file=$cache_file"
1127 #
1128 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1129 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1130 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1131 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1132 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1133
1134
1135 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1136 if test "${enable_libtool_lock+set}" = set; then
1137   enableval="$enable_libtool_lock"
1138   :
1139 fi
1140
1141 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1142 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1143
1144 # Some flags need to be propagated to the compiler or linker for good
1145 # libtool support.
1146 case "$lt_target" in
1147 *-*-irix6*)
1148   # Find out which ABI we are using.
1149   echo '#line 1150 "configure"' > conftest.$ac_ext
1150   if { (eval echo configure:1151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1151     case "`/usr/bin/file conftest.o`" in
1152     *32-bit*)
1153       LD="${LD-ld} -32"
1154       ;;
1155     *N32*)
1156       LD="${LD-ld} -n32"
1157       ;;
1158     *64-bit*)
1159       LD="${LD-ld} -64"
1160       ;;
1161     esac
1162   fi
1163   rm -rf conftest*
1164   ;;
1165
1166 *-*-sco3.2v5*)
1167   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1168   SAVE_CFLAGS="$CFLAGS"
1169   CFLAGS="$CFLAGS -belf"
1170   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether the C compiler needs -belf" >&5
1172 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1173   echo $ac_n "(cached) $ac_c" 1>&6
1174 else
1175   cat > conftest.$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1178
1179 int main() {
1180
1181 ; return 0; }
1182 EOF
1183 if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1184   rm -rf conftest*
1185   lt_cv_cc_needs_belf=yes
1186 else
1187   echo "configure: failed program was:" >&5
1188   cat conftest.$ac_ext >&5
1189   rm -rf conftest*
1190   lt_cv_cc_needs_belf=no
1191 fi
1192 rm -f conftest*
1193 fi
1194
1195 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1196   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1197     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1198     CFLAGS="$SAVE_CFLAGS"
1199   fi
1200   ;;
1201
1202
1203 esac
1204
1205
1206 # Save cache, so that ltconfig can load it
1207 cat > confcache <<\EOF
1208 # This file is a shell script that caches the results of configure
1209 # tests run on this system so they can be shared between configure
1210 # scripts and configure runs.  It is not useful on other systems.
1211 # If it contains results you don't want to keep, you may remove or edit it.
1212 #
1213 # By default, configure uses ./config.cache as the cache file,
1214 # creating it if it does not exist already.  You can give configure
1215 # the --cache-file=FILE option to use a different cache file; that is
1216 # what configure does when it calls configure scripts in
1217 # subdirectories, so they share the cache.
1218 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1219 # config.status only pays attention to the cache file if you give it the
1220 # --recheck option to rerun configure.
1221 #
1222 EOF
1223 # The following way of writing the cache mishandles newlines in values,
1224 # but we know of no workaround that is simple, portable, and efficient.
1225 # So, don't put newlines in cache variables' values.
1226 # Ultrix sh set writes to stderr and can't be redirected directly,
1227 # and sets the high bit in the cache file unless we assign to the vars.
1228 (set) 2>&1 |
1229   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1230   *ac_space=\ *)
1231     # `set' does not quote correctly, so add quotes (double-quote substitution
1232     # turns \\\\ into \\, and sed turns \\ into \).
1233     sed -n \
1234       -e "s/'/'\\\\''/g" \
1235       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1236     ;;
1237   *)
1238     # `set' quotes correctly as required by POSIX, so do not add quotes.
1239     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1240     ;;
1241   esac >> confcache
1242 if cmp -s $cache_file confcache; then
1243   :
1244 else
1245   if test -w $cache_file; then
1246     echo "updating cache $cache_file"
1247     cat confcache > $cache_file
1248   else
1249     echo "not updating unwritable cache $cache_file"
1250   fi
1251 fi
1252 rm -f confcache
1253
1254
1255 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1256 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1257 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1258 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1259 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1260 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1261 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1262 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1263
1264 # Reload cache, that may have been modified by ltconfig
1265 if test -r "$cache_file"; then
1266   echo "loading cache $cache_file"
1267   . $cache_file
1268 else
1269   echo "creating cache $cache_file"
1270   > $cache_file
1271 fi
1272
1273
1274 # This can be used to rebuild libtool when needed
1275 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1276
1277 # Always use our own libtool.
1278 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1279
1280 # Redirect the config.log output again, so that the ltconfig log is not
1281 # clobbered by the next message.
1282 exec 5>>./config.log
1283
1284 # Find a good install program.  We prefer a C program (faster),
1285 # so one script is as good as another.  But avoid the broken or
1286 # incompatible versions:
1287 # SysV /etc/install, /usr/sbin/install
1288 # SunOS /usr/etc/install
1289 # IRIX /sbin/install
1290 # AIX /bin/install
1291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1294 # ./install, which can be erroneously created by make from ./install.sh.
1295 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1296 echo "configure:1297: checking for a BSD compatible install" >&5
1297 if test -z "$INSTALL"; then
1298 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1299   echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1302   for ac_dir in $PATH; do
1303     # Account for people who put trailing slashes in PATH elements.
1304     case "$ac_dir/" in
1305     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1306     *)
1307       # OSF1 and SCO ODT 3.0 have their own names for install.
1308       # Don't use installbsd from OSF since it installs stuff as root
1309       # by default.
1310       for ac_prog in ginstall scoinst install; do
1311         if test -f $ac_dir/$ac_prog; then
1312           if test $ac_prog = install &&
1313             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1314             # AIX install.  It has an incompatible calling convention.
1315             :
1316           else
1317             ac_cv_path_install="$ac_dir/$ac_prog -c"
1318             break 2
1319           fi
1320         fi
1321       done
1322       ;;
1323     esac
1324   done
1325   IFS="$ac_save_IFS"
1326
1327 fi
1328   if test "${ac_cv_path_install+set}" = set; then
1329     INSTALL="$ac_cv_path_install"
1330   else
1331     # As a last resort, use the slow shell script.  We don't cache a
1332     # path for INSTALL within a source directory, because that will
1333     # break other packages using the cache if that directory is
1334     # removed, or if the path is relative.
1335     INSTALL="$ac_install_sh"
1336   fi
1337 fi
1338 echo "$ac_t""$INSTALL" 1>&6
1339
1340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1341 # It thinks the first close brace ends the variable substitution.
1342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1343
1344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1345
1346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1347
1348 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1349 do
1350 # Extract the first word of "$ac_prog", so it can be a program name with args.
1351 set dummy $ac_prog; ac_word=$2
1352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353 echo "configure:1354: checking for $ac_word" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1355   echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357   if test -n "$CXX"; then
1358   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1359 else
1360   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1361   ac_dummy="$PATH"
1362   for ac_dir in $ac_dummy; do
1363     test -z "$ac_dir" && ac_dir=.
1364     if test -f $ac_dir/$ac_word; then
1365       ac_cv_prog_CXX="$ac_prog"
1366       break
1367     fi
1368   done
1369   IFS="$ac_save_ifs"
1370 fi
1371 fi
1372 CXX="$ac_cv_prog_CXX"
1373 if test -n "$CXX"; then
1374   echo "$ac_t""$CXX" 1>&6
1375 else
1376   echo "$ac_t""no" 1>&6
1377 fi
1378
1379 test -n "$CXX" && break
1380 done
1381 test -n "$CXX" || CXX="gcc"
1382
1383
1384 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1385 echo "configure:1386: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1386
1387 ac_ext=C
1388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1389 ac_cpp='$CXXCPP $CPPFLAGS'
1390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1392 cross_compiling=$ac_cv_prog_cxx_cross
1393
1394 cat > conftest.$ac_ext << EOF
1395
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398
1399 int main(){return(0);}
1400 EOF
1401 if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1402   ac_cv_prog_cxx_works=yes
1403   # If we can't run a trivial program, we are probably using a cross compiler.
1404   if (./conftest; exit) 2>/dev/null; then
1405     ac_cv_prog_cxx_cross=no
1406   else
1407     ac_cv_prog_cxx_cross=yes
1408   fi
1409 else
1410   echo "configure: failed program was:" >&5
1411   cat conftest.$ac_ext >&5
1412   ac_cv_prog_cxx_works=no
1413 fi
1414 rm -fr conftest*
1415 ac_ext=c
1416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1417 ac_cpp='$CPP $CPPFLAGS'
1418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1420 cross_compiling=$ac_cv_prog_cc_cross
1421
1422 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1423 if test $ac_cv_prog_cxx_works = no; then
1424   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1425 fi
1426 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1428 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1429 cross_compiling=$ac_cv_prog_cxx_cross
1430
1431 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1432 echo "configure:1433: checking whether we are using GNU C++" >&5
1433 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1434   echo $ac_n "(cached) $ac_c" 1>&6
1435 else
1436   cat > conftest.C <<EOF
1437 #ifdef __GNUC__
1438   yes;
1439 #endif
1440 EOF
1441 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1442   ac_cv_prog_gxx=yes
1443 else
1444   ac_cv_prog_gxx=no
1445 fi
1446 fi
1447
1448 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1449
1450 if test $ac_cv_prog_gxx = yes; then
1451   GXX=yes
1452 else
1453   GXX=
1454 fi
1455
1456 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1457 ac_save_CXXFLAGS="$CXXFLAGS"
1458 CXXFLAGS=
1459 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1460 echo "configure:1461: checking whether ${CXX-g++} accepts -g" >&5
1461 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1462   echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464   echo 'void f(){}' > conftest.cc
1465 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1466   ac_cv_prog_cxx_g=yes
1467 else
1468   ac_cv_prog_cxx_g=no
1469 fi
1470 rm -f conftest*
1471
1472 fi
1473
1474 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1475 if test "$ac_test_CXXFLAGS" = set; then
1476   CXXFLAGS="$ac_save_CXXFLAGS"
1477 elif test $ac_cv_prog_cxx_g = yes; then
1478   if test "$GXX" = yes; then
1479     CXXFLAGS="-g -O2"
1480   else
1481     CXXFLAGS="-g"
1482   fi
1483 else
1484   if test "$GXX" = yes; then
1485     CXXFLAGS="-O2"
1486   else
1487     CXXFLAGS=
1488   fi
1489 fi
1490
1491 s%@SHELL@%$SHELL%g
1492 s%@CFLAGS@%$CFLAGS%g
1493 s%@CPPFLAGS@%$CPPFLAGS%g
1494 s%@CXXFLAGS@%$CXXFLAGS%g
1495 s%@FFLAGS@%$FFLAGS%g
1496 s%@DEFS@%$DEFS%g
1497 s%@LDFLAGS@%$LDFLAGS%g
1498 s%@LIBS@%$LIBS%g
1499 s%@exec_prefix@%$exec_prefix%g
1500 s%@prefix@%$prefix%g
1501 s%@program_transform_name@%$program_transform_name%g
1502 s%@bindir@%$bindir%g
1503 s%@sbindir@%$sbindir%g
1504 s%@libexecdir@%$libexecdir%g
1505 s%@datadir@%$datadir%g
1506 s%@sysconfdir@%$sysconfdir%g
1507 s%@sharedstatedir@%$sharedstatedir%g
1508 s%@localstatedir@%$localstatedir%g
1509 s%@libdir@%$libdir%g
1510 s%@includedir@%$includedir%g
1511 s%@oldincludedir@%$oldincludedir%g
1512 s%@infodir@%$infodir%g
1513 s%@mandir@%$mandir%g
1514 s%@PACKAGE@%$PACKAGE%g
1515 s%@VERSION@%$VERSION%g
1516 s%@host@%$host%g
1517 s%@host_alias@%$host_alias%g
1518 s%@host_cpu@%$host_cpu%g
1519 s%@host_vendor@%$host_vendor%g
1520 s%@host_os@%$host_os%g
1521 s%@target@%$target%g
1522 s%@target_alias@%$target_alias%g
1523 s%@target_cpu@%$target_cpu%g
1524 s%@target_vendor@%$target_vendor%g
1525 s%@target_os@%$target_os%g
1526 s%@build@%$build%g
1527 s%@build_alias@%$build_alias%g
1528 s%@build_cpu@%$build_cpu%g
1529 s%@build_vendor@%$build_vendor%g
1530 s%@build_os@%$build_os%g
1531 s%@RANLIB@%$RANLIB%g
1532 s%@CC@%$CC%g
1533 s%@LN_S@%$LN_S%g
1534 s%@LIBTOOL@%$LIBTOOL%g
1535 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1536 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1537 s%@INSTALL_DATA@%$INSTALL_DATA%g
1538 s%@CXX@%$CXX%g