OSDN Git Service

* ltmain.sh: Update from ToT Libtool.
[pf3gnuchains/gcc-fork.git] / boehm-gc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="gcj_mlc.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS LDFLAGS CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE extra_ldflags_libgc EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CXXCPP_set=${CXXCPP+set}
923 ac_env_CXXCPP_value=$CXXCPP
924 ac_cv_env_CXXCPP_set=${CXXCPP+set}
925 ac_cv_env_CXXCPP_value=$CXXCPP
926
927 #
928 # Report the --help message.
929 #
930 if test "$ac_init_help" = "long"; then
931   # Omit some internal or obsolete options to make the list less imposing.
932   # This message is too long to be a string in the A/UX 3.1 sh.
933   cat <<_ACEOF
934 \`configure' configures this package to adapt to many kinds of systems.
935
936 Usage: $0 [OPTION]... [VAR=VALUE]...
937
938 To assign environment variables (e.g., CC, CFLAGS...), specify them as
939 VAR=VALUE.  See below for descriptions of some of the useful variables.
940
941 Defaults for the options are specified in brackets.
942
943 Configuration:
944   -h, --help              display this help and exit
945       --help=short        display options specific to this package
946       --help=recursive    display the short help of all the included packages
947   -V, --version           display version information and exit
948   -q, --quiet, --silent   do not print \`checking...' messages
949       --cache-file=FILE   cache test results in FILE [disabled]
950   -C, --config-cache      alias for \`--cache-file=config.cache'
951   -n, --no-create         do not create output files
952       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
953
954 _ACEOF
955
956   cat <<_ACEOF
957 Installation directories:
958   --prefix=PREFIX         install architecture-independent files in PREFIX
959                           [$ac_default_prefix]
960   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
961                           [PREFIX]
962
963 By default, \`make install' will install all the files in
964 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
965 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
966 for instance \`--prefix=\$HOME'.
967
968 For better control, use the options below.
969
970 Fine tuning of the installation directories:
971   --bindir=DIR           user executables [EPREFIX/bin]
972   --sbindir=DIR          system admin executables [EPREFIX/sbin]
973   --libexecdir=DIR       program executables [EPREFIX/libexec]
974   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
975   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
976   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
977   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
978   --libdir=DIR           object code libraries [EPREFIX/lib]
979   --includedir=DIR       C header files [PREFIX/include]
980   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
981   --infodir=DIR          info documentation [PREFIX/info]
982   --mandir=DIR           man documentation [PREFIX/man]
983 _ACEOF
984
985   cat <<\_ACEOF
986
987 Program names:
988   --program-prefix=PREFIX            prepend PREFIX to installed program names
989   --program-suffix=SUFFIX            append SUFFIX to installed program names
990   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
991
992 System types:
993   --build=BUILD     configure for building on BUILD [guessed]
994   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
995   --target=TARGET   configure for building compilers for TARGET [HOST]
996 _ACEOF
997 fi
998
999 if test -n "$ac_init_help"; then
1000
1001   cat <<\_ACEOF
1002
1003 Optional Features:
1004   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1005   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1006   --enable-multilib       build many library versions (default)
1007   --disable-dependency-tracking  speeds up one-time build
1008   --enable-dependency-tracking   do not reject slow dependency extractors
1009   --enable-maintainer-mode  enable make rules and dependencies not useful
1010                           (and sometimes confusing) to the casual installer
1011   --enable-shared[=PKGS]
1012                           build shared libraries [default=yes]
1013   --enable-static[=PKGS]
1014                           build static libraries [default=yes]
1015   --enable-fast-install[=PKGS]
1016                           optimize for fast installation [default=yes]
1017   --disable-libtool-lock  avoid locking (might break parallel builds)
1018   --enable-parallel-mark        parallelize marking and free list construction
1019   --enable-gc-debug     include full support for pointer backtracing etc.
1020
1021 Optional Packages:
1022   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1023   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1024   --with-pic              try to use only PIC/non-PIC objects [default=use
1025                           both]
1026   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1027   --with-target-subdir=SUBDIR
1028                           configuring with a cross compiler
1029   --with-cross-host=HOST  configuring with a cross compiler
1030   --with-ecos             enable runtime eCos target support
1031
1032 Some influential environment variables:
1033   CC          C compiler command
1034   CFLAGS      C compiler flags
1035   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1036               nonstandard directory <lib dir>
1037   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038               headers in a nonstandard directory <include dir>
1039   CXX         C++ compiler command
1040   CXXFLAGS    C++ compiler flags
1041   CPP         C preprocessor
1042   CXXCPP      C++ preprocessor
1043
1044 Use these variables to override the choices made by `configure' or to help
1045 it to find libraries and programs with nonstandard names/locations.
1046
1047 _ACEOF
1048 fi
1049
1050 if test "$ac_init_help" = "recursive"; then
1051   # If there are subdirs, report their specific --help.
1052   ac_popdir=`pwd`
1053   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054     test -d $ac_dir || continue
1055     ac_builddir=.
1056
1057 if test "$ac_dir" != .; then
1058   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059   # A "../" for each directory in $ac_dir_suffix.
1060   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1061 else
1062   ac_dir_suffix= ac_top_builddir=
1063 fi
1064
1065 case $srcdir in
1066   .)  # No --srcdir option.  We are building in place.
1067     ac_srcdir=.
1068     if test -z "$ac_top_builddir"; then
1069        ac_top_srcdir=.
1070     else
1071        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1072     fi ;;
1073   [\\/]* | ?:[\\/]* )  # Absolute path.
1074     ac_srcdir=$srcdir$ac_dir_suffix;
1075     ac_top_srcdir=$srcdir ;;
1076   *) # Relative path.
1077     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079 esac
1080
1081 # Do not use `cd foo && pwd` to compute absolute paths, because
1082 # the directories may not exist.
1083 case `pwd` in
1084 .) ac_abs_builddir="$ac_dir";;
1085 *)
1086   case "$ac_dir" in
1087   .) ac_abs_builddir=`pwd`;;
1088   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1089   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1090   esac;;
1091 esac
1092 case $ac_abs_builddir in
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *)
1095   case ${ac_top_builddir}. in
1096   .) ac_abs_top_builddir=$ac_abs_builddir;;
1097   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1099   esac;;
1100 esac
1101 case $ac_abs_builddir in
1102 .) ac_abs_srcdir=$ac_srcdir;;
1103 *)
1104   case $ac_srcdir in
1105   .) ac_abs_srcdir=$ac_abs_builddir;;
1106   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1108   esac;;
1109 esac
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *)
1113   case $ac_top_srcdir in
1114   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1115   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1117   esac;;
1118 esac
1119
1120     cd $ac_dir
1121     # Check for guested configure; otherwise get Cygnus style configure.
1122     if test -f $ac_srcdir/configure.gnu; then
1123       echo
1124       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1125     elif test -f $ac_srcdir/configure; then
1126       echo
1127       $SHELL $ac_srcdir/configure  --help=recursive
1128     elif test -f $ac_srcdir/configure.ac ||
1129            test -f $ac_srcdir/configure.in; then
1130       echo
1131       $ac_configure --help
1132     else
1133       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1134     fi
1135     cd $ac_popdir
1136   done
1137 fi
1138
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1141   cat <<\_ACEOF
1142
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1146 _ACEOF
1147   exit 0
1148 fi
1149 exec 5>config.log
1150 cat >&5 <<_ACEOF
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1153
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.59.  Invocation command line was
1156
1157   $ $0 $@
1158
1159 _ACEOF
1160 {
1161 cat <<_ASUNAME
1162 ## --------- ##
1163 ## Platform. ##
1164 ## --------- ##
1165
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1174
1175 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1176 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1179 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1180 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1181 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1182
1183 _ASUNAME
1184
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 for as_dir in $PATH
1187 do
1188   IFS=$as_save_IFS
1189   test -z "$as_dir" && as_dir=.
1190   echo "PATH: $as_dir"
1191 done
1192
1193 } >&5
1194
1195 cat >&5 <<_ACEOF
1196
1197
1198 ## ----------- ##
1199 ## Core tests. ##
1200 ## ----------- ##
1201
1202 _ACEOF
1203
1204
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_configure_args=
1211 ac_configure_args0=
1212 ac_configure_args1=
1213 ac_sep=
1214 ac_must_keep_next=false
1215 for ac_pass in 1 2
1216 do
1217   for ac_arg
1218   do
1219     case $ac_arg in
1220     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222     | -silent | --silent | --silen | --sile | --sil)
1223       continue ;;
1224     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226     esac
1227     case $ac_pass in
1228     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229     2)
1230       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231       if test $ac_must_keep_next = true; then
1232         ac_must_keep_next=false # Got value, back to normal.
1233       else
1234         case $ac_arg in
1235           *=* | --config-cache | -C | -disable-* | --disable-* \
1236           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238           | -with-* | --with-* | -without-* | --without-* | --x)
1239             case "$ac_configure_args0 " in
1240               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241             esac
1242             ;;
1243           -* ) ac_must_keep_next=true ;;
1244         esac
1245       fi
1246       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247       # Get rid of the leading space.
1248       ac_sep=" "
1249       ;;
1250     esac
1251   done
1252 done
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log.  We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262   # Save into config.log some information that might help in debugging.
1263   {
1264     echo
1265
1266     cat <<\_ASBOX
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1270 _ASBOX
1271     echo
1272     # The following way of writing the cache mishandles newlines in values,
1273 {
1274   (set) 2>&1 |
1275     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276     *ac_space=\ *)
1277       sed -n \
1278         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280       ;;
1281     *)
1282       sed -n \
1283         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284       ;;
1285     esac;
1286 }
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1293 _ASBOX
1294     echo
1295     for ac_var in $ac_subst_vars
1296     do
1297       eval ac_val=$`echo $ac_var`
1298       echo "$ac_var='"'"'$ac_val'"'"'"
1299     done | sort
1300     echo
1301
1302     if test -n "$ac_subst_files"; then
1303       cat <<\_ASBOX
1304 ## ------------- ##
1305 ## Output files. ##
1306 ## ------------- ##
1307 _ASBOX
1308       echo
1309       for ac_var in $ac_subst_files
1310       do
1311         eval ac_val=$`echo $ac_var`
1312         echo "$ac_var='"'"'$ac_val'"'"'"
1313       done | sort
1314       echo
1315     fi
1316
1317     if test -s confdefs.h; then
1318       cat <<\_ASBOX
1319 ## ----------- ##
1320 ## confdefs.h. ##
1321 ## ----------- ##
1322 _ASBOX
1323       echo
1324       sed "/^$/d" confdefs.h | sort
1325       echo
1326     fi
1327     test "$ac_signal" != 0 &&
1328       echo "$as_me: caught signal $ac_signal"
1329     echo "$as_me: exit $exit_status"
1330   } >&5
1331   rm -f core *.core &&
1332   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333     exit $exit_status
1334      ' 0
1335 for ac_signal in 1 2 13 15; do
1336   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 done
1338 ac_signal=0
1339
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 echo >confdefs.h
1344
1345 # Predefined preprocessor variables.
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 _ACEOF
1370
1371
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375   if test "x$prefix" != xNONE; then
1376     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377   else
1378     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379   fi
1380 fi
1381 for ac_site_file in $CONFIG_SITE; do
1382   if test -r "$ac_site_file"; then
1383     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385     sed 's/^/| /' "$ac_site_file" >&5
1386     . "$ac_site_file"
1387   fi
1388 done
1389
1390 if test -r "$cache_file"; then
1391   # Some versions of bash will fail to source /dev/null (special
1392   # files actually), so we avoid doing that.
1393   if test -f "$cache_file"; then
1394     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1396     case $cache_file in
1397       [\\/]* | ?:[\\/]* ) . $cache_file;;
1398       *)                      . ./$cache_file;;
1399     esac
1400   fi
1401 else
1402   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1404   >$cache_file
1405 fi
1406
1407 # Check that the precious variables saved in the cache have kept the same
1408 # value.
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413   eval ac_new_set=\$ac_env_${ac_var}_set
1414   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415   eval ac_new_val="\$ac_env_${ac_var}_value"
1416   case $ac_old_set,$ac_new_set in
1417     set,)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,set)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,);;
1426     *)
1427       if test "x$ac_old_val" != "x$ac_new_val"; then
1428         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1431 echo "$as_me:   former value:  $ac_old_val" >&2;}
1432         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1433 echo "$as_me:   current value: $ac_new_val" >&2;}
1434         ac_cache_corrupted=:
1435       fi;;
1436   esac
1437   # Pass precious variables to config.status.
1438   if test "$ac_new_set" = set; then
1439     case $ac_new_val in
1440     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442     *) ac_arg=$ac_var=$ac_new_val ;;
1443     esac
1444     case " $ac_configure_args " in
1445       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1446       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447     esac
1448   fi
1449 done
1450 if $ac_cache_corrupted; then
1451   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455    { (exit 1); exit 1; }; }
1456 fi
1457
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483 # This works around the fact that libtool configuration may change LD
1484 # for this particular configuration, but some shells, instead of
1485 # keeping the changes in LD private, export them just because LD is
1486 # exported.
1487 ORIGINAL_LD_FOR_MULTILIBS=$LD
1488
1489 # Default to --enable-multilib
1490 # Check whether --enable-multilib or --disable-multilib was given.
1491 if test "${enable_multilib+set}" = set; then
1492   enableval="$enable_multilib"
1493   case "$enableval" in
1494   yes) multilib=yes ;;
1495   no)  multilib=no ;;
1496   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1497 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1498    { (exit 1); exit 1; }; } ;;
1499  esac
1500 else
1501   multilib=yes
1502 fi;
1503
1504 # We may get other options which we leave undocumented:
1505 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1506 # See config-ml.in if you want the gory details.
1507
1508 if test "$srcdir" = "."; then
1509   if test "$with_target_subdir" != "."; then
1510     multi_basedir="$srcdir/$with_multisrctop../.."
1511   else
1512     multi_basedir="$srcdir/$with_multisrctop.."
1513   fi
1514 else
1515   multi_basedir="$srcdir/.."
1516 fi
1517
1518
1519 # Even if the default multilib is not a cross compilation,
1520 # it may be that some of the other multilibs are.
1521 if test $cross_compiling = no && test $multilib = yes \
1522    && test "x${with_multisubdir}" != x ; then
1523    cross_compiling=maybe
1524 fi
1525
1526           ac_config_commands="$ac_config_commands default-1"
1527
1528
1529 ac_aux_dir=
1530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531   if test -f $ac_dir/install-sh; then
1532     ac_aux_dir=$ac_dir
1533     ac_install_sh="$ac_aux_dir/install-sh -c"
1534     break
1535   elif test -f $ac_dir/install.sh; then
1536     ac_aux_dir=$ac_dir
1537     ac_install_sh="$ac_aux_dir/install.sh -c"
1538     break
1539   elif test -f $ac_dir/shtool; then
1540     ac_aux_dir=$ac_dir
1541     ac_install_sh="$ac_aux_dir/shtool install -c"
1542     break
1543   fi
1544 done
1545 if test -z "$ac_aux_dir"; then
1546   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548    { (exit 1); exit 1; }; }
1549 fi
1550 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553
1554 # Make sure we can run config.sub.
1555 $ac_config_sub sun4 >/dev/null 2>&1 ||
1556   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558    { (exit 1); exit 1; }; }
1559
1560 echo "$as_me:$LINENO: checking build system type" >&5
1561 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562 if test "${ac_cv_build+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   ac_cv_build_alias=$build_alias
1566 test -z "$ac_cv_build_alias" &&
1567   ac_cv_build_alias=`$ac_config_guess`
1568 test -z "$ac_cv_build_alias" &&
1569   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571    { (exit 1); exit 1; }; }
1572 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575    { (exit 1); exit 1; }; }
1576
1577 fi
1578 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579 echo "${ECHO_T}$ac_cv_build" >&6
1580 build=$ac_cv_build
1581 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586 echo "$as_me:$LINENO: checking host system type" >&5
1587 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588 if test "${ac_cv_host+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   ac_cv_host_alias=$host_alias
1592 test -z "$ac_cv_host_alias" &&
1593   ac_cv_host_alias=$ac_cv_build_alias
1594 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597    { (exit 1); exit 1; }; }
1598
1599 fi
1600 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601 echo "${ECHO_T}$ac_cv_host" >&6
1602 host=$ac_cv_host
1603 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608 echo "$as_me:$LINENO: checking target system type" >&5
1609 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610 if test "${ac_cv_target+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   ac_cv_target_alias=$target_alias
1614 test "x$ac_cv_target_alias" = "x" &&
1615   ac_cv_target_alias=$ac_cv_host_alias
1616 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 fi
1622 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623 echo "${ECHO_T}$ac_cv_target" >&6
1624 target=$ac_cv_target
1625 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630 # The aliases save the names the user supplied, while $host etc.
1631 # will get canonicalized.
1632 test -n "$target_alias" &&
1633   test "$program_prefix$program_suffix$program_transform_name" = \
1634     NONENONEs,x,x, &&
1635   program_prefix=${target_alias}-
1636
1637 # Get the 'noncanonical' system names.
1638  case ${build_alias} in
1639   "") build_noncanonical=${build} ;;
1640   *) build_noncanonical=${build_alias} ;;
1641 esac
1642
1643  case ${host_alias} in
1644   "") host_noncanonical=${build_noncanonical} ;;
1645   *) host_noncanonical=${host_alias} ;;
1646 esac
1647
1648  case ${target_alias} in
1649   "") target_noncanonical=${host_noncanonical} ;;
1650   *) target_noncanonical=${target_alias} ;;
1651 esac
1652
1653
1654
1655
1656 # This works around an automake problem.
1657 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1658
1659
1660 am__api_version="1.9"
1661 # Find a good install program.  We prefer a C program (faster),
1662 # so one script is as good as another.  But avoid the broken or
1663 # incompatible versions:
1664 # SysV /etc/install, /usr/sbin/install
1665 # SunOS /usr/etc/install
1666 # IRIX /sbin/install
1667 # AIX /bin/install
1668 # AmigaOS /C/install, which installs bootblocks on floppy discs
1669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1672 # OS/2's system install, which has a completely different semantic
1673 # ./install, which can be erroneously created by make from ./install.sh.
1674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1676 if test -z "$INSTALL"; then
1677 if test "${ac_cv_path_install+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1682 do
1683   IFS=$as_save_IFS
1684   test -z "$as_dir" && as_dir=.
1685   # Account for people who put trailing slashes in PATH elements.
1686 case $as_dir/ in
1687   ./ | .// | /cC/* | \
1688   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1689   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1690   /usr/ucb/* ) ;;
1691   *)
1692     # OSF1 and SCO ODT 3.0 have their own names for install.
1693     # Don't use installbsd from OSF since it installs stuff as root
1694     # by default.
1695     for ac_prog in ginstall scoinst install; do
1696       for ac_exec_ext in '' $ac_executable_extensions; do
1697         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1698           if test $ac_prog = install &&
1699             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1700             # AIX install.  It has an incompatible calling convention.
1701             :
1702           elif test $ac_prog = install &&
1703             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1704             # program-specific install script used by HP pwplus--don't use.
1705             :
1706           else
1707             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1708             break 3
1709           fi
1710         fi
1711       done
1712     done
1713     ;;
1714 esac
1715 done
1716
1717
1718 fi
1719   if test "${ac_cv_path_install+set}" = set; then
1720     INSTALL=$ac_cv_path_install
1721   else
1722     # As a last resort, use the slow shell script.  We don't cache a
1723     # path for INSTALL within a source directory, because that will
1724     # break other packages using the cache if that directory is
1725     # removed, or if the path is relative.
1726     INSTALL=$ac_install_sh
1727   fi
1728 fi
1729 echo "$as_me:$LINENO: result: $INSTALL" >&5
1730 echo "${ECHO_T}$INSTALL" >&6
1731
1732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1733 # It thinks the first close brace ends the variable substitution.
1734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1735
1736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1737
1738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1739
1740 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1741 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1742 # Just in case
1743 sleep 1
1744 echo timestamp > conftest.file
1745 # Do `set' in a subshell so we don't clobber the current shell's
1746 # arguments.  Must try -L first in case configure is actually a
1747 # symlink; some systems play weird games with the mod time of symlinks
1748 # (eg FreeBSD returns the mod time of the symlink's containing
1749 # directory).
1750 if (
1751    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1752    if test "$*" = "X"; then
1753       # -L didn't work.
1754       set X `ls -t $srcdir/configure conftest.file`
1755    fi
1756    rm -f conftest.file
1757    if test "$*" != "X $srcdir/configure conftest.file" \
1758       && test "$*" != "X conftest.file $srcdir/configure"; then
1759
1760       # If neither matched, then we have a broken ls.  This can happen
1761       # if, for instance, CONFIG_SHELL is bash and it inherits a
1762       # broken ls alias from the environment.  This has actually
1763       # happened.  Such a system could not be considered "sane".
1764       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1765 alias in your environment" >&5
1766 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1767 alias in your environment" >&2;}
1768    { (exit 1); exit 1; }; }
1769    fi
1770
1771    test "$2" = conftest.file
1772    )
1773 then
1774    # Ok.
1775    :
1776 else
1777    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1778 Check your system clock" >&5
1779 echo "$as_me: error: newly created file is older than distributed files!
1780 Check your system clock" >&2;}
1781    { (exit 1); exit 1; }; }
1782 fi
1783 echo "$as_me:$LINENO: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1785 test "$program_prefix" != NONE &&
1786   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1787 # Use a double $ so make ignores it.
1788 test "$program_suffix" != NONE &&
1789   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1790 # Double any \ or $.  echo might interpret backslashes.
1791 # By default was `s,x,x', remove it if useless.
1792 cat <<\_ACEOF >conftest.sed
1793 s/[\\$]/&&/g;s/;s,x,x,$//
1794 _ACEOF
1795 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1796 rm conftest.sed
1797
1798 # expand $ac_aux_dir to an absolute path
1799 am_aux_dir=`cd $ac_aux_dir && pwd`
1800
1801 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1802 # Use eval to expand $SHELL
1803 if eval "$MISSING --run true"; then
1804   am_missing_run="$MISSING --run "
1805 else
1806   am_missing_run=
1807   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1808 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1809 fi
1810
1811 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1812   # We used to keeping the `.' as first argument, in order to
1813   # allow $(mkdir_p) to be used without argument.  As in
1814   #   $(mkdir_p) $(somedir)
1815   # where $(somedir) is conditionally defined.  However this is wrong
1816   # for two reasons:
1817   #  1. if the package is installed by a user who cannot write `.'
1818   #     make install will fail,
1819   #  2. the above comment should most certainly read
1820   #     $(mkdir_p) $(DESTDIR)$(somedir)
1821   #     so it does not work when $(somedir) is undefined and
1822   #     $(DESTDIR) is not.
1823   #  To support the latter case, we have to write
1824   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1825   #  so the `.' trick is pointless.
1826   mkdir_p='mkdir -p --'
1827 else
1828   # On NextStep and OpenStep, the `mkdir' command does not
1829   # recognize any option.  It will interpret all options as
1830   # directories to create, and then abort because `.' already
1831   # exists.
1832   for d in ./-p ./--version;
1833   do
1834     test -d $d && rmdir $d
1835   done
1836   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1837   if test -f "$ac_aux_dir/mkinstalldirs"; then
1838     mkdir_p='$(mkinstalldirs)'
1839   else
1840     mkdir_p='$(install_sh) -d'
1841   fi
1842 fi
1843
1844 for ac_prog in gawk mawk nawk awk
1845 do
1846   # Extract the first word of "$ac_prog", so it can be a program name with args.
1847 set dummy $ac_prog; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_AWK+set}" = set; then
1851   echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853   if test -n "$AWK"; then
1854   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859   IFS=$as_save_IFS
1860   test -z "$as_dir" && as_dir=.
1861   for ac_exec_ext in '' $ac_executable_extensions; do
1862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863     ac_cv_prog_AWK="$ac_prog"
1864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865     break 2
1866   fi
1867 done
1868 done
1869
1870 fi
1871 fi
1872 AWK=$ac_cv_prog_AWK
1873 if test -n "$AWK"; then
1874   echo "$as_me:$LINENO: result: $AWK" >&5
1875 echo "${ECHO_T}$AWK" >&6
1876 else
1877   echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1879 fi
1880
1881   test -n "$AWK" && break
1882 done
1883
1884 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1885 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1886 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1887 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   cat >conftest.make <<\_ACEOF
1891 all:
1892         @echo 'ac_maketemp="$(MAKE)"'
1893 _ACEOF
1894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1895 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1896 if test -n "$ac_maketemp"; then
1897   eval ac_cv_prog_make_${ac_make}_set=yes
1898 else
1899   eval ac_cv_prog_make_${ac_make}_set=no
1900 fi
1901 rm -f conftest.make
1902 fi
1903 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1904   echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1906   SET_MAKE=
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910   SET_MAKE="MAKE=${MAKE-make}"
1911 fi
1912
1913 rm -rf .tst 2>/dev/null
1914 mkdir .tst 2>/dev/null
1915 if test -d .tst; then
1916   am__leading_dot=.
1917 else
1918   am__leading_dot=_
1919 fi
1920 rmdir .tst 2>/dev/null
1921
1922 # test to see if srcdir already configured
1923 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1924    test -f $srcdir/config.status; then
1925   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1926 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1927    { (exit 1); exit 1; }; }
1928 fi
1929
1930 # test whether we have cygpath
1931 if test -z "$CYGPATH_W"; then
1932   if (cygpath --version) >/dev/null 2>/dev/null; then
1933     CYGPATH_W='cygpath -w'
1934   else
1935     CYGPATH_W=echo
1936   fi
1937 fi
1938
1939
1940 # Define the identity of the package.
1941  PACKAGE=gc
1942  VERSION=6.6
1943
1944
1945 # Some tools Automake needs.
1946
1947 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1948
1949
1950 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1951
1952
1953 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1954
1955
1956 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1957
1958
1959 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1960
1961 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1962
1963 # Installed binaries are usually stripped using `strip' when the user
1964 # run `make install-strip'.  However `strip' might not be the right
1965 # tool to use in cross-compilation environments, therefore Automake
1966 # will honor the `STRIP' environment variable to overrule this program.
1967 if test "$cross_compiling" != no; then
1968   if test -n "$ac_tool_prefix"; then
1969   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1970 set dummy ${ac_tool_prefix}strip; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_STRIP+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test -n "$STRIP"; then
1977   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   for ac_exec_ext in '' $ac_executable_extensions; do
1985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988     break 2
1989   fi
1990 done
1991 done
1992
1993 fi
1994 fi
1995 STRIP=$ac_cv_prog_STRIP
1996 if test -n "$STRIP"; then
1997   echo "$as_me:$LINENO: result: $STRIP" >&5
1998 echo "${ECHO_T}$STRIP" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 fi
2005 if test -z "$ac_cv_prog_STRIP"; then
2006   ac_ct_STRIP=$STRIP
2007   # Extract the first word of "strip", so it can be a program name with args.
2008 set dummy strip; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   if test -n "$ac_ct_STRIP"; then
2015   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020   IFS=$as_save_IFS
2021   test -z "$as_dir" && as_dir=.
2022   for ac_exec_ext in '' $ac_executable_extensions; do
2023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024     ac_cv_prog_ac_ct_STRIP="strip"
2025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026     break 2
2027   fi
2028 done
2029 done
2030
2031   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2032 fi
2033 fi
2034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2035 if test -n "$ac_ct_STRIP"; then
2036   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2037 echo "${ECHO_T}$ac_ct_STRIP" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043   STRIP=$ac_ct_STRIP
2044 else
2045   STRIP="$ac_cv_prog_STRIP"
2046 fi
2047
2048 fi
2049 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2050
2051 # We need awk for the "check" target.  The system "awk" is bad on
2052 # some platforms.
2053 # Always define AMTAR for backward compatibility.
2054
2055 AMTAR=${AMTAR-"${am_missing_run}tar"}
2056
2057 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2058
2059
2060
2061
2062
2063
2064 # The autoconf 2.5x version of the no-executables hack.
2065
2066
2067 # Yak.  We must force CC and CXX to /not/ be precious variables; otherwise
2068 # the wrong, non-multilib-adjusted value will be used in multilibs.
2069 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2070
2071
2072
2073 ac_ext=c
2074 ac_cpp='$CPP $CPPFLAGS'
2075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078 if test -n "$ac_tool_prefix"; then
2079   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test -n "$CC"; then
2087   ac_cv_prog_CC="$CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107   echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114 fi
2115 if test -z "$ac_cv_prog_CC"; then
2116   ac_ct_CC=$CC
2117   # Extract the first word of "gcc", so it can be a program name with args.
2118 set dummy gcc; ac_word=$2
2119 echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   if test -n "$ac_ct_CC"; then
2125   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130   IFS=$as_save_IFS
2131   test -z "$as_dir" && as_dir=.
2132   for ac_exec_ext in '' $ac_executable_extensions; do
2133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134     ac_cv_prog_ac_ct_CC="gcc"
2135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136     break 2
2137   fi
2138 done
2139 done
2140
2141 fi
2142 fi
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 echo "${ECHO_T}$ac_ct_CC" >&6
2147 else
2148   echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6
2150 fi
2151
2152   CC=$ac_ct_CC
2153 else
2154   CC="$ac_cv_prog_CC"
2155 fi
2156
2157 if test -z "$CC"; then
2158   if test -n "$ac_tool_prefix"; then
2159   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2160 set dummy ${ac_tool_prefix}cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   if test -n "$CC"; then
2167   ac_cv_prog_CC="$CC" # Let the user override the test.
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172   IFS=$as_save_IFS
2173   test -z "$as_dir" && as_dir=.
2174   for ac_exec_ext in '' $ac_executable_extensions; do
2175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176     ac_cv_prog_CC="${ac_tool_prefix}cc"
2177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178     break 2
2179   fi
2180 done
2181 done
2182
2183 fi
2184 fi
2185 CC=$ac_cv_prog_CC
2186 if test -n "$CC"; then
2187   echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6
2189 else
2190   echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2192 fi
2193
2194 fi
2195 if test -z "$ac_cv_prog_CC"; then
2196   ac_ct_CC=$CC
2197   # Extract the first word of "cc", so it can be a program name with args.
2198 set dummy cc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test -n "$ac_ct_CC"; then
2205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210   IFS=$as_save_IFS
2211   test -z "$as_dir" && as_dir=.
2212   for ac_exec_ext in '' $ac_executable_extensions; do
2213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214     ac_cv_prog_ac_ct_CC="cc"
2215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216     break 2
2217   fi
2218 done
2219 done
2220
2221 fi
2222 fi
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6
2227 else
2228   echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2230 fi
2231
2232   CC=$ac_ct_CC
2233 else
2234   CC="$ac_cv_prog_CC"
2235 fi
2236
2237 fi
2238 if test -z "$CC"; then
2239   # Extract the first word of "cc", so it can be a program name with args.
2240 set dummy cc; ac_word=$2
2241 echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244   echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246   if test -n "$CC"; then
2247   ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249   ac_prog_rejected=no
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   for ac_exec_ext in '' $ac_executable_extensions; do
2256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2258        ac_prog_rejected=yes
2259        continue
2260      fi
2261     ac_cv_prog_CC="cc"
2262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263     break 2
2264   fi
2265 done
2266 done
2267
2268 if test $ac_prog_rejected = yes; then
2269   # We found a bogon in the path, so make sure we never use it.
2270   set dummy $ac_cv_prog_CC
2271   shift
2272   if test $# != 0; then
2273     # We chose a different compiler from the bogus one.
2274     # However, it has the same basename, so the bogon will be chosen
2275     # first if we set CC to just the basename; use the full file name.
2276     shift
2277     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2278   fi
2279 fi
2280 fi
2281 fi
2282 CC=$ac_cv_prog_CC
2283 if test -n "$CC"; then
2284   echo "$as_me:$LINENO: result: $CC" >&5
2285 echo "${ECHO_T}$CC" >&6
2286 else
2287   echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2289 fi
2290
2291 fi
2292 if test -z "$CC"; then
2293   if test -n "$ac_tool_prefix"; then
2294   for ac_prog in cl
2295   do
2296     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2298 echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_CC+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   if test -n "$CC"; then
2304   ac_cv_prog_CC="$CC" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
2310   test -z "$as_dir" && as_dir=.
2311   for ac_exec_ext in '' $ac_executable_extensions; do
2312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315     break 2
2316   fi
2317 done
2318 done
2319
2320 fi
2321 fi
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324   echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6
2326 else
2327   echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2329 fi
2330
2331     test -n "$CC" && break
2332   done
2333 fi
2334 if test -z "$CC"; then
2335   ac_ct_CC=$CC
2336   for ac_prog in cl
2337 do
2338   # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   if test -n "$ac_ct_CC"; then
2346   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351   IFS=$as_save_IFS
2352   test -z "$as_dir" && as_dir=.
2353   for ac_exec_ext in '' $ac_executable_extensions; do
2354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355     ac_cv_prog_ac_ct_CC="$ac_prog"
2356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357     break 2
2358   fi
2359 done
2360 done
2361
2362 fi
2363 fi
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367 echo "${ECHO_T}$ac_ct_CC" >&6
2368 else
2369   echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2371 fi
2372
2373   test -n "$ac_ct_CC" && break
2374 done
2375
2376   CC=$ac_ct_CC
2377 fi
2378
2379 fi
2380
2381
2382 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: no acceptable C compiler found in \$PATH
2385 See \`config.log' for more details." >&2;}
2386    { (exit 1); exit 1; }; }
2387
2388 # Provide some information about the compiler.
2389 echo "$as_me:$LINENO:" \
2390      "checking for C compiler version" >&5
2391 ac_compiler=`set X $ac_compile; echo $2`
2392 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2393   (eval $ac_compiler --version </dev/null >&5) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }
2397 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2398   (eval $ac_compiler -v </dev/null >&5) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }
2402 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2403   (eval $ac_compiler -V </dev/null >&5) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }
2407
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h.  */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h.  */
2414
2415 int
2416 main ()
2417 {
2418
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 # FIXME: Cleanup?
2424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2425   (eval $ac_link) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; then
2429   gcc_no_link=no
2430 else
2431   gcc_no_link=yes
2432 fi
2433
2434 if test x$gcc_no_link = xyes; then
2435   # Setting cross_compile will disable run tests; it will
2436   # also disable AC_CHECK_FILE but that's generally
2437   # correct if we can't link.
2438   cross_compiling=yes
2439   EXEEXT=
2440 else
2441   cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 ac_clean_files_save=$ac_clean_files
2457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2458 # Try to create an executable without -o first, disregard a.out.
2459 # It will help us diagnose broken compilers, and finding out an intuition
2460 # of exeext.
2461 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2465   (eval $ac_link_default) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   # Find the output, starting from the most likely.  This scheme is
2470 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2471 # resort.
2472
2473 # Be careful to initialize this variable, since it used to be cached.
2474 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2475 ac_cv_exeext=
2476 # b.out is created by i960 compilers.
2477 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2478 do
2479   test -f "$ac_file" || continue
2480   case $ac_file in
2481     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2482         ;;
2483     conftest.$ac_ext )
2484         # This is the source file.
2485         ;;
2486     [ab].out )
2487         # We found the default executable, but exeext='' is most
2488         # certainly right.
2489         break;;
2490     *.* )
2491         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492         # FIXME: I believe we export ac_cv_exeext for Libtool,
2493         # but it would be cool to find out if it's true.  Does anybody
2494         # maintain Libtool? --akim.
2495         export ac_cv_exeext
2496         break;;
2497     * )
2498         break;;
2499   esac
2500 done
2501 else
2502   echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&2;}
2509    { (exit 77); exit 77; }; }
2510 fi
2511
2512 ac_exeext=$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_file" >&5
2514 echo "${ECHO_T}$ac_file" >&6
2515
2516 # Check the compiler produces executables we can run.  If not, either
2517 # the compiler is broken, or we cross compile.
2518 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2519 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2520 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2521 # If not cross compiling, check that we can run a simple program.
2522 if test "$cross_compiling" != yes; then
2523   if { ac_try='./$ac_file'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529     cross_compiling=no
2530   else
2531     if test "$cross_compiling" = maybe; then
2532         cross_compiling=yes
2533     else
2534         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2535 If you meant to cross compile, use \`--host'.
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: cannot run C compiled programs.
2538 If you meant to cross compile, use \`--host'.
2539 See \`config.log' for more details." >&2;}
2540    { (exit 1); exit 1; }; }
2541     fi
2542   fi
2543 fi
2544 echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6
2546
2547 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2548 ac_clean_files=$ac_clean_files_save
2549 # Check the compiler produces executables we can run.  If not, either
2550 # the compiler is broken, or we cross compile.
2551 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2552 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2553 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2554 echo "${ECHO_T}$cross_compiling" >&6
2555
2556 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2557 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2559   (eval $ac_link) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; then
2563   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2565 # work properly (i.e., refer to `conftest.exe'), while it won't with
2566 # `rm'.
2567 for ac_file in conftest.exe conftest conftest.*; do
2568   test -f "$ac_file" || continue
2569   case $ac_file in
2570     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2571     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572           export ac_cv_exeext
2573           break;;
2574     * ) break;;
2575   esac
2576 done
2577 else
2578   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&2;}
2582    { (exit 1); exit 1; }; }
2583 fi
2584
2585 rm -f conftest$ac_cv_exeext
2586 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2587 echo "${ECHO_T}$ac_cv_exeext" >&6
2588
2589 rm -f conftest.$ac_ext
2590 EXEEXT=$ac_cv_exeext
2591 ac_exeext=$EXEEXT
2592 fi
2593 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2594 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2595 if test "${ac_cv_objext+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.o conftest.obj
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; then
2619   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2620   case $ac_file in
2621     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2622     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2623        break;;
2624   esac
2625 done
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2633 See \`config.log' for more details." >&2;}
2634    { (exit 1); exit 1; }; }
2635 fi
2636
2637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2640 echo "${ECHO_T}$ac_cv_objext" >&6
2641 OBJEXT=$ac_cv_objext
2642 ac_objext=$OBJEXT
2643 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2644 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2645 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654
2655 int
2656 main ()
2657 {
2658 #ifndef __GNUC__
2659        choke me
2660 #endif
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_c_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   ac_compiler_gnu=yes
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 ac_compiler_gnu=no
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2697
2698 fi
2699 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2700 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2701 GCC=`test $ac_compiler_gnu = yes && echo yes`
2702 ac_test_CFLAGS=${CFLAGS+set}
2703 ac_save_CFLAGS=$CFLAGS
2704 CFLAGS="-g"
2705 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2706 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2707 if test "${ac_cv_prog_cc_g+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716
2717 int
2718 main ()
2719 {
2720
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727   (eval $ac_compile) 2>conftest.er1
2728   ac_status=$?
2729   grep -v '^ *+' conftest.er1 >conftest.err
2730   rm -f conftest.er1
2731   cat conftest.err >&5
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -z "$ac_c_werror_flag"
2735                          || test ! -s conftest.err'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; }; then
2747   ac_cv_prog_cc_g=yes
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 ac_cv_prog_cc_g=no
2753 fi
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 fi
2756 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2758 if test "$ac_test_CFLAGS" = set; then
2759   CFLAGS=$ac_save_CFLAGS
2760 elif test $ac_cv_prog_cc_g = yes; then
2761   if test "$GCC" = yes; then
2762     CFLAGS="-g -O2"
2763   else
2764     CFLAGS="-g"
2765   fi
2766 else
2767   if test "$GCC" = yes; then
2768     CFLAGS="-O2"
2769   else
2770     CFLAGS=
2771   fi
2772 fi
2773 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2774 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   ac_cv_prog_cc_stdc=no
2779 ac_save_CC=$CC
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786 #include <stdarg.h>
2787 #include <stdio.h>
2788 #include <sys/types.h>
2789 #include <sys/stat.h>
2790 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2791 struct buf { int x; };
2792 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2793 static char *e (p, i)
2794      char **p;
2795      int i;
2796 {
2797   return p[i];
2798 }
2799 static char *f (char * (*g) (char **, int), char **p, ...)
2800 {
2801   char *s;
2802   va_list v;
2803   va_start (v,p);
2804   s = g (p, va_arg (v,int));
2805   va_end (v);
2806   return s;
2807 }
2808
2809 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2810    function prototypes and stuff, but not '\xHH' hex character constants.
2811    These don't provoke an error unfortunately, instead are silently treated
2812    as 'x'.  The following induces an error, until -std1 is added to get
2813    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2814    array size at least.  It's necessary to write '\x00'==0 to get something
2815    that's true only with -std1.  */
2816 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2817
2818 int test (int i, double x);
2819 struct s1 {int (*f) (int a);};
2820 struct s2 {int (*f) (double a);};
2821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2822 int argc;
2823 char **argv;
2824 int
2825 main ()
2826 {
2827 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 # Don't try gcc -ansi; that turns off useful extensions and
2833 # breaks some systems' header files.
2834 # AIX                   -qlanglvl=ansi
2835 # Ultrix and OSF/1      -std1
2836 # HP-UX 10.20 and later -Ae
2837 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2838 # SVR4                  -Xc -D__EXTENSIONS__
2839 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2840 do
2841   CC="$ac_save_CC $ac_arg"
2842   rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844   (eval $ac_compile) 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -z "$ac_c_werror_flag"
2852                          || test ! -s conftest.err'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   ac_cv_prog_cc_stdc=$ac_arg
2865 break
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 fi
2871 rm -f conftest.err conftest.$ac_objext
2872 done
2873 rm -f conftest.$ac_ext conftest.$ac_objext
2874 CC=$ac_save_CC
2875
2876 fi
2877
2878 case "x$ac_cv_prog_cc_stdc" in
2879   x|xno)
2880     echo "$as_me:$LINENO: result: none needed" >&5
2881 echo "${ECHO_T}none needed" >&6 ;;
2882   *)
2883     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885     CC="$CC $ac_cv_prog_cc_stdc" ;;
2886 esac
2887
2888 # Some people use a C++ compiler to compile C.  Since we use `exit',
2889 # in C++ we need to declare it.  In case someone uses the same compiler
2890 # for both compiling C and C++ we need to have the C++ compiler decide
2891 # the declaration of exit, since it's the most demanding environment.
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #ifndef __cplusplus
2894   choke me
2895 #endif
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899   (eval $ac_compile) 2>conftest.er1
2900   ac_status=$?
2901   grep -v '^ *+' conftest.er1 >conftest.err
2902   rm -f conftest.er1
2903   cat conftest.err >&5
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } &&
2906          { ac_try='test -z "$ac_c_werror_flag"
2907                          || test ! -s conftest.err'
2908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909   (eval $ac_try) 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; } &&
2913          { ac_try='test -s conftest.$ac_objext'
2914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915   (eval $ac_try) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; }; then
2919   for ac_declaration in \
2920    '' \
2921    'extern "C" void std::exit (int) throw (); using std::exit;' \
2922    'extern "C" void std::exit (int); using std::exit;' \
2923    'extern "C" void exit (int) throw ();' \
2924    'extern "C" void exit (int);' \
2925    'void exit (int);'
2926 do
2927   cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933 $ac_declaration
2934 #include <stdlib.h>
2935 int
2936 main ()
2937 {
2938 exit (42);
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945   (eval $ac_compile) 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } &&
2952          { ac_try='test -z "$ac_c_werror_flag"
2953                          || test ! -s conftest.err'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965   :
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 continue
2971 fi
2972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979 $ac_declaration
2980 int
2981 main ()
2982 {
2983 exit (42);
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990   (eval $ac_compile) 2>conftest.er1
2991   ac_status=$?
2992   grep -v '^ *+' conftest.er1 >conftest.err
2993   rm -f conftest.er1
2994   cat conftest.err >&5
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); } &&
2997          { ac_try='test -z "$ac_c_werror_flag"
2998                          || test ! -s conftest.err'
2999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000   (eval $ac_try) 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; } &&
3004          { ac_try='test -s conftest.$ac_objext'
3005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006   (eval $ac_try) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; }; then
3010   break
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 fi
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3017 done
3018 rm -f conftest*
3019 if test -n "$ac_declaration"; then
3020   echo '#ifdef __cplusplus' >>confdefs.h
3021   echo $ac_declaration      >>confdefs.h
3022   echo '#endif'             >>confdefs.h
3023 fi
3024
3025 else
3026   echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029 fi
3030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 DEPDIR="${am__leading_dot}deps"
3037
3038           ac_config_commands="$ac_config_commands depfiles"
3039
3040
3041 am_make=${MAKE-make}
3042 cat > confinc << 'END'
3043 am__doit:
3044         @echo done
3045 .PHONY: am__doit
3046 END
3047 # If we don't find an include directive, just comment out the code.
3048 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3049 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3050 am__include="#"
3051 am__quote=
3052 _am_result=none
3053 # First try GNU make style include.
3054 echo "include confinc" > confmf
3055 # We grep out `Entering directory' and `Leaving directory'
3056 # messages which can occur if `w' ends up in MAKEFLAGS.
3057 # In particular we don't look at `^make:' because GNU make might
3058 # be invoked under some other name (usually "gmake"), in which
3059 # case it prints its new name instead of `make'.
3060 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3061    am__include=include
3062    am__quote=
3063    _am_result=GNU
3064 fi
3065 # Now try BSD make style include.
3066 if test "$am__include" = "#"; then
3067    echo '.include "confinc"' > confmf
3068    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3069       am__include=.include
3070       am__quote="\""
3071       _am_result=BSD
3072    fi
3073 fi
3074
3075
3076 echo "$as_me:$LINENO: result: $_am_result" >&5
3077 echo "${ECHO_T}$_am_result" >&6
3078 rm -f confinc confmf
3079
3080 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3081 if test "${enable_dependency_tracking+set}" = set; then
3082   enableval="$enable_dependency_tracking"
3083
3084 fi;
3085 if test "x$enable_dependency_tracking" != xno; then
3086   am_depcomp="$ac_aux_dir/depcomp"
3087   AMDEPBACKSLASH='\'
3088 fi
3089
3090
3091 if test "x$enable_dependency_tracking" != xno; then
3092   AMDEP_TRUE=
3093   AMDEP_FALSE='#'
3094 else
3095   AMDEP_TRUE='#'
3096   AMDEP_FALSE=
3097 fi
3098
3099
3100
3101
3102 depcc="$CC"   am_compiler_list=
3103
3104 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3107   echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3110   # We make a subdir and do the tests there.  Otherwise we can end up
3111   # making bogus files that we don't know about and never remove.  For
3112   # instance it was reported that on HP-UX the gcc test will end up
3113   # making a dummy file named `D' -- because `-MD' means `put the output
3114   # in D'.
3115   mkdir conftest.dir
3116   # Copy depcomp to subdir because otherwise we won't find it if we're
3117   # using a relative directory.
3118   cp "$am_depcomp" conftest.dir
3119   cd conftest.dir
3120   # We will build objects and dependencies in a subdirectory because
3121   # it helps to detect inapplicable dependency modes.  For instance
3122   # both Tru64's cc and ICC support -MD to output dependencies as a
3123   # side effect of compilation, but ICC will put the dependencies in
3124   # the current directory while Tru64 will put them in the object
3125   # directory.
3126   mkdir sub
3127
3128   am_cv_CC_dependencies_compiler_type=none
3129   if test "$am_compiler_list" = ""; then
3130      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3131   fi
3132   for depmode in $am_compiler_list; do
3133     # Setup a source with many dependencies, because some compilers
3134     # like to wrap large dependency lists on column 80 (with \), and
3135     # we should not choose a depcomp mode which is confused by this.
3136     #
3137     # We need to recreate these files for each test, as the compiler may
3138     # overwrite some of them when testing with obscure command lines.
3139     # This happens at least with the AIX C compiler.
3140     : > sub/conftest.c
3141     for i in 1 2 3 4 5 6; do
3142       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3143       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3144       # Solaris 8's {/usr,}/bin/sh.
3145       touch sub/conftst$i.h
3146     done
3147     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3148
3149     case $depmode in
3150     nosideeffect)
3151       # after this tag, mechanisms are not by side-effect, so they'll
3152       # only be used when explicitly requested
3153       if test "x$enable_dependency_tracking" = xyes; then
3154         continue
3155       else
3156         break
3157       fi
3158       ;;
3159     none) break ;;
3160     esac
3161     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3162     # mode.  It turns out that the SunPro C++ compiler does not properly
3163     # handle `-M -o', and we need to detect this.
3164     if depmode=$depmode \
3165        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3166        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3167        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3168          >/dev/null 2>conftest.err &&
3169        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3170        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3171        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3172       # icc doesn't choke on unknown options, it will just issue warnings
3173       # or remarks (even with -Werror).  So we grep stderr for any message
3174       # that says an option was ignored or not supported.
3175       # When given -MP, icc 7.0 and 7.1 complain thusly:
3176       #   icc: Command line warning: ignoring option '-M'; no argument required
3177       # The diagnosis changed in icc 8.0:
3178       #   icc: Command line remark: option '-MP' not supported
3179       if (grep 'ignoring option' conftest.err ||
3180           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3181         am_cv_CC_dependencies_compiler_type=$depmode
3182         break
3183       fi
3184     fi
3185   done
3186
3187   cd ..
3188   rm -rf conftest.dir
3189 else
3190   am_cv_CC_dependencies_compiler_type=none
3191 fi
3192
3193 fi
3194 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3197
3198
3199
3200 if
3201   test "x$enable_dependency_tracking" != xno \
3202   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3203   am__fastdepCC_TRUE=
3204   am__fastdepCC_FALSE='#'
3205 else
3206   am__fastdepCC_TRUE='#'
3207   am__fastdepCC_FALSE=
3208 fi
3209
3210
3211 ac_ext=cc
3212 ac_cpp='$CXXCPP $CPPFLAGS'
3213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3216 if test -n "$ac_tool_prefix"; then
3217   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3218   do
3219     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3223 if test "${ac_cv_prog_CXX+set}" = set; then
3224   echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226   if test -n "$CXX"; then
3227   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232   IFS=$as_save_IFS
3233   test -z "$as_dir" && as_dir=.
3234   for ac_exec_ext in '' $ac_executable_extensions; do
3235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238     break 2
3239   fi
3240 done
3241 done
3242
3243 fi
3244 fi
3245 CXX=$ac_cv_prog_CXX
3246 if test -n "$CXX"; then
3247   echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254     test -n "$CXX" && break
3255   done
3256 fi
3257 if test -z "$CXX"; then
3258   ac_ct_CXX=$CXX
3259   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3260 do
3261   # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy $ac_prog; ac_word=$2
3263 echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   if test -n "$ac_ct_CXX"; then
3269   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274   IFS=$as_save_IFS
3275   test -z "$as_dir" && as_dir=.
3276   for ac_exec_ext in '' $ac_executable_extensions; do
3277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278     ac_cv_prog_ac_ct_CXX="$ac_prog"
3279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280     break 2
3281   fi
3282 done
3283 done
3284
3285 fi
3286 fi
3287 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3288 if test -n "$ac_ct_CXX"; then
3289   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3290 echo "${ECHO_T}$ac_ct_CXX" >&6
3291 else
3292   echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3294 fi
3295
3296   test -n "$ac_ct_CXX" && break
3297 done
3298 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3299
3300   CXX=$ac_ct_CXX
3301 fi
3302
3303
3304 # Provide some information about the compiler.
3305 echo "$as_me:$LINENO:" \
3306      "checking for C++ compiler version" >&5
3307 ac_compiler=`set X $ac_compile; echo $2`
3308 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3309   (eval $ac_compiler --version </dev/null >&5) 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); }
3313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3314   (eval $ac_compiler -v </dev/null >&5) 2>&5
3315   ac_status=$?
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); }
3318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3319   (eval $ac_compiler -V </dev/null >&5) 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }
3323
3324 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3325 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h.  */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h.  */
3335
3336 int
3337 main ()
3338 {
3339 #ifndef __GNUC__
3340        choke me
3341 #endif
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349   (eval $ac_compile) 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } &&
3356          { ac_try='test -z "$ac_cxx_werror_flag"
3357                          || test ! -s conftest.err'
3358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359   (eval $ac_try) 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); }; } &&
3363          { ac_try='test -s conftest.$ac_objext'
3364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365   (eval $ac_try) 2>&5
3366   ac_status=$?
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); }; }; then
3369   ac_compiler_gnu=yes
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 ac_compiler_gnu=no
3375 fi
3376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3377 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3378
3379 fi
3380 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3381 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3382 GXX=`test $ac_compiler_gnu = yes && echo yes`
3383 ac_test_CXXFLAGS=${CXXFLAGS+set}
3384 ac_save_CXXFLAGS=$CXXFLAGS
3385 CXXFLAGS="-g"
3386 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3387 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3388 if test "${ac_cv_prog_cxx_g+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397
3398 int
3399 main ()
3400 {
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3408   (eval $ac_compile) 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } &&
3415          { ac_try='test -z "$ac_cxx_werror_flag"
3416                          || test ! -s conftest.err'
3417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418   (eval $ac_try) 2>&5
3419   ac_status=$?
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); }; } &&
3422          { ac_try='test -s conftest.$ac_objext'
3423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424   (eval $ac_try) 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); }; }; then
3428   ac_cv_prog_cxx_g=yes
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 ac_cv_prog_cxx_g=no
3434 fi
3435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3436 fi
3437 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3438 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3439 if test "$ac_test_CXXFLAGS" = set; then
3440   CXXFLAGS=$ac_save_CXXFLAGS
3441 elif test $ac_cv_prog_cxx_g = yes; then
3442   if test "$GXX" = yes; then
3443     CXXFLAGS="-g -O2"
3444   else
3445     CXXFLAGS="-g"
3446   fi
3447 else
3448   if test "$GXX" = yes; then
3449     CXXFLAGS="-O2"
3450   else
3451     CXXFLAGS=
3452   fi
3453 fi
3454 for ac_declaration in \
3455    '' \
3456    'extern "C" void std::exit (int) throw (); using std::exit;' \
3457    'extern "C" void std::exit (int); using std::exit;' \
3458    'extern "C" void exit (int) throw ();' \
3459    'extern "C" void exit (int);' \
3460    'void exit (int);'
3461 do
3462   cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468 $ac_declaration
3469 #include <stdlib.h>
3470 int
3471 main ()
3472 {
3473 exit (42);
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480   (eval $ac_compile) 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } &&
3487          { ac_try='test -z "$ac_cxx_werror_flag"
3488                          || test ! -s conftest.err'
3489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490   (eval $ac_try) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }; } &&
3494          { ac_try='test -s conftest.$ac_objext'
3495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; }; then
3500   :
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 continue
3506 fi
3507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3508   cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 $ac_declaration
3515 int
3516 main ()
3517 {
3518 exit (42);
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525   (eval $ac_compile) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } &&
3532          { ac_try='test -z "$ac_cxx_werror_flag"
3533                          || test ! -s conftest.err'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; } &&
3539          { ac_try='test -s conftest.$ac_objext'
3540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541   (eval $ac_try) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; }; then
3545   break
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 fi
3551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3552 done
3553 rm -f conftest*
3554 if test -n "$ac_declaration"; then
3555   echo '#ifdef __cplusplus' >>confdefs.h
3556   echo $ac_declaration      >>confdefs.h
3557   echo '#endif'             >>confdefs.h
3558 fi
3559
3560 ac_ext=c
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566 depcc="$CXX"  am_compiler_list=
3567
3568 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3569 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3570 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3574   # We make a subdir and do the tests there.  Otherwise we can end up
3575   # making bogus files that we don't know about and never remove.  For
3576   # instance it was reported that on HP-UX the gcc test will end up
3577   # making a dummy file named `D' -- because `-MD' means `put the output
3578   # in D'.
3579   mkdir conftest.dir
3580   # Copy depcomp to subdir because otherwise we won't find it if we're
3581   # using a relative directory.
3582   cp "$am_depcomp" conftest.dir
3583   cd conftest.dir
3584   # We will build objects and dependencies in a subdirectory because
3585   # it helps to detect inapplicable dependency modes.  For instance
3586   # both Tru64's cc and ICC support -MD to output dependencies as a
3587   # side effect of compilation, but ICC will put the dependencies in
3588   # the current directory while Tru64 will put them in the object
3589   # directory.
3590   mkdir sub
3591
3592   am_cv_CXX_dependencies_compiler_type=none
3593   if test "$am_compiler_list" = ""; then
3594      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3595   fi
3596   for depmode in $am_compiler_list; do
3597     # Setup a source with many dependencies, because some compilers
3598     # like to wrap large dependency lists on column 80 (with \), and
3599     # we should not choose a depcomp mode which is confused by this.
3600     #
3601     # We need to recreate these files for each test, as the compiler may
3602     # overwrite some of them when testing with obscure command lines.
3603     # This happens at least with the AIX C compiler.
3604     : > sub/conftest.c
3605     for i in 1 2 3 4 5 6; do
3606       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3607       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3608       # Solaris 8's {/usr,}/bin/sh.
3609       touch sub/conftst$i.h
3610     done
3611     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3612
3613     case $depmode in
3614     nosideeffect)
3615       # after this tag, mechanisms are not by side-effect, so they'll
3616       # only be used when explicitly requested
3617       if test "x$enable_dependency_tracking" = xyes; then
3618         continue
3619       else
3620         break
3621       fi
3622       ;;
3623     none) break ;;
3624     esac
3625     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3626     # mode.  It turns out that the SunPro C++ compiler does not properly
3627     # handle `-M -o', and we need to detect this.
3628     if depmode=$depmode \
3629        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3630        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3631        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3632          >/dev/null 2>conftest.err &&
3633        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3634        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3635        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3636       # icc doesn't choke on unknown options, it will just issue warnings
3637       # or remarks (even with -Werror).  So we grep stderr for any message
3638       # that says an option was ignored or not supported.
3639       # When given -MP, icc 7.0 and 7.1 complain thusly:
3640       #   icc: Command line warning: ignoring option '-M'; no argument required
3641       # The diagnosis changed in icc 8.0:
3642       #   icc: Command line remark: option '-MP' not supported
3643       if (grep 'ignoring option' conftest.err ||
3644           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3645         am_cv_CXX_dependencies_compiler_type=$depmode
3646         break
3647       fi
3648     fi
3649   done
3650
3651   cd ..
3652   rm -rf conftest.dir
3653 else
3654   am_cv_CXX_dependencies_compiler_type=none
3655 fi
3656
3657 fi
3658 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3659 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3660 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3661
3662
3663
3664 if
3665   test "x$enable_dependency_tracking" != xno \
3666   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3667   am__fastdepCXX_TRUE=
3668   am__fastdepCXX_FALSE='#'
3669 else
3670   am__fastdepCXX_TRUE='#'
3671   am__fastdepCXX_FALSE=
3672 fi
3673
3674
3675
3676
3677 if test "x$CC" != xcc; then
3678   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3679 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3680 else
3681   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3682 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3683 fi
3684 set dummy $CC; ac_cc=`echo $2 |
3685                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3686 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695
3696 int
3697 main ()
3698 {
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 # Make sure it works both with $CC and with simple cc.
3705 # We do the test twice because some compilers refuse to overwrite an
3706 # existing .o file with -o, though they will create one.
3707 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3708 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709   (eval $ac_try) 2>&5
3710   ac_status=$?
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); } &&
3713    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714   (eval $ac_try) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); };
3718 then
3719   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3720   if test "x$CC" != xcc; then
3721     # Test first that cc exists at all.
3722     if { ac_try='cc -c conftest.$ac_ext >&5'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; }; then
3728       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3729       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); } &&
3734          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735   (eval $ac_try) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); };
3739       then
3740         # cc works too.
3741         :
3742       else
3743         # cc exists but doesn't like -o.
3744         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3745       fi
3746     fi
3747   fi
3748 else
3749   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3750 fi
3751 rm -f conftest*
3752
3753 fi
3754 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3755   echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6
3757 else
3758   echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3760
3761 cat >>confdefs.h <<\_ACEOF
3762 #define NO_MINUS_C_MINUS_O 1
3763 _ACEOF
3764
3765 fi
3766
3767 # FIXME: we rely on the cache variable name because
3768 # there is no other way.
3769 set dummy $CC
3770 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3771 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3772    # Losing compiler, so override with the script.
3773    # FIXME: It is wrong to rewrite CC.
3774    # But if we don't then we get into trouble of one sort or another.
3775    # A longer-term fix would be to have automake use am__CC in this case,
3776    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3777    CC="$am_aux_dir/compile $CC"
3778 fi
3779
3780
3781
3782
3783
3784 # Newer automakes demand CCAS and CCASFLAGS.
3785 : ${CCAS='$(CC)'}
3786 : ${CCASFLAGS='$(CFLAGS)'}
3787
3788
3789
3790 if test -n "$ac_tool_prefix"; then
3791   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3792 set dummy ${ac_tool_prefix}as; ac_word=$2
3793 echo "$as_me:$LINENO: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_AS+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   if test -n "$AS"; then
3799   ac_cv_prog_AS="$AS" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806   for ac_exec_ext in '' $ac_executable_extensions; do
3807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808     ac_cv_prog_AS="${ac_tool_prefix}as"
3809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813 done
3814
3815 fi
3816 fi
3817 AS=$ac_cv_prog_AS
3818 if test -n "$AS"; then
3819   echo "$as_me:$LINENO: result: $AS" >&5
3820 echo "${ECHO_T}$AS" >&6
3821 else
3822   echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825
3826 fi
3827 if test -z "$ac_cv_prog_AS"; then
3828   ac_ct_AS=$AS
3829   # Extract the first word of "as", so it can be a program name with args.
3830 set dummy as; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test -n "$ac_ct_AS"; then
3837   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844   for ac_exec_ext in '' $ac_executable_extensions; do
3845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846     ac_cv_prog_ac_ct_AS="as"
3847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851 done
3852
3853 fi
3854 fi
3855 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3856 if test -n "$ac_ct_AS"; then
3857   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3858 echo "${ECHO_T}$ac_ct_AS" >&6
3859 else
3860   echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3862 fi
3863
3864   AS=$ac_ct_AS
3865 else
3866   AS="$ac_cv_prog_AS"
3867 fi
3868
3869 if test -n "$ac_tool_prefix"; then
3870   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3871 set dummy ${ac_tool_prefix}ar; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_prog_AR+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   if test -n "$AR"; then
3878   ac_cv_prog_AR="$AR" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883   IFS=$as_save_IFS
3884   test -z "$as_dir" && as_dir=.
3885   for ac_exec_ext in '' $ac_executable_extensions; do
3886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887     ac_cv_prog_AR="${ac_tool_prefix}ar"
3888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889     break 2
3890   fi
3891 done
3892 done
3893
3894 fi
3895 fi
3896 AR=$ac_cv_prog_AR
3897 if test -n "$AR"; then
3898   echo "$as_me:$LINENO: result: $AR" >&5
3899 echo "${ECHO_T}$AR" >&6
3900 else
3901   echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6
3903 fi
3904
3905 fi
3906 if test -z "$ac_cv_prog_AR"; then
3907   ac_ct_AR=$AR
3908   # Extract the first word of "ar", so it can be a program name with args.
3909 set dummy ar; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   if test -n "$ac_ct_AR"; then
3916   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921   IFS=$as_save_IFS
3922   test -z "$as_dir" && as_dir=.
3923   for ac_exec_ext in '' $ac_executable_extensions; do
3924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925     ac_cv_prog_ac_ct_AR="ar"
3926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930 done
3931
3932 fi
3933 fi
3934 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3935 if test -n "$ac_ct_AR"; then
3936   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3937 echo "${ECHO_T}$ac_ct_AR" >&6
3938 else
3939   echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3941 fi
3942
3943   AR=$ac_ct_AR
3944 else
3945   AR="$ac_cv_prog_AR"
3946 fi
3947
3948 if test -n "$ac_tool_prefix"; then
3949   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_RANLIB+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if test -n "$RANLIB"; then
3957   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964   for ac_exec_ext in '' $ac_executable_extensions; do
3965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968     break 2
3969   fi
3970 done
3971 done
3972
3973 fi
3974 fi
3975 RANLIB=$ac_cv_prog_RANLIB
3976 if test -n "$RANLIB"; then
3977   echo "$as_me:$LINENO: result: $RANLIB" >&5
3978 echo "${ECHO_T}$RANLIB" >&6
3979 else
3980   echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982 fi
3983
3984 fi
3985 if test -z "$ac_cv_prog_RANLIB"; then
3986   ac_ct_RANLIB=$RANLIB
3987   # Extract the first word of "ranlib", so it can be a program name with args.
3988 set dummy ranlib; ac_word=$2
3989 echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   if test -n "$ac_ct_RANLIB"; then
3995   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002   for ac_exec_ext in '' $ac_executable_extensions; do
4003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004     ac_cv_prog_ac_ct_RANLIB="ranlib"
4005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006     break 2
4007   fi
4008 done
4009 done
4010
4011   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4012 fi
4013 fi
4014 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4015 if test -n "$ac_ct_RANLIB"; then
4016   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4017 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4018 else
4019   echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4021 fi
4022
4023   RANLIB=$ac_ct_RANLIB
4024 else
4025   RANLIB="$ac_cv_prog_RANLIB"
4026 fi
4027
4028
4029 # Find a good install program.  We prefer a C program (faster),
4030 # so one script is as good as another.  But avoid the broken or
4031 # incompatible versions:
4032 # SysV /etc/install, /usr/sbin/install
4033 # SunOS /usr/etc/install
4034 # IRIX /sbin/install
4035 # AIX /bin/install
4036 # AmigaOS /C/install, which installs bootblocks on floppy discs
4037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4040 # OS/2's system install, which has a completely different semantic
4041 # ./install, which can be erroneously created by make from ./install.sh.
4042 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4044 if test -z "$INSTALL"; then
4045 if test "${ac_cv_path_install+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   # Account for people who put trailing slashes in PATH elements.
4054 case $as_dir/ in
4055   ./ | .// | /cC/* | \
4056   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4057   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4058   /usr/ucb/* ) ;;
4059   *)
4060     # OSF1 and SCO ODT 3.0 have their own names for install.
4061     # Don't use installbsd from OSF since it installs stuff as root
4062     # by default.
4063     for ac_prog in ginstall scoinst install; do
4064       for ac_exec_ext in '' $ac_executable_extensions; do
4065         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4066           if test $ac_prog = install &&
4067             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4068             # AIX install.  It has an incompatible calling convention.
4069             :
4070           elif test $ac_prog = install &&
4071             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4072             # program-specific install script used by HP pwplus--don't use.
4073             :
4074           else
4075             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4076             break 3
4077           fi
4078         fi
4079       done
4080     done
4081     ;;
4082 esac
4083 done
4084
4085
4086 fi
4087   if test "${ac_cv_path_install+set}" = set; then
4088     INSTALL=$ac_cv_path_install
4089   else
4090     # As a last resort, use the slow shell script.  We don't cache a
4091     # path for INSTALL within a source directory, because that will
4092     # break other packages using the cache if that directory is
4093     # removed, or if the path is relative.
4094     INSTALL=$ac_install_sh
4095   fi
4096 fi
4097 echo "$as_me:$LINENO: result: $INSTALL" >&5
4098 echo "${ECHO_T}$INSTALL" >&6
4099
4100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4101 # It thinks the first close brace ends the variable substitution.
4102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4103
4104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4105
4106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4107
4108
4109 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4110 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4111     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4112 if test "${enable_maintainer_mode+set}" = set; then
4113   enableval="$enable_maintainer_mode"
4114   USE_MAINTAINER_MODE=$enableval
4115 else
4116   USE_MAINTAINER_MODE=no
4117 fi;
4118   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4119 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4120
4121
4122 if test $USE_MAINTAINER_MODE = yes; then
4123   MAINTAINER_MODE_TRUE=
4124   MAINTAINER_MODE_FALSE='#'
4125 else
4126   MAINTAINER_MODE_TRUE='#'
4127   MAINTAINER_MODE_FALSE=
4128 fi
4129
4130   MAINT=$MAINTAINER_MODE_TRUE
4131
4132
4133
4134 . ${srcdir}/configure.host
4135
4136 case ${gc_basedir} in
4137 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4138 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4139 esac
4140
4141 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4142 case "${host}" in
4143   *-*-cygwin32*)
4144     gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4145     ;;
4146 esac
4147
4148
4149 GC_CFLAGS=${gc_cflags}
4150
4151
4152
4153
4154 macro_version='2.1a'
4155 macro_revision='1.2435'
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168 ltmain="$ac_aux_dir/ltmain.sh"
4169
4170 # Set options
4171
4172 enable_dlopen=no
4173
4174
4175 enable_win32_dll=no
4176
4177
4178 # Check whether --enable-shared or --disable-shared was given.
4179 if test "${enable_shared+set}" = set; then
4180   enableval="$enable_shared"
4181   p=${PACKAGE-default}
4182     case $enableval in
4183     yes) enable_shared=yes ;;
4184     no) enable_shared=no ;;
4185     *)
4186       enable_shared=no
4187       # Look at the argument we got.  We use all the common list separators.
4188       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4189       for pkg in $enableval; do
4190         IFS="$lt_save_ifs"
4191         if test "X$pkg" = "X$p"; then
4192           enable_shared=yes
4193         fi
4194       done
4195       IFS="$lt_save_ifs"
4196       ;;
4197     esac
4198 else
4199   enable_shared=yes
4200 fi;
4201
4202
4203
4204
4205
4206
4207
4208
4209 # Check whether --enable-static or --disable-static was given.
4210 if test "${enable_static+set}" = set; then
4211   enableval="$enable_static"
4212   p=${PACKAGE-default}
4213     case $enableval in
4214     yes) enable_static=yes ;;
4215     no) enable_static=no ;;
4216     *)
4217      enable_static=no
4218       # Look at the argument we got.  We use all the common list separators.
4219       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4220       for pkg in $enableval; do
4221         IFS="$lt_save_ifs"
4222         if test "X$pkg" = "X$p"; then
4223           enable_static=yes
4224         fi
4225       done
4226       IFS="$lt_save_ifs"
4227       ;;
4228     esac
4229 else
4230   enable_static=yes
4231 fi;
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241 # Check whether --with-pic or --without-pic was given.
4242 if test "${with_pic+set}" = set; then
4243   withval="$with_pic"
4244   pic_mode="$withval"
4245 else
4246   pic_mode=default
4247 fi;
4248
4249 test -z "$pic_mode" && pic_mode=default
4250
4251
4252
4253
4254
4255
4256
4257 # Check whether --enable-fast-install or --disable-fast-install was given.
4258 if test "${enable_fast_install+set}" = set; then
4259   enableval="$enable_fast_install"
4260   p=${PACKAGE-default}
4261     case $enableval in
4262     yes) enable_fast_install=yes ;;
4263     no) enable_fast_install=no ;;
4264     *)
4265       enable_fast_install=no
4266       # Look at the argument we got.  We use all the common list separators.
4267       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268       for pkg in $enableval; do
4269         IFS="$lt_save_ifs"
4270         if test "X$pkg" = "X$p"; then
4271           enable_fast_install=yes
4272         fi
4273       done
4274       IFS="$lt_save_ifs"
4275       ;;
4276     esac
4277 else
4278   enable_fast_install=yes
4279 fi;
4280
4281
4282
4283
4284
4285
4286
4287
4288 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4289 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4290 if test "${lt_cv_path_SED+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   # Loop through the user's path and test for sed and gsed.
4294 # Then use that list of sed's as ones to test for truncation.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   for lt_ac_prog in sed gsed; do
4301     for ac_exec_ext in '' $ac_executable_extensions; do
4302       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4303         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4304       fi
4305     done
4306   done
4307 done
4308 IFS=$as_save_IFS
4309 lt_ac_max=0
4310 lt_ac_count=0
4311 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4312 # along with /bin/sed that truncates output.
4313 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4314   test ! -f $lt_ac_sed && continue
4315   cat /dev/null > conftest.in
4316   lt_ac_count=0
4317   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4318   # Check for GNU sed and select it if it is found.
4319   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4320     lt_cv_path_SED=$lt_ac_sed
4321     break
4322   fi
4323   while true; do
4324     cat conftest.in conftest.in >conftest.tmp
4325     mv conftest.tmp conftest.in
4326     cp conftest.in conftest.nl
4327     echo >>conftest.nl
4328     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4329     cmp -s conftest.out conftest.nl || break
4330     # 10000 chars as input seems more than enough
4331     test $lt_ac_count -gt 10 && break
4332     lt_ac_count=`expr $lt_ac_count + 1`
4333     if test $lt_ac_count -gt $lt_ac_max; then
4334       lt_ac_max=$lt_ac_count
4335       lt_cv_path_SED=$lt_ac_sed
4336     fi
4337   done
4338 done
4339
4340 fi
4341
4342 SED=$lt_cv_path_SED
4343
4344 echo "$as_me:$LINENO: result: $SED" >&5
4345 echo "${ECHO_T}$SED" >&6
4346
4347 test -z "$SED" && SED=sed
4348 Xsed="$SED -e 1s/^X//"
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360 echo "$as_me:$LINENO: checking for egrep" >&5
4361 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4362 if test "${ac_cv_prog_egrep+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4366     then ac_cv_prog_egrep='grep -E'
4367     else ac_cv_prog_egrep='egrep'
4368     fi
4369 fi
4370 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4371 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4372  EGREP=$ac_cv_prog_egrep
4373
4374
4375 echo "$as_me:$LINENO: checking for fgrep" >&5
4376 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4377 if test "${ac_cv_prog_fgrep+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4381     then ac_cv_prog_fgrep='grep -F'
4382     else ac_cv_prog_fgrep='fgrep'
4383     fi
4384 fi
4385 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4386 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4387  FGREP=$ac_cv_prog_fgrep
4388
4389
4390 test -z "$GREP" && GREP=grep
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4411 if test "${with_gnu_ld+set}" = set; then
4412   withval="$with_gnu_ld"
4413   test "$withval" = no || with_gnu_ld=yes
4414 else
4415   with_gnu_ld=no
4416 fi;
4417 ac_prog=ld
4418 if test "$GCC" = yes; then
4419   # Check if gcc -print-prog-name=ld gives a path.
4420   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4421 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4422   case $host in
4423   *-*-mingw*)
4424     # gcc leaves a trailing carriage return which upsets mingw
4425     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4426   *)
4427     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4428   esac
4429   case $ac_prog in
4430     # Accept absolute paths.
4431     [\\/]* | ?:[\\/]*)
4432       re_direlt='/[^/][^/]*/\.\./'
4433       # Canonicalize the pathname of ld
4434       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4435       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4436         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4437       done
4438       test -z "$LD" && LD="$ac_prog"
4439       ;;
4440   "")
4441     # If it fails, then pretend we aren't using GCC.
4442     ac_prog=ld
4443     ;;
4444   *)
4445     # If it is relative, then search for the first ld in PATH.
4446     with_gnu_ld=unknown
4447     ;;
4448   esac
4449 elif test "$with_gnu_ld" = yes; then
4450   echo "$as_me:$LINENO: checking for GNU ld" >&5
4451 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4452 else
4453   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4454 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4455 fi
4456 if test "${lt_cv_path_LD+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   if test -z "$LD"; then
4460   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4461   for ac_dir in $PATH; do
4462     IFS="$lt_save_ifs"
4463     test -z "$ac_dir" && ac_dir=.
4464     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4465       lt_cv_path_LD="$ac_dir/$ac_prog"
4466       # Check to see if the program is GNU ld.  I'd rather use --version,
4467       # but apparently some variants of GNU ld only accept -v.
4468       # Break only if it was the GNU/non-GNU ld that we prefer.
4469       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4470       *GNU* | *'with BFD'*)
4471         test "$with_gnu_ld" != no && break
4472         ;;
4473       *)
4474         test "$with_gnu_ld" != yes && break
4475         ;;
4476       esac
4477     fi
4478   done
4479   IFS="$lt_save_ifs"
4480 else
4481   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4482 fi
4483 fi
4484
4485 LD="$lt_cv_path_LD"
4486 if test -n "$LD"; then
4487   echo "$as_me:$LINENO: result: $LD" >&5
4488 echo "${ECHO_T}$LD" >&6
4489 else
4490   echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6
4492 fi
4493 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4494 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4495    { (exit 1); exit 1; }; }
4496 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4497 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4498 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4502 case `$LD -v 2>&1 </dev/null` in
4503 *GNU* | *'with BFD'*)
4504   lt_cv_prog_gnu_ld=yes
4505   ;;
4506 *)
4507   lt_cv_prog_gnu_ld=no
4508   ;;
4509 esac
4510 fi
4511 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4512 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4513 with_gnu_ld=$lt_cv_prog_gnu_ld
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4525 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4526 if test "${lt_cv_path_NM+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   if test -n "$NM"; then
4530   # Let the user override the test.
4531   lt_cv_path_NM="$NM"
4532 else
4533   lt_nm_to_check="${ac_tool_prefix}nm"
4534   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4535     lt_nm_to_check="$lt_nm_to_check nm"
4536   fi
4537   for lt_tmp_nm in $lt_nm_to_check; do
4538     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4540       IFS="$lt_save_ifs"
4541       test -z "$ac_dir" && ac_dir=.
4542       tmp_nm="$ac_dir/$lt_tmp_nm"
4543       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4544         # Check to see if the nm accepts a BSD-compat flag.
4545         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4546         #   nm: unknown option "B" ignored
4547         # Tru64's nm complains that /dev/null is an invalid object file
4548         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4549         */dev/null* | *'Invalid file or object type'*)
4550           lt_cv_path_NM="$tmp_nm -B"
4551           break
4552           ;;
4553         *)
4554           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4555           */dev/null*)
4556             lt_cv_path_NM="$tmp_nm -p"
4557             break
4558             ;;
4559           *)
4560             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4561             continue # so that we can try to find one that supports BSD flags
4562             ;;
4563           esac
4564           ;;
4565         esac
4566       fi
4567     done
4568     IFS="$lt_save_ifs"
4569   done
4570   : ${lt_cv_path_NM=no}
4571 fi
4572 fi
4573 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4574 echo "${ECHO_T}$lt_cv_path_NM" >&6
4575 if test "$lt_cv_path_NM" != "no"; then
4576   NM="$lt_cv_path_NM"
4577 else
4578   # Didn't find any BSD compatible name lister, look for dumpbin.
4579   if test -n "$ac_tool_prefix"; then
4580   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4581   do
4582     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4584 echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4586 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   if test -n "$DUMPBIN"; then
4590   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597   for ac_exec_ext in '' $ac_executable_extensions; do
4598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604 done
4605
4606 fi
4607 fi
4608 DUMPBIN=$ac_cv_prog_DUMPBIN
4609 if test -n "$DUMPBIN"; then
4610   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4611 echo "${ECHO_T}$DUMPBIN" >&6
4612 else
4613   echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4615 fi
4616
4617     test -n "$DUMPBIN" && break
4618   done
4619 fi
4620 if test -z "$DUMPBIN"; then
4621   ac_ct_DUMPBIN=$DUMPBIN
4622   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4623 do
4624   # Extract the first word of "$ac_prog", so it can be a program name with args.
4625 set dummy $ac_prog; ac_word=$2
4626 echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4628 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   if test -n "$ac_ct_DUMPBIN"; then
4632   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637   IFS=$as_save_IFS
4638   test -z "$as_dir" && as_dir=.
4639   for ac_exec_ext in '' $ac_executable_extensions; do
4640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643     break 2
4644   fi
4645 done
4646 done
4647
4648 fi
4649 fi
4650 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4651 if test -n "$ac_ct_DUMPBIN"; then
4652   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4653 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4654 else
4655   echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6
4657 fi
4658
4659   test -n "$ac_ct_DUMPBIN" && break
4660 done
4661 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4662
4663   DUMPBIN=$ac_ct_DUMPBIN
4664 fi
4665
4666
4667   if test "$DUMPBIN" != ":"; then
4668     NM="$DUMPBIN"
4669   fi
4670 fi
4671 test -z "$NM" && NM=nm
4672
4673
4674
4675
4676
4677
4678 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4679 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4680 if test "${lt_cv_nm_interface+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   lt_cv_nm_interface="BSD nm"
4684   echo "int some_variable = 0;" > conftest.$ac_ext
4685   (eval echo "\"\$as_me:4685: $ac_compile\"" >&5)
4686   (eval "$ac_compile" 2>conftest.err)
4687   cat conftest.err >&5
4688   (eval echo "\"\$as_me:4688: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4689   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4690   cat conftest.err >&5
4691   (eval echo "\"\$as_me:4691: output\"" >&5)
4692   cat conftest.out >&5
4693   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4694     lt_cv_nm_interface="MS dumpbin"
4695   fi
4696   rm -f conftest*
4697 fi
4698 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4699 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4700
4701 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4702 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4703 LN_S=$as_ln_s
4704 if test "$LN_S" = "ln -s"; then
4705   echo "$as_me:$LINENO: result: yes" >&5
4706 echo "${ECHO_T}yes" >&6
4707 else
4708   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4709 echo "${ECHO_T}no, using $LN_S" >&6
4710 fi
4711
4712 # find the maximum length of command line arguments
4713 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4714 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4715 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718     i=0
4719   teststring="ABCD"
4720
4721   case $build_os in
4722   msdosdjgpp*)
4723     # On DJGPP, this test can blow up pretty badly due to problems in libc
4724     # (any single argument exceeding 2000 bytes causes a buffer overrun
4725     # during glob expansion).  Even if it were fixed, the result of this
4726     # check would be larger than it should be.
4727     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4728     ;;
4729
4730   gnu*)
4731     # Under GNU Hurd, this test is not required because there is
4732     # no limit to the length of command line arguments.
4733     # Libtool will interpret -1 as no limit whatsoever
4734     lt_cv_sys_max_cmd_len=-1;
4735     ;;
4736
4737   cygwin* | mingw*)
4738     # On Win9x/ME, this test blows up -- it succeeds, but takes
4739     # about 5 minutes as the teststring grows exponentially.
4740     # Worse, since 9x/ME are not pre-emptively multitasking,
4741     # you end up with a "frozen" computer, even though with patience
4742     # the test eventually succeeds (with a max line length of 256k).
4743     # Instead, let's just punt: use the minimum linelength reported by
4744     # all of the supported platforms: 8192 (on NT/2K/XP).
4745     lt_cv_sys_max_cmd_len=8192;
4746     ;;
4747
4748   amigaos*)
4749     # On AmigaOS with pdksh, this test takes hours, literally.
4750     # So we just punt and use a minimum line length of 8192.
4751     lt_cv_sys_max_cmd_len=8192;
4752     ;;
4753
4754   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4755     # This has been around since 386BSD, at least.  Likely further.
4756     if test -x /sbin/sysctl; then
4757       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4758     elif test -x /usr/sbin/sysctl; then
4759       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4760     else
4761       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4762     fi
4763     # And add a safety zone
4764     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4765     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4766     ;;
4767
4768   interix*)
4769     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4770     lt_cv_sys_max_cmd_len=196608
4771     ;;
4772
4773   osf*)
4774     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4775     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4776     # nice to cause kernel panics so lets avoid the loop below.
4777     # First set a reasonable default.
4778     lt_cv_sys_max_cmd_len=16384
4779     #
4780     if test -x /sbin/sysconfig; then
4781       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4782         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4783       esac
4784     fi
4785     ;;
4786   sco3.2v5*)
4787     lt_cv_sys_max_cmd_len=102400
4788     ;;
4789   sysv5* | sco5v6* | sysv4.2uw2*)
4790     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4791     if test -n "$kargmax"; then
4792       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4793     else
4794       lt_cv_sys_max_cmd_len=32768
4795     fi
4796     ;;
4797   *)
4798     # Make teststring a little bigger before we do anything with it.
4799     # a 1K string should be a reasonable start.
4800     for i in 1 2 3 4 5 6 7 8 ; do
4801       teststring=$teststring$teststring
4802     done
4803     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4804     # If test is not a shell built-in, we'll probably end up computing a
4805     # maximum length that is only half of the actual maximum length, but
4806     # we can't tell.
4807     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4808                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4809             test $i != 17 # 1/2 MB should be enough
4810     do
4811       i=`expr $i + 1`
4812       teststring=$teststring$teststring
4813     done
4814     # Only check the string length outside the loop.
4815     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4816     teststring=
4817     # Add a significant safety factor because C++ compilers can tack on massive
4818     # amounts of additional arguments before passing them to the linker.
4819     # It appears as though 1/2 is a usable value.
4820     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4821     ;;
4822   esac
4823
4824 fi
4825
4826 if test -n $lt_cv_sys_max_cmd_len ; then
4827   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4828 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4829 else
4830   echo "$as_me:$LINENO: result: none" >&5
4831 echo "${ECHO_T}none" >&6
4832 fi
4833 max_cmd_len=$lt_cv_sys_max_cmd_len
4834
4835
4836
4837
4838
4839
4840
4841 : ${CP="cp -f"}
4842 : ${MV="mv -f"}
4843 : ${RM="rm -f"}
4844
4845 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4846 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4847 # Try some XSI features
4848 xsi_shell=no
4849 ( _lt_dummy="a/b/c"
4850   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4851       = c,a/b,, ) >/dev/null 2>&1 \
4852   && xsi_shell=yes
4853 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4854 echo "${ECHO_T}$xsi_shell" >&6
4855
4856
4857 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4858 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4859 lt_shell_append=no
4860 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4861     >/dev/null 2>&1 \
4862   && lt_shell_append=yes
4863 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4864 echo "${ECHO_T}$lt_shell_append" >&6
4865
4866
4867 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4868   lt_unset=unset
4869 else
4870   lt_unset=false
4871 fi
4872
4873
4874
4875
4876
4877 # test EBCDIC or ASCII
4878 case `echo X|tr X '\101'` in
4879  A) # ASCII based system
4880     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4881   lt_SP2NL='tr \040 \012'
4882   lt_NL2SP='tr \015\012 \040\040'
4883   ;;
4884  *) # EBCDIC based system
4885   lt_SP2NL='tr \100 \n'
4886   lt_NL2SP='tr \r\n \100\100'
4887   ;;
4888 esac
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4899 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4900 if test "${lt_cv_ld_reload_flag+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   lt_cv_ld_reload_flag='-r'
4904 fi
4905 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4906 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4907 reload_flag=$lt_cv_ld_reload_flag
4908 case $reload_flag in
4909 "" | " "*) ;;
4910 *) reload_flag=" $reload_flag" ;;
4911 esac
4912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4913 case $host_os in
4914   darwin*)
4915     if test "$GCC" = yes; then
4916       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4917     else
4918       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4919     fi
4920     ;;
4921 esac
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4933 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4934 if test "${lt_cv_deplibs_check_method+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   lt_cv_file_magic_cmd='$MAGIC_CMD'
4938 lt_cv_file_magic_test_file=
4939 lt_cv_deplibs_check_method='unknown'
4940 # Need to set the preceding variable on all platforms that support
4941 # interlibrary dependencies.
4942 # 'none' -- dependencies not supported.
4943 # `unknown' -- same as none, but documents that we really don't know.
4944 # 'pass_all' -- all dependencies passed with no checks.
4945 # 'test_compile' -- check by making test program.
4946 # 'file_magic [[regex]]' -- check by looking for files in library path
4947 # which responds to the $file_magic_cmd with a given extended regex.
4948 # If you have `file' or equivalent on your system and you're not sure
4949 # whether `pass_all' will *always* work, you probably want this one.
4950
4951 case $host_os in
4952 aix4* | aix5*)
4953   lt_cv_deplibs_check_method=pass_all
4954   ;;
4955
4956 beos*)
4957   lt_cv_deplibs_check_method=pass_all
4958   ;;
4959
4960 bsdi[45]*)
4961   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4962   lt_cv_file_magic_cmd='/usr/bin/file -L'
4963   lt_cv_file_magic_test_file=/shlib/libc.so
4964   ;;
4965
4966 cygwin*)
4967   # func_win32_libid is a shell function defined in ltmain.sh
4968   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4969   lt_cv_file_magic_cmd='func_win32_libid'
4970   ;;
4971
4972 mingw* | pw32*)
4973   # Base MSYS/MinGW do not provide the 'file' command needed by
4974   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4975   # unless we find 'file', for example because we are cross-compiling.
4976   if ( file / ) >/dev/null 2>&1; then
4977     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4978     lt_cv_file_magic_cmd='func_win32_libid'
4979   else
4980     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4981     lt_cv_file_magic_cmd='$OBJDUMP -f'
4982   fi
4983   ;;
4984
4985 darwin* | rhapsody*)
4986   lt_cv_deplibs_check_method=pass_all
4987   ;;
4988
4989 freebsd* | dragonfly*)
4990   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4991     case $host_cpu in
4992     i*86 )
4993       # Not sure whether the presence of OpenBSD here was a mistake.
4994       # Let's accept both of them until this is cleared up.
4995       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4996       lt_cv_file_magic_cmd=/usr/bin/file
4997       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4998       ;;
4999     esac
5000   else
5001     lt_cv_deplibs_check_method=pass_all
5002   fi
5003   ;;
5004
5005 gnu*)
5006   lt_cv_deplibs_check_method=pass_all
5007   ;;
5008
5009 hpux10.20* | hpux11*)
5010   lt_cv_file_magic_cmd=/usr/bin/file
5011   case $host_cpu in
5012   ia64*)
5013     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5014     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5015     ;;
5016   hppa*64*)
5017     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5018     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5019     ;;
5020   *)
5021     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5022     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5023     ;;
5024   esac
5025   ;;
5026
5027 interix[3-9]*)
5028   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5029   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5030   ;;
5031
5032 irix5* | irix6* | nonstopux*)
5033   case $LD in
5034   *-32|*"-32 ") libmagic=32-bit;;
5035   *-n32|*"-n32 ") libmagic=N32;;
5036   *-64|*"-64 ") libmagic=64-bit;;
5037   *) libmagic=never-match;;
5038   esac
5039   lt_cv_deplibs_check_method=pass_all
5040   ;;
5041
5042 # This must be Linux ELF.
5043 linux* | k*bsd*-gnu)
5044   lt_cv_deplibs_check_method=pass_all
5045   ;;
5046
5047 netbsd*)
5048   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5050   else
5051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5052   fi
5053   ;;
5054
5055 newos6*)
5056   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5057   lt_cv_file_magic_cmd=/usr/bin/file
5058   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5059   ;;
5060
5061 *nto* | *qnx*)
5062   lt_cv_deplibs_check_method=pass_all
5063   ;;
5064
5065 openbsd*)
5066   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5067     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5068   else
5069     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5070   fi
5071   ;;
5072
5073 osf3* | osf4* | osf5*)
5074   lt_cv_deplibs_check_method=pass_all
5075   ;;
5076
5077 rdos*)
5078   lt_cv_deplibs_check_method=pass_all
5079   ;;
5080
5081 solaris*)
5082   lt_cv_deplibs_check_method=pass_all
5083   ;;
5084
5085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5086   lt_cv_deplibs_check_method=pass_all
5087   ;;
5088
5089 sysv4 | sysv4.3*)
5090   case $host_vendor in
5091   motorola)
5092     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]'
5093     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5094     ;;
5095   ncr)
5096     lt_cv_deplibs_check_method=pass_all
5097     ;;
5098   sequent)
5099     lt_cv_file_magic_cmd='/bin/file'
5100     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5101     ;;
5102   sni)
5103     lt_cv_file_magic_cmd='/bin/file'
5104     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5105     lt_cv_file_magic_test_file=/lib/libc.so
5106     ;;
5107   siemens)
5108     lt_cv_deplibs_check_method=pass_all
5109     ;;
5110   pc)
5111     lt_cv_deplibs_check_method=pass_all
5112     ;;
5113   esac
5114   ;;
5115
5116 tpf*)
5117   lt_cv_deplibs_check_method=pass_all
5118   ;;
5119 esac
5120
5121 fi
5122 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5123 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5124 file_magic_cmd=$lt_cv_file_magic_cmd
5125 deplibs_check_method=$lt_cv_deplibs_check_method
5126 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139 if test -n "$ac_tool_prefix"; then
5140   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}ar; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_AR+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   if test -n "$AR"; then
5148   ac_cv_prog_AR="$AR" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155   for ac_exec_ext in '' $ac_executable_extensions; do
5156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_prog_AR="${ac_tool_prefix}ar"
5158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162 done
5163
5164 fi
5165 fi
5166 AR=$ac_cv_prog_AR
5167 if test -n "$AR"; then
5168   echo "$as_me:$LINENO: result: $AR" >&5
5169 echo "${ECHO_T}$AR" >&6
5170 else
5171   echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173 fi
5174
5175 fi
5176 if test -z "$ac_cv_prog_AR"; then
5177   ac_ct_AR=$AR
5178   # Extract the first word of "ar", so it can be a program name with args.
5179 set dummy ar; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   if test -n "$ac_ct_AR"; then
5186   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_prog_ac_ct_AR="ar"
5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200 done
5201
5202   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5203 fi
5204 fi
5205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5206 if test -n "$ac_ct_AR"; then
5207   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5208 echo "${ECHO_T}$ac_ct_AR" >&6
5209 else
5210   echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5212 fi
5213
5214   AR=$ac_ct_AR
5215 else
5216   AR="$ac_cv_prog_AR"
5217 fi
5218
5219 test -z "$AR" && AR=ar
5220 test -z "$AR_FLAGS" && AR_FLAGS=cru
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232 if test -n "$ac_tool_prefix"; then
5233   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}strip; ac_word=$2
5235 echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 if test "${ac_cv_prog_STRIP+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   if test -n "$STRIP"; then
5241   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for ac_exec_ext in '' $ac_executable_extensions; do
5249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255 done
5256
5257 fi
5258 fi
5259 STRIP=$ac_cv_prog_STRIP
5260 if test -n "$STRIP"; then
5261   echo "$as_me:$LINENO: result: $STRIP" >&5
5262 echo "${ECHO_T}$STRIP" >&6
5263 else
5264   echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6
5266 fi
5267
5268 fi
5269 if test -z "$ac_cv_prog_STRIP"; then
5270   ac_ct_STRIP=$STRIP
5271   # Extract the first word of "strip", so it can be a program name with args.
5272 set dummy strip; ac_word=$2
5273 echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   if test -n "$ac_ct_STRIP"; then
5279   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286   for ac_exec_ext in '' $ac_executable_extensions; do
5287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288     ac_cv_prog_ac_ct_STRIP="strip"
5289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293 done
5294
5295   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5296 fi
5297 fi
5298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5299 if test -n "$ac_ct_STRIP"; then
5300   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5301 echo "${ECHO_T}$ac_ct_STRIP" >&6
5302 else
5303   echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5305 fi
5306
5307   STRIP=$ac_ct_STRIP
5308 else
5309   STRIP="$ac_cv_prog_STRIP"
5310 fi
5311
5312 test -z "$STRIP" && STRIP=:
5313
5314
5315
5316
5317
5318
5319 if test -n "$ac_tool_prefix"; then
5320   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5322 echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5324 if test "${ac_cv_prog_RANLIB+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   if test -n "$RANLIB"; then
5328   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333   IFS=$as_save_IFS
5334   test -z "$as_dir" && as_dir=.
5335   for ac_exec_ext in '' $ac_executable_extensions; do
5336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339     break 2
5340   fi
5341 done
5342 done
5343
5344 fi
5345 fi
5346 RANLIB=$ac_cv_prog_RANLIB
5347 if test -n "$RANLIB"; then
5348   echo "$as_me:$LINENO: result: $RANLIB" >&5
5349 echo "${ECHO_T}$RANLIB" >&6
5350 else
5351   echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6
5353 fi
5354
5355 fi
5356 if test -z "$ac_cv_prog_RANLIB"; then
5357   ac_ct_RANLIB=$RANLIB
5358   # Extract the first word of "ranlib", so it can be a program name with args.
5359 set dummy ranlib; ac_word=$2
5360 echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5362 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365   if test -n "$ac_ct_RANLIB"; then
5366   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373   for ac_exec_ext in '' $ac_executable_extensions; do
5374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375     ac_cv_prog_ac_ct_RANLIB="ranlib"
5376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380 done
5381
5382   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5383 fi
5384 fi
5385 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5386 if test -n "$ac_ct_RANLIB"; then
5387   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5388 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5389 else
5390   echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5392 fi
5393
5394   RANLIB=$ac_ct_RANLIB
5395 else
5396   RANLIB="$ac_cv_prog_RANLIB"
5397 fi
5398
5399 test -z "$RANLIB" && RANLIB=:
5400
5401
5402
5403
5404
5405
5406 # Determine commands to create old-style static archives.
5407 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5408 old_postinstall_cmds='chmod 644 $oldlib'
5409 old_postuninstall_cmds=
5410
5411 if test -n "$RANLIB"; then
5412   case $host_os in
5413   openbsd*)
5414     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5415     ;;
5416   *)
5417     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5418     ;;
5419   esac
5420   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5421 fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 # If no C compiler was specified, use CC.
5457 LTCC=${LTCC-"$CC"}
5458
5459 # If no C compiler flags were specified, use CFLAGS.
5460 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5461
5462 # Allow CC to be a program name with arguments.
5463 compiler=$CC
5464
5465
5466 # Check for command to grab the raw symbol name followed by C symbol from nm.
5467 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472
5473 # These are sane defaults that work on at least a few old systems.
5474 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5475
5476 # Character class describing NM global symbol codes.
5477 symcode='[BCDEGRST]'
5478
5479 # Regexp to match symbols that can be accessed directly from C.
5480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5481
5482 # Define system-specific variables.
5483 case $host_os in
5484 aix*)
5485   symcode='[BCDT]'
5486   ;;
5487 cygwin* | mingw* | pw32*)
5488   symcode='[ABCDGISTW]'
5489   ;;
5490 hpux*)
5491   if test "$host_cpu" = ia64; then
5492     symcode='[ABCDEGRST]'
5493   fi
5494   ;;
5495 irix* | nonstopux*)
5496   symcode='[BCDEGRST]'
5497   ;;
5498 osf*)
5499   symcode='[BCDEGQRST]'
5500   ;;
5501 solaris*)
5502   symcode='[BDRT]'
5503   ;;
5504 sco3.2v5*)
5505   symcode='[DT]'
5506   ;;
5507 sysv4.2uw2*)
5508   symcode='[DT]'
5509   ;;
5510 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5511   symcode='[ABDT]'
5512   ;;
5513 sysv4)
5514   symcode='[DFNSTU]'
5515   ;;
5516 esac
5517
5518 # If we're using GNU nm, then use its standard symbol codes.
5519 case `$NM -V 2>&1` in
5520 *GNU* | *'with BFD'*)
5521   symcode='[ABCDGIRSTW]' ;;
5522 esac
5523
5524 # Transform an extracted symbol line into a proper C declaration.
5525 # Some systems (esp. on ia64) link data and code symbols differently,
5526 # so use this general approach.
5527 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5528
5529 # Transform an extracted symbol line into symbol name and symbol address
5530 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5531
5532 # Handle CRLF in mingw tool chain
5533 opt_cr=
5534 case $build_os in
5535 mingw*)
5536   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5537   ;;
5538 esac
5539
5540 # Try without a prefix underscore, then with it.
5541 for ac_symprfx in "" "_"; do
5542
5543   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5544   symxfrm="\\1 $ac_symprfx\\2 \\2"
5545
5546   # Write the raw and C identifiers.
5547   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5548     # Fake it for dumpbin and say T for any non-static function
5549     # and D for any global variable.
5550     # Also find C++ and __fastcall symbols from MSVC++,
5551     # which start with @ or ?.
5552     lt_cv_sys_global_symbol_pipe="$AWK '"\
5553 "     {last_section=section; section=\$ 3};"\
5554 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5555 "     \$ 0!~/External *\|/{next};"\
5556 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5557 "     {if(hide[section]) next};"\
5558 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5559 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5560 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5561 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5562 "     ' prfx=^$ac_symprfx"
5563   else
5564     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5565   fi
5566
5567   # Check to see that the pipe works correctly.
5568   pipe_works=no
5569
5570   rm -f conftest*
5571   cat > conftest.$ac_ext <<_LT_EOF
5572 #ifdef __cplusplus
5573 extern "C" {
5574 #endif
5575 char nm_test_var;
5576 void nm_test_func(void);
5577 void nm_test_func(void){}
5578 #ifdef __cplusplus
5579 }
5580 #endif
5581 int main(){nm_test_var='a';nm_test_func();return(0);}
5582 _LT_EOF
5583
5584   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585   (eval $ac_compile) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; then
5589     # Now try to grab the symbols.
5590     nlist=conftest.nm
5591     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5592   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } && test -s "$nlist"; then
5596       # Try sorting and uniquifying the output.
5597       if sort "$nlist" | uniq > "$nlist"T; then
5598         mv -f "$nlist"T "$nlist"
5599       else
5600         rm -f "$nlist"T
5601       fi
5602
5603       # Make sure that we snagged all the symbols we need.
5604       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5605         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5606           cat <<_LT_EOF > conftest.$ac_ext
5607 #ifdef __cplusplus
5608 extern "C" {
5609 #endif
5610
5611 _LT_EOF
5612           # Now generate the symbol file.
5613           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5614
5615           cat <<_LT_EOF >> conftest.$ac_ext
5616
5617 /* The mapping between symbol names and symbols.  */
5618 const struct {
5619   const char *name;
5620   void       *address;
5621 }
5622 lt__PROGRAM__LTX_preloaded_symbols[] =
5623 {
5624   { "@PROGRAM@", (void *) 0 },
5625 _LT_EOF
5626           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5627           cat <<\_LT_EOF >> conftest.$ac_ext
5628   {0, (void *) 0}
5629 };
5630
5631 /* This works around a problem in FreeBSD linker */
5632 #ifdef FREEBSD_WORKAROUND
5633 static const void *lt_preloaded_setup() {
5634   return lt__PROGRAM__LTX_preloaded_symbols;
5635 }
5636 #endif
5637
5638 #ifdef __cplusplus
5639 }
5640 #endif
5641 _LT_EOF
5642           # Now try linking the two files.
5643           mv conftest.$ac_objext conftstm.$ac_objext
5644           lt_save_LIBS="$LIBS"
5645           lt_save_CFLAGS="$CFLAGS"
5646           LIBS="conftstm.$ac_objext"
5647           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5648           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649   (eval $ac_link) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5653             pipe_works=yes
5654           fi
5655           LIBS="$lt_save_LIBS"
5656           CFLAGS="$lt_save_CFLAGS"
5657         else
5658           echo "cannot find nm_test_func in $nlist" >&5
5659         fi
5660       else
5661         echo "cannot find nm_test_var in $nlist" >&5
5662       fi
5663     else
5664       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5665     fi
5666   else
5667     echo "$progname: failed program was:" >&5
5668     cat conftest.$ac_ext >&5
5669   fi
5670   rm -f conftest* conftst*
5671
5672   # Do not use the global_symbol_pipe unless it works.
5673   if test "$pipe_works" = yes; then
5674     break
5675   else
5676     lt_cv_sys_global_symbol_pipe=
5677   fi
5678 done
5679
5680 fi
5681
5682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5683   lt_cv_sys_global_symbol_to_cdecl=
5684 fi
5685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5686   echo "$as_me:$LINENO: result: failed" >&5
5687 echo "${ECHO_T}failed" >&6
5688 else
5689   echo "$as_me:$LINENO: result: ok" >&5
5690 echo "${ECHO_T}ok" >&6
5691 fi
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5711 if test "${enable_libtool_lock+set}" = set; then
5712   enableval="$enable_libtool_lock"
5713
5714 fi;
5715 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5716
5717 # Some flags need to be propagated to the compiler or linker for good
5718 # libtool support.
5719 case $host in
5720 ia64-*-hpux*)
5721   # Find out which ABI we are using.
5722   echo 'int i;' > conftest.$ac_ext
5723   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724   (eval $ac_compile) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; then
5728     case `/usr/bin/file conftest.$ac_objext` in
5729       *ELF-32*)
5730         HPUX_IA64_MODE="32"
5731         ;;
5732       *ELF-64*)
5733         HPUX_IA64_MODE="64"
5734         ;;
5735     esac
5736   fi
5737   rm -rf conftest*
5738   ;;
5739 *-*-irix6*)
5740   # Find out which ABI we are using.
5741   echo '#line 5741 "configure"' > conftest.$ac_ext
5742   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743   (eval $ac_compile) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; then
5747     if test "$lt_cv_prog_gnu_ld" = yes; then
5748       case `/usr/bin/file conftest.$ac_objext` in
5749         *32-bit*)
5750           LD="${LD-ld} -melf32bsmip"
5751           ;;
5752         *N32*)
5753           LD="${LD-ld} -melf32bmipn32"
5754           ;;
5755         *64-bit*)
5756           LD="${LD-ld} -melf64bmip"
5757         ;;
5758       esac
5759     else
5760       case `/usr/bin/file conftest.$ac_objext` in
5761         *32-bit*)
5762           LD="${LD-ld} -32"
5763           ;;
5764         *N32*)
5765           LD="${LD-ld} -n32"
5766           ;;
5767         *64-bit*)
5768           LD="${LD-ld} -64"
5769           ;;
5770       esac
5771     fi
5772   fi
5773   rm -rf conftest*
5774   ;;
5775
5776 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5777 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5778   # Find out which ABI we are using.
5779   echo 'int i;' > conftest.$ac_ext
5780   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781   (eval $ac_compile) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; then
5785     case `/usr/bin/file conftest.o` in
5786       *32-bit*)
5787         case $host in
5788           x86_64-*kfreebsd*-gnu)
5789             LD="${LD-ld} -m elf_i386_fbsd"
5790             ;;
5791           x86_64-*linux*)
5792             LD="${LD-ld} -m elf_i386"
5793             ;;
5794           ppc64-*linux*|powerpc64-*linux*)
5795             LD="${LD-ld} -m elf32ppclinux"
5796             ;;
5797           s390x-*linux*)
5798             LD="${LD-ld} -m elf_s390"
5799             ;;
5800           sparc64-*linux*)
5801             LD="${LD-ld} -m elf32_sparc"
5802             ;;
5803         esac
5804         ;;
5805       *64-bit*)
5806         case $host in
5807           x86_64-*kfreebsd*-gnu)
5808             LD="${LD-ld} -m elf_x86_64_fbsd"
5809             ;;
5810           x86_64-*linux*)
5811             LD="${LD-ld} -m elf_x86_64"
5812             ;;
5813           ppc*-*linux*|powerpc*-*linux*)
5814             LD="${LD-ld} -m elf64ppc"
5815             ;;
5816           s390*-*linux*|s390*-*tpf*)
5817             LD="${LD-ld} -m elf64_s390"
5818             ;;
5819           sparc*-*linux*)
5820             LD="${LD-ld} -m elf64_sparc"
5821             ;;
5822         esac
5823         ;;
5824     esac
5825   fi
5826   rm -rf conftest*
5827   ;;
5828
5829 *-*-sco3.2v5*)
5830   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5831   SAVE_CFLAGS="$CFLAGS"
5832   CFLAGS="$CFLAGS -belf"
5833   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5834 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5835 if test "${lt_cv_cc_needs_belf+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   ac_ext=c
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843
5844      if test x$gcc_no_link = xyes; then
5845   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5847    { (exit 1); exit 1; }; }
5848 fi
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855
5856 int
5857 main ()
5858 {
5859
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866   (eval $ac_link) 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -z "$ac_c_werror_flag"
5874                          || test ! -s conftest.err'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; } &&
5880          { ac_try='test -s conftest$ac_exeext'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; }; then
5886   lt_cv_cc_needs_belf=yes
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 lt_cv_cc_needs_belf=no
5892 fi
5893 rm -f conftest.err conftest.$ac_objext \
5894       conftest$ac_exeext conftest.$ac_ext
5895      ac_ext=c
5896 ac_cpp='$CPP $CPPFLAGS'
5897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5900
5901 fi
5902 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5903 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5904   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5905     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5906     CFLAGS="$SAVE_CFLAGS"
5907   fi
5908   ;;
5909 sparc*-*solaris*)
5910   # Find out which ABI we are using.
5911   echo 'int i;' > conftest.$ac_ext
5912   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913   (eval $ac_compile) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; then
5917     case `/usr/bin/file conftest.o` in
5918     *64-bit*)
5919       case $lt_cv_prog_gnu_ld in
5920       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5921       *)    LD="${LD-ld} -64" ;;
5922       esac
5923       ;;
5924     esac
5925   fi
5926   rm -rf conftest*
5927   ;;
5928 esac
5929
5930 need_locks="$enable_libtool_lock"
5931
5932 ac_ext=c
5933 ac_cpp='$CPP $CPPFLAGS'
5934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5939 # On Suns, sometimes $CPP names a directory.
5940 if test -n "$CPP" && test -d "$CPP"; then
5941   CPP=
5942 fi
5943 if test -z "$CPP"; then
5944   if test "${ac_cv_prog_CPP+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947       # Double quotes because CPP needs to be expanded
5948     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5949     do
5950       ac_preproc_ok=false
5951 for ac_c_preproc_warn_flag in '' yes
5952 do
5953   # Use a header file that comes with gcc, so configuring glibc
5954   # with a fresh cross-compiler works.
5955   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5956   # <limits.h> exists even on freestanding compilers.
5957   # On the NeXT, cc -E runs the code through the compiler's parser,
5958   # not just through cpp. "Syntax error" is here to catch this case.
5959   cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965 #ifdef __STDC__
5966 # include <limits.h>
5967 #else
5968 # include <assert.h>
5969 #endif
5970                      Syntax error
5971 _ACEOF
5972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5974   ac_status=$?
5975   grep -v '^ *+' conftest.er1 >conftest.err
5976   rm -f conftest.er1
5977   cat conftest.err >&5
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } >/dev/null; then
5980   if test -s conftest.err; then
5981     ac_cpp_err=$ac_c_preproc_warn_flag
5982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5983   else
5984     ac_cpp_err=
5985   fi
5986 else
5987   ac_cpp_err=yes
5988 fi
5989 if test -z "$ac_cpp_err"; then
5990   :
5991 else
5992   echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5994
5995   # Broken: fails on valid input.
5996 continue
5997 fi
5998 rm -f conftest.err conftest.$ac_ext
5999
6000   # OK, works on sane cases.  Now check whether non-existent headers
6001   # can be detected and how.
6002   cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008 #include <ac_nonexistent.h>
6009 _ACEOF
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } >/dev/null; then
6018   if test -s conftest.err; then
6019     ac_cpp_err=$ac_c_preproc_warn_flag
6020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6021   else
6022     ac_cpp_err=
6023   fi
6024 else
6025   ac_cpp_err=yes
6026 fi
6027 if test -z "$ac_cpp_err"; then
6028   # Broken: success on invalid input.
6029 continue
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034   # Passes both tests.
6035 ac_preproc_ok=:
6036 break
6037 fi
6038 rm -f conftest.err conftest.$ac_ext
6039
6040 done
6041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6042 rm -f conftest.err conftest.$ac_ext
6043 if $ac_preproc_ok; then
6044   break
6045 fi
6046
6047     done
6048     ac_cv_prog_CPP=$CPP
6049
6050 fi
6051   CPP=$ac_cv_prog_CPP
6052 else
6053   ac_cv_prog_CPP=$CPP
6054 fi
6055 echo "$as_me:$LINENO: result: $CPP" >&5
6056 echo "${ECHO_T}$CPP" >&6
6057 ac_preproc_ok=false
6058 for ac_c_preproc_warn_flag in '' yes
6059 do
6060   # Use a header file that comes with gcc, so configuring glibc
6061   # with a fresh cross-compiler works.
6062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063   # <limits.h> exists even on freestanding compilers.
6064   # On the NeXT, cc -E runs the code through the compiler's parser,
6065   # not just through cpp. "Syntax error" is here to catch this case.
6066   cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072 #ifdef __STDC__
6073 # include <limits.h>
6074 #else
6075 # include <assert.h>
6076 #endif
6077                      Syntax error
6078 _ACEOF
6079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6081   ac_status=$?
6082   grep -v '^ *+' conftest.er1 >conftest.err
6083   rm -f conftest.er1
6084   cat conftest.err >&5
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } >/dev/null; then
6087   if test -s conftest.err; then
6088     ac_cpp_err=$ac_c_preproc_warn_flag
6089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6090   else
6091     ac_cpp_err=
6092   fi
6093 else
6094   ac_cpp_err=yes
6095 fi
6096 if test -z "$ac_cpp_err"; then
6097   :
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102   # Broken: fails on valid input.
6103 continue
6104 fi
6105 rm -f conftest.err conftest.$ac_ext
6106
6107   # OK, works on sane cases.  Now check whether non-existent headers
6108   # can be detected and how.
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 #include <ac_nonexistent.h>
6116 _ACEOF
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6119   ac_status=$?
6120   grep -v '^ *+' conftest.er1 >conftest.err
6121   rm -f conftest.er1
6122   cat conftest.err >&5
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } >/dev/null; then
6125   if test -s conftest.err; then
6126     ac_cpp_err=$ac_c_preproc_warn_flag
6127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6128   else
6129     ac_cpp_err=
6130   fi
6131 else
6132   ac_cpp_err=yes
6133 fi
6134 if test -z "$ac_cpp_err"; then
6135   # Broken: success on invalid input.
6136 continue
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141   # Passes both tests.
6142 ac_preproc_ok=:
6143 break
6144 fi
6145 rm -f conftest.err conftest.$ac_ext
6146
6147 done
6148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149 rm -f conftest.err conftest.$ac_ext
6150 if $ac_preproc_ok; then
6151   :
6152 else
6153   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details." >&5
6155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6156 See \`config.log' for more details." >&2;}
6157    { (exit 1); exit 1; }; }
6158 fi
6159
6160 ac_ext=c
6161 ac_cpp='$CPP $CPPFLAGS'
6162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165
6166
6167 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6168 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6169 if test "${ac_cv_header_stdc+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h.  */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h.  */
6178 #include <stdlib.h>
6179 #include <stdarg.h>
6180 #include <string.h>
6181 #include <float.h>
6182
6183 int
6184 main ()
6185 {
6186
6187   ;
6188   return 0;
6189 }
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193   (eval $ac_compile) 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -z "$ac_c_werror_flag"
6201                          || test ! -s conftest.err'
6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203   (eval $ac_try) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; } &&
6207          { ac_try='test -s conftest.$ac_objext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   ac_cv_header_stdc=yes
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218 ac_cv_header_stdc=no
6219 fi
6220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6221
6222 if test $ac_cv_header_stdc = yes; then
6223   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6224   cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h.  */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h.  */
6230 #include <string.h>
6231
6232 _ACEOF
6233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234   $EGREP "memchr" >/dev/null 2>&1; then
6235   :
6236 else
6237   ac_cv_header_stdc=no
6238 fi
6239 rm -f conftest*
6240
6241 fi
6242
6243 if test $ac_cv_header_stdc = yes; then
6244   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6245   cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h.  */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h.  */
6251 #include <stdlib.h>
6252
6253 _ACEOF
6254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255   $EGREP "free" >/dev/null 2>&1; then
6256   :
6257 else
6258   ac_cv_header_stdc=no
6259 fi
6260 rm -f conftest*
6261
6262 fi
6263
6264 if test $ac_cv_header_stdc = yes; then
6265   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6266   if test "$cross_compiling" = yes; then
6267   :
6268 else
6269   cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 #include <ctype.h>
6276 #if ((' ' & 0x0FF) == 0x020)
6277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6279 #else
6280 # define ISLOWER(c) \
6281                    (('a' <= (c) && (c) <= 'i') \
6282                      || ('j' <= (c) && (c) <= 'r') \
6283                      || ('s' <= (c) && (c) <= 'z'))
6284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6285 #endif
6286
6287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6288 int
6289 main ()
6290 {
6291   int i;
6292   for (i = 0; i < 256; i++)
6293     if (XOR (islower (i), ISLOWER (i))
6294         || toupper (i) != TOUPPER (i))
6295       exit(2);
6296   exit (0);
6297 }
6298 _ACEOF
6299 rm -f conftest$ac_exeext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6301   (eval $ac_link) 2>&5
6302   ac_status=$?
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306   (eval $ac_try) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); }; }; then
6310   :
6311 else
6312   echo "$as_me: program exited with status $ac_status" >&5
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 ( exit $ac_status )
6317 ac_cv_header_stdc=no
6318 fi
6319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6320 fi
6321 fi
6322 fi
6323 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6324 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6325 if test $ac_cv_header_stdc = yes; then
6326
6327 cat >>confdefs.h <<\_ACEOF
6328 #define STDC_HEADERS 1
6329 _ACEOF
6330
6331 fi
6332
6333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6344                   inttypes.h stdint.h unistd.h
6345 do
6346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 echo "$as_me:$LINENO: checking for $ac_header" >&5
6348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h.  */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h.  */
6358 $ac_includes_default
6359
6360 #include <$ac_header>
6361 _ACEOF
6362 rm -f conftest.$ac_objext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364   (eval $ac_compile) 2>conftest.er1
6365   ac_status=$?
6366   grep -v '^ *+' conftest.er1 >conftest.err
6367   rm -f conftest.er1
6368   cat conftest.err >&5
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } &&
6371          { ac_try='test -z "$ac_c_werror_flag"
6372                          || test ! -s conftest.err'
6373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374   (eval $ac_try) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; } &&
6378          { ac_try='test -s conftest.$ac_objext'
6379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; }; then
6384   eval "$as_ac_Header=yes"
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389 eval "$as_ac_Header=no"
6390 fi
6391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6392 fi
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6396   cat >>confdefs.h <<_ACEOF
6397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6398 _ACEOF
6399
6400 fi
6401
6402 done
6403
6404
6405
6406 for ac_header in dlfcn.h
6407 do
6408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 echo "$as_me:$LINENO: checking for $ac_header" >&5
6410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412   echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414   cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h.  */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h.  */
6420 $ac_includes_default
6421
6422 #include <$ac_header>
6423 _ACEOF
6424 rm -f conftest.$ac_objext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426   (eval $ac_compile) 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
6430   cat conftest.err >&5
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -z "$ac_c_werror_flag"
6434                          || test ! -s conftest.err'
6435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436   (eval $ac_try) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); }; } &&
6440          { ac_try='test -s conftest.$ac_objext'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; }; then
6446   eval "$as_ac_Header=yes"
6447 else
6448   echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6450
6451 eval "$as_ac_Header=no"
6452 fi
6453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454 fi
6455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6458   cat >>confdefs.h <<_ACEOF
6459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6460 _ACEOF
6461
6462 fi
6463
6464 done
6465
6466
6467
6468 ac_ext=cc
6469 ac_cpp='$CXXCPP $CPPFLAGS'
6470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6473 if test -n "$ac_tool_prefix"; then
6474   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6475   do
6476     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478 echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6480 if test "${ac_cv_prog_CXX+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   if test -n "$CXX"; then
6484   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491   for ac_exec_ext in '' $ac_executable_extensions; do
6492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498 done
6499
6500 fi
6501 fi
6502 CXX=$ac_cv_prog_CXX
6503 if test -n "$CXX"; then
6504   echo "$as_me:$LINENO: result: $CXX" >&5
6505 echo "${ECHO_T}$CXX" >&6
6506 else
6507   echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6509 fi
6510
6511     test -n "$CXX" && break
6512   done
6513 fi
6514 if test -z "$CXX"; then
6515   ac_ct_CXX=$CXX
6516   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6517 do
6518   # Extract the first word of "$ac_prog", so it can be a program name with args.
6519 set dummy $ac_prog; ac_word=$2
6520 echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6522 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   if test -n "$ac_ct_CXX"; then
6526   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   for ac_exec_ext in '' $ac_executable_extensions; do
6534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535     ac_cv_prog_ac_ct_CXX="$ac_prog"
6536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540 done
6541
6542 fi
6543 fi
6544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6545 if test -n "$ac_ct_CXX"; then
6546   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6547 echo "${ECHO_T}$ac_ct_CXX" >&6
6548 else
6549   echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6
6551 fi
6552
6553   test -n "$ac_ct_CXX" && break
6554 done
6555 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6556
6557   CXX=$ac_ct_CXX
6558 fi
6559
6560
6561 # Provide some information about the compiler.
6562 echo "$as_me:$LINENO:" \
6563      "checking for C++ compiler version" >&5
6564 ac_compiler=`set X $ac_compile; echo $2`
6565 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6566   (eval $ac_compiler --version </dev/null >&5) 2>&5
6567   ac_status=$?
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); }
6570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6571   (eval $ac_compiler -v </dev/null >&5) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }
6575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6576   (eval $ac_compiler -V </dev/null >&5) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }
6580
6581 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6582 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6583 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592
6593 int
6594 main ()
6595 {
6596 #ifndef __GNUC__
6597        choke me
6598 #endif
6599
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606   (eval $ac_compile) 2>conftest.er1
6607   ac_status=$?
6608   grep -v '^ *+' conftest.er1 >conftest.err
6609   rm -f conftest.er1
6610   cat conftest.err >&5
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -z "$ac_cxx_werror_flag"
6614                          || test ! -s conftest.err'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; } &&
6620          { ac_try='test -s conftest.$ac_objext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_compiler_gnu=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_compiler_gnu=no
6632 fi
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6635
6636 fi
6637 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6638 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6639 GXX=`test $ac_compiler_gnu = yes && echo yes`
6640 ac_test_CXXFLAGS=${CXXFLAGS+set}
6641 ac_save_CXXFLAGS=$CXXFLAGS
6642 CXXFLAGS="-g"
6643 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6644 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6645 if test "${ac_cv_prog_cxx_g+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h.  */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h.  */
6654
6655 int
6656 main ()
6657 {
6658
6659   ;
6660   return 0;
6661 }
6662 _ACEOF
6663 rm -f conftest.$ac_objext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665   (eval $ac_compile) 2>conftest.er1
6666   ac_status=$?
6667   grep -v '^ *+' conftest.er1 >conftest.err
6668   rm -f conftest.er1
6669   cat conftest.err >&5
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); } &&
6672          { ac_try='test -z "$ac_cxx_werror_flag"
6673                          || test ! -s conftest.err'
6674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675   (eval $ac_try) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); }; } &&
6679          { ac_try='test -s conftest.$ac_objext'
6680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681   (eval $ac_try) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }; }; then
6685   ac_cv_prog_cxx_g=yes
6686 else
6687   echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690 ac_cv_prog_cxx_g=no
6691 fi
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6693 fi
6694 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6695 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6696 if test "$ac_test_CXXFLAGS" = set; then
6697   CXXFLAGS=$ac_save_CXXFLAGS
6698 elif test $ac_cv_prog_cxx_g = yes; then
6699   if test "$GXX" = yes; then
6700     CXXFLAGS="-g -O2"
6701   else
6702     CXXFLAGS="-g"
6703   fi
6704 else
6705   if test "$GXX" = yes; then
6706     CXXFLAGS="-O2"
6707   else
6708     CXXFLAGS=
6709   fi
6710 fi
6711 for ac_declaration in \
6712    '' \
6713    'extern "C" void std::exit (int) throw (); using std::exit;' \
6714    'extern "C" void std::exit (int); using std::exit;' \
6715    'extern "C" void exit (int) throw ();' \
6716    'extern "C" void exit (int);' \
6717    'void exit (int);'
6718 do
6719   cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725 $ac_declaration
6726 #include <stdlib.h>
6727 int
6728 main ()
6729 {
6730 exit (42);
6731   ;
6732   return 0;
6733 }
6734 _ACEOF
6735 rm -f conftest.$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737   (eval $ac_compile) 2>conftest.er1
6738   ac_status=$?
6739   grep -v '^ *+' conftest.er1 >conftest.err
6740   rm -f conftest.er1
6741   cat conftest.err >&5
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); } &&
6744          { ac_try='test -z "$ac_cxx_werror_flag"
6745                          || test ! -s conftest.err'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; } &&
6751          { ac_try='test -s conftest.$ac_objext'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; }; then
6757   :
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 continue
6763 fi
6764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6765   cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h.  */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h.  */
6771 $ac_declaration
6772 int
6773 main ()
6774 {
6775 exit (42);
6776   ;
6777   return 0;
6778 }
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6782   (eval $ac_compile) 2>conftest.er1
6783   ac_status=$?
6784   grep -v '^ *+' conftest.er1 >conftest.err
6785   rm -f conftest.er1
6786   cat conftest.err >&5
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -z "$ac_cxx_werror_flag"
6790                          || test ! -s conftest.err'
6791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792   (eval $ac_try) 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; } &&
6796          { ac_try='test -s conftest.$ac_objext'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; }; then
6802   break
6803 else
6804   echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6806
6807 fi
6808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809 done
6810 rm -f conftest*
6811 if test -n "$ac_declaration"; then
6812   echo '#ifdef __cplusplus' >>confdefs.h
6813   echo $ac_declaration      >>confdefs.h
6814   echo '#endif'             >>confdefs.h
6815 fi
6816
6817 ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822
6823 depcc="$CXX"  am_compiler_list=
6824
6825 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6826 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6827 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6831   # We make a subdir and do the tests there.  Otherwise we can end up
6832   # making bogus files that we don't know about and never remove.  For
6833   # instance it was reported that on HP-UX the gcc test will end up
6834   # making a dummy file named `D' -- because `-MD' means `put the output
6835   # in D'.
6836   mkdir conftest.dir
6837   # Copy depcomp to subdir because otherwise we won't find it if we're
6838   # using a relative directory.
6839   cp "$am_depcomp" conftest.dir
6840   cd conftest.dir
6841   # We will build objects and dependencies in a subdirectory because
6842   # it helps to detect inapplicable dependency modes.  For instance
6843   # both Tru64's cc and ICC support -MD to output dependencies as a
6844   # side effect of compilation, but ICC will put the dependencies in
6845   # the current directory while Tru64 will put them in the object
6846   # directory.
6847   mkdir sub
6848
6849   am_cv_CXX_dependencies_compiler_type=none
6850   if test "$am_compiler_list" = ""; then
6851      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6852   fi
6853   for depmode in $am_compiler_list; do
6854     # Setup a source with many dependencies, because some compilers
6855     # like to wrap large dependency lists on column 80 (with \), and
6856     # we should not choose a depcomp mode which is confused by this.
6857     #
6858     # We need to recreate these files for each test, as the compiler may
6859     # overwrite some of them when testing with obscure command lines.
6860     # This happens at least with the AIX C compiler.
6861     : > sub/conftest.c
6862     for i in 1 2 3 4 5 6; do
6863       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6864       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6865       # Solaris 8's {/usr,}/bin/sh.
6866       touch sub/conftst$i.h
6867     done
6868     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6869
6870     case $depmode in
6871     nosideeffect)
6872       # after this tag, mechanisms are not by side-effect, so they'll
6873       # only be used when explicitly requested
6874       if test "x$enable_dependency_tracking" = xyes; then
6875         continue
6876       else
6877         break
6878       fi
6879       ;;
6880     none) break ;;
6881     esac
6882     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6883     # mode.  It turns out that the SunPro C++ compiler does not properly
6884     # handle `-M -o', and we need to detect this.
6885     if depmode=$depmode \
6886        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6887        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6888        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6889          >/dev/null 2>conftest.err &&
6890        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6891        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6892        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6893       # icc doesn't choke on unknown options, it will just issue warnings
6894       # or remarks (even with -Werror).  So we grep stderr for any message
6895       # that says an option was ignored or not supported.
6896       # When given -MP, icc 7.0 and 7.1 complain thusly:
6897       #   icc: Command line warning: ignoring option '-M'; no argument required
6898       # The diagnosis changed in icc 8.0:
6899       #   icc: Command line remark: option '-MP' not supported
6900       if (grep 'ignoring option' conftest.err ||
6901           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6902         am_cv_CXX_dependencies_compiler_type=$depmode
6903         break
6904       fi
6905     fi
6906   done
6907
6908   cd ..
6909   rm -rf conftest.dir
6910 else
6911   am_cv_CXX_dependencies_compiler_type=none
6912 fi
6913
6914 fi
6915 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6916 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6917 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6918
6919
6920
6921 if
6922   test "x$enable_dependency_tracking" != xno \
6923   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6924   am__fastdepCXX_TRUE=
6925   am__fastdepCXX_FALSE='#'
6926 else
6927   am__fastdepCXX_TRUE='#'
6928   am__fastdepCXX_FALSE=
6929 fi
6930
6931
6932 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6933     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6934     (test "X$CXX" != "Xg++"))) ; then
6935   ac_ext=cc
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6940 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6941 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6942 if test -z "$CXXCPP"; then
6943   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946       # Double quotes because CXXCPP needs to be expanded
6947     for CXXCPP in "$CXX -E" "/lib/cpp"
6948     do
6949       ac_preproc_ok=false
6950 for ac_cxx_preproc_warn_flag in '' yes
6951 do
6952   # Use a header file that comes with gcc, so configuring glibc
6953   # with a fresh cross-compiler works.
6954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6955   # <limits.h> exists even on freestanding compilers.
6956   # On the NeXT, cc -E runs the code through the compiler's parser,
6957   # not just through cpp. "Syntax error" is here to catch this case.
6958   cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h.  */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h.  */
6964 #ifdef __STDC__
6965 # include <limits.h>
6966 #else
6967 # include <assert.h>
6968 #endif
6969                      Syntax error
6970 _ACEOF
6971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6973   ac_status=$?
6974   grep -v '^ *+' conftest.er1 >conftest.err
6975   rm -f conftest.er1
6976   cat conftest.err >&5
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); } >/dev/null; then
6979   if test -s conftest.err; then
6980     ac_cpp_err=$ac_cxx_preproc_warn_flag
6981     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6982   else
6983     ac_cpp_err=
6984   fi
6985 else
6986   ac_cpp_err=yes
6987 fi
6988 if test -z "$ac_cpp_err"; then
6989   :
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994   # Broken: fails on valid input.
6995 continue
6996 fi
6997 rm -f conftest.err conftest.$ac_ext
6998
6999   # OK, works on sane cases.  Now check whether non-existent headers
7000   # can be detected and how.
7001   cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h.  */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h.  */
7007 #include <ac_nonexistent.h>
7008 _ACEOF
7009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7011   ac_status=$?
7012   grep -v '^ *+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } >/dev/null; then
7017   if test -s conftest.err; then
7018     ac_cpp_err=$ac_cxx_preproc_warn_flag
7019     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7020   else
7021     ac_cpp_err=
7022   fi
7023 else
7024   ac_cpp_err=yes
7025 fi
7026 if test -z "$ac_cpp_err"; then
7027   # Broken: success on invalid input.
7028 continue
7029 else
7030   echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033   # Passes both tests.
7034 ac_preproc_ok=:
7035 break
7036 fi
7037 rm -f conftest.err conftest.$ac_ext
7038
7039 done
7040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7041 rm -f conftest.err conftest.$ac_ext
7042 if $ac_preproc_ok; then
7043   break
7044 fi
7045
7046     done
7047     ac_cv_prog_CXXCPP=$CXXCPP
7048
7049 fi
7050   CXXCPP=$ac_cv_prog_CXXCPP
7051 else
7052   ac_cv_prog_CXXCPP=$CXXCPP
7053 fi
7054 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7055 echo "${ECHO_T}$CXXCPP" >&6
7056 ac_preproc_ok=false
7057 for ac_cxx_preproc_warn_flag in '' yes
7058 do
7059   # Use a header file that comes with gcc, so configuring glibc
7060   # with a fresh cross-compiler works.
7061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062   # <limits.h> exists even on freestanding compilers.
7063   # On the NeXT, cc -E runs the code through the compiler's parser,
7064   # not just through cpp. "Syntax error" is here to catch this case.
7065   cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h.  */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h.  */
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076                      Syntax error
7077 _ACEOF
7078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7080   ac_status=$?
7081   grep -v '^ *+' conftest.er1 >conftest.err
7082   rm -f conftest.er1
7083   cat conftest.err >&5
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); } >/dev/null; then
7086   if test -s conftest.err; then
7087     ac_cpp_err=$ac_cxx_preproc_warn_flag
7088     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7089   else
7090     ac_cpp_err=
7091   fi
7092 else
7093   ac_cpp_err=yes
7094 fi
7095 if test -z "$ac_cpp_err"; then
7096   :
7097 else
7098   echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101   # Broken: fails on valid input.
7102 continue
7103 fi
7104 rm -f conftest.err conftest.$ac_ext
7105
7106   # OK, works on sane cases.  Now check whether non-existent headers
7107   # can be detected and how.
7108   cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h.  */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h.  */
7114 #include <ac_nonexistent.h>
7115 _ACEOF
7116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7118   ac_status=$?
7119   grep -v '^ *+' conftest.er1 >conftest.err
7120   rm -f conftest.er1
7121   cat conftest.err >&5
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); } >/dev/null; then
7124   if test -s conftest.err; then
7125     ac_cpp_err=$ac_cxx_preproc_warn_flag
7126     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7127   else
7128     ac_cpp_err=
7129   fi
7130 else
7131   ac_cpp_err=yes
7132 fi
7133 if test -z "$ac_cpp_err"; then
7134   # Broken: success on invalid input.
7135 continue
7136 else
7137   echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140   # Passes both tests.
7141 ac_preproc_ok=:
7142 break
7143 fi
7144 rm -f conftest.err conftest.$ac_ext
7145
7146 done
7147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7148 rm -f conftest.err conftest.$ac_ext
7149 if $ac_preproc_ok; then
7150   :
7151 else
7152   _lt_caught_CXX_error=yes
7153 fi
7154
7155 ac_ext=c
7156 ac_cpp='$CPP $CPPFLAGS'
7157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160
7161 else
7162   _lt_caught_CXX_error=yes
7163 fi
7164
7165
7166
7167
7168
7169 # This can be used to rebuild libtool when needed
7170 LIBTOOL_DEPS="$ltmain"
7171
7172 # Always use our own libtool.
7173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 test -z "$LN_S" && LN_S="ln -s"
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 if test -n "${ZSH_VERSION+set}" ; then
7215    setopt NO_GLOB_SUBST
7216 fi
7217
7218 echo "$as_me:$LINENO: checking for objdir" >&5
7219 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7220 if test "${lt_cv_objdir+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   rm -f .libs 2>/dev/null
7224 mkdir .libs 2>/dev/null
7225 if test -d .libs; then
7226   lt_cv_objdir=.libs
7227 else
7228   # MS-DOS does not allow filenames that begin with a dot.
7229   lt_cv_objdir=_libs
7230 fi
7231 rmdir .libs 2>/dev/null
7232 fi
7233 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7234 echo "${ECHO_T}$lt_cv_objdir" >&6
7235 objdir=$lt_cv_objdir
7236
7237
7238
7239
7240
7241 cat >>confdefs.h <<_ACEOF
7242 #define LT_OBJDIR "$lt_cv_objdir/"
7243 _ACEOF
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261 case $host_os in
7262 aix3*)
7263   # AIX sometimes has problems with the GCC collect2 program.  For some
7264   # reason, if we set the COLLECT_NAMES environment variable, the problems
7265   # vanish in a puff of smoke.
7266   if test "X${COLLECT_NAMES+set}" != Xset; then
7267     COLLECT_NAMES=
7268     export COLLECT_NAMES
7269   fi
7270   ;;
7271 esac
7272
7273 # Sed substitution that helps us do robust quoting.  It backslashifies
7274 # metacharacters that are still active within double-quoted strings.
7275 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7276
7277 # Same as above, but do not quote variable references.
7278 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7279
7280 # Sed substitution to delay expansion of an escaped shell variable in a
7281 # double_quote_subst'ed string.
7282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7283
7284 # Sed substitution to delay expansion of an escaped single quote.
7285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7286
7287 # Sed substitution to avoid accidental globbing in evaled expressions
7288 no_glob_subst='s/\*/\\\*/g'
7289
7290 # Global variables:
7291 ofile=libtool
7292 can_build_shared=yes
7293
7294 # All known linkers require a `.a' archive for static linking (except MSVC,
7295 # which needs '.lib').
7296 libext=a
7297
7298 with_gnu_ld="$lt_cv_prog_gnu_ld"
7299
7300 old_CC="$CC"
7301 old_CFLAGS="$CFLAGS"
7302
7303 # Set sane defaults for various variables
7304 test -z "$CC" && CC=cc
7305 test -z "$LTCC" && LTCC=$CC
7306 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7307 test -z "$LD" && LD=ld
7308 test -z "$ac_objext" && ac_objext=o
7309
7310 for cc_temp in $compiler""; do
7311   case $cc_temp in
7312     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7313     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7314     \-*) ;;
7315     *) break;;
7316   esac
7317 done
7318 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7319
7320
7321 # Only perform the check for file, if the check method requires it
7322 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7323 case $deplibs_check_method in
7324 file_magic*)
7325   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7326     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7327 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7328 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331   case $MAGIC_CMD in
7332 [\\/*] |  ?:[\\/]*)
7333   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7334   ;;
7335 *)
7336   lt_save_MAGIC_CMD="$MAGIC_CMD"
7337   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339   for ac_dir in $ac_dummy; do
7340     IFS="$lt_save_ifs"
7341     test -z "$ac_dir" && ac_dir=.
7342     if test -f $ac_dir/${ac_tool_prefix}file; then
7343       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7344       if test -n "$file_magic_test_file"; then
7345         case $deplibs_check_method in
7346         "file_magic "*)
7347           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7348           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350             $EGREP "$file_magic_regex" > /dev/null; then
7351             :
7352           else
7353             cat <<_LT_EOF 1>&2
7354
7355 *** Warning: the command libtool uses to detect shared libraries,
7356 *** $file_magic_cmd, produces output that libtool cannot recognize.
7357 *** The result is that libtool may fail to recognize shared libraries
7358 *** as such.  This will affect the creation of libtool libraries that
7359 *** depend on shared libraries, but programs linked with such libtool
7360 *** libraries will work regardless of this problem.  Nevertheless, you
7361 *** may want to report the problem to your system manager and/or to
7362 *** bug-libtool@gnu.org
7363
7364 _LT_EOF
7365           fi ;;
7366         esac
7367       fi
7368       break
7369     fi
7370   done
7371   IFS="$lt_save_ifs"
7372   MAGIC_CMD="$lt_save_MAGIC_CMD"
7373   ;;
7374 esac
7375 fi
7376
7377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378 if test -n "$MAGIC_CMD"; then
7379   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380 echo "${ECHO_T}$MAGIC_CMD" >&6
7381 else
7382   echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7384 fi
7385
7386
7387
7388
7389
7390 if test -z "$lt_cv_path_MAGIC_CMD"; then
7391   if test -n "$ac_tool_prefix"; then
7392     echo "$as_me:$LINENO: checking for file" >&5
7393 echo $ECHO_N "checking for file... $ECHO_C" >&6
7394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   case $MAGIC_CMD in
7398 [\\/*] |  ?:[\\/]*)
7399   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7400   ;;
7401 *)
7402   lt_save_MAGIC_CMD="$MAGIC_CMD"
7403   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7404   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7405   for ac_dir in $ac_dummy; do
7406     IFS="$lt_save_ifs"
7407     test -z "$ac_dir" && ac_dir=.
7408     if test -f $ac_dir/file; then
7409       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7410       if test -n "$file_magic_test_file"; then
7411         case $deplibs_check_method in
7412         "file_magic "*)
7413           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7414           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7416             $EGREP "$file_magic_regex" > /dev/null; then
7417             :
7418           else
7419             cat <<_LT_EOF 1>&2
7420
7421 *** Warning: the command libtool uses to detect shared libraries,
7422 *** $file_magic_cmd, produces output that libtool cannot recognize.
7423 *** The result is that libtool may fail to recognize shared libraries
7424 *** as such.  This will affect the creation of libtool libraries that
7425 *** depend on shared libraries, but programs linked with such libtool
7426 *** libraries will work regardless of this problem.  Nevertheless, you
7427 *** may want to report the problem to your system manager and/or to
7428 *** bug-libtool@gnu.org
7429
7430 _LT_EOF
7431           fi ;;
7432         esac
7433       fi
7434       break
7435     fi
7436   done
7437   IFS="$lt_save_ifs"
7438   MAGIC_CMD="$lt_save_MAGIC_CMD"
7439   ;;
7440 esac
7441 fi
7442
7443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444 if test -n "$MAGIC_CMD"; then
7445   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7446 echo "${ECHO_T}$MAGIC_CMD" >&6
7447 else
7448   echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7450 fi
7451
7452
7453   else
7454     MAGIC_CMD=:
7455   fi
7456 fi
7457
7458   fi
7459   ;;
7460 esac
7461
7462 # Use C for the default configuration in the libtool script
7463
7464 lt_save_CC="$CC"
7465 ac_ext=c
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470
7471
7472 # Source file extension for C test sources.
7473 ac_ext=c
7474
7475 # Object file extension for compiled C test sources.
7476 objext=o
7477 objext=$objext
7478
7479 # Code to be used in simple compile tests
7480 lt_simple_compile_test_code="int some_variable = 0;"
7481
7482 # Code to be used in simple link tests
7483 lt_simple_link_test_code='int main(){return(0);}'
7484
7485
7486
7487
7488
7489
7490
7491 # If no C compiler was specified, use CC.
7492 LTCC=${LTCC-"$CC"}
7493
7494 # If no C compiler flags were specified, use CFLAGS.
7495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7496
7497 # Allow CC to be a program name with arguments.
7498 compiler=$CC
7499
7500 # Save the default compiler, since it gets overwritten when the other
7501 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7502 compiler_DEFAULT=$CC
7503
7504 # save warnings/boilerplate of simple test code
7505 ac_outfile=conftest.$ac_objext
7506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7508 _lt_compiler_boilerplate=`cat conftest.err`
7509 $RM conftest*
7510
7511 ac_outfile=conftest.$ac_objext
7512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7514 _lt_linker_boilerplate=`cat conftest.err`
7515 $RM conftest*
7516
7517
7518 ## CAVEAT EMPTOR:
7519 ## There is no encapsulation within the following macros, do not change
7520 ## the running order or otherwise move them around unless you know exactly
7521 ## what you are doing...
7522 if test -n "$compiler"; then
7523
7524 lt_prog_compiler_no_builtin_flag=
7525
7526 if test "$GCC" = yes; then
7527   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7528
7529   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7530 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7531 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   lt_cv_prog_compiler_rtti_exceptions=no
7535    ac_outfile=conftest.$ac_objext
7536    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7537    lt_compiler_flag="-fno-rtti -fno-exceptions"
7538    # Insert the option either (1) after the last *FLAGS variable, or
7539    # (2) before a word containing "conftest.", or (3) at the end.
7540    # Note that $ac_compile itself does not contain backslashes and begins
7541    # with a dollar sign (not a hyphen), so the echo should work correctly.
7542    # The option is referenced via a variable to avoid confusing sed.
7543    lt_compile=`echo "$ac_compile" | $SED \
7544    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546    -e 's:$: $lt_compiler_flag:'`
7547    (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
7548    (eval "$lt_compile" 2>conftest.err)
7549    ac_status=$?
7550    cat conftest.err >&5
7551    echo "$as_me:7551: \$? = $ac_status" >&5
7552    if (exit $ac_status) && test -s "$ac_outfile"; then
7553      # The compiler can only warn and ignore the option if not recognized
7554      # So say no if there are warnings other than the usual output.
7555      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7556      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7557      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7558        lt_cv_prog_compiler_rtti_exceptions=yes
7559      fi
7560    fi
7561    $RM conftest*
7562
7563 fi
7564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7566
7567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7568     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7569 else
7570     :
7571 fi
7572
7573 fi
7574
7575
7576
7577
7578
7579
7580   lt_prog_compiler_wl=
7581 lt_prog_compiler_pic=
7582 lt_prog_compiler_static=
7583
7584 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7586
7587   if test "$GCC" = yes; then
7588     lt_prog_compiler_wl='-Wl,'
7589     lt_prog_compiler_static='-static'
7590
7591     case $host_os in
7592       aix*)
7593       # All AIX code is PIC.
7594       if test "$host_cpu" = ia64; then
7595         # AIX 5 now supports IA64 processor
7596         lt_prog_compiler_static='-Bstatic'
7597       fi
7598       ;;
7599
7600     amigaos*)
7601       if test "$host_cpu" = m68k; then
7602         # FIXME: we need at least 68020 code to build shared libraries, but
7603         # adding the `-m68020' flag to GCC prevents building anything better,
7604         # like `-m68040'.
7605         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7606       fi
7607       ;;
7608
7609     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7610       # PIC is the default for these OSes.
7611       ;;
7612
7613     mingw* | cygwin* | pw32* | os2*)
7614       # This hack is so that the source file can tell whether it is being
7615       # built for inclusion in a dll (and should export symbols for example).
7616       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7617       # (--disable-auto-import) libraries
7618       lt_prog_compiler_pic='-DDLL_EXPORT'
7619       ;;
7620
7621     darwin* | rhapsody*)
7622       # PIC is the default on this platform
7623       # Common symbols not allowed in MH_DYLIB files
7624       lt_prog_compiler_pic='-fno-common'
7625       ;;
7626
7627     hpux*)
7628       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7629       # not for PA HP-UX.
7630       case $host_cpu in
7631       hppa*64*|ia64*)
7632         # +Z the default
7633         ;;
7634       *)
7635         lt_prog_compiler_pic='-fPIC'
7636         ;;
7637       esac
7638       ;;
7639
7640     interix[3-9]*)
7641       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7642       # Instead, we relocate shared libraries at runtime.
7643       ;;
7644
7645     msdosdjgpp*)
7646       # Just because we use GCC doesn't mean we suddenly get shared libraries
7647       # on systems that don't support them.
7648       lt_prog_compiler_can_build_shared=no
7649       enable_shared=no
7650       ;;
7651
7652     *nto* | *qnx*)
7653       # QNX uses GNU C++, but need to define -shared option too, otherwise
7654       # it will coredump.
7655       lt_prog_compiler_pic='-fPIC -shared'
7656       ;;
7657
7658     sysv4*MP*)
7659       if test -d /usr/nec; then
7660         lt_prog_compiler_pic=-Kconform_pic
7661       fi
7662       ;;
7663
7664     *)
7665       lt_prog_compiler_pic='-fPIC'
7666       ;;
7667     esac
7668   else
7669     # PORTME Check for flag to pass linker flags through the system compiler.
7670     case $host_os in
7671     aix*)
7672       lt_prog_compiler_wl='-Wl,'
7673       if test "$host_cpu" = ia64; then
7674         # AIX 5 now supports IA64 processor
7675         lt_prog_compiler_static='-Bstatic'
7676       else
7677         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7678       fi
7679       ;;
7680     darwin*)
7681       # PIC is the default on this platform
7682       # Common symbols not allowed in MH_DYLIB files
7683       case $cc_basename in
7684       xlc*)
7685         lt_prog_compiler_pic='-qnocommon'
7686         lt_prog_compiler_wl='-Wl,'
7687         ;;
7688       esac
7689       ;;
7690
7691     mingw* | cygwin* | pw32* | os2*)
7692       # This hack is so that the source file can tell whether it is being
7693       # built for inclusion in a dll (and should export symbols for example).
7694       lt_prog_compiler_pic='-DDLL_EXPORT'
7695       ;;
7696
7697     hpux9* | hpux10* | hpux11*)
7698       lt_prog_compiler_wl='-Wl,'
7699       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700       # not for PA HP-UX.
7701       case $host_cpu in
7702       hppa*64*|ia64*)
7703         # +Z the default
7704         ;;
7705       *)
7706         lt_prog_compiler_pic='+Z'
7707         ;;
7708       esac
7709       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7710       lt_prog_compiler_static='${wl}-a ${wl}archive'
7711       ;;
7712
7713     irix5* | irix6* | nonstopux*)
7714       lt_prog_compiler_wl='-Wl,'
7715       # PIC (with -KPIC) is the default.
7716       lt_prog_compiler_static='-non_shared'
7717       ;;
7718
7719     linux* | k*bsd*-gnu)
7720       case $cc_basename in
7721       icc* | ecc*)
7722         lt_prog_compiler_wl='-Wl,'
7723         lt_prog_compiler_pic='-KPIC'
7724         lt_prog_compiler_static='-static'
7725         ;;
7726       pgcc* | pgf77* | pgf90* | pgf95*)
7727         # Portland Group compilers (*not* the Pentium gcc compiler,
7728         # which looks to be a dead project)
7729         lt_prog_compiler_wl='-Wl,'
7730         lt_prog_compiler_pic='-fpic'
7731         lt_prog_compiler_static='-Bstatic'
7732         ;;
7733       ccc*)
7734         lt_prog_compiler_wl='-Wl,'
7735         # All Alpha code is PIC.
7736         lt_prog_compiler_static='-non_shared'
7737         ;;
7738       *)
7739         case `$CC -V 2>&1 | sed 5q` in
7740         *Sun\ C*)
7741           # Sun C 5.9
7742           lt_prog_compiler_pic='-KPIC'
7743           lt_prog_compiler_static='-Bstatic'
7744           lt_prog_compiler_wl='-Wl,'
7745           ;;
7746         *Sun\ F*)
7747           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7748           lt_prog_compiler_pic='-KPIC'
7749           lt_prog_compiler_static='-Bstatic'
7750           lt_prog_compiler_wl=''
7751           ;;
7752         esac
7753         ;;
7754       esac
7755       ;;
7756
7757     newsos6)
7758       lt_prog_compiler_pic='-KPIC'
7759       lt_prog_compiler_static='-Bstatic'
7760       ;;
7761
7762     *nto* | *qnx*)
7763       # QNX uses GNU C++, but need to define -shared option too, otherwise
7764       # it will coredump.
7765       lt_prog_compiler_pic='-fPIC -shared'
7766       ;;
7767
7768     osf3* | osf4* | osf5*)
7769       lt_prog_compiler_wl='-Wl,'
7770       # All OSF/1 code is PIC.
7771       lt_prog_compiler_static='-non_shared'
7772       ;;
7773
7774     rdos*)
7775       lt_prog_compiler_static='-non_shared'
7776       ;;
7777
7778     solaris*)
7779       lt_prog_compiler_pic='-KPIC'
7780       lt_prog_compiler_static='-Bstatic'
7781       case $cc_basename in
7782       f77* | f90* | f95*)
7783         lt_prog_compiler_wl='-Qoption ld ';;
7784       *)
7785         lt_prog_compiler_wl='-Wl,';;
7786       esac
7787       ;;
7788
7789     sunos4*)
7790       lt_prog_compiler_wl='-Qoption ld '
7791       lt_prog_compiler_pic='-PIC'
7792       lt_prog_compiler_static='-Bstatic'
7793       ;;
7794
7795     sysv4 | sysv4.2uw2* | sysv4.3*)
7796       lt_prog_compiler_wl='-Wl,'
7797       lt_prog_compiler_pic='-KPIC'
7798       lt_prog_compiler_static='-Bstatic'
7799       ;;
7800
7801     sysv4*MP*)
7802       if test -d /usr/nec ;then
7803         lt_prog_compiler_pic='-Kconform_pic'
7804         lt_prog_compiler_static='-Bstatic'
7805       fi
7806       ;;
7807
7808     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7809       lt_prog_compiler_wl='-Wl,'
7810       lt_prog_compiler_pic='-KPIC'
7811       lt_prog_compiler_static='-Bstatic'
7812       ;;
7813
7814     unicos*)
7815       lt_prog_compiler_wl='-Wl,'
7816       lt_prog_compiler_can_build_shared=no
7817       ;;
7818
7819     uts4*)
7820       lt_prog_compiler_pic='-pic'
7821       lt_prog_compiler_static='-Bstatic'
7822       ;;
7823
7824     *)
7825       lt_prog_compiler_can_build_shared=no
7826       ;;
7827     esac
7828   fi
7829
7830 case $host_os in
7831   # For platforms which do not support PIC, -DPIC is meaningless:
7832   *djgpp*)
7833     lt_prog_compiler_pic=
7834     ;;
7835   *)
7836     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7837     ;;
7838 esac
7839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7840 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7841
7842
7843
7844
7845
7846
7847 #
7848 # Check to make sure the PIC flag actually works.
7849 #
7850 if test -n "$lt_prog_compiler_pic"; then
7851   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7852 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7853 if test "${lt_prog_compiler_pic_works+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   lt_prog_compiler_pic_works=no
7857    ac_outfile=conftest.$ac_objext
7858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7860    # Insert the option either (1) after the last *FLAGS variable, or
7861    # (2) before a word containing "conftest.", or (3) at the end.
7862    # Note that $ac_compile itself does not contain backslashes and begins
7863    # with a dollar sign (not a hyphen), so the echo should work correctly.
7864    # The option is referenced via a variable to avoid confusing sed.
7865    lt_compile=`echo "$ac_compile" | $SED \
7866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7868    -e 's:$: $lt_compiler_flag:'`
7869    (eval echo "\"\$as_me:7869: $lt_compile\"" >&5)
7870    (eval "$lt_compile" 2>conftest.err)
7871    ac_status=$?
7872    cat conftest.err >&5
7873    echo "$as_me:7873: \$? = $ac_status" >&5
7874    if (exit $ac_status) && test -s "$ac_outfile"; then
7875      # The compiler can only warn and ignore the option if not recognized
7876      # So say no if there are warnings other than the usual output.
7877      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7878      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7879      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7880        lt_prog_compiler_pic_works=yes
7881      fi
7882    fi
7883    $RM conftest*
7884
7885 fi
7886 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7887 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7888
7889 if test x"$lt_prog_compiler_pic_works" = xyes; then
7890     case $lt_prog_compiler_pic in
7891      "" | " "*) ;;
7892      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7893      esac
7894 else
7895     lt_prog_compiler_pic=
7896      lt_prog_compiler_can_build_shared=no
7897 fi
7898
7899 fi
7900
7901
7902
7903
7904
7905
7906 #
7907 # Check to make sure the static flag actually works.
7908 #
7909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7910 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7912 if test "${lt_prog_compiler_static_works+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   lt_prog_compiler_static_works=no
7916    save_LDFLAGS="$LDFLAGS"
7917    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7920      # The linker can only warn and ignore the option if not recognized
7921      # So say no if there are warnings
7922      if test -s conftest.err; then
7923        # Append any errors to the config.log.
7924        cat conftest.err 1>&5
7925        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927        if diff conftest.exp conftest.er2 >/dev/null; then
7928          lt_prog_compiler_static_works=yes
7929        fi
7930      else
7931        lt_prog_compiler_static_works=yes
7932      fi
7933    fi
7934    $RM conftest*
7935    LDFLAGS="$save_LDFLAGS"
7936
7937 fi
7938 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7939 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7940
7941 if test x"$lt_prog_compiler_static_works" = xyes; then
7942     :
7943 else
7944     lt_prog_compiler_static=
7945 fi
7946
7947
7948
7949
7950
7951
7952
7953   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   lt_cv_prog_compiler_c_o=no
7959    $RM -r conftest 2>/dev/null
7960    mkdir conftest
7961    cd conftest
7962    mkdir out
7963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7964
7965    lt_compiler_flag="-o out/conftest2.$ac_objext"
7966    # Insert the option either (1) after the last *FLAGS variable, or
7967    # (2) before a word containing "conftest.", or (3) at the end.
7968    # Note that $ac_compile itself does not contain backslashes and begins
7969    # with a dollar sign (not a hyphen), so the echo should work correctly.
7970    lt_compile=`echo "$ac_compile" | $SED \
7971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973    -e 's:$: $lt_compiler_flag:'`
7974    (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975    (eval "$lt_compile" 2>out/conftest.err)
7976    ac_status=$?
7977    cat out/conftest.err >&5
7978    echo "$as_me:7978: \$? = $ac_status" >&5
7979    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7980    then
7981      # The compiler can only warn and ignore the option if not recognized
7982      # So say no if there are warnings
7983      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7984      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986        lt_cv_prog_compiler_c_o=yes
7987      fi
7988    fi
7989    chmod u+w . 2>&5
7990    $RM conftest*
7991    # SGI C++ compiler will create directory out/ii_files/ for
7992    # template instantiation
7993    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7994    $RM out/* && rmdir out
7995    cd ..
7996    $RM -r conftest
7997    $RM conftest*
7998
7999 fi
8000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8002
8003
8004
8005
8006
8007
8008   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   lt_cv_prog_compiler_c_o=no
8014    $RM -r conftest 2>/dev/null
8015    mkdir conftest
8016    cd conftest
8017    mkdir out
8018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8019
8020    lt_compiler_flag="-o out/conftest2.$ac_objext"
8021    # Insert the option either (1) after the last *FLAGS variable, or
8022    # (2) before a word containing "conftest.", or (3) at the end.
8023    # Note that $ac_compile itself does not contain backslashes and begins
8024    # with a dollar sign (not a hyphen), so the echo should work correctly.
8025    lt_compile=`echo "$ac_compile" | $SED \
8026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028    -e 's:$: $lt_compiler_flag:'`
8029    (eval echo "\"\$as_me:8029: $lt_compile\"" >&5)
8030    (eval "$lt_compile" 2>out/conftest.err)
8031    ac_status=$?
8032    cat out/conftest.err >&5
8033    echo "$as_me:8033: \$? = $ac_status" >&5
8034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8035    then
8036      # The compiler can only warn and ignore the option if not recognized
8037      # So say no if there are warnings
8038      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8039      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8040      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8041        lt_cv_prog_compiler_c_o=yes
8042      fi
8043    fi
8044    chmod u+w . 2>&5
8045    $RM conftest*
8046    # SGI C++ compiler will create directory out/ii_files/ for
8047    # template instantiation
8048    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8049    $RM out/* && rmdir out
8050    cd ..
8051    $RM -r conftest
8052    $RM conftest*
8053
8054 fi
8055 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8056 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8057
8058
8059
8060
8061 hard_links="nottested"
8062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8063   # do not overwrite the value of need_locks provided by the user
8064   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8065 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8066   hard_links=yes
8067   $RM conftest*
8068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069   touch conftest.a
8070   ln conftest.a conftest.b 2>&5 || hard_links=no
8071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8072   echo "$as_me:$LINENO: result: $hard_links" >&5
8073 echo "${ECHO_T}$hard_links" >&6
8074   if test "$hard_links" = no; then
8075     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8076 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8077     need_locks=warn
8078   fi
8079 else
8080   need_locks=no
8081 fi
8082
8083
8084
8085
8086
8087
8088   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8090
8091   runpath_var=
8092   allow_undefined_flag=
8093   always_export_symbols=no
8094   archive_cmds=
8095   archive_expsym_cmds=
8096   compiler_needs_object=no
8097   enable_shared_with_static_runtimes=no
8098   export_dynamic_flag_spec=
8099   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8100   hardcode_automatic=no
8101   hardcode_direct=no
8102   hardcode_direct_absolute=no
8103   hardcode_libdir_flag_spec=
8104   hardcode_libdir_flag_spec_ld=
8105   hardcode_libdir_separator=
8106   hardcode_minus_L=no
8107   hardcode_shlibpath_var=unsupported
8108   inherit_rpath=no
8109   link_all_deplibs=unknown
8110   module_cmds=
8111   module_expsym_cmds=
8112   old_archive_from_new_cmds=
8113   old_archive_from_expsyms_cmds=
8114   thread_safe_flag_spec=
8115   whole_archive_flag_spec=
8116   # include_expsyms should be a list of space-separated symbols to be *always*
8117   # included in the symbol list
8118   include_expsyms=
8119   # exclude_expsyms can be an extended regexp of symbols to exclude
8120   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8121   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8122   # as well as any symbol that contains `d'.
8123   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8124   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8125   # platforms (ab)use it in PIC code, but their linkers get confused if
8126   # the symbol is explicitly referenced.  Since portable code cannot
8127   # rely on this symbol name, it's probably fine to never include it in
8128   # preloaded symbol tables.
8129   extract_expsyms_cmds=
8130
8131   case $host_os in
8132   cygwin* | mingw* | pw32*)
8133     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8134     # When not using gcc, we currently assume that we are using
8135     # Microsoft Visual C++.
8136     if test "$GCC" != yes; then
8137       with_gnu_ld=no
8138     fi
8139     ;;
8140   interix*)
8141     # we just hope/assume this is gcc and not c89 (= MSVC++)
8142     with_gnu_ld=yes
8143     ;;
8144   openbsd*)
8145     with_gnu_ld=no
8146     ;;
8147   esac
8148
8149   ld_shlibs=yes
8150   if test "$with_gnu_ld" = yes; then
8151     # If archive_cmds runs LD, not CC, wlarc should be empty
8152     wlarc='${wl}'
8153
8154     # Set some defaults for GNU ld with shared library support. These
8155     # are reset later if shared libraries are not supported. Putting them
8156     # here allows them to be overridden if necessary.
8157     runpath_var=LD_RUN_PATH
8158     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159     export_dynamic_flag_spec='${wl}--export-dynamic'
8160     # ancient GNU ld didn't support --whole-archive et. al.
8161     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8162       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8163     else
8164       whole_archive_flag_spec=
8165     fi
8166     supports_anon_versioning=no
8167     case `$LD -v 2>&1` in
8168       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8169       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8170       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8171       *\ 2.11.*) ;; # other 2.11 versions
8172       *) supports_anon_versioning=yes ;;
8173     esac
8174
8175     # See if GNU ld supports shared libraries.
8176     case $host_os in
8177     aix3* | aix4* | aix5*)
8178       # On AIX/PPC, the GNU linker is very broken
8179       if test "$host_cpu" != ia64; then
8180         ld_shlibs=no
8181         cat <<_LT_EOF 1>&2
8182
8183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8184 *** to be unable to reliably create shared libraries on AIX.
8185 *** Therefore, libtool is disabling shared libraries support.  If you
8186 *** really care for shared libraries, you may want to modify your PATH
8187 *** so that a non-GNU linker is found, and then restart.
8188
8189 _LT_EOF
8190       fi
8191       ;;
8192
8193     amigaos*)
8194       if test "$host_cpu" = m68k; then
8195         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8196         hardcode_libdir_flag_spec='-L$libdir'
8197         hardcode_minus_L=yes
8198       fi
8199
8200       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8201       # that the semantics of dynamic libraries on AmigaOS, at least up
8202       # to version 4, is to share data among multiple programs linked
8203       # with the same dynamic library.  Since this doesn't match the
8204       # behavior of shared libraries on other platforms, we can't use
8205       # them.
8206       ld_shlibs=no
8207       ;;
8208
8209     beos*)
8210       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8211         allow_undefined_flag=unsupported
8212         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8213         # support --undefined.  This deserves some investigation.  FIXME
8214         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215       else
8216         ld_shlibs=no
8217       fi
8218       ;;
8219
8220     cygwin* | mingw* | pw32*)
8221       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8222       # as there is no search path for DLLs.
8223       hardcode_libdir_flag_spec='-L$libdir'
8224       allow_undefined_flag=unsupported
8225       always_export_symbols=no
8226       enable_shared_with_static_runtimes=yes
8227       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8228
8229       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8231         # If the export-symbols file already is a .def file (1st line
8232         # is EXPORTS), use it as is; otherwise, prepend...
8233         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8234           cp $export_symbols $output_objdir/$soname.def;
8235         else
8236           echo EXPORTS > $output_objdir/$soname.def;
8237           cat $export_symbols >> $output_objdir/$soname.def;
8238         fi~
8239         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8240       else
8241         ld_shlibs=no
8242       fi
8243       ;;
8244
8245     interix[3-9]*)
8246       hardcode_direct=no
8247       hardcode_shlibpath_var=no
8248       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8249       export_dynamic_flag_spec='${wl}-E'
8250       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8251       # Instead, shared libraries are loaded at an image base (0x10000000 by
8252       # default) and relocated if they conflict, which is a slow very memory
8253       # consuming and fragmenting process.  To avoid this, we pick a random,
8254       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8255       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8256       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8257       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8258       ;;
8259
8260     gnu* | linux* | tpf* | k*bsd*-gnu)
8261       tmp_diet=no
8262       if test "$host_os" = linux-dietlibc; then
8263         case $cc_basename in
8264           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8265         esac
8266       fi
8267       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8268          && test "$tmp_diet" = no
8269       then
8270         tmp_addflag=
8271         case $cc_basename,$host_cpu in
8272         pgcc*)                          # Portland Group C compiler
8273           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8274           tmp_addflag=' $pic_flag'
8275           ;;
8276         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8277           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8278           tmp_addflag=' $pic_flag -Mnomain' ;;
8279         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8280           tmp_addflag=' -i_dynamic' ;;
8281         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8282           tmp_addflag=' -i_dynamic -nofor_main' ;;
8283         ifc* | ifort*)                  # Intel Fortran compiler
8284           tmp_addflag=' -nofor_main' ;;
8285         esac
8286         case `$CC -V 2>&1 | sed 5q` in
8287         *Sun\ C*)                       # Sun C 5.9
8288           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8289           compiler_needs_object=yes
8290           tmp_sharedflag='-G' ;;
8291         *Sun\ F*)                       # Sun Fortran 8.3
8292           tmp_sharedflag='-G' ;;
8293         *)
8294           tmp_sharedflag='-shared' ;;
8295         esac
8296         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8297
8298         if test "x$supports_anon_versioning" = xyes; then
8299           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8300             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8301             echo "local: *; };" >> $output_objdir/$libname.ver~
8302             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8303         fi
8304       else
8305         ld_shlibs=no
8306       fi
8307       ;;
8308
8309     netbsd*)
8310       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8311         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8312         wlarc=
8313       else
8314         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8316       fi
8317       ;;
8318
8319     solaris*)
8320       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8321         ld_shlibs=no
8322         cat <<_LT_EOF 1>&2
8323
8324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8325 *** create shared libraries on Solaris systems.  Therefore, libtool
8326 *** is disabling shared libraries support.  We urge you to upgrade GNU
8327 *** binutils to release 2.9.1 or newer.  Another option is to modify
8328 *** your PATH or compiler configuration so that the native linker is
8329 *** used, and then restart.
8330
8331 _LT_EOF
8332       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8333         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8335       else
8336         ld_shlibs=no
8337       fi
8338       ;;
8339
8340     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8341       case `$LD -v 2>&1` in
8342         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8343         ld_shlibs=no
8344         cat <<_LT_EOF 1>&2
8345
8346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8347 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8348 *** is disabling shared libraries support.  We urge you to upgrade GNU
8349 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8350 *** your PATH or compiler configuration so that the native linker is
8351 *** used, and then restart.
8352
8353 _LT_EOF
8354         ;;
8355         *)
8356           # For security reasons, it is highly recommended that you always
8357           # use absolute paths for naming shared libraries, and exclude the
8358           # DT_RUNPATH tag from executables and libraries.  But doing so
8359           # requires that you compile everything twice, which is a pain.
8360           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8361             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8362             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364           else
8365             ld_shlibs=no
8366           fi
8367         ;;
8368       esac
8369       ;;
8370
8371     sunos4*)
8372       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8373       wlarc=
8374       hardcode_direct=yes
8375       hardcode_shlibpath_var=no
8376       ;;
8377
8378     *)
8379       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8380         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382       else
8383         ld_shlibs=no
8384       fi
8385       ;;
8386     esac
8387
8388     if test "$ld_shlibs" = no; then
8389       runpath_var=
8390       hardcode_libdir_flag_spec=
8391       export_dynamic_flag_spec=
8392       whole_archive_flag_spec=
8393     fi
8394   else
8395     # PORTME fill in a description of your system's linker (not GNU ld)
8396     case $host_os in
8397     aix3*)
8398       allow_undefined_flag=unsupported
8399       always_export_symbols=yes
8400       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8401       # Note: this linker hardcodes the directories in LIBPATH if there
8402       # are no directories specified by -L.
8403       hardcode_minus_L=yes
8404       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8405         # Neither direct hardcoding nor static linking is supported with a
8406         # broken collect2.
8407         hardcode_direct=unsupported
8408       fi
8409       ;;
8410
8411     aix4* | aix5*)
8412       if test "$host_cpu" = ia64; then
8413         # On IA64, the linker does run time linking by default, so we don't
8414         # have to do anything special.
8415         aix_use_runtimelinking=no
8416         exp_sym_flag='-Bexport'
8417         no_entry_flag=""
8418       else
8419         # If we're using GNU nm, then we don't want the "-C" option.
8420         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8421         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8422           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8423         else
8424           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8425         fi
8426         aix_use_runtimelinking=no
8427
8428         # Test if we are trying to use run time linking or normal
8429         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8430         # need to do runtime linking.
8431         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8432           for ld_flag in $LDFLAGS; do
8433           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8434             aix_use_runtimelinking=yes
8435             break
8436           fi
8437           done
8438           ;;
8439         esac
8440
8441         exp_sym_flag='-bexport'
8442         no_entry_flag='-bnoentry'
8443       fi
8444
8445       # When large executables or shared objects are built, AIX ld can
8446       # have problems creating the table of contents.  If linking a library
8447       # or program results in "error TOC overflow" add -mminimal-toc to
8448       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8449       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8450
8451       archive_cmds=''
8452       hardcode_direct=yes
8453       hardcode_direct_absolute=yes
8454       hardcode_libdir_separator=':'
8455       link_all_deplibs=yes
8456       file_list_spec='${wl}-f,'
8457
8458       if test "$GCC" = yes; then
8459         case $host_os in aix4.[012]|aix4.[012].*)
8460         # We only want to do this on AIX 4.2 and lower, the check
8461         # below for broken collect2 doesn't work under 4.3+
8462           collect2name=`${CC} -print-prog-name=collect2`
8463           if test -f "$collect2name" &&
8464            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8465           then
8466           # We have reworked collect2
8467           :
8468           else
8469           # We have old collect2
8470           hardcode_direct=unsupported
8471           # It fails to find uninstalled libraries when the uninstalled
8472           # path is not listed in the libpath.  Setting hardcode_minus_L
8473           # to unsupported forces relinking
8474           hardcode_minus_L=yes
8475           hardcode_libdir_flag_spec='-L$libdir'
8476           hardcode_libdir_separator=
8477           fi
8478           ;;
8479         esac
8480         shared_flag='-shared'
8481         if test "$aix_use_runtimelinking" = yes; then
8482           shared_flag="$shared_flag "'${wl}-G'
8483         fi
8484       else
8485         # not using gcc
8486         if test "$host_cpu" = ia64; then
8487         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8488         # chokes on -Wl,-G. The following line is correct:
8489           shared_flag='-G'
8490         else
8491           if test "$aix_use_runtimelinking" = yes; then
8492             shared_flag='${wl}-G'
8493           else
8494             shared_flag='${wl}-bM:SRE'
8495           fi
8496         fi
8497       fi
8498
8499       # It seems that -bexpall does not export symbols beginning with
8500       # underscore (_), so it is better to generate a list of symbols to export.
8501       always_export_symbols=yes
8502       if test "$aix_use_runtimelinking" = yes; then
8503         # Warning - without using the other runtime loading flags (-brtl),
8504         # -berok will link without error, but may produce a broken library.
8505         allow_undefined_flag='-berok'
8506         # Determine the default libpath from the value encoded in an
8507         # empty executable.
8508         if test x$gcc_no_link = xyes; then
8509   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8511    { (exit 1); exit 1; }; }
8512 fi
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h.  */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h.  */
8519
8520 int
8521 main ()
8522 {
8523
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530   (eval $ac_link) 2>conftest.er1
8531   ac_status=$?
8532   grep -v '^ *+' conftest.er1 >conftest.err
8533   rm -f conftest.er1
8534   cat conftest.err >&5
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); } &&
8537          { ac_try='test -z "$ac_c_werror_flag"
8538                          || test ! -s conftest.err'
8539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540   (eval $ac_try) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; } &&
8544          { ac_try='test -s conftest$ac_exeext'
8545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546   (eval $ac_try) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); }; }; then
8550
8551 lt_aix_libpath_sed='
8552     /Import File Strings/,/^$/ {
8553         /^0/ {
8554             s/^0  *\(.*\)$/\1/
8555             p
8556         }
8557     }'
8558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8559 # Check for a 64-bit object if we didn't find anything.
8560 if test -z "$aix_libpath"; then
8561   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8562 fi
8563 else
8564   echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 fi
8568 rm -f conftest.err conftest.$ac_objext \
8569       conftest$ac_exeext conftest.$ac_ext
8570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8571
8572         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8573         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8574       else
8575         if test "$host_cpu" = ia64; then
8576           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8577           allow_undefined_flag="-z nodefs"
8578           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8579         else
8580          # Determine the default libpath from the value encoded in an
8581          # empty executable.
8582          if test x$gcc_no_link = xyes; then
8583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8585    { (exit 1); exit 1; }; }
8586 fi
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593
8594 int
8595 main ()
8596 {
8597
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604   (eval $ac_link) 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -z "$ac_c_werror_flag"
8612                          || test ! -s conftest.err'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; } &&
8618          { ac_try='test -s conftest$ac_exeext'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624
8625 lt_aix_libpath_sed='
8626     /Import File Strings/,/^$/ {
8627         /^0/ {
8628             s/^0  *\(.*\)$/\1/
8629             p
8630         }
8631     }'
8632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633 # Check for a 64-bit object if we didn't find anything.
8634 if test -z "$aix_libpath"; then
8635   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8636 fi
8637 else
8638   echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641 fi
8642 rm -f conftest.err conftest.$ac_objext \
8643       conftest$ac_exeext conftest.$ac_ext
8644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8645
8646          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8647           # Warning - without using the other run time loading flags,
8648           # -berok will link without error, but may produce a broken library.
8649           no_undefined_flag=' ${wl}-bernotok'
8650           allow_undefined_flag=' ${wl}-berok'
8651           # Exported symbols can be pulled into shared objects from archives
8652           whole_archive_flag_spec='$convenience'
8653           archive_cmds_need_lc=yes
8654           # This is similar to how AIX traditionally builds its shared libraries.
8655           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8656         fi
8657       fi
8658       ;;
8659
8660     amigaos*)
8661       if test "$host_cpu" = m68k; then
8662         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8663         hardcode_libdir_flag_spec='-L$libdir'
8664         hardcode_minus_L=yes
8665       fi
8666       # see comment about different semantics on the GNU ld section
8667       ld_shlibs=no
8668       ;;
8669
8670     bsdi[45]*)
8671       export_dynamic_flag_spec=-rdynamic
8672       ;;
8673
8674     cygwin* | mingw* | pw32*)
8675       # When not using gcc, we currently assume that we are using
8676       # Microsoft Visual C++.
8677       # hardcode_libdir_flag_spec is actually meaningless, as there is
8678       # no search path for DLLs.
8679       hardcode_libdir_flag_spec=' '
8680       allow_undefined_flag=unsupported
8681       # Tell ltmain to make .lib files, not .a files.
8682       libext=lib
8683       # Tell ltmain to make .dll files, not .so files.
8684       shrext_cmds=".dll"
8685       # FIXME: Setting linknames here is a bad hack.
8686       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8687       # The linker will automatically build a .lib file if we build a DLL.
8688       old_archive_from_new_cmds='true'
8689       # FIXME: Should let the user specify the lib program.
8690       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8691       fix_srcfile_path='`cygpath -w "$srcfile"`'
8692       enable_shared_with_static_runtimes=yes
8693       ;;
8694
8695     darwin* | rhapsody*)
8696       case $host_os in
8697       rhapsody* | darwin1.[012])
8698         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8699         ;;
8700       *) # Darwin 1.3 on
8701         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8702         10.[012])
8703           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8704           ;;
8705         10.*)
8706           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8707           ;;
8708         esac
8709         ;;
8710       esac
8711       archive_cmds_need_lc=no
8712       hardcode_direct=no
8713       hardcode_automatic=yes
8714       hardcode_shlibpath_var=unsupported
8715       whole_archive_flag_spec=''
8716       link_all_deplibs=yes
8717       if test "$GCC" = yes ; then
8718         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8719   echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721   lt_cv_apple_cc_single_mod=no
8722         if test -z "${LT_MULTI_MODULE}"; then
8723           # By default we will add the -single_module flag. You can override
8724           # by either setting the environment variable LT_MULTI_MODULE
8725           # non-empty at configure time, or by adding -multi-module to the
8726           # link flags.
8727           echo "int foo(void){return 1;}" > conftest.c
8728           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8729               -dynamiclib ${wl}-single_module conftest.c
8730           if test -f libconftest.dylib; then
8731               lt_cv_apple_cc_single_mod=yes
8732               rm libconftest.dylib
8733           fi
8734           rm conftest.$ac_ext
8735         fi
8736 fi
8737
8738         output_verbose_link_cmd=echo
8739         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8740           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8741           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8742         else
8743           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8744           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8745         fi
8746         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8747         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8748       else
8749         case $cc_basename in
8750         xlc*)
8751           output_verbose_link_cmd=echo
8752           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8753           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8754           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8755           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8756           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8757           ;;
8758         *)
8759           ld_shlibs=no
8760           ;;
8761         esac
8762       fi
8763       ;;
8764
8765     dgux*)
8766       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767       hardcode_libdir_flag_spec='-L$libdir'
8768       hardcode_shlibpath_var=no
8769       ;;
8770
8771     freebsd1*)
8772       ld_shlibs=no
8773       ;;
8774
8775     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8776     # support.  Future versions do this automatically, but an explicit c++rt0.o
8777     # does not break anything, and helps significantly (at the cost of a little
8778     # extra space).
8779     freebsd2.2*)
8780       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8781       hardcode_libdir_flag_spec='-R$libdir'
8782       hardcode_direct=yes
8783       hardcode_shlibpath_var=no
8784       ;;
8785
8786     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8787     freebsd2*)
8788       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8789       hardcode_direct=yes
8790       hardcode_minus_L=yes
8791       hardcode_shlibpath_var=no
8792       ;;
8793
8794     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8795     freebsd* | dragonfly*)
8796       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8797       hardcode_libdir_flag_spec='-R$libdir'
8798       hardcode_direct=yes
8799       hardcode_shlibpath_var=no
8800       ;;
8801
8802     hpux9*)
8803       if test "$GCC" = yes; then
8804         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8805       else
8806         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8807       fi
8808       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8809       hardcode_libdir_separator=:
8810       hardcode_direct=yes
8811
8812       # hardcode_minus_L: Not really in the search PATH,
8813       # but as the default location of the library.
8814       hardcode_minus_L=yes
8815       export_dynamic_flag_spec='${wl}-E'
8816       ;;
8817
8818     hpux10*)
8819       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8820         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8821       else
8822         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8823       fi
8824       if test "$with_gnu_ld" = no; then
8825         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8826         hardcode_libdir_flag_spec_ld='+b $libdir'
8827         hardcode_libdir_separator=:
8828         hardcode_direct=yes
8829         hardcode_direct_absolute=yes
8830         export_dynamic_flag_spec='${wl}-E'
8831         # hardcode_minus_L: Not really in the search PATH,
8832         # but as the default location of the library.
8833         hardcode_minus_L=yes
8834       fi
8835       ;;
8836
8837     hpux11*)
8838       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8839         case $host_cpu in
8840         hppa*64*)
8841           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842           ;;
8843         ia64*)
8844           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8845           ;;
8846         *)
8847           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8848           ;;
8849         esac
8850       else
8851         case $host_cpu in
8852         hppa*64*)
8853           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8854           ;;
8855         ia64*)
8856           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8857           ;;
8858         *)
8859           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8860           ;;
8861         esac
8862       fi
8863       if test "$with_gnu_ld" = no; then
8864         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8865         hardcode_libdir_separator=:
8866
8867         case $host_cpu in
8868         hppa*64*|ia64*)
8869           hardcode_direct=no
8870           hardcode_shlibpath_var=no
8871           ;;
8872         *)
8873           hardcode_direct=yes
8874           hardcode_direct_absolute=yes
8875           export_dynamic_flag_spec='${wl}-E'
8876
8877           # hardcode_minus_L: Not really in the search PATH,
8878           # but as the default location of the library.
8879           hardcode_minus_L=yes
8880           ;;
8881         esac
8882       fi
8883       ;;
8884
8885     irix5* | irix6* | nonstopux*)
8886       if test "$GCC" = yes; then
8887         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8888         # Try to use the -exported_symbol ld option, if it does not
8889         # work, assume that -exports_file does not work either and
8890         # implicitly export all symbols.
8891         save_LDFLAGS="$LDFLAGS"
8892         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8893         if test x$gcc_no_link = xyes; then
8894   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8896    { (exit 1); exit 1; }; }
8897 fi
8898 cat >conftest.$ac_ext <<_ACEOF
8899 int foo(void) {}
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903   (eval $ac_link) 2>conftest.er1
8904   ac_status=$?
8905   grep -v '^ *+' conftest.er1 >conftest.err
8906   rm -f conftest.er1
8907   cat conftest.err >&5
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } &&
8910          { ac_try='test -z "$ac_c_werror_flag"
8911                          || test ! -s conftest.err'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; } &&
8917          { ac_try='test -s conftest$ac_exeext'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; }; then
8923   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8924
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 fi
8930 rm -f conftest.err conftest.$ac_objext \
8931       conftest$ac_exeext conftest.$ac_ext
8932         LDFLAGS="$save_LDFLAGS"
8933       else
8934         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8935         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8936       fi
8937       archive_cmds_need_lc='no'
8938       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8939       hardcode_libdir_separator=:
8940       inherit_rpath=yes
8941       link_all_deplibs=yes
8942       ;;
8943
8944     netbsd*)
8945       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8946         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8947       else
8948         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8949       fi
8950       hardcode_libdir_flag_spec='-R$libdir'
8951       hardcode_direct=yes
8952       hardcode_shlibpath_var=no
8953       ;;
8954
8955     newsos6)
8956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957       hardcode_direct=yes
8958       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959       hardcode_libdir_separator=:
8960       hardcode_shlibpath_var=no
8961       ;;
8962
8963     *nto* | *qnx*)
8964       ;;
8965
8966     openbsd*)
8967       hardcode_direct=yes
8968       hardcode_shlibpath_var=no
8969       hardcode_direct_absolute=yes
8970       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8971         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8972         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8973         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8974         export_dynamic_flag_spec='${wl}-E'
8975       else
8976         case $host_os in
8977         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8978           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8979           hardcode_libdir_flag_spec='-R$libdir'
8980           ;;
8981         *)
8982           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8983           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8984           ;;
8985         esac
8986       fi
8987       ;;
8988
8989     os2*)
8990       hardcode_libdir_flag_spec='-L$libdir'
8991       hardcode_minus_L=yes
8992       allow_undefined_flag=unsupported
8993       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8994       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8995       ;;
8996
8997     osf3*)
8998       if test "$GCC" = yes; then
8999         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9000         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9001       else
9002         allow_undefined_flag=' -expect_unresolved \*'
9003         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9004       fi
9005       archive_cmds_need_lc='no'
9006       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9007       hardcode_libdir_separator=:
9008       ;;
9009
9010     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9011       if test "$GCC" = yes; then
9012         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9013         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9014         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015       else
9016         allow_undefined_flag=' -expect_unresolved \*'
9017         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9018         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9019         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9020
9021         # Both c and cxx compiler support -rpath directly
9022         hardcode_libdir_flag_spec='-rpath $libdir'
9023       fi
9024       archive_cmds_need_lc='no'
9025       hardcode_libdir_separator=:
9026       ;;
9027
9028     solaris*)
9029       no_undefined_flag=' -z defs'
9030       if test "$GCC" = yes; then
9031         wlarc='${wl}'
9032         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9033         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9034           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9035       else
9036         case `$CC -V 2>&1` in
9037         *"Compilers 5.0"*)
9038           wlarc=''
9039           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9041           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9042           ;;
9043         *)
9044           wlarc='${wl}'
9045           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9046           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9047           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9048           ;;
9049         esac
9050       fi
9051       hardcode_libdir_flag_spec='-R$libdir'
9052       hardcode_shlibpath_var=no
9053       case $host_os in
9054       solaris2.[0-5] | solaris2.[0-5].*) ;;
9055       *)
9056         # The compiler driver will combine and reorder linker options,
9057         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9058         # but is careful enough not to reorder.
9059         # Supported since Solaris 2.6 (maybe 2.5.1?)
9060         if test "$GCC" = yes; then
9061           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9062         else
9063           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9064         fi
9065         ;;
9066       esac
9067       link_all_deplibs=yes
9068       ;;
9069
9070     sunos4*)
9071       if test "x$host_vendor" = xsequent; then
9072         # Use $CC to link under sequent, because it throws in some extra .o
9073         # files that make .init and .fini sections work.
9074         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9075       else
9076         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9077       fi
9078       hardcode_libdir_flag_spec='-L$libdir'
9079       hardcode_direct=yes
9080       hardcode_minus_L=yes
9081       hardcode_shlibpath_var=no
9082       ;;
9083
9084     sysv4)
9085       case $host_vendor in
9086         sni)
9087           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088           hardcode_direct=yes # is this really true???
9089         ;;
9090         siemens)
9091           ## LD is ld it makes a PLAMLIB
9092           ## CC just makes a GrossModule.
9093           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9094           reload_cmds='$CC -r -o $output$reload_objs'
9095           hardcode_direct=no
9096         ;;
9097         motorola)
9098           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9100         ;;
9101       esac
9102       runpath_var='LD_RUN_PATH'
9103       hardcode_shlibpath_var=no
9104       ;;
9105
9106     sysv4.3*)
9107       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108       hardcode_shlibpath_var=no
9109       export_dynamic_flag_spec='-Bexport'
9110       ;;
9111
9112     sysv4*MP*)
9113       if test -d /usr/nec; then
9114         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115         hardcode_shlibpath_var=no
9116         runpath_var=LD_RUN_PATH
9117         hardcode_runpath_var=yes
9118         ld_shlibs=yes
9119       fi
9120       ;;
9121
9122     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9123       no_undefined_flag='${wl}-z,text'
9124       archive_cmds_need_lc=no
9125       hardcode_shlibpath_var=no
9126       runpath_var='LD_RUN_PATH'
9127
9128       if test "$GCC" = yes; then
9129         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131       else
9132         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9134       fi
9135       ;;
9136
9137     sysv5* | sco3.2v5* | sco5v6*)
9138       # Note: We can NOT use -z defs as we might desire, because we do not
9139       # link with -lc, and that would cause any symbols used from libc to
9140       # always be unresolved, which means just about no library would
9141       # ever link correctly.  If we're not using GNU ld we use -z text
9142       # though, which does catch some bad symbols but isn't as heavy-handed
9143       # as -z defs.
9144       no_undefined_flag='${wl}-z,text'
9145       allow_undefined_flag='${wl}-z,nodefs'
9146       archive_cmds_need_lc=no
9147       hardcode_shlibpath_var=no
9148       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9149       hardcode_libdir_separator=':'
9150       link_all_deplibs=yes
9151       export_dynamic_flag_spec='${wl}-Bexport'
9152       runpath_var='LD_RUN_PATH'
9153
9154       if test "$GCC" = yes; then
9155         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157       else
9158         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9159         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160       fi
9161       ;;
9162
9163     uts4*)
9164       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9165       hardcode_libdir_flag_spec='-L$libdir'
9166       hardcode_shlibpath_var=no
9167       ;;
9168
9169     *)
9170       ld_shlibs=no
9171       ;;
9172     esac
9173
9174     if test x$host_vendor = xsni; then
9175       case $host in
9176       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9177         export_dynamic_flag_spec='${wl}-Blargedynsym'
9178         ;;
9179       esac
9180     fi
9181   fi
9182
9183 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9184 echo "${ECHO_T}$ld_shlibs" >&6
9185 test "$ld_shlibs" = no && can_build_shared=no
9186
9187 with_gnu_ld=$with_gnu_ld
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203 #
9204 # Do we need to explicitly link libc?
9205 #
9206 case "x$archive_cmds_need_lc" in
9207 x|xyes)
9208   # Assume -lc should be added
9209   archive_cmds_need_lc=yes
9210
9211   if test "$enable_shared" = yes && test "$GCC" = yes; then
9212     case $archive_cmds in
9213     *'~'*)
9214       # FIXME: we may have to deal with multi-command sequences.
9215       ;;
9216     '$CC '*)
9217       # Test whether the compiler implicitly links with -lc since on some
9218       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9219       # to ld, don't add -lc before -lgcc.
9220       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9222       $RM conftest*
9223       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224
9225       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9226   (eval $ac_compile) 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); } 2>conftest.err; then
9230         soname=conftest
9231         lib=conftest
9232         libobjs=conftest.$ac_objext
9233         deplibs=
9234         wl=$lt_prog_compiler_wl
9235         pic_flag=$lt_prog_compiler_pic
9236         compiler_flags=-v
9237         linker_flags=-v
9238         verstring=
9239         output_objdir=.
9240         libname=conftest
9241         lt_save_allow_undefined_flag=$allow_undefined_flag
9242         allow_undefined_flag=
9243         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9244   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }
9248         then
9249           archive_cmds_need_lc=no
9250         else
9251           archive_cmds_need_lc=yes
9252         fi
9253         allow_undefined_flag=$lt_save_allow_undefined_flag
9254       else
9255         cat conftest.err 1>&5
9256       fi
9257       $RM conftest*
9258       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9259 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9260       ;;
9261     esac
9262   fi
9263   ;;
9264 esac
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9423 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9424 withGCC=$GCC
9425 if test "$withGCC" = yes; then
9426   case $host_os in
9427     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9428     *) lt_awk_arg="/^libraries:/" ;;
9429   esac
9430   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9431   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9432     # if the path contains ";" then we assume it to be the separator
9433     # otherwise default to the standard path separator (i.e. ":") - it is
9434     # assumed that no part of a normal pathname contains ";" but that should
9435     # okay in the real world where ";" in dirpaths is itself problematic.
9436     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9437   else
9438     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9439   fi
9440   # Ok, now we have the path, separated by spaces, we can step through it
9441   # and add multilib dir if necessary.
9442   lt_tmp_lt_search_path_spec=
9443   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9444   for lt_sys_path in $lt_search_path_spec; do
9445     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9446       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9447     else
9448       test -d "$lt_sys_path" && \
9449         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9450     fi
9451   done
9452   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9453 BEGIN {RS=" "; FS="/|\n";} {
9454   lt_foo="";
9455   lt_count=0;
9456   for (lt_i = NF; lt_i > 0; lt_i--) {
9457     if ($lt_i != "" && $lt_i != ".") {
9458       if ($lt_i == "..") {
9459         lt_count++;
9460       } else {
9461         if (lt_count == 0) {
9462           lt_foo="/" $lt_i lt_foo;
9463         } else {
9464           lt_count--;
9465         }
9466       }
9467     }
9468   }
9469   if (lt_foo != "") { lt_freq[lt_foo]++; }
9470   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9471 }'`
9472   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9473 else
9474   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9475 fi
9476 library_names_spec=
9477 libname_spec='lib$name'
9478 soname_spec=
9479 shrext_cmds=".so"
9480 postinstall_cmds=
9481 postuninstall_cmds=
9482 finish_cmds=
9483 finish_eval=
9484 shlibpath_var=
9485 shlibpath_overrides_runpath=unknown
9486 version_type=none
9487 dynamic_linker="$host_os ld.so"
9488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9489 need_lib_prefix=unknown
9490 hardcode_into_libs=no
9491
9492 # when you set need_version to no, make sure it does not cause -set_version
9493 # flags to be left without arguments
9494 need_version=unknown
9495
9496 case $host_os in
9497 aix3*)
9498   version_type=linux
9499   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9500   shlibpath_var=LIBPATH
9501
9502   # AIX 3 has no versioning support, so we append a major version to the name.
9503   soname_spec='${libname}${release}${shared_ext}$major'
9504   ;;
9505
9506 aix4* | aix5*)
9507   version_type=linux
9508   need_lib_prefix=no
9509   need_version=no
9510   hardcode_into_libs=yes
9511   if test "$host_cpu" = ia64; then
9512     # AIX 5 supports IA64
9513     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9514     shlibpath_var=LD_LIBRARY_PATH
9515   else
9516     # With GCC up to 2.95.x, collect2 would create an import file
9517     # for dependence libraries.  The import file would start with
9518     # the line `#! .'.  This would cause the generated library to
9519     # depend on `.', always an invalid library.  This was fixed in
9520     # development snapshots of GCC prior to 3.0.
9521     case $host_os in
9522       aix4 | aix4.[01] | aix4.[01].*)
9523       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9524            echo ' yes '
9525            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9526         :
9527       else
9528         can_build_shared=no
9529       fi
9530       ;;
9531     esac
9532     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9533     # soname into executable. Probably we can add versioning support to
9534     # collect2, so additional links can be useful in future.
9535     if test "$aix_use_runtimelinking" = yes; then
9536       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9537       # instead of lib<name>.a to let people know that these are not
9538       # typical AIX shared libraries.
9539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540     else
9541       # We preserve .a as extension for shared libraries through AIX4.2
9542       # and later when we are not doing run time linking.
9543       library_names_spec='${libname}${release}.a $libname.a'
9544       soname_spec='${libname}${release}${shared_ext}$major'
9545     fi
9546     shlibpath_var=LIBPATH
9547   fi
9548   ;;
9549
9550 amigaos*)
9551   if test "$host_cpu" = m68k; then
9552     library_names_spec='$libname.ixlibrary $libname.a'
9553     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9554     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9555   else
9556     dynamic_linker=no
9557   fi
9558   ;;
9559
9560 beos*)
9561   library_names_spec='${libname}${shared_ext}'
9562   dynamic_linker="$host_os ld.so"
9563   shlibpath_var=LIBRARY_PATH
9564   ;;
9565
9566 bsdi[45]*)
9567   version_type=linux
9568   need_version=no
9569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570   soname_spec='${libname}${release}${shared_ext}$major'
9571   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9572   shlibpath_var=LD_LIBRARY_PATH
9573   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9574   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9575   # the default ld.so.conf also contains /usr/contrib/lib and
9576   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9577   # libtool to hard-code these into programs
9578   ;;
9579
9580 cygwin* | mingw* | pw32*)
9581   version_type=windows
9582   shrext_cmds=".dll"
9583   need_version=no
9584   need_lib_prefix=no
9585
9586   case $withGCC,$host_os in
9587   yes,cygwin* | yes,mingw* | yes,pw32*)
9588     library_names_spec='$libname.dll.a'
9589     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9590     postinstall_cmds='base_file=`basename \${file}`~
9591       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9592       dldir=$destdir/`dirname \$dlpath`~
9593       test -d \$dldir || mkdir -p \$dldir~
9594       $install_prog $dir/$dlname \$dldir/$dlname~
9595       chmod a+x \$dldir/$dlname~
9596       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9597         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9598       fi'
9599     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9600       dlpath=$dir/\$dldll~
9601        $RM \$dlpath'
9602     shlibpath_overrides_runpath=yes
9603
9604     case $host_os in
9605     cygwin*)
9606       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9607       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9608       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9609       ;;
9610     mingw*)
9611       # MinGW DLLs use traditional 'lib' prefix
9612       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9613       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9614       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9615         # It is most probably a Windows format PATH printed by
9616         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9617         # path with ; separators, and with drive letters. We can handle the
9618         # drive letters (cygwin fileutils understands them), so leave them,
9619         # especially as we might pass files found there to a mingw objdump,
9620         # which wouldn't understand a cygwinified path. Ahh.
9621         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9622       else
9623         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9624       fi
9625       ;;
9626     pw32*)
9627       # pw32 DLLs use 'pw' prefix rather than 'lib'
9628       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9629       ;;
9630     esac
9631     ;;
9632
9633   *)
9634     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9635     ;;
9636   esac
9637   dynamic_linker='Win32 ld.exe'
9638   # FIXME: first we should search . and the directory the executable is in
9639   shlibpath_var=PATH
9640   ;;
9641
9642 darwin* | rhapsody*)
9643   dynamic_linker="$host_os dyld"
9644   version_type=darwin
9645   need_lib_prefix=no
9646   need_version=no
9647   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9648   soname_spec='${libname}${release}${major}$shared_ext'
9649   shlibpath_overrides_runpath=yes
9650   shlibpath_var=DYLD_LIBRARY_PATH
9651   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9652
9653   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9654   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9655   ;;
9656
9657 dgux*)
9658   version_type=linux
9659   need_lib_prefix=no
9660   need_version=no
9661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9662   soname_spec='${libname}${release}${shared_ext}$major'
9663   shlibpath_var=LD_LIBRARY_PATH
9664   ;;
9665
9666 freebsd1*)
9667   dynamic_linker=no
9668   ;;
9669
9670 freebsd* | dragonfly*)
9671   # DragonFly does not have aout.  When/if they implement a new
9672   # versioning mechanism, adjust this.
9673   if test -x /usr/bin/objformat; then
9674     objformat=`/usr/bin/objformat`
9675   else
9676     case $host_os in
9677     freebsd[123]*) objformat=aout ;;
9678     *) objformat=elf ;;
9679     esac
9680   fi
9681   version_type=freebsd-$objformat
9682   case $version_type in
9683     freebsd-elf*)
9684       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9685       need_version=no
9686       need_lib_prefix=no
9687       ;;
9688     freebsd-*)
9689       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9690       need_version=yes
9691       ;;
9692   esac
9693   shlibpath_var=LD_LIBRARY_PATH
9694   case $host_os in
9695   freebsd2*)
9696     shlibpath_overrides_runpath=yes
9697     ;;
9698   freebsd3.[01]* | freebsdelf3.[01]*)
9699     shlibpath_overrides_runpath=yes
9700     hardcode_into_libs=yes
9701     ;;
9702   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9703   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9704     shlibpath_overrides_runpath=no
9705     hardcode_into_libs=yes
9706     ;;
9707   *) # from 4.6 on, and DragonFly
9708     shlibpath_overrides_runpath=yes
9709     hardcode_into_libs=yes
9710     ;;
9711   esac
9712   ;;
9713
9714 gnu*)
9715   version_type=linux
9716   need_lib_prefix=no
9717   need_version=no
9718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9719   soname_spec='${libname}${release}${shared_ext}$major'
9720   shlibpath_var=LD_LIBRARY_PATH
9721   hardcode_into_libs=yes
9722   ;;
9723
9724 hpux9* | hpux10* | hpux11*)
9725   # Give a soname corresponding to the major version so that dld.sl refuses to
9726   # link against other versions.
9727   version_type=sunos
9728   need_lib_prefix=no
9729   need_version=no
9730   case $host_cpu in
9731   ia64*)
9732     shrext_cmds='.so'
9733     hardcode_into_libs=yes
9734     dynamic_linker="$host_os dld.so"
9735     shlibpath_var=LD_LIBRARY_PATH
9736     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738     soname_spec='${libname}${release}${shared_ext}$major'
9739     if test "X$HPUX_IA64_MODE" = X32; then
9740       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9741     else
9742       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9743     fi
9744     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9745     ;;
9746   hppa*64*)
9747     shrext_cmds='.sl'
9748     hardcode_into_libs=yes
9749     dynamic_linker="$host_os dld.sl"
9750     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9751     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753     soname_spec='${libname}${release}${shared_ext}$major'
9754     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9755     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9756     ;;
9757   *)
9758     shrext_cmds='.sl'
9759     dynamic_linker="$host_os dld.sl"
9760     shlibpath_var=SHLIB_PATH
9761     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763     soname_spec='${libname}${release}${shared_ext}$major'
9764     ;;
9765   esac
9766   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9767   postinstall_cmds='chmod 555 $lib'
9768   ;;
9769
9770 interix[3-9]*)
9771   version_type=linux
9772   need_lib_prefix=no
9773   need_version=no
9774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9775   soname_spec='${libname}${release}${shared_ext}$major'
9776   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9777   shlibpath_var=LD_LIBRARY_PATH
9778   shlibpath_overrides_runpath=no
9779   hardcode_into_libs=yes
9780   ;;
9781
9782 irix5* | irix6* | nonstopux*)
9783   case $host_os in
9784     nonstopux*) version_type=nonstopux ;;
9785     *)
9786         if test "$lt_cv_prog_gnu_ld" = yes; then
9787                 version_type=linux
9788         else
9789                 version_type=irix
9790         fi ;;
9791   esac
9792   need_lib_prefix=no
9793   need_version=no
9794   soname_spec='${libname}${release}${shared_ext}$major'
9795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9796   case $host_os in
9797   irix5* | nonstopux*)
9798     libsuff= shlibsuff=
9799     ;;
9800   *)
9801     case $LD in # libtool.m4 will add one of these switches to LD
9802     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9803       libsuff= shlibsuff= libmagic=32-bit;;
9804     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9805       libsuff=32 shlibsuff=N32 libmagic=N32;;
9806     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9807       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9808     *) libsuff= shlibsuff= libmagic=never-match;;
9809     esac
9810     ;;
9811   esac
9812   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9813   shlibpath_overrides_runpath=no
9814   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9815   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9816   hardcode_into_libs=yes
9817   ;;
9818
9819 # No shared lib support for Linux oldld, aout, or coff.
9820 linux*oldld* | linux*aout* | linux*coff*)
9821   dynamic_linker=no
9822   ;;
9823
9824 # This must be Linux ELF.
9825 linux* | k*bsd*-gnu)
9826   version_type=linux
9827   need_lib_prefix=no
9828   need_version=no
9829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830   soname_spec='${libname}${release}${shared_ext}$major'
9831   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9832   shlibpath_var=LD_LIBRARY_PATH
9833   shlibpath_overrides_runpath=no
9834   # Some binutils ld are patched to set DT_RUNPATH
9835   save_LDFLAGS=$LDFLAGS
9836   save_libdir=$libdir
9837   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9838        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9839   if test x$gcc_no_link = xyes; then
9840   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9841 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9842    { (exit 1); exit 1; }; }
9843 fi
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850
9851 int
9852 main ()
9853 {
9854
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861   (eval $ac_link) 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } &&
9868          { ac_try='test -z "$ac_c_werror_flag"
9869                          || test ! -s conftest.err'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; } &&
9875          { ac_try='test -s conftest$ac_exeext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9882   shlibpath_overrides_runpath=yes
9883 fi
9884
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 fi
9890 rm -f conftest.err conftest.$ac_objext \
9891       conftest$ac_exeext conftest.$ac_ext
9892   LDFLAGS=$save_LDFLAGS
9893   libdir=$save_libdir
9894
9895   # This implies no fast_install, which is unacceptable.
9896   # Some rework will be needed to allow for fast_install
9897   # before this can be enabled.
9898   hardcode_into_libs=yes
9899
9900   # Append ld.so.conf contents to the search path
9901   if test -f /etc/ld.so.conf; then
9902     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9903     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9904   fi
9905
9906   # We used to test for /lib/ld.so.1 and disable shared libraries on
9907   # powerpc, because MkLinux only supported shared libraries with the
9908   # GNU dynamic linker.  Since this was broken with cross compilers,
9909   # most powerpc-linux boxes support dynamic linking these days and
9910   # people can always --disable-shared, the test was removed, and we
9911   # assume the GNU/Linux dynamic linker is in use.
9912   dynamic_linker='GNU/Linux ld.so'
9913   ;;
9914
9915 netbsd*)
9916   version_type=sunos
9917   need_lib_prefix=no
9918   need_version=no
9919   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9921     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9922     dynamic_linker='NetBSD (a.out) ld.so'
9923   else
9924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9925     soname_spec='${libname}${release}${shared_ext}$major'
9926     dynamic_linker='NetBSD ld.elf_so'
9927   fi
9928   shlibpath_var=LD_LIBRARY_PATH
9929   shlibpath_overrides_runpath=yes
9930   hardcode_into_libs=yes
9931   ;;
9932
9933 newsos6)
9934   version_type=linux
9935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936   shlibpath_var=LD_LIBRARY_PATH
9937   shlibpath_overrides_runpath=yes
9938   ;;
9939
9940 *nto* | *qnx*)
9941   version_type=qnx
9942   need_lib_prefix=no
9943   need_version=no
9944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945   soname_spec='${libname}${release}${shared_ext}$major'
9946   shlibpath_var=LD_LIBRARY_PATH
9947   shlibpath_overrides_runpath=no
9948   hardcode_into_libs=yes
9949   dynamic_linker='ldqnx.so'
9950   ;;
9951
9952 openbsd*)
9953   version_type=sunos
9954   sys_lib_dlsearch_path_spec="/usr/lib"
9955   need_lib_prefix=no
9956   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9957   case $host_os in
9958     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9959     *)                          need_version=no  ;;
9960   esac
9961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9962   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9963   shlibpath_var=LD_LIBRARY_PATH
9964   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9965     case $host_os in
9966       openbsd2.[89] | openbsd2.[89].*)
9967         shlibpath_overrides_runpath=no
9968         ;;
9969       *)
9970         shlibpath_overrides_runpath=yes
9971         ;;
9972       esac
9973   else
9974     shlibpath_overrides_runpath=yes
9975   fi
9976   ;;
9977
9978 os2*)
9979   libname_spec='$name'
9980   shrext_cmds=".dll"
9981   need_lib_prefix=no
9982   library_names_spec='$libname${shared_ext} $libname.a'
9983   dynamic_linker='OS/2 ld.exe'
9984   shlibpath_var=LIBPATH
9985   ;;
9986
9987 osf3* | osf4* | osf5*)
9988   version_type=osf
9989   need_lib_prefix=no
9990   need_version=no
9991   soname_spec='${libname}${release}${shared_ext}$major'
9992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993   shlibpath_var=LD_LIBRARY_PATH
9994   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9995   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9996   ;;
9997
9998 rdos*)
9999   dynamic_linker=no
10000   ;;
10001
10002 solaris*)
10003   version_type=linux
10004   need_lib_prefix=no
10005   need_version=no
10006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007   soname_spec='${libname}${release}${shared_ext}$major'
10008   shlibpath_var=LD_LIBRARY_PATH
10009   shlibpath_overrides_runpath=yes
10010   hardcode_into_libs=yes
10011   # ldd complains unless libraries are executable
10012   postinstall_cmds='chmod +x $lib'
10013   ;;
10014
10015 sunos4*)
10016   version_type=sunos
10017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10018   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10019   shlibpath_var=LD_LIBRARY_PATH
10020   shlibpath_overrides_runpath=yes
10021   if test "$with_gnu_ld" = yes; then
10022     need_lib_prefix=no
10023   fi
10024   need_version=yes
10025   ;;
10026
10027 sysv4 | sysv4.3*)
10028   version_type=linux
10029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030   soname_spec='${libname}${release}${shared_ext}$major'
10031   shlibpath_var=LD_LIBRARY_PATH
10032   case $host_vendor in
10033     sni)
10034       shlibpath_overrides_runpath=no
10035       need_lib_prefix=no
10036       runpath_var=LD_RUN_PATH
10037       ;;
10038     siemens)
10039       need_lib_prefix=no
10040       ;;
10041     motorola)
10042       need_lib_prefix=no
10043       need_version=no
10044       shlibpath_overrides_runpath=no
10045       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10046       ;;
10047   esac
10048   ;;
10049
10050 sysv4*MP*)
10051   if test -d /usr/nec ;then
10052     version_type=linux
10053     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10054     soname_spec='$libname${shared_ext}.$major'
10055     shlibpath_var=LD_LIBRARY_PATH
10056   fi
10057   ;;
10058
10059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10060   version_type=freebsd-elf
10061   need_lib_prefix=no
10062   need_version=no
10063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10064   soname_spec='${libname}${release}${shared_ext}$major'
10065   shlibpath_var=LD_LIBRARY_PATH
10066   shlibpath_overrides_runpath=yes
10067   hardcode_into_libs=yes
10068   if test "$with_gnu_ld" = yes; then
10069     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10070   else
10071     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10072     case $host_os in
10073       sco3.2v5*)
10074         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10075         ;;
10076     esac
10077   fi
10078   sys_lib_dlsearch_path_spec='/usr/lib'
10079   ;;
10080
10081 tpf*)
10082   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10083   version_type=linux
10084   need_lib_prefix=no
10085   need_version=no
10086   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087   shlibpath_var=LD_LIBRARY_PATH
10088   shlibpath_overrides_runpath=no
10089   hardcode_into_libs=yes
10090   ;;
10091
10092 uts4*)
10093   version_type=linux
10094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095   soname_spec='${libname}${release}${shared_ext}$major'
10096   shlibpath_var=LD_LIBRARY_PATH
10097   ;;
10098
10099 *)
10100   dynamic_linker=no
10101   ;;
10102 esac
10103 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10104 echo "${ECHO_T}$dynamic_linker" >&6
10105 test "$dynamic_linker" = no && can_build_shared=no
10106
10107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10108 if test "$GCC" = yes; then
10109   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10110 fi
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10199 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10200 hardcode_action=
10201 if test -n "$hardcode_libdir_flag_spec" ||
10202    test -n "$runpath_var" ||
10203    test "X$hardcode_automatic" = "Xyes" ; then
10204
10205   # We can hardcode non-existent directories.
10206   if test "$hardcode_direct" != no &&
10207      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10208      # have to relink, otherwise we might link with an installed library
10209      # when we should be linking with a yet-to-be-installed one
10210      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10211      test "$hardcode_minus_L" != no; then
10212     # Linking always hardcodes the temporary library directory.
10213     hardcode_action=relink
10214   else
10215     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10216     hardcode_action=immediate
10217   fi
10218 else
10219   # We cannot hardcode anything, or else we can only hardcode existing
10220   # directories.
10221   hardcode_action=unsupported
10222 fi
10223 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10224 echo "${ECHO_T}$hardcode_action" >&6
10225
10226 if test "$hardcode_action" = relink ||
10227    test "$inherit_rpath" = yes; then
10228   # Fast installation is not supported
10229   enable_fast_install=no
10230 elif test "$shlibpath_overrides_runpath" = yes ||
10231      test "$enable_shared" = no; then
10232   # Fast installation is not necessary
10233   enable_fast_install=needless
10234 fi
10235
10236
10237
10238
10239
10240
10241   if test "x$enable_dlopen" != xyes; then
10242   enable_dlopen=unknown
10243   enable_dlopen_self=unknown
10244   enable_dlopen_self_static=unknown
10245 else
10246   lt_cv_dlopen=no
10247   lt_cv_dlopen_libs=
10248
10249   case $host_os in
10250   beos*)
10251     lt_cv_dlopen="load_add_on"
10252     lt_cv_dlopen_libs=
10253     lt_cv_dlopen_self=yes
10254     ;;
10255
10256   mingw* | pw32*)
10257     lt_cv_dlopen="LoadLibrary"
10258     lt_cv_dlopen_libs=
10259     ;;
10260
10261   cygwin*)
10262     lt_cv_dlopen="dlopen"
10263     lt_cv_dlopen_libs=
10264     ;;
10265
10266   darwin*)
10267   # if libdl is installed we need to link against it
10268     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10269 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-ldl  $LIBS"
10275 if test x$gcc_no_link = xyes; then
10276   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10277 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10278    { (exit 1); exit 1; }; }
10279 fi
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286
10287 /* Override any gcc2 internal prototype to avoid an error.  */
10288 #ifdef __cplusplus
10289 extern "C"
10290 #endif
10291 /* We use char because int might match the return type of a gcc2
10292    builtin and then its argument prototype would still apply.  */
10293 char dlopen ();
10294 int
10295 main ()
10296 {
10297 dlopen ();
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304   (eval $ac_link) 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -z "$ac_c_werror_flag"
10312                          || test ! -s conftest.err'
10313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314   (eval $ac_try) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; } &&
10318          { ac_try='test -s conftest$ac_exeext'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; }; then
10324   ac_cv_lib_dl_dlopen=yes
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 ac_cv_lib_dl_dlopen=no
10330 fi
10331 rm -f conftest.err conftest.$ac_objext \
10332       conftest$ac_exeext conftest.$ac_ext
10333 LIBS=$ac_check_lib_save_LIBS
10334 fi
10335 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10336 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10337 if test $ac_cv_lib_dl_dlopen = yes; then
10338   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10339 else
10340
10341     lt_cv_dlopen="dyld"
10342     lt_cv_dlopen_libs=
10343     lt_cv_dlopen_self=yes
10344
10345 fi
10346
10347     ;;
10348
10349   *)
10350     echo "$as_me:$LINENO: checking for shl_load" >&5
10351 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10352 if test "${ac_cv_func_shl_load+set}" = set; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   if test x$gcc_no_link = xyes; then
10356   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10358    { (exit 1); exit 1; }; }
10359 fi
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10368 #define shl_load innocuous_shl_load
10369
10370 /* System header to define __stub macros and hopefully few prototypes,
10371     which can conflict with char shl_load (); below.
10372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10373     <limits.h> exists even on freestanding compilers.  */
10374
10375 #ifdef __STDC__
10376 # include <limits.h>
10377 #else
10378 # include <assert.h>
10379 #endif
10380
10381 #undef shl_load
10382
10383 /* Override any gcc2 internal prototype to avoid an error.  */
10384 #ifdef __cplusplus
10385 extern "C"
10386 {
10387 #endif
10388 /* We use char because int might match the return type of a gcc2
10389    builtin and then its argument prototype would still apply.  */
10390 char shl_load ();
10391 /* The GNU C library defines this for functions which it implements
10392     to always fail with ENOSYS.  Some functions are actually named
10393     something starting with __ and the normal name is an alias.  */
10394 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10395 choke me
10396 #else
10397 char (*f) () = shl_load;
10398 #endif
10399 #ifdef __cplusplus
10400 }
10401 #endif
10402
10403 int
10404 main ()
10405 {
10406 return f != shl_load;
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413   (eval $ac_link) 2>conftest.er1
10414   ac_status=$?
10415   grep -v '^ *+' conftest.er1 >conftest.err
10416   rm -f conftest.er1
10417   cat conftest.err >&5
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } &&
10420          { ac_try='test -z "$ac_c_werror_flag"
10421                          || test ! -s conftest.err'
10422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423   (eval $ac_try) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; } &&
10427          { ac_try='test -s conftest$ac_exeext'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; }; then
10433   ac_cv_func_shl_load=yes
10434 else
10435   echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ac_cv_func_shl_load=no
10439 fi
10440 rm -f conftest.err conftest.$ac_objext \
10441       conftest$ac_exeext conftest.$ac_ext
10442 fi
10443 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10445 if test $ac_cv_func_shl_load = yes; then
10446   lt_cv_dlopen="shl_load"
10447 else
10448   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10449 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10451   echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10453   ac_check_lib_save_LIBS=$LIBS
10454 LIBS="-ldld  $LIBS"
10455 if test x$gcc_no_link = xyes; then
10456   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10458    { (exit 1); exit 1; }; }
10459 fi
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466
10467 /* Override any gcc2 internal prototype to avoid an error.  */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 /* We use char because int might match the return type of a gcc2
10472    builtin and then its argument prototype would still apply.  */
10473 char shl_load ();
10474 int
10475 main ()
10476 {
10477 shl_load ();
10478   ;
10479   return 0;
10480 }
10481 _ACEOF
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484   (eval $ac_link) 2>conftest.er1
10485   ac_status=$?
10486   grep -v '^ *+' conftest.er1 >conftest.err
10487   rm -f conftest.er1
10488   cat conftest.err >&5
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } &&
10491          { ac_try='test -z "$ac_c_werror_flag"
10492                          || test ! -s conftest.err'
10493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494   (eval $ac_try) 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; } &&
10498          { ac_try='test -s conftest$ac_exeext'
10499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500   (eval $ac_try) 2>&5
10501   ac_status=$?
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); }; }; then
10504   ac_cv_lib_dld_shl_load=yes
10505 else
10506   echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509 ac_cv_lib_dld_shl_load=no
10510 fi
10511 rm -f conftest.err conftest.$ac_objext \
10512       conftest$ac_exeext conftest.$ac_ext
10513 LIBS=$ac_check_lib_save_LIBS
10514 fi
10515 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10516 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10517 if test $ac_cv_lib_dld_shl_load = yes; then
10518   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10519 else
10520   echo "$as_me:$LINENO: checking for dlopen" >&5
10521 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10522 if test "${ac_cv_func_dlopen+set}" = set; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525   if test x$gcc_no_link = xyes; then
10526   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10528    { (exit 1); exit 1; }; }
10529 fi
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10538 #define dlopen innocuous_dlopen
10539
10540 /* System header to define __stub macros and hopefully few prototypes,
10541     which can conflict with char dlopen (); below.
10542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10543     <limits.h> exists even on freestanding compilers.  */
10544
10545 #ifdef __STDC__
10546 # include <limits.h>
10547 #else
10548 # include <assert.h>
10549 #endif
10550
10551 #undef dlopen
10552
10553 /* Override any gcc2 internal prototype to avoid an error.  */
10554 #ifdef __cplusplus
10555 extern "C"
10556 {
10557 #endif
10558 /* We use char because int might match the return type of a gcc2
10559    builtin and then its argument prototype would still apply.  */
10560 char dlopen ();
10561 /* The GNU C library defines this for functions which it implements
10562     to always fail with ENOSYS.  Some functions are actually named
10563     something starting with __ and the normal name is an alias.  */
10564 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10565 choke me
10566 #else
10567 char (*f) () = dlopen;
10568 #endif
10569 #ifdef __cplusplus
10570 }
10571 #endif
10572
10573 int
10574 main ()
10575 {
10576 return f != dlopen;
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10583   (eval $ac_link) 2>conftest.er1
10584   ac_status=$?
10585   grep -v '^ *+' conftest.er1 >conftest.err
10586   rm -f conftest.er1
10587   cat conftest.err >&5
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); } &&
10590          { ac_try='test -z "$ac_c_werror_flag"
10591                          || test ! -s conftest.err'
10592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593   (eval $ac_try) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; } &&
10597          { ac_try='test -s conftest$ac_exeext'
10598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599   (eval $ac_try) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); }; }; then
10603   ac_cv_func_dlopen=yes
10604 else
10605   echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ac_cv_func_dlopen=no
10609 fi
10610 rm -f conftest.err conftest.$ac_objext \
10611       conftest$ac_exeext conftest.$ac_ext
10612 fi
10613 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10615 if test $ac_cv_func_dlopen = yes; then
10616   lt_cv_dlopen="dlopen"
10617 else
10618   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-ldl  $LIBS"
10625 if test x$gcc_no_link = xyes; then
10626   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10628    { (exit 1); exit 1; }; }
10629 fi
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636
10637 /* Override any gcc2 internal prototype to avoid an error.  */
10638 #ifdef __cplusplus
10639 extern "C"
10640 #endif
10641 /* We use char because int might match the return type of a gcc2
10642    builtin and then its argument prototype would still apply.  */
10643 char dlopen ();
10644 int
10645 main ()
10646 {
10647 dlopen ();
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654   (eval $ac_link) 2>conftest.er1
10655   ac_status=$?
10656   grep -v '^ *+' conftest.er1 >conftest.err
10657   rm -f conftest.er1
10658   cat conftest.err >&5
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); } &&
10661          { ac_try='test -z "$ac_c_werror_flag"
10662                          || test ! -s conftest.err'
10663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664   (eval $ac_try) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); }; } &&
10668          { ac_try='test -s conftest$ac_exeext'
10669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670   (eval $ac_try) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); }; }; then
10674   ac_cv_lib_dl_dlopen=yes
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_cv_lib_dl_dlopen=no
10680 fi
10681 rm -f conftest.err conftest.$ac_objext \
10682       conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10684 fi
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10687 if test $ac_cv_lib_dl_dlopen = yes; then
10688   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10689 else
10690   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10691 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10692 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10693   echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695   ac_check_lib_save_LIBS=$LIBS
10696 LIBS="-lsvld  $LIBS"
10697 if test x$gcc_no_link = xyes; then
10698   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10700    { (exit 1); exit 1; }; }
10701 fi
10702 cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708
10709 /* Override any gcc2 internal prototype to avoid an error.  */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 /* We use char because int might match the return type of a gcc2
10714    builtin and then its argument prototype would still apply.  */
10715 char dlopen ();
10716 int
10717 main ()
10718 {
10719 dlopen ();
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10726   (eval $ac_link) 2>conftest.er1
10727   ac_status=$?
10728   grep -v '^ *+' conftest.er1 >conftest.err
10729   rm -f conftest.er1
10730   cat conftest.err >&5
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); } &&
10733          { ac_try='test -z "$ac_c_werror_flag"
10734                          || test ! -s conftest.err'
10735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736   (eval $ac_try) 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; } &&
10740          { ac_try='test -s conftest$ac_exeext'
10741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742   (eval $ac_try) 2>&5
10743   ac_status=$?
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); }; }; then
10746   ac_cv_lib_svld_dlopen=yes
10747 else
10748   echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 ac_cv_lib_svld_dlopen=no
10752 fi
10753 rm -f conftest.err conftest.$ac_objext \
10754       conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10756 fi
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10758 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10759 if test $ac_cv_lib_svld_dlopen = yes; then
10760   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10761 else
10762   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10763 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10764 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10765   echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767   ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-ldld  $LIBS"
10769 if test x$gcc_no_link = xyes; then
10770   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10772    { (exit 1); exit 1; }; }
10773 fi
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h.  */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h.  */
10780
10781 /* Override any gcc2 internal prototype to avoid an error.  */
10782 #ifdef __cplusplus
10783 extern "C"
10784 #endif
10785 /* We use char because int might match the return type of a gcc2
10786    builtin and then its argument prototype would still apply.  */
10787 char dld_link ();
10788 int
10789 main ()
10790 {
10791 dld_link ();
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798   (eval $ac_link) 2>conftest.er1
10799   ac_status=$?
10800   grep -v '^ *+' conftest.er1 >conftest.err
10801   rm -f conftest.er1
10802   cat conftest.err >&5
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); } &&
10805          { ac_try='test -z "$ac_c_werror_flag"
10806                          || test ! -s conftest.err'
10807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808   (eval $ac_try) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }; } &&
10812          { ac_try='test -s conftest$ac_exeext'
10813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814   (eval $ac_try) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; }; then
10818   ac_cv_lib_dld_dld_link=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823 ac_cv_lib_dld_dld_link=no
10824 fi
10825 rm -f conftest.err conftest.$ac_objext \
10826       conftest$ac_exeext conftest.$ac_ext
10827 LIBS=$ac_check_lib_save_LIBS
10828 fi
10829 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10830 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10831 if test $ac_cv_lib_dld_dld_link = yes; then
10832   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10833 fi
10834
10835
10836 fi
10837
10838
10839 fi
10840
10841
10842 fi
10843
10844
10845 fi
10846
10847
10848 fi
10849
10850     ;;
10851   esac
10852
10853   if test "x$lt_cv_dlopen" != xno; then
10854     enable_dlopen=yes
10855   else
10856     enable_dlopen=no
10857   fi
10858
10859   case $lt_cv_dlopen in
10860   dlopen)
10861     save_CPPFLAGS="$CPPFLAGS"
10862     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10863
10864     save_LDFLAGS="$LDFLAGS"
10865     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10866
10867     save_LIBS="$LIBS"
10868     LIBS="$lt_cv_dlopen_libs $LIBS"
10869
10870     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10871 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10872 if test "${lt_cv_dlopen_self+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875           if test "$cross_compiling" = yes; then :
10876   lt_cv_dlopen_self=cross
10877 else
10878   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10879   lt_status=$lt_dlunknown
10880   cat > conftest.$ac_ext <<_LT_EOF
10881 #line 10881 "configure"
10882 #include "confdefs.h"
10883
10884 #if HAVE_DLFCN_H
10885 #include <dlfcn.h>
10886 #endif
10887
10888 #include <stdio.h>
10889
10890 #ifdef RTLD_GLOBAL
10891 #  define LT_DLGLOBAL           RTLD_GLOBAL
10892 #else
10893 #  ifdef DL_GLOBAL
10894 #    define LT_DLGLOBAL         DL_GLOBAL
10895 #  else
10896 #    define LT_DLGLOBAL         0
10897 #  endif
10898 #endif
10899
10900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10901    find out it does not work in some platform. */
10902 #ifndef LT_DLLAZY_OR_NOW
10903 #  ifdef RTLD_LAZY
10904 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10905 #  else
10906 #    ifdef DL_LAZY
10907 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10908 #    else
10909 #      ifdef RTLD_NOW
10910 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10911 #      else
10912 #        ifdef DL_NOW
10913 #          define LT_DLLAZY_OR_NOW      DL_NOW
10914 #        else
10915 #          define LT_DLLAZY_OR_NOW      0
10916 #        endif
10917 #      endif
10918 #    endif
10919 #  endif
10920 #endif
10921
10922 #ifdef __cplusplus
10923 extern "C" void exit (int);
10924 #endif
10925
10926 void fnord() { int i=42;}
10927 int main ()
10928 {
10929   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10930   int status = $lt_dlunknown;
10931
10932   if (self)
10933     {
10934       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10935       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10936       /* dlclose (self); */
10937     }
10938   else
10939     puts (dlerror ());
10940
10941     exit (status);
10942 }
10943 _LT_EOF
10944   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10945   (eval $ac_link) 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10949     (./conftest; exit; ) >&5 2>/dev/null
10950     lt_status=$?
10951     case x$lt_status in
10952       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10953       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10954       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10955     esac
10956   else :
10957     # compilation failed
10958     lt_cv_dlopen_self=no
10959   fi
10960 fi
10961 rm -fr conftest*
10962
10963
10964 fi
10965 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10966 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10967
10968     if test "x$lt_cv_dlopen_self" = xyes; then
10969       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10970       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10971 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10972 if test "${lt_cv_dlopen_self_static+set}" = set; then
10973   echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975           if test "$cross_compiling" = yes; then :
10976   lt_cv_dlopen_self_static=cross
10977 else
10978   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979   lt_status=$lt_dlunknown
10980   cat > conftest.$ac_ext <<_LT_EOF
10981 #line 10981 "configure"
10982 #include "confdefs.h"
10983
10984 #if HAVE_DLFCN_H
10985 #include <dlfcn.h>
10986 #endif
10987
10988 #include <stdio.h>
10989
10990 #ifdef RTLD_GLOBAL
10991 #  define LT_DLGLOBAL           RTLD_GLOBAL
10992 #else
10993 #  ifdef DL_GLOBAL
10994 #    define LT_DLGLOBAL         DL_GLOBAL
10995 #  else
10996 #    define LT_DLGLOBAL         0
10997 #  endif
10998 #endif
10999
11000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001    find out it does not work in some platform. */
11002 #ifndef LT_DLLAZY_OR_NOW
11003 #  ifdef RTLD_LAZY
11004 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11005 #  else
11006 #    ifdef DL_LAZY
11007 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11008 #    else
11009 #      ifdef RTLD_NOW
11010 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11011 #      else
11012 #        ifdef DL_NOW
11013 #          define LT_DLLAZY_OR_NOW      DL_NOW
11014 #        else
11015 #          define LT_DLLAZY_OR_NOW      0
11016 #        endif
11017 #      endif
11018 #    endif
11019 #  endif
11020 #endif
11021
11022 #ifdef __cplusplus
11023 extern "C" void exit (int);
11024 #endif
11025
11026 void fnord() { int i=42;}
11027 int main ()
11028 {
11029   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11030   int status = $lt_dlunknown;
11031
11032   if (self)
11033     {
11034       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11035       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11036       /* dlclose (self); */
11037     }
11038   else
11039     puts (dlerror ());
11040
11041     exit (status);
11042 }
11043 _LT_EOF
11044   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11045   (eval $ac_link) 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11049     (./conftest; exit; ) >&5 2>/dev/null
11050     lt_status=$?
11051     case x$lt_status in
11052       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11053       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11054       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11055     esac
11056   else :
11057     # compilation failed
11058     lt_cv_dlopen_self_static=no
11059   fi
11060 fi
11061 rm -fr conftest*
11062
11063
11064 fi
11065 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11066 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11067     fi
11068
11069     CPPFLAGS="$save_CPPFLAGS"
11070     LDFLAGS="$save_LDFLAGS"
11071     LIBS="$save_LIBS"
11072     ;;
11073   esac
11074
11075   case $lt_cv_dlopen_self in
11076   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11077   *) enable_dlopen_self=unknown ;;
11078   esac
11079
11080   case $lt_cv_dlopen_self_static in
11081   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11082   *) enable_dlopen_self_static=unknown ;;
11083   esac
11084 fi
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102 striplib=
11103 old_striplib=
11104 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11105 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11106 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11107   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11108   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11109   echo "$as_me:$LINENO: result: yes" >&5
11110 echo "${ECHO_T}yes" >&6
11111 else
11112 # FIXME - insert some real tests, host_os isn't really good enough
11113   case $host_os in
11114   darwin*)
11115     if test -n "$STRIP" ; then
11116       striplib="$STRIP -x"
11117       old_striplib="$STRIP -S"
11118       echo "$as_me:$LINENO: result: yes" >&5
11119 echo "${ECHO_T}yes" >&6
11120     else
11121       echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6
11123     fi
11124     ;;
11125   *)
11126     echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11128     ;;
11129   esac
11130 fi
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143   # Report which library types will actually be built
11144   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11145 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11146   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11147 echo "${ECHO_T}$can_build_shared" >&6
11148
11149   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11150 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11151   test "$can_build_shared" = "no" && enable_shared=no
11152
11153   # On AIX, shared libraries and static libraries use the same namespace, and
11154   # are all built from PIC.
11155   case $host_os in
11156   aix3*)
11157     test "$enable_shared" = yes && enable_static=no
11158     if test -n "$RANLIB"; then
11159       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11160       postinstall_cmds='$RANLIB $lib'
11161     fi
11162     ;;
11163
11164   aix4* | aix5*)
11165     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11166       test "$enable_shared" = yes && enable_static=no
11167     fi
11168     ;;
11169   esac
11170   echo "$as_me:$LINENO: result: $enable_shared" >&5
11171 echo "${ECHO_T}$enable_shared" >&6
11172
11173   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11174 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11175   # Make sure either enable_shared or enable_static is yes.
11176   test "$enable_shared" = yes || enable_static=yes
11177   echo "$as_me:$LINENO: result: $enable_static" >&5
11178 echo "${ECHO_T}$enable_static" >&6
11179
11180
11181
11182
11183 fi
11184 ac_ext=c
11185 ac_cpp='$CPP $CPPFLAGS'
11186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11189
11190 CC="$lt_save_CC"
11191
11192
11193 ac_ext=cc
11194 ac_cpp='$CXXCPP $CPPFLAGS'
11195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11198
11199 archive_cmds_need_lc_CXX=no
11200 allow_undefined_flag_CXX=
11201 always_export_symbols_CXX=no
11202 archive_expsym_cmds_CXX=
11203 compiler_needs_object_CXX=no
11204 export_dynamic_flag_spec_CXX=
11205 hardcode_direct_CXX=no
11206 hardcode_direct_absolute_CXX=no
11207 hardcode_libdir_flag_spec_CXX=
11208 hardcode_libdir_flag_spec_ld_CXX=
11209 hardcode_libdir_separator_CXX=
11210 hardcode_minus_L_CXX=no
11211 hardcode_shlibpath_var_CXX=unsupported
11212 hardcode_automatic_CXX=no
11213 inherit_rpath_CXX=no
11214 module_cmds_CXX=
11215 module_expsym_cmds_CXX=
11216 link_all_deplibs_CXX=unknown
11217 old_archive_cmds_CXX=$old_archive_cmds
11218 no_undefined_flag_CXX=
11219 whole_archive_flag_spec_CXX=
11220 enable_shared_with_static_runtimes_CXX=no
11221
11222 # Source file extension for C++ test sources.
11223 ac_ext=cpp
11224
11225 # Object file extension for compiled C++ test sources.
11226 objext=o
11227 objext_CXX=$objext
11228
11229 # No sense in running all these tests if we already determined that
11230 # the CXX compiler isn't working.  Some variables (like enable_shared)
11231 # are currently assumed to apply to all compilers on this platform,
11232 # and will be corrupted by setting them based on a non-working compiler.
11233 if test "$_lt_caught_CXX_error" != yes; then
11234   # Code to be used in simple compile tests
11235   lt_simple_compile_test_code="int some_variable = 0;"
11236
11237   # Code to be used in simple link tests
11238   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11239
11240   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11241
11242
11243
11244
11245
11246
11247 # If no C compiler was specified, use CC.
11248 LTCC=${LTCC-"$CC"}
11249
11250 # If no C compiler flags were specified, use CFLAGS.
11251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11252
11253 # Allow CC to be a program name with arguments.
11254 compiler=$CC
11255
11256
11257   # save warnings/boilerplate of simple test code
11258   ac_outfile=conftest.$ac_objext
11259 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11260 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11261 _lt_compiler_boilerplate=`cat conftest.err`
11262 $RM conftest*
11263
11264   ac_outfile=conftest.$ac_objext
11265 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11266 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11267 _lt_linker_boilerplate=`cat conftest.err`
11268 $RM conftest*
11269
11270
11271   # Allow CC to be a program name with arguments.
11272   lt_save_CC=$CC
11273   lt_save_LD=$LD
11274   lt_save_GCC=$GCC
11275   GCC=$GXX
11276   lt_save_with_gnu_ld=$with_gnu_ld
11277   lt_save_path_LD=$lt_cv_path_LD
11278   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11279     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11280   else
11281     $as_unset lt_cv_prog_gnu_ld
11282   fi
11283   if test -n "${lt_cv_path_LDCXX+set}"; then
11284     lt_cv_path_LD=$lt_cv_path_LDCXX
11285   else
11286     $as_unset lt_cv_path_LD
11287   fi
11288   test -z "${LDCXX+set}" || LD=$LDCXX
11289   CC=${CXX-"c++"}
11290   compiler=$CC
11291   compiler_CXX=$CC
11292   for cc_temp in $compiler""; do
11293   case $cc_temp in
11294     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11295     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11296     \-*) ;;
11297     *) break;;
11298   esac
11299 done
11300 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11301
11302
11303   if test -n "$compiler"; then
11304     # We don't want -fno-exception when compiling C++ code, so set the
11305     # no_builtin_flag separately
11306     if test "$GXX" = yes; then
11307       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11308     else
11309       lt_prog_compiler_no_builtin_flag_CXX=
11310     fi
11311
11312     if test "$GXX" = yes; then
11313       # Set up default GNU C++ configuration
11314
11315
11316
11317 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11318 if test "${with_gnu_ld+set}" = set; then
11319   withval="$with_gnu_ld"
11320   test "$withval" = no || with_gnu_ld=yes
11321 else
11322   with_gnu_ld=no
11323 fi;
11324 ac_prog=ld
11325 if test "$GCC" = yes; then
11326   # Check if gcc -print-prog-name=ld gives a path.
11327   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11328 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11329   case $host in
11330   *-*-mingw*)
11331     # gcc leaves a trailing carriage return which upsets mingw
11332     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11333   *)
11334     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11335   esac
11336   case $ac_prog in
11337     # Accept absolute paths.
11338     [\\/]* | ?:[\\/]*)
11339       re_direlt='/[^/][^/]*/\.\./'
11340       # Canonicalize the pathname of ld
11341       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11342       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11343         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11344       done
11345       test -z "$LD" && LD="$ac_prog"
11346       ;;
11347   "")
11348     # If it fails, then pretend we aren't using GCC.
11349     ac_prog=ld
11350     ;;
11351   *)
11352     # If it is relative, then search for the first ld in PATH.
11353     with_gnu_ld=unknown
11354     ;;
11355   esac
11356 elif test "$with_gnu_ld" = yes; then
11357   echo "$as_me:$LINENO: checking for GNU ld" >&5
11358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11359 else
11360   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11362 fi
11363 if test "${lt_cv_path_LD+set}" = set; then
11364   echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366   if test -z "$LD"; then
11367   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11368   for ac_dir in $PATH; do
11369     IFS="$lt_save_ifs"
11370     test -z "$ac_dir" && ac_dir=.
11371     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11372       lt_cv_path_LD="$ac_dir/$ac_prog"
11373       # Check to see if the program is GNU ld.  I'd rather use --version,
11374       # but apparently some variants of GNU ld only accept -v.
11375       # Break only if it was the GNU/non-GNU ld that we prefer.
11376       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11377       *GNU* | *'with BFD'*)
11378         test "$with_gnu_ld" != no && break
11379         ;;
11380       *)
11381         test "$with_gnu_ld" != yes && break
11382         ;;
11383       esac
11384     fi
11385   done
11386   IFS="$lt_save_ifs"
11387 else
11388   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11389 fi
11390 fi
11391
11392 LD="$lt_cv_path_LD"
11393 if test -n "$LD"; then
11394   echo "$as_me:$LINENO: result: $LD" >&5
11395 echo "${ECHO_T}$LD" >&6
11396 else
11397   echo "$as_me:$LINENO: result: no" >&5
11398 echo "${ECHO_T}no" >&6
11399 fi
11400 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11401 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11402    { (exit 1); exit 1; }; }
11403 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11404 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11405 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11409 case `$LD -v 2>&1 </dev/null` in
11410 *GNU* | *'with BFD'*)
11411   lt_cv_prog_gnu_ld=yes
11412   ;;
11413 *)
11414   lt_cv_prog_gnu_ld=no
11415   ;;
11416 esac
11417 fi
11418 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11419 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11420 with_gnu_ld=$lt_cv_prog_gnu_ld
11421
11422
11423
11424
11425
11426
11427
11428       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11429       # archiving commands below assume that GNU ld is being used.
11430       if test "$with_gnu_ld" = yes; then
11431         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11432         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11433
11434         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11435         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11436
11437         # If archive_cmds runs LD, not CC, wlarc should be empty
11438         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11439         #     investigate it a little bit more. (MM)
11440         wlarc='${wl}'
11441
11442         # ancient GNU ld didn't support --whole-archive et. al.
11443         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11444           $GREP 'no-whole-archive' > /dev/null; then
11445           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11446         else
11447           whole_archive_flag_spec_CXX=
11448         fi
11449       else
11450         with_gnu_ld=no
11451         wlarc=
11452
11453         # A generic and very simple default shared library creation
11454         # command for GNU C++ for the case where it uses the native
11455         # linker, instead of GNU ld.  If possible, this setting should
11456         # overridden to take advantage of the native linker features on
11457         # the platform it is being used on.
11458         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11459       fi
11460
11461       # Commands to make compiler produce verbose output that lists
11462       # what "hidden" libraries, object files and flags are used when
11463       # linking a shared library.
11464       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11465
11466     else
11467       GXX=no
11468       with_gnu_ld=no
11469       wlarc=
11470     fi
11471
11472     # PORTME: fill in a description of your system's C++ link characteristics
11473     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11474 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11475     ld_shlibs_CXX=yes
11476     case $host_os in
11477       aix3*)
11478         # FIXME: insert proper C++ library support
11479         ld_shlibs_CXX=no
11480         ;;
11481       aix4* | aix5*)
11482         if test "$host_cpu" = ia64; then
11483           # On IA64, the linker does run time linking by default, so we don't
11484           # have to do anything special.
11485           aix_use_runtimelinking=no
11486           exp_sym_flag='-Bexport'
11487           no_entry_flag=""
11488         else
11489           aix_use_runtimelinking=no
11490
11491           # Test if we are trying to use run time linking or normal
11492           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11493           # need to do runtime linking.
11494           case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11495             for ld_flag in $LDFLAGS; do
11496               case $ld_flag in
11497               *-brtl*)
11498                 aix_use_runtimelinking=yes
11499                 break
11500                 ;;
11501               esac
11502             done
11503             ;;
11504           esac
11505
11506           exp_sym_flag='-bexport'
11507           no_entry_flag='-bnoentry'
11508         fi
11509
11510         # When large executables or shared objects are built, AIX ld can
11511         # have problems creating the table of contents.  If linking a library
11512         # or program results in "error TOC overflow" add -mminimal-toc to
11513         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11514         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11515
11516         archive_cmds_CXX=''
11517         hardcode_direct_CXX=yes
11518         hardcode_direct_absolute_CXX=yes
11519         hardcode_libdir_separator_CXX=':'
11520         link_all_deplibs_CXX=yes
11521         file_list_spec_CXX='${wl}-f,'
11522
11523         if test "$GXX" = yes; then
11524           case $host_os in aix4.[012]|aix4.[012].*)
11525           # We only want to do this on AIX 4.2 and lower, the check
11526           # below for broken collect2 doesn't work under 4.3+
11527           collect2name=`${CC} -print-prog-name=collect2`
11528           if test -f "$collect2name" &&
11529              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11530           then
11531             # We have reworked collect2
11532             :
11533           else
11534             # We have old collect2
11535             hardcode_direct_CXX=unsupported
11536             # It fails to find uninstalled libraries when the uninstalled
11537             # path is not listed in the libpath.  Setting hardcode_minus_L
11538             # to unsupported forces relinking
11539             hardcode_minus_L_CXX=yes
11540             hardcode_libdir_flag_spec_CXX='-L$libdir'
11541             hardcode_libdir_separator_CXX=
11542           fi
11543           esac
11544           shared_flag='-shared'
11545           if test "$aix_use_runtimelinking" = yes; then
11546             shared_flag="$shared_flag "'${wl}-G'
11547           fi
11548         else
11549           # not using gcc
11550           if test "$host_cpu" = ia64; then
11551           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11552           # chokes on -Wl,-G. The following line is correct:
11553           shared_flag='-G'
11554           else
11555             if test "$aix_use_runtimelinking" = yes; then
11556               shared_flag='${wl}-G'
11557             else
11558               shared_flag='${wl}-bM:SRE'
11559             fi
11560           fi
11561         fi
11562
11563         # It seems that -bexpall does not export symbols beginning with
11564         # underscore (_), so it is better to generate a list of symbols to
11565         # export.
11566         always_export_symbols_CXX=yes
11567         if test "$aix_use_runtimelinking" = yes; then
11568           # Warning - without using the other runtime loading flags (-brtl),
11569           # -berok will link without error, but may produce a broken library.
11570           allow_undefined_flag_CXX='-berok'
11571           # Determine the default libpath from the value encoded in an empty
11572           # executable.
11573           if test x$gcc_no_link = xyes; then
11574   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11576    { (exit 1); exit 1; }; }
11577 fi
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h.  */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h.  */
11584
11585 int
11586 main ()
11587 {
11588
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595   (eval $ac_link) 2>conftest.er1
11596   ac_status=$?
11597   grep -v '^ *+' conftest.er1 >conftest.err
11598   rm -f conftest.er1
11599   cat conftest.err >&5
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } &&
11602          { ac_try='test -z "$ac_cxx_werror_flag"
11603                          || test ! -s conftest.err'
11604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605   (eval $ac_try) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; } &&
11609          { ac_try='test -s conftest$ac_exeext'
11610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611   (eval $ac_try) 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); }; }; then
11615
11616 lt_aix_libpath_sed='
11617     /Import File Strings/,/^$/ {
11618         /^0/ {
11619             s/^0  *\(.*\)$/\1/
11620             p
11621         }
11622     }'
11623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11624 # Check for a 64-bit object if we didn't find anything.
11625 if test -z "$aix_libpath"; then
11626   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11627 fi
11628 else
11629   echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 fi
11633 rm -f conftest.err conftest.$ac_objext \
11634       conftest$ac_exeext conftest.$ac_ext
11635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11636
11637           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11638
11639           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11640         else
11641           if test "$host_cpu" = ia64; then
11642             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11643             allow_undefined_flag_CXX="-z nodefs"
11644             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11645           else
11646             # Determine the default libpath from the value encoded in an
11647             # empty executable.
11648             if test x$gcc_no_link = xyes; then
11649   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11651    { (exit 1); exit 1; }; }
11652 fi
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659
11660 int
11661 main ()
11662 {
11663
11664   ;
11665   return 0;
11666 }
11667 _ACEOF
11668 rm -f conftest.$ac_objext conftest$ac_exeext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670   (eval $ac_link) 2>conftest.er1
11671   ac_status=$?
11672   grep -v '^ *+' conftest.er1 >conftest.err
11673   rm -f conftest.er1
11674   cat conftest.err >&5
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -z "$ac_cxx_werror_flag"
11678                          || test ! -s conftest.err'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; } &&
11684          { ac_try='test -s conftest$ac_exeext'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; }; then
11690
11691 lt_aix_libpath_sed='
11692     /Import File Strings/,/^$/ {
11693         /^0/ {
11694             s/^0  *\(.*\)$/\1/
11695             p
11696         }
11697     }'
11698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11699 # Check for a 64-bit object if we didn't find anything.
11700 if test -z "$aix_libpath"; then
11701   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11702 fi
11703 else
11704   echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11706
11707 fi
11708 rm -f conftest.err conftest.$ac_objext \
11709       conftest$ac_exeext conftest.$ac_ext
11710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11711
11712             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11713             # Warning - without using the other run time loading flags,
11714             # -berok will link without error, but may produce a broken library.
11715             no_undefined_flag_CXX=' ${wl}-bernotok'
11716             allow_undefined_flag_CXX=' ${wl}-berok'
11717             # Exported symbols can be pulled into shared objects from archives
11718             whole_archive_flag_spec_CXX='$convenience'
11719             archive_cmds_need_lc_CXX=yes
11720             # This is similar to how AIX traditionally builds its shared
11721             # libraries.
11722             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11723           fi
11724         fi
11725         ;;
11726
11727       beos*)
11728         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11729           allow_undefined_flag_CXX=unsupported
11730           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11731           # support --undefined.  This deserves some investigation.  FIXME
11732           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11733         else
11734           ld_shlibs_CXX=no
11735         fi
11736         ;;
11737
11738       chorus*)
11739         case $cc_basename in
11740           *)
11741           # FIXME: insert proper C++ library support
11742           ld_shlibs_CXX=no
11743           ;;
11744         esac
11745         ;;
11746
11747       cygwin* | mingw* | pw32*)
11748         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11749         # as there is no search path for DLLs.
11750         hardcode_libdir_flag_spec_CXX='-L$libdir'
11751         allow_undefined_flag_CXX=unsupported
11752         always_export_symbols_CXX=no
11753         enable_shared_with_static_runtimes_CXX=yes
11754
11755         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11756           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11757           # If the export-symbols file already is a .def file (1st line
11758           # is EXPORTS), use it as is; otherwise, prepend...
11759           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11760             cp $export_symbols $output_objdir/$soname.def;
11761           else
11762             echo EXPORTS > $output_objdir/$soname.def;
11763             cat $export_symbols >> $output_objdir/$soname.def;
11764           fi~
11765           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11766         else
11767           ld_shlibs_CXX=no
11768         fi
11769         ;;
11770       darwin* | rhapsody*)
11771         case $host_os in
11772           rhapsody* | darwin1.[012])
11773             allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11774             ;;
11775           *) # Darwin 1.3 on
11776             case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11777               10.[012])
11778                 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11779                 ;;
11780               10.*)
11781                 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11782                 ;;
11783             esac
11784             ;;
11785         esac
11786         archive_cmds_need_lc_CXX=no
11787         hardcode_direct_CXX=no
11788         hardcode_automatic_CXX=yes
11789         hardcode_shlibpath_var_CXX=unsupported
11790         whole_archive_flag_spec_CXX=''
11791         link_all_deplibs_CXX=yes
11792
11793         if test "$GXX" = yes ; then
11794           if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   lt_cv_apple_cc_single_mod=no
11798           if test -z "${LT_MULTI_MODULE}"; then
11799             # By default we will add the -single_module flag. You can override
11800             # by either setting the environment variable LT_MULTI_MODULE
11801             # non-empty at configure time, or by adding -multi-module to the
11802             # link flags.
11803             echo "int foo(void){return 1;}" > conftest.c
11804             $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11805                 -dynamiclib ${wl}-single_module conftest.c
11806             if test -f libconftest.dylib; then
11807                 lt_cv_apple_cc_single_mod=yes
11808                 rm libconftest.dylib
11809             fi
11810             rm conftest.$ac_ext
11811           fi
11812 fi
11813
11814           output_verbose_link_cmd=echo
11815           if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11816            archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11817             archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11818           else
11819             archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11820             archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11821           fi
11822           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11823           module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11824         else
11825           case $cc_basename in
11826             xlc*)
11827               output_verbose_link_cmd=echo
11828               archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
11829               module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11830               # Don't fix this by using the ld -exported_symbols_list flag,
11831               # it doesn't exist in older darwin lds
11832               archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11833               module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11834               ;;
11835             *)
11836               ld_shlibs_CXX=no
11837               ;;
11838           esac
11839         fi
11840         ;;
11841
11842       dgux*)
11843         case $cc_basename in
11844           ec++*)
11845             # FIXME: insert proper C++ library support
11846             ld_shlibs_CXX=no
11847             ;;
11848           ghcx*)
11849             # Green Hills C++ Compiler
11850             # FIXME: insert proper C++ library support
11851             ld_shlibs_CXX=no
11852             ;;
11853           *)
11854             # FIXME: insert proper C++ library support
11855             ld_shlibs_CXX=no
11856             ;;
11857         esac
11858         ;;
11859
11860       freebsd[12]*)
11861         # C++ shared libraries reported to be fairly broken before
11862         # switch to ELF
11863         ld_shlibs_CXX=no
11864         ;;
11865
11866       freebsd-elf*)
11867         archive_cmds_need_lc_CXX=no
11868         ;;
11869
11870       freebsd* | dragonfly*)
11871         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11872         # conventions
11873         ld_shlibs_CXX=yes
11874         ;;
11875
11876       gnu*)
11877         ;;
11878
11879       hpux9*)
11880         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11881         hardcode_libdir_separator_CXX=:
11882         export_dynamic_flag_spec_CXX='${wl}-E'
11883         hardcode_direct_CXX=yes
11884         hardcode_minus_L_CXX=yes # Not in the search PATH,
11885                                              # but as the default
11886                                              # location of the library.
11887
11888         case $cc_basename in
11889           CC*)
11890             # FIXME: insert proper C++ library support
11891             ld_shlibs_CXX=no
11892             ;;
11893           aCC*)
11894             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11895             # Commands to make compiler produce verbose output that lists
11896             # what "hidden" libraries, object files and flags are used when
11897             # linking a shared library.
11898             #
11899             # There doesn't appear to be a way to prevent this compiler from
11900             # explicitly linking system object files so we need to strip them
11901             # from the output so that they don't get included in the library
11902             # dependencies.
11903             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11904             ;;
11905           *)
11906             if test "$GXX" = yes; then
11907               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11908             else
11909               # FIXME: insert proper C++ library support
11910               ld_shlibs_CXX=no
11911             fi
11912             ;;
11913         esac
11914         ;;
11915
11916       hpux10*|hpux11*)
11917         if test $with_gnu_ld = no; then
11918           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11919           hardcode_libdir_separator_CXX=:
11920
11921           case $host_cpu in
11922             hppa*64*|ia64*)
11923               ;;
11924             *)
11925               export_dynamic_flag_spec_CXX='${wl}-E'
11926               ;;
11927           esac
11928         fi
11929         case $host_cpu in
11930           hppa*64*|ia64*)
11931             hardcode_direct_CXX=no
11932             hardcode_shlibpath_var_CXX=no
11933             ;;
11934           *)
11935             hardcode_direct_CXX=yes
11936             hardcode_direct_absolute_CXX=yes
11937             hardcode_minus_L_CXX=yes # Not in the search PATH,
11938                                                  # but as the default
11939                                                  # location of the library.
11940             ;;
11941         esac
11942
11943         case $cc_basename in
11944           CC*)
11945             # FIXME: insert proper C++ library support
11946             ld_shlibs_CXX=no
11947             ;;
11948           aCC*)
11949             case $host_cpu in
11950               hppa*64*)
11951                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11952                 ;;
11953               ia64*)
11954                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11955                 ;;
11956               *)
11957                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958                 ;;
11959             esac
11960             # Commands to make compiler produce verbose output that lists
11961             # what "hidden" libraries, object files and flags are used when
11962             # linking a shared library.
11963             #
11964             # There doesn't appear to be a way to prevent this compiler from
11965             # explicitly linking system object files so we need to strip them
11966             # from the output so that they don't get included in the library
11967             # dependencies.
11968             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11969             ;;
11970           *)
11971             if test "$GXX" = yes; then
11972               if test $with_gnu_ld = no; then
11973                 case $host_cpu in
11974                   hppa*64*)
11975                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11976                     ;;
11977                   ia64*)
11978                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11979                     ;;
11980                   *)
11981                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11982                     ;;
11983                 esac
11984               fi
11985             else
11986               # FIXME: insert proper C++ library support
11987               ld_shlibs_CXX=no
11988             fi
11989             ;;
11990         esac
11991         ;;
11992
11993       interix[3-9]*)
11994         hardcode_direct_CXX=no
11995         hardcode_shlibpath_var_CXX=no
11996         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11997         export_dynamic_flag_spec_CXX='${wl}-E'
11998         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11999         # Instead, shared libraries are loaded at an image base (0x10000000 by
12000         # default) and relocated if they conflict, which is a slow very memory
12001         # consuming and fragmenting process.  To avoid this, we pick a random,
12002         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12003         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12004         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12005         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12006         ;;
12007       irix5* | irix6*)
12008         case $cc_basename in
12009           CC*)
12010             # SGI C++
12011             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12012
12013             # Archives containing C++ object files must be created using
12014             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12015             # necessary to make sure instantiated templates are included
12016             # in the archive.
12017             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12018             ;;
12019           *)
12020             if test "$GXX" = yes; then
12021               if test "$with_gnu_ld" = no; then
12022                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12023               else
12024                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12025               fi
12026             fi
12027             link_all_deplibs_CXX=yes
12028             ;;
12029         esac
12030         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031         hardcode_libdir_separator_CXX=:
12032         inherit_rpath_CXX=yes
12033         ;;
12034
12035       linux* | k*bsd*-gnu)
12036         case $cc_basename in
12037           KCC*)
12038             # Kuck and Associates, Inc. (KAI) C++ Compiler
12039
12040             # KCC will only create a shared library if the output file
12041             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12042             # to its proper name (with version) after linking.
12043             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12044             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12045             # Commands to make compiler produce verbose output that lists
12046             # what "hidden" libraries, object files and flags are used when
12047             # linking a shared library.
12048             #
12049             # There doesn't appear to be a way to prevent this compiler from
12050             # explicitly linking system object files so we need to strip them
12051             # from the output so that they don't get included in the library
12052             # dependencies.
12053             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12054
12055             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12057
12058             # Archives containing C++ object files must be created using
12059             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12060             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12061             ;;
12062           icpc* | ecpc* )
12063             # Intel C++
12064             with_gnu_ld=yes
12065             # version 8.0 and above of icpc choke on multiply defined symbols
12066             # if we add $predep_objects and $postdep_objects, however 7.1 and
12067             # earlier do not add the objects themselves.
12068             case `$CC -V 2>&1` in
12069               *"Version 7."*)
12070                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12072                 ;;
12073               *)  # Version 8.0 or newer
12074                 tmp_idyn=
12075                 case $host_cpu in
12076                   ia64*) tmp_idyn=' -i_dynamic';;
12077                 esac
12078                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12080                 ;;
12081             esac
12082             archive_cmds_need_lc_CXX=no
12083             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12084             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12085             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12086             ;;
12087           pgCC*)
12088             # Portland Group C++ compiler
12089             case `$CC -V` in
12090             *pgCC\ [1-5]*)
12091               prelink_cmds_CXX='tpldir=Template.dir~
12092                 rm -rf $tpldir~
12093                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12094                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12095               old_archive_cmds_CXX='tpldir=Template.dir~
12096                 rm -rf $tpldir~
12097                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12098                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12099                 $RANLIB $oldlib'
12100               archive_cmds_CXX='tpldir=Template.dir~
12101                 rm -rf $tpldir~
12102                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12103                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12104               archive_expsym_cmds_CXX='tpldir=Template.dir~
12105                 rm -rf $tpldir~
12106                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12107                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12108               ;;
12109             *) # Version 6 will use weak symbols
12110               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12111               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12112               ;;
12113             esac
12114
12115             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12116             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12117             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12118             ;;
12119           cxx*)
12120             # Compaq C++
12121             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12122             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12123
12124             runpath_var=LD_RUN_PATH
12125             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12126             hardcode_libdir_separator_CXX=:
12127
12128             # Commands to make compiler produce verbose output that lists
12129             # what "hidden" libraries, object files and flags are used when
12130             # linking a shared library.
12131             #
12132             # There doesn't appear to be a way to prevent this compiler from
12133             # explicitly linking system object files so we need to strip them
12134             # from the output so that they don't get included in the library
12135             # dependencies.
12136             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12137             ;;
12138           *)
12139             case `$CC -V 2>&1 | sed 5q` in
12140             *Sun\ C*)
12141               # Sun C++ 5.9
12142               no_undefined_flag_CXX=' -zdefs'
12143               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12144               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12145               hardcode_libdir_flag_spec_CXX='-R$libdir'
12146               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12147               compiler_needs_object_CXX=yes
12148
12149               # Not sure whether something based on
12150               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12151               # would be better.
12152               output_verbose_link_cmd='echo'
12153
12154               # Archives containing C++ object files must be created using
12155               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12156               # necessary to make sure instantiated templates are included
12157               # in the archive.
12158               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12159               ;;
12160             esac
12161             ;;
12162         esac
12163         ;;
12164
12165       lynxos*)
12166         # FIXME: insert proper C++ library support
12167         ld_shlibs_CXX=no
12168         ;;
12169
12170       m88k*)
12171         # FIXME: insert proper C++ library support
12172         ld_shlibs_CXX=no
12173         ;;
12174
12175       mvs*)
12176         case $cc_basename in
12177           cxx*)
12178             # FIXME: insert proper C++ library support
12179             ld_shlibs_CXX=no
12180             ;;
12181           *)
12182             # FIXME: insert proper C++ library support
12183             ld_shlibs_CXX=no
12184             ;;
12185         esac
12186         ;;
12187
12188       netbsd*)
12189         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12190           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12191           wlarc=
12192           hardcode_libdir_flag_spec_CXX='-R$libdir'
12193           hardcode_direct_CXX=yes
12194           hardcode_shlibpath_var_CXX=no
12195         fi
12196         # Workaround some broken pre-1.5 toolchains
12197         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12198         ;;
12199
12200       *nto* | *qnx*)
12201         ld_shlibs_CXX=yes
12202         ;;
12203
12204       openbsd2*)
12205         # C++ shared libraries are fairly broken
12206         ld_shlibs_CXX=no
12207         ;;
12208
12209       openbsd*)
12210         hardcode_direct_CXX=yes
12211         hardcode_shlibpath_var_CXX=no
12212         hardcode_direct_absolute_CXX=yes
12213         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12214         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12215         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12216           archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12217           export_dynamic_flag_spec_CXX='${wl}-E'
12218           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12219         fi
12220         output_verbose_link_cmd=echo
12221         ;;
12222
12223       osf3* | osf4* | osf5*)
12224         case $cc_basename in
12225           KCC*)
12226             # Kuck and Associates, Inc. (KAI) C++ Compiler
12227
12228             # KCC will only create a shared library if the output file
12229             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12230             # to its proper name (with version) after linking.
12231             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12232
12233             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12234             hardcode_libdir_separator_CXX=:
12235
12236             # Archives containing C++ object files must be created using
12237             # the KAI C++ compiler.
12238             case $host in
12239               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12240               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12241             esac
12242             ;;
12243           RCC*)
12244             # Rational C++ 2.4.1
12245             # FIXME: insert proper C++ library support
12246             ld_shlibs_CXX=no
12247             ;;
12248           cxx*)
12249             case $host in
12250               osf3*)
12251                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12252                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12253                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12254                 ;;
12255               *)
12256                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12257                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12258                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12259                   echo "-hidden">> $lib.exp~
12260                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12261                   $RM $lib.exp'
12262                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12263                 ;;
12264             esac
12265
12266             hardcode_libdir_separator_CXX=:
12267
12268             # Commands to make compiler produce verbose output that lists
12269             # what "hidden" libraries, object files and flags are used when
12270             # linking a shared library.
12271             #
12272             # There doesn't appear to be a way to prevent this compiler from
12273             # explicitly linking system object files so we need to strip them
12274             # from the output so that they don't get included in the library
12275             # dependencies.
12276             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12277             ;;
12278           *)
12279             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12280               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12281               case $host in
12282                 osf3*)
12283                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12284                   ;;
12285                 *)
12286                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12287                   ;;
12288               esac
12289
12290               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12291               hardcode_libdir_separator_CXX=:
12292
12293               # Commands to make compiler produce verbose output that lists
12294               # what "hidden" libraries, object files and flags are used when
12295               # linking a shared library.
12296               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12297
12298             else
12299               # FIXME: insert proper C++ library support
12300               ld_shlibs_CXX=no
12301             fi
12302             ;;
12303         esac
12304         ;;
12305
12306       psos*)
12307         # FIXME: insert proper C++ library support
12308         ld_shlibs_CXX=no
12309         ;;
12310
12311       sunos4*)
12312         case $cc_basename in
12313           CC*)
12314             # Sun C++ 4.x
12315             # FIXME: insert proper C++ library support
12316             ld_shlibs_CXX=no
12317             ;;
12318           lcc*)
12319             # Lucid
12320             # FIXME: insert proper C++ library support
12321             ld_shlibs_CXX=no
12322             ;;
12323           *)
12324             # FIXME: insert proper C++ library support
12325             ld_shlibs_CXX=no
12326             ;;
12327         esac
12328         ;;
12329
12330       solaris*)
12331         case $cc_basename in
12332           CC*)
12333             # Sun C++ 4.2, 5.x and Centerline C++
12334             archive_cmds_need_lc_CXX=yes
12335             no_undefined_flag_CXX=' -zdefs'
12336             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12337             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12338               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12339
12340             hardcode_libdir_flag_spec_CXX='-R$libdir'
12341             hardcode_shlibpath_var_CXX=no
12342             case $host_os in
12343               solaris2.[0-5] | solaris2.[0-5].*) ;;
12344               *)
12345                 # The compiler driver will combine and reorder linker options,
12346                 # but understands `-z linker_flag'.
12347                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12348                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12349                 ;;
12350             esac
12351             link_all_deplibs_CXX=yes
12352
12353             output_verbose_link_cmd='echo'
12354
12355             # Archives containing C++ object files must be created using
12356             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12357             # necessary to make sure instantiated templates are included
12358             # in the archive.
12359             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12360             ;;
12361           gcx*)
12362             # Green Hills C++ Compiler
12363             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12364
12365             # The C++ compiler must be used to create the archive.
12366             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12367             ;;
12368           *)
12369             # GNU C++ compiler with Solaris linker
12370             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12371               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12372               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12373                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12374                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12375                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12376
12377                 # Commands to make compiler produce verbose output that lists
12378                 # what "hidden" libraries, object files and flags are used when
12379                 # linking a shared library.
12380                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12381               else
12382                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12383                 # platform.
12384                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12385                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12386                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12387
12388                 # Commands to make compiler produce verbose output that lists
12389                 # what "hidden" libraries, object files and flags are used when
12390                 # linking a shared library.
12391                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12392               fi
12393
12394               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12395               case $host_os in
12396                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12397                 *)
12398                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12399                   ;;
12400               esac
12401             fi
12402             ;;
12403         esac
12404         ;;
12405
12406     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12407       no_undefined_flag_CXX='${wl}-z,text'
12408       archive_cmds_need_lc_CXX=no
12409       hardcode_shlibpath_var_CXX=no
12410       runpath_var='LD_RUN_PATH'
12411
12412       case $cc_basename in
12413         CC*)
12414           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12415           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12416           ;;
12417         *)
12418           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12419           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12420           ;;
12421       esac
12422       ;;
12423
12424       sysv5* | sco3.2v5* | sco5v6*)
12425         # Note: We can NOT use -z defs as we might desire, because we do not
12426         # link with -lc, and that would cause any symbols used from libc to
12427         # always be unresolved, which means just about no library would
12428         # ever link correctly.  If we're not using GNU ld we use -z text
12429         # though, which does catch some bad symbols but isn't as heavy-handed
12430         # as -z defs.
12431         no_undefined_flag_CXX='${wl}-z,text'
12432         allow_undefined_flag_CXX='${wl}-z,nodefs'
12433         archive_cmds_need_lc_CXX=no
12434         hardcode_shlibpath_var_CXX=no
12435         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12436         hardcode_libdir_separator_CXX=':'
12437         link_all_deplibs_CXX=yes
12438         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12439         runpath_var='LD_RUN_PATH'
12440
12441         case $cc_basename in
12442           CC*)
12443             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12444             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12445             ;;
12446           *)
12447             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12448             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12449             ;;
12450         esac
12451       ;;
12452
12453       tandem*)
12454         case $cc_basename in
12455           NCC*)
12456             # NonStop-UX NCC 3.20
12457             # FIXME: insert proper C++ library support
12458             ld_shlibs_CXX=no
12459             ;;
12460           *)
12461             # FIXME: insert proper C++ library support
12462             ld_shlibs_CXX=no
12463             ;;
12464         esac
12465         ;;
12466
12467       vxworks*)
12468         # FIXME: insert proper C++ library support
12469         ld_shlibs_CXX=no
12470         ;;
12471
12472       *)
12473         # FIXME: insert proper C++ library support
12474         ld_shlibs_CXX=no
12475         ;;
12476     esac
12477
12478     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12479 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12480     test "$ld_shlibs_CXX" = no && can_build_shared=no
12481
12482     GCC_CXX="$GXX"
12483     LD_CXX="$LD"
12484
12485     ## CAVEAT EMPTOR:
12486     ## There is no encapsulation within the following macros, do not change
12487     ## the running order or otherwise move them around unless you know exactly
12488     ## what you are doing...
12489     # Dependencies to place before and after the object being linked:
12490 predep_objects_CXX=
12491 postdep_objects_CXX=
12492 predeps_CXX=
12493 postdeps_CXX=
12494 compiler_lib_search_path_CXX=
12495
12496 cat > conftest.$ac_ext <<_LT_EOF
12497 class Foo
12498 {
12499 public:
12500   Foo (void) { a = 0; }
12501 private:
12502   int a;
12503 };
12504 _LT_EOF
12505
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507   (eval $ac_compile) 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); }; then
12511   # Parse the compiler output and extract the necessary
12512   # objects, libraries and library flags.
12513
12514   # Sentinel used to keep track of whether or not we are before
12515   # the conftest object file.
12516   pre_test_object_deps_done=no
12517
12518   # The `*' in the case matches for architectures that use `case' in
12519   # $output_verbose_cmd can trigger glob expansion during the loop
12520   # eval without this substitution.
12521   output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12522
12523   for p in `eval $output_verbose_link_cmd`; do
12524     case $p in
12525
12526     -L* | -R* | -l*)
12527        # Some compilers place space between "-{L,R}" and the path.
12528        # Remove the space.
12529        if test $p = "-L" ||
12530           test $p = "-R"; then
12531          prev=$p
12532          continue
12533        else
12534          prev=
12535        fi
12536
12537        if test "$pre_test_object_deps_done" = no; then
12538          case $p in
12539          -L* | -R*)
12540            # Internal compiler library paths should come after those
12541            # provided the user.  The postdeps already come after the
12542            # user supplied libs so there is no need to process them.
12543            if test -z "$compiler_lib_search_path_CXX"; then
12544              compiler_lib_search_path_CXX="${prev}${p}"
12545            else
12546              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12547            fi
12548            ;;
12549          # The "-l" case would never come before the object being
12550          # linked, so don't bother handling this case.
12551          esac
12552        else
12553          if test -z "$postdeps_CXX"; then
12554            postdeps_CXX="${prev}${p}"
12555          else
12556            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12557          fi
12558        fi
12559        ;;
12560
12561     *.$objext)
12562        # This assumes that the test object file only shows up
12563        # once in the compiler output.
12564        if test "$p" = "conftest.$objext"; then
12565          pre_test_object_deps_done=yes
12566          continue
12567        fi
12568
12569        if test "$pre_test_object_deps_done" = no; then
12570          if test -z "$predep_objects_CXX"; then
12571            predep_objects_CXX="$p"
12572          else
12573            predep_objects_CXX="$predep_objects_CXX $p"
12574          fi
12575        else
12576          if test -z "$postdep_objects_CXX"; then
12577            postdep_objects_CXX="$p"
12578          else
12579            postdep_objects_CXX="$postdep_objects_CXX $p"
12580          fi
12581        fi
12582        ;;
12583
12584     *) ;; # Ignore the rest.
12585
12586     esac
12587   done
12588
12589   # Clean up.
12590   rm -f a.out a.exe
12591 else
12592   echo "libtool.m4: error: problem compiling CXX test program"
12593 fi
12594
12595 $RM -f confest.$objext
12596
12597 # PORTME: override above test on systems where it is broken
12598 case $host_os in
12599 interix[3-9]*)
12600   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12601   # hack all around it, let's just trust "g++" to DTRT.
12602   predep_objects_CXX=
12603   postdep_objects_CXX=
12604   postdeps_CXX=
12605   ;;
12606
12607 linux*)
12608   case `$CC -V 2>&1 | sed 5q` in
12609   *Sun\ C*)
12610     # Sun C++ 5.9
12611
12612     # The more standards-conforming stlport4 library is
12613     # incompatible with the Cstd library. Avoid specifying
12614     # it if it's in CXXFLAGS. Ignore libCrun as
12615     # -library=stlport4 depends on it.
12616     case " $CXX $CXXFLAGS " in
12617     *" -library=stlport4 "*)
12618       solaris_use_stlport4=yes
12619       ;;
12620     esac
12621
12622     if test "$solaris_use_stlport4" != yes; then
12623       postdeps_CXX='-library=Cstd -library=Crun'
12624     fi
12625     ;;
12626   esac
12627   ;;
12628
12629 solaris*)
12630   case $cc_basename in
12631   CC*)
12632     # The more standards-conforming stlport4 library is
12633     # incompatible with the Cstd library. Avoid specifying
12634     # it if it's in CXXFLAGS. Ignore libCrun as
12635     # -library=stlport4 depends on it.
12636     case " $CXX $CXXFLAGS " in
12637     *" -library=stlport4 "*)
12638       solaris_use_stlport4=yes
12639       ;;
12640     esac
12641
12642     # Adding this requires a known-good setup of shared libraries for
12643     # Sun compiler versions before 5.6, else PIC objects from an old
12644     # archive will be linked into the output, leading to subtle bugs.
12645     if test "$solaris_use_stlport4" != yes; then
12646       postdeps_CXX='-library=Cstd -library=Crun'
12647     fi
12648     ;;
12649   esac
12650   ;;
12651 esac
12652
12653
12654 case " $postdeps_CXX " in
12655 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12656 esac
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683     lt_prog_compiler_wl_CXX=
12684 lt_prog_compiler_pic_CXX=
12685 lt_prog_compiler_static_CXX=
12686
12687 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12689
12690   # C++ specific cases for pic, static, wl, etc.
12691   if test "$GXX" = yes; then
12692     lt_prog_compiler_wl_CXX='-Wl,'
12693     lt_prog_compiler_static_CXX='-static'
12694
12695     case $host_os in
12696     aix*)
12697       # All AIX code is PIC.
12698       if test "$host_cpu" = ia64; then
12699         # AIX 5 now supports IA64 processor
12700         lt_prog_compiler_static_CXX='-Bstatic'
12701       fi
12702       ;;
12703     amigaos*)
12704       if test "$host_cpu" = m68k; then
12705         # FIXME: we need at least 68020 code to build shared libraries, but
12706         # adding the `-m68020' flag to GCC prevents building anything better,
12707         # like `-m68040'.
12708         lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12709       fi
12710       ;;
12711     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12712       # PIC is the default for these OSes.
12713       ;;
12714     mingw* | cygwin* | os2* | pw32*)
12715       # This hack is so that the source file can tell whether it is being
12716       # built for inclusion in a dll (and should export symbols for example).
12717       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12718       # (--disable-auto-import) libraries
12719       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12720       ;;
12721     darwin* | rhapsody*)
12722       # PIC is the default on this platform
12723       # Common symbols not allowed in MH_DYLIB files
12724       lt_prog_compiler_pic_CXX='-fno-common'
12725       ;;
12726     *djgpp*)
12727       # DJGPP does not support shared libraries at all
12728       lt_prog_compiler_pic_CXX=
12729       ;;
12730     interix[3-9]*)
12731       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12732       # Instead, we relocate shared libraries at runtime.
12733       ;;
12734     sysv4*MP*)
12735       if test -d /usr/nec; then
12736         lt_prog_compiler_pic_CXX=-Kconform_pic
12737       fi
12738       ;;
12739     hpux*)
12740       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12741       # not for PA HP-UX.
12742       case $host_cpu in
12743       hppa*64*|ia64*)
12744         ;;
12745       *)
12746         lt_prog_compiler_pic_CXX='-fPIC'
12747         ;;
12748       esac
12749       ;;
12750     *qnx* | *nto*)
12751       # QNX uses GNU C++, but need to define -shared option too, otherwise
12752       # it will coredump.
12753       lt_prog_compiler_pic_CXX='-fPIC -shared'
12754       ;;
12755     *)
12756       lt_prog_compiler_pic_CXX='-fPIC'
12757       ;;
12758     esac
12759   else
12760     case $host_os in
12761       aix4* | aix5*)
12762         # All AIX code is PIC.
12763         if test "$host_cpu" = ia64; then
12764           # AIX 5 now supports IA64 processor
12765           lt_prog_compiler_static_CXX='-Bstatic'
12766         else
12767           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12768         fi
12769         ;;
12770       chorus*)
12771         case $cc_basename in
12772         cxch68*)
12773           # Green Hills C++ Compiler
12774           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12775           ;;
12776         esac
12777         ;;
12778       darwin*)
12779         # PIC is the default on this platform
12780         # Common symbols not allowed in MH_DYLIB files
12781         case $cc_basename in
12782           xlc*)
12783           lt_prog_compiler_pic_CXX='-qnocommon'
12784           lt_prog_compiler_wl_CXX='-Wl,'
12785           ;;
12786         esac
12787         ;;
12788       dgux*)
12789         case $cc_basename in
12790           ec++*)
12791             lt_prog_compiler_pic_CXX='-KPIC'
12792             ;;
12793           ghcx*)
12794             # Green Hills C++ Compiler
12795             lt_prog_compiler_pic_CXX='-pic'
12796             ;;
12797           *)
12798             ;;
12799         esac
12800         ;;
12801       freebsd* | dragonfly*)
12802         # FreeBSD uses GNU C++
12803         ;;
12804       hpux9* | hpux10* | hpux11*)
12805         case $cc_basename in
12806           CC*)
12807             lt_prog_compiler_wl_CXX='-Wl,'
12808             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12809             if test "$host_cpu" != ia64; then
12810               lt_prog_compiler_pic_CXX='+Z'
12811             fi
12812             ;;
12813           aCC*)
12814             lt_prog_compiler_wl_CXX='-Wl,'
12815             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12816             case $host_cpu in
12817             hppa*64*|ia64*)
12818               # +Z the default
12819               ;;
12820             *)
12821               lt_prog_compiler_pic_CXX='+Z'
12822               ;;
12823             esac
12824             ;;
12825           *)
12826             ;;
12827         esac
12828         ;;
12829       interix*)
12830         # This is c89, which is MS Visual C++ (no shared libs)
12831         # Anyone wants to do a port?
12832         ;;
12833       irix5* | irix6* | nonstopux*)
12834         case $cc_basename in
12835           CC*)
12836             lt_prog_compiler_wl_CXX='-Wl,'
12837             lt_prog_compiler_static_CXX='-non_shared'
12838             # CC pic flag -KPIC is the default.
12839             ;;
12840           *)
12841             ;;
12842         esac
12843         ;;
12844       linux* | k*bsd*-gnu)
12845         case $cc_basename in
12846           KCC*)
12847             # KAI C++ Compiler
12848             lt_prog_compiler_wl_CXX='--backend -Wl,'
12849             lt_prog_compiler_pic_CXX='-fPIC'
12850             ;;
12851           icpc* | ecpc* )
12852             # Intel C++
12853             lt_prog_compiler_wl_CXX='-Wl,'
12854             lt_prog_compiler_pic_CXX='-KPIC'
12855             lt_prog_compiler_static_CXX='-static'
12856             ;;
12857           pgCC*)
12858             # Portland Group C++ compiler
12859             lt_prog_compiler_wl_CXX='-Wl,'
12860             lt_prog_compiler_pic_CXX='-fpic'
12861             lt_prog_compiler_static_CXX='-Bstatic'
12862             ;;
12863           cxx*)
12864             # Compaq C++
12865             # Make sure the PIC flag is empty.  It appears that all Alpha
12866             # Linux and Compaq Tru64 Unix objects are PIC.
12867             lt_prog_compiler_pic_CXX=
12868             lt_prog_compiler_static_CXX='-non_shared'
12869             ;;
12870           *)
12871             case `$CC -V 2>&1 | sed 5q` in
12872             *Sun\ C*)
12873               # Sun C++ 5.9
12874               lt_prog_compiler_pic_CXX='-KPIC'
12875               lt_prog_compiler_static_CXX='-Bstatic'
12876               lt_prog_compiler_wl_CXX='-Qoption ld '
12877               ;;
12878             esac
12879             ;;
12880         esac
12881         ;;
12882       lynxos*)
12883         ;;
12884       m88k*)
12885         ;;
12886       mvs*)
12887         case $cc_basename in
12888           cxx*)
12889             lt_prog_compiler_pic_CXX='-W c,exportall'
12890             ;;
12891           *)
12892             ;;
12893         esac
12894         ;;
12895       netbsd*)
12896         ;;
12897       *qnx* | *nto*)
12898         # QNX uses GNU C++, but need to define -shared option too, otherwise
12899         # it will coredump.
12900         lt_prog_compiler_pic_CXX='-fPIC -shared'
12901         ;;
12902       osf3* | osf4* | osf5*)
12903         case $cc_basename in
12904           KCC*)
12905             lt_prog_compiler_wl_CXX='--backend -Wl,'
12906             ;;
12907           RCC*)
12908             # Rational C++ 2.4.1
12909             lt_prog_compiler_pic_CXX='-pic'
12910             ;;
12911           cxx*)
12912             # Digital/Compaq C++
12913             lt_prog_compiler_wl_CXX='-Wl,'
12914             # Make sure the PIC flag is empty.  It appears that all Alpha
12915             # Linux and Compaq Tru64 Unix objects are PIC.
12916             lt_prog_compiler_pic_CXX=
12917             lt_prog_compiler_static_CXX='-non_shared'
12918             ;;
12919           *)
12920             ;;
12921         esac
12922         ;;
12923       psos*)
12924         ;;
12925       solaris*)
12926         case $cc_basename in
12927           CC*)
12928             # Sun C++ 4.2, 5.x and Centerline C++
12929             lt_prog_compiler_pic_CXX='-KPIC'
12930             lt_prog_compiler_static_CXX='-Bstatic'
12931             lt_prog_compiler_wl_CXX='-Qoption ld '
12932             ;;
12933           gcx*)
12934             # Green Hills C++ Compiler
12935             lt_prog_compiler_pic_CXX='-PIC'
12936             ;;
12937           *)
12938             ;;
12939         esac
12940         ;;
12941       sunos4*)
12942         case $cc_basename in
12943           CC*)
12944             # Sun C++ 4.x
12945             lt_prog_compiler_pic_CXX='-pic'
12946             lt_prog_compiler_static_CXX='-Bstatic'
12947             ;;
12948           lcc*)
12949             # Lucid
12950             lt_prog_compiler_pic_CXX='-pic'
12951             ;;
12952           *)
12953             ;;
12954         esac
12955         ;;
12956       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12957         case $cc_basename in
12958           CC*)
12959             lt_prog_compiler_wl_CXX='-Wl,'
12960             lt_prog_compiler_pic_CXX='-KPIC'
12961             lt_prog_compiler_static_CXX='-Bstatic'
12962             ;;
12963         esac
12964         ;;
12965       tandem*)
12966         case $cc_basename in
12967           NCC*)
12968             # NonStop-UX NCC 3.20
12969             lt_prog_compiler_pic_CXX='-KPIC'
12970             ;;
12971           *)
12972             ;;
12973         esac
12974         ;;
12975       vxworks*)
12976         ;;
12977       *)
12978         lt_prog_compiler_can_build_shared_CXX=no
12979         ;;
12980     esac
12981   fi
12982
12983 case $host_os in
12984   # For platforms which do not support PIC, -DPIC is meaningless:
12985   *djgpp*)
12986     lt_prog_compiler_pic_CXX=
12987     ;;
12988   *)
12989     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12990     ;;
12991 esac
12992 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12993 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12994
12995
12996
12997 #
12998 # Check to make sure the PIC flag actually works.
12999 #
13000 if test -n "$lt_prog_compiler_pic_CXX"; then
13001   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13003 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13004   echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006   lt_prog_compiler_pic_works_CXX=no
13007    ac_outfile=conftest.$ac_objext
13008    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13009    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13010    # Insert the option either (1) after the last *FLAGS variable, or
13011    # (2) before a word containing "conftest.", or (3) at the end.
13012    # Note that $ac_compile itself does not contain backslashes and begins
13013    # with a dollar sign (not a hyphen), so the echo should work correctly.
13014    # The option is referenced via a variable to avoid confusing sed.
13015    lt_compile=`echo "$ac_compile" | $SED \
13016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13018    -e 's:$: $lt_compiler_flag:'`
13019    (eval echo "\"\$as_me:13019: $lt_compile\"" >&5)
13020    (eval "$lt_compile" 2>conftest.err)
13021    ac_status=$?
13022    cat conftest.err >&5
13023    echo "$as_me:13023: \$? = $ac_status" >&5
13024    if (exit $ac_status) && test -s "$ac_outfile"; then
13025      # The compiler can only warn and ignore the option if not recognized
13026      # So say no if there are warnings other than the usual output.
13027      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13028      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13029      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13030        lt_prog_compiler_pic_works_CXX=yes
13031      fi
13032    fi
13033    $RM conftest*
13034
13035 fi
13036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13037 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13038
13039 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13040     case $lt_prog_compiler_pic_CXX in
13041      "" | " "*) ;;
13042      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13043      esac
13044 else
13045     lt_prog_compiler_pic_CXX=
13046      lt_prog_compiler_can_build_shared_CXX=no
13047 fi
13048
13049 fi
13050
13051
13052
13053 #
13054 # Check to make sure the static flag actually works.
13055 #
13056 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13057 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13058 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13059 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13060   echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062   lt_prog_compiler_static_works_CXX=no
13063    save_LDFLAGS="$LDFLAGS"
13064    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13065    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13066    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13067      # The linker can only warn and ignore the option if not recognized
13068      # So say no if there are warnings
13069      if test -s conftest.err; then
13070        # Append any errors to the config.log.
13071        cat conftest.err 1>&5
13072        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13073        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13074        if diff conftest.exp conftest.er2 >/dev/null; then
13075          lt_prog_compiler_static_works_CXX=yes
13076        fi
13077      else
13078        lt_prog_compiler_static_works_CXX=yes
13079      fi
13080    fi
13081    $RM conftest*
13082    LDFLAGS="$save_LDFLAGS"
13083
13084 fi
13085 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13086 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13087
13088 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13089     :
13090 else
13091     lt_prog_compiler_static_CXX=
13092 fi
13093
13094
13095
13096
13097     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13098 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13099 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   lt_cv_prog_compiler_c_o_CXX=no
13103    $RM -r conftest 2>/dev/null
13104    mkdir conftest
13105    cd conftest
13106    mkdir out
13107    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13108
13109    lt_compiler_flag="-o out/conftest2.$ac_objext"
13110    # Insert the option either (1) after the last *FLAGS variable, or
13111    # (2) before a word containing "conftest.", or (3) at the end.
13112    # Note that $ac_compile itself does not contain backslashes and begins
13113    # with a dollar sign (not a hyphen), so the echo should work correctly.
13114    lt_compile=`echo "$ac_compile" | $SED \
13115    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13117    -e 's:$: $lt_compiler_flag:'`
13118    (eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
13119    (eval "$lt_compile" 2>out/conftest.err)
13120    ac_status=$?
13121    cat out/conftest.err >&5
13122    echo "$as_me:13122: \$? = $ac_status" >&5
13123    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13124    then
13125      # The compiler can only warn and ignore the option if not recognized
13126      # So say no if there are warnings
13127      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13128      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13129      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13130        lt_cv_prog_compiler_c_o_CXX=yes
13131      fi
13132    fi
13133    chmod u+w . 2>&5
13134    $RM conftest*
13135    # SGI C++ compiler will create directory out/ii_files/ for
13136    # template instantiation
13137    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13138    $RM out/* && rmdir out
13139    cd ..
13140    $RM -r conftest
13141    $RM conftest*
13142
13143 fi
13144 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13145 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13146
13147
13148
13149     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13151 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   lt_cv_prog_compiler_c_o_CXX=no
13155    $RM -r conftest 2>/dev/null
13156    mkdir conftest
13157    cd conftest
13158    mkdir out
13159    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13160
13161    lt_compiler_flag="-o out/conftest2.$ac_objext"
13162    # Insert the option either (1) after the last *FLAGS variable, or
13163    # (2) before a word containing "conftest.", or (3) at the end.
13164    # Note that $ac_compile itself does not contain backslashes and begins
13165    # with a dollar sign (not a hyphen), so the echo should work correctly.
13166    lt_compile=`echo "$ac_compile" | $SED \
13167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13169    -e 's:$: $lt_compiler_flag:'`
13170    (eval echo "\"\$as_me:13170: $lt_compile\"" >&5)
13171    (eval "$lt_compile" 2>out/conftest.err)
13172    ac_status=$?
13173    cat out/conftest.err >&5
13174    echo "$as_me:13174: \$? = $ac_status" >&5
13175    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13176    then
13177      # The compiler can only warn and ignore the option if not recognized
13178      # So say no if there are warnings
13179      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13180      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13181      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13182        lt_cv_prog_compiler_c_o_CXX=yes
13183      fi
13184    fi
13185    chmod u+w . 2>&5
13186    $RM conftest*
13187    # SGI C++ compiler will create directory out/ii_files/ for
13188    # template instantiation
13189    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13190    $RM out/* && rmdir out
13191    cd ..
13192    $RM -r conftest
13193    $RM conftest*
13194
13195 fi
13196 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13198
13199
13200
13201
13202 hard_links="nottested"
13203 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13204   # do not overwrite the value of need_locks provided by the user
13205   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13206 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13207   hard_links=yes
13208   $RM conftest*
13209   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13210   touch conftest.a
13211   ln conftest.a conftest.b 2>&5 || hard_links=no
13212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13213   echo "$as_me:$LINENO: result: $hard_links" >&5
13214 echo "${ECHO_T}$hard_links" >&6
13215   if test "$hard_links" = no; then
13216     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13217 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13218     need_locks=warn
13219   fi
13220 else
13221   need_locks=no
13222 fi
13223
13224
13225
13226     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13228
13229   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13230   case $host_os in
13231   aix4* | aix5*)
13232     # If we're using GNU nm, then we don't want the "-C" option.
13233     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13234     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13235       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13236     else
13237       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13238     fi
13239     ;;
13240   pw32*)
13241     export_symbols_cmds_CXX="$ltdll_cmds"
13242   ;;
13243   cygwin* | mingw*)
13244     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13245   ;;
13246   *)
13247     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13248   ;;
13249   esac
13250
13251 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13252 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13253 test "$ld_shlibs_CXX" = no && can_build_shared=no
13254
13255 with_gnu_ld_CXX=$with_gnu_ld
13256
13257
13258
13259
13260
13261
13262 #
13263 # Do we need to explicitly link libc?
13264 #
13265 case "x$archive_cmds_need_lc_CXX" in
13266 x|xyes)
13267   # Assume -lc should be added
13268   archive_cmds_need_lc_CXX=yes
13269
13270   if test "$enable_shared" = yes && test "$GCC" = yes; then
13271     case $archive_cmds_CXX in
13272     *'~'*)
13273       # FIXME: we may have to deal with multi-command sequences.
13274       ;;
13275     '$CC '*)
13276       # Test whether the compiler implicitly links with -lc since on some
13277       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13278       # to ld, don't add -lc before -lgcc.
13279       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13281       $RM conftest*
13282       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13283
13284       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285   (eval $ac_compile) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } 2>conftest.err; then
13289         soname=conftest
13290         lib=conftest
13291         libobjs=conftest.$ac_objext
13292         deplibs=
13293         wl=$lt_prog_compiler_wl_CXX
13294         pic_flag=$lt_prog_compiler_pic_CXX
13295         compiler_flags=-v
13296         linker_flags=-v
13297         verstring=
13298         output_objdir=.
13299         libname=conftest
13300         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13301         allow_undefined_flag_CXX=
13302         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13303   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }
13307         then
13308           archive_cmds_need_lc_CXX=no
13309         else
13310           archive_cmds_need_lc_CXX=yes
13311         fi
13312         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13313       else
13314         cat conftest.err 1>&5
13315       fi
13316       $RM conftest*
13317       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13318 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13319       ;;
13320     esac
13321   fi
13322   ;;
13323 esac
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13389 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13390 withGCC=$GXX
13391 library_names_spec=
13392 libname_spec='lib$name'
13393 soname_spec=
13394 shrext_cmds=".so"
13395 postinstall_cmds=
13396 postuninstall_cmds=
13397 finish_cmds=
13398 finish_eval=
13399 shlibpath_var=
13400 shlibpath_overrides_runpath=unknown
13401 version_type=none
13402 dynamic_linker="$host_os ld.so"
13403 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13404 need_lib_prefix=unknown
13405 hardcode_into_libs=no
13406
13407 # when you set need_version to no, make sure it does not cause -set_version
13408 # flags to be left without arguments
13409 need_version=unknown
13410
13411 case $host_os in
13412 aix3*)
13413   version_type=linux
13414   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13415   shlibpath_var=LIBPATH
13416
13417   # AIX 3 has no versioning support, so we append a major version to the name.
13418   soname_spec='${libname}${release}${shared_ext}$major'
13419   ;;
13420
13421 aix4* | aix5*)
13422   version_type=linux
13423   need_lib_prefix=no
13424   need_version=no
13425   hardcode_into_libs=yes
13426   if test "$host_cpu" = ia64; then
13427     # AIX 5 supports IA64
13428     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13429     shlibpath_var=LD_LIBRARY_PATH
13430   else
13431     # With GCC up to 2.95.x, collect2 would create an import file
13432     # for dependence libraries.  The import file would start with
13433     # the line `#! .'.  This would cause the generated library to
13434     # depend on `.', always an invalid library.  This was fixed in
13435     # development snapshots of GCC prior to 3.0.
13436     case $host_os in
13437       aix4 | aix4.[01] | aix4.[01].*)
13438       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13439            echo ' yes '
13440            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13441         :
13442       else
13443         can_build_shared=no
13444       fi
13445       ;;
13446     esac
13447     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13448     # soname into executable. Probably we can add versioning support to
13449     # collect2, so additional links can be useful in future.
13450     if test "$aix_use_runtimelinking" = yes; then
13451       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13452       # instead of lib<name>.a to let people know that these are not
13453       # typical AIX shared libraries.
13454       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455     else
13456       # We preserve .a as extension for shared libraries through AIX4.2
13457       # and later when we are not doing run time linking.
13458       library_names_spec='${libname}${release}.a $libname.a'
13459       soname_spec='${libname}${release}${shared_ext}$major'
13460     fi
13461     shlibpath_var=LIBPATH
13462   fi
13463   ;;
13464
13465 amigaos*)
13466   if test "$host_cpu" = m68k; then
13467     library_names_spec='$libname.ixlibrary $libname.a'
13468     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13469     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13470   else
13471     dynamic_linker=no
13472   fi
13473   ;;
13474
13475 beos*)
13476   library_names_spec='${libname}${shared_ext}'
13477   dynamic_linker="$host_os ld.so"
13478   shlibpath_var=LIBRARY_PATH
13479   ;;
13480
13481 bsdi[45]*)
13482   version_type=linux
13483   need_version=no
13484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485   soname_spec='${libname}${release}${shared_ext}$major'
13486   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13489   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13490   # the default ld.so.conf also contains /usr/contrib/lib and
13491   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13492   # libtool to hard-code these into programs
13493   ;;
13494
13495 cygwin* | mingw* | pw32*)
13496   version_type=windows
13497   shrext_cmds=".dll"
13498   need_version=no
13499   need_lib_prefix=no
13500
13501   case $withGCC,$host_os in
13502   yes,cygwin* | yes,mingw* | yes,pw32*)
13503     library_names_spec='$libname.dll.a'
13504     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13505     postinstall_cmds='base_file=`basename \${file}`~
13506       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13507       dldir=$destdir/`dirname \$dlpath`~
13508       test -d \$dldir || mkdir -p \$dldir~
13509       $install_prog $dir/$dlname \$dldir/$dlname~
13510       chmod a+x \$dldir/$dlname~
13511       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13512         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13513       fi'
13514     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13515       dlpath=$dir/\$dldll~
13516        $RM \$dlpath'
13517     shlibpath_overrides_runpath=yes
13518
13519     case $host_os in
13520     cygwin*)
13521       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13522       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13523       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13524       ;;
13525     mingw*)
13526       # MinGW DLLs use traditional 'lib' prefix
13527       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13528       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13529       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13530         # It is most probably a Windows format PATH printed by
13531         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13532         # path with ; separators, and with drive letters. We can handle the
13533         # drive letters (cygwin fileutils understands them), so leave them,
13534         # especially as we might pass files found there to a mingw objdump,
13535         # which wouldn't understand a cygwinified path. Ahh.
13536         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13537       else
13538         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13539       fi
13540       ;;
13541     pw32*)
13542       # pw32 DLLs use 'pw' prefix rather than 'lib'
13543       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13544       ;;
13545     esac
13546     ;;
13547
13548   *)
13549     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13550     ;;
13551   esac
13552   dynamic_linker='Win32 ld.exe'
13553   # FIXME: first we should search . and the directory the executable is in
13554   shlibpath_var=PATH
13555   ;;
13556
13557 darwin* | rhapsody*)
13558   dynamic_linker="$host_os dyld"
13559   version_type=darwin
13560   need_lib_prefix=no
13561   need_version=no
13562   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13563   soname_spec='${libname}${release}${major}$shared_ext'
13564   shlibpath_overrides_runpath=yes
13565   shlibpath_var=DYLD_LIBRARY_PATH
13566   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13567
13568   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13569   ;;
13570
13571 dgux*)
13572   version_type=linux
13573   need_lib_prefix=no
13574   need_version=no
13575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13576   soname_spec='${libname}${release}${shared_ext}$major'
13577   shlibpath_var=LD_LIBRARY_PATH
13578   ;;
13579
13580 freebsd1*)
13581   dynamic_linker=no
13582   ;;
13583
13584 freebsd* | dragonfly*)
13585   # DragonFly does not have aout.  When/if they implement a new
13586   # versioning mechanism, adjust this.
13587   if test -x /usr/bin/objformat; then
13588     objformat=`/usr/bin/objformat`
13589   else
13590     case $host_os in
13591     freebsd[123]*) objformat=aout ;;
13592     *) objformat=elf ;;
13593     esac
13594   fi
13595   version_type=freebsd-$objformat
13596   case $version_type in
13597     freebsd-elf*)
13598       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13599       need_version=no
13600       need_lib_prefix=no
13601       ;;
13602     freebsd-*)
13603       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13604       need_version=yes
13605       ;;
13606   esac
13607   shlibpath_var=LD_LIBRARY_PATH
13608   case $host_os in
13609   freebsd2*)
13610     shlibpath_overrides_runpath=yes
13611     ;;
13612   freebsd3.[01]* | freebsdelf3.[01]*)
13613     shlibpath_overrides_runpath=yes
13614     hardcode_into_libs=yes
13615     ;;
13616   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13617   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13618     shlibpath_overrides_runpath=no
13619     hardcode_into_libs=yes
13620     ;;
13621   *) # from 4.6 on, and DragonFly
13622     shlibpath_overrides_runpath=yes
13623     hardcode_into_libs=yes
13624     ;;
13625   esac
13626   ;;
13627
13628 gnu*)
13629   version_type=linux
13630   need_lib_prefix=no
13631   need_version=no
13632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13633   soname_spec='${libname}${release}${shared_ext}$major'
13634   shlibpath_var=LD_LIBRARY_PATH
13635   hardcode_into_libs=yes
13636   ;;
13637
13638 hpux9* | hpux10* | hpux11*)
13639   # Give a soname corresponding to the major version so that dld.sl refuses to
13640   # link against other versions.
13641   version_type=sunos
13642   need_lib_prefix=no
13643   need_version=no
13644   case $host_cpu in
13645   ia64*)
13646     shrext_cmds='.so'
13647     hardcode_into_libs=yes
13648     dynamic_linker="$host_os dld.so"
13649     shlibpath_var=LD_LIBRARY_PATH
13650     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652     soname_spec='${libname}${release}${shared_ext}$major'
13653     if test "X$HPUX_IA64_MODE" = X32; then
13654       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13655     else
13656       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13657     fi
13658     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13659     ;;
13660   hppa*64*)
13661     shrext_cmds='.sl'
13662     hardcode_into_libs=yes
13663     dynamic_linker="$host_os dld.sl"
13664     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13665     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667     soname_spec='${libname}${release}${shared_ext}$major'
13668     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13669     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13670     ;;
13671   *)
13672     shrext_cmds='.sl'
13673     dynamic_linker="$host_os dld.sl"
13674     shlibpath_var=SHLIB_PATH
13675     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677     soname_spec='${libname}${release}${shared_ext}$major'
13678     ;;
13679   esac
13680   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13681   postinstall_cmds='chmod 555 $lib'
13682   ;;
13683
13684 interix[3-9]*)
13685   version_type=linux
13686   need_lib_prefix=no
13687   need_version=no
13688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13689   soname_spec='${libname}${release}${shared_ext}$major'
13690   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13691   shlibpath_var=LD_LIBRARY_PATH
13692   shlibpath_overrides_runpath=no
13693   hardcode_into_libs=yes
13694   ;;
13695
13696 irix5* | irix6* | nonstopux*)
13697   case $host_os in
13698     nonstopux*) version_type=nonstopux ;;
13699     *)
13700         if test "$lt_cv_prog_gnu_ld" = yes; then
13701                 version_type=linux
13702         else
13703                 version_type=irix
13704         fi ;;
13705   esac
13706   need_lib_prefix=no
13707   need_version=no
13708   soname_spec='${libname}${release}${shared_ext}$major'
13709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13710   case $host_os in
13711   irix5* | nonstopux*)
13712     libsuff= shlibsuff=
13713     ;;
13714   *)
13715     case $LD in # libtool.m4 will add one of these switches to LD
13716     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13717       libsuff= shlibsuff= libmagic=32-bit;;
13718     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13719       libsuff=32 shlibsuff=N32 libmagic=N32;;
13720     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13721       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13722     *) libsuff= shlibsuff= libmagic=never-match;;
13723     esac
13724     ;;
13725   esac
13726   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13727   shlibpath_overrides_runpath=no
13728   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13729   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13730   hardcode_into_libs=yes
13731   ;;
13732
13733 # No shared lib support for Linux oldld, aout, or coff.
13734 linux*oldld* | linux*aout* | linux*coff*)
13735   dynamic_linker=no
13736   ;;
13737
13738 # This must be Linux ELF.
13739 linux* | k*bsd*-gnu)
13740   version_type=linux
13741   need_lib_prefix=no
13742   need_version=no
13743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744   soname_spec='${libname}${release}${shared_ext}$major'
13745   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13746   shlibpath_var=LD_LIBRARY_PATH
13747   shlibpath_overrides_runpath=no
13748   # Some binutils ld are patched to set DT_RUNPATH
13749   save_LDFLAGS=$LDFLAGS
13750   save_libdir=$libdir
13751   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13752        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13753   if test x$gcc_no_link = xyes; then
13754   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13756    { (exit 1); exit 1; }; }
13757 fi
13758 cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h.  */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h.  */
13764
13765 int
13766 main ()
13767 {
13768
13769   ;
13770   return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775   (eval $ac_link) 2>conftest.er1
13776   ac_status=$?
13777   grep -v '^ *+' conftest.er1 >conftest.err
13778   rm -f conftest.er1
13779   cat conftest.err >&5
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); } &&
13782          { ac_try='test -z "$ac_cxx_werror_flag"
13783                          || test ! -s conftest.err'
13784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785   (eval $ac_try) 2>&5
13786   ac_status=$?
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); }; } &&
13789          { ac_try='test -s conftest$ac_exeext'
13790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791   (eval $ac_try) 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; }; then
13795   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13796   shlibpath_overrides_runpath=yes
13797 fi
13798
13799 else
13800   echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 fi
13804 rm -f conftest.err conftest.$ac_objext \
13805       conftest$ac_exeext conftest.$ac_ext
13806   LDFLAGS=$save_LDFLAGS
13807   libdir=$save_libdir
13808
13809   # This implies no fast_install, which is unacceptable.
13810   # Some rework will be needed to allow for fast_install
13811   # before this can be enabled.
13812   hardcode_into_libs=yes
13813
13814   # Append ld.so.conf contents to the search path
13815   if test -f /etc/ld.so.conf; then
13816     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13817     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13818   fi
13819
13820   # We used to test for /lib/ld.so.1 and disable shared libraries on
13821   # powerpc, because MkLinux only supported shared libraries with the
13822   # GNU dynamic linker.  Since this was broken with cross compilers,
13823   # most powerpc-linux boxes support dynamic linking these days and
13824   # people can always --disable-shared, the test was removed, and we
13825   # assume the GNU/Linux dynamic linker is in use.
13826   dynamic_linker='GNU/Linux ld.so'
13827   ;;
13828
13829 netbsd*)
13830   version_type=sunos
13831   need_lib_prefix=no
13832   need_version=no
13833   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13835     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13836     dynamic_linker='NetBSD (a.out) ld.so'
13837   else
13838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13839     soname_spec='${libname}${release}${shared_ext}$major'
13840     dynamic_linker='NetBSD ld.elf_so'
13841   fi
13842   shlibpath_var=LD_LIBRARY_PATH
13843   shlibpath_overrides_runpath=yes
13844   hardcode_into_libs=yes
13845   ;;
13846
13847 newsos6)
13848   version_type=linux
13849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13850   shlibpath_var=LD_LIBRARY_PATH
13851   shlibpath_overrides_runpath=yes
13852   ;;
13853
13854 *nto* | *qnx*)
13855   version_type=qnx
13856   need_lib_prefix=no
13857   need_version=no
13858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13859   soname_spec='${libname}${release}${shared_ext}$major'
13860   shlibpath_var=LD_LIBRARY_PATH
13861   shlibpath_overrides_runpath=no
13862   hardcode_into_libs=yes
13863   dynamic_linker='ldqnx.so'
13864   ;;
13865
13866 openbsd*)
13867   version_type=sunos
13868   sys_lib_dlsearch_path_spec="/usr/lib"
13869   need_lib_prefix=no
13870   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13871   case $host_os in
13872     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13873     *)                          need_version=no  ;;
13874   esac
13875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13877   shlibpath_var=LD_LIBRARY_PATH
13878   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13879     case $host_os in
13880       openbsd2.[89] | openbsd2.[89].*)
13881         shlibpath_overrides_runpath=no
13882         ;;
13883       *)
13884         shlibpath_overrides_runpath=yes
13885         ;;
13886       esac
13887   else
13888     shlibpath_overrides_runpath=yes
13889   fi
13890   ;;
13891
13892 os2*)
13893   libname_spec='$name'
13894   shrext_cmds=".dll"
13895   need_lib_prefix=no
13896   library_names_spec='$libname${shared_ext} $libname.a'
13897   dynamic_linker='OS/2 ld.exe'
13898   shlibpath_var=LIBPATH
13899   ;;
13900
13901 osf3* | osf4* | osf5*)
13902   version_type=osf
13903   need_lib_prefix=no
13904   need_version=no
13905   soname_spec='${libname}${release}${shared_ext}$major'
13906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907   shlibpath_var=LD_LIBRARY_PATH
13908   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13909   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13910   ;;
13911
13912 rdos*)
13913   dynamic_linker=no
13914   ;;
13915
13916 solaris*)
13917   version_type=linux
13918   need_lib_prefix=no
13919   need_version=no
13920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13921   soname_spec='${libname}${release}${shared_ext}$major'
13922   shlibpath_var=LD_LIBRARY_PATH
13923   shlibpath_overrides_runpath=yes
13924   hardcode_into_libs=yes
13925   # ldd complains unless libraries are executable
13926   postinstall_cmds='chmod +x $lib'
13927   ;;
13928
13929 sunos4*)
13930   version_type=sunos
13931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13932   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13933   shlibpath_var=LD_LIBRARY_PATH
13934   shlibpath_overrides_runpath=yes
13935   if test "$with_gnu_ld" = yes; then
13936     need_lib_prefix=no
13937   fi
13938   need_version=yes
13939   ;;
13940
13941 sysv4 | sysv4.3*)
13942   version_type=linux
13943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944   soname_spec='${libname}${release}${shared_ext}$major'
13945   shlibpath_var=LD_LIBRARY_PATH
13946   case $host_vendor in
13947     sni)
13948       shlibpath_overrides_runpath=no
13949       need_lib_prefix=no
13950       runpath_var=LD_RUN_PATH
13951       ;;
13952     siemens)
13953       need_lib_prefix=no
13954       ;;
13955     motorola)
13956       need_lib_prefix=no
13957       need_version=no
13958       shlibpath_overrides_runpath=no
13959       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13960       ;;
13961   esac
13962   ;;
13963
13964 sysv4*MP*)
13965   if test -d /usr/nec ;then
13966     version_type=linux
13967     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13968     soname_spec='$libname${shared_ext}.$major'
13969     shlibpath_var=LD_LIBRARY_PATH
13970   fi
13971   ;;
13972
13973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13974   version_type=freebsd-elf
13975   need_lib_prefix=no
13976   need_version=no
13977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13978   soname_spec='${libname}${release}${shared_ext}$major'
13979   shlibpath_var=LD_LIBRARY_PATH
13980   shlibpath_overrides_runpath=yes
13981   hardcode_into_libs=yes
13982   if test "$with_gnu_ld" = yes; then
13983     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13984   else
13985     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13986     case $host_os in
13987       sco3.2v5*)
13988         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13989         ;;
13990     esac
13991   fi
13992   sys_lib_dlsearch_path_spec='/usr/lib'
13993   ;;
13994
13995 tpf*)
13996   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13997   version_type=linux
13998   need_lib_prefix=no
13999   need_version=no
14000   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001   shlibpath_var=LD_LIBRARY_PATH
14002   shlibpath_overrides_runpath=no
14003   hardcode_into_libs=yes
14004   ;;
14005
14006 uts4*)
14007   version_type=linux
14008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009   soname_spec='${libname}${release}${shared_ext}$major'
14010   shlibpath_var=LD_LIBRARY_PATH
14011   ;;
14012
14013 *)
14014   dynamic_linker=no
14015   ;;
14016 esac
14017 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14018 echo "${ECHO_T}$dynamic_linker" >&6
14019 test "$dynamic_linker" = no && can_build_shared=no
14020
14021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14022 if test "$GCC" = yes; then
14023   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14024 fi
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14063 hardcode_action_CXX=
14064 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14065    test -n "$runpath_var_CXX" ||
14066    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14067
14068   # We can hardcode non-existent directories.
14069   if test "$hardcode_direct_CXX" != no &&
14070      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14071      # have to relink, otherwise we might link with an installed library
14072      # when we should be linking with a yet-to-be-installed one
14073      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14074      test "$hardcode_minus_L_CXX" != no; then
14075     # Linking always hardcodes the temporary library directory.
14076     hardcode_action_CXX=relink
14077   else
14078     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14079     hardcode_action_CXX=immediate
14080   fi
14081 else
14082   # We cannot hardcode anything, or else we can only hardcode existing
14083   # directories.
14084   hardcode_action_CXX=unsupported
14085 fi
14086 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14087 echo "${ECHO_T}$hardcode_action_CXX" >&6
14088
14089 if test "$hardcode_action_CXX" = relink ||
14090    test "$inherit_rpath_CXX" = yes; then
14091   # Fast installation is not supported
14092   enable_fast_install=no
14093 elif test "$shlibpath_overrides_runpath" = yes ||
14094      test "$enable_shared" = no; then
14095   # Fast installation is not necessary
14096   enable_fast_install=needless
14097 fi
14098
14099
14100
14101
14102
14103
14104
14105   fi # test -n "$compiler"
14106
14107   CC=$lt_save_CC
14108   LDCXX=$LD
14109   LD=$lt_save_LD
14110   GCC=$lt_save_GCC
14111   with_gnu_ld=$lt_save_with_gnu_ld
14112   lt_cv_path_LDCXX=$lt_cv_path_LD
14113   lt_cv_path_LD=$lt_save_path_LD
14114   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14115   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14116 fi # test "$_lt_caught_CXX_error" != yes
14117
14118 ac_ext=c
14119 ac_cpp='$CPP $CPPFLAGS'
14120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136                   ac_config_commands="$ac_config_commands libtool"
14137
14138
14139
14140
14141 # Only expand once:
14142
14143
14144
14145
14146 # Check whether --with-target-subdir or --without-target-subdir was given.
14147 if test "${with_target_subdir+set}" = set; then
14148   withval="$with_target_subdir"
14149
14150 fi;
14151
14152 # Check whether --with-cross-host or --without-cross-host was given.
14153 if test "${with_cross_host+set}" = set; then
14154   withval="$with_cross_host"
14155
14156 fi;
14157
14158 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14159 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14160 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14161 if test -z "$THREADS"; then
14162    THREADS=no
14163 fi
14164 echo "$as_me:$LINENO: result: $THREADS" >&5
14165 echo "${ECHO_T}$THREADS" >&6
14166
14167 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14168 if test "${enable_parallel_mark+set}" = set; then
14169   enableval="$enable_parallel_mark"
14170   case "$THREADS" in
14171       no | none | single)
14172         { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14173 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14174    { (exit 1); exit 1; }; }
14175         ;;
14176     esac
14177
14178 fi;
14179
14180 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14181 THREADLIBS=
14182 case "$THREADS" in
14183  no | none | single)
14184     THREADS=none
14185     ;;
14186  posix | posix95 | pthreads)
14187     THREADS=posix
14188     THREADLIBS=-lpthread
14189     case "$host" in
14190      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14191
14192 cat >>confdefs.h <<\_ACEOF
14193 #define GC_LINUX_THREADS 1
14194 _ACEOF
14195
14196
14197 cat >>confdefs.h <<\_ACEOF
14198 #define _REENTRANT 1
14199 _ACEOF
14200
14201         if test "${enable_parallel_mark}" = yes; then
14202
14203 cat >>confdefs.h <<\_ACEOF
14204 #define PARALLEL_MARK 1
14205 _ACEOF
14206
14207         fi
14208
14209 cat >>confdefs.h <<\_ACEOF
14210 #define THREAD_LOCAL_ALLOC 1
14211 _ACEOF
14212
14213         ;;
14214      *-*-linux*)
14215         cat >>confdefs.h <<\_ACEOF
14216 #define GC_LINUX_THREADS 1
14217 _ACEOF
14218
14219         cat >>confdefs.h <<\_ACEOF
14220 #define _REENTRANT 1
14221 _ACEOF
14222
14223         ;;
14224      *-*-aix*)
14225
14226 cat >>confdefs.h <<\_ACEOF
14227 #define GC_AIX_THREADS 1
14228 _ACEOF
14229
14230         cat >>confdefs.h <<\_ACEOF
14231 #define _REENTRANT 1
14232 _ACEOF
14233
14234         ;;
14235      *-*-hpux11*)
14236         { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14237 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14238
14239 cat >>confdefs.h <<\_ACEOF
14240 #define GC_HPUX_THREADS 1
14241 _ACEOF
14242
14243
14244 cat >>confdefs.h <<\_ACEOF
14245 #define _POSIX_C_SOURCE 199506L
14246 _ACEOF
14247
14248         if test "${enable_parallel_mark}" = yes; then
14249           cat >>confdefs.h <<\_ACEOF
14250 #define PARALLEL_MARK 1
14251 _ACEOF
14252
14253         fi
14254         cat >>confdefs.h <<\_ACEOF
14255 #define THREAD_LOCAL_ALLOC 1
14256 _ACEOF
14257
14258         THREADLIBS="-lpthread -lrt"
14259         # HPUX needs REENTRANT for the _r calls.
14260
14261 cat >>confdefs.h <<\_ACEOF
14262 #define _REENTRANT 1
14263 _ACEOF
14264
14265         ;;
14266      *-*-hpux10*)
14267         { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14268 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14269         ;;
14270       *-*-kfreebsd*-gnu)
14271        cat >>confdefs.h <<\_ACEOF
14272 #define GC_FREEBSD_THREADS 1
14273 _ACEOF
14274
14275        INCLUDES="$INCLUDES -pthread"
14276        THREADDLLIBS=-pthread
14277        cat >>confdefs.h <<\_ACEOF
14278 #define _REENTRANT 1
14279 _ACEOF
14280
14281          if test "${enable_parallel_mark}" = yes; then
14282          cat >>confdefs.h <<\_ACEOF
14283 #define PARALLEL_MARK 1
14284 _ACEOF
14285
14286        fi
14287        cat >>confdefs.h <<\_ACEOF
14288 #define THREAD_LOCAL_ALLOC 1
14289 _ACEOF
14290
14291
14292 cat >>confdefs.h <<\_ACEOF
14293 #define USE_COMPILER_TLS 1
14294 _ACEOF
14295
14296                ;;
14297      *-*-freebsd*)
14298         { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14299 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
14300
14301 cat >>confdefs.h <<\_ACEOF
14302 #define GC_FREEBSD_THREADS 1
14303 _ACEOF
14304
14305         AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14306         THREADLIBS=-pthread
14307         ;;
14308      *-*-solaris*)
14309
14310 cat >>confdefs.h <<\_ACEOF
14311 #define GC_SOLARIS_THREADS 1
14312 _ACEOF
14313
14314
14315 cat >>confdefs.h <<\_ACEOF
14316 #define GC_SOLARIS_PTHREADS 1
14317 _ACEOF
14318
14319         ;;
14320      *-*-irix*)
14321
14322 cat >>confdefs.h <<\_ACEOF
14323 #define GC_IRIX_THREADS 1
14324 _ACEOF
14325
14326         ;;
14327      *-*-cygwin*)
14328
14329 cat >>confdefs.h <<\_ACEOF
14330 #define GC_WIN32_THREADS 1
14331 _ACEOF
14332
14333         ;;
14334      *-*-darwin*)
14335
14336 cat >>confdefs.h <<\_ACEOF
14337 #define GC_DARWIN_THREADS 1
14338 _ACEOF
14339
14340         cat >>confdefs.h <<\_ACEOF
14341 #define THREAD_LOCAL_ALLOC 1
14342 _ACEOF
14343
14344         if test "${enable_parallel_mark}" = yes; then
14345           cat >>confdefs.h <<\_ACEOF
14346 #define PARALLEL_MARK 1
14347 _ACEOF
14348
14349         fi
14350         ;;
14351      *-*-osf*)
14352
14353 cat >>confdefs.h <<\_ACEOF
14354 #define GC_OSF1_THREADS 1
14355 _ACEOF
14356
14357         if test "${enable_parallel_mark}" = yes; then
14358           cat >>confdefs.h <<\_ACEOF
14359 #define PARALLEL_MARK 1
14360 _ACEOF
14361
14362           cat >>confdefs.h <<\_ACEOF
14363 #define THREAD_LOCAL_ALLOC 1
14364 _ACEOF
14365
14366           # May want to enable it in other cases, too.
14367           # Measurements havent yet been done.
14368         fi
14369         AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14370         THREADLIBS="-lpthread -lrt"
14371         ;;
14372     esac
14373     ;;
14374  win32)
14375     cat >>confdefs.h <<\_ACEOF
14376 #define GC_WIN32_THREADS 1
14377 _ACEOF
14378
14379             ;;
14380  dgux386)
14381     THREADS=dgux386
14382 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
14383 echo "${ECHO_T}$THREADLIBS" >&6
14384     # Use pthread GCC  switch
14385     THREADLIBS=-pthread
14386     if test "${enable_parallel_mark}" = yes; then
14387         cat >>confdefs.h <<\_ACEOF
14388 #define PARALLEL_MARK 1
14389 _ACEOF
14390
14391     fi
14392     cat >>confdefs.h <<\_ACEOF
14393 #define THREAD_LOCAL_ALLOC 1
14394 _ACEOF
14395
14396
14397 cat >>confdefs.h <<\_ACEOF
14398 #define GC_DGUX386_THREADS 1
14399 _ACEOF
14400
14401
14402 cat >>confdefs.h <<\_ACEOF
14403 #define DGUX_THREADS 1
14404 _ACEOF
14405
14406     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
14407     AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
14408     ;;
14409  aix)
14410     THREADS=posix
14411     THREADLIBS=-lpthread
14412     cat >>confdefs.h <<\_ACEOF
14413 #define GC_AIX_THREADS 1
14414 _ACEOF
14415
14416     cat >>confdefs.h <<\_ACEOF
14417 #define _REENTRANT 1
14418 _ACEOF
14419
14420     ;;
14421  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
14422     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
14423 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
14424    { (exit 1); exit 1; }; }
14425     ;;
14426  *)
14427     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
14428 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
14429    { (exit 1); exit 1; }; }
14430     ;;
14431 esac
14432
14433
14434 case "$host" in
14435    powerpc-*-darwin*)
14436       powerpc_darwin=true
14437       ;;
14438 esac
14439
14440
14441 if test x$powerpc_darwin = xtrue; then
14442   POWERPC_DARWIN_TRUE=
14443   POWERPC_DARWIN_FALSE='#'
14444 else
14445   POWERPC_DARWIN_TRUE='#'
14446   POWERPC_DARWIN_FALSE=
14447 fi
14448
14449
14450 # Darwin needs a few extra special tests to deal with variation in the
14451 # system headers.
14452 case "$host" in
14453   powerpc*-*-darwin*)
14454     echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
14455 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
14456 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h.  */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h.  */
14465 #include <mach/thread_status.h>
14466
14467 int
14468 main ()
14469 {
14470 static ppc_thread_state_t ac_aggr;
14471 if (ac_aggr.r0)
14472 return 0;
14473   ;
14474   return 0;
14475 }
14476 _ACEOF
14477 rm -f conftest.$ac_objext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479   (eval $ac_compile) 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } &&
14486          { ac_try='test -z "$ac_c_werror_flag"
14487                          || test ! -s conftest.err'
14488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489   (eval $ac_try) 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); }; } &&
14493          { ac_try='test -s conftest.$ac_objext'
14494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495   (eval $ac_try) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   ac_cv_member_ppc_thread_state_t_r0=yes
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 #include <mach/thread_status.h>
14511
14512 int
14513 main ()
14514 {
14515 static ppc_thread_state_t ac_aggr;
14516 if (sizeof ac_aggr.r0)
14517 return 0;
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524   (eval $ac_compile) 2>conftest.er1
14525   ac_status=$?
14526   grep -v '^ *+' conftest.er1 >conftest.err
14527   rm -f conftest.er1
14528   cat conftest.err >&5
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -z "$ac_c_werror_flag"
14532                          || test ! -s conftest.err'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; } &&
14538          { ac_try='test -s conftest.$ac_objext'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544   ac_cv_member_ppc_thread_state_t_r0=yes
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 ac_cv_member_ppc_thread_state_t_r0=no
14550 fi
14551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14552 fi
14553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554 fi
14555 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
14556 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
14557 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
14558
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAS_PPC_THREAD_STATE_R0 1
14561 _ACEOF
14562
14563 fi
14564
14565     echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
14566 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
14567 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570   cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h.  */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h.  */
14576 #include <mach/thread_status.h>
14577
14578 int
14579 main ()
14580 {
14581 static ppc_thread_state_t ac_aggr;
14582 if (ac_aggr.__r0)
14583 return 0;
14584   ;
14585   return 0;
14586 }
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590   (eval $ac_compile) 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
14594   cat conftest.err >&5
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } &&
14597          { ac_try='test -z "$ac_c_werror_flag"
14598                          || test ! -s conftest.err'
14599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600   (eval $ac_try) 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); }; } &&
14604          { ac_try='test -s conftest.$ac_objext'
14605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606   (eval $ac_try) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; }; then
14610   ac_cv_member_ppc_thread_state_t___r0=yes
14611 else
14612   echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h.  */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h.  */
14621 #include <mach/thread_status.h>
14622
14623 int
14624 main ()
14625 {
14626 static ppc_thread_state_t ac_aggr;
14627 if (sizeof ac_aggr.__r0)
14628 return 0;
14629   ;
14630   return 0;
14631 }
14632 _ACEOF
14633 rm -f conftest.$ac_objext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14635   (eval $ac_compile) 2>conftest.er1
14636   ac_status=$?
14637   grep -v '^ *+' conftest.er1 >conftest.err
14638   rm -f conftest.er1
14639   cat conftest.err >&5
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); } &&
14642          { ac_try='test -z "$ac_c_werror_flag"
14643                          || test ! -s conftest.err'
14644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645   (eval $ac_try) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; } &&
14649          { ac_try='test -s conftest.$ac_objext'
14650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651   (eval $ac_try) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }; }; then
14655   ac_cv_member_ppc_thread_state_t___r0=yes
14656 else
14657   echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14659
14660 ac_cv_member_ppc_thread_state_t___r0=no
14661 fi
14662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14663 fi
14664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14665 fi
14666 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
14667 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
14668 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
14669
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAS_PPC_THREAD_STATE___R0 1
14672 _ACEOF
14673
14674 fi
14675
14676     echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
14677 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
14678 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
14679   echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681   cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687 #include <mach/thread_status.h>
14688
14689 int
14690 main ()
14691 {
14692 static ppc_thread_state64_t ac_aggr;
14693 if (ac_aggr.r0)
14694 return 0;
14695   ;
14696   return 0;
14697 }
14698 _ACEOF
14699 rm -f conftest.$ac_objext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14701   (eval $ac_compile) 2>conftest.er1
14702   ac_status=$?
14703   grep -v '^ *+' conftest.er1 >conftest.err
14704   rm -f conftest.er1
14705   cat conftest.err >&5
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); } &&
14708          { ac_try='test -z "$ac_c_werror_flag"
14709                          || test ! -s conftest.err'
14710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711   (eval $ac_try) 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; } &&
14715          { ac_try='test -s conftest.$ac_objext'
14716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717   (eval $ac_try) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); }; }; then
14721   ac_cv_member_ppc_thread_state64_t_r0=yes
14722 else
14723   echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732 #include <mach/thread_status.h>
14733
14734 int
14735 main ()
14736 {
14737 static ppc_thread_state64_t ac_aggr;
14738 if (sizeof ac_aggr.r0)
14739 return 0;
14740   ;
14741   return 0;
14742 }
14743 _ACEOF
14744 rm -f conftest.$ac_objext
14745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14746   (eval $ac_compile) 2>conftest.er1
14747   ac_status=$?
14748   grep -v '^ *+' conftest.er1 >conftest.err
14749   rm -f conftest.er1
14750   cat conftest.err >&5
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } &&
14753          { ac_try='test -z "$ac_c_werror_flag"
14754                          || test ! -s conftest.err'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; } &&
14760          { ac_try='test -s conftest.$ac_objext'
14761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762   (eval $ac_try) 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; }; then
14766   ac_cv_member_ppc_thread_state64_t_r0=yes
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771 ac_cv_member_ppc_thread_state64_t_r0=no
14772 fi
14773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14774 fi
14775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14776 fi
14777 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
14778 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
14779 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
14780
14781 cat >>confdefs.h <<\_ACEOF
14782 #define HAS_PPC_THREAD_STATE64_R0 1
14783 _ACEOF
14784
14785 fi
14786
14787     echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
14788 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
14789 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792   cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h.  */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h.  */
14798 #include <mach/thread_status.h>
14799
14800 int
14801 main ()
14802 {
14803 static ppc_thread_state64_t ac_aggr;
14804 if (ac_aggr.__r0)
14805 return 0;
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812   (eval $ac_compile) 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } &&
14819          { ac_try='test -z "$ac_c_werror_flag"
14820                          || test ! -s conftest.err'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; } &&
14826          { ac_try='test -s conftest.$ac_objext'
14827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828   (eval $ac_try) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; }; then
14832   ac_cv_member_ppc_thread_state64_t___r0=yes
14833 else
14834   echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843 #include <mach/thread_status.h>
14844
14845 int
14846 main ()
14847 {
14848 static ppc_thread_state64_t ac_aggr;
14849 if (sizeof ac_aggr.__r0)
14850 return 0;
14851   ;
14852   return 0;
14853 }
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857   (eval $ac_compile) 2>conftest.er1
14858   ac_status=$?
14859   grep -v '^ *+' conftest.er1 >conftest.err
14860   rm -f conftest.er1
14861   cat conftest.err >&5
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); } &&
14864          { ac_try='test -z "$ac_c_werror_flag"
14865                          || test ! -s conftest.err'
14866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867   (eval $ac_try) 2>&5
14868   ac_status=$?
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   (exit $ac_status); }; } &&
14871          { ac_try='test -s conftest.$ac_objext'
14872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873   (eval $ac_try) 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); }; }; then
14877   ac_cv_member_ppc_thread_state64_t___r0=yes
14878 else
14879   echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881
14882 ac_cv_member_ppc_thread_state64_t___r0=no
14883 fi
14884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14887 fi
14888 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
14889 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
14890 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
14891
14892 cat >>confdefs.h <<\_ACEOF
14893 #define HAS_PPC_THREAD_STATE64___R0 1
14894 _ACEOF
14895
14896 fi
14897
14898     ;;
14899   i?86*-*-darwin*)
14900     echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
14901 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
14902 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
14903   echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905   cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h.  */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h.  */
14911 #include <sys/cdefs.h>
14912       #include <mach/thread_status.h>
14913
14914 int
14915 main ()
14916 {
14917 static x86_thread_state32_t ac_aggr;
14918 if (ac_aggr.eax)
14919 return 0;
14920   ;
14921   return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest.$ac_objext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926   (eval $ac_compile) 2>conftest.er1
14927   ac_status=$?
14928   grep -v '^ *+' conftest.er1 >conftest.err
14929   rm -f conftest.er1
14930   cat conftest.err >&5
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } &&
14933          { ac_try='test -z "$ac_c_werror_flag"
14934                          || test ! -s conftest.err'
14935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936   (eval $ac_try) 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; } &&
14940          { ac_try='test -s conftest.$ac_objext'
14941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942   (eval $ac_try) 2>&5
14943   ac_status=$?
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); }; }; then
14946   ac_cv_member_x86_thread_state32_t_eax=yes
14947 else
14948   echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14950
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h.  */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h.  */
14957 #include <sys/cdefs.h>
14958       #include <mach/thread_status.h>
14959
14960 int
14961 main ()
14962 {
14963 static x86_thread_state32_t ac_aggr;
14964 if (sizeof ac_aggr.eax)
14965 return 0;
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972   (eval $ac_compile) 2>conftest.er1
14973   ac_status=$?
14974   grep -v '^ *+' conftest.er1 >conftest.err
14975   rm -f conftest.er1
14976   cat conftest.err >&5
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -z "$ac_c_werror_flag"
14980                          || test ! -s conftest.err'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; } &&
14986          { ac_try='test -s conftest.$ac_objext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   ac_cv_member_x86_thread_state32_t_eax=yes
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ac_cv_member_x86_thread_state32_t_eax=no
14998 fi
14999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15000 fi
15001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15002 fi
15003 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15004 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15005 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15006
15007 cat >>confdefs.h <<\_ACEOF
15008 #define HAS_X86_THREAD_STATE32_EAX 1
15009 _ACEOF
15010
15011 fi
15012
15013     echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15014 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15015 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018   cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 #include <sys/cdefs.h>
15025       #include <mach/thread_status.h>
15026
15027 int
15028 main ()
15029 {
15030 static x86_thread_state32_t ac_aggr;
15031 if (ac_aggr.__eax)
15032 return 0;
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15039   (eval $ac_compile) 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -z "$ac_c_werror_flag"
15047                          || test ! -s conftest.err'
15048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049   (eval $ac_try) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; } &&
15053          { ac_try='test -s conftest.$ac_objext'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }; then
15059   ac_cv_member_x86_thread_state32_t___eax=yes
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070 #include <sys/cdefs.h>
15071       #include <mach/thread_status.h>
15072
15073 int
15074 main ()
15075 {
15076 static x86_thread_state32_t ac_aggr;
15077 if (sizeof ac_aggr.__eax)
15078 return 0;
15079   ;
15080   return 0;
15081 }
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085   (eval $ac_compile) 2>conftest.er1
15086   ac_status=$?
15087   grep -v '^ *+' conftest.er1 >conftest.err
15088   rm -f conftest.er1
15089   cat conftest.err >&5
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } &&
15092          { ac_try='test -z "$ac_c_werror_flag"
15093                          || test ! -s conftest.err'
15094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095   (eval $ac_try) 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); }; } &&
15099          { ac_try='test -s conftest.$ac_objext'
15100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101   (eval $ac_try) 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; }; then
15105   ac_cv_member_x86_thread_state32_t___eax=yes
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_cv_member_x86_thread_state32_t___eax=no
15111 fi
15112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15113 fi
15114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15115 fi
15116 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15117 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15118 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15119
15120 cat >>confdefs.h <<\_ACEOF
15121 #define HAS_X86_THREAD_STATE32___EAX 1
15122 _ACEOF
15123
15124 fi
15125
15126     ;;
15127   x86_64-*-darwin*)
15128     echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15129 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15130 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15131   echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133   cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h.  */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h.  */
15139 #include <sys/cdefs.h>
15140       #include <mach/thread_status.h>
15141
15142 int
15143 main ()
15144 {
15145 static x86_thread_state64_t ac_aggr;
15146 if (ac_aggr.rax)
15147 return 0;
15148   ;
15149   return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154   (eval $ac_compile) 2>conftest.er1
15155   ac_status=$?
15156   grep -v '^ *+' conftest.er1 >conftest.err
15157   rm -f conftest.er1
15158   cat conftest.err >&5
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); } &&
15161          { ac_try='test -z "$ac_c_werror_flag"
15162                          || test ! -s conftest.err'
15163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164   (eval $ac_try) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); }; } &&
15168          { ac_try='test -s conftest.$ac_objext'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; }; then
15174   ac_cv_member_x86_thread_state64_t_rax=yes
15175 else
15176   echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h.  */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h.  */
15185 #include <sys/cdefs.h>
15186       #include <mach/thread_status.h>
15187
15188 int
15189 main ()
15190 {
15191 static x86_thread_state64_t ac_aggr;
15192 if (sizeof ac_aggr.rax)
15193 return 0;
15194   ;
15195   return 0;
15196 }
15197 _ACEOF
15198 rm -f conftest.$ac_objext
15199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15200   (eval $ac_compile) 2>conftest.er1
15201   ac_status=$?
15202   grep -v '^ *+' conftest.er1 >conftest.err
15203   rm -f conftest.er1
15204   cat conftest.err >&5
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } &&
15207          { ac_try='test -z "$ac_c_werror_flag"
15208                          || test ! -s conftest.err'
15209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210   (eval $ac_try) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; } &&
15214          { ac_try='test -s conftest.$ac_objext'
15215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216   (eval $ac_try) 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }; }; then
15220   ac_cv_member_x86_thread_state64_t_rax=yes
15221 else
15222   echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 ac_cv_member_x86_thread_state64_t_rax=no
15226 fi
15227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15228 fi
15229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15230 fi
15231 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
15232 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
15233 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
15234
15235 cat >>confdefs.h <<\_ACEOF
15236 #define HAS_X86_THREAD_STATE64_RAX 1
15237 _ACEOF
15238
15239 fi
15240
15241     echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
15242 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
15243 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
15244   echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246   cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252 #include <sys/cdefs.h>
15253       #include <mach/thread_status.h>
15254
15255 int
15256 main ()
15257 {
15258 static x86_thread_state64_t ac_aggr;
15259 if (ac_aggr.__rax)
15260 return 0;
15261   ;
15262   return 0;
15263 }
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267   (eval $ac_compile) 2>conftest.er1
15268   ac_status=$?
15269   grep -v '^ *+' conftest.er1 >conftest.err
15270   rm -f conftest.er1
15271   cat conftest.err >&5
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } &&
15274          { ac_try='test -z "$ac_c_werror_flag"
15275                          || test ! -s conftest.err'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; } &&
15281          { ac_try='test -s conftest.$ac_objext'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   ac_cv_member_x86_thread_state64_t___rax=yes
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298 #include <sys/cdefs.h>
15299       #include <mach/thread_status.h>
15300
15301 int
15302 main ()
15303 {
15304 static x86_thread_state64_t ac_aggr;
15305 if (sizeof ac_aggr.__rax)
15306 return 0;
15307   ;
15308   return 0;
15309 }
15310 _ACEOF
15311 rm -f conftest.$ac_objext
15312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15313   (eval $ac_compile) 2>conftest.er1
15314   ac_status=$?
15315   grep -v '^ *+' conftest.er1 >conftest.err
15316   rm -f conftest.er1
15317   cat conftest.err >&5
15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); } &&
15320          { ac_try='test -z "$ac_c_werror_flag"
15321                          || test ! -s conftest.err'
15322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323   (eval $ac_try) 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); }; } &&
15327          { ac_try='test -s conftest.$ac_objext'
15328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329   (eval $ac_try) 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; }; then
15333   ac_cv_member_x86_thread_state64_t___rax=yes
15334 else
15335   echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15337
15338 ac_cv_member_x86_thread_state64_t___rax=no
15339 fi
15340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15341 fi
15342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343 fi
15344 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
15345 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
15346 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
15347
15348 cat >>confdefs.h <<\_ACEOF
15349 #define HAS_X86_THREAD_STATE64___RAX 1
15350 _ACEOF
15351
15352 fi
15353
15354      ;;
15355   *) ;;
15356 esac
15357
15358 # We never want libdl on darwin. It is a fake libdl that just ends up making
15359 # dyld calls anyway
15360 case "$host" in
15361   *-*-darwin*) ;;
15362   *)
15363     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15364 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15365 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   ac_check_lib_save_LIBS=$LIBS
15369 LIBS="-ldl  $LIBS"
15370 if test x$gcc_no_link = xyes; then
15371   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15373    { (exit 1); exit 1; }; }
15374 fi
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381
15382 /* Override any gcc2 internal prototype to avoid an error.  */
15383 #ifdef __cplusplus
15384 extern "C"
15385 #endif
15386 /* We use char because int might match the return type of a gcc2
15387    builtin and then its argument prototype would still apply.  */
15388 char dlopen ();
15389 int
15390 main ()
15391 {
15392 dlopen ();
15393   ;
15394   return 0;
15395 }
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399   (eval $ac_link) 2>conftest.er1
15400   ac_status=$?
15401   grep -v '^ *+' conftest.er1 >conftest.err
15402   rm -f conftest.er1
15403   cat conftest.err >&5
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); } &&
15406          { ac_try='test -z "$ac_c_werror_flag"
15407                          || test ! -s conftest.err'
15408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409   (eval $ac_try) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); }; } &&
15413          { ac_try='test -s conftest$ac_exeext'
15414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415   (eval $ac_try) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; }; then
15419   ac_cv_lib_dl_dlopen=yes
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424 ac_cv_lib_dl_dlopen=no
15425 fi
15426 rm -f conftest.err conftest.$ac_objext \
15427       conftest$ac_exeext conftest.$ac_ext
15428 LIBS=$ac_check_lib_save_LIBS
15429 fi
15430 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15431 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15432 if test $ac_cv_lib_dl_dlopen = yes; then
15433   EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15434 fi
15435
15436     ;;
15437 esac
15438
15439 # extra LD Flags which are required for targets
15440 case "${host}" in
15441   *-*-darwin*)
15442     extra_ldflags_libgc=-Wl,-single_module
15443     ;;
15444 esac
15445
15446
15447
15448
15449 target_all=libgcjgc.la
15450
15451
15452 TARGET_ECOS="no"
15453
15454 # Check whether --with-ecos or --without-ecos was given.
15455 if test "${with_ecos+set}" = set; then
15456   withval="$with_ecos"
15457   TARGET_ECOS="$with_ecos"
15458
15459 fi;
15460
15461 addobjs=
15462 addlibs=
15463 addincludes=
15464 addtests=
15465 case "$TARGET_ECOS" in
15466    no)
15467       ;;
15468    *)
15469
15470 cat >>confdefs.h <<\_ACEOF
15471 #define ECOS 1
15472 _ACEOF
15473
15474       AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15475       addobjs="$addobjs ecos.lo"
15476       ;;
15477 esac
15478
15479 if test "${enable_cplusplus}" = yes; then
15480       addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15481       addtests="$addtests test_cpp"
15482 fi
15483
15484
15485
15486 if test "${enable_cplusplus}" = yes; then
15487   CPLUSPLUS_TRUE=
15488   CPLUSPLUS_FALSE='#'
15489 else
15490   CPLUSPLUS_TRUE='#'
15491   CPLUSPLUS_FALSE=
15492 fi
15493
15494
15495
15496
15497
15498
15499 # Configuration of shared libraries
15500 #
15501 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15502 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15503 # Check whether --enable-shared or --disable-shared was given.
15504 if test "${enable_shared+set}" = set; then
15505   enableval="$enable_shared"
15506   p=${PACKAGE-default}
15507     case $enableval in
15508     yes) enable_shared=yes ;;
15509     no) enable_shared=no ;;
15510     *)
15511       enable_shared=no
15512       # Look at the argument we got.  We use all the common list separators.
15513       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15514       for pkg in $enableval; do
15515         IFS="$lt_save_ifs"
15516         if test "X$pkg" = "X$p"; then
15517           enable_shared=yes
15518         fi
15519       done
15520       IFS="$lt_save_ifs"
15521       ;;
15522     esac
15523 else
15524   enable_shared=yes
15525 fi;
15526
15527
15528
15529
15530
15531
15532 case "$host" in
15533  alpha-*-openbsd*)
15534      enable_shared=no
15535      echo "$as_me:$LINENO: result: no" >&5
15536 echo "${ECHO_T}no" >&6
15537      ;;
15538  *)
15539      echo "$as_me:$LINENO: result: yes" >&5
15540 echo "${ECHO_T}yes" >&6
15541      ;;
15542 esac
15543
15544 # Checks for pthreads functions
15545 #
15546 oldLIBS="$LIBS"
15547 LIBS="$LIBS $THREADLIBS"
15548
15549 for ac_func in pthread_getattr_np
15550 do
15551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15552 echo "$as_me:$LINENO: checking for $ac_func" >&5
15553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15554 if eval "test \"\${$as_ac_var+set}\" = set"; then
15555   echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15557   if test x$gcc_no_link = xyes; then
15558   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15559 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15560    { (exit 1); exit 1; }; }
15561 fi
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h.  */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h.  */
15568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15570 #define $ac_func innocuous_$ac_func
15571
15572 /* System header to define __stub macros and hopefully few prototypes,
15573     which can conflict with char $ac_func (); below.
15574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15575     <limits.h> exists even on freestanding compilers.  */
15576
15577 #ifdef __STDC__
15578 # include <limits.h>
15579 #else
15580 # include <assert.h>
15581 #endif
15582
15583 #undef $ac_func
15584
15585 /* Override any gcc2 internal prototype to avoid an error.  */
15586 #ifdef __cplusplus
15587 extern "C"
15588 {
15589 #endif
15590 /* We use char because int might match the return type of a gcc2
15591    builtin and then its argument prototype would still apply.  */
15592 char $ac_func ();
15593 /* The GNU C library defines this for functions which it implements
15594     to always fail with ENOSYS.  Some functions are actually named
15595     something starting with __ and the normal name is an alias.  */
15596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15597 choke me
15598 #else
15599 char (*f) () = $ac_func;
15600 #endif
15601 #ifdef __cplusplus
15602 }
15603 #endif
15604
15605 int
15606 main ()
15607 {
15608 return f != $ac_func;
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615   (eval $ac_link) 2>conftest.er1
15616   ac_status=$?
15617   grep -v '^ *+' conftest.er1 >conftest.err
15618   rm -f conftest.er1
15619   cat conftest.err >&5
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); } &&
15622          { ac_try='test -z "$ac_c_werror_flag"
15623                          || test ! -s conftest.err'
15624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625   (eval $ac_try) 2>&5
15626   ac_status=$?
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); }; } &&
15629          { ac_try='test -s conftest$ac_exeext'
15630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631   (eval $ac_try) 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); }; }; then
15635   eval "$as_ac_var=yes"
15636 else
15637   echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640 eval "$as_ac_var=no"
15641 fi
15642 rm -f conftest.err conftest.$ac_objext \
15643       conftest$ac_exeext conftest.$ac_ext
15644 fi
15645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15647 if test `eval echo '${'$as_ac_var'}'` = yes; then
15648   cat >>confdefs.h <<_ACEOF
15649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15650 _ACEOF
15651
15652 fi
15653 done
15654
15655 LIBS="$oldLIBS"
15656
15657 # Configuration of machine-dependent code
15658 #
15659 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
15660 # ffi_closure_{alloc,free} which takes care of allocating trampolines
15661 # in executable memory.
15662 #
15663 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
15664 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
15665 machdep=
15666 case "$host" in
15667  alpha*-*-openbsd*)
15668     machdep="alpha_mach_dep.lo"
15669     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15670        { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15671 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15672     fi
15673     ;;
15674  alpha*-*-linux*)
15675     machdep="alpha_mach_dep.lo"
15676     ;;
15677  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15678
15679 cat >>confdefs.h <<\_ACEOF
15680 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
15681 _ACEOF
15682
15683     ;;
15684  mipstx39-*-elf*)
15685     machdep="mips_ultrix_mach_dep.lo"
15686
15687 cat >>confdefs.h <<\_ACEOF
15688 #define STACKBASE __stackbase
15689 _ACEOF
15690
15691
15692 cat >>confdefs.h <<\_ACEOF
15693 #define DATASTART_IS_ETEXT 1
15694 _ACEOF
15695
15696     ;;
15697  mips-dec-ultrix*)
15698     machdep="mips_ultrix_mach-dep.lo"
15699     ;;
15700  mips-nec-sysv*|mips-unknown-sysv*)
15701     ;;
15702  mips*-*-linux*)
15703     ;;
15704  mips-*-*)
15705     machdep="mips_sgi_mach_dep.lo"
15706     ;;
15707  sparc-*-netbsd*)
15708     machdep="sparc_netbsd_mach_dep.lo"
15709     ;;
15710  sparc-sun-solaris2.3)
15711     machdep="sparc_mach_dep.lo"
15712
15713 cat >>confdefs.h <<\_ACEOF
15714 #define SUNOS53_SHARED_LIB 1
15715 _ACEOF
15716
15717     ;;
15718  sparc*-sun-solaris2.*)
15719     machdep="sparc_mach_dep.lo"
15720     ;;
15721  ia64-*-*)
15722     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15723     ;;
15724 esac
15725
15726 cat >>confdefs.h <<\_ACEOF
15727 #define NO_EXECUTE_PERMISSION 1
15728 _ACEOF
15729
15730 if test x"$machdep" = x; then
15731 echo "$as_me:$LINENO: result: $machdep" >&5
15732 echo "${ECHO_T}$machdep" >&6
15733    machdep="mach_dep.lo"
15734 fi
15735 addobjs="$addobjs $machdep"
15736
15737
15738
15739
15740
15741 #
15742 # Check for AViiON Machines running DGUX
15743 #
15744 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
15745 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
15746 ac_is_dgux=no
15747 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15748   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15749 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15750 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15751   echo $ECHO_N "(cached) $ECHO_C" >&6
15752 fi
15753 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15754 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15755 else
15756   # Is the header compilable?
15757 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15758 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h.  */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h.  */
15765 $ac_includes_default
15766 #include <sys/dg_sys_info.h>
15767 _ACEOF
15768 rm -f conftest.$ac_objext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770   (eval $ac_compile) 2>conftest.er1
15771   ac_status=$?
15772   grep -v '^ *+' conftest.er1 >conftest.err
15773   rm -f conftest.er1
15774   cat conftest.err >&5
15775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); } &&
15777          { ac_try='test -z "$ac_c_werror_flag"
15778                          || test ! -s conftest.err'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; } &&
15784          { ac_try='test -s conftest.$ac_objext'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   ac_header_compiler=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_header_compiler=no
15796 fi
15797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15799 echo "${ECHO_T}$ac_header_compiler" >&6
15800
15801 # Is the header present?
15802 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15803 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810 #include <sys/dg_sys_info.h>
15811 _ACEOF
15812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15814   ac_status=$?
15815   grep -v '^ *+' conftest.er1 >conftest.err
15816   rm -f conftest.er1
15817   cat conftest.err >&5
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); } >/dev/null; then
15820   if test -s conftest.err; then
15821     ac_cpp_err=$ac_c_preproc_warn_flag
15822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15823   else
15824     ac_cpp_err=
15825   fi
15826 else
15827   ac_cpp_err=yes
15828 fi
15829 if test -z "$ac_cpp_err"; then
15830   ac_header_preproc=yes
15831 else
15832   echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835   ac_header_preproc=no
15836 fi
15837 rm -f conftest.err conftest.$ac_ext
15838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15839 echo "${ECHO_T}$ac_header_preproc" >&6
15840
15841 # So?  What about this header?
15842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15843   yes:no: )
15844     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15845 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15846     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15847 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15848     ac_header_preproc=yes
15849     ;;
15850   no:yes:* )
15851     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15852 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15853     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
15854 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
15855     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15856 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15857     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
15858 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15859     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15860 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15861     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15862 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15863     (
15864       cat <<\_ASBOX
15865 ## ------------------------------------------ ##
15866 ## Report this to the AC_PACKAGE_NAME lists.  ##
15867 ## ------------------------------------------ ##
15868 _ASBOX
15869     ) |
15870       sed "s/^/$as_me: WARNING:     /" >&2
15871     ;;
15872 esac
15873 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15874 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15875 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15876   echo $ECHO_N "(cached) $ECHO_C" >&6
15877 else
15878   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15879 fi
15880 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15881 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15882
15883 fi
15884 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15885   ac_is_dgux=yes;
15886 fi
15887
15888
15889
15890 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
15891 echo "${ECHO_T}$ac_is_dgux" >&6
15892     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15893 if test $ac_is_dgux = yes; then
15894     if test "$enable_full_debug" = "yes"; then
15895       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15896       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15897     else
15898       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15899       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15900     fi
15901
15902
15903 fi
15904
15905 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
15906 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
15907 case "$host" in
15908  *aix*)
15909     if test "$GCC" = yes; then
15910        echo "$as_me:$LINENO: result: yes" >&5
15911 echo "${ECHO_T}yes" >&6
15912        new_CFLAGS=
15913        for i in $CFLAGS; do
15914           case "$i" in
15915            -O*)
15916               ;;
15917            *)
15918               new_CFLAGS="$new_CFLAGS $i"
15919               ;;
15920           esac
15921        done
15922        CFLAGS="$new_CFLAGS"
15923     else
15924        echo "$as_me:$LINENO: result: no" >&5
15925 echo "${ECHO_T}no" >&6
15926     fi
15927     ;;
15928  *) echo "$as_me:$LINENO: result: no" >&5
15929 echo "${ECHO_T}no" >&6 ;;
15930 esac
15931
15932 MY_CFLAGS="$CFLAGS"
15933
15934
15935
15936 cat >>confdefs.h <<\_ACEOF
15937 #define SILENT 1
15938 _ACEOF
15939
15940
15941 cat >>confdefs.h <<\_ACEOF
15942 #define NO_SIGNALS 1
15943 _ACEOF
15944
15945
15946 cat >>confdefs.h <<\_ACEOF
15947 #define ALL_INTERIOR_POINTERS 1
15948 _ACEOF
15949
15950
15951
15952 cat >>confdefs.h <<\_ACEOF
15953 #define JAVA_FINALIZATION 1
15954 _ACEOF
15955
15956
15957 cat >>confdefs.h <<\_ACEOF
15958 #define GC_GCJ_SUPPORT 1
15959 _ACEOF
15960
15961
15962 cat >>confdefs.h <<\_ACEOF
15963 #define ATOMIC_UNCOLLECTABLE 1
15964 _ACEOF
15965
15966
15967 # Check whether --enable-gc-debug or --disable-gc-debug was given.
15968 if test "${enable_gc_debug+set}" = set; then
15969   enableval="$enable_gc_debug"
15970    if test "$enable_gc_debug" = "yes"; then
15971     { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
15972 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
15973
15974 cat >>confdefs.h <<\_ACEOF
15975 #define KEEP_BACK_PTRS 1
15976 _ACEOF
15977
15978
15979 cat >>confdefs.h <<\_ACEOF
15980 #define DBG_HDRS_ALL 1
15981 _ACEOF
15982
15983     case $host in
15984       ia64-*-linux* )
15985
15986 cat >>confdefs.h <<\_ACEOF
15987 #define MAKE_BACK_GRAPH 1
15988 _ACEOF
15989
15990       ;;
15991       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
15992         cat >>confdefs.h <<\_ACEOF
15993 #define MAKE_BACK_GRAPH 1
15994 _ACEOF
15995
15996         { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15997 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
15998
15999 cat >>confdefs.h <<\_ACEOF
16000 #define SAVE_CALL_COUNT 8
16001 _ACEOF
16002
16003       ;;
16004       i345686-*-dgux*)
16005         cat >>confdefs.h <<\_ACEOF
16006 #define MAKE_BACK_GRAPH 1
16007 _ACEOF
16008
16009       ;;
16010     esac
16011   fi
16012 fi;
16013
16014 if test "${gc_use_mmap}" = "yes"; then
16015
16016 cat >>confdefs.h <<\_ACEOF
16017 #define USE_MMAP 1
16018 _ACEOF
16019
16020 fi
16021
16022 if test -n "$with_cross_host" &&
16023    test x"$with_cross_host" != x"no"; then
16024   toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16025   toolexeclibdir='$(toolexecdir)/lib'
16026 else
16027   toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16028   toolexeclibdir='$(libdir)'
16029 fi
16030 multi_os_directory=`$CC -print-multi-os-directory`
16031 case $multi_os_directory in
16032   .) ;; # Avoid trailing /.
16033   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16034 esac
16035
16036
16037
16038 if test "${multilib}" = "yes"; then
16039   multilib_arg="--enable-multilib"
16040 else
16041   multilib_arg=
16042 fi
16043
16044                     ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16045
16046
16047                     ac_config_files="$ac_config_files Makefile include/Makefile"
16048
16049 cat >confcache <<\_ACEOF
16050 # This file is a shell script that caches the results of configure
16051 # tests run on this system so they can be shared between configure
16052 # scripts and configure runs, see configure's option --config-cache.
16053 # It is not useful on other systems.  If it contains results you don't
16054 # want to keep, you may remove or edit it.
16055 #
16056 # config.status only pays attention to the cache file if you give it
16057 # the --recheck option to rerun configure.
16058 #
16059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16061 # following values.
16062
16063 _ACEOF
16064
16065 # The following way of writing the cache mishandles newlines in values,
16066 # but we know of no workaround that is simple, portable, and efficient.
16067 # So, don't put newlines in cache variables' values.
16068 # Ultrix sh set writes to stderr and can't be redirected directly,
16069 # and sets the high bit in the cache file unless we assign to the vars.
16070 {
16071   (set) 2>&1 |
16072     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16073     *ac_space=\ *)
16074       # `set' does not quote correctly, so add quotes (double-quote
16075       # substitution turns \\\\ into \\, and sed turns \\ into \).
16076       sed -n \
16077         "s/'/'\\\\''/g;
16078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16079       ;;
16080     *)
16081       # `set' quotes correctly as required by POSIX, so do not add quotes.
16082       sed -n \
16083         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16084       ;;
16085     esac;
16086 } |
16087   sed '
16088      t clear
16089      : clear
16090      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16091      t end
16092      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16093      : end' >>confcache
16094 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16095   if test -w $cache_file; then
16096     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16097     cat confcache >$cache_file
16098   else
16099     echo "not updating unwritable cache $cache_file"
16100   fi
16101 fi
16102 rm -f confcache
16103
16104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16105 # Let make expand exec_prefix.
16106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16107
16108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16110 # trailing colons and then remove the whole line if VPATH becomes empty
16111 # (actually we leave an empty line to preserve line numbers).
16112 if test "x$srcdir" = x.; then
16113   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16114 s/:*\$(srcdir):*/:/;
16115 s/:*\${srcdir}:*/:/;
16116 s/:*@srcdir@:*/:/;
16117 s/^\([^=]*=[     ]*\):*/\1/;
16118 s/:*$//;
16119 s/^[^=]*=[       ]*$//;
16120 }'
16121 fi
16122
16123 DEFS=-DHAVE_CONFIG_H
16124
16125 ac_libobjs=
16126 ac_ltlibobjs=
16127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16128   # 1. Remove the extension, and $U if already installed.
16129   ac_i=`echo "$ac_i" |
16130          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16131   # 2. Add them.
16132   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16133   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16134 done
16135 LIBOBJS=$ac_libobjs
16136
16137 LTLIBOBJS=$ac_ltlibobjs
16138
16139
16140 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16141   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16142 Usually this means the macro was only invoked conditionally." >&5
16143 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16144 Usually this means the macro was only invoked conditionally." >&2;}
16145    { (exit 1); exit 1; }; }
16146 fi
16147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16148   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16149 Usually this means the macro was only invoked conditionally." >&5
16150 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16151 Usually this means the macro was only invoked conditionally." >&2;}
16152    { (exit 1); exit 1; }; }
16153 fi
16154 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16155   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16156 Usually this means the macro was only invoked conditionally." >&5
16157 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16158 Usually this means the macro was only invoked conditionally." >&2;}
16159    { (exit 1); exit 1; }; }
16160 fi
16161 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16162   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16163 Usually this means the macro was only invoked conditionally." >&5
16164 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16165 Usually this means the macro was only invoked conditionally." >&2;}
16166    { (exit 1); exit 1; }; }
16167 fi
16168 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16169   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16170 Usually this means the macro was only invoked conditionally." >&5
16171 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16172 Usually this means the macro was only invoked conditionally." >&2;}
16173    { (exit 1); exit 1; }; }
16174 fi
16175 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16176   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16177 Usually this means the macro was only invoked conditionally." >&5
16178 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16179 Usually this means the macro was only invoked conditionally." >&2;}
16180    { (exit 1); exit 1; }; }
16181 fi
16182 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16183   { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16184 Usually this means the macro was only invoked conditionally." >&5
16185 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16186 Usually this means the macro was only invoked conditionally." >&2;}
16187    { (exit 1); exit 1; }; }
16188 fi
16189
16190 : ${CONFIG_STATUS=./config.status}
16191 ac_clean_files_save=$ac_clean_files
16192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16195 cat >$CONFIG_STATUS <<_ACEOF
16196 #! $SHELL
16197 # Generated by $as_me.
16198 # Run this file to recreate the current configuration.
16199 # Compiler output produced by configure, useful for debugging
16200 # configure, is in config.log if it exists.
16201
16202 debug=false
16203 ac_cs_recheck=false
16204 ac_cs_silent=false
16205 SHELL=\${CONFIG_SHELL-$SHELL}
16206 _ACEOF
16207
16208 cat >>$CONFIG_STATUS <<\_ACEOF
16209 ## --------------------- ##
16210 ## M4sh Initialization.  ##
16211 ## --------------------- ##
16212
16213 # Be Bourne compatible
16214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16215   emulate sh
16216   NULLCMD=:
16217   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16218   # is contrary to our usage.  Disable this feature.
16219   alias -g '${1+"$@"}'='"$@"'
16220 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16221   set -o posix
16222 fi
16223 DUALCASE=1; export DUALCASE # for MKS sh
16224
16225 # Support unset when possible.
16226 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16227   as_unset=unset
16228 else
16229   as_unset=false
16230 fi
16231
16232
16233 # Work around bugs in pre-3.0 UWIN ksh.
16234 $as_unset ENV MAIL MAILPATH
16235 PS1='$ '
16236 PS2='> '
16237 PS4='+ '
16238
16239 # NLS nuisances.
16240 for as_var in \
16241   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16242   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16243   LC_TELEPHONE LC_TIME
16244 do
16245   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16246     eval $as_var=C; export $as_var
16247   else
16248     $as_unset $as_var
16249   fi
16250 done
16251
16252 # Required to use basename.
16253 if expr a : '\(a\)' >/dev/null 2>&1; then
16254   as_expr=expr
16255 else
16256   as_expr=false
16257 fi
16258
16259 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16260   as_basename=basename
16261 else
16262   as_basename=false
16263 fi
16264
16265
16266 # Name of the executable.
16267 as_me=`$as_basename "$0" ||
16268 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16269          X"$0" : 'X\(//\)$' \| \
16270          X"$0" : 'X\(/\)$' \| \
16271          .     : '\(.\)' 2>/dev/null ||
16272 echo X/"$0" |
16273     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16274           /^X\/\(\/\/\)$/{ s//\1/; q; }
16275           /^X\/\(\/\).*/{ s//\1/; q; }
16276           s/.*/./; q'`
16277
16278
16279 # PATH needs CR, and LINENO needs CR and PATH.
16280 # Avoid depending upon Character Ranges.
16281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16284 as_cr_digits='0123456789'
16285 as_cr_alnum=$as_cr_Letters$as_cr_digits
16286
16287 # The user is always right.
16288 if test "${PATH_SEPARATOR+set}" != set; then
16289   echo "#! /bin/sh" >conf$$.sh
16290   echo  "exit 0"   >>conf$$.sh
16291   chmod +x conf$$.sh
16292   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16293     PATH_SEPARATOR=';'
16294   else
16295     PATH_SEPARATOR=:
16296   fi
16297   rm -f conf$$.sh
16298 fi
16299
16300
16301   as_lineno_1=$LINENO
16302   as_lineno_2=$LINENO
16303   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16304   test "x$as_lineno_1" != "x$as_lineno_2" &&
16305   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16306   # Find who we are.  Look in the path if we contain no path at all
16307   # relative or not.
16308   case $0 in
16309     *[\\/]* ) as_myself=$0 ;;
16310     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16311 for as_dir in $PATH
16312 do
16313   IFS=$as_save_IFS
16314   test -z "$as_dir" && as_dir=.
16315   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16316 done
16317
16318        ;;
16319   esac
16320   # We did not find ourselves, most probably we were run as `sh COMMAND'
16321   # in which case we are not to be found in the path.
16322   if test "x$as_myself" = x; then
16323     as_myself=$0
16324   fi
16325   if test ! -f "$as_myself"; then
16326     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16327 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16328    { (exit 1); exit 1; }; }
16329   fi
16330   case $CONFIG_SHELL in
16331   '')
16332     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16333 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16334 do
16335   IFS=$as_save_IFS
16336   test -z "$as_dir" && as_dir=.
16337   for as_base in sh bash ksh sh5; do
16338          case $as_dir in
16339          /*)
16340            if ("$as_dir/$as_base" -c '
16341   as_lineno_1=$LINENO
16342   as_lineno_2=$LINENO
16343   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16344   test "x$as_lineno_1" != "x$as_lineno_2" &&
16345   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16346              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16347              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16348              CONFIG_SHELL=$as_dir/$as_base
16349              export CONFIG_SHELL
16350              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16351            fi;;
16352          esac
16353        done
16354 done
16355 ;;
16356   esac
16357
16358   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16359   # uniformly replaced by the line number.  The first 'sed' inserts a
16360   # line-number line before each line; the second 'sed' does the real
16361   # work.  The second script uses 'N' to pair each line-number line
16362   # with the numbered line, and appends trailing '-' during
16363   # substitution so that $LINENO is not a special case at line end.
16364   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16365   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16366   sed '=' <$as_myself |
16367     sed '
16368       N
16369       s,$,-,
16370       : loop
16371       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16372       t loop
16373       s,-$,,
16374       s,^['$as_cr_digits']*\n,,
16375     ' >$as_me.lineno &&
16376   chmod +x $as_me.lineno ||
16377     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16378 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16379    { (exit 1); exit 1; }; }
16380
16381   # Don't try to exec as it changes $[0], causing all sort of problems
16382   # (the dirname of $[0] is not the place where we might find the
16383   # original and so on.  Autoconf is especially sensible to this).
16384   . ./$as_me.lineno
16385   # Exit status is that of the last command.
16386   exit
16387 }
16388
16389
16390 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16391   *c*,-n*) ECHO_N= ECHO_C='
16392 ' ECHO_T='      ' ;;
16393   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16394   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16395 esac
16396
16397 if expr a : '\(a\)' >/dev/null 2>&1; then
16398   as_expr=expr
16399 else
16400   as_expr=false
16401 fi
16402
16403 rm -f conf$$ conf$$.exe conf$$.file
16404 echo >conf$$.file
16405 if ln -s conf$$.file conf$$ 2>/dev/null; then
16406   # We could just check for DJGPP; but this test a) works b) is more generic
16407   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16408   if test -f conf$$.exe; then
16409     # Don't use ln at all; we don't have any links
16410     as_ln_s='cp -p'
16411   else
16412     as_ln_s='ln -s'
16413   fi
16414 elif ln conf$$.file conf$$ 2>/dev/null; then
16415   as_ln_s=ln
16416 else
16417   as_ln_s='cp -p'
16418 fi
16419 rm -f conf$$ conf$$.exe conf$$.file
16420
16421 if mkdir -p . 2>/dev/null; then
16422   as_mkdir_p=:
16423 else
16424   test -d ./-p && rmdir ./-p
16425   as_mkdir_p=false
16426 fi
16427
16428 as_executable_p="test -f"
16429
16430 # Sed expression to map a string onto a valid CPP name.
16431 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16432
16433 # Sed expression to map a string onto a valid variable name.
16434 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16435
16436
16437 # IFS
16438 # We need space, tab and new line, in precisely that order.
16439 as_nl='
16440 '
16441 IFS="   $as_nl"
16442
16443 # CDPATH.
16444 $as_unset CDPATH
16445
16446 exec 6>&1
16447
16448 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16449 # report actual input values of CONFIG_FILES etc. instead of their
16450 # values after options handling.  Logging --version etc. is OK.
16451 exec 5>>config.log
16452 {
16453   echo
16454   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16455 ## Running $as_me. ##
16456 _ASBOX
16457 } >&5
16458 cat >&5 <<_CSEOF
16459
16460 This file was extended by $as_me, which was
16461 generated by GNU Autoconf 2.59.  Invocation command line was
16462
16463   CONFIG_FILES    = $CONFIG_FILES
16464   CONFIG_HEADERS  = $CONFIG_HEADERS
16465   CONFIG_LINKS    = $CONFIG_LINKS
16466   CONFIG_COMMANDS = $CONFIG_COMMANDS
16467   $ $0 $@
16468
16469 _CSEOF
16470 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16471 echo >&5
16472 _ACEOF
16473
16474 # Files that config.status was made for.
16475 if test -n "$ac_config_files"; then
16476   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16477 fi
16478
16479 if test -n "$ac_config_headers"; then
16480   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16481 fi
16482
16483 if test -n "$ac_config_links"; then
16484   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16485 fi
16486
16487 if test -n "$ac_config_commands"; then
16488   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16489 fi
16490
16491 cat >>$CONFIG_STATUS <<\_ACEOF
16492
16493 ac_cs_usage="\
16494 \`$as_me' instantiates files from templates according to the
16495 current configuration.
16496
16497 Usage: $0 [OPTIONS] [FILE]...
16498
16499   -h, --help       print this help, then exit
16500   -V, --version    print version number, then exit
16501   -q, --quiet      do not print progress messages
16502   -d, --debug      don't remove temporary files
16503       --recheck    update $as_me by reconfiguring in the same conditions
16504   --file=FILE[:TEMPLATE]
16505                    instantiate the configuration file FILE
16506   --header=FILE[:TEMPLATE]
16507                    instantiate the configuration header FILE
16508
16509 Configuration files:
16510 $config_files
16511
16512 Configuration headers:
16513 $config_headers
16514
16515 Configuration commands:
16516 $config_commands
16517
16518 Report bugs to <bug-autoconf@gnu.org>."
16519 _ACEOF
16520
16521 cat >>$CONFIG_STATUS <<_ACEOF
16522 ac_cs_version="\\
16523 config.status
16524 configured by $0, generated by GNU Autoconf 2.59,
16525   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16526
16527 Copyright (C) 2003 Free Software Foundation, Inc.
16528 This config.status script is free software; the Free Software Foundation
16529 gives unlimited permission to copy, distribute and modify it."
16530 srcdir=$srcdir
16531 INSTALL="$INSTALL"
16532 _ACEOF
16533
16534 cat >>$CONFIG_STATUS <<\_ACEOF
16535 # If no file are specified by the user, then we need to provide default
16536 # value.  By we need to know if files were specified by the user.
16537 ac_need_defaults=:
16538 while test $# != 0
16539 do
16540   case $1 in
16541   --*=*)
16542     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16543     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16544     ac_shift=:
16545     ;;
16546   -*)
16547     ac_option=$1
16548     ac_optarg=$2
16549     ac_shift=shift
16550     ;;
16551   *) # This is not an option, so the user has probably given explicit
16552      # arguments.
16553      ac_option=$1
16554      ac_need_defaults=false;;
16555   esac
16556
16557   case $ac_option in
16558   # Handling of the options.
16559 _ACEOF
16560 cat >>$CONFIG_STATUS <<\_ACEOF
16561   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16562     ac_cs_recheck=: ;;
16563   --version | --vers* | -V )
16564     echo "$ac_cs_version"; exit 0 ;;
16565   --he | --h)
16566     # Conflict between --help and --header
16567     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16568 Try \`$0 --help' for more information." >&5
16569 echo "$as_me: error: ambiguous option: $1
16570 Try \`$0 --help' for more information." >&2;}
16571    { (exit 1); exit 1; }; };;
16572   --help | --hel | -h )
16573     echo "$ac_cs_usage"; exit 0 ;;
16574   --debug | --d* | -d )
16575     debug=: ;;
16576   --file | --fil | --fi | --f )
16577     $ac_shift
16578     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16579     ac_need_defaults=false;;
16580   --header | --heade | --head | --hea )
16581     $ac_shift
16582     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16583     ac_need_defaults=false;;
16584   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16585   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16586     ac_cs_silent=: ;;
16587
16588   # This is an error.
16589   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16590 Try \`$0 --help' for more information." >&5
16591 echo "$as_me: error: unrecognized option: $1
16592 Try \`$0 --help' for more information." >&2;}
16593    { (exit 1); exit 1; }; } ;;
16594
16595   *) ac_config_targets="$ac_config_targets $1" ;;
16596
16597   esac
16598   shift
16599 done
16600
16601 ac_configure_extra_args=
16602
16603 if $ac_cs_silent; then
16604   exec 6>/dev/null
16605   ac_configure_extra_args="$ac_configure_extra_args --silent"
16606 fi
16607
16608 _ACEOF
16609 cat >>$CONFIG_STATUS <<_ACEOF
16610 if \$ac_cs_recheck; then
16611   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16612   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16613 fi
16614
16615 _ACEOF
16616
16617 cat >>$CONFIG_STATUS <<_ACEOF
16618 #
16619 # INIT-COMMANDS section.
16620 #
16621
16622
16623 srcdir="$srcdir"
16624 host="$host"
16625 target="$target"
16626 with_multisubdir="$with_multisubdir"
16627 with_multisrctop="$with_multisrctop"
16628 with_target_subdir="$with_target_subdir"
16629 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16630 multi_basedir="$multi_basedir"
16631 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16632 CC="$CC"
16633 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16634
16635
16636 # The HP-UX ksh and POSIX shell print the target directory to stdout
16637 # if CDPATH is set.
16638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16639
16640 sed_quote_subst='$sed_quote_subst'
16641 double_quote_subst='$double_quote_subst'
16642 delay_variable_subst='$delay_variable_subst'
16643 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16644 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16645 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16646 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16647 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16648 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16649 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16650 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16651 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16652 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16653 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16654 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16655 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16656 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16657 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16658 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16659 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16660 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16661 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16662 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16663 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16664 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16665 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16666 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16667 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16668 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16669 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16670 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16671 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16672 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16673 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16674 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16675 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16676 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16677 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16678 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16679 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16680 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16681 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16682 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16683 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16684 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16685 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16686 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16687 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16688 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16689 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16690 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16691 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16692 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16693 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16694 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16695 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16696 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16697 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16698 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16699 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16700 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16701 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16702 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16703 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16704 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16705 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16706 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16707 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16708 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16709 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16710 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16711 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16712 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16713 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16714 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16715 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16716 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16717 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16718 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16719 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16720 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16721 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16722 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16723 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16724 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16725 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16726 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16727 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16728 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16729 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16730 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16731 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16732 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16733 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16734 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16735 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16736 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16737 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16738 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16739 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16740 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16741 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16742 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16743 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16744 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16745 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16746 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16747 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16748 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16749 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16750 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16751 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16752 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16753 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16754 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16755 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16756 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16757 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16758 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16759 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16760 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16761 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16762 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16763 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16764 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16765 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16766 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16767 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16768 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16769 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16770 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16771 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16772 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16773 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16774 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16775 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16776 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16777 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16778 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16779 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16780 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16781 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16782 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16783 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16784 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16785 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16786 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16787 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16788 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16789 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16790 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16791 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16792 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16793 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16794 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16795 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16796 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16797 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16798 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16799 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16800 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16801 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16802 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16803 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16804 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16805
16806 LTCC='$LTCC'
16807 LTCFLAGS='$LTCFLAGS'
16808 compiler='$compiler_DEFAULT'
16809
16810 # Quote evaled strings.
16811 for var in SED \
16812 GREP \
16813 EGREP \
16814 FGREP \
16815 LD \
16816 NM \
16817 LN_S \
16818 lt_SP2NL \
16819 lt_NL2SP \
16820 reload_flag \
16821 deplibs_check_method \
16822 file_magic_cmd \
16823 AR \
16824 AR_FLAGS \
16825 STRIP \
16826 RANLIB \
16827 CC \
16828 CFLAGS \
16829 compiler \
16830 lt_cv_sys_global_symbol_pipe \
16831 lt_cv_sys_global_symbol_to_cdecl \
16832 lt_cv_sys_global_symbol_to_c_name_address \
16833 SHELL \
16834 ECHO \
16835 lt_prog_compiler_no_builtin_flag \
16836 lt_prog_compiler_wl \
16837 lt_prog_compiler_pic \
16838 lt_prog_compiler_static \
16839 lt_cv_prog_compiler_c_o \
16840 need_locks \
16841 shrext_cmds \
16842 export_dynamic_flag_spec \
16843 whole_archive_flag_spec \
16844 compiler_needs_object \
16845 with_gnu_ld \
16846 allow_undefined_flag \
16847 no_undefined_flag \
16848 hardcode_libdir_flag_spec \
16849 hardcode_libdir_flag_spec_ld \
16850 hardcode_libdir_separator \
16851 fix_srcfile_path \
16852 exclude_expsyms \
16853 include_expsyms \
16854 file_list_spec \
16855 variables_saved_for_relink \
16856 libname_spec \
16857 library_names_spec \
16858 soname_spec \
16859 finish_eval \
16860 old_striplib \
16861 striplib \
16862 predep_objects \
16863 postdep_objects \
16864 predeps \
16865 postdeps \
16866 compiler_lib_search_path \
16867 LD_CXX \
16868 compiler_CXX \
16869 lt_prog_compiler_no_builtin_flag_CXX \
16870 lt_prog_compiler_wl_CXX \
16871 lt_prog_compiler_pic_CXX \
16872 lt_prog_compiler_static_CXX \
16873 lt_cv_prog_compiler_c_o_CXX \
16874 export_dynamic_flag_spec_CXX \
16875 whole_archive_flag_spec_CXX \
16876 compiler_needs_object_CXX \
16877 with_gnu_ld_CXX \
16878 allow_undefined_flag_CXX \
16879 no_undefined_flag_CXX \
16880 hardcode_libdir_flag_spec_CXX \
16881 hardcode_libdir_flag_spec_ld_CXX \
16882 hardcode_libdir_separator_CXX \
16883 fix_srcfile_path_CXX \
16884 exclude_expsyms_CXX \
16885 include_expsyms_CXX \
16886 file_list_spec_CXX \
16887 predep_objects_CXX \
16888 postdep_objects_CXX \
16889 predeps_CXX \
16890 postdeps_CXX \
16891 compiler_lib_search_path_CXX; do
16892     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16893     *[\\\\\\\`\\"\\\$]*)
16894       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16895       ;;
16896     *)
16897       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16898       ;;
16899     esac
16900 done
16901
16902 # Double-quote double-evaled strings.
16903 for var in reload_cmds \
16904 old_postinstall_cmds \
16905 old_postuninstall_cmds \
16906 old_archive_cmds \
16907 extract_expsyms_cmds \
16908 old_archive_from_new_cmds \
16909 old_archive_from_expsyms_cmds \
16910 archive_cmds \
16911 archive_expsym_cmds \
16912 module_cmds \
16913 module_expsym_cmds \
16914 export_symbols_cmds \
16915 prelink_cmds \
16916 postinstall_cmds \
16917 postuninstall_cmds \
16918 finish_cmds \
16919 sys_lib_search_path_spec \
16920 sys_lib_dlsearch_path_spec \
16921 old_archive_cmds_CXX \
16922 old_archive_from_new_cmds_CXX \
16923 old_archive_from_expsyms_cmds_CXX \
16924 archive_cmds_CXX \
16925 archive_expsym_cmds_CXX \
16926 module_cmds_CXX \
16927 module_expsym_cmds_CXX \
16928 export_symbols_cmds_CXX \
16929 prelink_cmds_CXX; do
16930     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16931     *[\\\\\\\`\\"\\\$]*)
16932       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16933       ;;
16934     *)
16935       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16936       ;;
16937     esac
16938 done
16939
16940 # Fix-up fallback echo if it was mangled by the above quoting rules.
16941 case \$lt_ECHO in
16942 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16943   ;;
16944 esac
16945
16946 ac_aux_dir='$ac_aux_dir'
16947 xsi_shell='$xsi_shell'
16948 lt_shell_append='$lt_shell_append'
16949
16950 # See if we are running on zsh, and set the options which allow our
16951 # commands through without removal of \ escapes INIT.
16952 if test -n "\${ZSH_VERSION+set}" ; then
16953    setopt NO_GLOB_SUBST
16954 fi
16955
16956
16957     PACKAGE='$PACKAGE'
16958     VERSION='$VERSION'
16959     TIMESTAMP='$TIMESTAMP'
16960     RM='$RM'
16961     ofile='$ofile'
16962
16963
16964
16965
16966
16967
16968 _ACEOF
16969
16970
16971
16972 cat >>$CONFIG_STATUS <<\_ACEOF
16973 for ac_config_target in $ac_config_targets
16974 do
16975   case "$ac_config_target" in
16976   # Handling of arguments.
16977   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16978   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16979   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16980   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16981   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16982   "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
16983   "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
16984   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16985 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16986    { (exit 1); exit 1; }; };;
16987   esac
16988 done
16989
16990 # If the user did not use the arguments to specify the items to instantiate,
16991 # then the envvar interface is used.  Set only those that are not.
16992 # We use the long form for the default assignment because of an extremely
16993 # bizarre bug on SunOS 4.1.3.
16994 if $ac_need_defaults; then
16995   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16996   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16997   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16998 fi
16999
17000 # Have a temporary directory for convenience.  Make it in the build tree
17001 # simply because there is no reason to put it here, and in addition,
17002 # creating and moving files from /tmp can sometimes cause problems.
17003 # Create a temporary directory, and hook for its removal unless debugging.
17004 $debug ||
17005 {
17006   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17007   trap '{ (exit 1); exit 1; }' 1 2 13 15
17008 }
17009
17010 # Create a (secure) tmp directory for tmp files.
17011
17012 {
17013   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17014   test -n "$tmp" && test -d "$tmp"
17015 }  ||
17016 {
17017   tmp=./confstat$$-$RANDOM
17018   (umask 077 && mkdir $tmp)
17019 } ||
17020 {
17021    echo "$me: cannot create a temporary directory in ." >&2
17022    { (exit 1); exit 1; }
17023 }
17024
17025 _ACEOF
17026
17027 cat >>$CONFIG_STATUS <<_ACEOF
17028
17029 #
17030 # CONFIG_FILES section.
17031 #
17032
17033 # No need to generate the scripts if there are no CONFIG_FILES.
17034 # This happens for instance when ./config.status config.h
17035 if test -n "\$CONFIG_FILES"; then
17036   # Protect against being on the right side of a sed subst in config.status.
17037   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17038    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17039 s,@SHELL@,$SHELL,;t t
17040 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17041 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17042 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17043 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17044 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17045 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17046 s,@exec_prefix@,$exec_prefix,;t t
17047 s,@prefix@,$prefix,;t t
17048 s,@program_transform_name@,$program_transform_name,;t t
17049 s,@bindir@,$bindir,;t t
17050 s,@sbindir@,$sbindir,;t t
17051 s,@libexecdir@,$libexecdir,;t t
17052 s,@datadir@,$datadir,;t t
17053 s,@sysconfdir@,$sysconfdir,;t t
17054 s,@sharedstatedir@,$sharedstatedir,;t t
17055 s,@localstatedir@,$localstatedir,;t t
17056 s,@libdir@,$libdir,;t t
17057 s,@includedir@,$includedir,;t t
17058 s,@oldincludedir@,$oldincludedir,;t t
17059 s,@infodir@,$infodir,;t t
17060 s,@mandir@,$mandir,;t t
17061 s,@build_alias@,$build_alias,;t t
17062 s,@host_alias@,$host_alias,;t t
17063 s,@target_alias@,$target_alias,;t t
17064 s,@DEFS@,$DEFS,;t t
17065 s,@ECHO_C@,$ECHO_C,;t t
17066 s,@ECHO_N@,$ECHO_N,;t t
17067 s,@ECHO_T@,$ECHO_T,;t t
17068 s,@LIBS@,$LIBS,;t t
17069 s,@multi_basedir@,$multi_basedir,;t t
17070 s,@build@,$build,;t t
17071 s,@build_cpu@,$build_cpu,;t t
17072 s,@build_vendor@,$build_vendor,;t t
17073 s,@build_os@,$build_os,;t t
17074 s,@host@,$host,;t t
17075 s,@host_cpu@,$host_cpu,;t t
17076 s,@host_vendor@,$host_vendor,;t t
17077 s,@host_os@,$host_os,;t t
17078 s,@target@,$target,;t t
17079 s,@target_cpu@,$target_cpu,;t t
17080 s,@target_vendor@,$target_vendor,;t t
17081 s,@target_os@,$target_os,;t t
17082 s,@target_noncanonical@,$target_noncanonical,;t t
17083 s,@mkinstalldirs@,$mkinstalldirs,;t t
17084 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17085 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17086 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17087 s,@CYGPATH_W@,$CYGPATH_W,;t t
17088 s,@PACKAGE@,$PACKAGE,;t t
17089 s,@VERSION@,$VERSION,;t t
17090 s,@ACLOCAL@,$ACLOCAL,;t t
17091 s,@AUTOCONF@,$AUTOCONF,;t t
17092 s,@AUTOMAKE@,$AUTOMAKE,;t t
17093 s,@AUTOHEADER@,$AUTOHEADER,;t t
17094 s,@MAKEINFO@,$MAKEINFO,;t t
17095 s,@install_sh@,$install_sh,;t t
17096 s,@STRIP@,$STRIP,;t t
17097 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17098 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17099 s,@mkdir_p@,$mkdir_p,;t t
17100 s,@AWK@,$AWK,;t t
17101 s,@SET_MAKE@,$SET_MAKE,;t t
17102 s,@am__leading_dot@,$am__leading_dot,;t t
17103 s,@AMTAR@,$AMTAR,;t t
17104 s,@am__tar@,$am__tar,;t t
17105 s,@am__untar@,$am__untar,;t t
17106 s,@CC@,$CC,;t t
17107 s,@ac_ct_CC@,$ac_ct_CC,;t t
17108 s,@EXEEXT@,$EXEEXT,;t t
17109 s,@OBJEXT@,$OBJEXT,;t t
17110 s,@DEPDIR@,$DEPDIR,;t t
17111 s,@am__include@,$am__include,;t t
17112 s,@am__quote@,$am__quote,;t t
17113 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17114 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17115 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17116 s,@CCDEPMODE@,$CCDEPMODE,;t t
17117 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17118 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17119 s,@CXX@,$CXX,;t t
17120 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17121 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17122 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17123 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17124 s,@CFLAGS@,$CFLAGS,;t t
17125 s,@CXXFLAGS@,$CXXFLAGS,;t t
17126 s,@CCAS@,$CCAS,;t t
17127 s,@CCASFLAGS@,$CCASFLAGS,;t t
17128 s,@AS@,$AS,;t t
17129 s,@ac_ct_AS@,$ac_ct_AS,;t t
17130 s,@AR@,$AR,;t t
17131 s,@ac_ct_AR@,$ac_ct_AR,;t t
17132 s,@RANLIB@,$RANLIB,;t t
17133 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17134 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17135 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17136 s,@MAINT@,$MAINT,;t t
17137 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17138 s,@LIBTOOL@,$LIBTOOL,;t t
17139 s,@SED@,$SED,;t t
17140 s,@EGREP@,$EGREP,;t t
17141 s,@FGREP@,$FGREP,;t t
17142 s,@GREP@,$GREP,;t t
17143 s,@LD@,$LD,;t t
17144 s,@DUMPBIN@,$DUMPBIN,;t t
17145 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17146 s,@NM@,$NM,;t t
17147 s,@LN_S@,$LN_S,;t t
17148 s,@lt_ECHO@,$lt_ECHO,;t t
17149 s,@CPP@,$CPP,;t t
17150 s,@CPPFLAGS@,$CPPFLAGS,;t t
17151 s,@LDFLAGS@,$LDFLAGS,;t t
17152 s,@CXXCPP@,$CXXCPP,;t t
17153 s,@THREADLIBS@,$THREADLIBS,;t t
17154 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17155 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17156 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17157 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17158 s,@target_all@,$target_all,;t t
17159 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17160 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17161 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17162 s,@addobjs@,$addobjs,;t t
17163 s,@addincludes@,$addincludes,;t t
17164 s,@addlibs@,$addlibs,;t t
17165 s,@addtests@,$addtests,;t t
17166 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17167 s,@toolexecdir@,$toolexecdir,;t t
17168 s,@toolexeclibdir@,$toolexeclibdir,;t t
17169 s,@LIBOBJS@,$LIBOBJS,;t t
17170 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17171 CEOF
17172
17173 _ACEOF
17174
17175   cat >>$CONFIG_STATUS <<\_ACEOF
17176   # Split the substitutions into bite-sized pieces for seds with
17177   # small command number limits, like on Digital OSF/1 and HP-UX.
17178   ac_max_sed_lines=48
17179   ac_sed_frag=1 # Number of current file.
17180   ac_beg=1 # First line for current file.
17181   ac_end=$ac_max_sed_lines # Line after last line for current file.
17182   ac_more_lines=:
17183   ac_sed_cmds=
17184   while $ac_more_lines; do
17185     if test $ac_beg -gt 1; then
17186       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17187     else
17188       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17189     fi
17190     if test ! -s $tmp/subs.frag; then
17191       ac_more_lines=false
17192     else
17193       # The purpose of the label and of the branching condition is to
17194       # speed up the sed processing (if there are no `@' at all, there
17195       # is no need to browse any of the substitutions).
17196       # These are the two extra sed commands mentioned above.
17197       (echo ':t
17198   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17199       if test -z "$ac_sed_cmds"; then
17200         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17201       else
17202         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17203       fi
17204       ac_sed_frag=`expr $ac_sed_frag + 1`
17205       ac_beg=$ac_end
17206       ac_end=`expr $ac_end + $ac_max_sed_lines`
17207     fi
17208   done
17209   if test -z "$ac_sed_cmds"; then
17210     ac_sed_cmds=cat
17211   fi
17212 fi # test -n "$CONFIG_FILES"
17213
17214 _ACEOF
17215 cat >>$CONFIG_STATUS <<\_ACEOF
17216 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17217   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17218   case $ac_file in
17219   - | *:- | *:-:* ) # input from stdin
17220         cat >$tmp/stdin
17221         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17222         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17223   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17224         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17225   * )   ac_file_in=$ac_file.in ;;
17226   esac
17227
17228   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17229   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17231          X"$ac_file" : 'X\(//\)[^/]' \| \
17232          X"$ac_file" : 'X\(//\)$' \| \
17233          X"$ac_file" : 'X\(/\)' \| \
17234          .     : '\(.\)' 2>/dev/null ||
17235 echo X"$ac_file" |
17236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17237           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17238           /^X\(\/\/\)$/{ s//\1/; q; }
17239           /^X\(\/\).*/{ s//\1/; q; }
17240           s/.*/./; q'`
17241   { if $as_mkdir_p; then
17242     mkdir -p "$ac_dir"
17243   else
17244     as_dir="$ac_dir"
17245     as_dirs=
17246     while test ! -d "$as_dir"; do
17247       as_dirs="$as_dir $as_dirs"
17248       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17250          X"$as_dir" : 'X\(//\)[^/]' \| \
17251          X"$as_dir" : 'X\(//\)$' \| \
17252          X"$as_dir" : 'X\(/\)' \| \
17253          .     : '\(.\)' 2>/dev/null ||
17254 echo X"$as_dir" |
17255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17256           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17257           /^X\(\/\/\)$/{ s//\1/; q; }
17258           /^X\(\/\).*/{ s//\1/; q; }
17259           s/.*/./; q'`
17260     done
17261     test ! -n "$as_dirs" || mkdir $as_dirs
17262   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17263 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17264    { (exit 1); exit 1; }; }; }
17265
17266   ac_builddir=.
17267
17268 if test "$ac_dir" != .; then
17269   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17270   # A "../" for each directory in $ac_dir_suffix.
17271   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17272 else
17273   ac_dir_suffix= ac_top_builddir=
17274 fi
17275
17276 case $srcdir in
17277   .)  # No --srcdir option.  We are building in place.
17278     ac_srcdir=.
17279     if test -z "$ac_top_builddir"; then
17280        ac_top_srcdir=.
17281     else
17282        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17283     fi ;;
17284   [\\/]* | ?:[\\/]* )  # Absolute path.
17285     ac_srcdir=$srcdir$ac_dir_suffix;
17286     ac_top_srcdir=$srcdir ;;
17287   *) # Relative path.
17288     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17289     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17290 esac
17291
17292 # Do not use `cd foo && pwd` to compute absolute paths, because
17293 # the directories may not exist.
17294 case `pwd` in
17295 .) ac_abs_builddir="$ac_dir";;
17296 *)
17297   case "$ac_dir" in
17298   .) ac_abs_builddir=`pwd`;;
17299   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17300   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17301   esac;;
17302 esac
17303 case $ac_abs_builddir in
17304 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17305 *)
17306   case ${ac_top_builddir}. in
17307   .) ac_abs_top_builddir=$ac_abs_builddir;;
17308   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17309   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17310   esac;;
17311 esac
17312 case $ac_abs_builddir in
17313 .) ac_abs_srcdir=$ac_srcdir;;
17314 *)
17315   case $ac_srcdir in
17316   .) ac_abs_srcdir=$ac_abs_builddir;;
17317   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17318   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17319   esac;;
17320 esac
17321 case $ac_abs_builddir in
17322 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17323 *)
17324   case $ac_top_srcdir in
17325   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17326   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17327   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17328   esac;;
17329 esac
17330
17331
17332   case $INSTALL in
17333   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17334   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17335   esac
17336
17337   if test x"$ac_file" != x-; then
17338     { echo "$as_me:$LINENO: creating $ac_file" >&5
17339 echo "$as_me: creating $ac_file" >&6;}
17340     rm -f "$ac_file"
17341   fi
17342   # Let's still pretend it is `configure' which instantiates (i.e., don't
17343   # use $as_me), people would be surprised to read:
17344   #    /* config.h.  Generated by config.status.  */
17345   if test x"$ac_file" = x-; then
17346     configure_input=
17347   else
17348     configure_input="$ac_file.  "
17349   fi
17350   configure_input=$configure_input"Generated from `echo $ac_file_in |
17351                                      sed 's,.*/,,'` by configure."
17352
17353   # First look for the input files in the build tree, otherwise in the
17354   # src tree.
17355   ac_file_inputs=`IFS=:
17356     for f in $ac_file_in; do
17357       case $f in
17358       -) echo $tmp/stdin ;;
17359       [\\/$]*)
17360          # Absolute (can't be DOS-style, as IFS=:)
17361          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17362 echo "$as_me: error: cannot find input file: $f" >&2;}
17363    { (exit 1); exit 1; }; }
17364          echo "$f";;
17365       *) # Relative
17366          if test -f "$f"; then
17367            # Build tree
17368            echo "$f"
17369          elif test -f "$srcdir/$f"; then
17370            # Source tree
17371            echo "$srcdir/$f"
17372          else
17373            # /dev/null tree
17374            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17375 echo "$as_me: error: cannot find input file: $f" >&2;}
17376    { (exit 1); exit 1; }; }
17377          fi;;
17378       esac
17379     done` || { (exit 1); exit 1; }
17380 _ACEOF
17381 cat >>$CONFIG_STATUS <<_ACEOF
17382   sed "$ac_vpsub
17383 $extrasub
17384 _ACEOF
17385 cat >>$CONFIG_STATUS <<\_ACEOF
17386 :t
17387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17388 s,@configure_input@,$configure_input,;t t
17389 s,@srcdir@,$ac_srcdir,;t t
17390 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17391 s,@top_srcdir@,$ac_top_srcdir,;t t
17392 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17393 s,@builddir@,$ac_builddir,;t t
17394 s,@abs_builddir@,$ac_abs_builddir,;t t
17395 s,@top_builddir@,$ac_top_builddir,;t t
17396 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17397 s,@INSTALL@,$ac_INSTALL,;t t
17398 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17399   rm -f $tmp/stdin
17400   if test x"$ac_file" != x-; then
17401     mv $tmp/out $ac_file
17402   else
17403     cat $tmp/out
17404     rm -f $tmp/out
17405   fi
17406
17407 done
17408 _ACEOF
17409 cat >>$CONFIG_STATUS <<\_ACEOF
17410
17411 #
17412 # CONFIG_HEADER section.
17413 #
17414
17415 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17416 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17417 #
17418 # ac_d sets the value in "#define NAME VALUE" lines.
17419 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17420 ac_dB='[         ].*$,\1#\2'
17421 ac_dC=' '
17422 ac_dD=',;t'
17423 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17424 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17425 ac_uB='$,\1#\2define\3'
17426 ac_uC=' '
17427 ac_uD=',;t'
17428
17429 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17430   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17431   case $ac_file in
17432   - | *:- | *:-:* ) # input from stdin
17433         cat >$tmp/stdin
17434         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17435         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17436   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17437         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17438   * )   ac_file_in=$ac_file.in ;;
17439   esac
17440
17441   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17442 echo "$as_me: creating $ac_file" >&6;}
17443
17444   # First look for the input files in the build tree, otherwise in the
17445   # src tree.
17446   ac_file_inputs=`IFS=:
17447     for f in $ac_file_in; do
17448       case $f in
17449       -) echo $tmp/stdin ;;
17450       [\\/$]*)
17451          # Absolute (can't be DOS-style, as IFS=:)
17452          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17453 echo "$as_me: error: cannot find input file: $f" >&2;}
17454    { (exit 1); exit 1; }; }
17455          # Do quote $f, to prevent DOS paths from being IFS'd.
17456          echo "$f";;
17457       *) # Relative
17458          if test -f "$f"; then
17459            # Build tree
17460            echo "$f"
17461          elif test -f "$srcdir/$f"; then
17462            # Source tree
17463            echo "$srcdir/$f"
17464          else
17465            # /dev/null tree
17466            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17467 echo "$as_me: error: cannot find input file: $f" >&2;}
17468    { (exit 1); exit 1; }; }
17469          fi;;
17470       esac
17471     done` || { (exit 1); exit 1; }
17472   # Remove the trailing spaces.
17473   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17474
17475 _ACEOF
17476
17477 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17478 # `conftest.undefs', that substitutes the proper values into
17479 # config.h.in to produce config.h.  The first handles `#define'
17480 # templates, and the second `#undef' templates.
17481 # And first: Protect against being on the right side of a sed subst in
17482 # config.status.  Protect against being in an unquoted here document
17483 # in config.status.
17484 rm -f conftest.defines conftest.undefs
17485 # Using a here document instead of a string reduces the quoting nightmare.
17486 # Putting comments in sed scripts is not portable.
17487 #
17488 # `end' is used to avoid that the second main sed command (meant for
17489 # 0-ary CPP macros) applies to n-ary macro definitions.
17490 # See the Autoconf documentation for `clear'.
17491 cat >confdef2sed.sed <<\_ACEOF
17492 s/[\\&,]/\\&/g
17493 s,[\\$`],\\&,g
17494 t clear
17495 : clear
17496 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17497 t end
17498 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17499 : end
17500 _ACEOF
17501 # If some macros were called several times there might be several times
17502 # the same #defines, which is useless.  Nevertheless, we may not want to
17503 # sort them, since we want the *last* AC-DEFINE to be honored.
17504 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17505 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17506 rm -f confdef2sed.sed
17507
17508 # This sed command replaces #undef with comments.  This is necessary, for
17509 # example, in the case of _POSIX_SOURCE, which is predefined and required
17510 # on some systems where configure will not decide to define it.
17511 cat >>conftest.undefs <<\_ACEOF
17512 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17513 _ACEOF
17514
17515 # Break up conftest.defines because some shells have a limit on the size
17516 # of here documents, and old seds have small limits too (100 cmds).
17517 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17518 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17519 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17520 echo '  :' >>$CONFIG_STATUS
17521 rm -f conftest.tail
17522 while grep . conftest.defines >/dev/null
17523 do
17524   # Write a limited-size here document to $tmp/defines.sed.
17525   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17526   # Speed up: don't consider the non `#define' lines.
17527   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17528   # Work around the forget-to-reset-the-flag bug.
17529   echo 't clr' >>$CONFIG_STATUS
17530   echo ': clr' >>$CONFIG_STATUS
17531   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17532   echo 'CEOF
17533   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17534   rm -f $tmp/in
17535   mv $tmp/out $tmp/in
17536 ' >>$CONFIG_STATUS
17537   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17538   rm -f conftest.defines
17539   mv conftest.tail conftest.defines
17540 done
17541 rm -f conftest.defines
17542 echo '  fi # grep' >>$CONFIG_STATUS
17543 echo >>$CONFIG_STATUS
17544
17545 # Break up conftest.undefs because some shells have a limit on the size
17546 # of here documents, and old seds have small limits too (100 cmds).
17547 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17548 rm -f conftest.tail
17549 while grep . conftest.undefs >/dev/null
17550 do
17551   # Write a limited-size here document to $tmp/undefs.sed.
17552   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17553   # Speed up: don't consider the non `#undef'
17554   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17555   # Work around the forget-to-reset-the-flag bug.
17556   echo 't clr' >>$CONFIG_STATUS
17557   echo ': clr' >>$CONFIG_STATUS
17558   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17559   echo 'CEOF
17560   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17561   rm -f $tmp/in
17562   mv $tmp/out $tmp/in
17563 ' >>$CONFIG_STATUS
17564   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17565   rm -f conftest.undefs
17566   mv conftest.tail conftest.undefs
17567 done
17568 rm -f conftest.undefs
17569
17570 cat >>$CONFIG_STATUS <<\_ACEOF
17571   # Let's still pretend it is `configure' which instantiates (i.e., don't
17572   # use $as_me), people would be surprised to read:
17573   #    /* config.h.  Generated by config.status.  */
17574   if test x"$ac_file" = x-; then
17575     echo "/* Generated by configure.  */" >$tmp/config.h
17576   else
17577     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17578   fi
17579   cat $tmp/in >>$tmp/config.h
17580   rm -f $tmp/in
17581   if test x"$ac_file" != x-; then
17582     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17583       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17584 echo "$as_me: $ac_file is unchanged" >&6;}
17585     else
17586       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17588          X"$ac_file" : 'X\(//\)[^/]' \| \
17589          X"$ac_file" : 'X\(//\)$' \| \
17590          X"$ac_file" : 'X\(/\)' \| \
17591          .     : '\(.\)' 2>/dev/null ||
17592 echo X"$ac_file" |
17593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17594           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17595           /^X\(\/\/\)$/{ s//\1/; q; }
17596           /^X\(\/\).*/{ s//\1/; q; }
17597           s/.*/./; q'`
17598       { if $as_mkdir_p; then
17599     mkdir -p "$ac_dir"
17600   else
17601     as_dir="$ac_dir"
17602     as_dirs=
17603     while test ! -d "$as_dir"; do
17604       as_dirs="$as_dir $as_dirs"
17605       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17607          X"$as_dir" : 'X\(//\)[^/]' \| \
17608          X"$as_dir" : 'X\(//\)$' \| \
17609          X"$as_dir" : 'X\(/\)' \| \
17610          .     : '\(.\)' 2>/dev/null ||
17611 echo X"$as_dir" |
17612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17613           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17614           /^X\(\/\/\)$/{ s//\1/; q; }
17615           /^X\(\/\).*/{ s//\1/; q; }
17616           s/.*/./; q'`
17617     done
17618     test ! -n "$as_dirs" || mkdir $as_dirs
17619   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17620 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17621    { (exit 1); exit 1; }; }; }
17622
17623       rm -f $ac_file
17624       mv $tmp/config.h $ac_file
17625     fi
17626   else
17627     cat $tmp/config.h
17628     rm -f $tmp/config.h
17629   fi
17630 # Compute $ac_file's index in $config_headers.
17631 _am_stamp_count=1
17632 for _am_header in $config_headers :; do
17633   case $_am_header in
17634     $ac_file | $ac_file:* )
17635       break ;;
17636     * )
17637       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17638   esac
17639 done
17640 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17641 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17642          X$ac_file : 'X\(//\)[^/]' \| \
17643          X$ac_file : 'X\(//\)$' \| \
17644          X$ac_file : 'X\(/\)' \| \
17645          .     : '\(.\)' 2>/dev/null ||
17646 echo X$ac_file |
17647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17648           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17649           /^X\(\/\/\)$/{ s//\1/; q; }
17650           /^X\(\/\).*/{ s//\1/; q; }
17651           s/.*/./; q'`/stamp-h$_am_stamp_count
17652 done
17653 _ACEOF
17654 cat >>$CONFIG_STATUS <<\_ACEOF
17655
17656 #
17657 # CONFIG_COMMANDS section.
17658 #
17659 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17660   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17661   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17662   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17663 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17664          X"$ac_dest" : 'X\(//\)[^/]' \| \
17665          X"$ac_dest" : 'X\(//\)$' \| \
17666          X"$ac_dest" : 'X\(/\)' \| \
17667          .     : '\(.\)' 2>/dev/null ||
17668 echo X"$ac_dest" |
17669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17670           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17671           /^X\(\/\/\)$/{ s//\1/; q; }
17672           /^X\(\/\).*/{ s//\1/; q; }
17673           s/.*/./; q'`
17674   { if $as_mkdir_p; then
17675     mkdir -p "$ac_dir"
17676   else
17677     as_dir="$ac_dir"
17678     as_dirs=
17679     while test ! -d "$as_dir"; do
17680       as_dirs="$as_dir $as_dirs"
17681       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17683          X"$as_dir" : 'X\(//\)[^/]' \| \
17684          X"$as_dir" : 'X\(//\)$' \| \
17685          X"$as_dir" : 'X\(/\)' \| \
17686          .     : '\(.\)' 2>/dev/null ||
17687 echo X"$as_dir" |
17688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17689           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17690           /^X\(\/\/\)$/{ s//\1/; q; }
17691           /^X\(\/\).*/{ s//\1/; q; }
17692           s/.*/./; q'`
17693     done
17694     test ! -n "$as_dirs" || mkdir $as_dirs
17695   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17696 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17697    { (exit 1); exit 1; }; }; }
17698
17699   ac_builddir=.
17700
17701 if test "$ac_dir" != .; then
17702   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17703   # A "../" for each directory in $ac_dir_suffix.
17704   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17705 else
17706   ac_dir_suffix= ac_top_builddir=
17707 fi
17708
17709 case $srcdir in
17710   .)  # No --srcdir option.  We are building in place.
17711     ac_srcdir=.
17712     if test -z "$ac_top_builddir"; then
17713        ac_top_srcdir=.
17714     else
17715        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17716     fi ;;
17717   [\\/]* | ?:[\\/]* )  # Absolute path.
17718     ac_srcdir=$srcdir$ac_dir_suffix;
17719     ac_top_srcdir=$srcdir ;;
17720   *) # Relative path.
17721     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17722     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17723 esac
17724
17725 # Do not use `cd foo && pwd` to compute absolute paths, because
17726 # the directories may not exist.
17727 case `pwd` in
17728 .) ac_abs_builddir="$ac_dir";;
17729 *)
17730   case "$ac_dir" in
17731   .) ac_abs_builddir=`pwd`;;
17732   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17733   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17734   esac;;
17735 esac
17736 case $ac_abs_builddir in
17737 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17738 *)
17739   case ${ac_top_builddir}. in
17740   .) ac_abs_top_builddir=$ac_abs_builddir;;
17741   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17742   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17743   esac;;
17744 esac
17745 case $ac_abs_builddir in
17746 .) ac_abs_srcdir=$ac_srcdir;;
17747 *)
17748   case $ac_srcdir in
17749   .) ac_abs_srcdir=$ac_abs_builddir;;
17750   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17751   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17752   esac;;
17753 esac
17754 case $ac_abs_builddir in
17755 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17756 *)
17757   case $ac_top_srcdir in
17758   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17759   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17760   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17761   esac;;
17762 esac
17763
17764
17765   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17766 echo "$as_me: executing $ac_dest commands" >&6;}
17767   case $ac_dest in
17768     default-1 )
17769 # Only add multilib support code if we just rebuilt the top-level
17770 # Makefile.
17771 case " $CONFIG_FILES " in
17772  *" Makefile "*)
17773    ac_file=Makefile . ${multi_basedir}/config-ml.in
17774    ;;
17775 esac ;;
17776     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17777   # Strip MF so we end up with the name of the file.
17778   mf=`echo "$mf" | sed -e 's/:.*$//'`
17779   # Check whether this is an Automake generated Makefile or not.
17780   # We used to match only the files named `Makefile.in', but
17781   # some people rename them; so instead we look at the file content.
17782   # Grep'ing the first line is not enough: some people post-process
17783   # each Makefile.in and add a new line on top of each file to say so.
17784   # So let's grep whole file.
17785   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17786     dirpart=`(dirname "$mf") 2>/dev/null ||
17787 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17788          X"$mf" : 'X\(//\)[^/]' \| \
17789          X"$mf" : 'X\(//\)$' \| \
17790          X"$mf" : 'X\(/\)' \| \
17791          .     : '\(.\)' 2>/dev/null ||
17792 echo X"$mf" |
17793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17794           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17795           /^X\(\/\/\)$/{ s//\1/; q; }
17796           /^X\(\/\).*/{ s//\1/; q; }
17797           s/.*/./; q'`
17798   else
17799     continue
17800   fi
17801   # Extract the definition of DEPDIR, am__include, and am__quote
17802   # from the Makefile without running `make'.
17803   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17804   test -z "$DEPDIR" && continue
17805   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17806   test -z "am__include" && continue
17807   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17808   # When using ansi2knr, U may be empty or an underscore; expand it
17809   U=`sed -n 's/^U = //p' < "$mf"`
17810   # Find all dependency output files, they are included files with
17811   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17812   # simplest approach to changing $(DEPDIR) to its actual value in the
17813   # expansion.
17814   for file in `sed -n "
17815     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17816        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17817     # Make sure the directory exists.
17818     test -f "$dirpart/$file" && continue
17819     fdir=`(dirname "$file") 2>/dev/null ||
17820 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821          X"$file" : 'X\(//\)[^/]' \| \
17822          X"$file" : 'X\(//\)$' \| \
17823          X"$file" : 'X\(/\)' \| \
17824          .     : '\(.\)' 2>/dev/null ||
17825 echo X"$file" |
17826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17827           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17828           /^X\(\/\/\)$/{ s//\1/; q; }
17829           /^X\(\/\).*/{ s//\1/; q; }
17830           s/.*/./; q'`
17831     { if $as_mkdir_p; then
17832     mkdir -p $dirpart/$fdir
17833   else
17834     as_dir=$dirpart/$fdir
17835     as_dirs=
17836     while test ! -d "$as_dir"; do
17837       as_dirs="$as_dir $as_dirs"
17838       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17840          X"$as_dir" : 'X\(//\)[^/]' \| \
17841          X"$as_dir" : 'X\(//\)$' \| \
17842          X"$as_dir" : 'X\(/\)' \| \
17843          .     : '\(.\)' 2>/dev/null ||
17844 echo X"$as_dir" |
17845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17846           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17847           /^X\(\/\/\)$/{ s//\1/; q; }
17848           /^X\(\/\).*/{ s//\1/; q; }
17849           s/.*/./; q'`
17850     done
17851     test ! -n "$as_dirs" || mkdir $as_dirs
17852   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17853 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17854    { (exit 1); exit 1; }; }; }
17855
17856     # echo "creating $dirpart/$file"
17857     echo '# dummy' > "$dirpart/$file"
17858   done
17859 done
17860  ;;
17861     libtool )
17862
17863     # See if we are running on zsh, and set the options which allow our
17864     # commands through without removal of \ escapes.
17865     if test -n "${ZSH_VERSION+set}" ; then
17866       setopt NO_GLOB_SUBST
17867     fi
17868
17869     cfgfile="${ofile}T"
17870     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17871     $RM "$cfgfile"
17872
17873     cat <<_LT_EOF >> "$cfgfile"
17874 #! $SHELL
17875
17876 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17877 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17878 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17879 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17880 #
17881 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17882 # 2006, 2007 Free Software Foundation, Inc.
17883 #
17884 # This file is part of GNU Libtool:
17885 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17886 #
17887 # This program is free software; you can redistribute it and/or modify
17888 # it under the terms of the GNU General Public License as published by
17889 # the Free Software Foundation; either version 2 of the License, or
17890 # (at your option) any later version.
17891 #
17892 # This program is distributed in the hope that it will be useful, but
17893 # WITHOUT ANY WARRANTY; without even the implied warranty of
17894 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17895 # General Public License for more details.
17896 #
17897 # You should have received a copy of the GNU General Public License
17898 # along with this program; if not, a copy can be downloaded from
17899 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
17900 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17901 # MA 02110-1301, USA.
17902 #
17903 # As a special exception to the GNU General Public License, if you
17904 # distribute this file as part of a program that contains a
17905 # configuration script generated by Autoconf, you may include it under
17906 # the same distribution terms that you use for the rest of that program.
17907
17908
17909 # The names of the tagged configurations supported by this script.
17910 available_tags="CXX "
17911
17912 # ### BEGIN LIBTOOL CONFIG
17913
17914 # Which release of libtool.m4 was used?
17915 macro_version=$macro_version
17916 macro_revision=$macro_revision
17917
17918 # Whether or not to build shared libraries.
17919 build_libtool_libs=$enable_shared
17920
17921 # Whether or not to build static libraries.
17922 build_old_libs=$enable_static
17923
17924 # What type of objects to build.
17925 pic_mode=$pic_mode
17926
17927 # Whether or not to optimize for fast installation.
17928 fast_install=$enable_fast_install
17929
17930 # The host system.
17931 host_alias=$host_alias
17932 host=$host
17933 host_os=$host_os
17934
17935 # The build system.
17936 build_alias=$build_alias
17937 build=$build
17938 build_os=$build_os
17939
17940 # A sed program that does not truncate output.
17941 SED=$lt_SED
17942
17943 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17944 Xsed="\$SED -e 1s/^X//"
17945
17946 # A grep program that handles long lines.
17947 GREP=$lt_GREP
17948
17949 # An ERE matcher.
17950 EGREP=$lt_EGREP
17951
17952 # A literal string matcher.
17953 FGREP=$lt_FGREP
17954
17955 # A BSD- or MS-compatible name lister.
17956 NM=$lt_NM
17957
17958 # Whether we need soft or hard links.
17959 LN_S=$lt_LN_S
17960
17961 # What is the maximum length of a command?
17962 max_cmd_len=$max_cmd_len
17963
17964 # Object file suffix (normally "o").
17965 objext=$ac_objext
17966
17967 # Executable file suffix (normally "").
17968 exeext=$exeext
17969
17970 # whether the shell understands "unset".
17971 lt_unset=$lt_unset
17972
17973 # turn spaces into newlines.
17974 SP2NL=$lt_lt_SP2NL
17975
17976 # turn newlines into spaces.
17977 NL2SP=$lt_lt_NL2SP
17978
17979 # How to create reloadable object files.
17980 reload_flag=$lt_reload_flag
17981 reload_cmds=$lt_reload_cmds
17982
17983 # Method to check whether dependent libraries are shared objects.
17984 deplibs_check_method=$lt_deplibs_check_method
17985
17986 # Command to use when deplibs_check_method == "file_magic".
17987 file_magic_cmd=$lt_file_magic_cmd
17988
17989 # The archiver.
17990 AR=$lt_AR
17991 AR_FLAGS=$lt_AR_FLAGS
17992
17993 # A symbol stripping program.
17994 STRIP=$lt_STRIP
17995
17996 # Commands used to install an old-style archive.
17997 RANLIB=$lt_RANLIB
17998 old_postinstall_cmds=$lt_old_postinstall_cmds
17999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18000
18001 # A C compiler.
18002 LTCC=$lt_CC
18003
18004 # LTCC compiler flags.
18005 LTCFLAGS=$lt_CFLAGS
18006
18007 # Take the output of nm and produce a listing of raw symbols and C names.
18008 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18009
18010 # Transform the output of nm in a proper C declaration.
18011 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18012
18013 # Transform the output of nm in a C name address pair.
18014 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18015
18016 # The name of the directory that contains temporary libtool files.
18017 objdir=$objdir
18018
18019 # Shell to use when invoking shell scripts.
18020 SHELL=$lt_SHELL
18021
18022 # An echo program that does not interpret backslashes.
18023 ECHO=$lt_ECHO
18024
18025 # Used to examine libraries when file_magic_cmd begins with "file".
18026 MAGIC_CMD=$MAGIC_CMD
18027
18028 # Must we lock files when doing compilation?
18029 need_locks=$lt_need_locks
18030
18031 # Old archive suffix (normally "a").
18032 libext=$libext
18033
18034 # Shared library suffix (normally ".so").
18035 shrext_cmds=$lt_shrext_cmds
18036
18037 # The commands to extract the exported symbol list from a shared archive.
18038 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18039
18040 # Variables whose values should be saved in libtool wrapper scripts and
18041 # restored at link time.
18042 variables_saved_for_relink=$lt_variables_saved_for_relink
18043
18044 # Do we need the "lib" prefix for modules?
18045 need_lib_prefix=$need_lib_prefix
18046
18047 # Do we need a version for libraries?
18048 need_version=$need_version
18049
18050 # Library versioning type.
18051 version_type=$version_type
18052
18053 # Shared library runtime path variable.
18054 runpath_var=$runpath_var
18055
18056 # Shared library path variable.
18057 shlibpath_var=$shlibpath_var
18058
18059 # Is shlibpath searched before the hard-coded library search path?
18060 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18061
18062 # Format of library name prefix.
18063 libname_spec=$lt_libname_spec
18064
18065 # List of archive names.  First name is the real one, the rest are links.
18066 # The last name is the one that the linker finds with -lNAME
18067 library_names_spec=$lt_library_names_spec
18068
18069 # The coded name of the library, if different from the real name.
18070 soname_spec=$lt_soname_spec
18071
18072 # Command to use after installation of a shared archive.
18073 postinstall_cmds=$lt_postinstall_cmds
18074
18075 # Command to use after uninstallation of a shared archive.
18076 postuninstall_cmds=$lt_postuninstall_cmds
18077
18078 # Commands used to finish a libtool library installation in a directory.
18079 finish_cmds=$lt_finish_cmds
18080
18081 # As "finish_cmds", except a single script fragment to be evaled but
18082 # not shown.
18083 finish_eval=$lt_finish_eval
18084
18085 # Whether we should hardcode library paths into libraries.
18086 hardcode_into_libs=$hardcode_into_libs
18087
18088 # Compile-time system search path for libraries.
18089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18090
18091 # Run-time system search path for libraries.
18092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18093
18094 # Whether dlopen is supported.
18095 dlopen_support=$enable_dlopen
18096
18097 # Whether dlopen of programs is supported.
18098 dlopen_self=$enable_dlopen_self
18099
18100 # Whether dlopen of statically linked programs is supported.
18101 dlopen_self_static=$enable_dlopen_self_static
18102
18103 # Commands to strip libraries.
18104 old_striplib=$lt_old_striplib
18105 striplib=$lt_striplib
18106
18107
18108 # The linker used to build libraries.
18109 LD=$lt_LD
18110
18111 # Commands used to build an old-style archive.
18112 old_archive_cmds=$lt_old_archive_cmds
18113
18114 # A language specific compiler.
18115 CC=$lt_compiler
18116
18117 # Is the compiler the GNU compiler?
18118 with_gcc=$GCC
18119
18120 # Compiler flag to turn off builtin functions.
18121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18122
18123 # How to pass a linker flag through the compiler.
18124 wl=$lt_lt_prog_compiler_wl
18125
18126 # Additional compiler flags for building library objects.
18127 pic_flag=$lt_lt_prog_compiler_pic
18128
18129 # Compiler flag to prevent dynamic linking.
18130 link_static_flag=$lt_lt_prog_compiler_static
18131
18132 # Does compiler simultaneously support -c and -o options?
18133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18134
18135 # Whether or not to add -lc for building shared libraries.
18136 build_libtool_need_lc=$archive_cmds_need_lc
18137
18138 # Whether or not to disallow shared libs when runtime libs are static.
18139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18140
18141 # Compiler flag to allow reflexive dlopens.
18142 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18143
18144 # Compiler flag to generate shared objects directly from archives.
18145 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18146
18147 # Whether the compiler copes with passing no objects directly.
18148 compiler_needs_object=$lt_compiler_needs_object
18149
18150 # Create an old-style archive from a shared archive.
18151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18152
18153 # Create a temporary old-style archive to link instead of a shared archive.
18154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18155
18156 # Commands used to build a shared archive.
18157 archive_cmds=$lt_archive_cmds
18158 archive_expsym_cmds=$lt_archive_expsym_cmds
18159
18160 # Commands used to build a loadable module if different from building
18161 # a shared archive.
18162 module_cmds=$lt_module_cmds
18163 module_expsym_cmds=$lt_module_expsym_cmds
18164
18165 # Whether we are building with GNU ld or not.
18166 with_gnu_ld=$lt_with_gnu_ld
18167
18168 # Flag that allows shared libraries with undefined symbols to be built.
18169 allow_undefined_flag=$lt_allow_undefined_flag
18170
18171 # Flag that enforces no undefined symbols.
18172 no_undefined_flag=$lt_no_undefined_flag
18173
18174 # Flag to hardcode \$libdir into a binary during linking.
18175 # This must work even if \$libdir does not exist
18176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18177
18178 # If ld is used when linking, flag to hardcode \$libdir into a binary
18179 # during linking.  This must work even if \$libdir does not exist.
18180 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18181
18182 # Whether we need a single "-rpath" flag with a separated argument.
18183 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18184
18185 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18186 # DIR into the resulting binary.
18187 hardcode_direct=$hardcode_direct
18188
18189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18190 # DIR into the resulting binary and the resulting library dependency is
18191 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18192 # library is relocated.
18193 hardcode_direct_absolute=$hardcode_direct_absolute
18194
18195 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18196 # into the resulting binary.
18197 hardcode_minus_L=$hardcode_minus_L
18198
18199 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18200 # into the resulting binary.
18201 hardcode_shlibpath_var=$hardcode_shlibpath_var
18202
18203 # Set to "yes" if building a shared library automatically hardcodes DIR
18204 # into the library and all subsequent libraries and executables linked
18205 # against it.
18206 hardcode_automatic=$hardcode_automatic
18207
18208 # Set to yes if linker adds runtime paths of dependent libraries
18209 # to runtime path list.
18210 inherit_rpath=$inherit_rpath
18211
18212 # Whether libtool must link a program against all its dependency libraries.
18213 link_all_deplibs=$link_all_deplibs
18214
18215 # Fix the shell variable \$srcfile for the compiler.
18216 fix_srcfile_path=$lt_fix_srcfile_path
18217
18218 # Set to "yes" if exported symbols are required.
18219 always_export_symbols=$always_export_symbols
18220
18221 # The commands to list exported symbols.
18222 export_symbols_cmds=$lt_export_symbols_cmds
18223
18224 # Symbols that should not be listed in the preloaded symbols.
18225 exclude_expsyms=$lt_exclude_expsyms
18226
18227 # Symbols that must always be exported.
18228 include_expsyms=$lt_include_expsyms
18229
18230 # Commands necessary for linking programs (against libraries) with templates.
18231 prelink_cmds=$lt_prelink_cmds
18232
18233 # Specify filename containing input files.
18234 file_list_spec=$lt_file_list_spec
18235
18236 # How to hardcode a shared library path into an executable.
18237 hardcode_action=$hardcode_action
18238
18239 # Dependencies to place before and after the objects being linked to
18240 # create a shared library.
18241 predep_objects=$lt_predep_objects
18242 postdep_objects=$lt_postdep_objects
18243 predeps=$lt_predeps
18244 postdeps=$lt_postdeps
18245
18246 # The library search path used internally by the compiler when linking
18247 # a shared library.
18248 compiler_lib_search_path=$lt_compiler_lib_search_path
18249
18250 # ### END LIBTOOL CONFIG
18251
18252 _LT_EOF
18253
18254   case $host_os in
18255   aix3*)
18256     cat <<\_LT_EOF >> "$cfgfile"
18257 # AIX sometimes has problems with the GCC collect2 program.  For some
18258 # reason, if we set the COLLECT_NAMES environment variable, the problems
18259 # vanish in a puff of smoke.
18260 if test "X${COLLECT_NAMES+set}" != Xset; then
18261   COLLECT_NAMES=
18262   export COLLECT_NAMES
18263 fi
18264 _LT_EOF
18265     ;;
18266   esac
18267
18268
18269 ltmain="$ac_aux_dir/ltmain.sh"
18270
18271
18272   # We use sed instead of cat because bash on DJGPP gets confused if
18273   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18274   # text mode, it properly converts lines to CR/LF.  This bash problem
18275   # is reportedly fixed, but why not run on old versions too?
18276   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18277     || (rm -f "$cfgfile"; exit 1)
18278
18279   case $xsi_shell in
18280   yes)
18281     cat << \_LT_EOF >> "$cfgfile"
18282 # func_dirname file append nondir_replacement
18283 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18284 # otherwise set result to NONDIR_REPLACEMENT.
18285 func_dirname ()
18286 {
18287   case ${1} in
18288     */*) func_dirname_result="${1%/*}${2}" ;;
18289     *  ) func_dirname_result="${3}" ;;
18290   esac
18291 }
18292
18293 # func_basename file
18294 func_basename ()
18295 {
18296   func_basename_result="${1##*/}"
18297 }
18298
18299 # func_stripname prefix suffix name
18300 # strip PREFIX and SUFFIX off of NAME.
18301 # PREFIX and SUFFIX must not contain globbing or regex special
18302 # characters, hashes, percent signs, but SUFFIX may contain a leading
18303 # dot (in which case that matches only a dot).
18304 func_stripname ()
18305 {
18306   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18307   # positional parameters, so assign one to ordinary parameter first.
18308   func_stripname_result=${3}
18309   func_stripname_result=${func_stripname_result#"${1}"}
18310   func_stripname_result=${func_stripname_result%"${2}"}
18311 }
18312
18313 # func_opt_split
18314 func_opt_split ()
18315 {
18316   func_opt_split_opt=${1%%=*}
18317   func_opt_split_arg=${1#*=}
18318 }
18319
18320 # func_lo2o object
18321 func_lo2o ()
18322 {
18323   case ${1} in
18324     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18325     *)    func_lo2o_result=${1} ;;
18326   esac
18327 }
18328 _LT_EOF
18329     ;;
18330   *) # Bourne compatible functions.
18331     cat << \_LT_EOF >> "$cfgfile"
18332 # func_dirname file append nondir_replacement
18333 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18334 # otherwise set result to NONDIR_REPLACEMENT.
18335 func_dirname ()
18336 {
18337   # Extract subdirectory from the argument.
18338   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18339   if test "X$func_dirname_result" = "X${1}"; then
18340     func_dirname_result="${3}"
18341   else
18342     func_dirname_result="$func_dirname_result${2}"
18343   fi
18344 }
18345
18346 # func_basename file
18347 func_basename ()
18348 {
18349   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18350 }
18351
18352 # func_stripname prefix suffix name
18353 # strip PREFIX and SUFFIX off of NAME.
18354 # PREFIX and SUFFIX must not contain globbing or regex special
18355 # characters, hashes, percent signs, but SUFFIX may contain a leading
18356 # dot (in which case that matches only a dot).
18357 # func_strip_suffix prefix name
18358 func_stripname ()
18359 {
18360   case ${2} in
18361     .*) func_stripname_result=`$ECHO "X${3}" \
18362            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18363     *)  func_stripname_result=`$ECHO "X${3}" \
18364            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18365   esac
18366 }
18367
18368 # sed scripts:
18369 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18370 my_sed_long_arg='1s/^-[^=]*=//'
18371
18372 # func_opt_split
18373 func_opt_split ()
18374 {
18375   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18376   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18377 }
18378
18379 # func_lo2o object
18380 func_lo2o ()
18381 {
18382   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18383 }
18384 _LT_EOF
18385 esac
18386
18387 case $lt_shell_append in
18388   yes)
18389     cat << \_LT_EOF >> "$cfgfile"
18390
18391 # func_append var value
18392 # Append VALUE to the end of shell variable VAR.
18393 func_append ()
18394 {
18395   eval "$1+=\$2"
18396 }
18397 _LT_EOF
18398     ;;
18399   *)
18400     cat << \_LT_EOF >> "$cfgfile"
18401
18402 # func_append var value
18403 # Append VALUE to the end of shell variable VAR.
18404 func_append ()
18405 {
18406   eval "$1=\$$1\$2"
18407 }
18408 _LT_EOF
18409     ;;
18410   esac
18411
18412
18413   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18414     || (rm -f "$cfgfile"; exit 1)
18415
18416   mv -f "$cfgfile" "$ofile" ||
18417     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18418   chmod +x "$ofile"
18419
18420
18421     cat <<_LT_EOF >> "$ofile"
18422
18423 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18424
18425 # The linker used to build libraries.
18426 LD=$lt_LD_CXX
18427
18428 # Commands used to build an old-style archive.
18429 old_archive_cmds=$lt_old_archive_cmds_CXX
18430
18431 # A language specific compiler.
18432 CC=$lt_compiler_CXX
18433
18434 # Is the compiler the GNU compiler?
18435 with_gcc=$GCC_CXX
18436
18437 # Compiler flag to turn off builtin functions.
18438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18439
18440 # How to pass a linker flag through the compiler.
18441 wl=$lt_lt_prog_compiler_wl_CXX
18442
18443 # Additional compiler flags for building library objects.
18444 pic_flag=$lt_lt_prog_compiler_pic_CXX
18445
18446 # Compiler flag to prevent dynamic linking.
18447 link_static_flag=$lt_lt_prog_compiler_static_CXX
18448
18449 # Does compiler simultaneously support -c and -o options?
18450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18451
18452 # Whether or not to add -lc for building shared libraries.
18453 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18454
18455 # Whether or not to disallow shared libs when runtime libs are static.
18456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18457
18458 # Compiler flag to allow reflexive dlopens.
18459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18460
18461 # Compiler flag to generate shared objects directly from archives.
18462 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18463
18464 # Whether the compiler copes with passing no objects directly.
18465 compiler_needs_object=$lt_compiler_needs_object_CXX
18466
18467 # Create an old-style archive from a shared archive.
18468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18469
18470 # Create a temporary old-style archive to link instead of a shared archive.
18471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18472
18473 # Commands used to build a shared archive.
18474 archive_cmds=$lt_archive_cmds_CXX
18475 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18476
18477 # Commands used to build a loadable module if different from building
18478 # a shared archive.
18479 module_cmds=$lt_module_cmds_CXX
18480 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18481
18482 # Whether we are building with GNU ld or not.
18483 with_gnu_ld=$lt_with_gnu_ld_CXX
18484
18485 # Flag that allows shared libraries with undefined symbols to be built.
18486 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18487
18488 # Flag that enforces no undefined symbols.
18489 no_undefined_flag=$lt_no_undefined_flag_CXX
18490
18491 # Flag to hardcode \$libdir into a binary during linking.
18492 # This must work even if \$libdir does not exist
18493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18494
18495 # If ld is used when linking, flag to hardcode \$libdir into a binary
18496 # during linking.  This must work even if \$libdir does not exist.
18497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18498
18499 # Whether we need a single "-rpath" flag with a separated argument.
18500 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18501
18502 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18503 # DIR into the resulting binary.
18504 hardcode_direct=$hardcode_direct_CXX
18505
18506 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18507 # DIR into the resulting binary and the resulting library dependency is
18508 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18509 # library is relocated.
18510 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18511
18512 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18513 # into the resulting binary.
18514 hardcode_minus_L=$hardcode_minus_L_CXX
18515
18516 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18517 # into the resulting binary.
18518 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18519
18520 # Set to "yes" if building a shared library automatically hardcodes DIR
18521 # into the library and all subsequent libraries and executables linked
18522 # against it.
18523 hardcode_automatic=$hardcode_automatic_CXX
18524
18525 # Set to yes if linker adds runtime paths of dependent libraries
18526 # to runtime path list.
18527 inherit_rpath=$inherit_rpath_CXX
18528
18529 # Whether libtool must link a program against all its dependency libraries.
18530 link_all_deplibs=$link_all_deplibs_CXX
18531
18532 # Fix the shell variable \$srcfile for the compiler.
18533 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18534
18535 # Set to "yes" if exported symbols are required.
18536 always_export_symbols=$always_export_symbols_CXX
18537
18538 # The commands to list exported symbols.
18539 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18540
18541 # Symbols that should not be listed in the preloaded symbols.
18542 exclude_expsyms=$lt_exclude_expsyms_CXX
18543
18544 # Symbols that must always be exported.
18545 include_expsyms=$lt_include_expsyms_CXX
18546
18547 # Commands necessary for linking programs (against libraries) with templates.
18548 prelink_cmds=$lt_prelink_cmds_CXX
18549
18550 # Specify filename containing input files.
18551 file_list_spec=$lt_file_list_spec_CXX
18552
18553 # How to hardcode a shared library path into an executable.
18554 hardcode_action=$hardcode_action_CXX
18555
18556 # Dependencies to place before and after the objects being linked to
18557 # create a shared library.
18558 predep_objects=$lt_predep_objects_CXX
18559 postdep_objects=$lt_postdep_objects_CXX
18560 predeps=$lt_predeps_CXX
18561 postdeps=$lt_postdeps_CXX
18562
18563 # The library search path used internally by the compiler when linking
18564 # a shared library.
18565 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18566
18567 # ### END LIBTOOL TAG CONFIG: CXX
18568 _LT_EOF
18569
18570  ;;
18571   esac
18572 done
18573 _ACEOF
18574
18575 cat >>$CONFIG_STATUS <<\_ACEOF
18576
18577 { (exit 0); exit 0; }
18578 _ACEOF
18579 chmod +x $CONFIG_STATUS
18580 ac_clean_files=$ac_clean_files_save
18581
18582
18583 # configure is writing to config.log, and then calls config.status.
18584 # config.status does its own redirection, appending to config.log.
18585 # Unfortunately, on DOS this fails, as config.log is still kept open
18586 # by configure, so config.status won't be able to write to it; its
18587 # output is simply discarded.  So we exec the FD to /dev/null,
18588 # effectively closing config.log, so it can be properly (re)opened and
18589 # appended to by config.status.  When coming back to configure, we
18590 # need to make the FD available again.
18591 if test "$no_create" != yes; then
18592   ac_cs_success=:
18593   ac_config_status_args=
18594   test "$silent" = yes &&
18595     ac_config_status_args="$ac_config_status_args --quiet"
18596   exec 5>/dev/null
18597   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18598   exec 5>>config.log
18599   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18600   # would make configure fail if this is the last instruction.
18601   $ac_cs_success || { (exit 1); exit 1; }
18602 fi
18603