* src/mm/boehm-gc/include/private/config.h.in,
[cacao.git] / src / mm / boehm-gc / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.58 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for gc 7.2alpha4.
5 #
6 # Report bugs to <Hans.Boehm@hp.com>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 as_nl='
44 '
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86   as_unset=unset
87 else
88   as_unset=false
89 fi
90
91
92 # IFS
93 # We need space, tab and new line, in precisely that order.  Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" ""        $as_nl"
98
99 # Find who we are.  Look in the path if we contain no directory separator.
100 case $0 in
101   *[\\/]* ) as_myself=$0 ;;
102   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
104 do
105   IFS=$as_save_IFS
106   test -z "$as_dir" && as_dir=.
107   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
110
111      ;;
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116   as_myself=$0
117 fi
118 if test ! -f "$as_myself"; then
119   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120   { (exit 1); exit 1; }
121 fi
122
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139    test "X`expr 00001 : '.*\(...\)'`" = X001; then
140   as_expr=expr
141 else
142   as_expr=false
143 fi
144
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146   as_basename=basename
147 else
148   as_basename=false
149 fi
150
151
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155          X"$0" : 'X\(//\)$' \| \
156          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158     sed '/^.*\/\([^/][^/]*\)\/*$/{
159             s//\1/
160             q
161           }
162           /^X\/\(\/\/\)$/{
163             s//\1/
164             q
165           }
166           /^X\/\(\/\).*/{
167             s//\1/
168             q
169           }
170           s/.*/./; q'`
171
172 # CDPATH.
173 $as_unset CDPATH
174
175
176 if test "x$CONFIG_SHELL" = x; then
177   if (eval ":") 2>/dev/null; then
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182
183   if test $as_have_required = yes &&     (eval ":
184 (as_func_return () {
185   (exit \$1)
186 }
187 as_func_success () {
188   as_func_return 0
189 }
190 as_func_failure () {
191   as_func_return 1
192 }
193 as_func_ret_success () {
194   return 0
195 }
196 as_func_ret_failure () {
197   return 1
198 }
199
200 exitcode=0
201 if as_func_success; then
202   :
203 else
204   exitcode=1
205   echo as_func_success failed.
206 fi
207
208 if as_func_failure; then
209   exitcode=1
210   echo as_func_failure succeeded.
211 fi
212
213 if as_func_ret_success; then
214   :
215 else
216   exitcode=1
217   echo as_func_ret_success failed.
218 fi
219
220 if as_func_ret_failure; then
221   exitcode=1
222   echo as_func_ret_failure succeeded.
223 fi
224
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226   :
227 else
228   exitcode=1
229   echo positional parameters were not saved.
230 fi
231
232 test \$exitcode = 0) || { (exit 1); exit 1; }
233
234 (
235   as_lineno_1=\$LINENO
236   as_lineno_2=\$LINENO
237   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
240   :
241 else
242   as_candidate_shells=
243     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 do
246   IFS=$as_save_IFS
247   test -z "$as_dir" && as_dir=.
248   case $as_dir in
249          /*)
250            for as_base in sh bash ksh sh5; do
251              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252            done;;
253        esac
254 done
255 IFS=$as_save_IFS
256
257
258       for as_shell in $as_candidate_shells $SHELL; do
259          # Try only shells that exist, to save several forks.
260          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261                 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 _ASEOF
279 }; then
280   CONFIG_SHELL=$as_shell
281                as_have_required=yes
282                if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284   emulate sh
285   NULLCMD=:
286   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287   # is contrary to our usage.  Disable this feature.
288   alias -g '${1+"$@"}'='"$@"'
289   setopt NO_GLOB_SUBST
290 else
291   case `(set -o) 2>/dev/null` in
292   *posix*) set -o posix ;;
293 esac
294
295 fi
296
297
298 :
299 (as_func_return () {
300   (exit $1)
301 }
302 as_func_success () {
303   as_func_return 0
304 }
305 as_func_failure () {
306   as_func_return 1
307 }
308 as_func_ret_success () {
309   return 0
310 }
311 as_func_ret_failure () {
312   return 1
313 }
314
315 exitcode=0
316 if as_func_success; then
317   :
318 else
319   exitcode=1
320   echo as_func_success failed.
321 fi
322
323 if as_func_failure; then
324   exitcode=1
325   echo as_func_failure succeeded.
326 fi
327
328 if as_func_ret_success; then
329   :
330 else
331   exitcode=1
332   echo as_func_ret_success failed.
333 fi
334
335 if as_func_ret_failure; then
336   exitcode=1
337   echo as_func_ret_failure succeeded.
338 fi
339
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
341   :
342 else
343   exitcode=1
344   echo positional parameters were not saved.
345 fi
346
347 test $exitcode = 0) || { (exit 1); exit 1; }
348
349 (
350   as_lineno_1=$LINENO
351   as_lineno_2=$LINENO
352   test "x$as_lineno_1" != "x$as_lineno_2" &&
353   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355 _ASEOF
356 }; then
357   break
358 fi
359
360 fi
361
362       done
363
364       if test "x$CONFIG_SHELL" != x; then
365   for as_var in BASH_ENV ENV
366         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367         done
368         export CONFIG_SHELL
369         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 fi
371
372
373     if test $as_have_required = no; then
374   echo This script requires a shell more modern than all the
375       echo shells that I found on your system.  Please install a
376       echo modern shell, or manually run the script under such a
377       echo shell if you do have one.
378       { (exit 1); exit 1; }
379 fi
380
381
382 fi
383
384 fi
385
386
387
388 (eval "as_func_return () {
389   (exit \$1)
390 }
391 as_func_success () {
392   as_func_return 0
393 }
394 as_func_failure () {
395   as_func_return 1
396 }
397 as_func_ret_success () {
398   return 0
399 }
400 as_func_ret_failure () {
401   return 1
402 }
403
404 exitcode=0
405 if as_func_success; then
406   :
407 else
408   exitcode=1
409   echo as_func_success failed.
410 fi
411
412 if as_func_failure; then
413   exitcode=1
414   echo as_func_failure succeeded.
415 fi
416
417 if as_func_ret_success; then
418   :
419 else
420   exitcode=1
421   echo as_func_ret_success failed.
422 fi
423
424 if as_func_ret_failure; then
425   exitcode=1
426   echo as_func_ret_failure succeeded.
427 fi
428
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430   :
431 else
432   exitcode=1
433   echo positional parameters were not saved.
434 fi
435
436 test \$exitcode = 0") || {
437   echo No shell found that supports shell functions.
438   echo Please tell bug-autoconf@gnu.org about your system,
439   echo including any error possibly output before this message.
440   echo This can help us improve future autoconf versions.
441   echo Configuration will now proceed without shell functions.
442 }
443
444
445
446   as_lineno_1=$LINENO
447   as_lineno_2=$LINENO
448   test "x$as_lineno_1" != "x$as_lineno_2" &&
449   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452   # uniformly replaced by the line number.  The first 'sed' inserts a
453   # line-number line after each line using $LINENO; the second 'sed'
454   # does the real work.  The second script uses 'N' to pair each
455   # line-number line with the line containing $LINENO, and appends
456   # trailing '-' during substitution so that $LINENO is not a special
457   # case at line end.
458   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459   # scripts with optimization help from Paolo Bonzini.  Blame Lee
460   # E. McMahon (1931-1989) for sed's syntax.  :-)
461   sed -n '
462     p
463     /[$]LINENO/=
464   ' <$as_myself |
465     sed '
466       s/[$]LINENO.*/&-/
467       t lineno
468       b
469       :lineno
470       N
471       :loop
472       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473       t loop
474       s/-\n.*//
475     ' >$as_me.lineno &&
476   chmod +x "$as_me.lineno" ||
477     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478    { (exit 1); exit 1; }; }
479
480   # Don't try to exec as it changes $[0], causing all sort of problems
481   # (the dirname of $[0] is not the place where we might find the
482   # original and so on.  Autoconf is especially sensitive to this).
483   . "./$as_me.lineno"
484   # Exit status is that of the last command.
485   exit
486 }
487
488
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490   as_dirname=dirname
491 else
492   as_dirname=false
493 fi
494
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498   case `echo 'x\c'` in
499   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
500   *)   ECHO_C='\c';;
501   esac;;
502 *)
503   ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
507   as_expr=expr
508 else
509   as_expr=false
510 fi
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514   rm -f conf$$.dir/conf$$.file
515 else
516   rm -f conf$$.dir
517   mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520   if ln -s conf$$.file conf$$ 2>/dev/null; then
521     as_ln_s='ln -s'
522     # ... but there are two gotchas:
523     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525     # In both cases, we have to default to `cp -p'.
526     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527       as_ln_s='cp -p'
528   elif ln conf$$.file conf$$ 2>/dev/null; then
529     as_ln_s=ln
530   else
531     as_ln_s='cp -p'
532   fi
533 else
534   as_ln_s='cp -p'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540   as_mkdir_p=:
541 else
542   test -d ./-p && rmdir ./-p
543   as_mkdir_p=false
544 fi
545
546 if test -x / >/dev/null 2>&1; then
547   as_test_x='test -x'
548 else
549   if ls -dL / >/dev/null 2>&1; then
550     as_ls_L_option=L
551   else
552     as_ls_L_option=
553   fi
554   as_test_x='
555     eval sh -c '\''
556       if test -d "$1"; then
557         test -d "$1/.";
558       else
559         case $1 in
560         -*)set "./$1";;
561         esac;
562         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563         ???[sx]*):;;*)false;;esac;fi
564     '\'' sh
565   '
566 fi
567 as_executable_p=$as_test_x
568
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577
578 # Check that we are running under the correct shell.
579 SHELL=${CONFIG_SHELL-/bin/sh}
580
581 case X$ECHO in
582 X*--fallback-echo)
583   # Remove one level of quotation (which was required for Make).
584   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
585   ;;
586 esac
587
588 echo=${ECHO-echo}
589 if test "X$1" = X--no-reexec; then
590   # Discard the --no-reexec flag, and continue.
591   shift
592 elif test "X$1" = X--fallback-echo; then
593   # Avoid inline document here, it may be left over
594   :
595 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
596   # Yippee, $echo works!
597   :
598 else
599   # Restart under the correct shell.
600   exec $SHELL "$0" --no-reexec ${1+"$@"}
601 fi
602
603 if test "X$1" = X--fallback-echo; then
604   # used as fallback echo
605   shift
606   cat <<EOF
607 $*
608 EOF
609   exit 0
610 fi
611
612 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 # if CDPATH is set.
614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615
616 if test -z "$ECHO"; then
617 if test "X${echo_test_string+set}" != Xset; then
618 # find a string as large as possible, as long as the shell can cope with it
619   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
620     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
621     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
622        echo_test_string=`eval $cmd` &&
623        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
624     then
625       break
626     fi
627   done
628 fi
629
630 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
631    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
632    test "X$echo_testing_string" = "X$echo_test_string"; then
633   :
634 else
635   # The Solaris, AIX, and Digital Unix default echo programs unquote
636   # backslashes.  This makes it impossible to quote backslashes using
637   #   echo "$something" | sed 's/\\/\\\\/g'
638   #
639   # So, first we look for a working echo in the user's PATH.
640
641   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642   for dir in $PATH /usr/ucb; do
643     IFS="$lt_save_ifs"
644     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647        test "X$echo_testing_string" = "X$echo_test_string"; then
648       echo="$dir/echo"
649       break
650     fi
651   done
652   IFS="$lt_save_ifs"
653
654   if test "X$echo" = Xecho; then
655     # We didn't find a better echo, so look for alternatives.
656     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
657        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
658        test "X$echo_testing_string" = "X$echo_test_string"; then
659       # This shell has a builtin print -r that does the trick.
660       echo='print -r'
661     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
662          test "X$CONFIG_SHELL" != X/bin/ksh; then
663       # If we have ksh, try running configure again with it.
664       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665       export ORIGINAL_CONFIG_SHELL
666       CONFIG_SHELL=/bin/ksh
667       export CONFIG_SHELL
668       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669     else
670       # Try using printf.
671       echo='printf %s\n'
672       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
673          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
674          test "X$echo_testing_string" = "X$echo_test_string"; then
675         # Cool, printf works
676         :
677       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678            test "X$echo_testing_string" = 'X\t' &&
679            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680            test "X$echo_testing_string" = "X$echo_test_string"; then
681         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682         export CONFIG_SHELL
683         SHELL="$CONFIG_SHELL"
684         export SHELL
685         echo="$CONFIG_SHELL $0 --fallback-echo"
686       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687            test "X$echo_testing_string" = 'X\t' &&
688            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689            test "X$echo_testing_string" = "X$echo_test_string"; then
690         echo="$CONFIG_SHELL $0 --fallback-echo"
691       else
692         # maybe with a smaller string...
693         prev=:
694
695         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
697           then
698             break
699           fi
700           prev="$cmd"
701         done
702
703         if test "$prev" != 'sed 50q "$0"'; then
704           echo_test_string=`eval $prev`
705           export echo_test_string
706           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707         else
708           # Oops.  We lost completely, so just stick with echo.
709           echo=echo
710         fi
711       fi
712     fi
713   fi
714 fi
715 fi
716
717 # Copy echo and quote the copy suitably for passing to libtool from
718 # the Makefile, instead of quoting the original, which is used later.
719 ECHO=$echo
720 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
722 fi
723
724
725
726
727 tagnames=${tagnames+${tagnames},}CXX
728
729 tagnames=${tagnames+${tagnames},}F77
730
731 exec 7<&0 </dev/null 6>&1
732
733 # Name of the host.
734 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
735 # so uname gets run too.
736 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
737
738 #
739 # Initializations.
740 #
741 ac_default_prefix=/usr/local
742 ac_clean_files=
743 ac_config_libobj_dir=.
744 LIBOBJS=
745 cross_compiling=no
746 subdirs=
747 MFLAGS=
748 MAKEFLAGS=
749 SHELL=${CONFIG_SHELL-/bin/sh}
750
751 # Identity of this package.
752 PACKAGE_NAME='gc'
753 PACKAGE_TARNAME='gc'
754 PACKAGE_VERSION='7.2alpha4'
755 PACKAGE_STRING='gc 7.2alpha4'
756 PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
757
758 ac_unique_file="gcj_mlc.c"
759 # Factoring default headers for most tests.
760 ac_includes_default="\
761 #include <stdio.h>
762 #ifdef HAVE_SYS_TYPES_H
763 # include <sys/types.h>
764 #endif
765 #ifdef HAVE_SYS_STAT_H
766 # include <sys/stat.h>
767 #endif
768 #ifdef STDC_HEADERS
769 # include <stdlib.h>
770 # include <stddef.h>
771 #else
772 # ifdef HAVE_STDLIB_H
773 #  include <stdlib.h>
774 # endif
775 #endif
776 #ifdef HAVE_STRING_H
777 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
778 #  include <memory.h>
779 # endif
780 # include <string.h>
781 #endif
782 #ifdef HAVE_STRINGS_H
783 # include <strings.h>
784 #endif
785 #ifdef HAVE_INTTYPES_H
786 # include <inttypes.h>
787 #endif
788 #ifdef HAVE_STDINT_H
789 # include <stdint.h>
790 #endif
791 #ifdef HAVE_UNISTD_H
792 # include <unistd.h>
793 #endif"
794
795 enable_option_checking=no
796 ac_subst_vars='LTLIBOBJS
797 LIBOBJS
798 NEED_ATOMIC_OPS_ASM_FALSE
799 NEED_ATOMIC_OPS_ASM_TRUE
800 USE_INTERNAL_LIBATOMIC_OPS_FALSE
801 USE_INTERNAL_LIBATOMIC_OPS_TRUE
802 subdirs
803 ATOMIC_OPS_LIBS
804 USE_LIBDIR_FALSE
805 USE_LIBDIR_TRUE
806 UNWINDLIBS
807 KEEP_BACK_PTRS_FALSE
808 KEEP_BACK_PTRS_TRUE
809 ENABLE_GCJ_SUPPORT_FALSE
810 ENABLE_GCJ_SUPPORT_TRUE
811 LIBTOOL
812 ac_ct_F77
813 FFLAGS
814 F77
815 CXXCPP
816 CPP
817 NMEDIT
818 DSYMUTIL
819 ECHO
820 LN_S
821 EGREP
822 GREP
823 SED
824 addlibs
825 addobjs
826 CXXINCLUDES
827 INCLUDES
828 CPLUSPLUS_FALSE
829 CPLUSPLUS_TRUE
830 target_all
831 EXTRA_TEST_LIBS
832 extra_ldflags_libgc
833 AVOID_CPP_LIB_FALSE
834 AVOID_CPP_LIB_TRUE
835 COMPILER_XLC_FALSE
836 COMPILER_XLC_TRUE
837 OPENBSD_THREADS_FALSE
838 OPENBSD_THREADS_TRUE
839 WIN32_THREADS_FALSE
840 WIN32_THREADS_TRUE
841 DARWIN_THREADS_FALSE
842 DARWIN_THREADS_TRUE
843 PTHREADS_FALSE
844 PTHREADS_TRUE
845 THREADS_FALSE
846 THREADS_TRUE
847 THREADDLLIBS
848 GC_CFLAGS
849 RANLIB
850 AR
851 am__fastdepCCAS_FALSE
852 am__fastdepCCAS_TRUE
853 CCASDEPMODE
854 CCASFLAGS
855 CCAS
856 am__fastdepCXX_FALSE
857 am__fastdepCXX_TRUE
858 CXXDEPMODE
859 ac_ct_CXX
860 CXXFLAGS
861 CXX
862 am__fastdepCC_FALSE
863 am__fastdepCC_TRUE
864 CCDEPMODE
865 AMDEPBACKSLASH
866 AMDEP_FALSE
867 AMDEP_TRUE
868 am__quote
869 am__include
870 DEPDIR
871 OBJEXT
872 EXEEXT
873 ac_ct_CC
874 CPPFLAGS
875 LDFLAGS
876 CFLAGS
877 CC
878 GC_VERSION
879 MAINT
880 MAINTAINER_MODE_FALSE
881 MAINTAINER_MODE_TRUE
882 am__untar
883 am__tar
884 AMTAR
885 am__leading_dot
886 SET_MAKE
887 AWK
888 mkdir_p
889 MKDIR_P
890 INSTALL_STRIP_PROGRAM
891 STRIP
892 install_sh
893 MAKEINFO
894 AUTOHEADER
895 AUTOMAKE
896 AUTOCONF
897 ACLOCAL
898 VERSION
899 PACKAGE
900 CYGPATH_W
901 am__isrc
902 INSTALL_DATA
903 INSTALL_SCRIPT
904 INSTALL_PROGRAM
905 target_os
906 target_vendor
907 target_cpu
908 target
909 host_os
910 host_vendor
911 host_cpu
912 host
913 build_os
914 build_vendor
915 build_cpu
916 build
917 target_alias
918 host_alias
919 build_alias
920 LIBS
921 ECHO_T
922 ECHO_N
923 ECHO_C
924 DEFS
925 mandir
926 localedir
927 libdir
928 psdir
929 pdfdir
930 dvidir
931 htmldir
932 infodir
933 docdir
934 oldincludedir
935 includedir
936 localstatedir
937 sharedstatedir
938 sysconfdir
939 datadir
940 datarootdir
941 libexecdir
942 sbindir
943 bindir
944 program_transform_name
945 prefix
946 exec_prefix
947 PACKAGE_BUGREPORT
948 PACKAGE_STRING
949 PACKAGE_VERSION
950 PACKAGE_TARNAME
951 PACKAGE_NAME
952 PATH_SEPARATOR
953 SHELL'
954 ac_subst_files=''
955 ac_user_opts='
956 enable_option_checking
957 enable_maintainer_mode
958 enable_dependency_tracking
959 enable_boehm_threads
960 enable_parallel_mark
961 enable_cplusplus
962 with_ecos
963 enable_shared
964 enable_static
965 enable_fast_install
966 with_gnu_ld
967 enable_libtool_lock
968 with_pic
969 with_tags
970 with_target_subdir
971 with_cross_host
972 enable_gcj_support
973 enable_gc_debug
974 enable_java_finalization
975 enable_atomic_uncollectable
976 enable_redirect_malloc
977 enable_large_config
978 enable_gc_assertions
979 enable_munmap
980 with_libatomic_ops
981 '
982       ac_precious_vars='build_alias
983 host_alias
984 target_alias
985 CC
986 CFLAGS
987 LDFLAGS
988 LIBS
989 CPPFLAGS
990 CXX
991 CXXFLAGS
992 CCC
993 CCAS
994 CCASFLAGS
995 CPP
996 CXXCPP
997 F77
998 FFLAGS'
999 ac_subdirs_all='libatomic_ops'
1000
1001 # Initialize some variables set by options.
1002 ac_init_help=
1003 ac_init_version=false
1004 ac_unrecognized_opts=
1005 ac_unrecognized_sep=
1006 # The variables have the same names as the options, with
1007 # dashes changed to underlines.
1008 cache_file=/dev/null
1009 exec_prefix=NONE
1010 no_create=
1011 no_recursion=
1012 prefix=NONE
1013 program_prefix=NONE
1014 program_suffix=NONE
1015 program_transform_name=s,x,x,
1016 silent=
1017 site=
1018 srcdir=
1019 verbose=
1020 x_includes=NONE
1021 x_libraries=NONE
1022
1023 # Installation directory options.
1024 # These are left unexpanded so users can "make install exec_prefix=/foo"
1025 # and all the variables that are supposed to be based on exec_prefix
1026 # by default will actually change.
1027 # Use braces instead of parens because sh, perl, etc. also accept them.
1028 # (The list follows the same order as the GNU Coding Standards.)
1029 bindir='${exec_prefix}/bin'
1030 sbindir='${exec_prefix}/sbin'
1031 libexecdir='${exec_prefix}/libexec'
1032 datarootdir='${prefix}/share'
1033 datadir='${datarootdir}'
1034 sysconfdir='${prefix}/etc'
1035 sharedstatedir='${prefix}/com'
1036 localstatedir='${prefix}/var'
1037 includedir='${prefix}/include'
1038 oldincludedir='/usr/include'
1039 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1040 infodir='${datarootdir}/info'
1041 htmldir='${docdir}'
1042 dvidir='${docdir}'
1043 pdfdir='${docdir}'
1044 psdir='${docdir}'
1045 libdir='${exec_prefix}/lib'
1046 localedir='${datarootdir}/locale'
1047 mandir='${datarootdir}/man'
1048
1049 ac_prev=
1050 ac_dashdash=
1051 for ac_option
1052 do
1053   # If the previous option needs an argument, assign it.
1054   if test -n "$ac_prev"; then
1055     eval $ac_prev=\$ac_option
1056     ac_prev=
1057     continue
1058   fi
1059
1060   case $ac_option in
1061   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062   *)    ac_optarg=yes ;;
1063   esac
1064
1065   # Accept the important Cygnus configure options, so we can diagnose typos.
1066
1067   case $ac_dashdash$ac_option in
1068   --)
1069     ac_dashdash=yes ;;
1070
1071   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1072     ac_prev=bindir ;;
1073   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1074     bindir=$ac_optarg ;;
1075
1076   -build | --build | --buil | --bui | --bu)
1077     ac_prev=build_alias ;;
1078   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1079     build_alias=$ac_optarg ;;
1080
1081   -cache-file | --cache-file | --cache-fil | --cache-fi \
1082   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1083     ac_prev=cache_file ;;
1084   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1085   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1086     cache_file=$ac_optarg ;;
1087
1088   --config-cache | -C)
1089     cache_file=config.cache ;;
1090
1091   -datadir | --datadir | --datadi | --datad)
1092     ac_prev=datadir ;;
1093   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1094     datadir=$ac_optarg ;;
1095
1096   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1097   | --dataroo | --dataro | --datar)
1098     ac_prev=datarootdir ;;
1099   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1100   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1101     datarootdir=$ac_optarg ;;
1102
1103   -disable-* | --disable-*)
1104     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1105     # Reject names that are not valid shell variable names.
1106     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1108    { (exit 1); exit 1; }; }
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "enable_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval enable_$ac_useropt=no ;;
1119
1120   -docdir | --docdir | --docdi | --doc | --do)
1121     ac_prev=docdir ;;
1122   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1123     docdir=$ac_optarg ;;
1124
1125   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1126     ac_prev=dvidir ;;
1127   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1128     dvidir=$ac_optarg ;;
1129
1130   -enable-* | --enable-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1135    { (exit 1); exit 1; }; }
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "enable_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval enable_$ac_useropt=\$ac_optarg ;;
1146
1147   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149   | --exec | --exe | --ex)
1150     ac_prev=exec_prefix ;;
1151   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153   | --exec=* | --exe=* | --ex=*)
1154     exec_prefix=$ac_optarg ;;
1155
1156   -gas | --gas | --ga | --g)
1157     # Obsolete; use --with-gas.
1158     with_gas=yes ;;
1159
1160   -help | --help | --hel | --he | -h)
1161     ac_init_help=long ;;
1162   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163     ac_init_help=recursive ;;
1164   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165     ac_init_help=short ;;
1166
1167   -host | --host | --hos | --ho)
1168     ac_prev=host_alias ;;
1169   -host=* | --host=* | --hos=* | --ho=*)
1170     host_alias=$ac_optarg ;;
1171
1172   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173     ac_prev=htmldir ;;
1174   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175   | --ht=*)
1176     htmldir=$ac_optarg ;;
1177
1178   -includedir | --includedir | --includedi | --included | --include \
1179   | --includ | --inclu | --incl | --inc)
1180     ac_prev=includedir ;;
1181   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182   | --includ=* | --inclu=* | --incl=* | --inc=*)
1183     includedir=$ac_optarg ;;
1184
1185   -infodir | --infodir | --infodi | --infod | --info | --inf)
1186     ac_prev=infodir ;;
1187   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188     infodir=$ac_optarg ;;
1189
1190   -libdir | --libdir | --libdi | --libd)
1191     ac_prev=libdir ;;
1192   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193     libdir=$ac_optarg ;;
1194
1195   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196   | --libexe | --libex | --libe)
1197     ac_prev=libexecdir ;;
1198   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199   | --libexe=* | --libex=* | --libe=*)
1200     libexecdir=$ac_optarg ;;
1201
1202   -localedir | --localedir | --localedi | --localed | --locale)
1203     ac_prev=localedir ;;
1204   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205     localedir=$ac_optarg ;;
1206
1207   -localstatedir | --localstatedir | --localstatedi | --localstated \
1208   | --localstate | --localstat | --localsta | --localst | --locals)
1209     ac_prev=localstatedir ;;
1210   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212     localstatedir=$ac_optarg ;;
1213
1214   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215     ac_prev=mandir ;;
1216   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217     mandir=$ac_optarg ;;
1218
1219   -nfp | --nfp | --nf)
1220     # Obsolete; use --without-fp.
1221     with_fp=no ;;
1222
1223   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224   | --no-cr | --no-c | -n)
1225     no_create=yes ;;
1226
1227   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229     no_recursion=yes ;;
1230
1231   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233   | --oldin | --oldi | --old | --ol | --o)
1234     ac_prev=oldincludedir ;;
1235   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238     oldincludedir=$ac_optarg ;;
1239
1240   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241     ac_prev=prefix ;;
1242   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243     prefix=$ac_optarg ;;
1244
1245   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246   | --program-pre | --program-pr | --program-p)
1247     ac_prev=program_prefix ;;
1248   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250     program_prefix=$ac_optarg ;;
1251
1252   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253   | --program-suf | --program-su | --program-s)
1254     ac_prev=program_suffix ;;
1255   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257     program_suffix=$ac_optarg ;;
1258
1259   -program-transform-name | --program-transform-name \
1260   | --program-transform-nam | --program-transform-na \
1261   | --program-transform-n | --program-transform- \
1262   | --program-transform | --program-transfor \
1263   | --program-transfo | --program-transf \
1264   | --program-trans | --program-tran \
1265   | --progr-tra | --program-tr | --program-t)
1266     ac_prev=program_transform_name ;;
1267   -program-transform-name=* | --program-transform-name=* \
1268   | --program-transform-nam=* | --program-transform-na=* \
1269   | --program-transform-n=* | --program-transform-=* \
1270   | --program-transform=* | --program-transfor=* \
1271   | --program-transfo=* | --program-transf=* \
1272   | --program-trans=* | --program-tran=* \
1273   | --progr-tra=* | --program-tr=* | --program-t=*)
1274     program_transform_name=$ac_optarg ;;
1275
1276   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277     ac_prev=pdfdir ;;
1278   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279     pdfdir=$ac_optarg ;;
1280
1281   -psdir | --psdir | --psdi | --psd | --ps)
1282     ac_prev=psdir ;;
1283   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284     psdir=$ac_optarg ;;
1285
1286   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287   | -silent | --silent | --silen | --sile | --sil)
1288     silent=yes ;;
1289
1290   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291     ac_prev=sbindir ;;
1292   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293   | --sbi=* | --sb=*)
1294     sbindir=$ac_optarg ;;
1295
1296   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298   | --sharedst | --shareds | --shared | --share | --shar \
1299   | --sha | --sh)
1300     ac_prev=sharedstatedir ;;
1301   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304   | --sha=* | --sh=*)
1305     sharedstatedir=$ac_optarg ;;
1306
1307   -site | --site | --sit)
1308     ac_prev=site ;;
1309   -site=* | --site=* | --sit=*)
1310     site=$ac_optarg ;;
1311
1312   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313     ac_prev=srcdir ;;
1314   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315     srcdir=$ac_optarg ;;
1316
1317   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318   | --syscon | --sysco | --sysc | --sys | --sy)
1319     ac_prev=sysconfdir ;;
1320   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322     sysconfdir=$ac_optarg ;;
1323
1324   -target | --target | --targe | --targ | --tar | --ta | --t)
1325     ac_prev=target_alias ;;
1326   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327     target_alias=$ac_optarg ;;
1328
1329   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330     verbose=yes ;;
1331
1332   -version | --version | --versio | --versi | --vers | -V)
1333     ac_init_version=: ;;
1334
1335   -with-* | --with-*)
1336     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337     # Reject names that are not valid shell variable names.
1338     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1340    { (exit 1); exit 1; }; }
1341     ac_useropt_orig=$ac_useropt
1342     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343     case $ac_user_opts in
1344       *"
1345 "with_$ac_useropt"
1346 "*) ;;
1347       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348          ac_unrecognized_sep=', ';;
1349     esac
1350     eval with_$ac_useropt=\$ac_optarg ;;
1351
1352   -without-* | --without-*)
1353     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354     # Reject names that are not valid shell variable names.
1355     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1357    { (exit 1); exit 1; }; }
1358     ac_useropt_orig=$ac_useropt
1359     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360     case $ac_user_opts in
1361       *"
1362 "with_$ac_useropt"
1363 "*) ;;
1364       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1365          ac_unrecognized_sep=', ';;
1366     esac
1367     eval with_$ac_useropt=no ;;
1368
1369   --x)
1370     # Obsolete; use --with-x.
1371     with_x=yes ;;
1372
1373   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1374   | --x-incl | --x-inc | --x-in | --x-i)
1375     ac_prev=x_includes ;;
1376   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1377   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1378     x_includes=$ac_optarg ;;
1379
1380   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1381   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1382     ac_prev=x_libraries ;;
1383   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1384   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1385     x_libraries=$ac_optarg ;;
1386
1387   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1388 Try \`$0 --help' for more information." >&2
1389    { (exit 1); exit 1; }; }
1390     ;;
1391
1392   *=*)
1393     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1394     # Reject names that are not valid shell variable names.
1395     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1396       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1397    { (exit 1); exit 1; }; }
1398     eval $ac_envvar=\$ac_optarg
1399     export $ac_envvar ;;
1400
1401   *)
1402     # FIXME: should be removed in autoconf 3.0.
1403     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1404     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1406     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1407     ;;
1408
1409   esac
1410 done
1411
1412 if test -n "$ac_prev"; then
1413   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1414   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1415    { (exit 1); exit 1; }; }
1416 fi
1417
1418 if test -n "$ac_unrecognized_opts"; then
1419   case $enable_option_checking in
1420     no) ;;
1421     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1422    { (exit 1); exit 1; }; } ;;
1423     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1424   esac
1425 fi
1426
1427 # Check all directory arguments for consistency.
1428 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429                 datadir sysconfdir sharedstatedir localstatedir includedir \
1430                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431                 libdir localedir mandir
1432 do
1433   eval ac_val=\$$ac_var
1434   # Remove trailing slashes.
1435   case $ac_val in
1436     */ )
1437       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1438       eval $ac_var=\$ac_val;;
1439   esac
1440   # Be sure to have absolute directory names.
1441   case $ac_val in
1442     [\\/$]* | ?:[\\/]* )  continue;;
1443     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444   esac
1445   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1446    { (exit 1); exit 1; }; }
1447 done
1448
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1452 build=$build_alias
1453 host=$host_alias
1454 target=$target_alias
1455
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458   if test "x$build_alias" = x; then
1459     cross_compiling=maybe
1460     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1461     If a cross compiler is detected then cross compile mode will be used." >&2
1462   elif test "x$build_alias" != "x$host_alias"; then
1463     cross_compiling=yes
1464   fi
1465 fi
1466
1467 ac_tool_prefix=
1468 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1469
1470 test "$silent" = yes && exec 6>/dev/null
1471
1472
1473 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1474 ac_ls_di=`ls -di .` &&
1475 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1476   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1477    { (exit 1); exit 1; }; }
1478 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1480    { (exit 1); exit 1; }; }
1481
1482
1483 # Find the source files, if location was not specified.
1484 if test -z "$srcdir"; then
1485   ac_srcdir_defaulted=yes
1486   # Try the directory containing this script, then the parent directory.
1487   ac_confdir=`$as_dirname -- "$as_myself" ||
1488 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489          X"$as_myself" : 'X\(//\)[^/]' \| \
1490          X"$as_myself" : 'X\(//\)$' \| \
1491          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1492 $as_echo X"$as_myself" |
1493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494             s//\1/
1495             q
1496           }
1497           /^X\(\/\/\)[^/].*/{
1498             s//\1/
1499             q
1500           }
1501           /^X\(\/\/\)$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\).*/{
1506             s//\1/
1507             q
1508           }
1509           s/.*/./; q'`
1510   srcdir=$ac_confdir
1511   if test ! -r "$srcdir/$ac_unique_file"; then
1512     srcdir=..
1513   fi
1514 else
1515   ac_srcdir_defaulted=no
1516 fi
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1519   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1520    { (exit 1); exit 1; }; }
1521 fi
1522 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 ac_abs_confdir=`(
1524         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1525    { (exit 1); exit 1; }; }
1526         pwd)`
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529   srcdir=.
1530 fi
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1534 case $srcdir in
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 esac
1537 for ac_var in $ac_precious_vars; do
1538   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_env_${ac_var}_value=\$${ac_var}
1540   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542 done
1543
1544 #
1545 # Report the --help message.
1546 #
1547 if test "$ac_init_help" = "long"; then
1548   # Omit some internal or obsolete options to make the list less imposing.
1549   # This message is too long to be a string in the A/UX 3.1 sh.
1550   cat <<_ACEOF
1551 \`configure' configures gc 7.2alpha4 to adapt to many kinds of systems.
1552
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1554
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE.  See below for descriptions of some of the useful variables.
1557
1558 Defaults for the options are specified in brackets.
1559
1560 Configuration:
1561   -h, --help              display this help and exit
1562       --help=short        display options specific to this package
1563       --help=recursive    display the short help of all the included packages
1564   -V, --version           display version information and exit
1565   -q, --quiet, --silent   do not print \`checking...' messages
1566       --cache-file=FILE   cache test results in FILE [disabled]
1567   -C, --config-cache      alias for \`--cache-file=config.cache'
1568   -n, --no-create         do not create output files
1569       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1570
1571 Installation directories:
1572   --prefix=PREFIX         install architecture-independent files in PREFIX
1573                           [$ac_default_prefix]
1574   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1575                           [PREFIX]
1576
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1581
1582 For better control, use the options below.
1583
1584 Fine tuning of the installation directories:
1585   --bindir=DIR            user executables [EPREFIX/bin]
1586   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1587   --libexecdir=DIR        program executables [EPREFIX/libexec]
1588   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1589   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1590   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1591   --libdir=DIR            object code libraries [EPREFIX/lib]
1592   --includedir=DIR        C header files [PREFIX/include]
1593   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1594   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1595   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1596   --infodir=DIR           info documentation [DATAROOTDIR/info]
1597   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1598   --mandir=DIR            man documentation [DATAROOTDIR/man]
1599   --docdir=DIR            documentation root [DATAROOTDIR/doc/gc]
1600   --htmldir=DIR           html documentation [DOCDIR]
1601   --dvidir=DIR            dvi documentation [DOCDIR]
1602   --pdfdir=DIR            pdf documentation [DOCDIR]
1603   --psdir=DIR             ps documentation [DOCDIR]
1604 _ACEOF
1605
1606   cat <<\_ACEOF
1607
1608 Program names:
1609   --program-prefix=PREFIX            prepend PREFIX to installed program names
1610   --program-suffix=SUFFIX            append SUFFIX to installed program names
1611   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1612
1613 System types:
1614   --build=BUILD     configure for building on BUILD [guessed]
1615   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1616   --target=TARGET   configure for building compilers for TARGET [HOST]
1617 _ACEOF
1618 fi
1619
1620 if test -n "$ac_init_help"; then
1621   case $ac_init_help in
1622      short | recursive ) echo "Configuration of gc 7.2alpha4:";;
1623    esac
1624   cat <<\_ACEOF
1625
1626 Optional Features:
1627   --disable-option-checking  ignore unrecognized --enable/--with options
1628   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1629   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1630   --enable-maintainer-mode  enable make rules and dependencies not useful
1631                           (and sometimes confusing) to the casual installer
1632   --disable-dependency-tracking  speeds up one-time build
1633   --enable-dependency-tracking   do not reject slow dependency extractors
1634   --enable-boehm-threads=TYPE
1635                           choose threading package
1636   --enable-parallel-mark  parallelize marking and free list construction
1637   --enable-cplusplus      install C++ support
1638   --enable-shared[=PKGS]  build shared libraries [default=yes]
1639   --enable-static[=PKGS]  build static libraries [default=yes]
1640   --enable-fast-install[=PKGS]
1641                           optimize for fast installation [default=yes]
1642   --disable-libtool-lock  avoid locking (might break parallel builds)
1643   --disable-gcj-support   Disable support for gcj.
1644   --enable-gc-debug       include full support for pointer backtracing etc.
1645   --disable-java-finalization
1646                           Disable support for java finalization.
1647   --disable-atomic-uncollectible
1648                           Disable support for atomic uncollectible allocation.
1649   --enable-redirect-malloc
1650                           Redirect malloc and friends to GC routines
1651   --enable-large-config   Optimize for large (> 100 MB) heap or root set
1652   --enable-gc-assertions  collector-internal assertion checking
1653   --enable-munmap=N       return page to the os if empty for N collections
1654
1655 Optional Packages:
1656   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1657   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1658   --with-ecos             enable runtime eCos target support
1659   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1660   --with-pic              try to use only PIC/non-PIC objects [default=use
1661                           both]
1662   --with-tags[=TAGS]      include additional configurations [automatic]
1663   --with-target-subdir=SUBDIR
1664                           configuring with a cross compiler
1665   --with-cross-host=HOST  configuring with a cross compiler
1666   --with-libatomic-ops=yes|no|check
1667                           Use a pre-installed libatomic_ops? (default: check)
1668
1669 Some influential environment variables:
1670   CC          C compiler command
1671   CFLAGS      C compiler flags
1672   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1673               nonstandard directory <lib dir>
1674   LIBS        libraries to pass to the linker, e.g. -l<library>
1675   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1676               you have headers in a nonstandard directory <include dir>
1677   CXX         C++ compiler command
1678   CXXFLAGS    C++ compiler flags
1679   CCAS        assembler compiler command (defaults to CC)
1680   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1681   CPP         C preprocessor
1682   CXXCPP      C++ preprocessor
1683   F77         Fortran 77 compiler command
1684   FFLAGS      Fortran 77 compiler flags
1685
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1688
1689 Report bugs to <Hans.Boehm@hp.com>.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695   # If there are subdirs, report their specific --help.
1696   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697     test -d "$ac_dir" ||
1698       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699       continue
1700     ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706   # A ".." for each directory in $ac_dir_suffix.
1707   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708   case $ac_top_builddir_sub in
1709   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711   esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719   .)  # We are building in place.
1720     ac_srcdir=.
1721     ac_top_srcdir=$ac_top_builddir_sub
1722     ac_abs_top_srcdir=$ac_pwd ;;
1723   [\\/]* | ?:[\\/]* )  # Absolute name.
1724     ac_srcdir=$srcdir$ac_dir_suffix;
1725     ac_top_srcdir=$srcdir
1726     ac_abs_top_srcdir=$srcdir ;;
1727   *) # Relative name.
1728     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729     ac_top_srcdir=$ac_top_build_prefix$srcdir
1730     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734     cd "$ac_dir" || { ac_status=$?; continue; }
1735     # Check for guested configure.
1736     if test -f "$ac_srcdir/configure.gnu"; then
1737       echo &&
1738       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739     elif test -f "$ac_srcdir/configure"; then
1740       echo &&
1741       $SHELL "$ac_srcdir/configure" --help=recursive
1742     else
1743       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744     fi || ac_status=$?
1745     cd "$ac_pwd" || { ac_status=$?; break; }
1746   done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751   cat <<\_ACEOF
1752 gc configure 7.2alpha4
1753 generated by GNU Autoconf 2.63
1754
1755 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1756 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1757 This configure script is free software; the Free Software Foundation
1758 gives unlimited permission to copy, distribute and modify it.
1759 _ACEOF
1760   exit
1761 fi
1762 cat >config.log <<_ACEOF
1763 This file contains any messages produced by compilers while
1764 running configure, to aid debugging if configure makes a mistake.
1765
1766 It was created by gc $as_me 7.2alpha4, which was
1767 generated by GNU Autoconf 2.63.  Invocation command line was
1768
1769   $ $0 $@
1770
1771 _ACEOF
1772 exec 5>>config.log
1773 {
1774 cat <<_ASUNAME
1775 ## --------- ##
1776 ## Platform. ##
1777 ## --------- ##
1778
1779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1784
1785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1786 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1787
1788 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1789 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1791 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1792 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1793 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1794 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1795
1796 _ASUNAME
1797
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   $as_echo "PATH: $as_dir"
1804 done
1805 IFS=$as_save_IFS
1806
1807 } >&5
1808
1809 cat >&5 <<_ACEOF
1810
1811
1812 ## ----------- ##
1813 ## Core tests. ##
1814 ## ----------- ##
1815
1816 _ACEOF
1817
1818
1819 # Keep a trace of the command line.
1820 # Strip out --no-create and --no-recursion so they do not pile up.
1821 # Strip out --silent because we don't want to record it for future runs.
1822 # Also quote any args containing shell meta-characters.
1823 # Make two passes to allow for proper duplicate-argument suppression.
1824 ac_configure_args=
1825 ac_configure_args0=
1826 ac_configure_args1=
1827 ac_must_keep_next=false
1828 for ac_pass in 1 2
1829 do
1830   for ac_arg
1831   do
1832     case $ac_arg in
1833     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1834     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1835     | -silent | --silent | --silen | --sile | --sil)
1836       continue ;;
1837     *\'*)
1838       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1839     esac
1840     case $ac_pass in
1841     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1842     2)
1843       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1844       if test $ac_must_keep_next = true; then
1845         ac_must_keep_next=false # Got value, back to normal.
1846       else
1847         case $ac_arg in
1848           *=* | --config-cache | -C | -disable-* | --disable-* \
1849           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1850           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1851           | -with-* | --with-* | -without-* | --without-* | --x)
1852             case "$ac_configure_args0 " in
1853               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1854             esac
1855             ;;
1856           -* ) ac_must_keep_next=true ;;
1857         esac
1858       fi
1859       ac_configure_args="$ac_configure_args '$ac_arg'"
1860       ;;
1861     esac
1862   done
1863 done
1864 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1865 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1866
1867 # When interrupted or exit'd, cleanup temporary files, and complete
1868 # config.log.  We remove comments because anyway the quotes in there
1869 # would cause problems or look ugly.
1870 # WARNING: Use '\'' to represent an apostrophe within the trap.
1871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1872 trap 'exit_status=$?
1873   # Save into config.log some information that might help in debugging.
1874   {
1875     echo
1876
1877     cat <<\_ASBOX
1878 ## ---------------- ##
1879 ## Cache variables. ##
1880 ## ---------------- ##
1881 _ASBOX
1882     echo
1883     # The following way of writing the cache mishandles newlines in values,
1884 (
1885   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1886     eval ac_val=\$$ac_var
1887     case $ac_val in #(
1888     *${as_nl}*)
1889       case $ac_var in #(
1890       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1892       esac
1893       case $ac_var in #(
1894       _ | IFS | as_nl) ;; #(
1895       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1896       *) $as_unset $ac_var ;;
1897       esac ;;
1898     esac
1899   done
1900   (set) 2>&1 |
1901     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1902     *${as_nl}ac_space=\ *)
1903       sed -n \
1904         "s/'\''/'\''\\\\'\'''\''/g;
1905           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1906       ;; #(
1907     *)
1908       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1909       ;;
1910     esac |
1911     sort
1912 )
1913     echo
1914
1915     cat <<\_ASBOX
1916 ## ----------------- ##
1917 ## Output variables. ##
1918 ## ----------------- ##
1919 _ASBOX
1920     echo
1921     for ac_var in $ac_subst_vars
1922     do
1923       eval ac_val=\$$ac_var
1924       case $ac_val in
1925       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926       esac
1927       $as_echo "$ac_var='\''$ac_val'\''"
1928     done | sort
1929     echo
1930
1931     if test -n "$ac_subst_files"; then
1932       cat <<\_ASBOX
1933 ## ------------------- ##
1934 ## File substitutions. ##
1935 ## ------------------- ##
1936 _ASBOX
1937       echo
1938       for ac_var in $ac_subst_files
1939       do
1940         eval ac_val=\$$ac_var
1941         case $ac_val in
1942         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1943         esac
1944         $as_echo "$ac_var='\''$ac_val'\''"
1945       done | sort
1946       echo
1947     fi
1948
1949     if test -s confdefs.h; then
1950       cat <<\_ASBOX
1951 ## ----------- ##
1952 ## confdefs.h. ##
1953 ## ----------- ##
1954 _ASBOX
1955       echo
1956       cat confdefs.h
1957       echo
1958     fi
1959     test "$ac_signal" != 0 &&
1960       $as_echo "$as_me: caught signal $ac_signal"
1961     $as_echo "$as_me: exit $exit_status"
1962   } >&5
1963   rm -f core *.core core.conftest.* &&
1964     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1965     exit $exit_status
1966 ' 0
1967 for ac_signal in 1 2 13 15; do
1968   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1969 done
1970 ac_signal=0
1971
1972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1973 rm -f -r conftest* confdefs.h
1974
1975 # Predefined preprocessor variables.
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_NAME "$PACKAGE_NAME"
1979 _ACEOF
1980
1981
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1984 _ACEOF
1985
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1989 _ACEOF
1990
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE_STRING "$PACKAGE_STRING"
1994 _ACEOF
1995
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999 _ACEOF
2000
2001
2002 # Let the site file select an alternate cache file if it wants to.
2003 # Prefer an explicitly selected file to automatically selected ones.
2004 ac_site_file1=NONE
2005 ac_site_file2=NONE
2006 if test -n "$CONFIG_SITE"; then
2007   ac_site_file1=$CONFIG_SITE
2008 elif test "x$prefix" != xNONE; then
2009   ac_site_file1=$prefix/share/config.site
2010   ac_site_file2=$prefix/etc/config.site
2011 else
2012   ac_site_file1=$ac_default_prefix/share/config.site
2013   ac_site_file2=$ac_default_prefix/etc/config.site
2014 fi
2015 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2016 do
2017   test "x$ac_site_file" = xNONE && continue
2018   if test -r "$ac_site_file"; then
2019     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2020 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2021     sed 's/^/| /' "$ac_site_file" >&5
2022     . "$ac_site_file"
2023   fi
2024 done
2025
2026 if test -r "$cache_file"; then
2027   # Some versions of bash will fail to source /dev/null (special
2028   # files actually), so we avoid doing that.
2029   if test -f "$cache_file"; then
2030     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2031 $as_echo "$as_me: loading cache $cache_file" >&6;}
2032     case $cache_file in
2033       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2034       *)                      . "./$cache_file";;
2035     esac
2036   fi
2037 else
2038   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2039 $as_echo "$as_me: creating cache $cache_file" >&6;}
2040   >$cache_file
2041 fi
2042
2043 # Check that the precious variables saved in the cache have kept the same
2044 # value.
2045 ac_cache_corrupted=false
2046 for ac_var in $ac_precious_vars; do
2047   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2048   eval ac_new_set=\$ac_env_${ac_var}_set
2049   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2050   eval ac_new_val=\$ac_env_${ac_var}_value
2051   case $ac_old_set,$ac_new_set in
2052     set,)
2053       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2054 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2055       ac_cache_corrupted=: ;;
2056     ,set)
2057       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2058 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2059       ac_cache_corrupted=: ;;
2060     ,);;
2061     *)
2062       if test "x$ac_old_val" != "x$ac_new_val"; then
2063         # differences in whitespace do not lead to failure.
2064         ac_old_val_w=`echo x $ac_old_val`
2065         ac_new_val_w=`echo x $ac_new_val`
2066         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2067           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2068 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2069           ac_cache_corrupted=:
2070         else
2071           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2072 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2073           eval $ac_var=\$ac_old_val
2074         fi
2075         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2076 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2077         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2078 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2079       fi;;
2080   esac
2081   # Pass precious variables to config.status.
2082   if test "$ac_new_set" = set; then
2083     case $ac_new_val in
2084     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2085     *) ac_arg=$ac_var=$ac_new_val ;;
2086     esac
2087     case " $ac_configure_args " in
2088       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2089       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2090     esac
2091   fi
2092 done
2093 if $ac_cache_corrupted; then
2094   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2097 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2098   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2099 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2100    { (exit 1); exit 1; }; }
2101 fi
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127 ac_ext=c
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132
2133
2134     ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
2135
2136
2137 ac_aux_dir=
2138 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2139   if test -f "$ac_dir/install-sh"; then
2140     ac_aux_dir=$ac_dir
2141     ac_install_sh="$ac_aux_dir/install-sh -c"
2142     break
2143   elif test -f "$ac_dir/install.sh"; then
2144     ac_aux_dir=$ac_dir
2145     ac_install_sh="$ac_aux_dir/install.sh -c"
2146     break
2147   elif test -f "$ac_dir/shtool"; then
2148     ac_aux_dir=$ac_dir
2149     ac_install_sh="$ac_aux_dir/shtool install -c"
2150     break
2151   fi
2152 done
2153 if test -z "$ac_aux_dir"; then
2154   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2155 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159 # These three variables are undocumented and unsupported,
2160 # and are intended to be withdrawn in a future Autoconf release.
2161 # They can cause serious problems if a builder's source tree is in a directory
2162 # whose full name contains unusual characters.
2163 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2164 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2165 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2166
2167
2168 # Make sure we can run config.sub.
2169 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2170   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2171 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2172    { (exit 1); exit 1; }; }
2173
2174 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2175 $as_echo_n "checking build system type... " >&6; }
2176 if test "${ac_cv_build+set}" = set; then
2177   $as_echo_n "(cached) " >&6
2178 else
2179   ac_build_alias=$build_alias
2180 test "x$ac_build_alias" = x &&
2181   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2182 test "x$ac_build_alias" = x &&
2183   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2184 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2185    { (exit 1); exit 1; }; }
2186 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2187   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2188 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2189    { (exit 1); exit 1; }; }
2190
2191 fi
2192 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2193 $as_echo "$ac_cv_build" >&6; }
2194 case $ac_cv_build in
2195 *-*-*) ;;
2196 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2197 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2198    { (exit 1); exit 1; }; };;
2199 esac
2200 build=$ac_cv_build
2201 ac_save_IFS=$IFS; IFS='-'
2202 set x $ac_cv_build
2203 shift
2204 build_cpu=$1
2205 build_vendor=$2
2206 shift; shift
2207 # Remember, the first character of IFS is used to create $*,
2208 # except with old shells:
2209 build_os=$*
2210 IFS=$ac_save_IFS
2211 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2212
2213
2214 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2215 $as_echo_n "checking host system type... " >&6; }
2216 if test "${ac_cv_host+set}" = set; then
2217   $as_echo_n "(cached) " >&6
2218 else
2219   if test "x$host_alias" = x; then
2220   ac_cv_host=$ac_cv_build
2221 else
2222   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2223     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2224 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2225    { (exit 1); exit 1; }; }
2226 fi
2227
2228 fi
2229 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2230 $as_echo "$ac_cv_host" >&6; }
2231 case $ac_cv_host in
2232 *-*-*) ;;
2233 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2234 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2235    { (exit 1); exit 1; }; };;
2236 esac
2237 host=$ac_cv_host
2238 ac_save_IFS=$IFS; IFS='-'
2239 set x $ac_cv_host
2240 shift
2241 host_cpu=$1
2242 host_vendor=$2
2243 shift; shift
2244 # Remember, the first character of IFS is used to create $*,
2245 # except with old shells:
2246 host_os=$*
2247 IFS=$ac_save_IFS
2248 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2249
2250
2251 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2252 $as_echo_n "checking target system type... " >&6; }
2253 if test "${ac_cv_target+set}" = set; then
2254   $as_echo_n "(cached) " >&6
2255 else
2256   if test "x$target_alias" = x; then
2257   ac_cv_target=$ac_cv_host
2258 else
2259   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2260     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2261 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2262    { (exit 1); exit 1; }; }
2263 fi
2264
2265 fi
2266 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2267 $as_echo "$ac_cv_target" >&6; }
2268 case $ac_cv_target in
2269 *-*-*) ;;
2270 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2271 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2272    { (exit 1); exit 1; }; };;
2273 esac
2274 target=$ac_cv_target
2275 ac_save_IFS=$IFS; IFS='-'
2276 set x $ac_cv_target
2277 shift
2278 target_cpu=$1
2279 target_vendor=$2
2280 shift; shift
2281 # Remember, the first character of IFS is used to create $*,
2282 # except with old shells:
2283 target_os=$*
2284 IFS=$ac_save_IFS
2285 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2286
2287
2288 # The aliases save the names the user supplied, while $host etc.
2289 # will get canonicalized.
2290 test -n "$target_alias" &&
2291   test "$program_prefix$program_suffix$program_transform_name" = \
2292     NONENONEs,x,x, &&
2293   program_prefix=${target_alias}-
2294
2295
2296 GC_SET_VERSION
2297 am__api_version='1.10'
2298
2299 # Find a good install program.  We prefer a C program (faster),
2300 # so one script is as good as another.  But avoid the broken or
2301 # incompatible versions:
2302 # SysV /etc/install, /usr/sbin/install
2303 # SunOS /usr/etc/install
2304 # IRIX /sbin/install
2305 # AIX /bin/install
2306 # AmigaOS /C/install, which installs bootblocks on floppy discs
2307 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2308 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2309 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2310 # OS/2's system install, which has a completely different semantic
2311 # ./install, which can be erroneously created by make from ./install.sh.
2312 # Reject install programs that cannot install multiple files.
2313 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2314 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2315 if test -z "$INSTALL"; then
2316 if test "${ac_cv_path_install+set}" = set; then
2317   $as_echo_n "(cached) " >&6
2318 else
2319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   # Account for people who put trailing slashes in PATH elements.
2325 case $as_dir/ in
2326   ./ | .// | /cC/* | \
2327   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2328   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2329   /usr/ucb/* ) ;;
2330   *)
2331     # OSF1 and SCO ODT 3.0 have their own names for install.
2332     # Don't use installbsd from OSF since it installs stuff as root
2333     # by default.
2334     for ac_prog in ginstall scoinst install; do
2335       for ac_exec_ext in '' $ac_executable_extensions; do
2336         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2337           if test $ac_prog = install &&
2338             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2339             # AIX install.  It has an incompatible calling convention.
2340             :
2341           elif test $ac_prog = install &&
2342             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2343             # program-specific install script used by HP pwplus--don't use.
2344             :
2345           else
2346             rm -rf conftest.one conftest.two conftest.dir
2347             echo one > conftest.one
2348             echo two > conftest.two
2349             mkdir conftest.dir
2350             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2351               test -s conftest.one && test -s conftest.two &&
2352               test -s conftest.dir/conftest.one &&
2353               test -s conftest.dir/conftest.two
2354             then
2355               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2356               break 3
2357             fi
2358           fi
2359         fi
2360       done
2361     done
2362     ;;
2363 esac
2364
2365 done
2366 IFS=$as_save_IFS
2367
2368 rm -rf conftest.one conftest.two conftest.dir
2369
2370 fi
2371   if test "${ac_cv_path_install+set}" = set; then
2372     INSTALL=$ac_cv_path_install
2373   else
2374     # As a last resort, use the slow shell script.  Don't cache a
2375     # value for INSTALL within a source directory, because that will
2376     # break other packages using the cache if that directory is
2377     # removed, or if the value is a relative name.
2378     INSTALL=$ac_install_sh
2379   fi
2380 fi
2381 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2382 $as_echo "$INSTALL" >&6; }
2383
2384 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2385 # It thinks the first close brace ends the variable substitution.
2386 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2387
2388 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2389
2390 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2391
2392 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2393 $as_echo_n "checking whether build environment is sane... " >&6; }
2394 # Just in case
2395 sleep 1
2396 echo timestamp > conftest.file
2397 # Do `set' in a subshell so we don't clobber the current shell's
2398 # arguments.  Must try -L first in case configure is actually a
2399 # symlink; some systems play weird games with the mod time of symlinks
2400 # (eg FreeBSD returns the mod time of the symlink's containing
2401 # directory).
2402 if (
2403    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2404    if test "$*" = "X"; then
2405       # -L didn't work.
2406       set X `ls -t $srcdir/configure conftest.file`
2407    fi
2408    rm -f conftest.file
2409    if test "$*" != "X $srcdir/configure conftest.file" \
2410       && test "$*" != "X conftest.file $srcdir/configure"; then
2411
2412       # If neither matched, then we have a broken ls.  This can happen
2413       # if, for instance, CONFIG_SHELL is bash and it inherits a
2414       # broken ls alias from the environment.  This has actually
2415       # happened.  Such a system could not be considered "sane".
2416       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2417 alias in your environment" >&5
2418 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2419 alias in your environment" >&2;}
2420    { (exit 1); exit 1; }; }
2421    fi
2422
2423    test "$2" = conftest.file
2424    )
2425 then
2426    # Ok.
2427    :
2428 else
2429    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2430 Check your system clock" >&5
2431 $as_echo "$as_me: error: newly created file is older than distributed files!
2432 Check your system clock" >&2;}
2433    { (exit 1); exit 1; }; }
2434 fi
2435 { $as_echo "$as_me:$LINENO: result: yes" >&5
2436 $as_echo "yes" >&6; }
2437 test "$program_prefix" != NONE &&
2438   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439 # Use a double $ so make ignores it.
2440 test "$program_suffix" != NONE &&
2441   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442 # Double any \ or $.
2443 # By default was `s,x,x', remove it if useless.
2444 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2446
2447 # expand $ac_aux_dir to an absolute path
2448 am_aux_dir=`cd $ac_aux_dir && pwd`
2449
2450 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2451 # Use eval to expand $SHELL
2452 if eval "$MISSING --run true"; then
2453   am_missing_run="$MISSING --run "
2454 else
2455   am_missing_run=
2456   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2457 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2458 fi
2459
2460 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2461 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2462 if test -z "$MKDIR_P"; then
2463   if test "${ac_cv_path_mkdir+set}" = set; then
2464   $as_echo_n "(cached) " >&6
2465 else
2466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471   for ac_prog in mkdir gmkdir; do
2472          for ac_exec_ext in '' $ac_executable_extensions; do
2473            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2474            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2475              'mkdir (GNU coreutils) '* | \
2476              'mkdir (coreutils) '* | \
2477              'mkdir (fileutils) '4.1*)
2478                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2479                break 3;;
2480            esac
2481          done
2482        done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487
2488   if test "${ac_cv_path_mkdir+set}" = set; then
2489     MKDIR_P="$ac_cv_path_mkdir -p"
2490   else
2491     # As a last resort, use the slow shell script.  Don't cache a
2492     # value for MKDIR_P within a source directory, because that will
2493     # break other packages using the cache if that directory is
2494     # removed, or if the value is a relative name.
2495     test -d ./--version && rmdir ./--version
2496     MKDIR_P="$ac_install_sh -d"
2497   fi
2498 fi
2499 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2500 $as_echo "$MKDIR_P" >&6; }
2501
2502 mkdir_p="$MKDIR_P"
2503 case $mkdir_p in
2504   [\\/$]* | ?:[\\/]*) ;;
2505   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2506 esac
2507
2508 for ac_prog in gawk mawk nawk awk
2509 do
2510   # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if test "${ac_cv_prog_AWK+set}" = set; then
2515   $as_echo_n "(cached) " >&6
2516 else
2517   if test -n "$AWK"; then
2518   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   for ac_exec_ext in '' $ac_executable_extensions; do
2526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527     ac_cv_prog_AWK="$ac_prog"
2528     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529     break 2
2530   fi
2531 done
2532 done
2533 IFS=$as_save_IFS
2534
2535 fi
2536 fi
2537 AWK=$ac_cv_prog_AWK
2538 if test -n "$AWK"; then
2539   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2540 $as_echo "$AWK" >&6; }
2541 else
2542   { $as_echo "$as_me:$LINENO: result: no" >&5
2543 $as_echo "no" >&6; }
2544 fi
2545
2546
2547   test -n "$AWK" && break
2548 done
2549
2550 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2551 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2552 set x ${MAKE-make}
2553 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2554 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2555   $as_echo_n "(cached) " >&6
2556 else
2557   cat >conftest.make <<\_ACEOF
2558 SHELL = /bin/sh
2559 all:
2560         @echo '@@@%%%=$(MAKE)=@@@%%%'
2561 _ACEOF
2562 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2563 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2564   *@@@%%%=?*=@@@%%%*)
2565     eval ac_cv_prog_make_${ac_make}_set=yes;;
2566   *)
2567     eval ac_cv_prog_make_${ac_make}_set=no;;
2568 esac
2569 rm -f conftest.make
2570 fi
2571 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2572   { $as_echo "$as_me:$LINENO: result: yes" >&5
2573 $as_echo "yes" >&6; }
2574   SET_MAKE=
2575 else
2576   { $as_echo "$as_me:$LINENO: result: no" >&5
2577 $as_echo "no" >&6; }
2578   SET_MAKE="MAKE=${MAKE-make}"
2579 fi
2580
2581 rm -rf .tst 2>/dev/null
2582 mkdir .tst 2>/dev/null
2583 if test -d .tst; then
2584   am__leading_dot=.
2585 else
2586   am__leading_dot=_
2587 fi
2588 rmdir .tst 2>/dev/null
2589
2590 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2591   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2592   # is not polluted with repeated "-I."
2593   am__isrc=' -I$(srcdir)'
2594   # test to see if srcdir already configured
2595   if test -f $srcdir/config.status; then
2596     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2597 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2598    { (exit 1); exit 1; }; }
2599   fi
2600 fi
2601
2602 # test whether we have cygpath
2603 if test -z "$CYGPATH_W"; then
2604   if (cygpath --version) >/dev/null 2>/dev/null; then
2605     CYGPATH_W='cygpath -w'
2606   else
2607     CYGPATH_W=echo
2608   fi
2609 fi
2610
2611
2612 # Define the identity of the package.
2613  PACKAGE='gc'
2614  VERSION='7.2alpha4'
2615
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE "$PACKAGE"
2619 _ACEOF
2620
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define VERSION "$VERSION"
2624 _ACEOF
2625
2626 # Some tools Automake needs.
2627
2628 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2629
2630
2631 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2632
2633
2634 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2635
2636
2637 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2638
2639
2640 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2641
2642 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2643
2644 # Installed binaries are usually stripped using `strip' when the user
2645 # run `make install-strip'.  However `strip' might not be the right
2646 # tool to use in cross-compilation environments, therefore Automake
2647 # will honor the `STRIP' environment variable to overrule this program.
2648 if test "$cross_compiling" != no; then
2649   if test -n "$ac_tool_prefix"; then
2650   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}strip; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_STRIP+set}" = set; then
2655   $as_echo_n "(cached) " >&6
2656 else
2657   if test -n "$STRIP"; then
2658   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665   for ac_exec_ext in '' $ac_executable_extensions; do
2666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2668     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669     break 2
2670   fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 STRIP=$ac_cv_prog_STRIP
2678 if test -n "$STRIP"; then
2679   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2680 $as_echo "$STRIP" >&6; }
2681 else
2682   { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686
2687 fi
2688 if test -z "$ac_cv_prog_STRIP"; then
2689   ac_ct_STRIP=$STRIP
2690   # Extract the first word of "strip", so it can be a program name with args.
2691 set dummy strip; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test -n "$ac_ct_STRIP"; then
2698   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705   for ac_exec_ext in '' $ac_executable_extensions; do
2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707     ac_cv_prog_ac_ct_STRIP="strip"
2708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2718 if test -n "$ac_ct_STRIP"; then
2719   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2720 $as_echo "$ac_ct_STRIP" >&6; }
2721 else
2722   { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726   if test "x$ac_ct_STRIP" = x; then
2727     STRIP=":"
2728   else
2729     case $cross_compiling:$ac_tool_warned in
2730 yes:)
2731 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2733 ac_tool_warned=yes ;;
2734 esac
2735     STRIP=$ac_ct_STRIP
2736   fi
2737 else
2738   STRIP="$ac_cv_prog_STRIP"
2739 fi
2740
2741 fi
2742 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2743
2744 # We need awk for the "check" target.  The system "awk" is bad on
2745 # some platforms.
2746 # Always define AMTAR for backward compatibility.
2747
2748 AMTAR=${AMTAR-"${am_missing_run}tar"}
2749
2750 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2751
2752
2753
2754
2755
2756 ac_config_headers="$ac_config_headers include/private/config.h"
2757
2758 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2759 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2760     # Check whether --enable-maintainer-mode was given.
2761 if test "${enable_maintainer_mode+set}" = set; then
2762   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2763 else
2764   USE_MAINTAINER_MODE=no
2765 fi
2766
2767   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2768 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2769    if test $USE_MAINTAINER_MODE = yes; then
2770   MAINTAINER_MODE_TRUE=
2771   MAINTAINER_MODE_FALSE='#'
2772 else
2773   MAINTAINER_MODE_TRUE='#'
2774   MAINTAINER_MODE_FALSE=
2775 fi
2776
2777   MAINT=$MAINTAINER_MODE_TRUE
2778
2779
2780
2781
2782
2783
2784 DEPDIR="${am__leading_dot}deps"
2785
2786 ac_config_commands="$ac_config_commands depfiles"
2787
2788
2789 am_make=${MAKE-make}
2790 cat > confinc << 'END'
2791 am__doit:
2792         @echo done
2793 .PHONY: am__doit
2794 END
2795 # If we don't find an include directive, just comment out the code.
2796 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2797 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2798 am__include="#"
2799 am__quote=
2800 _am_result=none
2801 # First try GNU make style include.
2802 echo "include confinc" > confmf
2803 # We grep out `Entering directory' and `Leaving directory'
2804 # messages which can occur if `w' ends up in MAKEFLAGS.
2805 # In particular we don't look at `^make:' because GNU make might
2806 # be invoked under some other name (usually "gmake"), in which
2807 # case it prints its new name instead of `make'.
2808 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2809    am__include=include
2810    am__quote=
2811    _am_result=GNU
2812 fi
2813 # Now try BSD make style include.
2814 if test "$am__include" = "#"; then
2815    echo '.include "confinc"' > confmf
2816    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2817       am__include=.include
2818       am__quote="\""
2819       _am_result=BSD
2820    fi
2821 fi
2822
2823
2824 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2825 $as_echo "$_am_result" >&6; }
2826 rm -f confinc confmf
2827
2828 # Check whether --enable-dependency-tracking was given.
2829 if test "${enable_dependency_tracking+set}" = set; then
2830   enableval=$enable_dependency_tracking;
2831 fi
2832
2833 if test "x$enable_dependency_tracking" != xno; then
2834   am_depcomp="$ac_aux_dir/depcomp"
2835   AMDEPBACKSLASH='\'
2836 fi
2837  if test "x$enable_dependency_tracking" != xno; then
2838   AMDEP_TRUE=
2839   AMDEP_FALSE='#'
2840 else
2841   AMDEP_TRUE='#'
2842   AMDEP_FALSE=
2843 fi
2844
2845
2846 ac_ext=c
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 if test -n "$ac_tool_prefix"; then
2852   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857   $as_echo_n "(cached) " >&6
2858 else
2859   if test -n "$CC"; then
2860   ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865   IFS=$as_save_IFS
2866   test -z "$as_dir" && as_dir=.
2867   for ac_exec_ext in '' $ac_executable_extensions; do
2868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871     break 2
2872   fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2883 else
2884   { $as_echo "$as_me:$LINENO: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888
2889 fi
2890 if test -z "$ac_cv_prog_CC"; then
2891   ac_ct_CC=$CC
2892   # Extract the first word of "gcc", so it can be a program name with args.
2893 set dummy gcc; ac_word=$2
2894 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897   $as_echo_n "(cached) " >&6
2898 else
2899   if test -n "$ac_ct_CC"; then
2900   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909     ac_cv_prog_ac_ct_CC="gcc"
2910     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2922 $as_echo "$ac_ct_CC" >&6; }
2923 else
2924   { $as_echo "$as_me:$LINENO: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928   if test "x$ac_ct_CC" = x; then
2929     CC=""
2930   else
2931     case $cross_compiling:$ac_tool_warned in
2932 yes:)
2933 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 ac_tool_warned=yes ;;
2936 esac
2937     CC=$ac_ct_CC
2938   fi
2939 else
2940   CC="$ac_cv_prog_CC"
2941 fi
2942
2943 if test -z "$CC"; then
2944           if test -n "$ac_tool_prefix"; then
2945     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}cc; ac_word=$2
2947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950   $as_echo_n "(cached) " >&6
2951 else
2952   if test -n "$CC"; then
2953   ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960   for ac_exec_ext in '' $ac_executable_extensions; do
2961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962     ac_cv_prog_CC="${ac_tool_prefix}cc"
2963     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964     break 2
2965   fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977   { $as_echo "$as_me:$LINENO: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982   fi
2983 fi
2984 if test -z "$CC"; then
2985   # Extract the first word of "cc", so it can be a program name with args.
2986 set dummy cc; ac_word=$2
2987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$CC"; then
2993   ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995   ac_prog_rejected=no
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001   for ac_exec_ext in '' $ac_executable_extensions; do
3002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004        ac_prog_rejected=yes
3005        continue
3006      fi
3007     ac_cv_prog_CC="cc"
3008     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009     break 2
3010   fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 if test $ac_prog_rejected = yes; then
3016   # We found a bogon in the path, so make sure we never use it.
3017   set dummy $ac_cv_prog_CC
3018   shift
3019   if test $# != 0; then
3020     # We chose a different compiler from the bogus one.
3021     # However, it has the same basename, so the bogon will be chosen
3022     # first if we set CC to just the basename; use the full file name.
3023     shift
3024     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3025   fi
3026 fi
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034   { $as_echo "$as_me:$LINENO: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 fi
3040 if test -z "$CC"; then
3041   if test -n "$ac_tool_prefix"; then
3042   for ac_prog in cl.exe
3043   do
3044     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then
3049   $as_echo_n "(cached) " >&6
3050 else
3051   if test -n "$CC"; then
3052   ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059   for ac_exec_ext in '' $ac_executable_extensions; do
3060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3062     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063     break 2
3064   fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076   { $as_echo "$as_me:$LINENO: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081     test -n "$CC" && break
3082   done
3083 fi
3084 if test -z "$CC"; then
3085   ac_ct_CC=$CC
3086   for ac_prog in cl.exe
3087 do
3088   # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$ac_ct_CC"; then
3096   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103   for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_ac_ct_CC="$ac_prog"
3106     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3119 else
3120   { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125   test -n "$ac_ct_CC" && break
3126 done
3127
3128   if test "x$ac_ct_CC" = x; then
3129     CC=""
3130   else
3131     case $cross_compiling:$ac_tool_warned in
3132 yes:)
3133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3136 esac
3137     CC=$ac_ct_CC
3138   fi
3139 fi
3140
3141 fi
3142
3143
3144 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3147 See \`config.log' for more details." >&5
3148 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3149 See \`config.log' for more details." >&2;}
3150    { (exit 1); exit 1; }; }; }
3151
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3154 set X $ac_compile
3155 ac_compiler=$2
3156 { (ac_try="$ac_compiler --version >&5"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162 $as_echo "$ac_try_echo") >&5
3163   (eval "$ac_compiler --version >&5") 2>&5
3164   ac_status=$?
3165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }
3167 { (ac_try="$ac_compiler -v >&5"
3168 case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 $as_echo "$ac_try_echo") >&5
3174   (eval "$ac_compiler -v >&5") 2>&5
3175   ac_status=$?
3176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }
3178 { (ac_try="$ac_compiler -V >&5"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3184 $as_echo "$ac_try_echo") >&5
3185   (eval "$ac_compiler -V >&5") 2>&5
3186   ac_status=$?
3187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }
3189
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h.  */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h.  */
3196
3197 int
3198 main ()
3199 {
3200
3201   ;
3202   return 0;
3203 }
3204 _ACEOF
3205 ac_clean_files_save=$ac_clean_files
3206 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3207 # Try to create an executable without -o first, disregard a.out.
3208 # It will help us diagnose broken compilers, and finding out an intuition
3209 # of exeext.
3210 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3211 $as_echo_n "checking for C compiler default output file name... " >&6; }
3212 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3213
3214 # The possible output files:
3215 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3216
3217 ac_rmfiles=
3218 for ac_file in $ac_files
3219 do
3220   case $ac_file in
3221     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3223   esac
3224 done
3225 rm -f $ac_rmfiles
3226
3227 if { (ac_try="$ac_link_default"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3233 $as_echo "$ac_try_echo") >&5
3234   (eval "$ac_link_default") 2>&5
3235   ac_status=$?
3236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; then
3238   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3239 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3240 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3241 # so that the user can short-circuit this test for compilers unknown to
3242 # Autoconf.
3243 for ac_file in $ac_files ''
3244 do
3245   test -f "$ac_file" || continue
3246   case $ac_file in
3247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3248         ;;
3249     [ab].out )
3250         # We found the default executable, but exeext='' is most
3251         # certainly right.
3252         break;;
3253     *.* )
3254         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3255         then :; else
3256            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3257         fi
3258         # We set ac_cv_exeext here because the later test for it is not
3259         # safe: cross compilers may not add the suffix if given an `-o'
3260         # argument, so we may need to know it at that point already.
3261         # Even if this section looks crufty: it has the advantage of
3262         # actually working.
3263         break;;
3264     * )
3265         break;;
3266   esac
3267 done
3268 test "$ac_cv_exeext" = no && ac_cv_exeext=
3269
3270 else
3271   ac_file=''
3272 fi
3273
3274 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3275 $as_echo "$ac_file" >&6; }
3276 if test -z "$ac_file"; then
3277   $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3283 See \`config.log' for more details." >&5
3284 $as_echo "$as_me: error: C compiler cannot create executables
3285 See \`config.log' for more details." >&2;}
3286    { (exit 77); exit 77; }; }; }
3287 fi
3288
3289 ac_exeext=$ac_cv_exeext
3290
3291 # Check that the compiler produces executables we can run.  If not, either
3292 # the compiler is broken, or we cross compile.
3293 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3294 $as_echo_n "checking whether the C compiler works... " >&6; }
3295 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3296 # If not cross compiling, check that we can run a simple program.
3297 if test "$cross_compiling" != yes; then
3298   if { ac_try='./$ac_file'
3299   { (case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305   (eval "$ac_try") 2>&5
3306   ac_status=$?
3307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; }; then
3309     cross_compiling=no
3310   else
3311     if test "$cross_compiling" = maybe; then
3312         cross_compiling=yes
3313     else
3314         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3317 If you meant to cross compile, use \`--host'.
3318 See \`config.log' for more details." >&5
3319 $as_echo "$as_me: error: cannot run C compiled programs.
3320 If you meant to cross compile, use \`--host'.
3321 See \`config.log' for more details." >&2;}
3322    { (exit 1); exit 1; }; }; }
3323     fi
3324   fi
3325 fi
3326 { $as_echo "$as_me:$LINENO: result: yes" >&5
3327 $as_echo "yes" >&6; }
3328
3329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3330 ac_clean_files=$ac_clean_files_save
3331 # Check that the compiler produces executables we can run.  If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3336 $as_echo "$cross_compiling" >&6; }
3337
3338 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3339 $as_echo_n "checking for suffix of executables... " >&6; }
3340 if { (ac_try="$ac_link"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347   (eval "$ac_link") 2>&5
3348   ac_status=$?
3349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; then
3351   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3353 # work properly (i.e., refer to `conftest.exe'), while it won't with
3354 # `rm'.
3355 for ac_file in conftest.exe conftest conftest.*; do
3356   test -f "$ac_file" || continue
3357   case $ac_file in
3358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360           break;;
3361     * ) break;;
3362   esac
3363 done
3364 else
3365   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3368 See \`config.log' for more details." >&5
3369 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3370 See \`config.log' for more details." >&2;}
3371    { (exit 1); exit 1; }; }; }
3372 fi
3373
3374 rm -f conftest$ac_cv_exeext
3375 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3376 $as_echo "$ac_cv_exeext" >&6; }
3377
3378 rm -f conftest.$ac_ext
3379 EXEEXT=$ac_cv_exeext
3380 ac_exeext=$EXEEXT
3381 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3382 $as_echo_n "checking for suffix of object files... " >&6; }
3383 if test "${ac_cv_objext+set}" = set; then
3384   $as_echo_n "(cached) " >&6
3385 else
3386   cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392
3393 int
3394 main ()
3395 {
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.o conftest.obj
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409   (eval "$ac_compile") 2>&5
3410   ac_status=$?
3411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }; then
3413   for ac_file in conftest.o conftest.obj conftest.*; do
3414   test -f "$ac_file" || continue;
3415   case $ac_file in
3416     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3417     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3418        break;;
3419   esac
3420 done
3421 else
3422   $as_echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3428 See \`config.log' for more details." >&5
3429 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3430 See \`config.log' for more details." >&2;}
3431    { (exit 1); exit 1; }; }; }
3432 fi
3433
3434 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3435 fi
3436 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3437 $as_echo "$ac_cv_objext" >&6; }
3438 OBJEXT=$ac_cv_objext
3439 ac_objext=$OBJEXT
3440 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3441 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3442 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3443   $as_echo_n "(cached) " >&6
3444 else
3445   cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h.  */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h.  */
3451
3452 int
3453 main ()
3454 {
3455 #ifndef __GNUC__
3456        choke me
3457 #endif
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3465 case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470 $as_echo "$ac_try_echo") >&5
3471   (eval "$ac_compile") 2>conftest.er1
3472   ac_status=$?
3473   grep -v '^ *+' conftest.er1 >conftest.err
3474   rm -f conftest.er1
3475   cat conftest.err >&5
3476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } && {
3478          test -z "$ac_c_werror_flag" ||
3479          test ! -s conftest.err
3480        } && test -s conftest.$ac_objext; then
3481   ac_compiler_gnu=yes
3482 else
3483   $as_echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486         ac_compiler_gnu=no
3487 fi
3488
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3491
3492 fi
3493 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3494 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3495 if test $ac_compiler_gnu = yes; then
3496   GCC=yes
3497 else
3498   GCC=
3499 fi
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3503 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3504 if test "${ac_cv_prog_cc_g+set}" = set; then
3505   $as_echo_n "(cached) " >&6
3506 else
3507   ac_save_c_werror_flag=$ac_c_werror_flag
3508    ac_c_werror_flag=yes
3509    ac_cv_prog_cc_g=no
3510    CFLAGS="-g"
3511    cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517
3518 int
3519 main ()
3520 {
3521
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3528 case "(($ac_try" in
3529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530   *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533 $as_echo "$ac_try_echo") >&5
3534   (eval "$ac_compile") 2>conftest.er1
3535   ac_status=$?
3536   grep -v '^ *+' conftest.er1 >conftest.err
3537   rm -f conftest.er1
3538   cat conftest.err >&5
3539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); } && {
3541          test -z "$ac_c_werror_flag" ||
3542          test ! -s conftest.err
3543        } && test -s conftest.$ac_objext; then
3544   ac_cv_prog_cc_g=yes
3545 else
3546   $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549         CFLAGS=""
3550       cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h.  */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h.  */
3556
3557 int
3558 main ()
3559 {
3560
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 rm -f conftest.$ac_objext
3566 if { (ac_try="$ac_compile"
3567 case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3572 $as_echo "$ac_try_echo") >&5
3573   (eval "$ac_compile") 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } && {
3580          test -z "$ac_c_werror_flag" ||
3581          test ! -s conftest.err
3582        } && test -s conftest.$ac_objext; then
3583   :
3584 else
3585   $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588         ac_c_werror_flag=$ac_save_c_werror_flag
3589          CFLAGS="-g"
3590          cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613   (eval "$ac_compile") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } && {
3620          test -z "$ac_c_werror_flag" ||
3621          test ! -s conftest.err
3622        } && test -s conftest.$ac_objext; then
3623   ac_cv_prog_cc_g=yes
3624 else
3625   $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628
3629 fi
3630
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 fi
3636
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638    ac_c_werror_flag=$ac_save_c_werror_flag
3639 fi
3640 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3641 $as_echo "$ac_cv_prog_cc_g" >&6; }
3642 if test "$ac_test_CFLAGS" = set; then
3643   CFLAGS=$ac_save_CFLAGS
3644 elif test $ac_cv_prog_cc_g = yes; then
3645   if test "$GCC" = yes; then
3646     CFLAGS="-g -O2"
3647   else
3648     CFLAGS="-g"
3649   fi
3650 else
3651   if test "$GCC" = yes; then
3652     CFLAGS="-O2"
3653   else
3654     CFLAGS=
3655   fi
3656 fi
3657 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3658 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3659 if test "${ac_cv_prog_cc_c89+set}" = set; then
3660   $as_echo_n "(cached) " >&6
3661 else
3662   ac_cv_prog_cc_c89=no
3663 ac_save_CC=$CC
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 #include <stdarg.h>
3671 #include <stdio.h>
3672 #include <sys/types.h>
3673 #include <sys/stat.h>
3674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3675 struct buf { int x; };
3676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3677 static char *e (p, i)
3678      char **p;
3679      int i;
3680 {
3681   return p[i];
3682 }
3683 static char *f (char * (*g) (char **, int), char **p, ...)
3684 {
3685   char *s;
3686   va_list v;
3687   va_start (v,p);
3688   s = g (p, va_arg (v,int));
3689   va_end (v);
3690   return s;
3691 }
3692
3693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3694    function prototypes and stuff, but not '\xHH' hex character constants.
3695    These don't provoke an error unfortunately, instead are silently treated
3696    as 'x'.  The following induces an error, until -std is added to get
3697    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3698    array size at least.  It's necessary to write '\x00'==0 to get something
3699    that's true only with -std.  */
3700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3701
3702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3703    inside strings and character constants.  */
3704 #define FOO(x) 'x'
3705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3706
3707 int test (int i, double x);
3708 struct s1 {int (*f) (int a);};
3709 struct s2 {int (*f) (double a);};
3710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3711 int argc;
3712 char **argv;
3713 int
3714 main ()
3715 {
3716 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3717   ;
3718   return 0;
3719 }
3720 _ACEOF
3721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3722         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3723 do
3724   CC="$ac_save_CC $ac_arg"
3725   rm -f conftest.$ac_objext
3726 if { (ac_try="$ac_compile"
3727 case "(($ac_try" in
3728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729   *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732 $as_echo "$ac_try_echo") >&5
3733   (eval "$ac_compile") 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } && {
3740          test -z "$ac_c_werror_flag" ||
3741          test ! -s conftest.err
3742        } && test -s conftest.$ac_objext; then
3743   ac_cv_prog_cc_c89=$ac_arg
3744 else
3745   $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748
3749 fi
3750
3751 rm -f core conftest.err conftest.$ac_objext
3752   test "x$ac_cv_prog_cc_c89" != "xno" && break
3753 done
3754 rm -f conftest.$ac_ext
3755 CC=$ac_save_CC
3756
3757 fi
3758 # AC_CACHE_VAL
3759 case "x$ac_cv_prog_cc_c89" in
3760   x)
3761     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3762 $as_echo "none needed" >&6; } ;;
3763   xno)
3764     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3765 $as_echo "unsupported" >&6; } ;;
3766   *)
3767     CC="$CC $ac_cv_prog_cc_c89"
3768     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3769 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3770 esac
3771
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779 depcc="$CC"   am_compiler_list=
3780
3781 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787   # We make a subdir and do the tests there.  Otherwise we can end up
3788   # making bogus files that we don't know about and never remove.  For
3789   # instance it was reported that on HP-UX the gcc test will end up
3790   # making a dummy file named `D' -- because `-MD' means `put the output
3791   # in D'.
3792   mkdir conftest.dir
3793   # Copy depcomp to subdir because otherwise we won't find it if we're
3794   # using a relative directory.
3795   cp "$am_depcomp" conftest.dir
3796   cd conftest.dir
3797   # We will build objects and dependencies in a subdirectory because
3798   # it helps to detect inapplicable dependency modes.  For instance
3799   # both Tru64's cc and ICC support -MD to output dependencies as a
3800   # side effect of compilation, but ICC will put the dependencies in
3801   # the current directory while Tru64 will put them in the object
3802   # directory.
3803   mkdir sub
3804
3805   am_cv_CC_dependencies_compiler_type=none
3806   if test "$am_compiler_list" = ""; then
3807      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3808   fi
3809   for depmode in $am_compiler_list; do
3810     # Setup a source with many dependencies, because some compilers
3811     # like to wrap large dependency lists on column 80 (with \), and
3812     # we should not choose a depcomp mode which is confused by this.
3813     #
3814     # We need to recreate these files for each test, as the compiler may
3815     # overwrite some of them when testing with obscure command lines.
3816     # This happens at least with the AIX C compiler.
3817     : > sub/conftest.c
3818     for i in 1 2 3 4 5 6; do
3819       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821       # Solaris 8's {/usr,}/bin/sh.
3822       touch sub/conftst$i.h
3823     done
3824     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3825
3826     case $depmode in
3827     nosideeffect)
3828       # after this tag, mechanisms are not by side-effect, so they'll
3829       # only be used when explicitly requested
3830       if test "x$enable_dependency_tracking" = xyes; then
3831         continue
3832       else
3833         break
3834       fi
3835       ;;
3836     none) break ;;
3837     esac
3838     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839     # mode.  It turns out that the SunPro C++ compiler does not properly
3840     # handle `-M -o', and we need to detect this.
3841     if depmode=$depmode \
3842        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3843        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3844        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3845          >/dev/null 2>conftest.err &&
3846        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3847        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3848        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3849        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3850       # icc doesn't choke on unknown options, it will just issue warnings
3851       # or remarks (even with -Werror).  So we grep stderr for any message
3852       # that says an option was ignored or not supported.
3853       # When given -MP, icc 7.0 and 7.1 complain thusly:
3854       #   icc: Command line warning: ignoring option '-M'; no argument required
3855       # The diagnosis changed in icc 8.0:
3856       #   icc: Command line remark: option '-MP' not supported
3857       if (grep 'ignoring option' conftest.err ||
3858           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3859         am_cv_CC_dependencies_compiler_type=$depmode
3860         break
3861       fi
3862     fi
3863   done
3864
3865   cd ..
3866   rm -rf conftest.dir
3867 else
3868   am_cv_CC_dependencies_compiler_type=none
3869 fi
3870
3871 fi
3872 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3873 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3874 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3875
3876  if
3877   test "x$enable_dependency_tracking" != xno \
3878   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3879   am__fastdepCC_TRUE=
3880   am__fastdepCC_FALSE='#'
3881 else
3882   am__fastdepCC_TRUE='#'
3883   am__fastdepCC_FALSE=
3884 fi
3885
3886
3887 if test "x$CC" != xcc; then
3888   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3889 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3890 else
3891   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3892 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3893 fi
3894 set dummy $CC; ac_cc=`$as_echo "$2" |
3895                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3896 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3897   $as_echo_n "(cached) " >&6
3898 else
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 # Make sure it works both with $CC and with simple cc.
3915 # We do the test twice because some compilers refuse to overwrite an
3916 # existing .o file with -o, though they will create one.
3917 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3918 rm -f conftest2.*
3919 if { (case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3924 $as_echo "$ac_try_echo") >&5
3925   (eval "$ac_try") 2>&5
3926   ac_status=$?
3927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); } &&
3929    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931   *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3934 $as_echo "$ac_try_echo") >&5
3935   (eval "$ac_try") 2>&5
3936   ac_status=$?
3937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); };
3939 then
3940   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3941   if test "x$CC" != xcc; then
3942     # Test first that cc exists at all.
3943     if { ac_try='cc -c conftest.$ac_ext >&5'
3944   { (case "(($ac_try" in
3945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946   *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3949 $as_echo "$ac_try_echo") >&5
3950   (eval "$ac_try") 2>&5
3951   ac_status=$?
3952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); }; }; then
3954       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3955       rm -f conftest2.*
3956       if { (case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3961 $as_echo "$ac_try_echo") >&5
3962   (eval "$ac_try") 2>&5
3963   ac_status=$?
3964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } &&
3966          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972   (eval "$ac_try") 2>&5
3973   ac_status=$?
3974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); };
3976       then
3977         # cc works too.
3978         :
3979       else
3980         # cc exists but doesn't like -o.
3981         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3982       fi
3983     fi
3984   fi
3985 else
3986   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3987 fi
3988 rm -f core conftest*
3989
3990 fi
3991 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3992   { $as_echo "$as_me:$LINENO: result: yes" >&5
3993 $as_echo "yes" >&6; }
3994 else
3995   { $as_echo "$as_me:$LINENO: result: no" >&5
3996 $as_echo "no" >&6; }
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define NO_MINUS_C_MINUS_O 1
4000 _ACEOF
4001
4002 fi
4003
4004 # FIXME: we rely on the cache variable name because
4005 # there is no other way.
4006 set dummy $CC
4007 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4008 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4009    # Losing compiler, so override with the script.
4010    # FIXME: It is wrong to rewrite CC.
4011    # But if we don't then we get into trouble of one sort or another.
4012    # A longer-term fix would be to have automake use am__CC in this case,
4013    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014    CC="$am_aux_dir/compile $CC"
4015 fi
4016
4017
4018 ac_ext=cpp
4019 ac_cpp='$CXXCPP $CPPFLAGS'
4020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4023 if test -z "$CXX"; then
4024   if test -n "$CCC"; then
4025     CXX=$CCC
4026   else
4027     if test -n "$ac_tool_prefix"; then
4028   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4029   do
4030     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_CXX+set}" = set; then
4035   $as_echo_n "(cached) " >&6
4036 else
4037   if test -n "$CXX"; then
4038   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045   for ac_exec_ext in '' $ac_executable_extensions; do
4046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4048     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052 done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 CXX=$ac_cv_prog_CXX
4058 if test -n "$CXX"; then
4059   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4060 $as_echo "$CXX" >&6; }
4061 else
4062   { $as_echo "$as_me:$LINENO: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066
4067     test -n "$CXX" && break
4068   done
4069 fi
4070 if test -z "$CXX"; then
4071   ac_ct_CXX=$CXX
4072   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4073 do
4074   # Extract the first word of "$ac_prog", so it can be a program name with args.
4075 set dummy $ac_prog; ac_word=$2
4076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4079   $as_echo_n "(cached) " >&6
4080 else
4081   if test -n "$ac_ct_CXX"; then
4082   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087   IFS=$as_save_IFS
4088   test -z "$as_dir" && as_dir=.
4089   for ac_exec_ext in '' $ac_executable_extensions; do
4090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091     ac_cv_prog_ac_ct_CXX="$ac_prog"
4092     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4093     break 2
4094   fi
4095 done
4096 done
4097 IFS=$as_save_IFS
4098
4099 fi
4100 fi
4101 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4102 if test -n "$ac_ct_CXX"; then
4103   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4104 $as_echo "$ac_ct_CXX" >&6; }
4105 else
4106   { $as_echo "$as_me:$LINENO: result: no" >&5
4107 $as_echo "no" >&6; }
4108 fi
4109
4110
4111   test -n "$ac_ct_CXX" && break
4112 done
4113
4114   if test "x$ac_ct_CXX" = x; then
4115     CXX="g++"
4116   else
4117     case $cross_compiling:$ac_tool_warned in
4118 yes:)
4119 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4121 ac_tool_warned=yes ;;
4122 esac
4123     CXX=$ac_ct_CXX
4124   fi
4125 fi
4126
4127   fi
4128 fi
4129 # Provide some information about the compiler.
4130 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4131 set X $ac_compile
4132 ac_compiler=$2
4133 { (ac_try="$ac_compiler --version >&5"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140   (eval "$ac_compiler --version >&5") 2>&5
4141   ac_status=$?
4142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }
4144 { (ac_try="$ac_compiler -v >&5"
4145 case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4150 $as_echo "$ac_try_echo") >&5
4151   (eval "$ac_compiler -v >&5") 2>&5
4152   ac_status=$?
4153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }
4155 { (ac_try="$ac_compiler -V >&5"
4156 case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4161 $as_echo "$ac_try_echo") >&5
4162   (eval "$ac_compiler -V >&5") 2>&5
4163   ac_status=$?
4164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }
4166
4167 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4168 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4169 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4170   $as_echo_n "(cached) " >&6
4171 else
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178
4179 int
4180 main ()
4181 {
4182 #ifndef __GNUC__
4183        choke me
4184 #endif
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4192 case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4197 $as_echo "$ac_try_echo") >&5
4198   (eval "$ac_compile") 2>conftest.er1
4199   ac_status=$?
4200   grep -v '^ *+' conftest.er1 >conftest.err
4201   rm -f conftest.er1
4202   cat conftest.err >&5
4203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } && {
4205          test -z "$ac_cxx_werror_flag" ||
4206          test ! -s conftest.err
4207        } && test -s conftest.$ac_objext; then
4208   ac_compiler_gnu=yes
4209 else
4210   $as_echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213         ac_compiler_gnu=no
4214 fi
4215
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4218
4219 fi
4220 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4223   GXX=yes
4224 else
4225   GXX=
4226 fi
4227 ac_test_CXXFLAGS=${CXXFLAGS+set}
4228 ac_save_CXXFLAGS=$CXXFLAGS
4229 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4231 if test "${ac_cv_prog_cxx_g+set}" = set; then
4232   $as_echo_n "(cached) " >&6
4233 else
4234   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4235    ac_cxx_werror_flag=yes
4236    ac_cv_prog_cxx_g=no
4237    CXXFLAGS="-g"
4238    cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h.  */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h.  */
4244
4245 int
4246 main ()
4247 {
4248
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4255 case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261   (eval "$ac_compile") 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } && {
4268          test -z "$ac_cxx_werror_flag" ||
4269          test ! -s conftest.err
4270        } && test -s conftest.$ac_objext; then
4271   ac_cv_prog_cxx_g=yes
4272 else
4273   $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276         CXXFLAGS=""
4277       cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h.  */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h.  */
4283
4284 int
4285 main ()
4286 {
4287
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (ac_try="$ac_compile"
4294 case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4299 $as_echo "$ac_try_echo") >&5
4300   (eval "$ac_compile") 2>conftest.er1
4301   ac_status=$?
4302   grep -v '^ *+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } && {
4307          test -z "$ac_cxx_werror_flag" ||
4308          test ! -s conftest.err
4309        } && test -s conftest.$ac_objext; then
4310   :
4311 else
4312   $as_echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4316          CXXFLAGS="-g"
4317          cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323
4324 int
4325 main ()
4326 {
4327
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (ac_try="$ac_compile"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4339 $as_echo "$ac_try_echo") >&5
4340   (eval "$ac_compile") 2>conftest.er1
4341   ac_status=$?
4342   grep -v '^ *+' conftest.er1 >conftest.err
4343   rm -f conftest.er1
4344   cat conftest.err >&5
4345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); } && {
4347          test -z "$ac_cxx_werror_flag" ||
4348          test ! -s conftest.err
4349        } && test -s conftest.$ac_objext; then
4350   ac_cv_prog_cxx_g=yes
4351 else
4352   $as_echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355
4356 fi
4357
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 fi
4360
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 fi
4363
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4366 fi
4367 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4369 if test "$ac_test_CXXFLAGS" = set; then
4370   CXXFLAGS=$ac_save_CXXFLAGS
4371 elif test $ac_cv_prog_cxx_g = yes; then
4372   if test "$GXX" = yes; then
4373     CXXFLAGS="-g -O2"
4374   else
4375     CXXFLAGS="-g"
4376   fi
4377 else
4378   if test "$GXX" = yes; then
4379     CXXFLAGS="-O2"
4380   else
4381     CXXFLAGS=
4382   fi
4383 fi
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390 depcc="$CXX"  am_compiler_list=
4391
4392 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4393 $as_echo_n "checking dependency style of $depcc... " >&6; }
4394 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4395   $as_echo_n "(cached) " >&6
4396 else
4397   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4398   # We make a subdir and do the tests there.  Otherwise we can end up
4399   # making bogus files that we don't know about and never remove.  For
4400   # instance it was reported that on HP-UX the gcc test will end up
4401   # making a dummy file named `D' -- because `-MD' means `put the output
4402   # in D'.
4403   mkdir conftest.dir
4404   # Copy depcomp to subdir because otherwise we won't find it if we're
4405   # using a relative directory.
4406   cp "$am_depcomp" conftest.dir
4407   cd conftest.dir
4408   # We will build objects and dependencies in a subdirectory because
4409   # it helps to detect inapplicable dependency modes.  For instance
4410   # both Tru64's cc and ICC support -MD to output dependencies as a
4411   # side effect of compilation, but ICC will put the dependencies in
4412   # the current directory while Tru64 will put them in the object
4413   # directory.
4414   mkdir sub
4415
4416   am_cv_CXX_dependencies_compiler_type=none
4417   if test "$am_compiler_list" = ""; then
4418      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4419   fi
4420   for depmode in $am_compiler_list; do
4421     # Setup a source with many dependencies, because some compilers
4422     # like to wrap large dependency lists on column 80 (with \), and
4423     # we should not choose a depcomp mode which is confused by this.
4424     #
4425     # We need to recreate these files for each test, as the compiler may
4426     # overwrite some of them when testing with obscure command lines.
4427     # This happens at least with the AIX C compiler.
4428     : > sub/conftest.c
4429     for i in 1 2 3 4 5 6; do
4430       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4432       # Solaris 8's {/usr,}/bin/sh.
4433       touch sub/conftst$i.h
4434     done
4435     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4436
4437     case $depmode in
4438     nosideeffect)
4439       # after this tag, mechanisms are not by side-effect, so they'll
4440       # only be used when explicitly requested
4441       if test "x$enable_dependency_tracking" = xyes; then
4442         continue
4443       else
4444         break
4445       fi
4446       ;;
4447     none) break ;;
4448     esac
4449     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4450     # mode.  It turns out that the SunPro C++ compiler does not properly
4451     # handle `-M -o', and we need to detect this.
4452     if depmode=$depmode \
4453        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4454        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4455        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4456          >/dev/null 2>conftest.err &&
4457        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4458        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4459        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4460        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4461       # icc doesn't choke on unknown options, it will just issue warnings
4462       # or remarks (even with -Werror).  So we grep stderr for any message
4463       # that says an option was ignored or not supported.
4464       # When given -MP, icc 7.0 and 7.1 complain thusly:
4465       #   icc: Command line warning: ignoring option '-M'; no argument required
4466       # The diagnosis changed in icc 8.0:
4467       #   icc: Command line remark: option '-MP' not supported
4468       if (grep 'ignoring option' conftest.err ||
4469           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4470         am_cv_CXX_dependencies_compiler_type=$depmode
4471         break
4472       fi
4473     fi
4474   done
4475
4476   cd ..
4477   rm -rf conftest.dir
4478 else
4479   am_cv_CXX_dependencies_compiler_type=none
4480 fi
4481
4482 fi
4483 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4484 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4485 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4486
4487  if
4488   test "x$enable_dependency_tracking" != xno \
4489   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4490   am__fastdepCXX_TRUE=
4491   am__fastdepCXX_FALSE='#'
4492 else
4493   am__fastdepCXX_TRUE='#'
4494   am__fastdepCXX_FALSE=
4495 fi
4496
4497
4498
4499 # By default we simply use the C compiler to build assembly code.
4500
4501 test "${CCAS+set}" = set || CCAS=$CC
4502 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4503
4504
4505
4506 depcc="$CCAS"   am_compiler_list=
4507
4508 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4509 $as_echo_n "checking dependency style of $depcc... " >&6; }
4510 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
4511   $as_echo_n "(cached) " >&6
4512 else
4513   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4514   # We make a subdir and do the tests there.  Otherwise we can end up
4515   # making bogus files that we don't know about and never remove.  For
4516   # instance it was reported that on HP-UX the gcc test will end up
4517   # making a dummy file named `D' -- because `-MD' means `put the output
4518   # in D'.
4519   mkdir conftest.dir
4520   # Copy depcomp to subdir because otherwise we won't find it if we're
4521   # using a relative directory.
4522   cp "$am_depcomp" conftest.dir
4523   cd conftest.dir
4524   # We will build objects and dependencies in a subdirectory because
4525   # it helps to detect inapplicable dependency modes.  For instance
4526   # both Tru64's cc and ICC support -MD to output dependencies as a
4527   # side effect of compilation, but ICC will put the dependencies in
4528   # the current directory while Tru64 will put them in the object
4529   # directory.
4530   mkdir sub
4531
4532   am_cv_CCAS_dependencies_compiler_type=none
4533   if test "$am_compiler_list" = ""; then
4534      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4535   fi
4536   for depmode in $am_compiler_list; do
4537     # Setup a source with many dependencies, because some compilers
4538     # like to wrap large dependency lists on column 80 (with \), and
4539     # we should not choose a depcomp mode which is confused by this.
4540     #
4541     # We need to recreate these files for each test, as the compiler may
4542     # overwrite some of them when testing with obscure command lines.
4543     # This happens at least with the AIX C compiler.
4544     : > sub/conftest.c
4545     for i in 1 2 3 4 5 6; do
4546       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4547       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4548       # Solaris 8's {/usr,}/bin/sh.
4549       touch sub/conftst$i.h
4550     done
4551     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4552
4553     case $depmode in
4554     nosideeffect)
4555       # after this tag, mechanisms are not by side-effect, so they'll
4556       # only be used when explicitly requested
4557       if test "x$enable_dependency_tracking" = xyes; then
4558         continue
4559       else
4560         break
4561       fi
4562       ;;
4563     none) break ;;
4564     esac
4565     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4566     # mode.  It turns out that the SunPro C++ compiler does not properly
4567     # handle `-M -o', and we need to detect this.
4568     if depmode=$depmode \
4569        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4570        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4571        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4572          >/dev/null 2>conftest.err &&
4573        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4574        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4575        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4576        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4577       # icc doesn't choke on unknown options, it will just issue warnings
4578       # or remarks (even with -Werror).  So we grep stderr for any message
4579       # that says an option was ignored or not supported.
4580       # When given -MP, icc 7.0 and 7.1 complain thusly:
4581       #   icc: Command line warning: ignoring option '-M'; no argument required
4582       # The diagnosis changed in icc 8.0:
4583       #   icc: Command line remark: option '-MP' not supported
4584       if (grep 'ignoring option' conftest.err ||
4585           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4586         am_cv_CCAS_dependencies_compiler_type=$depmode
4587         break
4588       fi
4589     fi
4590   done
4591
4592   cd ..
4593   rm -rf conftest.dir
4594 else
4595   am_cv_CCAS_dependencies_compiler_type=none
4596 fi
4597
4598 fi
4599 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4600 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4601 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4602
4603  if
4604   test "x$enable_dependency_tracking" != xno \
4605   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4606   am__fastdepCCAS_TRUE=
4607   am__fastdepCCAS_FALSE='#'
4608 else
4609   am__fastdepCCAS_TRUE='#'
4610   am__fastdepCCAS_FALSE=
4611 fi
4612
4613
4614 ## FIXME: really needed? (AC_LIBTOOL already provides this)
4615 if test -n "$ac_tool_prefix"; then
4616   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ar; ac_word=$2
4618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_AR+set}" = set; then
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if test -n "$AR"; then
4624   ac_cv_prog_AR="$AR" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_prog_AR="${ac_tool_prefix}ar"
4634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 AR=$ac_cv_prog_AR
4644 if test -n "$AR"; then
4645   { $as_echo "$as_me:$LINENO: result: $AR" >&5
4646 $as_echo "$AR" >&6; }
4647 else
4648   { $as_echo "$as_me:$LINENO: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651
4652
4653 fi
4654 if test -z "$ac_cv_prog_AR"; then
4655   ac_ct_AR=$AR
4656   # Extract the first word of "ar", so it can be a program name with args.
4657 set dummy ar; ac_word=$2
4658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$ac_ct_AR"; then
4664   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_ac_ct_AR="ar"
4674     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4684 if test -n "$ac_ct_AR"; then
4685   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4686 $as_echo "$ac_ct_AR" >&6; }
4687 else
4688   { $as_echo "$as_me:$LINENO: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692   if test "x$ac_ct_AR" = x; then
4693     AR=""
4694   else
4695     case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701     AR=$ac_ct_AR
4702   fi
4703 else
4704   AR="$ac_cv_prog_AR"
4705 fi
4706
4707 if test -n "$ac_tool_prefix"; then
4708   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_RANLIB+set}" = set; then
4713   $as_echo_n "(cached) " >&6
4714 else
4715   if test -n "$RANLIB"; then
4716   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723   for ac_exec_ext in '' $ac_executable_extensions; do
4724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4726     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727     break 2
4728   fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 RANLIB=$ac_cv_prog_RANLIB
4736 if test -n "$RANLIB"; then
4737   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4738 $as_echo "$RANLIB" >&6; }
4739 else
4740   { $as_echo "$as_me:$LINENO: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744
4745 fi
4746 if test -z "$ac_cv_prog_RANLIB"; then
4747   ac_ct_RANLIB=$RANLIB
4748   # Extract the first word of "ranlib", so it can be a program name with args.
4749 set dummy ranlib; ac_word=$2
4750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4753   $as_echo_n "(cached) " >&6
4754 else
4755   if test -n "$ac_ct_RANLIB"; then
4756   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763   for ac_exec_ext in '' $ac_executable_extensions; do
4764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765     ac_cv_prog_ac_ct_RANLIB="ranlib"
4766     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773 fi
4774 fi
4775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4776 if test -n "$ac_ct_RANLIB"; then
4777   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4778 $as_echo "$ac_ct_RANLIB" >&6; }
4779 else
4780   { $as_echo "$as_me:$LINENO: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783
4784   if test "x$ac_ct_RANLIB" = x; then
4785     RANLIB=":"
4786   else
4787     case $cross_compiling:$ac_tool_warned in
4788 yes:)
4789 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4791 ac_tool_warned=yes ;;
4792 esac
4793     RANLIB=$ac_ct_RANLIB
4794   fi
4795 else
4796   RANLIB="$ac_cv_prog_RANLIB"
4797 fi
4798   # :)
4799
4800 # Find a good install program.  We prefer a C program (faster),
4801 # so one script is as good as another.  But avoid the broken or
4802 # incompatible versions:
4803 # SysV /etc/install, /usr/sbin/install
4804 # SunOS /usr/etc/install
4805 # IRIX /sbin/install
4806 # AIX /bin/install
4807 # AmigaOS /C/install, which installs bootblocks on floppy discs
4808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4811 # OS/2's system install, which has a completely different semantic
4812 # ./install, which can be erroneously created by make from ./install.sh.
4813 # Reject install programs that cannot install multiple files.
4814 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4815 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4816 if test -z "$INSTALL"; then
4817 if test "${ac_cv_path_install+set}" = set; then
4818   $as_echo_n "(cached) " >&6
4819 else
4820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825   # Account for people who put trailing slashes in PATH elements.
4826 case $as_dir/ in
4827   ./ | .// | /cC/* | \
4828   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4829   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4830   /usr/ucb/* ) ;;
4831   *)
4832     # OSF1 and SCO ODT 3.0 have their own names for install.
4833     # Don't use installbsd from OSF since it installs stuff as root
4834     # by default.
4835     for ac_prog in ginstall scoinst install; do
4836       for ac_exec_ext in '' $ac_executable_extensions; do
4837         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4838           if test $ac_prog = install &&
4839             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4840             # AIX install.  It has an incompatible calling convention.
4841             :
4842           elif test $ac_prog = install &&
4843             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4844             # program-specific install script used by HP pwplus--don't use.
4845             :
4846           else
4847             rm -rf conftest.one conftest.two conftest.dir
4848             echo one > conftest.one
4849             echo two > conftest.two
4850             mkdir conftest.dir
4851             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4852               test -s conftest.one && test -s conftest.two &&
4853               test -s conftest.dir/conftest.one &&
4854               test -s conftest.dir/conftest.two
4855             then
4856               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4857               break 3
4858             fi
4859           fi
4860         fi
4861       done
4862     done
4863     ;;
4864 esac
4865
4866 done
4867 IFS=$as_save_IFS
4868
4869 rm -rf conftest.one conftest.two conftest.dir
4870
4871 fi
4872   if test "${ac_cv_path_install+set}" = set; then
4873     INSTALL=$ac_cv_path_install
4874   else
4875     # As a last resort, use the slow shell script.  Don't cache a
4876     # value for INSTALL within a source directory, because that will
4877     # break other packages using the cache if that directory is
4878     # removed, or if the value is a relative name.
4879     INSTALL=$ac_install_sh
4880   fi
4881 fi
4882 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4883 $as_echo "$INSTALL" >&6; }
4884
4885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4886 # It thinks the first close brace ends the variable substitution.
4887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4888
4889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4890
4891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4892
4893
4894 . ${srcdir}/configure.host
4895
4896 GC_CFLAGS=${gc_cflags}
4897
4898
4899 # Check whether --enable-boehm-threads was given.
4900 if test "${enable_boehm_threads+set}" = set; then
4901   enableval=$enable_boehm_threads; THREADS=$enableval
4902 else
4903    { $as_echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4904 $as_echo_n "checking for thread model used by GCC... " >&6; }
4905     THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4906     if test -z "$THREADS"; then
4907       THREADS=no
4908     fi
4909     { $as_echo "$as_me:$LINENO: result: $THREADS" >&5
4910 $as_echo "$THREADS" >&6; }
4911 fi
4912
4913
4914 # Check whether --enable-parallel-mark was given.
4915 if test "${enable_parallel_mark+set}" = set; then
4916   enableval=$enable_parallel_mark; case "$THREADS" in
4917       no | none | single)
4918         { { $as_echo "$as_me:$LINENO: error: Parallel mark requires --enable-boehm-threads=x spec" >&5
4919 $as_echo "$as_me: error: Parallel mark requires --enable-boehm-threads=x spec" >&2;}
4920    { (exit 1); exit 1; }; }
4921         ;;
4922     esac
4923
4924 fi
4925
4926
4927 # Check whether --enable-cplusplus was given.
4928 if test "${enable_cplusplus+set}" = set; then
4929   enableval=$enable_cplusplus;
4930 fi
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972 THREADDLLIBS=
4973 need_atomic_ops_asm=false
4974 ## Libraries needed to support dynamic loading and/or threads.
4975 case "$THREADS" in
4976  no | none | single)
4977     THREADS=none
4978     ;;
4979  posix | pthreads)
4980     THREADS=posix
4981     THREADDLLIBS=-lpthread
4982     case "$host" in
4983      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux* | sparc*-*-linux*)
4984         cat >>confdefs.h <<\_ACEOF
4985 #define GC_LINUX_THREADS 1
4986 _ACEOF
4987
4988         cat >>confdefs.h <<\_ACEOF
4989 #define _REENTRANT 1
4990 _ACEOF
4991
4992         if test "${enable_parallel_mark}" = yes; then
4993           cat >>confdefs.h <<\_ACEOF
4994 #define PARALLEL_MARK 1
4995 _ACEOF
4996
4997         fi
4998         cat >>confdefs.h <<\_ACEOF
4999 #define THREAD_LOCAL_ALLOC 1
5000 _ACEOF
5001
5002         { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5003 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5004         ;;
5005      *-*-linux*)
5006         cat >>confdefs.h <<\_ACEOF
5007 #define GC_LINUX_THREADS 1
5008 _ACEOF
5009
5010         cat >>confdefs.h <<\_ACEOF
5011 #define _REENTRANT 1
5012 _ACEOF
5013
5014         ;;
5015      *-*-aix*)
5016         cat >>confdefs.h <<\_ACEOF
5017 #define GC_AIX_THREADS 1
5018 _ACEOF
5019
5020         cat >>confdefs.h <<\_ACEOF
5021 #define _REENTRANT 1
5022 _ACEOF
5023
5024         ;;
5025      *-*-hpux11*)
5026         { $as_echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
5027 $as_echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
5028         cat >>confdefs.h <<\_ACEOF
5029 #define GC_HPUX_THREADS 1
5030 _ACEOF
5031
5032         cat >>confdefs.h <<\_ACEOF
5033 #define _POSIX_C_SOURCE 199506L
5034 _ACEOF
5035
5036         if test "${enable_parallel_mark}" = yes; then
5037           cat >>confdefs.h <<\_ACEOF
5038 #define PARALLEL_MARK 1
5039 _ACEOF
5040
5041         fi
5042         cat >>confdefs.h <<\_ACEOF
5043 #define THREAD_LOCAL_ALLOC 1
5044 _ACEOF
5045
5046         { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5047 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5048         THREADDLLIBS="-lpthread -lrt"
5049         # HPUX needs REENTRANT for the _r calls.
5050
5051 cat >>confdefs.h <<\_ACEOF
5052 #define _REENTRANT 1
5053 _ACEOF
5054
5055         ;;
5056      *-*-hpux10*)
5057         { $as_echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
5058 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
5059         ;;
5060      *-*-openbsd*)
5061         cat >>confdefs.h <<\_ACEOF
5062 #define GC_OPENBSD_THREADS 1
5063 _ACEOF
5064
5065         THREADDLLIBS=-pthread
5066         INCLUDES="$INCLUDES -pthread"
5067         openbsd_threads=true
5068         ;;
5069      *-*-freebsd*)
5070         { $as_echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
5071 $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
5072         cat >>confdefs.h <<\_ACEOF
5073 #define GC_FREEBSD_THREADS 1
5074 _ACEOF
5075
5076         INCLUDES="$INCLUDES -pthread"
5077         ;;
5078      *-*-kfreebsd*-gnu)
5079         cat >>confdefs.h <<\_ACEOF
5080 #define GC_FREEBSD_THREADS 1
5081 _ACEOF
5082
5083         INCLUDES="$INCLUDES -pthread"
5084         THREADDLLIBS=-pthread
5085         cat >>confdefs.h <<\_ACEOF
5086 #define _REENTRANT 1
5087 _ACEOF
5088
5089         if test "${enable_parallel_mark}" = yes; then
5090           cat >>confdefs.h <<\_ACEOF
5091 #define PARALLEL_MARK 1
5092 _ACEOF
5093
5094         fi
5095         cat >>confdefs.h <<\_ACEOF
5096 #define THREAD_LOCAL_ALLOC 1
5097 _ACEOF
5098
5099         cat >>confdefs.h <<\_ACEOF
5100 #define USE_COMPILER_TLS 1
5101 _ACEOF
5102
5103         ;;
5104      *-*-gnu*)
5105         cat >>confdefs.h <<\_ACEOF
5106 #define GC_GNU_THREADS 1
5107 _ACEOF
5108
5109         cat >>confdefs.h <<\_ACEOF
5110 #define _REENTRANT 1
5111 _ACEOF
5112
5113         cat >>confdefs.h <<\_ACEOF
5114 #define THREAD_LOCAL_ALLOC 1
5115 _ACEOF
5116
5117         ;;
5118      *-*-netbsd*)
5119         { $as_echo "$as_me:$LINENO: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
5120 $as_echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
5121         cat >>confdefs.h <<\_ACEOF
5122 #define GC_NETBSD_THREADS 1
5123 _ACEOF
5124
5125         cat >>confdefs.h <<\_ACEOF
5126 #define _REENTRANT 1
5127 _ACEOF
5128
5129         cat >>confdefs.h <<\_ACEOF
5130 #define _PTHREADS 1
5131 _ACEOF
5132
5133         THREADDLLIBS="-lpthread -lrt"
5134         ;;
5135      *-*-solaris*)
5136         cat >>confdefs.h <<\_ACEOF
5137 #define GC_SOLARIS_THREADS 1
5138 _ACEOF
5139
5140         cat >>confdefs.h <<\_ACEOF
5141 #define THREAD_LOCAL_ALLOC 1
5142 _ACEOF
5143
5144         THREADDLLIBS="-lpthread -lrt"
5145         if test "$GCC" != yes; then
5146           CFLAGS="$CFLAGS -O"
5147           need_atomic_ops_asm=true
5148         fi
5149         ;;
5150      *-*-irix*)
5151         cat >>confdefs.h <<\_ACEOF
5152 #define GC_IRIX_THREADS 1
5153 _ACEOF
5154
5155         ;;
5156      *-*-cygwin*)
5157         cat >>confdefs.h <<\_ACEOF
5158 #define GC_THREADS 1
5159 _ACEOF
5160
5161         if test "${enable_parallel_mark}" = yes; then
5162           cat >>confdefs.h <<\_ACEOF
5163 #define PARALLEL_MARK 1
5164 _ACEOF
5165
5166         fi
5167         cat >>confdefs.h <<\_ACEOF
5168 #define THREAD_LOCAL_ALLOC 1
5169 _ACEOF
5170
5171         # Cygwin doesn't have a real libpthread, so Libtool can't link
5172         # against it.
5173         THREADDLLIBS=""
5174         win32_threads=true
5175         ;;
5176      *-*-darwin*)
5177         cat >>confdefs.h <<\_ACEOF
5178 #define GC_DARWIN_THREADS 1
5179 _ACEOF
5180
5181         cat >>confdefs.h <<\_ACEOF
5182 #define THREAD_LOCAL_ALLOC 1
5183 _ACEOF
5184
5185         { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5186 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5187         # Parallel-mark is currently unreliable on Darwin; ignore request
5188         # if test "${enable_parallel_mark}" = yes; then
5189         #   AC_DEFINE(PARALLEL_MARK)
5190         # fi
5191         darwin_threads=true
5192         ;;
5193      *-*-osf*)
5194         cat >>confdefs.h <<\_ACEOF
5195 #define GC_OSF1_THREADS 1
5196 _ACEOF
5197
5198         if test "${enable_parallel_mark}" = yes; then
5199           cat >>confdefs.h <<\_ACEOF
5200 #define PARALLEL_MARK 1
5201 _ACEOF
5202
5203           cat >>confdefs.h <<\_ACEOF
5204 #define THREAD_LOCAL_ALLOC 1
5205 _ACEOF
5206
5207           { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5208 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5209           # May want to enable it in other cases, too.
5210           # Measurements havent yet been done.
5211         fi
5212         INCLUDES="$INCLUDES -pthread"
5213         THREADDLLIBS="-lpthread -lrt"
5214         ;;
5215       *)
5216         { { $as_echo "$as_me:$LINENO: error: \"Pthreads not supported by the GC on this platform.\"" >&5
5217 $as_echo "$as_me: error: \"Pthreads not supported by the GC on this platform.\"" >&2;}
5218    { (exit 1); exit 1; }; }
5219         ;;
5220     esac
5221     ;;
5222  win32)
5223     cat >>confdefs.h <<\_ACEOF
5224 #define GC_THREADS 1
5225 _ACEOF
5226
5227     if test "${enable_parallel_mark}" = yes; then
5228       cat >>confdefs.h <<\_ACEOF
5229 #define PARALLEL_MARK 1
5230 _ACEOF
5231
5232       cat >>confdefs.h <<\_ACEOF
5233 #define THREAD_LOCAL_ALLOC 1
5234 _ACEOF
5235
5236     fi
5237     win32_threads=true
5238
5239 cat >>confdefs.h <<\_ACEOF
5240 #define EMPTY_GETENV_RESULTS 1
5241 _ACEOF
5242
5243     ;;
5244  dgux386)
5245     THREADS=dgux386
5246     { $as_echo "$as_me:$LINENO: result: $THREADDLLIBS" >&5
5247 $as_echo "$THREADDLLIBS" >&6; }
5248     # Use pthread GCC  switch
5249     THREADDLLIBS=-pthread
5250     if test "${enable_parallel_mark}" = yes; then
5251         cat >>confdefs.h <<\_ACEOF
5252 #define PARALLEL_MARK 1
5253 _ACEOF
5254
5255     fi
5256     cat >>confdefs.h <<\_ACEOF
5257 #define THREAD_LOCAL_ALLOC 1
5258 _ACEOF
5259
5260     { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5261 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5262
5263 cat >>confdefs.h <<\_ACEOF
5264 #define GC_DGUX386_THREADS 1
5265 _ACEOF
5266
5267
5268 cat >>confdefs.h <<\_ACEOF
5269 #define DGUX_THREADS 1
5270 _ACEOF
5271
5272     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5273     INCLUDES="-pthread $INCLUDES"
5274     ;;
5275  aix)
5276     THREADS=posix
5277     THREADDLLIBS=-lpthread
5278     cat >>confdefs.h <<\_ACEOF
5279 #define GC_AIX_THREADS 1
5280 _ACEOF
5281
5282     cat >>confdefs.h <<\_ACEOF
5283 #define _REENTRANT 1
5284 _ACEOF
5285
5286     ;;
5287  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5288     { { $as_echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5289 $as_echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5290    { (exit 1); exit 1; }; }
5291     ;;
5292  *)
5293     { { $as_echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5294 $as_echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5295    { (exit 1); exit 1; }; }
5296     ;;
5297 esac
5298
5299  if test x$THREADS != xnone; then
5300   THREADS_TRUE=
5301   THREADS_FALSE='#'
5302 else
5303   THREADS_TRUE='#'
5304   THREADS_FALSE=
5305 fi
5306
5307  if test x$THREADS = xposix; then
5308   PTHREADS_TRUE=
5309   PTHREADS_FALSE='#'
5310 else
5311   PTHREADS_TRUE='#'
5312   PTHREADS_FALSE=
5313 fi
5314
5315  if test x$darwin_threads = xtrue; then
5316   DARWIN_THREADS_TRUE=
5317   DARWIN_THREADS_FALSE='#'
5318 else
5319   DARWIN_THREADS_TRUE='#'
5320   DARWIN_THREADS_FALSE=
5321 fi
5322
5323  if test x$win32_threads = xtrue; then
5324   WIN32_THREADS_TRUE=
5325   WIN32_THREADS_FALSE='#'
5326 else
5327   WIN32_THREADS_TRUE='#'
5328   WIN32_THREADS_FALSE=
5329 fi
5330
5331  if test x$openbsd_threads = xtrue; then
5332   OPENBSD_THREADS_TRUE=
5333   OPENBSD_THREADS_FALSE='#'
5334 else
5335   OPENBSD_THREADS_TRUE='#'
5336   OPENBSD_THREADS_FALSE=
5337 fi
5338
5339
5340 case "$host" in
5341    powerpc-*-darwin*)
5342       powerpc_darwin=true
5343       ;;
5344 esac
5345
5346 # Darwin needs a few extra special tests to deal with variation in the
5347 # system headers.
5348 case "$host" in
5349   powerpc*-*-darwin*)
5350
5351 { $as_echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
5352 $as_echo_n "checking for ppc_thread_state_t.r0... " >&6; }
5353 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
5354   $as_echo_n "(cached) " >&6
5355 else
5356   cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h.  */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h.  */
5362 #include <mach/thread_status.h>
5363
5364 int
5365 main ()
5366 {
5367 static ppc_thread_state_t ac_aggr;
5368 if (ac_aggr.r0)
5369 return 0;
5370   ;
5371   return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5376 case "(($ac_try" in
5377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378   *) ac_try_echo=$ac_try;;
5379 esac
5380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5381 $as_echo "$ac_try_echo") >&5
5382   (eval "$ac_compile") 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } && {
5389          test -z "$ac_c_werror_flag" ||
5390          test ! -s conftest.err
5391        } && test -s conftest.$ac_objext; then
5392   ac_cv_member_ppc_thread_state_t_r0=yes
5393 else
5394   $as_echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397         cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403 #include <mach/thread_status.h>
5404
5405 int
5406 main ()
5407 {
5408 static ppc_thread_state_t ac_aggr;
5409 if (sizeof ac_aggr.r0)
5410 return 0;
5411   ;
5412   return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5417 case "(($ac_try" in
5418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419   *) ac_try_echo=$ac_try;;
5420 esac
5421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5422 $as_echo "$ac_try_echo") >&5
5423   (eval "$ac_compile") 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } && {
5430          test -z "$ac_c_werror_flag" ||
5431          test ! -s conftest.err
5432        } && test -s conftest.$ac_objext; then
5433   ac_cv_member_ppc_thread_state_t_r0=yes
5434 else
5435   $as_echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438         ac_cv_member_ppc_thread_state_t_r0=no
5439 fi
5440
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 fi
5443
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 fi
5446 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
5447 $as_echo "$ac_cv_member_ppc_thread_state_t_r0" >&6; }
5448 if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then
5449
5450 cat >>confdefs.h <<\_ACEOF
5451 #define HAS_PPC_THREAD_STATE_R0 1
5452 _ACEOF
5453
5454 fi
5455
5456     { $as_echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
5457 $as_echo_n "checking for ppc_thread_state_t.__r0... " >&6; }
5458 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
5459   $as_echo_n "(cached) " >&6
5460 else
5461   cat >conftest.$ac_ext <<_ACEOF
5462 /* confdefs.h.  */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h.  */
5467 #include <mach/thread_status.h>
5468
5469 int
5470 main ()
5471 {
5472 static ppc_thread_state_t ac_aggr;
5473 if (ac_aggr.__r0)
5474 return 0;
5475   ;
5476   return 0;
5477 }
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5481 case "(($ac_try" in
5482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483   *) ac_try_echo=$ac_try;;
5484 esac
5485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5486 $as_echo "$ac_try_echo") >&5
5487   (eval "$ac_compile") 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } && {
5494          test -z "$ac_c_werror_flag" ||
5495          test ! -s conftest.err
5496        } && test -s conftest.$ac_objext; then
5497   ac_cv_member_ppc_thread_state_t___r0=yes
5498 else
5499   $as_echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502         cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h.  */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h.  */
5508 #include <mach/thread_status.h>
5509
5510 int
5511 main ()
5512 {
5513 static ppc_thread_state_t ac_aggr;
5514 if (sizeof ac_aggr.__r0)
5515 return 0;
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5527 $as_echo "$ac_try_echo") >&5
5528   (eval "$ac_compile") 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } && {
5535          test -z "$ac_c_werror_flag" ||
5536          test ! -s conftest.err
5537        } && test -s conftest.$ac_objext; then
5538   ac_cv_member_ppc_thread_state_t___r0=yes
5539 else
5540   $as_echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543         ac_cv_member_ppc_thread_state_t___r0=no
5544 fi
5545
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 fi
5551 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
5552 $as_echo "$ac_cv_member_ppc_thread_state_t___r0" >&6; }
5553 if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then
5554
5555 cat >>confdefs.h <<\_ACEOF
5556 #define HAS_PPC_THREAD_STATE___R0 1
5557 _ACEOF
5558
5559 fi
5560
5561     { $as_echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
5562 $as_echo_n "checking for ppc_thread_state64_t.r0... " >&6; }
5563 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
5564   $as_echo_n "(cached) " >&6
5565 else
5566   cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h.  */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h.  */
5572 #include <mach/thread_status.h>
5573
5574 int
5575 main ()
5576 {
5577 static ppc_thread_state64_t ac_aggr;
5578 if (ac_aggr.r0)
5579 return 0;
5580   ;
5581   return 0;
5582 }
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588   *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592   (eval "$ac_compile") 2>conftest.er1
5593   ac_status=$?
5594   grep -v '^ *+' conftest.er1 >conftest.err
5595   rm -f conftest.er1
5596   cat conftest.err >&5
5597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); } && {
5599          test -z "$ac_c_werror_flag" ||
5600          test ! -s conftest.err
5601        } && test -s conftest.$ac_objext; then
5602   ac_cv_member_ppc_thread_state64_t_r0=yes
5603 else
5604   $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607         cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h.  */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h.  */
5613 #include <mach/thread_status.h>
5614
5615 int
5616 main ()
5617 {
5618 static ppc_thread_state64_t ac_aggr;
5619 if (sizeof ac_aggr.r0)
5620 return 0;
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5627 case "(($ac_try" in
5628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629   *) ac_try_echo=$ac_try;;
5630 esac
5631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632 $as_echo "$ac_try_echo") >&5
5633   (eval "$ac_compile") 2>conftest.er1
5634   ac_status=$?
5635   grep -v '^ *+' conftest.er1 >conftest.err
5636   rm -f conftest.er1
5637   cat conftest.err >&5
5638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); } && {
5640          test -z "$ac_c_werror_flag" ||
5641          test ! -s conftest.err
5642        } && test -s conftest.$ac_objext; then
5643   ac_cv_member_ppc_thread_state64_t_r0=yes
5644 else
5645   $as_echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648         ac_cv_member_ppc_thread_state64_t_r0=no
5649 fi
5650
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 fi
5653
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 fi
5656 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
5657 $as_echo "$ac_cv_member_ppc_thread_state64_t_r0" >&6; }
5658 if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then
5659
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAS_PPC_THREAD_STATE64_R0 1
5662 _ACEOF
5663
5664 fi
5665
5666     { $as_echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
5667 $as_echo_n "checking for ppc_thread_state64_t.__r0... " >&6; }
5668 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
5669   $as_echo_n "(cached) " >&6
5670 else
5671   cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h.  */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h.  */
5677 #include <mach/thread_status.h>
5678
5679 int
5680 main ()
5681 {
5682 static ppc_thread_state64_t ac_aggr;
5683 if (ac_aggr.__r0)
5684 return 0;
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5691 case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5696 $as_echo "$ac_try_echo") >&5
5697   (eval "$ac_compile") 2>conftest.er1
5698   ac_status=$?
5699   grep -v '^ *+' conftest.er1 >conftest.err
5700   rm -f conftest.er1
5701   cat conftest.err >&5
5702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } && {
5704          test -z "$ac_c_werror_flag" ||
5705          test ! -s conftest.err
5706        } && test -s conftest.$ac_objext; then
5707   ac_cv_member_ppc_thread_state64_t___r0=yes
5708 else
5709   $as_echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712         cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718 #include <mach/thread_status.h>
5719
5720 int
5721 main ()
5722 {
5723 static ppc_thread_state64_t ac_aggr;
5724 if (sizeof ac_aggr.__r0)
5725 return 0;
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5732 case "(($ac_try" in
5733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734   *) ac_try_echo=$ac_try;;
5735 esac
5736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5737 $as_echo "$ac_try_echo") >&5
5738   (eval "$ac_compile") 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } && {
5745          test -z "$ac_c_werror_flag" ||
5746          test ! -s conftest.err
5747        } && test -s conftest.$ac_objext; then
5748   ac_cv_member_ppc_thread_state64_t___r0=yes
5749 else
5750   $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753         ac_cv_member_ppc_thread_state64_t___r0=no
5754 fi
5755
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5761 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
5762 $as_echo "$ac_cv_member_ppc_thread_state64_t___r0" >&6; }
5763 if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then
5764
5765 cat >>confdefs.h <<\_ACEOF
5766 #define HAS_PPC_THREAD_STATE64___R0 1
5767 _ACEOF
5768
5769 fi
5770
5771     ;;
5772   i?86*-*-darwin*)
5773     { $as_echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
5774 $as_echo_n "checking for x86_thread_state32_t.eax... " >&6; }
5775 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
5776   $as_echo_n "(cached) " >&6
5777 else
5778   cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784 #include <sys/cdefs.h>
5785       #include <mach/thread_status.h>
5786
5787 int
5788 main ()
5789 {
5790 static x86_thread_state32_t ac_aggr;
5791 if (ac_aggr.eax)
5792 return 0;
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804 $as_echo "$ac_try_echo") >&5
5805   (eval "$ac_compile") 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } && {
5812          test -z "$ac_c_werror_flag" ||
5813          test ! -s conftest.err
5814        } && test -s conftest.$ac_objext; then
5815   ac_cv_member_x86_thread_state32_t_eax=yes
5816 else
5817   $as_echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820         cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h.  */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h.  */
5826 #include <sys/cdefs.h>
5827       #include <mach/thread_status.h>
5828
5829 int
5830 main ()
5831 {
5832 static x86_thread_state32_t ac_aggr;
5833 if (sizeof ac_aggr.eax)
5834 return 0;
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (ac_try="$ac_compile"
5841 case "(($ac_try" in
5842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843   *) ac_try_echo=$ac_try;;
5844 esac
5845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5846 $as_echo "$ac_try_echo") >&5
5847   (eval "$ac_compile") 2>conftest.er1
5848   ac_status=$?
5849   grep -v '^ *+' conftest.er1 >conftest.err
5850   rm -f conftest.er1
5851   cat conftest.err >&5
5852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } && {
5854          test -z "$ac_c_werror_flag" ||
5855          test ! -s conftest.err
5856        } && test -s conftest.$ac_objext; then
5857   ac_cv_member_x86_thread_state32_t_eax=yes
5858 else
5859   $as_echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862         ac_cv_member_x86_thread_state32_t_eax=no
5863 fi
5864
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 fi
5870 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
5871 $as_echo "$ac_cv_member_x86_thread_state32_t_eax" >&6; }
5872 if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then
5873
5874 cat >>confdefs.h <<\_ACEOF
5875 #define HAS_X86_THREAD_STATE32_EAX 1
5876 _ACEOF
5877
5878 fi
5879
5880     { $as_echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
5881 $as_echo_n "checking for x86_thread_state32_t.__eax... " >&6; }
5882 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
5883   $as_echo_n "(cached) " >&6
5884 else
5885   cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891 #include <sys/cdefs.h>
5892       #include <mach/thread_status.h>
5893
5894 int
5895 main ()
5896 {
5897 static x86_thread_state32_t ac_aggr;
5898 if (ac_aggr.__eax)
5899 return 0;
5900   ;
5901   return 0;
5902 }
5903 _ACEOF
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911 $as_echo "$ac_try_echo") >&5
5912   (eval "$ac_compile") 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } && {
5919          test -z "$ac_c_werror_flag" ||
5920          test ! -s conftest.err
5921        } && test -s conftest.$ac_objext; then
5922   ac_cv_member_x86_thread_state32_t___eax=yes
5923 else
5924   $as_echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927         cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 #include <sys/cdefs.h>
5934       #include <mach/thread_status.h>
5935
5936 int
5937 main ()
5938 {
5939 static x86_thread_state32_t ac_aggr;
5940 if (sizeof ac_aggr.__eax)
5941 return 0;
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5953 $as_echo "$ac_try_echo") >&5
5954   (eval "$ac_compile") 2>conftest.er1
5955   ac_status=$?
5956   grep -v '^ *+' conftest.er1 >conftest.err
5957   rm -f conftest.er1
5958   cat conftest.err >&5
5959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); } && {
5961          test -z "$ac_c_werror_flag" ||
5962          test ! -s conftest.err
5963        } && test -s conftest.$ac_objext; then
5964   ac_cv_member_x86_thread_state32_t___eax=yes
5965 else
5966   $as_echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969         ac_cv_member_x86_thread_state32_t___eax=no
5970 fi
5971
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 fi
5974
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
5978 $as_echo "$ac_cv_member_x86_thread_state32_t___eax" >&6; }
5979 if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then
5980
5981 cat >>confdefs.h <<\_ACEOF
5982 #define HAS_X86_THREAD_STATE32___EAX 1
5983 _ACEOF
5984
5985 fi
5986
5987     ;;
5988   x86_64-*-darwin*)
5989     { $as_echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
5990 $as_echo_n "checking for x86_thread_state64_t.rax... " >&6; }
5991 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
5992   $as_echo_n "(cached) " >&6
5993 else
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #include <sys/cdefs.h>
6001       #include <mach/thread_status.h>
6002
6003 int
6004 main ()
6005 {
6006 static x86_thread_state64_t ac_aggr;
6007 if (ac_aggr.rax)
6008 return 0;
6009   ;
6010   return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (ac_try="$ac_compile"
6015 case "(($ac_try" in
6016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017   *) ac_try_echo=$ac_try;;
6018 esac
6019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6020 $as_echo "$ac_try_echo") >&5
6021   (eval "$ac_compile") 2>conftest.er1
6022   ac_status=$?
6023   grep -v '^ *+' conftest.er1 >conftest.err
6024   rm -f conftest.er1
6025   cat conftest.err >&5
6026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); } && {
6028          test -z "$ac_c_werror_flag" ||
6029          test ! -s conftest.err
6030        } && test -s conftest.$ac_objext; then
6031   ac_cv_member_x86_thread_state64_t_rax=yes
6032 else
6033   $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6035
6036         cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 #include <sys/cdefs.h>
6043       #include <mach/thread_status.h>
6044
6045 int
6046 main ()
6047 {
6048 static x86_thread_state64_t ac_aggr;
6049 if (sizeof ac_aggr.rax)
6050 return 0;
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6062 $as_echo "$ac_try_echo") >&5
6063   (eval "$ac_compile") 2>conftest.er1
6064   ac_status=$?
6065   grep -v '^ *+' conftest.er1 >conftest.err
6066   rm -f conftest.er1
6067   cat conftest.err >&5
6068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); } && {
6070          test -z "$ac_c_werror_flag" ||
6071          test ! -s conftest.err
6072        } && test -s conftest.$ac_objext; then
6073   ac_cv_member_x86_thread_state64_t_rax=yes
6074 else
6075   $as_echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078         ac_cv_member_x86_thread_state64_t_rax=no
6079 fi
6080
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 fi
6083
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 fi
6086 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
6087 $as_echo "$ac_cv_member_x86_thread_state64_t_rax" >&6; }
6088 if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then
6089
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAS_X86_THREAD_STATE64_RAX 1
6092 _ACEOF
6093
6094 fi
6095
6096     { $as_echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
6097 $as_echo_n "checking for x86_thread_state64_t.__rax... " >&6; }
6098 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
6099   $as_echo_n "(cached) " >&6
6100 else
6101   cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h.  */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h.  */
6107 #include <sys/cdefs.h>
6108       #include <mach/thread_status.h>
6109
6110 int
6111 main ()
6112 {
6113 static x86_thread_state64_t ac_aggr;
6114 if (ac_aggr.__rax)
6115 return 0;
6116   ;
6117   return 0;
6118 }
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (ac_try="$ac_compile"
6122 case "(($ac_try" in
6123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124   *) ac_try_echo=$ac_try;;
6125 esac
6126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127 $as_echo "$ac_try_echo") >&5
6128   (eval "$ac_compile") 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } && {
6135          test -z "$ac_c_werror_flag" ||
6136          test ! -s conftest.err
6137        } && test -s conftest.$ac_objext; then
6138   ac_cv_member_x86_thread_state64_t___rax=yes
6139 else
6140   $as_echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143         cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h.  */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h.  */
6149 #include <sys/cdefs.h>
6150       #include <mach/thread_status.h>
6151
6152 int
6153 main ()
6154 {
6155 static x86_thread_state64_t ac_aggr;
6156 if (sizeof ac_aggr.__rax)
6157 return 0;
6158   ;
6159   return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext
6163 if { (ac_try="$ac_compile"
6164 case "(($ac_try" in
6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166   *) ac_try_echo=$ac_try;;
6167 esac
6168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169 $as_echo "$ac_try_echo") >&5
6170   (eval "$ac_compile") 2>conftest.er1
6171   ac_status=$?
6172   grep -v '^ *+' conftest.er1 >conftest.err
6173   rm -f conftest.er1
6174   cat conftest.err >&5
6175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); } && {
6177          test -z "$ac_c_werror_flag" ||
6178          test ! -s conftest.err
6179        } && test -s conftest.$ac_objext; then
6180   ac_cv_member_x86_thread_state64_t___rax=yes
6181 else
6182   $as_echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185         ac_cv_member_x86_thread_state64_t___rax=no
6186 fi
6187
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189 fi
6190
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 fi
6193 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
6194 $as_echo "$ac_cv_member_x86_thread_state64_t___rax" >&6; }
6195 if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then
6196
6197 cat >>confdefs.h <<\_ACEOF
6198 #define HAS_X86_THREAD_STATE64___RAX 1
6199 _ACEOF
6200
6201 fi
6202
6203      ;;
6204   *) ;;
6205 esac
6206
6207 { $as_echo "$as_me:$LINENO: checking for xlc" >&5
6208 $as_echo_n "checking for xlc... " >&6; }
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h.  */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h.  */
6215
6216 int
6217 main ()
6218 {
6219
6220  #ifndef __xlC__
6221  # error
6222  #endif
6223
6224   ;
6225   return 0;
6226 }
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (ac_try="$ac_compile"
6230 case "(($ac_try" in
6231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232   *) ac_try_echo=$ac_try;;
6233 esac
6234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235 $as_echo "$ac_try_echo") >&5
6236   (eval "$ac_compile") 2>conftest.er1
6237   ac_status=$?
6238   grep -v '^ *+' conftest.er1 >conftest.err
6239   rm -f conftest.er1
6240   cat conftest.err >&5
6241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } && {
6243          test -z "$ac_c_werror_flag" ||
6244          test ! -s conftest.err
6245        } && test -s conftest.$ac_objext; then
6246   compiler_xlc=yes
6247 else
6248   $as_echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251         compiler_xlc=no
6252 fi
6253
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 { $as_echo "$as_me:$LINENO: result: $compiler_xlc" >&5
6256 $as_echo "$compiler_xlc" >&6; }
6257  if test $compiler_xlc = yes; then
6258   COMPILER_XLC_TRUE=
6259   COMPILER_XLC_FALSE='#'
6260 else
6261   COMPILER_XLC_TRUE='#'
6262   COMPILER_XLC_FALSE=
6263 fi
6264
6265 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
6266   # the darwin stack-frame-walking code is completely broken on xlc
6267
6268 cat >>confdefs.h <<\_ACEOF
6269 #define DARWIN_DONT_PARSE_STACK 1
6270 _ACEOF
6271
6272 fi
6273
6274 # We never want libdl on darwin. It is a fake libdl that just ends up making
6275 # dyld calls anyway.  The same applies to Cygwin.
6276 case "$host" in
6277   *-*-darwin*) ;;
6278   *-*-cygwin*) ;;
6279   *)
6280     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6281 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6283   $as_echo_n "(cached) " >&6
6284 else
6285   ac_check_lib_save_LIBS=$LIBS
6286 LIBS="-ldl  $LIBS"
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293
6294 /* Override any GCC internal prototype to avoid an error.
6295    Use char because int might match the return type of a GCC
6296    builtin and then its argument prototype would still apply.  */
6297 #ifdef __cplusplus
6298 extern "C"
6299 #endif
6300 char dlopen ();
6301 int
6302 main ()
6303 {
6304 return dlopen ();
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (ac_try="$ac_link"
6311 case "(($ac_try" in
6312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313   *) ac_try_echo=$ac_try;;
6314 esac
6315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6316 $as_echo "$ac_try_echo") >&5
6317   (eval "$ac_link") 2>conftest.er1
6318   ac_status=$?
6319   grep -v '^ *+' conftest.er1 >conftest.err
6320   rm -f conftest.er1
6321   cat conftest.err >&5
6322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } && {
6324          test -z "$ac_c_werror_flag" ||
6325          test ! -s conftest.err
6326        } && test -s conftest$ac_exeext && {
6327          test "$cross_compiling" = yes ||
6328          $as_test_x conftest$ac_exeext
6329        }; then
6330   ac_cv_lib_dl_dlopen=yes
6331 else
6332   $as_echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335         ac_cv_lib_dl_dlopen=no
6336 fi
6337
6338 rm -rf conftest.dSYM
6339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6340       conftest$ac_exeext conftest.$ac_ext
6341 LIBS=$ac_check_lib_save_LIBS
6342 fi
6343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6344 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6345 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6346   THREADDLLIBS="$THREADDLLIBS -ldl"
6347 fi
6348
6349     ;;
6350 esac
6351
6352 case "$host" in
6353   *-*-hpux*)
6354     avoid_cpp_lib=yes;;
6355   *)
6356     avoid_cpp_lib=no;
6357     ;;
6358 esac
6359  if test $avoid_cpp_lib = yes; then
6360   AVOID_CPP_LIB_TRUE=
6361   AVOID_CPP_LIB_FALSE='#'
6362 else
6363   AVOID_CPP_LIB_TRUE='#'
6364   AVOID_CPP_LIB_FALSE=
6365 fi
6366
6367
6368 # extra LD Flags which are required for targets
6369 case "${host}" in
6370   *-*-darwin*)
6371     extra_ldflags_libgc=-Wl,-single_module
6372     ;;
6373 esac
6374
6375
6376
6377
6378 target_all=libgc.la
6379
6380
6381 TARGET_ECOS="no"
6382
6383 # Check whether --with-ecos was given.
6384 if test "${with_ecos+set}" = set; then
6385   withval=$with_ecos; TARGET_ECOS="$with_ecos"
6386
6387 fi
6388
6389
6390 addobjs=
6391 addlibs=
6392 CXXINCLUDES=
6393 case "$TARGET_ECOS" in
6394    no)
6395       ;;
6396    *)
6397
6398 cat >>confdefs.h <<\_ACEOF
6399 #define ECOS 1
6400 _ACEOF
6401
6402       CXXINCLUDES="-I${TARGET_ECOS}/include"
6403       addobjs="$addobjs ecos.lo"
6404       ;;
6405 esac
6406
6407  if test "${enable_cplusplus}" = yes; then
6408   CPLUSPLUS_TRUE=
6409   CPLUSPLUS_FALSE='#'
6410 else
6411   CPLUSPLUS_TRUE='#'
6412   CPLUSPLUS_FALSE=
6413 fi
6414
6415
6416
6417
6418
6419
6420
6421 # Configuration of shared libraries
6422 #
6423 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6424 $as_echo_n "checking whether to build shared libraries... " >&6; }
6425 # Check whether --enable-shared was given.
6426 if test "${enable_shared+set}" = set; then
6427   enableval=$enable_shared; p=${PACKAGE-default}
6428     case $enableval in
6429     yes) enable_shared=yes ;;
6430     no) enable_shared=no ;;
6431     *)
6432       enable_shared=no
6433       # Look at the argument we got.  We use all the common list separators.
6434       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6435       for pkg in $enableval; do
6436         IFS="$lt_save_ifs"
6437         if test "X$pkg" = "X$p"; then
6438           enable_shared=yes
6439         fi
6440       done
6441       IFS="$lt_save_ifs"
6442       ;;
6443     esac
6444 else
6445   enable_shared=yes
6446 fi
6447
6448
6449
6450 case "$host" in
6451  alpha-*-openbsd*)
6452      enable_shared=no
6453      ;;
6454  *)
6455      ;;
6456 esac
6457
6458 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
6459 $as_echo "$enable_shared" >&6; }
6460
6461 # Configuration of machine-dependent code
6462 #
6463 { $as_echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
6464 $as_echo_n "checking which machine-dependent code should be used... " >&6; }
6465 machdep=
6466 case "$host" in
6467  alpha-*-openbsd*)
6468     machdep="mach_dep.lo"
6469     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
6470        { $as_echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
6471 $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
6472     fi
6473     ;;
6474  alpha*-*-linux*)
6475     machdep="mach_dep.lo"
6476     ;;
6477  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
6478
6479 cat >>confdefs.h <<\_ACEOF
6480 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
6481 _ACEOF
6482
6483     ;;
6484  mipstx39-*-elf*)
6485     machdep="mach_dep.lo"
6486     ;;
6487  mips-dec-ultrix*)
6488     machdep="mach-dep.lo"
6489     ;;
6490  mips-nec-sysv*|mips-unknown-sysv*)
6491     ;;
6492  mips*-*-linux*)
6493     ;;
6494  mips-*-*)
6495     machdep="mach_dep.lo"
6496                 ;;
6497  sparc*-*-linux*)
6498     machdep="mach_dep.lo sparc_mach_dep.lo"
6499     ;;
6500  sparc-*-netbsd*)
6501     machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
6502     ;;
6503  sparc64-*-netbsd*)
6504     machdep="mach_dep.lo sparc_mach_dep.lo"
6505     ;;
6506  sparc*-*-openbsd*)
6507     machdep="mach_dep.lo sparc_mach_dep.lo"
6508     ;;
6509  sparc-sun-solaris2.3)
6510     machdep="mach_dep.lo sparc_mach_dep.lo"
6511
6512 cat >>confdefs.h <<\_ACEOF
6513 #define SUNOS53_SHARED_LIB 1
6514 _ACEOF
6515
6516     ;;
6517  sparc*-sun-solaris2*)
6518     machdep="mach_dep.lo sparc_mach_dep.lo"
6519     ;;
6520  ia64-*-*)
6521     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
6522     ;;
6523 esac
6524 if test x"$machdep" = x; then
6525 { $as_echo "$as_me:$LINENO: result: $machdep" >&5
6526 $as_echo "$machdep" >&6; }
6527    machdep="mach_dep.lo"
6528 fi
6529 addobjs="$addobjs $machdep"
6530
6531
6532
6533 # Check whether --enable-static was given.
6534 if test "${enable_static+set}" = set; then
6535   enableval=$enable_static; p=${PACKAGE-default}
6536     case $enableval in
6537     yes) enable_static=yes ;;
6538     no) enable_static=no ;;
6539     *)
6540      enable_static=no
6541       # Look at the argument we got.  We use all the common list separators.
6542       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6543       for pkg in $enableval; do
6544         IFS="$lt_save_ifs"
6545         if test "X$pkg" = "X$p"; then
6546           enable_static=yes
6547         fi
6548       done
6549       IFS="$lt_save_ifs"
6550       ;;
6551     esac
6552 else
6553   enable_static=yes
6554 fi
6555
6556
6557 # Check whether --enable-fast-install was given.
6558 if test "${enable_fast_install+set}" = set; then
6559   enableval=$enable_fast_install; p=${PACKAGE-default}
6560     case $enableval in
6561     yes) enable_fast_install=yes ;;
6562     no) enable_fast_install=no ;;
6563     *)
6564       enable_fast_install=no
6565       # Look at the argument we got.  We use all the common list separators.
6566       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6567       for pkg in $enableval; do
6568         IFS="$lt_save_ifs"
6569         if test "X$pkg" = "X$p"; then
6570           enable_fast_install=yes
6571         fi
6572       done
6573       IFS="$lt_save_ifs"
6574       ;;
6575     esac
6576 else
6577   enable_fast_install=yes
6578 fi
6579
6580
6581 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6582 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6583 if test "${lt_cv_path_SED+set}" = set; then
6584   $as_echo_n "(cached) " >&6
6585 else
6586   # Loop through the user's path and test for sed and gsed.
6587 # Then use that list of sed's as ones to test for truncation.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591   IFS=$as_save_IFS
6592   test -z "$as_dir" && as_dir=.
6593   for lt_ac_prog in sed gsed; do
6594     for ac_exec_ext in '' $ac_executable_extensions; do
6595       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6596         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6597       fi
6598     done
6599   done
6600 done
6601 IFS=$as_save_IFS
6602 lt_ac_max=0
6603 lt_ac_count=0
6604 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6605 # along with /bin/sed that truncates output.
6606 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6607   test ! -f $lt_ac_sed && continue
6608   cat /dev/null > conftest.in
6609   lt_ac_count=0
6610   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6611   # Check for GNU sed and select it if it is found.
6612   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6613     lt_cv_path_SED=$lt_ac_sed
6614     break
6615   fi
6616   while true; do
6617     cat conftest.in conftest.in >conftest.tmp
6618     mv conftest.tmp conftest.in
6619     cp conftest.in conftest.nl
6620     echo >>conftest.nl
6621     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6622     cmp -s conftest.out conftest.nl || break
6623     # 10000 chars as input seems more than enough
6624     test $lt_ac_count -gt 10 && break
6625     lt_ac_count=`expr $lt_ac_count + 1`
6626     if test $lt_ac_count -gt $lt_ac_max; then
6627       lt_ac_max=$lt_ac_count
6628       lt_cv_path_SED=$lt_ac_sed
6629     fi
6630   done
6631 done
6632
6633 fi
6634
6635 SED=$lt_cv_path_SED
6636
6637 { $as_echo "$as_me:$LINENO: result: $SED" >&5
6638 $as_echo "$SED" >&6; }
6639
6640 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6642 if test "${ac_cv_path_GREP+set}" = set; then
6643   $as_echo_n "(cached) " >&6
6644 else
6645   if test -z "$GREP"; then
6646   ac_path_GREP_found=false
6647   # Loop through the user's path and test for each of PROGNAME-LIST
6648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653   for ac_prog in grep ggrep; do
6654     for ac_exec_ext in '' $ac_executable_extensions; do
6655       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6656       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6657 # Check for GNU ac_path_GREP and select it if it is found.
6658   # Check for GNU $ac_path_GREP
6659 case `"$ac_path_GREP" --version 2>&1` in
6660 *GNU*)
6661   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6662 *)
6663   ac_count=0
6664   $as_echo_n 0123456789 >"conftest.in"
6665   while :
6666   do
6667     cat "conftest.in" "conftest.in" >"conftest.tmp"
6668     mv "conftest.tmp" "conftest.in"
6669     cp "conftest.in" "conftest.nl"
6670     $as_echo 'GREP' >> "conftest.nl"
6671     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6672     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6673     ac_count=`expr $ac_count + 1`
6674     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6675       # Best one so far, save it but keep looking for a better one
6676       ac_cv_path_GREP="$ac_path_GREP"
6677       ac_path_GREP_max=$ac_count
6678     fi
6679     # 10*(2^10) chars as input seems more than enough
6680     test $ac_count -gt 10 && break
6681   done
6682   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6683 esac
6684
6685       $ac_path_GREP_found && break 3
6686     done
6687   done
6688 done
6689 IFS=$as_save_IFS
6690   if test -z "$ac_cv_path_GREP"; then
6691     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6692 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6693    { (exit 1); exit 1; }; }
6694   fi
6695 else
6696   ac_cv_path_GREP=$GREP
6697 fi
6698
6699 fi
6700 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6701 $as_echo "$ac_cv_path_GREP" >&6; }
6702  GREP="$ac_cv_path_GREP"
6703
6704
6705 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6706 $as_echo_n "checking for egrep... " >&6; }
6707 if test "${ac_cv_path_EGREP+set}" = set; then
6708   $as_echo_n "(cached) " >&6
6709 else
6710   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6711    then ac_cv_path_EGREP="$GREP -E"
6712    else
6713      if test -z "$EGREP"; then
6714   ac_path_EGREP_found=false
6715   # Loop through the user's path and test for each of PROGNAME-LIST
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_prog in egrep; do
6722     for ac_exec_ext in '' $ac_executable_extensions; do
6723       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6724       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6725 # Check for GNU ac_path_EGREP and select it if it is found.
6726   # Check for GNU $ac_path_EGREP
6727 case `"$ac_path_EGREP" --version 2>&1` in
6728 *GNU*)
6729   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6730 *)
6731   ac_count=0
6732   $as_echo_n 0123456789 >"conftest.in"
6733   while :
6734   do
6735     cat "conftest.in" "conftest.in" >"conftest.tmp"
6736     mv "conftest.tmp" "conftest.in"
6737     cp "conftest.in" "conftest.nl"
6738     $as_echo 'EGREP' >> "conftest.nl"
6739     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6740     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6741     ac_count=`expr $ac_count + 1`
6742     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6743       # Best one so far, save it but keep looking for a better one
6744       ac_cv_path_EGREP="$ac_path_EGREP"
6745       ac_path_EGREP_max=$ac_count
6746     fi
6747     # 10*(2^10) chars as input seems more than enough
6748     test $ac_count -gt 10 && break
6749   done
6750   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6751 esac
6752
6753       $ac_path_EGREP_found && break 3
6754     done
6755   done
6756 done
6757 IFS=$as_save_IFS
6758   if test -z "$ac_cv_path_EGREP"; then
6759     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6760 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6761    { (exit 1); exit 1; }; }
6762   fi
6763 else
6764   ac_cv_path_EGREP=$EGREP
6765 fi
6766
6767    fi
6768 fi
6769 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6770 $as_echo "$ac_cv_path_EGREP" >&6; }
6771  EGREP="$ac_cv_path_EGREP"
6772
6773
6774
6775 # Check whether --with-gnu-ld was given.
6776 if test "${with_gnu_ld+set}" = set; then
6777   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6778 else
6779   with_gnu_ld=no
6780 fi
6781
6782 ac_prog=ld
6783 if test "$GCC" = yes; then
6784   # Check if gcc -print-prog-name=ld gives a path.
6785   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6786 $as_echo_n "checking for ld used by $CC... " >&6; }
6787   case $host in
6788   *-*-mingw*)
6789     # gcc leaves a trailing carriage return which upsets mingw
6790     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6791   *)
6792     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6793   esac
6794   case $ac_prog in
6795     # Accept absolute paths.
6796     [\\/]* | ?:[\\/]*)
6797       re_direlt='/[^/][^/]*/\.\./'
6798       # Canonicalize the pathname of ld
6799       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6800       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6801         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6802       done
6803       test -z "$LD" && LD="$ac_prog"
6804       ;;
6805   "")
6806     # If it fails, then pretend we aren't using GCC.
6807     ac_prog=ld
6808     ;;
6809   *)
6810     # If it is relative, then search for the first ld in PATH.
6811     with_gnu_ld=unknown
6812     ;;
6813   esac
6814 elif test "$with_gnu_ld" = yes; then
6815   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6816 $as_echo_n "checking for GNU ld... " >&6; }
6817 else
6818   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6819 $as_echo_n "checking for non-GNU ld... " >&6; }
6820 fi
6821 if test "${lt_cv_path_LD+set}" = set; then
6822   $as_echo_n "(cached) " >&6
6823 else
6824   if test -z "$LD"; then
6825   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6826   for ac_dir in $PATH; do
6827     IFS="$lt_save_ifs"
6828     test -z "$ac_dir" && ac_dir=.
6829     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6830       lt_cv_path_LD="$ac_dir/$ac_prog"
6831       # Check to see if the program is GNU ld.  I'd rather use --version,
6832       # but apparently some variants of GNU ld only accept -v.
6833       # Break only if it was the GNU/non-GNU ld that we prefer.
6834       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6835       *GNU* | *'with BFD'*)
6836         test "$with_gnu_ld" != no && break
6837         ;;
6838       *)
6839         test "$with_gnu_ld" != yes && break
6840         ;;
6841       esac
6842     fi
6843   done
6844   IFS="$lt_save_ifs"
6845 else
6846   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6847 fi
6848 fi
6849
6850 LD="$lt_cv_path_LD"
6851 if test -n "$LD"; then
6852   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6853 $as_echo "$LD" >&6; }
6854 else
6855   { $as_echo "$as_me:$LINENO: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6859 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6860    { (exit 1); exit 1; }; }
6861 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6862 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6863 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6864   $as_echo_n "(cached) " >&6
6865 else
6866   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6867 case `$LD -v 2>&1 </dev/null` in
6868 *GNU* | *'with BFD'*)
6869   lt_cv_prog_gnu_ld=yes
6870   ;;
6871 *)
6872   lt_cv_prog_gnu_ld=no
6873   ;;
6874 esac
6875 fi
6876 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6877 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6878 with_gnu_ld=$lt_cv_prog_gnu_ld
6879
6880
6881 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6882 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6883 if test "${lt_cv_ld_reload_flag+set}" = set; then
6884   $as_echo_n "(cached) " >&6
6885 else
6886   lt_cv_ld_reload_flag='-r'
6887 fi
6888 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6889 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6890 reload_flag=$lt_cv_ld_reload_flag
6891 case $reload_flag in
6892 "" | " "*) ;;
6893 *) reload_flag=" $reload_flag" ;;
6894 esac
6895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6896 case $host_os in
6897   darwin*)
6898     if test "$GCC" = yes; then
6899       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6900     else
6901       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6902     fi
6903     ;;
6904 esac
6905
6906 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6907 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6908 if test "${lt_cv_path_NM+set}" = set; then
6909   $as_echo_n "(cached) " >&6
6910 else
6911   if test -n "$NM"; then
6912   # Let the user override the test.
6913   lt_cv_path_NM="$NM"
6914 else
6915   lt_nm_to_check="${ac_tool_prefix}nm"
6916   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6917     lt_nm_to_check="$lt_nm_to_check nm"
6918   fi
6919   for lt_tmp_nm in $lt_nm_to_check; do
6920     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6921     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6922       IFS="$lt_save_ifs"
6923       test -z "$ac_dir" && ac_dir=.
6924       tmp_nm="$ac_dir/$lt_tmp_nm"
6925       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6926         # Check to see if the nm accepts a BSD-compat flag.
6927         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6928         #   nm: unknown option "B" ignored
6929         # Tru64's nm complains that /dev/null is an invalid object file
6930         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6931         */dev/null* | *'Invalid file or object type'*)
6932           lt_cv_path_NM="$tmp_nm -B"
6933           break
6934           ;;
6935         *)
6936           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6937           */dev/null*)
6938             lt_cv_path_NM="$tmp_nm -p"
6939             break
6940             ;;
6941           *)
6942             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6943             continue # so that we can try to find one that supports BSD flags
6944             ;;
6945           esac
6946           ;;
6947         esac
6948       fi
6949     done
6950     IFS="$lt_save_ifs"
6951   done
6952   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6953 fi
6954 fi
6955 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6956 $as_echo "$lt_cv_path_NM" >&6; }
6957 NM="$lt_cv_path_NM"
6958
6959 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6960 $as_echo_n "checking whether ln -s works... " >&6; }
6961 LN_S=$as_ln_s
6962 if test "$LN_S" = "ln -s"; then
6963   { $as_echo "$as_me:$LINENO: result: yes" >&5
6964 $as_echo "yes" >&6; }
6965 else
6966   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6967 $as_echo "no, using $LN_S" >&6; }
6968 fi
6969
6970 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6971 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6972 if test "${lt_cv_deplibs_check_method+set}" = set; then
6973   $as_echo_n "(cached) " >&6
6974 else
6975   lt_cv_file_magic_cmd='$MAGIC_CMD'
6976 lt_cv_file_magic_test_file=
6977 lt_cv_deplibs_check_method='unknown'
6978 # Need to set the preceding variable on all platforms that support
6979 # interlibrary dependencies.
6980 # 'none' -- dependencies not supported.
6981 # `unknown' -- same as none, but documents that we really don't know.
6982 # 'pass_all' -- all dependencies passed with no checks.
6983 # 'test_compile' -- check by making test program.
6984 # 'file_magic [[regex]]' -- check by looking for files in library path
6985 # which responds to the $file_magic_cmd with a given extended regex.
6986 # If you have `file' or equivalent on your system and you're not sure
6987 # whether `pass_all' will *always* work, you probably want this one.
6988
6989 case $host_os in
6990 aix[4-9]*)
6991   lt_cv_deplibs_check_method=pass_all
6992   ;;
6993
6994 beos*)
6995   lt_cv_deplibs_check_method=pass_all
6996   ;;
6997
6998 bsdi[45]*)
6999   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7000   lt_cv_file_magic_cmd='/usr/bin/file -L'
7001   lt_cv_file_magic_test_file=/shlib/libc.so
7002   ;;
7003
7004 cygwin*)
7005   # func_win32_libid is a shell function defined in ltmain.sh
7006   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7007   lt_cv_file_magic_cmd='func_win32_libid'
7008   ;;
7009
7010 mingw* | pw32*)
7011   # Base MSYS/MinGW do not provide the 'file' command needed by
7012   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7013   # unless we find 'file', for example because we are cross-compiling.
7014   if ( file / ) >/dev/null 2>&1; then
7015     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7016     lt_cv_file_magic_cmd='func_win32_libid'
7017   else
7018     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7019     lt_cv_file_magic_cmd='$OBJDUMP -f'
7020   fi
7021   ;;
7022
7023 darwin* | rhapsody*)
7024   lt_cv_deplibs_check_method=pass_all
7025   ;;
7026
7027 freebsd* | dragonfly*)
7028   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7029     case $host_cpu in
7030     i*86 )
7031       # Not sure whether the presence of OpenBSD here was a mistake.
7032       # Let's accept both of them until this is cleared up.
7033       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7034       lt_cv_file_magic_cmd=/usr/bin/file
7035       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7036       ;;
7037     esac
7038   else
7039     lt_cv_deplibs_check_method=pass_all
7040   fi
7041   ;;
7042
7043 gnu*)
7044   lt_cv_deplibs_check_method=pass_all
7045   ;;
7046
7047 hpux10.20* | hpux11*)
7048   lt_cv_file_magic_cmd=/usr/bin/file
7049   case $host_cpu in
7050   ia64*)
7051     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7052     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7053     ;;
7054   hppa*64*)
7055     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]'
7056     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7057     ;;
7058   *)
7059     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7060     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7061     ;;
7062   esac
7063   ;;
7064
7065 interix[3-9]*)
7066   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7067   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7068   ;;
7069
7070 irix5* | irix6* | nonstopux*)
7071   case $LD in
7072   *-32|*"-32 ") libmagic=32-bit;;
7073   *-n32|*"-n32 ") libmagic=N32;;
7074   *-64|*"-64 ") libmagic=64-bit;;
7075   *) libmagic=never-match;;
7076   esac
7077   lt_cv_deplibs_check_method=pass_all
7078   ;;
7079
7080 # This must be Linux ELF.
7081 linux* | k*bsd*-gnu)
7082   lt_cv_deplibs_check_method=pass_all
7083   ;;
7084
7085 netbsd*)
7086   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7087     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7088   else
7089     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7090   fi
7091   ;;
7092
7093 newos6*)
7094   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7095   lt_cv_file_magic_cmd=/usr/bin/file
7096   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7097   ;;
7098
7099 nto-qnx*)
7100   lt_cv_deplibs_check_method=unknown
7101   ;;
7102
7103 openbsd*)
7104   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7105     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7106   else
7107     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7108   fi
7109   ;;
7110
7111 osf3* | osf4* | osf5*)
7112   lt_cv_deplibs_check_method=pass_all
7113   ;;
7114
7115 rdos*)
7116   lt_cv_deplibs_check_method=pass_all
7117   ;;
7118
7119 solaris*)
7120   lt_cv_deplibs_check_method=pass_all
7121   ;;
7122
7123 sysv4 | sysv4.3*)
7124   case $host_vendor in
7125   motorola)
7126     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]'
7127     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7128     ;;
7129   ncr)
7130     lt_cv_deplibs_check_method=pass_all
7131     ;;
7132   sequent)
7133     lt_cv_file_magic_cmd='/bin/file'
7134     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7135     ;;
7136   sni)
7137     lt_cv_file_magic_cmd='/bin/file'
7138     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7139     lt_cv_file_magic_test_file=/lib/libc.so
7140     ;;
7141   siemens)
7142     lt_cv_deplibs_check_method=pass_all
7143     ;;
7144   pc)
7145     lt_cv_deplibs_check_method=pass_all
7146     ;;
7147   esac
7148   ;;
7149
7150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7151   lt_cv_deplibs_check_method=pass_all
7152   ;;
7153 esac
7154
7155 fi
7156 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7157 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7158 file_magic_cmd=$lt_cv_file_magic_cmd
7159 deplibs_check_method=$lt_cv_deplibs_check_method
7160 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7161
7162
7163
7164
7165 # If no C compiler was specified, use CC.
7166 LTCC=${LTCC-"$CC"}
7167
7168 # If no C compiler flags were specified, use CFLAGS.
7169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7170
7171 # Allow CC to be a program name with arguments.
7172 compiler=$CC
7173
7174 # Check whether --enable-libtool-lock was given.
7175 if test "${enable_libtool_lock+set}" = set; then
7176   enableval=$enable_libtool_lock;
7177 fi
7178
7179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7180
7181 # Some flags need to be propagated to the compiler or linker for good
7182 # libtool support.
7183 case $host in
7184 ia64-*-hpux*)
7185   # Find out which ABI we are using.
7186   echo 'int i;' > conftest.$ac_ext
7187   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188   (eval $ac_compile) 2>&5
7189   ac_status=$?
7190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); }; then
7192     case `/usr/bin/file conftest.$ac_objext` in
7193     *ELF-32*)
7194       HPUX_IA64_MODE="32"
7195       ;;
7196     *ELF-64*)
7197       HPUX_IA64_MODE="64"
7198       ;;
7199     esac
7200   fi
7201   rm -rf conftest*
7202   ;;
7203 *-*-irix6*)
7204   # Find out which ABI we are using.
7205   echo '#line 7205 "configure"' > conftest.$ac_ext
7206   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207   (eval $ac_compile) 2>&5
7208   ac_status=$?
7209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; then
7211    if test "$lt_cv_prog_gnu_ld" = yes; then
7212     case `/usr/bin/file conftest.$ac_objext` in
7213     *32-bit*)
7214       LD="${LD-ld} -melf32bsmip"
7215       ;;
7216     *N32*)
7217       LD="${LD-ld} -melf32bmipn32"
7218       ;;
7219     *64-bit*)
7220       LD="${LD-ld} -melf64bmip"
7221       ;;
7222     esac
7223    else
7224     case `/usr/bin/file conftest.$ac_objext` in
7225     *32-bit*)
7226       LD="${LD-ld} -32"
7227       ;;
7228     *N32*)
7229       LD="${LD-ld} -n32"
7230       ;;
7231     *64-bit*)
7232       LD="${LD-ld} -64"
7233       ;;
7234     esac
7235    fi
7236   fi
7237   rm -rf conftest*
7238   ;;
7239
7240 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7241 s390*-*linux*|sparc*-*linux*)
7242   # Find out which ABI we are using.
7243   echo 'int i;' > conftest.$ac_ext
7244   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7245   (eval $ac_compile) 2>&5
7246   ac_status=$?
7247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; then
7249     case `/usr/bin/file conftest.o` in
7250     *32-bit*)
7251       case $host in
7252         x86_64-*kfreebsd*-gnu)
7253           LD="${LD-ld} -m elf_i386_fbsd"
7254           ;;
7255         x86_64-*linux*)
7256           LD="${LD-ld} -m elf_i386"
7257           ;;
7258         ppc64-*linux*|powerpc64-*linux*)
7259           LD="${LD-ld} -m elf32ppclinux"
7260           ;;
7261         s390x-*linux*)
7262           LD="${LD-ld} -m elf_s390"
7263           ;;
7264         sparc64-*linux*)
7265           LD="${LD-ld} -m elf32_sparc"
7266           ;;
7267       esac
7268       ;;
7269     *64-bit*)
7270       libsuff=64
7271       case $host in
7272         x86_64-*kfreebsd*-gnu)
7273           LD="${LD-ld} -m elf_x86_64_fbsd"
7274           ;;
7275         x86_64-*linux*)
7276           LD="${LD-ld} -m elf_x86_64"
7277           ;;
7278         ppc*-*linux*|powerpc*-*linux*)
7279           LD="${LD-ld} -m elf64ppc"
7280           ;;
7281         s390*-*linux*)
7282           LD="${LD-ld} -m elf64_s390"
7283           ;;
7284         sparc*-*linux*)
7285           LD="${LD-ld} -m elf64_sparc"
7286           ;;
7287       esac
7288       ;;
7289     esac
7290   fi
7291   rm -rf conftest*
7292   ;;
7293
7294 *-*-sco3.2v5*)
7295   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7296   SAVE_CFLAGS="$CFLAGS"
7297   CFLAGS="$CFLAGS -belf"
7298   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7299 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7300 if test "${lt_cv_cc_needs_belf+set}" = set; then
7301   $as_echo_n "(cached) " >&6
7302 else
7303   ac_ext=c
7304 ac_cpp='$CPP $CPPFLAGS'
7305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7308
7309      cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h.  */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h.  */
7315
7316 int
7317 main ()
7318 {
7319
7320   ;
7321   return 0;
7322 }
7323 _ACEOF
7324 rm -f conftest.$ac_objext conftest$ac_exeext
7325 if { (ac_try="$ac_link"
7326 case "(($ac_try" in
7327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328   *) ac_try_echo=$ac_try;;
7329 esac
7330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7331 $as_echo "$ac_try_echo") >&5
7332   (eval "$ac_link") 2>conftest.er1
7333   ac_status=$?
7334   grep -v '^ *+' conftest.er1 >conftest.err
7335   rm -f conftest.er1
7336   cat conftest.err >&5
7337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); } && {
7339          test -z "$ac_c_werror_flag" ||
7340          test ! -s conftest.err
7341        } && test -s conftest$ac_exeext && {
7342          test "$cross_compiling" = yes ||
7343          $as_test_x conftest$ac_exeext
7344        }; then
7345   lt_cv_cc_needs_belf=yes
7346 else
7347   $as_echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350         lt_cv_cc_needs_belf=no
7351 fi
7352
7353 rm -rf conftest.dSYM
7354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355       conftest$ac_exeext conftest.$ac_ext
7356      ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362 fi
7363 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7365   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367     CFLAGS="$SAVE_CFLAGS"
7368   fi
7369   ;;
7370 sparc*-*solaris*)
7371   # Find out which ABI we are using.
7372   echo 'int i;' > conftest.$ac_ext
7373   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374   (eval $ac_compile) 2>&5
7375   ac_status=$?
7376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; then
7378     case `/usr/bin/file conftest.o` in
7379     *64-bit*)
7380       case $lt_cv_prog_gnu_ld in
7381       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382       *)
7383         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384           LD="${LD-ld} -64"
7385         fi
7386         ;;
7387       esac
7388       ;;
7389     esac
7390   fi
7391   rm -rf conftest*
7392   ;;
7393
7394
7395 esac
7396
7397 need_locks="$enable_libtool_lock"
7398
7399
7400 ac_ext=c
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7406 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7407 # On Suns, sometimes $CPP names a directory.
7408 if test -n "$CPP" && test -d "$CPP"; then
7409   CPP=
7410 fi
7411 if test -z "$CPP"; then
7412   if test "${ac_cv_prog_CPP+set}" = set; then
7413   $as_echo_n "(cached) " >&6
7414 else
7415       # Double quotes because CPP needs to be expanded
7416     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7417     do
7418       ac_preproc_ok=false
7419 for ac_c_preproc_warn_flag in '' yes
7420 do
7421   # Use a header file that comes with gcc, so configuring glibc
7422   # with a fresh cross-compiler works.
7423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7424   # <limits.h> exists even on freestanding compilers.
7425   # On the NeXT, cc -E runs the code through the compiler's parser,
7426   # not just through cpp. "Syntax error" is here to catch this case.
7427   cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h.  */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h.  */
7433 #ifdef __STDC__
7434 # include <limits.h>
7435 #else
7436 # include <assert.h>
7437 #endif
7438                      Syntax error
7439 _ACEOF
7440 if { (ac_try="$ac_cpp conftest.$ac_ext"
7441 case "(($ac_try" in
7442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443   *) ac_try_echo=$ac_try;;
7444 esac
7445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7446 $as_echo "$ac_try_echo") >&5
7447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7448   ac_status=$?
7449   grep -v '^ *+' conftest.er1 >conftest.err
7450   rm -f conftest.er1
7451   cat conftest.err >&5
7452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); } >/dev/null && {
7454          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7455          test ! -s conftest.err
7456        }; then
7457   :
7458 else
7459   $as_echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462   # Broken: fails on valid input.
7463 continue
7464 fi
7465
7466 rm -f conftest.err conftest.$ac_ext
7467
7468   # OK, works on sane cases.  Now check whether nonexistent headers
7469   # can be detected and how.
7470   cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h.  */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h.  */
7476 #include <ac_nonexistent.h>
7477 _ACEOF
7478 if { (ac_try="$ac_cpp conftest.$ac_ext"
7479 case "(($ac_try" in
7480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481   *) ac_try_echo=$ac_try;;
7482 esac
7483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7484 $as_echo "$ac_try_echo") >&5
7485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7486   ac_status=$?
7487   grep -v '^ *+' conftest.er1 >conftest.err
7488   rm -f conftest.er1
7489   cat conftest.err >&5
7490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); } >/dev/null && {
7492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7493          test ! -s conftest.err
7494        }; then
7495   # Broken: success on invalid input.
7496 continue
7497 else
7498   $as_echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501   # Passes both tests.
7502 ac_preproc_ok=:
7503 break
7504 fi
7505
7506 rm -f conftest.err conftest.$ac_ext
7507
7508 done
7509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7510 rm -f conftest.err conftest.$ac_ext
7511 if $ac_preproc_ok; then
7512   break
7513 fi
7514
7515     done
7516     ac_cv_prog_CPP=$CPP
7517
7518 fi
7519   CPP=$ac_cv_prog_CPP
7520 else
7521   ac_cv_prog_CPP=$CPP
7522 fi
7523 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7524 $as_echo "$CPP" >&6; }
7525 ac_preproc_ok=false
7526 for ac_c_preproc_warn_flag in '' yes
7527 do
7528   # Use a header file that comes with gcc, so configuring glibc
7529   # with a fresh cross-compiler works.
7530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7531   # <limits.h> exists even on freestanding compilers.
7532   # On the NeXT, cc -E runs the code through the compiler's parser,
7533   # not just through cpp. "Syntax error" is here to catch this case.
7534   cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h.  */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h.  */
7540 #ifdef __STDC__
7541 # include <limits.h>
7542 #else
7543 # include <assert.h>
7544 #endif
7545                      Syntax error
7546 _ACEOF
7547 if { (ac_try="$ac_cpp conftest.$ac_ext"
7548 case "(($ac_try" in
7549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550   *) ac_try_echo=$ac_try;;
7551 esac
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7555   ac_status=$?
7556   grep -v '^ *+' conftest.er1 >conftest.err
7557   rm -f conftest.er1
7558   cat conftest.err >&5
7559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } >/dev/null && {
7561          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7562          test ! -s conftest.err
7563        }; then
7564   :
7565 else
7566   $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569   # Broken: fails on valid input.
7570 continue
7571 fi
7572
7573 rm -f conftest.err conftest.$ac_ext
7574
7575   # OK, works on sane cases.  Now check whether nonexistent headers
7576   # can be detected and how.
7577   cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h.  */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h.  */
7583 #include <ac_nonexistent.h>
7584 _ACEOF
7585 if { (ac_try="$ac_cpp conftest.$ac_ext"
7586 case "(($ac_try" in
7587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588   *) ac_try_echo=$ac_try;;
7589 esac
7590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7591 $as_echo "$ac_try_echo") >&5
7592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7593   ac_status=$?
7594   grep -v '^ *+' conftest.er1 >conftest.err
7595   rm -f conftest.er1
7596   cat conftest.err >&5
7597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } >/dev/null && {
7599          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7600          test ! -s conftest.err
7601        }; then
7602   # Broken: success on invalid input.
7603 continue
7604 else
7605   $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7607
7608   # Passes both tests.
7609 ac_preproc_ok=:
7610 break
7611 fi
7612
7613 rm -f conftest.err conftest.$ac_ext
7614
7615 done
7616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7617 rm -f conftest.err conftest.$ac_ext
7618 if $ac_preproc_ok; then
7619   :
7620 else
7621   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7623 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7624 See \`config.log' for more details." >&5
7625 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7626 See \`config.log' for more details." >&2;}
7627    { (exit 1); exit 1; }; }; }
7628 fi
7629
7630 ac_ext=c
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
7636
7637 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7638 $as_echo_n "checking for ANSI C header files... " >&6; }
7639 if test "${ac_cv_header_stdc+set}" = set; then
7640   $as_echo_n "(cached) " >&6
7641 else
7642   cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h.  */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h.  */
7648 #include <stdlib.h>
7649 #include <stdarg.h>
7650 #include <string.h>
7651 #include <float.h>
7652
7653 int
7654 main ()
7655 {
7656
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7663 case "(($ac_try" in
7664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665   *) ac_try_echo=$ac_try;;
7666 esac
7667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7668 $as_echo "$ac_try_echo") >&5
7669   (eval "$ac_compile") 2>conftest.er1
7670   ac_status=$?
7671   grep -v '^ *+' conftest.er1 >conftest.err
7672   rm -f conftest.er1
7673   cat conftest.err >&5
7674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); } && {
7676          test -z "$ac_c_werror_flag" ||
7677          test ! -s conftest.err
7678        } && test -s conftest.$ac_objext; then
7679   ac_cv_header_stdc=yes
7680 else
7681   $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684         ac_cv_header_stdc=no
7685 fi
7686
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688
7689 if test $ac_cv_header_stdc = yes; then
7690   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7691   cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697 #include <string.h>
7698
7699 _ACEOF
7700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701   $EGREP "memchr" >/dev/null 2>&1; then
7702   :
7703 else
7704   ac_cv_header_stdc=no
7705 fi
7706 rm -f conftest*
7707
7708 fi
7709
7710 if test $ac_cv_header_stdc = yes; then
7711   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7712   cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718 #include <stdlib.h>
7719
7720 _ACEOF
7721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7722   $EGREP "free" >/dev/null 2>&1; then
7723   :
7724 else
7725   ac_cv_header_stdc=no
7726 fi
7727 rm -f conftest*
7728
7729 fi
7730
7731 if test $ac_cv_header_stdc = yes; then
7732   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7733   if test "$cross_compiling" = yes; then
7734   :
7735 else
7736   cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h.  */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h.  */
7742 #include <ctype.h>
7743 #include <stdlib.h>
7744 #if ((' ' & 0x0FF) == 0x020)
7745 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7746 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7747 #else
7748 # define ISLOWER(c) \
7749                    (('a' <= (c) && (c) <= 'i') \
7750                      || ('j' <= (c) && (c) <= 'r') \
7751                      || ('s' <= (c) && (c) <= 'z'))
7752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7753 #endif
7754
7755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7756 int
7757 main ()
7758 {
7759   int i;
7760   for (i = 0; i < 256; i++)
7761     if (XOR (islower (i), ISLOWER (i))
7762         || toupper (i) != TOUPPER (i))
7763       return 2;
7764   return 0;
7765 }
7766 _ACEOF
7767 rm -f conftest$ac_exeext
7768 if { (ac_try="$ac_link"
7769 case "(($ac_try" in
7770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771   *) ac_try_echo=$ac_try;;
7772 esac
7773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7774 $as_echo "$ac_try_echo") >&5
7775   (eval "$ac_link") 2>&5
7776   ac_status=$?
7777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7779   { (case "(($ac_try" in
7780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781   *) ac_try_echo=$ac_try;;
7782 esac
7783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7784 $as_echo "$ac_try_echo") >&5
7785   (eval "$ac_try") 2>&5
7786   ac_status=$?
7787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; }; then
7789   :
7790 else
7791   $as_echo "$as_me: program exited with status $ac_status" >&5
7792 $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ( exit $ac_status )
7796 ac_cv_header_stdc=no
7797 fi
7798 rm -rf conftest.dSYM
7799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7800 fi
7801
7802
7803 fi
7804 fi
7805 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7806 $as_echo "$ac_cv_header_stdc" >&6; }
7807 if test $ac_cv_header_stdc = yes; then
7808
7809 cat >>confdefs.h <<\_ACEOF
7810 #define STDC_HEADERS 1
7811 _ACEOF
7812
7813 fi
7814
7815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7826                   inttypes.h stdint.h unistd.h
7827 do
7828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7830 $as_echo_n "checking for $ac_header... " >&6; }
7831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7832   $as_echo_n "(cached) " >&6
7833 else
7834   cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840 $ac_includes_default
7841
7842 #include <$ac_header>
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7846 case "(($ac_try" in
7847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848   *) ac_try_echo=$ac_try;;
7849 esac
7850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851 $as_echo "$ac_try_echo") >&5
7852   (eval "$ac_compile") 2>conftest.er1
7853   ac_status=$?
7854   grep -v '^ *+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } && {
7859          test -z "$ac_c_werror_flag" ||
7860          test ! -s conftest.err
7861        } && test -s conftest.$ac_objext; then
7862   eval "$as_ac_Header=yes"
7863 else
7864   $as_echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867         eval "$as_ac_Header=no"
7868 fi
7869
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 ac_res=`eval 'as_val=${'$as_ac_Header'}
7873                  $as_echo "$as_val"'`
7874                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7875 $as_echo "$ac_res" >&6; }
7876 as_val=`eval 'as_val=${'$as_ac_Header'}
7877                  $as_echo "$as_val"'`
7878    if test "x$as_val" = x""yes; then
7879   cat >>confdefs.h <<_ACEOF
7880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7881 _ACEOF
7882
7883 fi
7884
7885 done
7886
7887
7888
7889 for ac_header in dlfcn.h
7890 do
7891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7893   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 $as_echo_n "checking for $ac_header... " >&6; }
7895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7896   $as_echo_n "(cached) " >&6
7897 fi
7898 ac_res=`eval 'as_val=${'$as_ac_Header'}
7899                  $as_echo "$as_val"'`
7900                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7901 $as_echo "$ac_res" >&6; }
7902 else
7903   # Is the header compilable?
7904 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7905 $as_echo_n "checking $ac_header usability... " >&6; }
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912 $ac_includes_default
7913 #include <$ac_header>
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919   *) ac_try_echo=$ac_try;;
7920 esac
7921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7922 $as_echo "$ac_try_echo") >&5
7923   (eval "$ac_compile") 2>conftest.er1
7924   ac_status=$?
7925   grep -v '^ *+' conftest.er1 >conftest.err
7926   rm -f conftest.er1
7927   cat conftest.err >&5
7928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } && {
7930          test -z "$ac_c_werror_flag" ||
7931          test ! -s conftest.err
7932        } && test -s conftest.$ac_objext; then
7933   ac_header_compiler=yes
7934 else
7935   $as_echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938         ac_header_compiler=no
7939 fi
7940
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7943 $as_echo "$ac_header_compiler" >&6; }
7944
7945 # Is the header present?
7946 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7947 $as_echo_n "checking $ac_header presence... " >&6; }
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 #include <$ac_header>
7955 _ACEOF
7956 if { (ac_try="$ac_cpp conftest.$ac_ext"
7957 case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7964   ac_status=$?
7965   grep -v '^ *+' conftest.er1 >conftest.err
7966   rm -f conftest.er1
7967   cat conftest.err >&5
7968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } >/dev/null && {
7970          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7971          test ! -s conftest.err
7972        }; then
7973   ac_header_preproc=yes
7974 else
7975   $as_echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978   ac_header_preproc=no
7979 fi
7980
7981 rm -f conftest.err conftest.$ac_ext
7982 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7983 $as_echo "$ac_header_preproc" >&6; }
7984
7985 # So?  What about this header?
7986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7987   yes:no: )
7988     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7989 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7990     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7991 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7992     ac_header_preproc=yes
7993     ;;
7994   no:yes:* )
7995     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7996 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7997     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7998 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8000 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8002 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8006 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8007     ( cat <<\_ASBOX
8008 ## -------------------------------- ##
8009 ## Report this to Hans.Boehm@hp.com ##
8010 ## -------------------------------- ##
8011 _ASBOX
8012      ) | sed "s/^/$as_me: WARNING:     /" >&2
8013     ;;
8014 esac
8015 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8016 $as_echo_n "checking for $ac_header... " >&6; }
8017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8018   $as_echo_n "(cached) " >&6
8019 else
8020   eval "$as_ac_Header=\$ac_header_preproc"
8021 fi
8022 ac_res=`eval 'as_val=${'$as_ac_Header'}
8023                  $as_echo "$as_val"'`
8024                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8025 $as_echo "$ac_res" >&6; }
8026
8027 fi
8028 as_val=`eval 'as_val=${'$as_ac_Header'}
8029                  $as_echo "$as_val"'`
8030    if test "x$as_val" = x""yes; then
8031   cat >>confdefs.h <<_ACEOF
8032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8033 _ACEOF
8034
8035 fi
8036
8037 done
8038
8039
8040
8041 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8042     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8043     (test "X$CXX" != "Xg++"))) ; then
8044   ac_ext=cpp
8045 ac_cpp='$CXXCPP $CPPFLAGS'
8046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8049 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8050 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8051 if test -z "$CXXCPP"; then
8052   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8053   $as_echo_n "(cached) " >&6
8054 else
8055       # Double quotes because CXXCPP needs to be expanded
8056     for CXXCPP in "$CXX -E" "/lib/cpp"
8057     do
8058       ac_preproc_ok=false
8059 for ac_cxx_preproc_warn_flag in '' yes
8060 do
8061   # Use a header file that comes with gcc, so configuring glibc
8062   # with a fresh cross-compiler works.
8063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064   # <limits.h> exists even on freestanding compilers.
8065   # On the NeXT, cc -E runs the code through the compiler's parser,
8066   # not just through cpp. "Syntax error" is here to catch this case.
8067   cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 #ifdef __STDC__
8074 # include <limits.h>
8075 #else
8076 # include <assert.h>
8077 #endif
8078                      Syntax error
8079 _ACEOF
8080 if { (ac_try="$ac_cpp conftest.$ac_ext"
8081 case "(($ac_try" in
8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083   *) ac_try_echo=$ac_try;;
8084 esac
8085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8086 $as_echo "$ac_try_echo") >&5
8087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8088   ac_status=$?
8089   grep -v '^ *+' conftest.er1 >conftest.err
8090   rm -f conftest.er1
8091   cat conftest.err >&5
8092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } >/dev/null && {
8094          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8095          test ! -s conftest.err
8096        }; then
8097   :
8098 else
8099   $as_echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102   # Broken: fails on valid input.
8103 continue
8104 fi
8105
8106 rm -f conftest.err conftest.$ac_ext
8107
8108   # OK, works on sane cases.  Now check whether nonexistent headers
8109   # can be detected and how.
8110   cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h.  */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h.  */
8116 #include <ac_nonexistent.h>
8117 _ACEOF
8118 if { (ac_try="$ac_cpp conftest.$ac_ext"
8119 case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8124 $as_echo "$ac_try_echo") >&5
8125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } >/dev/null && {
8132          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8133          test ! -s conftest.err
8134        }; then
8135   # Broken: success on invalid input.
8136 continue
8137 else
8138   $as_echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141   # Passes both tests.
8142 ac_preproc_ok=:
8143 break
8144 fi
8145
8146 rm -f conftest.err conftest.$ac_ext
8147
8148 done
8149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8150 rm -f conftest.err conftest.$ac_ext
8151 if $ac_preproc_ok; then
8152   break
8153 fi
8154
8155     done
8156     ac_cv_prog_CXXCPP=$CXXCPP
8157
8158 fi
8159   CXXCPP=$ac_cv_prog_CXXCPP
8160 else
8161   ac_cv_prog_CXXCPP=$CXXCPP
8162 fi
8163 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8164 $as_echo "$CXXCPP" >&6; }
8165 ac_preproc_ok=false
8166 for ac_cxx_preproc_warn_flag in '' yes
8167 do
8168   # Use a header file that comes with gcc, so configuring glibc
8169   # with a fresh cross-compiler works.
8170   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8171   # <limits.h> exists even on freestanding compilers.
8172   # On the NeXT, cc -E runs the code through the compiler's parser,
8173   # not just through cpp. "Syntax error" is here to catch this case.
8174   cat >conftest.$ac_ext <<_ACEOF
8175 /* confdefs.h.  */
8176 _ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h.  */
8180 #ifdef __STDC__
8181 # include <limits.h>
8182 #else
8183 # include <assert.h>
8184 #endif
8185                      Syntax error
8186 _ACEOF
8187 if { (ac_try="$ac_cpp conftest.$ac_ext"
8188 case "(($ac_try" in
8189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190   *) ac_try_echo=$ac_try;;
8191 esac
8192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8193 $as_echo "$ac_try_echo") >&5
8194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8195   ac_status=$?
8196   grep -v '^ *+' conftest.er1 >conftest.err
8197   rm -f conftest.er1
8198   cat conftest.err >&5
8199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } >/dev/null && {
8201          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8202          test ! -s conftest.err
8203        }; then
8204   :
8205 else
8206   $as_echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209   # Broken: fails on valid input.
8210 continue
8211 fi
8212
8213 rm -f conftest.err conftest.$ac_ext
8214
8215   # OK, works on sane cases.  Now check whether nonexistent headers
8216   # can be detected and how.
8217   cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223 #include <ac_nonexistent.h>
8224 _ACEOF
8225 if { (ac_try="$ac_cpp conftest.$ac_ext"
8226 case "(($ac_try" in
8227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228   *) ac_try_echo=$ac_try;;
8229 esac
8230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8231 $as_echo "$ac_try_echo") >&5
8232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8233   ac_status=$?
8234   grep -v '^ *+' conftest.er1 >conftest.err
8235   rm -f conftest.er1
8236   cat conftest.err >&5
8237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } >/dev/null && {
8239          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8240          test ! -s conftest.err
8241        }; then
8242   # Broken: success on invalid input.
8243 continue
8244 else
8245   $as_echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248   # Passes both tests.
8249 ac_preproc_ok=:
8250 break
8251 fi
8252
8253 rm -f conftest.err conftest.$ac_ext
8254
8255 done
8256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8257 rm -f conftest.err conftest.$ac_ext
8258 if $ac_preproc_ok; then
8259   :
8260 else
8261   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8263 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8264 See \`config.log' for more details." >&5
8265 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8266 See \`config.log' for more details." >&2;}
8267    { (exit 1); exit 1; }; }; }
8268 fi
8269
8270 ac_ext=cpp
8271 ac_cpp='$CXXCPP $CPPFLAGS'
8272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8275
8276 fi
8277
8278
8279 ac_ext=f
8280 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8281 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8282 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8283 if test -n "$ac_tool_prefix"; then
8284   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8285   do
8286     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_F77+set}" = set; then
8291   $as_echo_n "(cached) " >&6
8292 else
8293   if test -n "$F77"; then
8294   ac_cv_prog_F77="$F77" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299   IFS=$as_save_IFS
8300   test -z "$as_dir" && as_dir=.
8301   for ac_exec_ext in '' $ac_executable_extensions; do
8302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8305     break 2
8306   fi
8307 done
8308 done
8309 IFS=$as_save_IFS
8310
8311 fi
8312 fi
8313 F77=$ac_cv_prog_F77
8314 if test -n "$F77"; then
8315   { $as_echo "$as_me:$LINENO: result: $F77" >&5
8316 $as_echo "$F77" >&6; }
8317 else
8318   { $as_echo "$as_me:$LINENO: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323     test -n "$F77" && break
8324   done
8325 fi
8326 if test -z "$F77"; then
8327   ac_ct_F77=$F77
8328   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8329 do
8330   # Extract the first word of "$ac_prog", so it can be a program name with args.
8331 set dummy $ac_prog; ac_word=$2
8332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8335   $as_echo_n "(cached) " >&6
8336 else
8337   if test -n "$ac_ct_F77"; then
8338   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8342 do
8343   IFS=$as_save_IFS
8344   test -z "$as_dir" && as_dir=.
8345   for ac_exec_ext in '' $ac_executable_extensions; do
8346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347     ac_cv_prog_ac_ct_F77="$ac_prog"
8348     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8349     break 2
8350   fi
8351 done
8352 done
8353 IFS=$as_save_IFS
8354
8355 fi
8356 fi
8357 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8358 if test -n "$ac_ct_F77"; then
8359   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8360 $as_echo "$ac_ct_F77" >&6; }
8361 else
8362   { $as_echo "$as_me:$LINENO: result: no" >&5
8363 $as_echo "no" >&6; }
8364 fi
8365
8366
8367   test -n "$ac_ct_F77" && break
8368 done
8369
8370   if test "x$ac_ct_F77" = x; then
8371     F77=""
8372   else
8373     case $cross_compiling:$ac_tool_warned in
8374 yes:)
8375 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8378 esac
8379     F77=$ac_ct_F77
8380   fi
8381 fi
8382
8383
8384 # Provide some information about the compiler.
8385 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8386 set X $ac_compile
8387 ac_compiler=$2
8388 { (ac_try="$ac_compiler --version >&5"
8389 case "(($ac_try" in
8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391   *) ac_try_echo=$ac_try;;
8392 esac
8393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394 $as_echo "$ac_try_echo") >&5
8395   (eval "$ac_compiler --version >&5") 2>&5
8396   ac_status=$?
8397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }
8399 { (ac_try="$ac_compiler -v >&5"
8400 case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8405 $as_echo "$ac_try_echo") >&5
8406   (eval "$ac_compiler -v >&5") 2>&5
8407   ac_status=$?
8408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }
8410 { (ac_try="$ac_compiler -V >&5"
8411 case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8416 $as_echo "$ac_try_echo") >&5
8417   (eval "$ac_compiler -V >&5") 2>&5
8418   ac_status=$?
8419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }
8421 rm -f a.out
8422
8423 # If we don't use `.F' as extension, the preprocessor is not run on the
8424 # input file.  (Note that this only needs to work for GNU compilers.)
8425 ac_save_ext=$ac_ext
8426 ac_ext=F
8427 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8428 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
8429 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8430   $as_echo_n "(cached) " >&6
8431 else
8432   cat >conftest.$ac_ext <<_ACEOF
8433       program main
8434 #ifndef __GNUC__
8435        choke me
8436 #endif
8437
8438       end
8439 _ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8447 $as_echo "$ac_try_echo") >&5
8448   (eval "$ac_compile") 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } && {
8455          test -z "$ac_f77_werror_flag" ||
8456          test ! -s conftest.err
8457        } && test -s conftest.$ac_objext; then
8458   ac_compiler_gnu=yes
8459 else
8460   $as_echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463         ac_compiler_gnu=no
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8468
8469 fi
8470 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8471 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
8472 ac_ext=$ac_save_ext
8473 ac_test_FFLAGS=${FFLAGS+set}
8474 ac_save_FFLAGS=$FFLAGS
8475 FFLAGS=
8476 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8477 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
8478 if test "${ac_cv_prog_f77_g+set}" = set; then
8479   $as_echo_n "(cached) " >&6
8480 else
8481   FFLAGS=-g
8482 cat >conftest.$ac_ext <<_ACEOF
8483       program main
8484
8485       end
8486 _ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (ac_try="$ac_compile"
8489 case "(($ac_try" in
8490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491   *) ac_try_echo=$ac_try;;
8492 esac
8493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494 $as_echo "$ac_try_echo") >&5
8495   (eval "$ac_compile") 2>conftest.er1
8496   ac_status=$?
8497   grep -v '^ *+' conftest.er1 >conftest.err
8498   rm -f conftest.er1
8499   cat conftest.err >&5
8500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } && {
8502          test -z "$ac_f77_werror_flag" ||
8503          test ! -s conftest.err
8504        } && test -s conftest.$ac_objext; then
8505   ac_cv_prog_f77_g=yes
8506 else
8507   $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510         ac_cv_prog_f77_g=no
8511 fi
8512
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514
8515 fi
8516 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8517 $as_echo "$ac_cv_prog_f77_g" >&6; }
8518 if test "$ac_test_FFLAGS" = set; then
8519   FFLAGS=$ac_save_FFLAGS
8520 elif test $ac_cv_prog_f77_g = yes; then
8521   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8522     FFLAGS="-g -O2"
8523   else
8524     FFLAGS="-g"
8525   fi
8526 else
8527   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8528     FFLAGS="-O2"
8529   else
8530     FFLAGS=
8531   fi
8532 fi
8533
8534 if test $ac_compiler_gnu = yes; then
8535   G77=yes
8536 else
8537   G77=
8538 fi
8539 ac_ext=c
8540 ac_cpp='$CPP $CPPFLAGS'
8541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8544
8545
8546
8547 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8548 # find the maximum length of command line arguments
8549 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8550 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8552   $as_echo_n "(cached) " >&6
8553 else
8554     i=0
8555   teststring="ABCD"
8556
8557   case $build_os in
8558   msdosdjgpp*)
8559     # On DJGPP, this test can blow up pretty badly due to problems in libc
8560     # (any single argument exceeding 2000 bytes causes a buffer overrun
8561     # during glob expansion).  Even if it were fixed, the result of this
8562     # check would be larger than it should be.
8563     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8564     ;;
8565
8566   gnu*)
8567     # Under GNU Hurd, this test is not required because there is
8568     # no limit to the length of command line arguments.
8569     # Libtool will interpret -1 as no limit whatsoever
8570     lt_cv_sys_max_cmd_len=-1;
8571     ;;
8572
8573   cygwin* | mingw*)
8574     # On Win9x/ME, this test blows up -- it succeeds, but takes
8575     # about 5 minutes as the teststring grows exponentially.
8576     # Worse, since 9x/ME are not pre-emptively multitasking,
8577     # you end up with a "frozen" computer, even though with patience
8578     # the test eventually succeeds (with a max line length of 256k).
8579     # Instead, let's just punt: use the minimum linelength reported by
8580     # all of the supported platforms: 8192 (on NT/2K/XP).
8581     lt_cv_sys_max_cmd_len=8192;
8582     ;;
8583
8584   amigaos*)
8585     # On AmigaOS with pdksh, this test takes hours, literally.
8586     # So we just punt and use a minimum line length of 8192.
8587     lt_cv_sys_max_cmd_len=8192;
8588     ;;
8589
8590   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8591     # This has been around since 386BSD, at least.  Likely further.
8592     if test -x /sbin/sysctl; then
8593       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8594     elif test -x /usr/sbin/sysctl; then
8595       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8596     else
8597       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8598     fi
8599     # And add a safety zone
8600     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8601     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8602     ;;
8603
8604   interix*)
8605     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8606     lt_cv_sys_max_cmd_len=196608
8607     ;;
8608
8609   osf*)
8610     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8611     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8612     # nice to cause kernel panics so lets avoid the loop below.
8613     # First set a reasonable default.
8614     lt_cv_sys_max_cmd_len=16384
8615     #
8616     if test -x /sbin/sysconfig; then
8617       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8618         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8619       esac
8620     fi
8621     ;;
8622   sco3.2v5*)
8623     lt_cv_sys_max_cmd_len=102400
8624     ;;
8625   sysv5* | sco5v6* | sysv4.2uw2*)
8626     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8627     if test -n "$kargmax"; then
8628       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8629     else
8630       lt_cv_sys_max_cmd_len=32768
8631     fi
8632     ;;
8633   *)
8634     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8635     if test -n "$lt_cv_sys_max_cmd_len"; then
8636       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8637       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8638     else
8639       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8640       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8641                = "XX$teststring") >/dev/null 2>&1 &&
8642               new_result=`expr "X$teststring" : ".*" 2>&1` &&
8643               lt_cv_sys_max_cmd_len=$new_result &&
8644               test $i != 17 # 1/2 MB should be enough
8645       do
8646         i=`expr $i + 1`
8647         teststring=$teststring$teststring
8648       done
8649       teststring=
8650       # Add a significant safety factor because C++ compilers can tack on massive
8651       # amounts of additional arguments before passing them to the linker.
8652       # It appears as though 1/2 is a usable value.
8653       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8654     fi
8655     ;;
8656   esac
8657
8658 fi
8659
8660 if test -n $lt_cv_sys_max_cmd_len ; then
8661   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8662 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8663 else
8664   { $as_echo "$as_me:$LINENO: result: none" >&5
8665 $as_echo "none" >&6; }
8666 fi
8667
8668
8669
8670
8671
8672 # Check for command to grab the raw symbol name followed by C symbol from nm.
8673 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8675 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8676   $as_echo_n "(cached) " >&6
8677 else
8678
8679 # These are sane defaults that work on at least a few old systems.
8680 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8681
8682 # Character class describing NM global symbol codes.
8683 symcode='[BCDEGRST]'
8684
8685 # Regexp to match symbols that can be accessed directly from C.
8686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8687
8688 # Transform an extracted symbol line into a proper C declaration
8689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8690
8691 # Transform an extracted symbol line into symbol name and symbol address
8692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8693
8694 # Define system-specific variables.
8695 case $host_os in
8696 aix*)
8697   symcode='[BCDT]'
8698   ;;
8699 cygwin* | mingw* | pw32*)
8700   symcode='[ABCDGISTW]'
8701   ;;
8702 hpux*) # Its linker distinguishes data from code symbols
8703   if test "$host_cpu" = ia64; then
8704     symcode='[ABCDEGRST]'
8705   fi
8706   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8707   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8708   ;;
8709 linux* | k*bsd*-gnu)
8710   if test "$host_cpu" = ia64; then
8711     symcode='[ABCDGIRSTW]'
8712     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8713     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8714   fi
8715   ;;
8716 irix* | nonstopux*)
8717   symcode='[BCDEGRST]'
8718   ;;
8719 osf*)
8720   symcode='[BCDEGQRST]'
8721   ;;
8722 solaris*)
8723   symcode='[BDRT]'
8724   ;;
8725 sco3.2v5*)
8726   symcode='[DT]'
8727   ;;
8728 sysv4.2uw2*)
8729   symcode='[DT]'
8730   ;;
8731 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8732   symcode='[ABDT]'
8733   ;;
8734 sysv4)
8735   symcode='[DFNSTU]'
8736   ;;
8737 esac
8738
8739 # Handle CRLF in mingw tool chain
8740 opt_cr=
8741 case $build_os in
8742 mingw*)
8743   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8744   ;;
8745 esac
8746
8747 # If we're using GNU nm, then use its standard symbol codes.
8748 case `$NM -V 2>&1` in
8749 *GNU* | *'with BFD'*)
8750   symcode='[ABCDGIRSTW]' ;;
8751 esac
8752
8753 # Try without a prefix undercore, then with it.
8754 for ac_symprfx in "" "_"; do
8755
8756   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8757   symxfrm="\\1 $ac_symprfx\\2 \\2"
8758
8759   # Write the raw and C identifiers.
8760   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8761
8762   # Check to see that the pipe works correctly.
8763   pipe_works=no
8764
8765   rm -f conftest*
8766   cat > conftest.$ac_ext <<EOF
8767 #ifdef __cplusplus
8768 extern "C" {
8769 #endif
8770 char nm_test_var;
8771 void nm_test_func(){}
8772 #ifdef __cplusplus
8773 }
8774 #endif
8775 int main(){nm_test_var='a';nm_test_func();return(0);}
8776 EOF
8777
8778   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779   (eval $ac_compile) 2>&5
8780   ac_status=$?
8781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; then
8783     # Now try to grab the symbols.
8784     nlist=conftest.nm
8785     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8786   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8787   ac_status=$?
8788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); } && test -s "$nlist"; then
8790       # Try sorting and uniquifying the output.
8791       if sort "$nlist" | uniq > "$nlist"T; then
8792         mv -f "$nlist"T "$nlist"
8793       else
8794         rm -f "$nlist"T
8795       fi
8796
8797       # Make sure that we snagged all the symbols we need.
8798       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8799         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8800           cat <<EOF > conftest.$ac_ext
8801 #ifdef __cplusplus
8802 extern "C" {
8803 #endif
8804
8805 EOF
8806           # Now generate the symbol file.
8807           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8808
8809           cat <<EOF >> conftest.$ac_ext
8810 #if defined (__STDC__) && __STDC__
8811 # define lt_ptr_t void *
8812 #else
8813 # define lt_ptr_t char *
8814 # define const
8815 #endif
8816
8817 /* The mapping between symbol names and symbols. */
8818 const struct {
8819   const char *name;
8820   lt_ptr_t address;
8821 }
8822 lt_preloaded_symbols[] =
8823 {
8824 EOF
8825           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8826           cat <<\EOF >> conftest.$ac_ext
8827   {0, (lt_ptr_t) 0}
8828 };
8829
8830 #ifdef __cplusplus
8831 }
8832 #endif
8833 EOF
8834           # Now try linking the two files.
8835           mv conftest.$ac_objext conftstm.$ac_objext
8836           lt_save_LIBS="$LIBS"
8837           lt_save_CFLAGS="$CFLAGS"
8838           LIBS="conftstm.$ac_objext"
8839           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8840           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841   (eval $ac_link) 2>&5
8842   ac_status=$?
8843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8845             pipe_works=yes
8846           fi
8847           LIBS="$lt_save_LIBS"
8848           CFLAGS="$lt_save_CFLAGS"
8849         else
8850           echo "cannot find nm_test_func in $nlist" >&5
8851         fi
8852       else
8853         echo "cannot find nm_test_var in $nlist" >&5
8854       fi
8855     else
8856       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8857     fi
8858   else
8859     echo "$progname: failed program was:" >&5
8860     cat conftest.$ac_ext >&5
8861   fi
8862   rm -rf conftest* conftst*
8863
8864   # Do not use the global_symbol_pipe unless it works.
8865   if test "$pipe_works" = yes; then
8866     break
8867   else
8868     lt_cv_sys_global_symbol_pipe=
8869   fi
8870 done
8871
8872 fi
8873
8874 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8875   lt_cv_sys_global_symbol_to_cdecl=
8876 fi
8877 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8878   { $as_echo "$as_me:$LINENO: result: failed" >&5
8879 $as_echo "failed" >&6; }
8880 else
8881   { $as_echo "$as_me:$LINENO: result: ok" >&5
8882 $as_echo "ok" >&6; }
8883 fi
8884
8885 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8886 $as_echo_n "checking for objdir... " >&6; }
8887 if test "${lt_cv_objdir+set}" = set; then
8888   $as_echo_n "(cached) " >&6
8889 else
8890   rm -f .libs 2>/dev/null
8891 mkdir .libs 2>/dev/null
8892 if test -d .libs; then
8893   lt_cv_objdir=.libs
8894 else
8895   # MS-DOS does not allow filenames that begin with a dot.
8896   lt_cv_objdir=_libs
8897 fi
8898 rmdir .libs 2>/dev/null
8899 fi
8900 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8901 $as_echo "$lt_cv_objdir" >&6; }
8902 objdir=$lt_cv_objdir
8903
8904
8905
8906
8907
8908 case $host_os in
8909 aix3*)
8910   # AIX sometimes has problems with the GCC collect2 program.  For some
8911   # reason, if we set the COLLECT_NAMES environment variable, the problems
8912   # vanish in a puff of smoke.
8913   if test "X${COLLECT_NAMES+set}" != Xset; then
8914     COLLECT_NAMES=
8915     export COLLECT_NAMES
8916   fi
8917   ;;
8918 esac
8919
8920 # Sed substitution that helps us do robust quoting.  It backslashifies
8921 # metacharacters that are still active within double-quoted strings.
8922 Xsed='sed -e 1s/^X//'
8923 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8924
8925 # Same as above, but do not quote variable references.
8926 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8927
8928 # Sed substitution to delay expansion of an escaped shell variable in a
8929 # double_quote_subst'ed string.
8930 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8931
8932 # Sed substitution to avoid accidental globbing in evaled expressions
8933 no_glob_subst='s/\*/\\\*/g'
8934
8935 # Constants:
8936 rm="rm -f"
8937
8938 # Global variables:
8939 default_ofile=libtool
8940 can_build_shared=yes
8941
8942 # All known linkers require a `.a' archive for static linking (except MSVC,
8943 # which needs '.lib').
8944 libext=a
8945 ltmain="$ac_aux_dir/ltmain.sh"
8946 ofile="$default_ofile"
8947 with_gnu_ld="$lt_cv_prog_gnu_ld"
8948
8949 if test -n "$ac_tool_prefix"; then
8950   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8951 set dummy ${ac_tool_prefix}ar; ac_word=$2
8952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if test "${ac_cv_prog_AR+set}" = set; then
8955   $as_echo_n "(cached) " >&6
8956 else
8957   if test -n "$AR"; then
8958   ac_cv_prog_AR="$AR" # Let the user override the test.
8959 else
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8962 do
8963   IFS=$as_save_IFS
8964   test -z "$as_dir" && as_dir=.
8965   for ac_exec_ext in '' $ac_executable_extensions; do
8966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967     ac_cv_prog_AR="${ac_tool_prefix}ar"
8968     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8969     break 2
8970   fi
8971 done
8972 done
8973 IFS=$as_save_IFS
8974
8975 fi
8976 fi
8977 AR=$ac_cv_prog_AR
8978 if test -n "$AR"; then
8979   { $as_echo "$as_me:$LINENO: result: $AR" >&5
8980 $as_echo "$AR" >&6; }
8981 else
8982   { $as_echo "$as_me:$LINENO: result: no" >&5
8983 $as_echo "no" >&6; }
8984 fi
8985
8986
8987 fi
8988 if test -z "$ac_cv_prog_AR"; then
8989   ac_ct_AR=$AR
8990   # Extract the first word of "ar", so it can be a program name with args.
8991 set dummy ar; ac_word=$2
8992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8995   $as_echo_n "(cached) " >&6
8996 else
8997   if test -n "$ac_ct_AR"; then
8998   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005   for ac_exec_ext in '' $ac_executable_extensions; do
9006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007     ac_cv_prog_ac_ct_AR="ar"
9008     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012 done
9013 IFS=$as_save_IFS
9014
9015 fi
9016 fi
9017 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9018 if test -n "$ac_ct_AR"; then
9019   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9020 $as_echo "$ac_ct_AR" >&6; }
9021 else
9022   { $as_echo "$as_me:$LINENO: result: no" >&5
9023 $as_echo "no" >&6; }
9024 fi
9025
9026   if test "x$ac_ct_AR" = x; then
9027     AR="false"
9028   else
9029     case $cross_compiling:$ac_tool_warned in
9030 yes:)
9031 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9034 esac
9035     AR=$ac_ct_AR
9036   fi
9037 else
9038   AR="$ac_cv_prog_AR"
9039 fi
9040
9041 if test -n "$ac_tool_prefix"; then
9042   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_prog_RANLIB+set}" = set; then
9047   $as_echo_n "(cached) " >&6
9048 else
9049   if test -n "$RANLIB"; then
9050   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055   IFS=$as_save_IFS
9056   test -z "$as_dir" && as_dir=.
9057   for ac_exec_ext in '' $ac_executable_extensions; do
9058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9060     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9061     break 2
9062   fi
9063 done
9064 done
9065 IFS=$as_save_IFS
9066
9067 fi
9068 fi
9069 RANLIB=$ac_cv_prog_RANLIB
9070 if test -n "$RANLIB"; then
9071   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9072 $as_echo "$RANLIB" >&6; }
9073 else
9074   { $as_echo "$as_me:$LINENO: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077
9078
9079 fi
9080 if test -z "$ac_cv_prog_RANLIB"; then
9081   ac_ct_RANLIB=$RANLIB
9082   # Extract the first word of "ranlib", so it can be a program name with args.
9083 set dummy ranlib; ac_word=$2
9084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9087   $as_echo_n "(cached) " >&6
9088 else
9089   if test -n "$ac_ct_RANLIB"; then
9090   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9094 do
9095   IFS=$as_save_IFS
9096   test -z "$as_dir" && as_dir=.
9097   for ac_exec_ext in '' $ac_executable_extensions; do
9098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099     ac_cv_prog_ac_ct_RANLIB="ranlib"
9100     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9101     break 2
9102   fi
9103 done
9104 done
9105 IFS=$as_save_IFS
9106
9107 fi
9108 fi
9109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9110 if test -n "$ac_ct_RANLIB"; then
9111   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9112 $as_echo "$ac_ct_RANLIB" >&6; }
9113 else
9114   { $as_echo "$as_me:$LINENO: result: no" >&5
9115 $as_echo "no" >&6; }
9116 fi
9117
9118   if test "x$ac_ct_RANLIB" = x; then
9119     RANLIB=":"
9120   else
9121     case $cross_compiling:$ac_tool_warned in
9122 yes:)
9123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125 ac_tool_warned=yes ;;
9126 esac
9127     RANLIB=$ac_ct_RANLIB
9128   fi
9129 else
9130   RANLIB="$ac_cv_prog_RANLIB"
9131 fi
9132
9133 if test -n "$ac_tool_prefix"; then
9134   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9135 set dummy ${ac_tool_prefix}strip; ac_word=$2
9136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_STRIP+set}" = set; then
9139   $as_echo_n "(cached) " >&6
9140 else
9141   if test -n "$STRIP"; then
9142   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149   for ac_exec_ext in '' $ac_executable_extensions; do
9150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9152     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156 done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 STRIP=$ac_cv_prog_STRIP
9162 if test -n "$STRIP"; then
9163   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9164 $as_echo "$STRIP" >&6; }
9165 else
9166   { $as_echo "$as_me:$LINENO: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170
9171 fi
9172 if test -z "$ac_cv_prog_STRIP"; then
9173   ac_ct_STRIP=$STRIP
9174   # Extract the first word of "strip", so it can be a program name with args.
9175 set dummy strip; ac_word=$2
9176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9179   $as_echo_n "(cached) " >&6
9180 else
9181   if test -n "$ac_ct_STRIP"; then
9182   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9183 else
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187   IFS=$as_save_IFS
9188   test -z "$as_dir" && as_dir=.
9189   for ac_exec_ext in '' $ac_executable_extensions; do
9190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191     ac_cv_prog_ac_ct_STRIP="strip"
9192     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9193     break 2
9194   fi
9195 done
9196 done
9197 IFS=$as_save_IFS
9198
9199 fi
9200 fi
9201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9202 if test -n "$ac_ct_STRIP"; then
9203   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9204 $as_echo "$ac_ct_STRIP" >&6; }
9205 else
9206   { $as_echo "$as_me:$LINENO: result: no" >&5
9207 $as_echo "no" >&6; }
9208 fi
9209
9210   if test "x$ac_ct_STRIP" = x; then
9211     STRIP=":"
9212   else
9213     case $cross_compiling:$ac_tool_warned in
9214 yes:)
9215 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9217 ac_tool_warned=yes ;;
9218 esac
9219     STRIP=$ac_ct_STRIP
9220   fi
9221 else
9222   STRIP="$ac_cv_prog_STRIP"
9223 fi
9224
9225
9226 old_CC="$CC"
9227 old_CFLAGS="$CFLAGS"
9228
9229 # Set sane defaults for various variables
9230 test -z "$AR" && AR=ar
9231 test -z "$AR_FLAGS" && AR_FLAGS=cru
9232 test -z "$AS" && AS=as
9233 test -z "$CC" && CC=cc
9234 test -z "$LTCC" && LTCC=$CC
9235 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9236 test -z "$DLLTOOL" && DLLTOOL=dlltool
9237 test -z "$LD" && LD=ld
9238 test -z "$LN_S" && LN_S="ln -s"
9239 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9240 test -z "$NM" && NM=nm
9241 test -z "$SED" && SED=sed
9242 test -z "$OBJDUMP" && OBJDUMP=objdump
9243 test -z "$RANLIB" && RANLIB=:
9244 test -z "$STRIP" && STRIP=:
9245 test -z "$ac_objext" && ac_objext=o
9246
9247 # Determine commands to create old-style static archives.
9248 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9249 old_postinstall_cmds='chmod 644 $oldlib'
9250 old_postuninstall_cmds=
9251
9252 if test -n "$RANLIB"; then
9253   case $host_os in
9254   openbsd*)
9255     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9256     ;;
9257   *)
9258     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9259     ;;
9260   esac
9261   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9262 fi
9263
9264 for cc_temp in $compiler""; do
9265   case $cc_temp in
9266     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9267     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9268     \-*) ;;
9269     *) break;;
9270   esac
9271 done
9272 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9273
9274
9275 # Only perform the check for file, if the check method requires it
9276 case $deplibs_check_method in
9277 file_magic*)
9278   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9279     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9280 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9282   $as_echo_n "(cached) " >&6
9283 else
9284   case $MAGIC_CMD in
9285 [\\/*] |  ?:[\\/]*)
9286   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9287   ;;
9288 *)
9289   lt_save_MAGIC_CMD="$MAGIC_CMD"
9290   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9291   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9292   for ac_dir in $ac_dummy; do
9293     IFS="$lt_save_ifs"
9294     test -z "$ac_dir" && ac_dir=.
9295     if test -f $ac_dir/${ac_tool_prefix}file; then
9296       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9297       if test -n "$file_magic_test_file"; then
9298         case $deplibs_check_method in
9299         "file_magic "*)
9300           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9301           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9302           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9303             $EGREP "$file_magic_regex" > /dev/null; then
9304             :
9305           else
9306             cat <<EOF 1>&2
9307
9308 *** Warning: the command libtool uses to detect shared libraries,
9309 *** $file_magic_cmd, produces output that libtool cannot recognize.
9310 *** The result is that libtool may fail to recognize shared libraries
9311 *** as such.  This will affect the creation of libtool libraries that
9312 *** depend on shared libraries, but programs linked with such libtool
9313 *** libraries will work regardless of this problem.  Nevertheless, you
9314 *** may want to report the problem to your system manager and/or to
9315 *** bug-libtool@gnu.org
9316
9317 EOF
9318           fi ;;
9319         esac
9320       fi
9321       break
9322     fi
9323   done
9324   IFS="$lt_save_ifs"
9325   MAGIC_CMD="$lt_save_MAGIC_CMD"
9326   ;;
9327 esac
9328 fi
9329
9330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9331 if test -n "$MAGIC_CMD"; then
9332   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9333 $as_echo "$MAGIC_CMD" >&6; }
9334 else
9335   { $as_echo "$as_me:$LINENO: result: no" >&5
9336 $as_echo "no" >&6; }
9337 fi
9338
9339 if test -z "$lt_cv_path_MAGIC_CMD"; then
9340   if test -n "$ac_tool_prefix"; then
9341     { $as_echo "$as_me:$LINENO: checking for file" >&5
9342 $as_echo_n "checking for file... " >&6; }
9343 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9344   $as_echo_n "(cached) " >&6
9345 else
9346   case $MAGIC_CMD in
9347 [\\/*] |  ?:[\\/]*)
9348   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9349   ;;
9350 *)
9351   lt_save_MAGIC_CMD="$MAGIC_CMD"
9352   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9353   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9354   for ac_dir in $ac_dummy; do
9355     IFS="$lt_save_ifs"
9356     test -z "$ac_dir" && ac_dir=.
9357     if test -f $ac_dir/file; then
9358       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9359       if test -n "$file_magic_test_file"; then
9360         case $deplibs_check_method in
9361         "file_magic "*)
9362           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9363           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9364           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9365             $EGREP "$file_magic_regex" > /dev/null; then
9366             :
9367           else
9368             cat <<EOF 1>&2
9369
9370 *** Warning: the command libtool uses to detect shared libraries,
9371 *** $file_magic_cmd, produces output that libtool cannot recognize.
9372 *** The result is that libtool may fail to recognize shared libraries
9373 *** as such.  This will affect the creation of libtool libraries that
9374 *** depend on shared libraries, but programs linked with such libtool
9375 *** libraries will work regardless of this problem.  Nevertheless, you
9376 *** may want to report the problem to your system manager and/or to
9377 *** bug-libtool@gnu.org
9378
9379 EOF
9380           fi ;;
9381         esac
9382       fi
9383       break
9384     fi
9385   done
9386   IFS="$lt_save_ifs"
9387   MAGIC_CMD="$lt_save_MAGIC_CMD"
9388   ;;
9389 esac
9390 fi
9391
9392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9393 if test -n "$MAGIC_CMD"; then
9394   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9395 $as_echo "$MAGIC_CMD" >&6; }
9396 else
9397   { $as_echo "$as_me:$LINENO: result: no" >&5
9398 $as_echo "no" >&6; }
9399 fi
9400
9401   else
9402     MAGIC_CMD=:
9403   fi
9404 fi
9405
9406   fi
9407   ;;
9408 esac
9409
9410
9411   case $host_os in
9412     rhapsody* | darwin*)
9413     if test -n "$ac_tool_prefix"; then
9414   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9415 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9419   $as_echo_n "(cached) " >&6
9420 else
9421   if test -n "$DSYMUTIL"; then
9422   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9423 else
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $PATH
9426 do
9427   IFS=$as_save_IFS
9428   test -z "$as_dir" && as_dir=.
9429   for ac_exec_ext in '' $ac_executable_extensions; do
9430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9431     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9432     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9433     break 2
9434   fi
9435 done
9436 done
9437 IFS=$as_save_IFS
9438
9439 fi
9440 fi
9441 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9442 if test -n "$DSYMUTIL"; then
9443   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9444 $as_echo "$DSYMUTIL" >&6; }
9445 else
9446   { $as_echo "$as_me:$LINENO: result: no" >&5
9447 $as_echo "no" >&6; }
9448 fi
9449
9450
9451 fi
9452 if test -z "$ac_cv_prog_DSYMUTIL"; then
9453   ac_ct_DSYMUTIL=$DSYMUTIL
9454   # Extract the first word of "dsymutil", so it can be a program name with args.
9455 set dummy dsymutil; ac_word=$2
9456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9459   $as_echo_n "(cached) " >&6
9460 else
9461   if test -n "$ac_ct_DSYMUTIL"; then
9462   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9463 else
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9466 do
9467   IFS=$as_save_IFS
9468   test -z "$as_dir" && as_dir=.
9469   for ac_exec_ext in '' $ac_executable_extensions; do
9470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9473     break 2
9474   fi
9475 done
9476 done
9477 IFS=$as_save_IFS
9478
9479 fi
9480 fi
9481 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9482 if test -n "$ac_ct_DSYMUTIL"; then
9483   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9484 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9485 else
9486   { $as_echo "$as_me:$LINENO: result: no" >&5
9487 $as_echo "no" >&6; }
9488 fi
9489
9490   if test "x$ac_ct_DSYMUTIL" = x; then
9491     DSYMUTIL=":"
9492   else
9493     case $cross_compiling:$ac_tool_warned in
9494 yes:)
9495 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9497 ac_tool_warned=yes ;;
9498 esac
9499     DSYMUTIL=$ac_ct_DSYMUTIL
9500   fi
9501 else
9502   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9503 fi
9504
9505     if test -n "$ac_tool_prefix"; then
9506   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9507 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9511   $as_echo_n "(cached) " >&6
9512 else
9513   if test -n "$NMEDIT"; then
9514   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9515 else
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9518 do
9519   IFS=$as_save_IFS
9520   test -z "$as_dir" && as_dir=.
9521   for ac_exec_ext in '' $ac_executable_extensions; do
9522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9524     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9525     break 2
9526   fi
9527 done
9528 done
9529 IFS=$as_save_IFS
9530
9531 fi
9532 fi
9533 NMEDIT=$ac_cv_prog_NMEDIT
9534 if test -n "$NMEDIT"; then
9535   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9536 $as_echo "$NMEDIT" >&6; }
9537 else
9538   { $as_echo "$as_me:$LINENO: result: no" >&5
9539 $as_echo "no" >&6; }
9540 fi
9541
9542
9543 fi
9544 if test -z "$ac_cv_prog_NMEDIT"; then
9545   ac_ct_NMEDIT=$NMEDIT
9546   # Extract the first word of "nmedit", so it can be a program name with args.
9547 set dummy nmedit; ac_word=$2
9548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9551   $as_echo_n "(cached) " >&6
9552 else
9553   if test -n "$ac_ct_NMEDIT"; then
9554   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9555 else
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9558 do
9559   IFS=$as_save_IFS
9560   test -z "$as_dir" && as_dir=.
9561   for ac_exec_ext in '' $ac_executable_extensions; do
9562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9565     break 2
9566   fi
9567 done
9568 done
9569 IFS=$as_save_IFS
9570
9571 fi
9572 fi
9573 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9574 if test -n "$ac_ct_NMEDIT"; then
9575   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9576 $as_echo "$ac_ct_NMEDIT" >&6; }
9577 else
9578   { $as_echo "$as_me:$LINENO: result: no" >&5
9579 $as_echo "no" >&6; }
9580 fi
9581
9582   if test "x$ac_ct_NMEDIT" = x; then
9583     NMEDIT=":"
9584   else
9585     case $cross_compiling:$ac_tool_warned in
9586 yes:)
9587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9589 ac_tool_warned=yes ;;
9590 esac
9591     NMEDIT=$ac_ct_NMEDIT
9592   fi
9593 else
9594   NMEDIT="$ac_cv_prog_NMEDIT"
9595 fi
9596
9597
9598     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9599 $as_echo_n "checking for -single_module linker flag... " >&6; }
9600 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9601   $as_echo_n "(cached) " >&6
9602 else
9603   lt_cv_apple_cc_single_mod=no
9604       if test -z "${LT_MULTI_MODULE}"; then
9605    # By default we will add the -single_module flag. You can override
9606    # by either setting the environment variable LT_MULTI_MODULE
9607    # non-empty at configure time, or by adding -multi_module to the
9608    # link flags.
9609    echo "int foo(void){return 1;}" > conftest.c
9610    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9611      -dynamiclib ${wl}-single_module conftest.c
9612    if test -f libconftest.dylib; then
9613      lt_cv_apple_cc_single_mod=yes
9614      rm -rf libconftest.dylib*
9615    fi
9616    rm conftest.c
9617       fi
9618 fi
9619 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9620 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9621     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9622 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9623 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9624   $as_echo_n "(cached) " >&6
9625 else
9626   lt_cv_ld_exported_symbols_list=no
9627       save_LDFLAGS=$LDFLAGS
9628       echo "_main" > conftest.sym
9629       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9630       cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636
9637 int
9638 main ()
9639 {
9640
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9647 case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9652 $as_echo "$ac_try_echo") >&5
9653   (eval "$ac_link") 2>conftest.er1
9654   ac_status=$?
9655   grep -v '^ *+' conftest.er1 >conftest.err
9656   rm -f conftest.er1
9657   cat conftest.err >&5
9658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); } && {
9660          test -z "$ac_c_werror_flag" ||
9661          test ! -s conftest.err
9662        } && test -s conftest$ac_exeext && {
9663          test "$cross_compiling" = yes ||
9664          $as_test_x conftest$ac_exeext
9665        }; then
9666   lt_cv_ld_exported_symbols_list=yes
9667 else
9668   $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671         lt_cv_ld_exported_symbols_list=no
9672 fi
9673
9674 rm -rf conftest.dSYM
9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676       conftest$ac_exeext conftest.$ac_ext
9677    LDFLAGS="$save_LDFLAGS"
9678
9679 fi
9680 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9681 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9682     case $host_os in
9683     rhapsody* | darwin1.[0123])
9684       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9685     darwin1.*)
9686      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9687     darwin*)
9688       # if running on 10.5 or later, the deployment target defaults
9689       # to the OS version, if on x86, and 10.4, the deployment
9690       # target defaults to 10.4. Don't you love it?
9691       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9692    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9693      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9694    10.[012]*)
9695      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9696    10.*)
9697      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9698       esac
9699     ;;
9700   esac
9701     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9702       _lt_dar_single_mod='$single_module'
9703     fi
9704     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9705       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9706     else
9707       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9708     fi
9709     if test "$DSYMUTIL" != ":"; then
9710       _lt_dsymutil="~$DSYMUTIL \$lib || :"
9711     else
9712       _lt_dsymutil=
9713     fi
9714     ;;
9715   esac
9716
9717
9718 enable_dlopen=no
9719 enable_win32_dll=no
9720
9721 # Check whether --enable-libtool-lock was given.
9722 if test "${enable_libtool_lock+set}" = set; then
9723   enableval=$enable_libtool_lock;
9724 fi
9725
9726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9727
9728
9729 # Check whether --with-pic was given.
9730 if test "${with_pic+set}" = set; then
9731   withval=$with_pic; pic_mode="$withval"
9732 else
9733   pic_mode=default
9734 fi
9735
9736 test -z "$pic_mode" && pic_mode=default
9737
9738 # Use C for the default configuration in the libtool script
9739 tagname=
9740 lt_save_CC="$CC"
9741 ac_ext=c
9742 ac_cpp='$CPP $CPPFLAGS'
9743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9746
9747
9748 # Source file extension for C test sources.
9749 ac_ext=c
9750
9751 # Object file extension for compiled C test sources.
9752 objext=o
9753 objext=$objext
9754
9755 # Code to be used in simple compile tests
9756 lt_simple_compile_test_code="int some_variable = 0;"
9757
9758 # Code to be used in simple link tests
9759 lt_simple_link_test_code='int main(){return(0);}'
9760
9761
9762 # If no C compiler was specified, use CC.
9763 LTCC=${LTCC-"$CC"}
9764
9765 # If no C compiler flags were specified, use CFLAGS.
9766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9767
9768 # Allow CC to be a program name with arguments.
9769 compiler=$CC
9770
9771
9772 # save warnings/boilerplate of simple test code
9773 ac_outfile=conftest.$ac_objext
9774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9776 _lt_compiler_boilerplate=`cat conftest.err`
9777 $rm conftest*
9778
9779 ac_outfile=conftest.$ac_objext
9780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9782 _lt_linker_boilerplate=`cat conftest.err`
9783 $rm -r conftest*
9784
9785
9786
9787 lt_prog_compiler_no_builtin_flag=
9788
9789 if test "$GCC" = yes; then
9790   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9791
9792
9793 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9794 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9795 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9796   $as_echo_n "(cached) " >&6
9797 else
9798   lt_cv_prog_compiler_rtti_exceptions=no
9799   ac_outfile=conftest.$ac_objext
9800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9801    lt_compiler_flag="-fno-rtti -fno-exceptions"
9802    # Insert the option either (1) after the last *FLAGS variable, or
9803    # (2) before a word containing "conftest.", or (3) at the end.
9804    # Note that $ac_compile itself does not contain backslashes and begins
9805    # with a dollar sign (not a hyphen), so the echo should work correctly.
9806    # The option is referenced via a variable to avoid confusing sed.
9807    lt_compile=`echo "$ac_compile" | $SED \
9808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9810    -e 's:$: $lt_compiler_flag:'`
9811    (eval echo "\"\$as_me:9811: $lt_compile\"" >&5)
9812    (eval "$lt_compile" 2>conftest.err)
9813    ac_status=$?
9814    cat conftest.err >&5
9815    echo "$as_me:9815: \$? = $ac_status" >&5
9816    if (exit $ac_status) && test -s "$ac_outfile"; then
9817      # The compiler can only warn and ignore the option if not recognized
9818      # So say no if there are warnings other than the usual output.
9819      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9820      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9821      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9822        lt_cv_prog_compiler_rtti_exceptions=yes
9823      fi
9824    fi
9825    $rm conftest*
9826
9827 fi
9828 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9829 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9830
9831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9832     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9833 else
9834     :
9835 fi
9836
9837 fi
9838
9839 lt_prog_compiler_wl=
9840 lt_prog_compiler_pic=
9841 lt_prog_compiler_static=
9842
9843 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9844 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9845
9846   if test "$GCC" = yes; then
9847     lt_prog_compiler_wl='-Wl,'
9848     lt_prog_compiler_static='-static'
9849
9850     case $host_os in
9851       aix*)
9852       # All AIX code is PIC.
9853       if test "$host_cpu" = ia64; then
9854         # AIX 5 now supports IA64 processor
9855         lt_prog_compiler_static='-Bstatic'
9856       fi
9857       ;;
9858
9859     amigaos*)
9860       # FIXME: we need at least 68020 code to build shared libraries, but
9861       # adding the `-m68020' flag to GCC prevents building anything better,
9862       # like `-m68040'.
9863       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9864       ;;
9865
9866     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9867       # PIC is the default for these OSes.
9868       ;;
9869
9870     mingw* | cygwin* | pw32* | os2*)
9871       # This hack is so that the source file can tell whether it is being
9872       # built for inclusion in a dll (and should export symbols for example).
9873       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9874       # (--disable-auto-import) libraries
9875       lt_prog_compiler_pic='-DDLL_EXPORT'
9876       ;;
9877
9878     darwin* | rhapsody*)
9879       # PIC is the default on this platform
9880       # Common symbols not allowed in MH_DYLIB files
9881       lt_prog_compiler_pic='-fno-common'
9882       ;;
9883
9884     interix[3-9]*)
9885       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9886       # Instead, we relocate shared libraries at runtime.
9887       ;;
9888
9889     msdosdjgpp*)
9890       # Just because we use GCC doesn't mean we suddenly get shared libraries
9891       # on systems that don't support them.
9892       lt_prog_compiler_can_build_shared=no
9893       enable_shared=no
9894       ;;
9895
9896     sysv4*MP*)
9897       if test -d /usr/nec; then
9898         lt_prog_compiler_pic=-Kconform_pic
9899       fi
9900       ;;
9901
9902     hpux*)
9903       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9904       # not for PA HP-UX.
9905       case $host_cpu in
9906       hppa*64*|ia64*)
9907         # +Z the default
9908         ;;
9909       *)
9910         lt_prog_compiler_pic='-fPIC'
9911         ;;
9912       esac
9913       ;;
9914
9915     *)
9916       lt_prog_compiler_pic='-fPIC'
9917       ;;
9918     esac
9919   else
9920     # PORTME Check for flag to pass linker flags through the system compiler.
9921     case $host_os in
9922     aix*)
9923       lt_prog_compiler_wl='-Wl,'
9924       if test "$host_cpu" = ia64; then
9925         # AIX 5 now supports IA64 processor
9926         lt_prog_compiler_static='-Bstatic'
9927       else
9928         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9929       fi
9930       ;;
9931       darwin*)
9932         # PIC is the default on this platform
9933         # Common symbols not allowed in MH_DYLIB files
9934        case $cc_basename in
9935          xlc*)
9936          lt_prog_compiler_pic='-qnocommon'
9937          lt_prog_compiler_wl='-Wl,'
9938          ;;
9939        esac
9940        ;;
9941
9942     mingw* | cygwin* | pw32* | os2*)
9943       # This hack is so that the source file can tell whether it is being
9944       # built for inclusion in a dll (and should export symbols for example).
9945       lt_prog_compiler_pic='-DDLL_EXPORT'
9946       ;;
9947
9948     hpux9* | hpux10* | hpux11*)
9949       lt_prog_compiler_wl='-Wl,'
9950       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9951       # not for PA HP-UX.
9952       case $host_cpu in
9953       hppa*64*|ia64*)
9954         # +Z the default
9955         ;;
9956       *)
9957         lt_prog_compiler_pic='+Z'
9958         ;;
9959       esac
9960       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9961       lt_prog_compiler_static='${wl}-a ${wl}archive'
9962       ;;
9963
9964     irix5* | irix6* | nonstopux*)
9965       lt_prog_compiler_wl='-Wl,'
9966       # PIC (with -KPIC) is the default.
9967       lt_prog_compiler_static='-non_shared'
9968       ;;
9969
9970     newsos6)
9971       lt_prog_compiler_pic='-KPIC'
9972       lt_prog_compiler_static='-Bstatic'
9973       ;;
9974
9975     linux* | k*bsd*-gnu)
9976       case $cc_basename in
9977       icc* | ecc*)
9978         lt_prog_compiler_wl='-Wl,'
9979         lt_prog_compiler_pic='-KPIC'
9980         lt_prog_compiler_static='-static'
9981         ;;
9982       pgcc* | pgf77* | pgf90* | pgf95*)
9983         # Portland Group compilers (*not* the Pentium gcc compiler,
9984         # which looks to be a dead project)
9985         lt_prog_compiler_wl='-Wl,'
9986         lt_prog_compiler_pic='-fpic'
9987         lt_prog_compiler_static='-Bstatic'
9988         ;;
9989       ccc*)
9990         lt_prog_compiler_wl='-Wl,'
9991         # All Alpha code is PIC.
9992         lt_prog_compiler_static='-non_shared'
9993         ;;
9994       *)
9995         case `$CC -V 2>&1 | sed 5q` in
9996         *Sun\ C*)
9997           # Sun C 5.9
9998           lt_prog_compiler_pic='-KPIC'
9999           lt_prog_compiler_static='-Bstatic'
10000           lt_prog_compiler_wl='-Wl,'
10001           ;;
10002         *Sun\ F*)
10003           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10004           lt_prog_compiler_pic='-KPIC'
10005           lt_prog_compiler_static='-Bstatic'
10006           lt_prog_compiler_wl=''
10007           ;;
10008         esac
10009         ;;
10010       esac
10011       ;;
10012
10013     osf3* | osf4* | osf5*)
10014       lt_prog_compiler_wl='-Wl,'
10015       # All OSF/1 code is PIC.
10016       lt_prog_compiler_static='-non_shared'
10017       ;;
10018
10019     rdos*)
10020       lt_prog_compiler_static='-non_shared'
10021       ;;
10022
10023     solaris*)
10024       lt_prog_compiler_pic='-KPIC'
10025       lt_prog_compiler_static='-Bstatic'
10026       case $cc_basename in
10027       f77* | f90* | f95*)
10028         lt_prog_compiler_wl='-Qoption ld ';;
10029       *)
10030         lt_prog_compiler_wl='-Wl,';;
10031       esac
10032       ;;
10033
10034     sunos4*)
10035       lt_prog_compiler_wl='-Qoption ld '
10036       lt_prog_compiler_pic='-PIC'
10037       lt_prog_compiler_static='-Bstatic'
10038       ;;
10039
10040     sysv4 | sysv4.2uw2* | sysv4.3*)
10041       lt_prog_compiler_wl='-Wl,'
10042       lt_prog_compiler_pic='-KPIC'
10043       lt_prog_compiler_static='-Bstatic'
10044       ;;
10045
10046     sysv4*MP*)
10047       if test -d /usr/nec ;then
10048         lt_prog_compiler_pic='-Kconform_pic'
10049         lt_prog_compiler_static='-Bstatic'
10050       fi
10051       ;;
10052
10053     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10054       lt_prog_compiler_wl='-Wl,'
10055       lt_prog_compiler_pic='-KPIC'
10056       lt_prog_compiler_static='-Bstatic'
10057       ;;
10058
10059     unicos*)
10060       lt_prog_compiler_wl='-Wl,'
10061       lt_prog_compiler_can_build_shared=no
10062       ;;
10063
10064     uts4*)
10065       lt_prog_compiler_pic='-pic'
10066       lt_prog_compiler_static='-Bstatic'
10067       ;;
10068
10069     *)
10070       lt_prog_compiler_can_build_shared=no
10071       ;;
10072     esac
10073   fi
10074
10075 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10076 $as_echo "$lt_prog_compiler_pic" >&6; }
10077
10078 #
10079 # Check to make sure the PIC flag actually works.
10080 #
10081 if test -n "$lt_prog_compiler_pic"; then
10082
10083 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10084 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10085 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10086   $as_echo_n "(cached) " >&6
10087 else
10088   lt_cv_prog_compiler_pic_works=no
10089   ac_outfile=conftest.$ac_objext
10090    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10091    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10092    # Insert the option either (1) after the last *FLAGS variable, or
10093    # (2) before a word containing "conftest.", or (3) at the end.
10094    # Note that $ac_compile itself does not contain backslashes and begins
10095    # with a dollar sign (not a hyphen), so the echo should work correctly.
10096    # The option is referenced via a variable to avoid confusing sed.
10097    lt_compile=`echo "$ac_compile" | $SED \
10098    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10099    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10100    -e 's:$: $lt_compiler_flag:'`
10101    (eval echo "\"\$as_me:10101: $lt_compile\"" >&5)
10102    (eval "$lt_compile" 2>conftest.err)
10103    ac_status=$?
10104    cat conftest.err >&5
10105    echo "$as_me:10105: \$? = $ac_status" >&5
10106    if (exit $ac_status) && test -s "$ac_outfile"; then
10107      # The compiler can only warn and ignore the option if not recognized
10108      # So say no if there are warnings other than the usual output.
10109      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10110      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10111      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10112        lt_cv_prog_compiler_pic_works=yes
10113      fi
10114    fi
10115    $rm conftest*
10116
10117 fi
10118 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10119 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10120
10121 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10122     case $lt_prog_compiler_pic in
10123      "" | " "*) ;;
10124      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10125      esac
10126 else
10127     lt_prog_compiler_pic=
10128      lt_prog_compiler_can_build_shared=no
10129 fi
10130
10131 fi
10132 case $host_os in
10133   # For platforms which do not support PIC, -DPIC is meaningless:
10134   *djgpp*)
10135     lt_prog_compiler_pic=
10136     ;;
10137   *)
10138     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10139     ;;
10140 esac
10141
10142 #
10143 # Check to make sure the static flag actually works.
10144 #
10145 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10146 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10147 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10148 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10149   $as_echo_n "(cached) " >&6
10150 else
10151   lt_cv_prog_compiler_static_works=no
10152    save_LDFLAGS="$LDFLAGS"
10153    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10154    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10155    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10156      # The linker can only warn and ignore the option if not recognized
10157      # So say no if there are warnings
10158      if test -s conftest.err; then
10159        # Append any errors to the config.log.
10160        cat conftest.err 1>&5
10161        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10162        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10163        if diff conftest.exp conftest.er2 >/dev/null; then
10164          lt_cv_prog_compiler_static_works=yes
10165        fi
10166      else
10167        lt_cv_prog_compiler_static_works=yes
10168      fi
10169    fi
10170    $rm -r conftest*
10171    LDFLAGS="$save_LDFLAGS"
10172
10173 fi
10174 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10175 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10176
10177 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10178     :
10179 else
10180     lt_prog_compiler_static=
10181 fi
10182
10183
10184 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10186 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10187   $as_echo_n "(cached) " >&6
10188 else
10189   lt_cv_prog_compiler_c_o=no
10190    $rm -r conftest 2>/dev/null
10191    mkdir conftest
10192    cd conftest
10193    mkdir out
10194    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10195
10196    lt_compiler_flag="-o out/conftest2.$ac_objext"
10197    # Insert the option either (1) after the last *FLAGS variable, or
10198    # (2) before a word containing "conftest.", or (3) at the end.
10199    # Note that $ac_compile itself does not contain backslashes and begins
10200    # with a dollar sign (not a hyphen), so the echo should work correctly.
10201    lt_compile=`echo "$ac_compile" | $SED \
10202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10204    -e 's:$: $lt_compiler_flag:'`
10205    (eval echo "\"\$as_me:10205: $lt_compile\"" >&5)
10206    (eval "$lt_compile" 2>out/conftest.err)
10207    ac_status=$?
10208    cat out/conftest.err >&5
10209    echo "$as_me:10209: \$? = $ac_status" >&5
10210    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10211    then
10212      # The compiler can only warn and ignore the option if not recognized
10213      # So say no if there are warnings
10214      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10215      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10216      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10217        lt_cv_prog_compiler_c_o=yes
10218      fi
10219    fi
10220    chmod u+w . 2>&5
10221    $rm conftest*
10222    # SGI C++ compiler will create directory out/ii_files/ for
10223    # template instantiation
10224    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10225    $rm out/* && rmdir out
10226    cd ..
10227    rmdir conftest
10228    $rm conftest*
10229
10230 fi
10231 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10233
10234
10235 hard_links="nottested"
10236 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10237   # do not overwrite the value of need_locks provided by the user
10238   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10239 $as_echo_n "checking if we can lock with hard links... " >&6; }
10240   hard_links=yes
10241   $rm conftest*
10242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10243   touch conftest.a
10244   ln conftest.a conftest.b 2>&5 || hard_links=no
10245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10246   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10247 $as_echo "$hard_links" >&6; }
10248   if test "$hard_links" = no; then
10249     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10250 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10251     need_locks=warn
10252   fi
10253 else
10254   need_locks=no
10255 fi
10256
10257 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10258 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10259
10260   runpath_var=
10261   allow_undefined_flag=
10262   enable_shared_with_static_runtimes=no
10263   archive_cmds=
10264   archive_expsym_cmds=
10265   old_archive_From_new_cmds=
10266   old_archive_from_expsyms_cmds=
10267   export_dynamic_flag_spec=
10268   whole_archive_flag_spec=
10269   thread_safe_flag_spec=
10270   hardcode_libdir_flag_spec=
10271   hardcode_libdir_flag_spec_ld=
10272   hardcode_libdir_separator=
10273   hardcode_direct=no
10274   hardcode_minus_L=no
10275   hardcode_shlibpath_var=unsupported
10276   link_all_deplibs=unknown
10277   hardcode_automatic=no
10278   module_cmds=
10279   module_expsym_cmds=
10280   always_export_symbols=no
10281   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10282   # include_expsyms should be a list of space-separated symbols to be *always*
10283   # included in the symbol list
10284   include_expsyms=
10285   # exclude_expsyms can be an extended regexp of symbols to exclude
10286   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10287   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10288   # as well as any symbol that contains `d'.
10289   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10290   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10291   # platforms (ab)use it in PIC code, but their linkers get confused if
10292   # the symbol is explicitly referenced.  Since portable code cannot
10293   # rely on this symbol name, it's probably fine to never include it in
10294   # preloaded symbol tables.
10295   # Exclude shared library initialization/finalization symbols.
10296   extract_expsyms_cmds=
10297   # Just being paranoid about ensuring that cc_basename is set.
10298   for cc_temp in $compiler""; do
10299   case $cc_temp in
10300     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10301     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10302     \-*) ;;
10303     *) break;;
10304   esac
10305 done
10306 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10307
10308   case $host_os in
10309   cygwin* | mingw* | pw32*)
10310     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10311     # When not using gcc, we currently assume that we are using
10312     # Microsoft Visual C++.
10313     if test "$GCC" != yes; then
10314       with_gnu_ld=no
10315     fi
10316     ;;
10317   interix*)
10318     # we just hope/assume this is gcc and not c89 (= MSVC++)
10319     with_gnu_ld=yes
10320     ;;
10321   openbsd*)
10322     with_gnu_ld=no
10323     ;;
10324   esac
10325
10326   ld_shlibs=yes
10327   if test "$with_gnu_ld" = yes; then
10328     # If archive_cmds runs LD, not CC, wlarc should be empty
10329     wlarc='${wl}'
10330
10331     # Set some defaults for GNU ld with shared library support. These
10332     # are reset later if shared libraries are not supported. Putting them
10333     # here allows them to be overridden if necessary.
10334     runpath_var=LD_RUN_PATH
10335     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10336     export_dynamic_flag_spec='${wl}--export-dynamic'
10337     # ancient GNU ld didn't support --whole-archive et. al.
10338     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10339         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10340       else
10341         whole_archive_flag_spec=
10342     fi
10343     supports_anon_versioning=no
10344     case `$LD -v 2>/dev/null` in
10345       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10346       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10347       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10348       *\ 2.11.*) ;; # other 2.11 versions
10349       *) supports_anon_versioning=yes ;;
10350     esac
10351
10352     # See if GNU ld supports shared libraries.
10353     case $host_os in
10354     aix[3-9]*)
10355       # On AIX/PPC, the GNU linker is very broken
10356       if test "$host_cpu" != ia64; then
10357         ld_shlibs=no
10358         cat <<EOF 1>&2
10359
10360 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10361 *** to be unable to reliably create shared libraries on AIX.
10362 *** Therefore, libtool is disabling shared libraries support.  If you
10363 *** really care for shared libraries, you may want to modify your PATH
10364 *** so that a non-GNU linker is found, and then restart.
10365
10366 EOF
10367       fi
10368       ;;
10369
10370     amigaos*)
10371       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)'
10372       hardcode_libdir_flag_spec='-L$libdir'
10373       hardcode_minus_L=yes
10374
10375       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10376       # that the semantics of dynamic libraries on AmigaOS, at least up
10377       # to version 4, is to share data among multiple programs linked
10378       # with the same dynamic library.  Since this doesn't match the
10379       # behavior of shared libraries on other platforms, we can't use
10380       # them.
10381       ld_shlibs=no
10382       ;;
10383
10384     beos*)
10385       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10386         allow_undefined_flag=unsupported
10387         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10388         # support --undefined.  This deserves some investigation.  FIXME
10389         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390       else
10391         ld_shlibs=no
10392       fi
10393       ;;
10394
10395     cygwin* | mingw* | pw32*)
10396       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10397       # as there is no search path for DLLs.
10398       hardcode_libdir_flag_spec='-L$libdir'
10399       allow_undefined_flag=unsupported
10400       always_export_symbols=no
10401       enable_shared_with_static_runtimes=yes
10402       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10403
10404       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10405         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10406         # If the export-symbols file already is a .def file (1st line
10407         # is EXPORTS), use it as is; otherwise, prepend...
10408         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10409           cp $export_symbols $output_objdir/$soname.def;
10410         else
10411           echo EXPORTS > $output_objdir/$soname.def;
10412           cat $export_symbols >> $output_objdir/$soname.def;
10413         fi~
10414         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10415       else
10416         ld_shlibs=no
10417       fi
10418       ;;
10419
10420     interix[3-9]*)
10421       hardcode_direct=no
10422       hardcode_shlibpath_var=no
10423       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10424       export_dynamic_flag_spec='${wl}-E'
10425       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10426       # Instead, shared libraries are loaded at an image base (0x10000000 by
10427       # default) and relocated if they conflict, which is a slow very memory
10428       # consuming and fragmenting process.  To avoid this, we pick a random,
10429       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10430       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10431       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10432       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'
10433       ;;
10434
10435     gnu* | linux* | k*bsd*-gnu)
10436       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10437         tmp_addflag=
10438         case $cc_basename,$host_cpu in
10439         pgcc*)                          # Portland Group C compiler
10440           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'
10441           tmp_addflag=' $pic_flag'
10442           ;;
10443         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10444           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'
10445           tmp_addflag=' $pic_flag -Mnomain' ;;
10446         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10447           tmp_addflag=' -i_dynamic' ;;
10448         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10449           tmp_addflag=' -i_dynamic -nofor_main' ;;
10450         ifc* | ifort*)                  # Intel Fortran compiler
10451           tmp_addflag=' -nofor_main' ;;
10452         esac
10453         case `$CC -V 2>&1 | sed 5q` in
10454         *Sun\ C*)                       # Sun C 5.9
10455           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'
10456           tmp_sharedflag='-G' ;;
10457         *Sun\ F*)                       # Sun Fortran 8.3
10458           tmp_sharedflag='-G' ;;
10459         *)
10460           tmp_sharedflag='-shared' ;;
10461         esac
10462         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10463
10464         if test $supports_anon_versioning = yes; then
10465           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10466   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10467   $echo "local: *; };" >> $output_objdir/$libname.ver~
10468           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10469         fi
10470       else
10471         ld_shlibs=no
10472       fi
10473       ;;
10474
10475     netbsd*)
10476       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10477         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10478         wlarc=
10479       else
10480         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10481         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10482       fi
10483       ;;
10484
10485     solaris*)
10486       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10487         ld_shlibs=no
10488         cat <<EOF 1>&2
10489
10490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10491 *** create shared libraries on Solaris systems.  Therefore, libtool
10492 *** is disabling shared libraries support.  We urge you to upgrade GNU
10493 *** binutils to release 2.9.1 or newer.  Another option is to modify
10494 *** your PATH or compiler configuration so that the native linker is
10495 *** used, and then restart.
10496
10497 EOF
10498       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10499         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10500         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10501       else
10502         ld_shlibs=no
10503       fi
10504       ;;
10505
10506     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10507       case `$LD -v 2>&1` in
10508         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10509         ld_shlibs=no
10510         cat <<_LT_EOF 1>&2
10511
10512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10513 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10514 *** is disabling shared libraries support.  We urge you to upgrade GNU
10515 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10516 *** your PATH or compiler configuration so that the native linker is
10517 *** used, and then restart.
10518
10519 _LT_EOF
10520         ;;
10521         *)
10522           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10523             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10524             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10525             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10526           else
10527             ld_shlibs=no
10528           fi
10529         ;;
10530       esac
10531       ;;
10532
10533     sunos4*)
10534       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10535       wlarc=
10536       hardcode_direct=yes
10537       hardcode_shlibpath_var=no
10538       ;;
10539
10540     *)
10541       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10542         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10543         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10544       else
10545         ld_shlibs=no
10546       fi
10547       ;;
10548     esac
10549
10550     if test "$ld_shlibs" = no; then
10551       runpath_var=
10552       hardcode_libdir_flag_spec=
10553       export_dynamic_flag_spec=
10554       whole_archive_flag_spec=
10555     fi
10556   else
10557     # PORTME fill in a description of your system's linker (not GNU ld)
10558     case $host_os in
10559     aix3*)
10560       allow_undefined_flag=unsupported
10561       always_export_symbols=yes
10562       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'
10563       # Note: this linker hardcodes the directories in LIBPATH if there
10564       # are no directories specified by -L.
10565       hardcode_minus_L=yes
10566       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10567         # Neither direct hardcoding nor static linking is supported with a
10568         # broken collect2.
10569         hardcode_direct=unsupported
10570       fi
10571       ;;
10572
10573     aix[4-9]*)
10574       if test "$host_cpu" = ia64; then
10575         # On IA64, the linker does run time linking by default, so we don't
10576         # have to do anything special.
10577         aix_use_runtimelinking=no
10578         exp_sym_flag='-Bexport'
10579         no_entry_flag=""
10580       else
10581         # If we're using GNU nm, then we don't want the "-C" option.
10582         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10583         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10584           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'
10585         else
10586           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'
10587         fi
10588         aix_use_runtimelinking=no
10589
10590         # Test if we are trying to use run time linking or normal
10591         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10592         # need to do runtime linking.
10593         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10594           for ld_flag in $LDFLAGS; do
10595           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10596             aix_use_runtimelinking=yes
10597             break
10598           fi
10599           done
10600           ;;
10601         esac
10602
10603         exp_sym_flag='-bexport'
10604         no_entry_flag='-bnoentry'
10605       fi
10606
10607       # When large executables or shared objects are built, AIX ld can
10608       # have problems creating the table of contents.  If linking a library
10609       # or program results in "error TOC overflow" add -mminimal-toc to
10610       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10611       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10612
10613       archive_cmds=''
10614       hardcode_direct=yes
10615       hardcode_libdir_separator=':'
10616       link_all_deplibs=yes
10617
10618       if test "$GCC" = yes; then
10619         case $host_os in aix4.[012]|aix4.[012].*)
10620         # We only want to do this on AIX 4.2 and lower, the check
10621         # below for broken collect2 doesn't work under 4.3+
10622           collect2name=`${CC} -print-prog-name=collect2`
10623           if test -f "$collect2name" && \
10624            strings "$collect2name" | grep resolve_lib_name >/dev/null
10625           then
10626           # We have reworked collect2
10627           :
10628           else
10629           # We have old collect2
10630           hardcode_direct=unsupported
10631           # It fails to find uninstalled libraries when the uninstalled
10632           # path is not listed in the libpath.  Setting hardcode_minus_L
10633           # to unsupported forces relinking
10634           hardcode_minus_L=yes
10635           hardcode_libdir_flag_spec='-L$libdir'
10636           hardcode_libdir_separator=
10637           fi
10638           ;;
10639         esac
10640         shared_flag='-shared'
10641         if test "$aix_use_runtimelinking" = yes; then
10642           shared_flag="$shared_flag "'${wl}-G'
10643         fi
10644       else
10645         # not using gcc
10646         if test "$host_cpu" = ia64; then
10647         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10648         # chokes on -Wl,-G. The following line is correct:
10649           shared_flag='-G'
10650         else
10651           if test "$aix_use_runtimelinking" = yes; then
10652             shared_flag='${wl}-G'
10653           else
10654             shared_flag='${wl}-bM:SRE'
10655           fi
10656         fi
10657       fi
10658
10659       # It seems that -bexpall does not export symbols beginning with
10660       # underscore (_), so it is better to generate a list of symbols to export.
10661       always_export_symbols=yes
10662       if test "$aix_use_runtimelinking" = yes; then
10663         # Warning - without using the other runtime loading flags (-brtl),
10664         # -berok will link without error, but may produce a broken library.
10665         allow_undefined_flag='-berok'
10666        # Determine the default libpath from the value encoded in an empty executable.
10667        cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h.  */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h.  */
10673
10674 int
10675 main ()
10676 {
10677
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10689 $as_echo "$ac_try_echo") >&5
10690   (eval "$ac_link") 2>conftest.er1
10691   ac_status=$?
10692   grep -v '^ *+' conftest.er1 >conftest.err
10693   rm -f conftest.er1
10694   cat conftest.err >&5
10695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); } && {
10697          test -z "$ac_c_werror_flag" ||
10698          test ! -s conftest.err
10699        } && test -s conftest$ac_exeext && {
10700          test "$cross_compiling" = yes ||
10701          $as_test_x conftest$ac_exeext
10702        }; then
10703
10704 lt_aix_libpath_sed='
10705     /Import File Strings/,/^$/ {
10706         /^0/ {
10707             s/^0  *\(.*\)$/\1/
10708             p
10709         }
10710     }'
10711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10712 # Check for a 64-bit object if we didn't find anything.
10713 if test -z "$aix_libpath"; then
10714   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10715 fi
10716 else
10717   $as_echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720
10721 fi
10722
10723 rm -rf conftest.dSYM
10724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10725       conftest$ac_exeext conftest.$ac_ext
10726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10727
10728        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10729         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10730        else
10731         if test "$host_cpu" = ia64; then
10732           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10733           allow_undefined_flag="-z nodefs"
10734           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"
10735         else
10736          # Determine the default libpath from the value encoded in an empty executable.
10737          cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743
10744 int
10745 main ()
10746 {
10747
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756   *) ac_try_echo=$ac_try;;
10757 esac
10758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759 $as_echo "$ac_try_echo") >&5
10760   (eval "$ac_link") 2>conftest.er1
10761   ac_status=$?
10762   grep -v '^ *+' conftest.er1 >conftest.err
10763   rm -f conftest.er1
10764   cat conftest.err >&5
10765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); } && {
10767          test -z "$ac_c_werror_flag" ||
10768          test ! -s conftest.err
10769        } && test -s conftest$ac_exeext && {
10770          test "$cross_compiling" = yes ||
10771          $as_test_x conftest$ac_exeext
10772        }; then
10773
10774 lt_aix_libpath_sed='
10775     /Import File Strings/,/^$/ {
10776         /^0/ {
10777             s/^0  *\(.*\)$/\1/
10778             p
10779         }
10780     }'
10781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10782 # Check for a 64-bit object if we didn't find anything.
10783 if test -z "$aix_libpath"; then
10784   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10785 fi
10786 else
10787   $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790
10791 fi
10792
10793 rm -rf conftest.dSYM
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795       conftest$ac_exeext conftest.$ac_ext
10796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10797
10798          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10799           # Warning - without using the other run time loading flags,
10800           # -berok will link without error, but may produce a broken library.
10801           no_undefined_flag=' ${wl}-bernotok'
10802           allow_undefined_flag=' ${wl}-berok'
10803           # Exported symbols can be pulled into shared objects from archives
10804           whole_archive_flag_spec='$convenience'
10805           archive_cmds_need_lc=yes
10806           # This is similar to how AIX traditionally builds its shared libraries.
10807           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'
10808         fi
10809       fi
10810       ;;
10811
10812     amigaos*)
10813       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)'
10814       hardcode_libdir_flag_spec='-L$libdir'
10815       hardcode_minus_L=yes
10816       # see comment about different semantics on the GNU ld section
10817       ld_shlibs=no
10818       ;;
10819
10820     bsdi[45]*)
10821       export_dynamic_flag_spec=-rdynamic
10822       ;;
10823
10824     cygwin* | mingw* | pw32*)
10825       # When not using gcc, we currently assume that we are using
10826       # Microsoft Visual C++.
10827       # hardcode_libdir_flag_spec is actually meaningless, as there is
10828       # no search path for DLLs.
10829       hardcode_libdir_flag_spec=' '
10830       allow_undefined_flag=unsupported
10831       # Tell ltmain to make .lib files, not .a files.
10832       libext=lib
10833       # Tell ltmain to make .dll files, not .so files.
10834       shrext_cmds=".dll"
10835       # FIXME: Setting linknames here is a bad hack.
10836       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10837       # The linker will automatically build a .lib file if we build a DLL.
10838       old_archive_From_new_cmds='true'
10839       # FIXME: Should let the user specify the lib program.
10840       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10841       fix_srcfile_path='`cygpath -w "$srcfile"`'
10842       enable_shared_with_static_runtimes=yes
10843       ;;
10844
10845     darwin* | rhapsody*)
10846       case $host_os in
10847         rhapsody* | darwin1.[012])
10848          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10849          ;;
10850        *) # Darwin 1.3 on
10851          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10852            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10853          else
10854            case ${MACOSX_DEPLOYMENT_TARGET} in
10855              10.[012])
10856                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10857                ;;
10858              10.*)
10859                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10860                ;;
10861            esac
10862          fi
10863          ;;
10864       esac
10865       archive_cmds_need_lc=no
10866       hardcode_direct=no
10867       hardcode_automatic=yes
10868       hardcode_shlibpath_var=unsupported
10869       whole_archive_flag_spec=''
10870       link_all_deplibs=yes
10871     if test "$GCC" = yes ; then
10872         output_verbose_link_cmd='echo'
10873         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10874         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10875         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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10876         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10877     else
10878       case $cc_basename in
10879         xlc*)
10880          output_verbose_link_cmd='echo'
10881          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10882          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10883           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10884          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10885           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
10886           ;;
10887        *)
10888          ld_shlibs=no
10889           ;;
10890       esac
10891     fi
10892       ;;
10893
10894     dgux*)
10895       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896       hardcode_libdir_flag_spec='-L$libdir'
10897       hardcode_shlibpath_var=no
10898       ;;
10899
10900     freebsd1*)
10901       ld_shlibs=no
10902       ;;
10903
10904     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10905     # support.  Future versions do this automatically, but an explicit c++rt0.o
10906     # does not break anything, and helps significantly (at the cost of a little
10907     # extra space).
10908     freebsd2.2*)
10909       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10910       hardcode_libdir_flag_spec='-R$libdir'
10911       hardcode_direct=yes
10912       hardcode_shlibpath_var=no
10913       ;;
10914
10915     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10916     freebsd2*)
10917       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10918       hardcode_direct=yes
10919       hardcode_minus_L=yes
10920       hardcode_shlibpath_var=no
10921       ;;
10922
10923     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10924     freebsd* | dragonfly*)
10925       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10926       hardcode_libdir_flag_spec='-R$libdir'
10927       hardcode_direct=yes
10928       hardcode_shlibpath_var=no
10929       ;;
10930
10931     hpux9*)
10932       if test "$GCC" = yes; then
10933         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'
10934       else
10935         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'
10936       fi
10937       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10938       hardcode_libdir_separator=:
10939       hardcode_direct=yes
10940
10941       # hardcode_minus_L: Not really in the search PATH,
10942       # but as the default location of the library.
10943       hardcode_minus_L=yes
10944       export_dynamic_flag_spec='${wl}-E'
10945       ;;
10946
10947     hpux10*)
10948       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10949         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10950       else
10951         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10952       fi
10953       if test "$with_gnu_ld" = no; then
10954         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10955         hardcode_libdir_separator=:
10956
10957         hardcode_direct=yes
10958         export_dynamic_flag_spec='${wl}-E'
10959
10960         # hardcode_minus_L: Not really in the search PATH,
10961         # but as the default location of the library.
10962         hardcode_minus_L=yes
10963       fi
10964       ;;
10965
10966     hpux11*)
10967       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10968         case $host_cpu in
10969         hppa*64*)
10970           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10971           ;;
10972         ia64*)
10973           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10974           ;;
10975         *)
10976           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10977           ;;
10978         esac
10979       else
10980         case $host_cpu in
10981         hppa*64*)
10982           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10983           ;;
10984         ia64*)
10985           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10986           ;;
10987         *)
10988           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10989           ;;
10990         esac
10991       fi
10992       if test "$with_gnu_ld" = no; then
10993         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10994         hardcode_libdir_separator=:
10995
10996         case $host_cpu in
10997         hppa*64*|ia64*)
10998           hardcode_libdir_flag_spec_ld='+b $libdir'
10999           hardcode_direct=no
11000           hardcode_shlibpath_var=no
11001           ;;
11002         *)
11003           hardcode_direct=yes
11004           export_dynamic_flag_spec='${wl}-E'
11005
11006           # hardcode_minus_L: Not really in the search PATH,
11007           # but as the default location of the library.
11008           hardcode_minus_L=yes
11009           ;;
11010         esac
11011       fi
11012       ;;
11013
11014     irix5* | irix6* | nonstopux*)
11015       if test "$GCC" = yes; then
11016         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11017       else
11018         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11019         hardcode_libdir_flag_spec_ld='-rpath $libdir'
11020       fi
11021       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11022       hardcode_libdir_separator=:
11023       link_all_deplibs=yes
11024       ;;
11025
11026     netbsd*)
11027       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11028         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11029       else
11030         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11031       fi
11032       hardcode_libdir_flag_spec='-R$libdir'
11033       hardcode_direct=yes
11034       hardcode_shlibpath_var=no
11035       ;;
11036
11037     newsos6)
11038       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039       hardcode_direct=yes
11040       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11041       hardcode_libdir_separator=:
11042       hardcode_shlibpath_var=no
11043       ;;
11044
11045     openbsd*)
11046       if test -f /usr/libexec/ld.so; then
11047         hardcode_direct=yes
11048         hardcode_shlibpath_var=no
11049         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11050           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11051           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11052           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11053           export_dynamic_flag_spec='${wl}-E'
11054         else
11055           case $host_os in
11056            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11057              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11058              hardcode_libdir_flag_spec='-R$libdir'
11059              ;;
11060            *)
11061              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11062              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11063              ;;
11064           esac
11065         fi
11066       else
11067         ld_shlibs=no
11068       fi
11069       ;;
11070
11071     os2*)
11072       hardcode_libdir_flag_spec='-L$libdir'
11073       hardcode_minus_L=yes
11074       allow_undefined_flag=unsupported
11075       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'
11076       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11077       ;;
11078
11079     osf3*)
11080       if test "$GCC" = yes; then
11081         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11082         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11083       else
11084         allow_undefined_flag=' -expect_unresolved \*'
11085         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11086       fi
11087       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11088       hardcode_libdir_separator=:
11089       ;;
11090
11091     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11092       if test "$GCC" = yes; then
11093         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11094         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11095         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11096       else
11097         allow_undefined_flag=' -expect_unresolved \*'
11098         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11099         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11100         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11101
11102         # Both c and cxx compiler support -rpath directly
11103         hardcode_libdir_flag_spec='-rpath $libdir'
11104       fi
11105       hardcode_libdir_separator=:
11106       ;;
11107
11108     solaris*)
11109       no_undefined_flag=' -z text'
11110       if test "$GCC" = yes; then
11111         wlarc='${wl}'
11112         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11113         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11114           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11115       else
11116         wlarc=''
11117         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11119         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11120       fi
11121       hardcode_libdir_flag_spec='-R$libdir'
11122       hardcode_shlibpath_var=no
11123       case $host_os in
11124       solaris2.[0-5] | solaris2.[0-5].*) ;;
11125       *)
11126         # The compiler driver will combine and reorder linker options,
11127         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11128         # but is careful enough not to reorder.
11129         # Supported since Solaris 2.6 (maybe 2.5.1?)
11130         if test "$GCC" = yes; then
11131           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11132         else
11133           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11134         fi
11135         ;;
11136       esac
11137       link_all_deplibs=yes
11138       ;;
11139
11140     sunos4*)
11141       if test "x$host_vendor" = xsequent; then
11142         # Use $CC to link under sequent, because it throws in some extra .o
11143         # files that make .init and .fini sections work.
11144         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11145       else
11146         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11147       fi
11148       hardcode_libdir_flag_spec='-L$libdir'
11149       hardcode_direct=yes
11150       hardcode_minus_L=yes
11151       hardcode_shlibpath_var=no
11152       ;;
11153
11154     sysv4)
11155       case $host_vendor in
11156         sni)
11157           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11158           hardcode_direct=yes # is this really true???
11159         ;;
11160         siemens)
11161           ## LD is ld it makes a PLAMLIB
11162           ## CC just makes a GrossModule.
11163           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11164           reload_cmds='$CC -r -o $output$reload_objs'
11165           hardcode_direct=no
11166         ;;
11167         motorola)
11168           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11169           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11170         ;;
11171       esac
11172       runpath_var='LD_RUN_PATH'
11173       hardcode_shlibpath_var=no
11174       ;;
11175
11176     sysv4.3*)
11177       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178       hardcode_shlibpath_var=no
11179       export_dynamic_flag_spec='-Bexport'
11180       ;;
11181
11182     sysv4*MP*)
11183       if test -d /usr/nec; then
11184         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11185         hardcode_shlibpath_var=no
11186         runpath_var=LD_RUN_PATH
11187         hardcode_runpath_var=yes
11188         ld_shlibs=yes
11189       fi
11190       ;;
11191
11192     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11193       no_undefined_flag='${wl}-z,text'
11194       archive_cmds_need_lc=no
11195       hardcode_shlibpath_var=no
11196       runpath_var='LD_RUN_PATH'
11197
11198       if test "$GCC" = yes; then
11199         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11200         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11201       else
11202         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11203         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11204       fi
11205       ;;
11206
11207     sysv5* | sco3.2v5* | sco5v6*)
11208       # Note: We can NOT use -z defs as we might desire, because we do not
11209       # link with -lc, and that would cause any symbols used from libc to
11210       # always be unresolved, which means just about no library would
11211       # ever link correctly.  If we're not using GNU ld we use -z text
11212       # though, which does catch some bad symbols but isn't as heavy-handed
11213       # as -z defs.
11214       no_undefined_flag='${wl}-z,text'
11215       allow_undefined_flag='${wl}-z,nodefs'
11216       archive_cmds_need_lc=no
11217       hardcode_shlibpath_var=no
11218       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11219       hardcode_libdir_separator=':'
11220       link_all_deplibs=yes
11221       export_dynamic_flag_spec='${wl}-Bexport'
11222       runpath_var='LD_RUN_PATH'
11223
11224       if test "$GCC" = yes; then
11225         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11226         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11227       else
11228         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11229         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11230       fi
11231       ;;
11232
11233     uts4*)
11234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11235       hardcode_libdir_flag_spec='-L$libdir'
11236       hardcode_shlibpath_var=no
11237       ;;
11238
11239     *)
11240       ld_shlibs=no
11241       ;;
11242     esac
11243   fi
11244
11245 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11246 $as_echo "$ld_shlibs" >&6; }
11247 test "$ld_shlibs" = no && can_build_shared=no
11248
11249 #
11250 # Do we need to explicitly link libc?
11251 #
11252 case "x$archive_cmds_need_lc" in
11253 x|xyes)
11254   # Assume -lc should be added
11255   archive_cmds_need_lc=yes
11256
11257   if test "$enable_shared" = yes && test "$GCC" = yes; then
11258     case $archive_cmds in
11259     *'~'*)
11260       # FIXME: we may have to deal with multi-command sequences.
11261       ;;
11262     '$CC '*)
11263       # Test whether the compiler implicitly links with -lc since on some
11264       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11265       # to ld, don't add -lc before -lgcc.
11266       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11268       $rm conftest*
11269       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11270
11271       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272   (eval $ac_compile) 2>&5
11273   ac_status=$?
11274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } 2>conftest.err; then
11276         soname=conftest
11277         lib=conftest
11278         libobjs=conftest.$ac_objext
11279         deplibs=
11280         wl=$lt_prog_compiler_wl
11281         pic_flag=$lt_prog_compiler_pic
11282         compiler_flags=-v
11283         linker_flags=-v
11284         verstring=
11285         output_objdir=.
11286         libname=conftest
11287         lt_save_allow_undefined_flag=$allow_undefined_flag
11288         allow_undefined_flag=
11289         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11290   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11291   ac_status=$?
11292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }
11294         then
11295           archive_cmds_need_lc=no
11296         else
11297           archive_cmds_need_lc=yes
11298         fi
11299         allow_undefined_flag=$lt_save_allow_undefined_flag
11300       else
11301         cat conftest.err 1>&5
11302       fi
11303       $rm conftest*
11304       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11305 $as_echo "$archive_cmds_need_lc" >&6; }
11306       ;;
11307     esac
11308   fi
11309   ;;
11310 esac
11311
11312 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11313 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11314 library_names_spec=
11315 libname_spec='lib$name'
11316 soname_spec=
11317 shrext_cmds=".so"
11318 postinstall_cmds=
11319 postuninstall_cmds=
11320 finish_cmds=
11321 finish_eval=
11322 shlibpath_var=
11323 shlibpath_overrides_runpath=unknown
11324 version_type=none
11325 dynamic_linker="$host_os ld.so"
11326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11327
11328 if test "$GCC" = yes; then
11329   case $host_os in
11330     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11331     *) lt_awk_arg="/^libraries:/" ;;
11332   esac
11333   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11334   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11335     # if the path contains ";" then we assume it to be the separator
11336     # otherwise default to the standard path separator (i.e. ":") - it is
11337     # assumed that no part of a normal pathname contains ";" but that should
11338     # okay in the real world where ";" in dirpaths is itself problematic.
11339     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11340   else
11341     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11342   fi
11343   # Ok, now we have the path, separated by spaces, we can step through it
11344   # and add multilib dir if necessary.
11345   lt_tmp_lt_search_path_spec=
11346   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11347   for lt_sys_path in $lt_search_path_spec; do
11348     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11349       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11350     else
11351       test -d "$lt_sys_path" && \
11352         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11353     fi
11354   done
11355   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11356 BEGIN {RS=" "; FS="/|\n";} {
11357   lt_foo="";
11358   lt_count=0;
11359   for (lt_i = NF; lt_i > 0; lt_i--) {
11360     if ($lt_i != "" && $lt_i != ".") {
11361       if ($lt_i == "..") {
11362         lt_count++;
11363       } else {
11364         if (lt_count == 0) {
11365           lt_foo="/" $lt_i lt_foo;
11366         } else {
11367           lt_count--;
11368         }
11369       }
11370     }
11371   }
11372   if (lt_foo != "") { lt_freq[lt_foo]++; }
11373   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11374 }'`
11375   sys_lib_search_path_spec=`echo $lt_search_path_spec`
11376 else
11377   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11378 fi
11379 need_lib_prefix=unknown
11380 hardcode_into_libs=no
11381
11382 # when you set need_version to no, make sure it does not cause -set_version
11383 # flags to be left without arguments
11384 need_version=unknown
11385
11386 case $host_os in
11387 aix3*)
11388   version_type=linux
11389   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11390   shlibpath_var=LIBPATH
11391
11392   # AIX 3 has no versioning support, so we append a major version to the name.
11393   soname_spec='${libname}${release}${shared_ext}$major'
11394   ;;
11395
11396 aix[4-9]*)
11397   version_type=linux
11398   need_lib_prefix=no
11399   need_version=no
11400   hardcode_into_libs=yes
11401   if test "$host_cpu" = ia64; then
11402     # AIX 5 supports IA64
11403     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11404     shlibpath_var=LD_LIBRARY_PATH
11405   else
11406     # With GCC up to 2.95.x, collect2 would create an import file
11407     # for dependence libraries.  The import file would start with
11408     # the line `#! .'.  This would cause the generated library to
11409     # depend on `.', always an invalid library.  This was fixed in
11410     # development snapshots of GCC prior to 3.0.
11411     case $host_os in
11412       aix4 | aix4.[01] | aix4.[01].*)
11413       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11414            echo ' yes '
11415            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11416         :
11417       else
11418         can_build_shared=no
11419       fi
11420       ;;
11421     esac
11422     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11423     # soname into executable. Probably we can add versioning support to
11424     # collect2, so additional links can be useful in future.
11425     if test "$aix_use_runtimelinking" = yes; then
11426       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11427       # instead of lib<name>.a to let people know that these are not
11428       # typical AIX shared libraries.
11429       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430     else
11431       # We preserve .a as extension for shared libraries through AIX4.2
11432       # and later when we are not doing run time linking.
11433       library_names_spec='${libname}${release}.a $libname.a'
11434       soname_spec='${libname}${release}${shared_ext}$major'
11435     fi
11436     shlibpath_var=LIBPATH
11437   fi
11438   ;;
11439
11440 amigaos*)
11441   library_names_spec='$libname.ixlibrary $libname.a'
11442   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11443   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'
11444   ;;
11445
11446 beos*)
11447   library_names_spec='${libname}${shared_ext}'
11448   dynamic_linker="$host_os ld.so"
11449   shlibpath_var=LIBRARY_PATH
11450   ;;
11451
11452 bsdi[45]*)
11453   version_type=linux
11454   need_version=no
11455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456   soname_spec='${libname}${release}${shared_ext}$major'
11457   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11458   shlibpath_var=LD_LIBRARY_PATH
11459   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11460   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11461   # the default ld.so.conf also contains /usr/contrib/lib and
11462   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11463   # libtool to hard-code these into programs
11464   ;;
11465
11466 cygwin* | mingw* | pw32*)
11467   version_type=windows
11468   shrext_cmds=".dll"
11469   need_version=no
11470   need_lib_prefix=no
11471
11472   case $GCC,$host_os in
11473   yes,cygwin* | yes,mingw* | yes,pw32*)
11474     library_names_spec='$libname.dll.a'
11475     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11476     postinstall_cmds='base_file=`basename \${file}`~
11477       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11478       dldir=$destdir/`dirname \$dlpath`~
11479       test -d \$dldir || mkdir -p \$dldir~
11480       $install_prog $dir/$dlname \$dldir/$dlname~
11481       chmod a+x \$dldir/$dlname'
11482     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11483       dlpath=$dir/\$dldll~
11484        $rm \$dlpath'
11485     shlibpath_overrides_runpath=yes
11486
11487     case $host_os in
11488     cygwin*)
11489       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11490       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11492       ;;
11493     mingw*)
11494       # MinGW DLLs use traditional 'lib' prefix
11495       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11496       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11497       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11498         # It is most probably a Windows format PATH printed by
11499         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11500         # path with ; separators, and with drive letters. We can handle the
11501         # drive letters (cygwin fileutils understands them), so leave them,
11502         # especially as we might pass files found there to a mingw objdump,
11503         # which wouldn't understand a cygwinified path. Ahh.
11504         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11505       else
11506         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11507       fi
11508       ;;
11509     pw32*)
11510       # pw32 DLLs use 'pw' prefix rather than 'lib'
11511       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11512       ;;
11513     esac
11514     ;;
11515
11516   *)
11517     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11518     ;;
11519   esac
11520   dynamic_linker='Win32 ld.exe'
11521   # FIXME: first we should search . and the directory the executable is in
11522   shlibpath_var=PATH
11523   ;;
11524
11525 darwin* | rhapsody*)
11526   dynamic_linker="$host_os dyld"
11527   version_type=darwin
11528   need_lib_prefix=no
11529   need_version=no
11530   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11531   soname_spec='${libname}${release}${major}$shared_ext'
11532   shlibpath_overrides_runpath=yes
11533   shlibpath_var=DYLD_LIBRARY_PATH
11534   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11535
11536   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11537   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11538   ;;
11539
11540 dgux*)
11541   version_type=linux
11542   need_lib_prefix=no
11543   need_version=no
11544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11545   soname_spec='${libname}${release}${shared_ext}$major'
11546   shlibpath_var=LD_LIBRARY_PATH
11547   ;;
11548
11549 freebsd1*)
11550   dynamic_linker=no
11551   ;;
11552
11553 freebsd* | dragonfly*)
11554   # DragonFly does not have aout.  When/if they implement a new
11555   # versioning mechanism, adjust this.
11556   if test -x /usr/bin/objformat; then
11557     objformat=`/usr/bin/objformat`
11558   else
11559     case $host_os in
11560     freebsd[123]*) objformat=aout ;;
11561     *) objformat=elf ;;
11562     esac
11563   fi
11564   version_type=freebsd-$objformat
11565   case $version_type in
11566     freebsd-elf*)
11567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568       need_version=no
11569       need_lib_prefix=no
11570       ;;
11571     freebsd-*)
11572       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11573       need_version=yes
11574       ;;
11575   esac
11576   shlibpath_var=LD_LIBRARY_PATH
11577   case $host_os in
11578   freebsd2*)
11579     shlibpath_overrides_runpath=yes
11580     ;;
11581   freebsd3.[01]* | freebsdelf3.[01]*)
11582     shlibpath_overrides_runpath=yes
11583     hardcode_into_libs=yes
11584     ;;
11585   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11586   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11587     shlibpath_overrides_runpath=no
11588     hardcode_into_libs=yes
11589     ;;
11590   *) # from 4.6 on, and DragonFly
11591     shlibpath_overrides_runpath=yes
11592     hardcode_into_libs=yes
11593     ;;
11594   esac
11595   ;;
11596
11597 gnu*)
11598   version_type=linux
11599   need_lib_prefix=no
11600   need_version=no
11601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11602   soname_spec='${libname}${release}${shared_ext}$major'
11603   shlibpath_var=LD_LIBRARY_PATH
11604   hardcode_into_libs=yes
11605   ;;
11606
11607 hpux9* | hpux10* | hpux11*)
11608   # Give a soname corresponding to the major version so that dld.sl refuses to
11609   # link against other versions.
11610   version_type=sunos
11611   need_lib_prefix=no
11612   need_version=no
11613   case $host_cpu in
11614   ia64*)
11615     shrext_cmds='.so'
11616     hardcode_into_libs=yes
11617     dynamic_linker="$host_os dld.so"
11618     shlibpath_var=LD_LIBRARY_PATH
11619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621     soname_spec='${libname}${release}${shared_ext}$major'
11622     if test "X$HPUX_IA64_MODE" = X32; then
11623       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11624     else
11625       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11626     fi
11627     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11628     ;;
11629    hppa*64*)
11630      shrext_cmds='.sl'
11631      hardcode_into_libs=yes
11632      dynamic_linker="$host_os dld.sl"
11633      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11634      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11635      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636      soname_spec='${libname}${release}${shared_ext}$major'
11637      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11638      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11639      ;;
11640    *)
11641     shrext_cmds='.sl'
11642     dynamic_linker="$host_os dld.sl"
11643     shlibpath_var=SHLIB_PATH
11644     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646     soname_spec='${libname}${release}${shared_ext}$major'
11647     ;;
11648   esac
11649   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11650   postinstall_cmds='chmod 555 $lib'
11651   ;;
11652
11653 interix[3-9]*)
11654   version_type=linux
11655   need_lib_prefix=no
11656   need_version=no
11657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658   soname_spec='${libname}${release}${shared_ext}$major'
11659   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11660   shlibpath_var=LD_LIBRARY_PATH
11661   shlibpath_overrides_runpath=no
11662   hardcode_into_libs=yes
11663   ;;
11664
11665 irix5* | irix6* | nonstopux*)
11666   case $host_os in
11667     nonstopux*) version_type=nonstopux ;;
11668     *)
11669         if test "$lt_cv_prog_gnu_ld" = yes; then
11670                 version_type=linux
11671         else
11672                 version_type=irix
11673         fi ;;
11674   esac
11675   need_lib_prefix=no
11676   need_version=no
11677   soname_spec='${libname}${release}${shared_ext}$major'
11678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11679   case $host_os in
11680   irix5* | nonstopux*)
11681     libsuff= shlibsuff=
11682     ;;
11683   *)
11684     case $LD in # libtool.m4 will add one of these switches to LD
11685     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11686       libsuff= shlibsuff= libmagic=32-bit;;
11687     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11688       libsuff=32 shlibsuff=N32 libmagic=N32;;
11689     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11690       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11691     *) libsuff= shlibsuff= libmagic=never-match;;
11692     esac
11693     ;;
11694   esac
11695   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11696   shlibpath_overrides_runpath=no
11697   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11698   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11699   hardcode_into_libs=yes
11700   ;;
11701
11702 # No shared lib support for Linux oldld, aout, or coff.
11703 linux*oldld* | linux*aout* | linux*coff*)
11704   dynamic_linker=no
11705   ;;
11706
11707 # This must be Linux ELF.
11708 linux* | k*bsd*-gnu)
11709   version_type=linux
11710   need_lib_prefix=no
11711   need_version=no
11712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713   soname_spec='${libname}${release}${shared_ext}$major'
11714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11715   shlibpath_var=LD_LIBRARY_PATH
11716   shlibpath_overrides_runpath=no
11717   # This implies no fast_install, which is unacceptable.
11718   # Some rework will be needed to allow for fast_install
11719   # before this can be enabled.
11720   hardcode_into_libs=yes
11721   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11722   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11723
11724   # Append ld.so.conf contents to the search path
11725   if test -f /etc/ld.so.conf; then
11726     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/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11727     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11728   fi
11729
11730   # We used to test for /lib/ld.so.1 and disable shared libraries on
11731   # powerpc, because MkLinux only supported shared libraries with the
11732   # GNU dynamic linker.  Since this was broken with cross compilers,
11733   # most powerpc-linux boxes support dynamic linking these days and
11734   # people can always --disable-shared, the test was removed, and we
11735   # assume the GNU/Linux dynamic linker is in use.
11736   dynamic_linker='GNU/Linux ld.so'
11737   ;;
11738
11739 netbsd*)
11740   version_type=sunos
11741   need_lib_prefix=no
11742   need_version=no
11743   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11745     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11746     dynamic_linker='NetBSD (a.out) ld.so'
11747   else
11748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11749     soname_spec='${libname}${release}${shared_ext}$major'
11750     dynamic_linker='NetBSD ld.elf_so'
11751   fi
11752   shlibpath_var=LD_LIBRARY_PATH
11753   shlibpath_overrides_runpath=yes
11754   hardcode_into_libs=yes
11755   ;;
11756
11757 newsos6)
11758   version_type=linux
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   shlibpath_overrides_runpath=yes
11762   ;;
11763
11764 nto-qnx*)
11765   version_type=linux
11766   need_lib_prefix=no
11767   need_version=no
11768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769   soname_spec='${libname}${release}${shared_ext}$major'
11770   shlibpath_var=LD_LIBRARY_PATH
11771   shlibpath_overrides_runpath=yes
11772   ;;
11773
11774 openbsd*)
11775   version_type=sunos
11776   sys_lib_dlsearch_path_spec="/usr/lib"
11777   need_lib_prefix=no
11778   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11779   case $host_os in
11780     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11781     *)                         need_version=no  ;;
11782   esac
11783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11784   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11785   shlibpath_var=LD_LIBRARY_PATH
11786   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11787     case $host_os in
11788       openbsd2.[89] | openbsd2.[89].*)
11789         shlibpath_overrides_runpath=no
11790         ;;
11791       *)
11792         shlibpath_overrides_runpath=yes
11793         ;;
11794       esac
11795   else
11796     shlibpath_overrides_runpath=yes
11797   fi
11798   ;;
11799
11800 os2*)
11801   libname_spec='$name'
11802   shrext_cmds=".dll"
11803   need_lib_prefix=no
11804   library_names_spec='$libname${shared_ext} $libname.a'
11805   dynamic_linker='OS/2 ld.exe'
11806   shlibpath_var=LIBPATH
11807   ;;
11808
11809 osf3* | osf4* | osf5*)
11810   version_type=osf
11811   need_lib_prefix=no
11812   need_version=no
11813   soname_spec='${libname}${release}${shared_ext}$major'
11814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815   shlibpath_var=LD_LIBRARY_PATH
11816   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11817   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11818   ;;
11819
11820 rdos*)
11821   dynamic_linker=no
11822   ;;
11823
11824 solaris*)
11825   version_type=linux
11826   need_lib_prefix=no
11827   need_version=no
11828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829   soname_spec='${libname}${release}${shared_ext}$major'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=yes
11832   hardcode_into_libs=yes
11833   # ldd complains unless libraries are executable
11834   postinstall_cmds='chmod +x $lib'
11835   ;;
11836
11837 sunos4*)
11838   version_type=sunos
11839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11840   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11841   shlibpath_var=LD_LIBRARY_PATH
11842   shlibpath_overrides_runpath=yes
11843   if test "$with_gnu_ld" = yes; then
11844     need_lib_prefix=no
11845   fi
11846   need_version=yes
11847   ;;
11848
11849 sysv4 | sysv4.3*)
11850   version_type=linux
11851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852   soname_spec='${libname}${release}${shared_ext}$major'
11853   shlibpath_var=LD_LIBRARY_PATH
11854   case $host_vendor in
11855     sni)
11856       shlibpath_overrides_runpath=no
11857       need_lib_prefix=no
11858       export_dynamic_flag_spec='${wl}-Blargedynsym'
11859       runpath_var=LD_RUN_PATH
11860       ;;
11861     siemens)
11862       need_lib_prefix=no
11863       ;;
11864     motorola)
11865       need_lib_prefix=no
11866       need_version=no
11867       shlibpath_overrides_runpath=no
11868       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11869       ;;
11870   esac
11871   ;;
11872
11873 sysv4*MP*)
11874   if test -d /usr/nec ;then
11875     version_type=linux
11876     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11877     soname_spec='$libname${shared_ext}.$major'
11878     shlibpath_var=LD_LIBRARY_PATH
11879   fi
11880   ;;
11881
11882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11883   version_type=freebsd-elf
11884   need_lib_prefix=no
11885   need_version=no
11886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11887   soname_spec='${libname}${release}${shared_ext}$major'
11888   shlibpath_var=LD_LIBRARY_PATH
11889   hardcode_into_libs=yes
11890   if test "$with_gnu_ld" = yes; then
11891     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11892     shlibpath_overrides_runpath=no
11893   else
11894     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11895     shlibpath_overrides_runpath=yes
11896     case $host_os in
11897       sco3.2v5*)
11898         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11899         ;;
11900     esac
11901   fi
11902   sys_lib_dlsearch_path_spec='/usr/lib'
11903   ;;
11904
11905 uts4*)
11906   version_type=linux
11907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908   soname_spec='${libname}${release}${shared_ext}$major'
11909   shlibpath_var=LD_LIBRARY_PATH
11910   ;;
11911
11912 *)
11913   dynamic_linker=no
11914   ;;
11915 esac
11916 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11917 $as_echo "$dynamic_linker" >&6; }
11918 test "$dynamic_linker" = no && can_build_shared=no
11919
11920 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11921   $as_echo_n "(cached) " >&6
11922 else
11923   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11924 fi
11925
11926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11927 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11928   $as_echo_n "(cached) " >&6
11929 else
11930   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11931 fi
11932
11933 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11934
11935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11936 if test "$GCC" = yes; then
11937   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11938 fi
11939
11940 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11942 hardcode_action=
11943 if test -n "$hardcode_libdir_flag_spec" || \
11944    test -n "$runpath_var" || \
11945    test "X$hardcode_automatic" = "Xyes" ; then
11946
11947   # We can hardcode non-existant directories.
11948   if test "$hardcode_direct" != no &&
11949      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11950      # have to relink, otherwise we might link with an installed library
11951      # when we should be linking with a yet-to-be-installed one
11952      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11953      test "$hardcode_minus_L" != no; then
11954     # Linking always hardcodes the temporary library directory.
11955     hardcode_action=relink
11956   else
11957     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11958     hardcode_action=immediate
11959   fi
11960 else
11961   # We cannot hardcode anything, or else we can only hardcode existing
11962   # directories.
11963   hardcode_action=unsupported
11964 fi
11965 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11966 $as_echo "$hardcode_action" >&6; }
11967
11968 if test "$hardcode_action" = relink; then
11969   # Fast installation is not supported
11970   enable_fast_install=no
11971 elif test "$shlibpath_overrides_runpath" = yes ||
11972      test "$enable_shared" = no; then
11973   # Fast installation is not necessary
11974   enable_fast_install=needless
11975 fi
11976
11977 striplib=
11978 old_striplib=
11979 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11980 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11981 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11982   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11983   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11984   { $as_echo "$as_me:$LINENO: result: yes" >&5
11985 $as_echo "yes" >&6; }
11986 else
11987 # FIXME - insert some real tests, host_os isn't really good enough
11988   case $host_os in
11989    darwin*)
11990        if test -n "$STRIP" ; then
11991          striplib="$STRIP -x"
11992          old_striplib="$STRIP -S"
11993          { $as_echo "$as_me:$LINENO: result: yes" >&5
11994 $as_echo "yes" >&6; }
11995        else
11996   { $as_echo "$as_me:$LINENO: result: no" >&5
11997 $as_echo "no" >&6; }
11998 fi
11999        ;;
12000    *)
12001   { $as_echo "$as_me:$LINENO: result: no" >&5
12002 $as_echo "no" >&6; }
12003     ;;
12004   esac
12005 fi
12006
12007 if test "x$enable_dlopen" != xyes; then
12008   enable_dlopen=unknown
12009   enable_dlopen_self=unknown
12010   enable_dlopen_self_static=unknown
12011 else
12012   lt_cv_dlopen=no
12013   lt_cv_dlopen_libs=
12014
12015   case $host_os in
12016   beos*)
12017     lt_cv_dlopen="load_add_on"
12018     lt_cv_dlopen_libs=
12019     lt_cv_dlopen_self=yes
12020     ;;
12021
12022   mingw* | pw32*)
12023     lt_cv_dlopen="LoadLibrary"
12024     lt_cv_dlopen_libs=
12025    ;;
12026
12027   cygwin*)
12028     lt_cv_dlopen="dlopen"
12029     lt_cv_dlopen_libs=
12030    ;;
12031
12032   darwin*)
12033   # if libdl is installed we need to link against it
12034     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12035 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12037   $as_echo_n "(cached) " >&6
12038 else
12039   ac_check_lib_save_LIBS=$LIBS
12040 LIBS="-ldl  $LIBS"
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h.  */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h.  */
12047
12048 /* Override any GCC internal prototype to avoid an error.
12049    Use char because int might match the return type of a GCC
12050    builtin and then its argument prototype would still apply.  */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char dlopen ();
12055 int
12056 main ()
12057 {
12058 return dlopen ();
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (ac_try="$ac_link"
12065 case "(($ac_try" in
12066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067   *) ac_try_echo=$ac_try;;
12068 esac
12069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12070 $as_echo "$ac_try_echo") >&5
12071   (eval "$ac_link") 2>conftest.er1
12072   ac_status=$?
12073   grep -v '^ *+' conftest.er1 >conftest.err
12074   rm -f conftest.er1
12075   cat conftest.err >&5
12076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); } && {
12078          test -z "$ac_c_werror_flag" ||
12079          test ! -s conftest.err
12080        } && test -s conftest$ac_exeext && {
12081          test "$cross_compiling" = yes ||
12082          $as_test_x conftest$ac_exeext
12083        }; then
12084   ac_cv_lib_dl_dlopen=yes
12085 else
12086   $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089         ac_cv_lib_dl_dlopen=no
12090 fi
12091
12092 rm -rf conftest.dSYM
12093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12094       conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12096 fi
12097 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12099 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12100   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12101 else
12102
12103     lt_cv_dlopen="dyld"
12104     lt_cv_dlopen_libs=
12105     lt_cv_dlopen_self=yes
12106
12107 fi
12108
12109    ;;
12110
12111   *)
12112     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12113 $as_echo_n "checking for shl_load... " >&6; }
12114 if test "${ac_cv_func_shl_load+set}" = set; then
12115   $as_echo_n "(cached) " >&6
12116 else
12117   cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h.  */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h.  */
12123 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12125 #define shl_load innocuous_shl_load
12126
12127 /* System header to define __stub macros and hopefully few prototypes,
12128     which can conflict with char shl_load (); below.
12129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130     <limits.h> exists even on freestanding compilers.  */
12131
12132 #ifdef __STDC__
12133 # include <limits.h>
12134 #else
12135 # include <assert.h>
12136 #endif
12137
12138 #undef shl_load
12139
12140 /* Override any GCC internal prototype to avoid an error.
12141    Use char because int might match the return type of a GCC
12142    builtin and then its argument prototype would still apply.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char shl_load ();
12147 /* The GNU C library defines this for functions which it implements
12148     to always fail with ENOSYS.  Some functions are actually named
12149     something starting with __ and the normal name is an alias.  */
12150 #if defined __stub_shl_load || defined __stub___shl_load
12151 choke me
12152 #endif
12153
12154 int
12155 main ()
12156 {
12157 return shl_load ();
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12169 $as_echo "$ac_try_echo") >&5
12170   (eval "$ac_link") 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } && {
12177          test -z "$ac_c_werror_flag" ||
12178          test ! -s conftest.err
12179        } && test -s conftest$ac_exeext && {
12180          test "$cross_compiling" = yes ||
12181          $as_test_x conftest$ac_exeext
12182        }; then
12183   ac_cv_func_shl_load=yes
12184 else
12185   $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         ac_cv_func_shl_load=no
12189 fi
12190
12191 rm -rf conftest.dSYM
12192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12193       conftest$ac_exeext conftest.$ac_ext
12194 fi
12195 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12196 $as_echo "$ac_cv_func_shl_load" >&6; }
12197 if test "x$ac_cv_func_shl_load" = x""yes; then
12198   lt_cv_dlopen="shl_load"
12199 else
12200   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12201 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12202 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12203   $as_echo_n "(cached) " >&6
12204 else
12205   ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-ldld  $LIBS"
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213
12214 /* Override any GCC internal prototype to avoid an error.
12215    Use char because int might match the return type of a GCC
12216    builtin and then its argument prototype would still apply.  */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char shl_load ();
12221 int
12222 main ()
12223 {
12224 return shl_load ();
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233   *) ac_try_echo=$ac_try;;
12234 esac
12235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12236 $as_echo "$ac_try_echo") >&5
12237   (eval "$ac_link") 2>conftest.er1
12238   ac_status=$?
12239   grep -v '^ *+' conftest.er1 >conftest.err
12240   rm -f conftest.er1
12241   cat conftest.err >&5
12242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); } && {
12244          test -z "$ac_c_werror_flag" ||
12245          test ! -s conftest.err
12246        } && test -s conftest$ac_exeext && {
12247          test "$cross_compiling" = yes ||
12248          $as_test_x conftest$ac_exeext
12249        }; then
12250   ac_cv_lib_dld_shl_load=yes
12251 else
12252   $as_echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12254
12255         ac_cv_lib_dld_shl_load=no
12256 fi
12257
12258 rm -rf conftest.dSYM
12259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12260       conftest$ac_exeext conftest.$ac_ext
12261 LIBS=$ac_check_lib_save_LIBS
12262 fi
12263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12264 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12265 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12266   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12267 else
12268   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12269 $as_echo_n "checking for dlopen... " >&6; }
12270 if test "${ac_cv_func_dlopen+set}" = set; then
12271   $as_echo_n "(cached) " >&6
12272 else
12273   cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h.  */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h.  */
12279 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12281 #define dlopen innocuous_dlopen
12282
12283 /* System header to define __stub macros and hopefully few prototypes,
12284     which can conflict with char dlopen (); below.
12285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286     <limits.h> exists even on freestanding compilers.  */
12287
12288 #ifdef __STDC__
12289 # include <limits.h>
12290 #else
12291 # include <assert.h>
12292 #endif
12293
12294 #undef dlopen
12295
12296 /* Override any GCC internal prototype to avoid an error.
12297    Use char because int might match the return type of a GCC
12298    builtin and then its argument prototype would still apply.  */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char dlopen ();
12303 /* The GNU C library defines this for functions which it implements
12304     to always fail with ENOSYS.  Some functions are actually named
12305     something starting with __ and the normal name is an alias.  */
12306 #if defined __stub_dlopen || defined __stub___dlopen
12307 choke me
12308 #endif
12309
12310 int
12311 main ()
12312 {
12313 return dlopen ();
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (ac_try="$ac_link"
12320 case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12325 $as_echo "$ac_try_echo") >&5
12326   (eval "$ac_link") 2>conftest.er1
12327   ac_status=$?
12328   grep -v '^ *+' conftest.er1 >conftest.err
12329   rm -f conftest.er1
12330   cat conftest.err >&5
12331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); } && {
12333          test -z "$ac_c_werror_flag" ||
12334          test ! -s conftest.err
12335        } && test -s conftest$ac_exeext && {
12336          test "$cross_compiling" = yes ||
12337          $as_test_x conftest$ac_exeext
12338        }; then
12339   ac_cv_func_dlopen=yes
12340 else
12341   $as_echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344         ac_cv_func_dlopen=no
12345 fi
12346
12347 rm -rf conftest.dSYM
12348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12349       conftest$ac_exeext conftest.$ac_ext
12350 fi
12351 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12352 $as_echo "$ac_cv_func_dlopen" >&6; }
12353 if test "x$ac_cv_func_dlopen" = x""yes; then
12354   lt_cv_dlopen="dlopen"
12355 else
12356   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12357 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12358 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12359   $as_echo_n "(cached) " >&6
12360 else
12361   ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-ldl  $LIBS"
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369
12370 /* Override any GCC internal prototype to avoid an error.
12371    Use char because int might match the return type of a GCC
12372    builtin and then its argument prototype would still apply.  */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 char dlopen ();
12377 int
12378 main ()
12379 {
12380 return dlopen ();
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389   *) ac_try_echo=$ac_try;;
12390 esac
12391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12392 $as_echo "$ac_try_echo") >&5
12393   (eval "$ac_link") 2>conftest.er1
12394   ac_status=$?
12395   grep -v '^ *+' conftest.er1 >conftest.err
12396   rm -f conftest.er1
12397   cat conftest.err >&5
12398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } && {
12400          test -z "$ac_c_werror_flag" ||
12401          test ! -s conftest.err
12402        } && test -s conftest$ac_exeext && {
12403          test "$cross_compiling" = yes ||
12404          $as_test_x conftest$ac_exeext
12405        }; then
12406   ac_cv_lib_dl_dlopen=yes
12407 else
12408   $as_echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411         ac_cv_lib_dl_dlopen=no
12412 fi
12413
12414 rm -rf conftest.dSYM
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416       conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12418 fi
12419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12421 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12422   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12423 else
12424   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12425 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12426 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12427   $as_echo_n "(cached) " >&6
12428 else
12429   ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-lsvld  $LIBS"
12431 cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437
12438 /* Override any GCC internal prototype to avoid an error.
12439    Use char because int might match the return type of a GCC
12440    builtin and then its argument prototype would still apply.  */
12441 #ifdef __cplusplus
12442 extern "C"
12443 #endif
12444 char dlopen ();
12445 int
12446 main ()
12447 {
12448 return dlopen ();
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (ac_try="$ac_link"
12455 case "(($ac_try" in
12456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457   *) ac_try_echo=$ac_try;;
12458 esac
12459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12460 $as_echo "$ac_try_echo") >&5
12461   (eval "$ac_link") 2>conftest.er1
12462   ac_status=$?
12463   grep -v '^ *+' conftest.er1 >conftest.err
12464   rm -f conftest.er1
12465   cat conftest.err >&5
12466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } && {
12468          test -z "$ac_c_werror_flag" ||
12469          test ! -s conftest.err
12470        } && test -s conftest$ac_exeext && {
12471          test "$cross_compiling" = yes ||
12472          $as_test_x conftest$ac_exeext
12473        }; then
12474   ac_cv_lib_svld_dlopen=yes
12475 else
12476   $as_echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479         ac_cv_lib_svld_dlopen=no
12480 fi
12481
12482 rm -rf conftest.dSYM
12483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12484       conftest$ac_exeext conftest.$ac_ext
12485 LIBS=$ac_check_lib_save_LIBS
12486 fi
12487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12488 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12489 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12490   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12491 else
12492   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12493 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12494 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12495   $as_echo_n "(cached) " >&6
12496 else
12497   ac_check_lib_save_LIBS=$LIBS
12498 LIBS="-ldld  $LIBS"
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505
12506 /* Override any GCC internal prototype to avoid an error.
12507    Use char because int might match the return type of a GCC
12508    builtin and then its argument prototype would still apply.  */
12509 #ifdef __cplusplus
12510 extern "C"
12511 #endif
12512 char dld_link ();
12513 int
12514 main ()
12515 {
12516 return dld_link ();
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (ac_try="$ac_link"
12523 case "(($ac_try" in
12524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525   *) ac_try_echo=$ac_try;;
12526 esac
12527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12528 $as_echo "$ac_try_echo") >&5
12529   (eval "$ac_link") 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } && {
12536          test -z "$ac_c_werror_flag" ||
12537          test ! -s conftest.err
12538        } && test -s conftest$ac_exeext && {
12539          test "$cross_compiling" = yes ||
12540          $as_test_x conftest$ac_exeext
12541        }; then
12542   ac_cv_lib_dld_dld_link=yes
12543 else
12544   $as_echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12546
12547         ac_cv_lib_dld_dld_link=no
12548 fi
12549
12550 rm -rf conftest.dSYM
12551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12552       conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12554 fi
12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12556 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12557 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12558   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12559 fi
12560
12561
12562 fi
12563
12564
12565 fi
12566
12567
12568 fi
12569
12570
12571 fi
12572
12573
12574 fi
12575
12576     ;;
12577   esac
12578
12579   if test "x$lt_cv_dlopen" != xno; then
12580     enable_dlopen=yes
12581   else
12582     enable_dlopen=no
12583   fi
12584
12585   case $lt_cv_dlopen in
12586   dlopen)
12587     save_CPPFLAGS="$CPPFLAGS"
12588     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12589
12590     save_LDFLAGS="$LDFLAGS"
12591     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12592
12593     save_LIBS="$LIBS"
12594     LIBS="$lt_cv_dlopen_libs $LIBS"
12595
12596     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12597 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12598 if test "${lt_cv_dlopen_self+set}" = set; then
12599   $as_echo_n "(cached) " >&6
12600 else
12601           if test "$cross_compiling" = yes; then :
12602   lt_cv_dlopen_self=cross
12603 else
12604   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12605   lt_status=$lt_dlunknown
12606   cat > conftest.$ac_ext <<EOF
12607 #line 12607 "configure"
12608 #include "confdefs.h"
12609
12610 #if HAVE_DLFCN_H
12611 #include <dlfcn.h>
12612 #endif
12613
12614 #include <stdio.h>
12615
12616 #ifdef RTLD_GLOBAL
12617 #  define LT_DLGLOBAL           RTLD_GLOBAL
12618 #else
12619 #  ifdef DL_GLOBAL
12620 #    define LT_DLGLOBAL         DL_GLOBAL
12621 #  else
12622 #    define LT_DLGLOBAL         0
12623 #  endif
12624 #endif
12625
12626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12627    find out it does not work in some platform. */
12628 #ifndef LT_DLLAZY_OR_NOW
12629 #  ifdef RTLD_LAZY
12630 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12631 #  else
12632 #    ifdef DL_LAZY
12633 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12634 #    else
12635 #      ifdef RTLD_NOW
12636 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12637 #      else
12638 #        ifdef DL_NOW
12639 #          define LT_DLLAZY_OR_NOW      DL_NOW
12640 #        else
12641 #          define LT_DLLAZY_OR_NOW      0
12642 #        endif
12643 #      endif
12644 #    endif
12645 #  endif
12646 #endif
12647
12648 #ifdef __cplusplus
12649 extern "C" void exit (int);
12650 #endif
12651
12652 void fnord() { int i=42;}
12653 int main ()
12654 {
12655   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12656   int status = $lt_dlunknown;
12657
12658   if (self)
12659     {
12660       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12661       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12662       /* dlclose (self); */
12663     }
12664   else
12665     puts (dlerror ());
12666
12667     exit (status);
12668 }
12669 EOF
12670   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671   (eval $ac_link) 2>&5
12672   ac_status=$?
12673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12675     (./conftest; exit; ) >&5 2>/dev/null
12676     lt_status=$?
12677     case x$lt_status in
12678       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12679       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12680       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12681     esac
12682   else :
12683     # compilation failed
12684     lt_cv_dlopen_self=no
12685   fi
12686 fi
12687 rm -fr conftest*
12688
12689
12690 fi
12691 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12692 $as_echo "$lt_cv_dlopen_self" >&6; }
12693
12694     if test "x$lt_cv_dlopen_self" = xyes; then
12695       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12696       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12697 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12698 if test "${lt_cv_dlopen_self_static+set}" = set; then
12699   $as_echo_n "(cached) " >&6
12700 else
12701           if test "$cross_compiling" = yes; then :
12702   lt_cv_dlopen_self_static=cross
12703 else
12704   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12705   lt_status=$lt_dlunknown
12706   cat > conftest.$ac_ext <<EOF
12707 #line 12707 "configure"
12708 #include "confdefs.h"
12709
12710 #if HAVE_DLFCN_H
12711 #include <dlfcn.h>
12712 #endif
12713
12714 #include <stdio.h>
12715
12716 #ifdef RTLD_GLOBAL
12717 #  define LT_DLGLOBAL           RTLD_GLOBAL
12718 #else
12719 #  ifdef DL_GLOBAL
12720 #    define LT_DLGLOBAL         DL_GLOBAL
12721 #  else
12722 #    define LT_DLGLOBAL         0
12723 #  endif
12724 #endif
12725
12726 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12727    find out it does not work in some platform. */
12728 #ifndef LT_DLLAZY_OR_NOW
12729 #  ifdef RTLD_LAZY
12730 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12731 #  else
12732 #    ifdef DL_LAZY
12733 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12734 #    else
12735 #      ifdef RTLD_NOW
12736 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12737 #      else
12738 #        ifdef DL_NOW
12739 #          define LT_DLLAZY_OR_NOW      DL_NOW
12740 #        else
12741 #          define LT_DLLAZY_OR_NOW      0
12742 #        endif
12743 #      endif
12744 #    endif
12745 #  endif
12746 #endif
12747
12748 #ifdef __cplusplus
12749 extern "C" void exit (int);
12750 #endif
12751
12752 void fnord() { int i=42;}
12753 int main ()
12754 {
12755   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12756   int status = $lt_dlunknown;
12757
12758   if (self)
12759     {
12760       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12761       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12762       /* dlclose (self); */
12763     }
12764   else
12765     puts (dlerror ());
12766
12767     exit (status);
12768 }
12769 EOF
12770   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771   (eval $ac_link) 2>&5
12772   ac_status=$?
12773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12775     (./conftest; exit; ) >&5 2>/dev/null
12776     lt_status=$?
12777     case x$lt_status in
12778       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12779       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12780       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12781     esac
12782   else :
12783     # compilation failed
12784     lt_cv_dlopen_self_static=no
12785   fi
12786 fi
12787 rm -fr conftest*
12788
12789
12790 fi
12791 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12792 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12793     fi
12794
12795     CPPFLAGS="$save_CPPFLAGS"
12796     LDFLAGS="$save_LDFLAGS"
12797     LIBS="$save_LIBS"
12798     ;;
12799   esac
12800
12801   case $lt_cv_dlopen_self in
12802   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12803   *) enable_dlopen_self=unknown ;;
12804   esac
12805
12806   case $lt_cv_dlopen_self_static in
12807   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12808   *) enable_dlopen_self_static=unknown ;;
12809   esac
12810 fi
12811
12812
12813 # Report which library types will actually be built
12814 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12815 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12816 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12817 $as_echo "$can_build_shared" >&6; }
12818
12819 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12820 $as_echo_n "checking whether to build shared libraries... " >&6; }
12821 test "$can_build_shared" = "no" && enable_shared=no
12822
12823 # On AIX, shared libraries and static libraries use the same namespace, and
12824 # are all built from PIC.
12825 case $host_os in
12826 aix3*)
12827   test "$enable_shared" = yes && enable_static=no
12828   if test -n "$RANLIB"; then
12829     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12830     postinstall_cmds='$RANLIB $lib'
12831   fi
12832   ;;
12833
12834 aix[4-9]*)
12835   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12836     test "$enable_shared" = yes && enable_static=no
12837   fi
12838     ;;
12839 esac
12840 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12841 $as_echo "$enable_shared" >&6; }
12842
12843 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12844 $as_echo_n "checking whether to build static libraries... " >&6; }
12845 # Make sure either enable_shared or enable_static is yes.
12846 test "$enable_shared" = yes || enable_static=yes
12847 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12848 $as_echo "$enable_static" >&6; }
12849
12850 # The else clause should only fire when bootstrapping the
12851 # libtool distribution, otherwise you forgot to ship ltmain.sh
12852 # with your package, and you will get complaints that there are
12853 # no rules to generate ltmain.sh.
12854 if test -f "$ltmain"; then
12855   # See if we are running on zsh, and set the options which allow our commands through
12856   # without removal of \ escapes.
12857   if test -n "${ZSH_VERSION+set}" ; then
12858     setopt NO_GLOB_SUBST
12859   fi
12860   # Now quote all the things that may contain metacharacters while being
12861   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12862   # variables and quote the copies for generation of the libtool script.
12863   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12864     SED SHELL STRIP \
12865     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12866     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12867     deplibs_check_method reload_flag reload_cmds need_locks \
12868     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12869     lt_cv_sys_global_symbol_to_c_name_address \
12870     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12871     old_postinstall_cmds old_postuninstall_cmds \
12872     compiler \
12873     CC \
12874     LD \
12875     lt_prog_compiler_wl \
12876     lt_prog_compiler_pic \
12877     lt_prog_compiler_static \
12878     lt_prog_compiler_no_builtin_flag \
12879     export_dynamic_flag_spec \
12880     thread_safe_flag_spec \
12881     whole_archive_flag_spec \
12882     enable_shared_with_static_runtimes \
12883     old_archive_cmds \
12884     old_archive_from_new_cmds \
12885     predep_objects \
12886     postdep_objects \
12887     predeps \
12888     postdeps \
12889     compiler_lib_search_path \
12890     compiler_lib_search_dirs \
12891     archive_cmds \
12892     archive_expsym_cmds \
12893     postinstall_cmds \
12894     postuninstall_cmds \
12895     old_archive_from_expsyms_cmds \
12896     allow_undefined_flag \
12897     no_undefined_flag \
12898     export_symbols_cmds \
12899     hardcode_libdir_flag_spec \
12900     hardcode_libdir_flag_spec_ld \
12901     hardcode_libdir_separator \
12902     hardcode_automatic \
12903     module_cmds \
12904     module_expsym_cmds \
12905     lt_cv_prog_compiler_c_o \
12906     fix_srcfile_path \
12907     exclude_expsyms \
12908     include_expsyms; do
12909
12910     case $var in
12911     old_archive_cmds | \
12912     old_archive_from_new_cmds | \
12913     archive_cmds | \
12914     archive_expsym_cmds | \
12915     module_cmds | \
12916     module_expsym_cmds | \
12917     old_archive_from_expsyms_cmds | \
12918     export_symbols_cmds | \
12919     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12920     postinstall_cmds | postuninstall_cmds | \
12921     old_postinstall_cmds | old_postuninstall_cmds | \
12922     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12923       # Double-quote double-evaled strings.
12924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12925       ;;
12926     *)
12927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12928       ;;
12929     esac
12930   done
12931
12932   case $lt_echo in
12933   *'\$0 --fallback-echo"')
12934     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12935     ;;
12936   esac
12937
12938 cfgfile="${ofile}T"
12939   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12940   $rm -f "$cfgfile"
12941   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
12942 $as_echo "$as_me: creating $ofile" >&6;}
12943
12944   cat <<__EOF__ >> "$cfgfile"
12945 #! $SHELL
12946
12947 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12948 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12949 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12950 #
12951 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12952 # Free Software Foundation, Inc.
12953 #
12954 # This file is part of GNU Libtool:
12955 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12956 #
12957 # This program is free software; you can redistribute it and/or modify
12958 # it under the terms of the GNU General Public License as published by
12959 # the Free Software Foundation; either version 2 of the License, or
12960 # (at your option) any later version.
12961 #
12962 # This program is distributed in the hope that it will be useful, but
12963 # WITHOUT ANY WARRANTY; without even the implied warranty of
12964 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12965 # General Public License for more details.
12966 #
12967 # You should have received a copy of the GNU General Public License
12968 # along with this program; if not, write to the Free Software
12969 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12970 #
12971 # As a special exception to the GNU General Public License, if you
12972 # distribute this file as part of a program that contains a
12973 # configuration script generated by Autoconf, you may include it under
12974 # the same distribution terms that you use for the rest of that program.
12975
12976 # A sed program that does not truncate output.
12977 SED=$lt_SED
12978
12979 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12980 Xsed="$SED -e 1s/^X//"
12981
12982 # The HP-UX ksh and POSIX shell print the target directory to stdout
12983 # if CDPATH is set.
12984 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12985
12986 # The names of the tagged configurations supported by this script.
12987 available_tags=
12988
12989 # ### BEGIN LIBTOOL CONFIG
12990
12991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12992
12993 # Shell to use when invoking shell scripts.
12994 SHELL=$lt_SHELL
12995
12996 # Whether or not to build shared libraries.
12997 build_libtool_libs=$enable_shared
12998
12999 # Whether or not to build static libraries.
13000 build_old_libs=$enable_static
13001
13002 # Whether or not to add -lc for building shared libraries.
13003 build_libtool_need_lc=$archive_cmds_need_lc
13004
13005 # Whether or not to disallow shared libs when runtime libs are static
13006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13007
13008 # Whether or not to optimize for fast installation.
13009 fast_install=$enable_fast_install
13010
13011 # The host system.
13012 host_alias=$host_alias
13013 host=$host
13014 host_os=$host_os
13015
13016 # The build system.
13017 build_alias=$build_alias
13018 build=$build
13019 build_os=$build_os
13020
13021 # An echo program that does not interpret backslashes.
13022 echo=$lt_echo
13023
13024 # The archiver.
13025 AR=$lt_AR
13026 AR_FLAGS=$lt_AR_FLAGS
13027
13028 # A C compiler.
13029 LTCC=$lt_LTCC
13030
13031 # LTCC compiler flags.
13032 LTCFLAGS=$lt_LTCFLAGS
13033
13034 # A language-specific compiler.
13035 CC=$lt_compiler
13036
13037 # Is the compiler the GNU C compiler?
13038 with_gcc=$GCC
13039
13040 # An ERE matcher.
13041 EGREP=$lt_EGREP
13042
13043 # The linker used to build libraries.
13044 LD=$lt_LD
13045
13046 # Whether we need hard or soft links.
13047 LN_S=$lt_LN_S
13048
13049 # A BSD-compatible nm program.
13050 NM=$lt_NM
13051
13052 # A symbol stripping program
13053 STRIP=$lt_STRIP
13054
13055 # Used to examine libraries when file_magic_cmd begins "file"
13056 MAGIC_CMD=$MAGIC_CMD
13057
13058 # Used on cygwin: DLL creation program.
13059 DLLTOOL="$DLLTOOL"
13060
13061 # Used on cygwin: object dumper.
13062 OBJDUMP="$OBJDUMP"
13063
13064 # Used on cygwin: assembler.
13065 AS="$AS"
13066
13067 # The name of the directory that contains temporary libtool files.
13068 objdir=$objdir
13069
13070 # How to create reloadable object files.
13071 reload_flag=$lt_reload_flag
13072 reload_cmds=$lt_reload_cmds
13073
13074 # How to pass a linker flag through the compiler.
13075 wl=$lt_lt_prog_compiler_wl
13076
13077 # Object file suffix (normally "o").
13078 objext="$ac_objext"
13079
13080 # Old archive suffix (normally "a").
13081 libext="$libext"
13082
13083 # Shared library suffix (normally ".so").
13084 shrext_cmds='$shrext_cmds'
13085
13086 # Executable file suffix (normally "").
13087 exeext="$exeext"
13088
13089 # Additional compiler flags for building library objects.
13090 pic_flag=$lt_lt_prog_compiler_pic
13091 pic_mode=$pic_mode
13092
13093 # What is the maximum length of a command?
13094 max_cmd_len=$lt_cv_sys_max_cmd_len
13095
13096 # Does compiler simultaneously support -c and -o options?
13097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13098
13099 # Must we lock files when doing compilation?
13100 need_locks=$lt_need_locks
13101
13102 # Do we need the lib prefix for modules?
13103 need_lib_prefix=$need_lib_prefix
13104
13105 # Do we need a version for libraries?
13106 need_version=$need_version
13107
13108 # Whether dlopen is supported.
13109 dlopen_support=$enable_dlopen
13110
13111 # Whether dlopen of programs is supported.
13112 dlopen_self=$enable_dlopen_self
13113
13114 # Whether dlopen of statically linked programs is supported.
13115 dlopen_self_static=$enable_dlopen_self_static
13116
13117 # Compiler flag to prevent dynamic linking.
13118 link_static_flag=$lt_lt_prog_compiler_static
13119
13120 # Compiler flag to turn off builtin functions.
13121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13122
13123 # Compiler flag to allow reflexive dlopens.
13124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13125
13126 # Compiler flag to generate shared objects directly from archives.
13127 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13128
13129 # Compiler flag to generate thread-safe objects.
13130 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13131
13132 # Library versioning type.
13133 version_type=$version_type
13134
13135 # Format of library name prefix.
13136 libname_spec=$lt_libname_spec
13137
13138 # List of archive names.  First name is the real one, the rest are links.
13139 # The last name is the one that the linker finds with -lNAME.
13140 library_names_spec=$lt_library_names_spec
13141
13142 # The coded name of the library, if different from the real name.
13143 soname_spec=$lt_soname_spec
13144
13145 # Commands used to build and install an old-style archive.
13146 RANLIB=$lt_RANLIB
13147 old_archive_cmds=$lt_old_archive_cmds
13148 old_postinstall_cmds=$lt_old_postinstall_cmds
13149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13150
13151 # Create an old-style archive from a shared archive.
13152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13153
13154 # Create a temporary old-style archive to link instead of a shared archive.
13155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13156
13157 # Commands used to build and install a shared archive.
13158 archive_cmds=$lt_archive_cmds
13159 archive_expsym_cmds=$lt_archive_expsym_cmds
13160 postinstall_cmds=$lt_postinstall_cmds
13161 postuninstall_cmds=$lt_postuninstall_cmds
13162
13163 # Commands used to build a loadable module (assumed same as above if empty)
13164 module_cmds=$lt_module_cmds
13165 module_expsym_cmds=$lt_module_expsym_cmds
13166
13167 # Commands to strip libraries.
13168 old_striplib=$lt_old_striplib
13169 striplib=$lt_striplib
13170
13171 # Dependencies to place before the objects being linked to create a
13172 # shared library.
13173 predep_objects=$lt_predep_objects
13174
13175 # Dependencies to place after the objects being linked to create a
13176 # shared library.
13177 postdep_objects=$lt_postdep_objects
13178
13179 # Dependencies to place before the objects being linked to create a
13180 # shared library.
13181 predeps=$lt_predeps
13182
13183 # Dependencies to place after the objects being linked to create a
13184 # shared library.
13185 postdeps=$lt_postdeps
13186
13187 # The directories searched by this compiler when creating a shared
13188 # library
13189 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13190
13191 # The library search path used internally by the compiler when linking
13192 # a shared library.
13193 compiler_lib_search_path=$lt_compiler_lib_search_path
13194
13195 # Method to check whether dependent libraries are shared objects.
13196 deplibs_check_method=$lt_deplibs_check_method
13197
13198 # Command to use when deplibs_check_method == file_magic.
13199 file_magic_cmd=$lt_file_magic_cmd
13200
13201 # Flag that allows shared libraries with undefined symbols to be built.
13202 allow_undefined_flag=$lt_allow_undefined_flag
13203
13204 # Flag that forces no undefined symbols.
13205 no_undefined_flag=$lt_no_undefined_flag
13206
13207 # Commands used to finish a libtool library installation in a directory.
13208 finish_cmds=$lt_finish_cmds
13209
13210 # Same as above, but a single script fragment to be evaled but not shown.
13211 finish_eval=$lt_finish_eval
13212
13213 # Take the output of nm and produce a listing of raw symbols and C names.
13214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13215
13216 # Transform the output of nm in a proper C declaration
13217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13218
13219 # Transform the output of nm in a C name address pair
13220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13221
13222 # This is the shared library runtime path variable.
13223 runpath_var=$runpath_var
13224
13225 # This is the shared library path variable.
13226 shlibpath_var=$shlibpath_var
13227
13228 # Is shlibpath searched before the hard-coded library search path?
13229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13230
13231 # How to hardcode a shared library path into an executable.
13232 hardcode_action=$hardcode_action
13233
13234 # Whether we should hardcode library paths into libraries.
13235 hardcode_into_libs=$hardcode_into_libs
13236
13237 # Flag to hardcode \$libdir into a binary during linking.
13238 # This must work even if \$libdir does not exist.
13239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13240
13241 # If ld is used when linking, flag to hardcode \$libdir into
13242 # a binary during linking. This must work even if \$libdir does
13243 # not exist.
13244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13245
13246 # Whether we need a single -rpath flag with a separated argument.
13247 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13248
13249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13250 # resulting binary.
13251 hardcode_direct=$hardcode_direct
13252
13253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13254 # resulting binary.
13255 hardcode_minus_L=$hardcode_minus_L
13256
13257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13258 # the resulting binary.
13259 hardcode_shlibpath_var=$hardcode_shlibpath_var
13260
13261 # Set to yes if building a shared library automatically hardcodes DIR into the library
13262 # and all subsequent libraries and executables linked against it.
13263 hardcode_automatic=$hardcode_automatic
13264
13265 # Variables whose values should be saved in libtool wrapper scripts and
13266 # restored at relink time.
13267 variables_saved_for_relink="$variables_saved_for_relink"
13268
13269 # Whether libtool must link a program against all its dependency libraries.
13270 link_all_deplibs=$link_all_deplibs
13271
13272 # Compile-time system search path for libraries
13273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13274
13275 # Run-time system search path for libraries
13276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13277
13278 # Fix the shell variable \$srcfile for the compiler.
13279 fix_srcfile_path=$lt_fix_srcfile_path
13280
13281 # Set to yes if exported symbols are required.
13282 always_export_symbols=$always_export_symbols
13283
13284 # The commands to list exported symbols.
13285 export_symbols_cmds=$lt_export_symbols_cmds
13286
13287 # The commands to extract the exported symbol list from a shared archive.
13288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13289
13290 # Symbols that should not be listed in the preloaded symbols.
13291 exclude_expsyms=$lt_exclude_expsyms
13292
13293 # Symbols that must always be exported.
13294 include_expsyms=$lt_include_expsyms
13295
13296 # ### END LIBTOOL CONFIG
13297
13298 __EOF__
13299
13300
13301   case $host_os in
13302   aix3*)
13303     cat <<\EOF >> "$cfgfile"
13304
13305 # AIX sometimes has problems with the GCC collect2 program.  For some
13306 # reason, if we set the COLLECT_NAMES environment variable, the problems
13307 # vanish in a puff of smoke.
13308 if test "X${COLLECT_NAMES+set}" != Xset; then
13309   COLLECT_NAMES=
13310   export COLLECT_NAMES
13311 fi
13312 EOF
13313     ;;
13314   esac
13315
13316   # We use sed instead of cat because bash on DJGPP gets confused if
13317   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13318   # text mode, it properly converts lines to CR/LF.  This bash problem
13319   # is reportedly fixed, but why not run on old versions too?
13320   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13321
13322   mv -f "$cfgfile" "$ofile" || \
13323     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13324   chmod +x "$ofile"
13325
13326 else
13327   # If there is no Makefile yet, we rely on a make rule to execute
13328   # `config.status --recheck' to rerun these tests and create the
13329   # libtool script then.
13330   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13331   if test -f "$ltmain_in"; then
13332     test -f Makefile && make "$ltmain"
13333   fi
13334 fi
13335
13336
13337 ac_ext=c
13338 ac_cpp='$CPP $CPPFLAGS'
13339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342
13343 CC="$lt_save_CC"
13344
13345
13346 # Check whether --with-tags was given.
13347 if test "${with_tags+set}" = set; then
13348   withval=$with_tags; tagnames="$withval"
13349 fi
13350
13351
13352 if test -f "$ltmain" && test -n "$tagnames"; then
13353   if test ! -f "${ofile}"; then
13354     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13355 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13356   fi
13357
13358   if test -z "$LTCC"; then
13359     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13360     if test -z "$LTCC"; then
13361       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13362 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13363     else
13364       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13365 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13366     fi
13367   fi
13368   if test -z "$LTCFLAGS"; then
13369     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13370   fi
13371
13372   # Extract list of available tagged configurations in $ofile.
13373   # Note that this assumes the entire list is on one line.
13374   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13375
13376   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13377   for tagname in $tagnames; do
13378     IFS="$lt_save_ifs"
13379     # Check whether tagname contains only valid characters
13380     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13381     "") ;;
13382     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13383 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
13384    { (exit 1); exit 1; }; }
13385         ;;
13386     esac
13387
13388     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13389     then
13390       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13391 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13392    { (exit 1); exit 1; }; }
13393     fi
13394
13395     # Update the list of available tags.
13396     if test -n "$tagname"; then
13397       echo appending configuration tag \"$tagname\" to $ofile
13398
13399       case $tagname in
13400       CXX)
13401         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13402             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13403             (test "X$CXX" != "Xg++"))) ; then
13404           ac_ext=cpp
13405 ac_cpp='$CXXCPP $CPPFLAGS'
13406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13409
13410
13411
13412
13413 archive_cmds_need_lc_CXX=no
13414 allow_undefined_flag_CXX=
13415 always_export_symbols_CXX=no
13416 archive_expsym_cmds_CXX=
13417 export_dynamic_flag_spec_CXX=
13418 hardcode_direct_CXX=no
13419 hardcode_libdir_flag_spec_CXX=
13420 hardcode_libdir_flag_spec_ld_CXX=
13421 hardcode_libdir_separator_CXX=
13422 hardcode_minus_L_CXX=no
13423 hardcode_shlibpath_var_CXX=unsupported
13424 hardcode_automatic_CXX=no
13425 module_cmds_CXX=
13426 module_expsym_cmds_CXX=
13427 link_all_deplibs_CXX=unknown
13428 old_archive_cmds_CXX=$old_archive_cmds
13429 no_undefined_flag_CXX=
13430 whole_archive_flag_spec_CXX=
13431 enable_shared_with_static_runtimes_CXX=no
13432
13433 # Dependencies to place before and after the object being linked:
13434 predep_objects_CXX=
13435 postdep_objects_CXX=
13436 predeps_CXX=
13437 postdeps_CXX=
13438 compiler_lib_search_path_CXX=
13439 compiler_lib_search_dirs_CXX=
13440
13441 # Source file extension for C++ test sources.
13442 ac_ext=cpp
13443
13444 # Object file extension for compiled C++ test sources.
13445 objext=o
13446 objext_CXX=$objext
13447
13448 # Code to be used in simple compile tests
13449 lt_simple_compile_test_code="int some_variable = 0;"
13450
13451 # Code to be used in simple link tests
13452 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13453
13454 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13455
13456 # If no C compiler was specified, use CC.
13457 LTCC=${LTCC-"$CC"}
13458
13459 # If no C compiler flags were specified, use CFLAGS.
13460 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13461
13462 # Allow CC to be a program name with arguments.
13463 compiler=$CC
13464
13465
13466 # save warnings/boilerplate of simple test code
13467 ac_outfile=conftest.$ac_objext
13468 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13469 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13470 _lt_compiler_boilerplate=`cat conftest.err`
13471 $rm conftest*
13472
13473 ac_outfile=conftest.$ac_objext
13474 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13475 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13476 _lt_linker_boilerplate=`cat conftest.err`
13477 $rm -r conftest*
13478
13479
13480 # Allow CC to be a program name with arguments.
13481 lt_save_CC=$CC
13482 lt_save_LD=$LD
13483 lt_save_GCC=$GCC
13484 GCC=$GXX
13485 lt_save_with_gnu_ld=$with_gnu_ld
13486 lt_save_path_LD=$lt_cv_path_LD
13487 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13488   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13489 else
13490   $as_unset lt_cv_prog_gnu_ld
13491 fi
13492 if test -n "${lt_cv_path_LDCXX+set}"; then
13493   lt_cv_path_LD=$lt_cv_path_LDCXX
13494 else
13495   $as_unset lt_cv_path_LD
13496 fi
13497 test -z "${LDCXX+set}" || LD=$LDCXX
13498 CC=${CXX-"c++"}
13499 compiler=$CC
13500 compiler_CXX=$CC
13501 for cc_temp in $compiler""; do
13502   case $cc_temp in
13503     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13504     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13505     \-*) ;;
13506     *) break;;
13507   esac
13508 done
13509 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13510
13511
13512 # We don't want -fno-exception wen compiling C++ code, so set the
13513 # no_builtin_flag separately
13514 if test "$GXX" = yes; then
13515   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13516 else
13517   lt_prog_compiler_no_builtin_flag_CXX=
13518 fi
13519
13520 if test "$GXX" = yes; then
13521   # Set up default GNU C++ configuration
13522
13523
13524 # Check whether --with-gnu-ld was given.
13525 if test "${with_gnu_ld+set}" = set; then
13526   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13527 else
13528   with_gnu_ld=no
13529 fi
13530
13531 ac_prog=ld
13532 if test "$GCC" = yes; then
13533   # Check if gcc -print-prog-name=ld gives a path.
13534   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13535 $as_echo_n "checking for ld used by $CC... " >&6; }
13536   case $host in
13537   *-*-mingw*)
13538     # gcc leaves a trailing carriage return which upsets mingw
13539     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13540   *)
13541     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13542   esac
13543   case $ac_prog in
13544     # Accept absolute paths.
13545     [\\/]* | ?:[\\/]*)
13546       re_direlt='/[^/][^/]*/\.\./'
13547       # Canonicalize the pathname of ld
13548       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13549       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13550         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13551       done
13552       test -z "$LD" && LD="$ac_prog"
13553       ;;
13554   "")
13555     # If it fails, then pretend we aren't using GCC.
13556     ac_prog=ld
13557     ;;
13558   *)
13559     # If it is relative, then search for the first ld in PATH.
13560     with_gnu_ld=unknown
13561     ;;
13562   esac
13563 elif test "$with_gnu_ld" = yes; then
13564   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13565 $as_echo_n "checking for GNU ld... " >&6; }
13566 else
13567   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13568 $as_echo_n "checking for non-GNU ld... " >&6; }
13569 fi
13570 if test "${lt_cv_path_LD+set}" = set; then
13571   $as_echo_n "(cached) " >&6
13572 else
13573   if test -z "$LD"; then
13574   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13575   for ac_dir in $PATH; do
13576     IFS="$lt_save_ifs"
13577     test -z "$ac_dir" && ac_dir=.
13578     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13579       lt_cv_path_LD="$ac_dir/$ac_prog"
13580       # Check to see if the program is GNU ld.  I'd rather use --version,
13581       # but apparently some variants of GNU ld only accept -v.
13582       # Break only if it was the GNU/non-GNU ld that we prefer.
13583       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13584       *GNU* | *'with BFD'*)
13585         test "$with_gnu_ld" != no && break
13586         ;;
13587       *)
13588         test "$with_gnu_ld" != yes && break
13589         ;;
13590       esac
13591     fi
13592   done
13593   IFS="$lt_save_ifs"
13594 else
13595   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13596 fi
13597 fi
13598
13599 LD="$lt_cv_path_LD"
13600 if test -n "$LD"; then
13601   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13602 $as_echo "$LD" >&6; }
13603 else
13604   { $as_echo "$as_me:$LINENO: result: no" >&5
13605 $as_echo "no" >&6; }
13606 fi
13607 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13608 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13609    { (exit 1); exit 1; }; }
13610 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13611 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13612 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13613   $as_echo_n "(cached) " >&6
13614 else
13615   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13616 case `$LD -v 2>&1 </dev/null` in
13617 *GNU* | *'with BFD'*)
13618   lt_cv_prog_gnu_ld=yes
13619   ;;
13620 *)
13621   lt_cv_prog_gnu_ld=no
13622   ;;
13623 esac
13624 fi
13625 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13626 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13627 with_gnu_ld=$lt_cv_prog_gnu_ld
13628
13629
13630
13631   # Check if GNU C++ uses GNU ld as the underlying linker, since the
13632   # archiving commands below assume that GNU ld is being used.
13633   if test "$with_gnu_ld" = yes; then
13634     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635     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'
13636
13637     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13638     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13639
13640     # If archive_cmds runs LD, not CC, wlarc should be empty
13641     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13642     #     investigate it a little bit more. (MM)
13643     wlarc='${wl}'
13644
13645     # ancient GNU ld didn't support --whole-archive et. al.
13646     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13647         grep 'no-whole-archive' > /dev/null; then
13648       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13649     else
13650       whole_archive_flag_spec_CXX=
13651     fi
13652   else
13653     with_gnu_ld=no
13654     wlarc=
13655
13656     # A generic and very simple default shared library creation
13657     # command for GNU C++ for the case where it uses the native
13658     # linker, instead of GNU ld.  If possible, this setting should
13659     # overridden to take advantage of the native linker features on
13660     # the platform it is being used on.
13661     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13662   fi
13663
13664   # Commands to make compiler produce verbose output that lists
13665   # what "hidden" libraries, object files and flags are used when
13666   # linking a shared library.
13667   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13668
13669 else
13670   GXX=no
13671   with_gnu_ld=no
13672   wlarc=
13673 fi
13674
13675 # PORTME: fill in a description of your system's C++ link characteristics
13676 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13678 ld_shlibs_CXX=yes
13679 case $host_os in
13680   aix3*)
13681     # FIXME: insert proper C++ library support
13682     ld_shlibs_CXX=no
13683     ;;
13684   aix[4-9]*)
13685     if test "$host_cpu" = ia64; then
13686       # On IA64, the linker does run time linking by default, so we don't
13687       # have to do anything special.
13688       aix_use_runtimelinking=no
13689       exp_sym_flag='-Bexport'
13690       no_entry_flag=""
13691     else
13692       aix_use_runtimelinking=no
13693
13694       # Test if we are trying to use run time linking or normal
13695       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13696       # need to do runtime linking.
13697       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13698         for ld_flag in $LDFLAGS; do
13699           case $ld_flag in
13700           *-brtl*)
13701             aix_use_runtimelinking=yes
13702             break
13703             ;;
13704           esac
13705         done
13706         ;;
13707       esac
13708
13709       exp_sym_flag='-bexport'
13710       no_entry_flag='-bnoentry'
13711     fi
13712
13713     # When large executables or shared objects are built, AIX ld can
13714     # have problems creating the table of contents.  If linking a library
13715     # or program results in "error TOC overflow" add -mminimal-toc to
13716     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13717     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13718
13719     archive_cmds_CXX=''
13720     hardcode_direct_CXX=yes
13721     hardcode_libdir_separator_CXX=':'
13722     link_all_deplibs_CXX=yes
13723
13724     if test "$GXX" = yes; then
13725       case $host_os in aix4.[012]|aix4.[012].*)
13726       # We only want to do this on AIX 4.2 and lower, the check
13727       # below for broken collect2 doesn't work under 4.3+
13728         collect2name=`${CC} -print-prog-name=collect2`
13729         if test -f "$collect2name" && \
13730            strings "$collect2name" | grep resolve_lib_name >/dev/null
13731         then
13732           # We have reworked collect2
13733           :
13734         else
13735           # We have old collect2
13736           hardcode_direct_CXX=unsupported
13737           # It fails to find uninstalled libraries when the uninstalled
13738           # path is not listed in the libpath.  Setting hardcode_minus_L
13739           # to unsupported forces relinking
13740           hardcode_minus_L_CXX=yes
13741           hardcode_libdir_flag_spec_CXX='-L$libdir'
13742           hardcode_libdir_separator_CXX=
13743         fi
13744         ;;
13745       esac
13746       shared_flag='-shared'
13747       if test "$aix_use_runtimelinking" = yes; then
13748         shared_flag="$shared_flag "'${wl}-G'
13749       fi
13750     else
13751       # not using gcc
13752       if test "$host_cpu" = ia64; then
13753         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13754         # chokes on -Wl,-G. The following line is correct:
13755         shared_flag='-G'
13756       else
13757         if test "$aix_use_runtimelinking" = yes; then
13758           shared_flag='${wl}-G'
13759         else
13760           shared_flag='${wl}-bM:SRE'
13761         fi
13762       fi
13763     fi
13764
13765     # It seems that -bexpall does not export symbols beginning with
13766     # underscore (_), so it is better to generate a list of symbols to export.
13767     always_export_symbols_CXX=yes
13768     if test "$aix_use_runtimelinking" = yes; then
13769       # Warning - without using the other runtime loading flags (-brtl),
13770       # -berok will link without error, but may produce a broken library.
13771       allow_undefined_flag_CXX='-berok'
13772       # Determine the default libpath from the value encoded in an empty executable.
13773       cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h.  */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h.  */
13779
13780 int
13781 main ()
13782 {
13783
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (ac_try="$ac_link"
13790 case "(($ac_try" in
13791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792   *) ac_try_echo=$ac_try;;
13793 esac
13794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13795 $as_echo "$ac_try_echo") >&5
13796   (eval "$ac_link") 2>conftest.er1
13797   ac_status=$?
13798   grep -v '^ *+' conftest.er1 >conftest.err
13799   rm -f conftest.er1
13800   cat conftest.err >&5
13801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } && {
13803          test -z "$ac_cxx_werror_flag" ||
13804          test ! -s conftest.err
13805        } && test -s conftest$ac_exeext && {
13806          test "$cross_compiling" = yes ||
13807          $as_test_x conftest$ac_exeext
13808        }; then
13809
13810 lt_aix_libpath_sed='
13811     /Import File Strings/,/^$/ {
13812         /^0/ {
13813             s/^0  *\(.*\)$/\1/
13814             p
13815         }
13816     }'
13817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13818 # Check for a 64-bit object if we didn't find anything.
13819 if test -z "$aix_libpath"; then
13820   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13821 fi
13822 else
13823   $as_echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826
13827 fi
13828
13829 rm -rf conftest.dSYM
13830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13831       conftest$ac_exeext conftest.$ac_ext
13832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13833
13834       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13835
13836       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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13837      else
13838       if test "$host_cpu" = ia64; then
13839         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13840         allow_undefined_flag_CXX="-z nodefs"
13841         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"
13842       else
13843         # Determine the default libpath from the value encoded in an empty executable.
13844         cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850
13851 int
13852 main ()
13853 {
13854
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863   *) ac_try_echo=$ac_try;;
13864 esac
13865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13866 $as_echo "$ac_try_echo") >&5
13867   (eval "$ac_link") 2>conftest.er1
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
13871   cat conftest.err >&5
13872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } && {
13874          test -z "$ac_cxx_werror_flag" ||
13875          test ! -s conftest.err
13876        } && test -s conftest$ac_exeext && {
13877          test "$cross_compiling" = yes ||
13878          $as_test_x conftest$ac_exeext
13879        }; then
13880
13881 lt_aix_libpath_sed='
13882     /Import File Strings/,/^$/ {
13883         /^0/ {
13884             s/^0  *\(.*\)$/\1/
13885             p
13886         }
13887     }'
13888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13889 # Check for a 64-bit object if we didn't find anything.
13890 if test -z "$aix_libpath"; then
13891   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13892 fi
13893 else
13894   $as_echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897
13898 fi
13899
13900 rm -rf conftest.dSYM
13901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13902       conftest$ac_exeext conftest.$ac_ext
13903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13904
13905         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13906         # Warning - without using the other run time loading flags,
13907         # -berok will link without error, but may produce a broken library.
13908         no_undefined_flag_CXX=' ${wl}-bernotok'
13909         allow_undefined_flag_CXX=' ${wl}-berok'
13910         # Exported symbols can be pulled into shared objects from archives
13911         whole_archive_flag_spec_CXX='$convenience'
13912         archive_cmds_need_lc_CXX=yes
13913         # This is similar to how AIX traditionally builds its shared libraries.
13914         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'
13915       fi
13916     fi
13917     ;;
13918
13919   beos*)
13920     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13921       allow_undefined_flag_CXX=unsupported
13922       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13923       # support --undefined.  This deserves some investigation.  FIXME
13924       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13925     else
13926       ld_shlibs_CXX=no
13927     fi
13928     ;;
13929
13930   chorus*)
13931     case $cc_basename in
13932       *)
13933         # FIXME: insert proper C++ library support
13934         ld_shlibs_CXX=no
13935         ;;
13936     esac
13937     ;;
13938
13939   cygwin* | mingw* | pw32*)
13940     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13941     # as there is no search path for DLLs.
13942     hardcode_libdir_flag_spec_CXX='-L$libdir'
13943     allow_undefined_flag_CXX=unsupported
13944     always_export_symbols_CXX=no
13945     enable_shared_with_static_runtimes_CXX=yes
13946
13947     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13948       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'
13949       # If the export-symbols file already is a .def file (1st line
13950       # is EXPORTS), use it as is; otherwise, prepend...
13951       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13952         cp $export_symbols $output_objdir/$soname.def;
13953       else
13954         echo EXPORTS > $output_objdir/$soname.def;
13955         cat $export_symbols >> $output_objdir/$soname.def;
13956       fi~
13957       $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'
13958     else
13959       ld_shlibs_CXX=no
13960     fi
13961   ;;
13962       darwin* | rhapsody*)
13963       archive_cmds_need_lc_CXX=no
13964       hardcode_direct_CXX=no
13965       hardcode_automatic_CXX=yes
13966       hardcode_shlibpath_var_CXX=unsupported
13967       whole_archive_flag_spec_CXX=''
13968       link_all_deplibs_CXX=yes
13969       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13970       if test "$GXX" = yes ; then
13971       output_verbose_link_cmd='echo'
13972       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13973       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13974       archive_expsym_cmds_CXX="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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13975       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13976       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13977         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${_lt_dsymutil}"
13978         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${_lt_dar_export_syms}${_lt_dsymutil}"
13979       fi
13980       else
13981       case $cc_basename in
13982         xlc*)
13983          output_verbose_link_cmd='echo'
13984           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13985           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13986           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13987           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13988           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
13989           ;;
13990        *)
13991          ld_shlibs_CXX=no
13992           ;;
13993       esac
13994       fi
13995         ;;
13996
13997   dgux*)
13998     case $cc_basename in
13999       ec++*)
14000         # FIXME: insert proper C++ library support
14001         ld_shlibs_CXX=no
14002         ;;
14003       ghcx*)
14004         # Green Hills C++ Compiler
14005         # FIXME: insert proper C++ library support
14006         ld_shlibs_CXX=no
14007         ;;
14008       *)
14009         # FIXME: insert proper C++ library support
14010         ld_shlibs_CXX=no
14011         ;;
14012     esac
14013     ;;
14014   freebsd[12]*)
14015     # C++ shared libraries reported to be fairly broken before switch to ELF
14016     ld_shlibs_CXX=no
14017     ;;
14018   freebsd-elf*)
14019     archive_cmds_need_lc_CXX=no
14020     ;;
14021   freebsd* | dragonfly*)
14022     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14023     # conventions
14024     ld_shlibs_CXX=yes
14025     ;;
14026   gnu*)
14027     ;;
14028   hpux9*)
14029     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14030     hardcode_libdir_separator_CXX=:
14031     export_dynamic_flag_spec_CXX='${wl}-E'
14032     hardcode_direct_CXX=yes
14033     hardcode_minus_L_CXX=yes # Not in the search PATH,
14034                                 # but as the default
14035                                 # location of the library.
14036
14037     case $cc_basename in
14038     CC*)
14039       # FIXME: insert proper C++ library support
14040       ld_shlibs_CXX=no
14041       ;;
14042     aCC*)
14043       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'
14044       # Commands to make compiler produce verbose output that lists
14045       # what "hidden" libraries, object files and flags are used when
14046       # linking a shared library.
14047       #
14048       # There doesn't appear to be a way to prevent this compiler from
14049       # explicitly linking system object files so we need to strip them
14050       # from the output so that they don't get included in the library
14051       # dependencies.
14052       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 $list'
14053       ;;
14054     *)
14055       if test "$GXX" = yes; then
14056         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'
14057       else
14058         # FIXME: insert proper C++ library support
14059         ld_shlibs_CXX=no
14060       fi
14061       ;;
14062     esac
14063     ;;
14064   hpux10*|hpux11*)
14065     if test $with_gnu_ld = no; then
14066       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14067       hardcode_libdir_separator_CXX=:
14068
14069       case $host_cpu in
14070       hppa*64*|ia64*) ;;
14071       *)
14072         export_dynamic_flag_spec_CXX='${wl}-E'
14073         ;;
14074       esac
14075     fi
14076     case $host_cpu in
14077     hppa*64*|ia64*)
14078       hardcode_direct_CXX=no
14079       hardcode_shlibpath_var_CXX=no
14080       ;;
14081     *)
14082       hardcode_direct_CXX=yes
14083       hardcode_minus_L_CXX=yes # Not in the search PATH,
14084                                               # but as the default
14085                                               # location of the library.
14086       ;;
14087     esac
14088
14089     case $cc_basename in
14090       CC*)
14091         # FIXME: insert proper C++ library support
14092         ld_shlibs_CXX=no
14093         ;;
14094       aCC*)
14095         case $host_cpu in
14096         hppa*64*)
14097           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14098           ;;
14099         ia64*)
14100           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14101           ;;
14102         *)
14103           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104           ;;
14105         esac
14106         # Commands to make compiler produce verbose output that lists
14107         # what "hidden" libraries, object files and flags are used when
14108         # linking a shared library.
14109         #
14110         # There doesn't appear to be a way to prevent this compiler from
14111         # explicitly linking system object files so we need to strip them
14112         # from the output so that they don't get included in the library
14113         # dependencies.
14114         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 $list'
14115         ;;
14116       *)
14117         if test "$GXX" = yes; then
14118           if test $with_gnu_ld = no; then
14119             case $host_cpu in
14120             hppa*64*)
14121               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14122               ;;
14123             ia64*)
14124               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14125               ;;
14126             *)
14127               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'
14128               ;;
14129             esac
14130           fi
14131         else
14132           # FIXME: insert proper C++ library support
14133           ld_shlibs_CXX=no
14134         fi
14135         ;;
14136     esac
14137     ;;
14138   interix[3-9]*)
14139     hardcode_direct_CXX=no
14140     hardcode_shlibpath_var_CXX=no
14141     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14142     export_dynamic_flag_spec_CXX='${wl}-E'
14143     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14144     # Instead, shared libraries are loaded at an image base (0x10000000 by
14145     # default) and relocated if they conflict, which is a slow very memory
14146     # consuming and fragmenting process.  To avoid this, we pick a random,
14147     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14148     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14149     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'
14150     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'
14151     ;;
14152   irix5* | irix6*)
14153     case $cc_basename in
14154       CC*)
14155         # SGI C++
14156         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14157
14158         # Archives containing C++ object files must be created using
14159         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14160         # necessary to make sure instantiated templates are included
14161         # in the archive.
14162         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14163         ;;
14164       *)
14165         if test "$GXX" = yes; then
14166           if test "$with_gnu_ld" = no; then
14167             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14168           else
14169             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14170           fi
14171         fi
14172         link_all_deplibs_CXX=yes
14173         ;;
14174     esac
14175     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14176     hardcode_libdir_separator_CXX=:
14177     ;;
14178   linux* | k*bsd*-gnu)
14179     case $cc_basename in
14180       KCC*)
14181         # Kuck and Associates, Inc. (KAI) C++ Compiler
14182
14183         # KCC will only create a shared library if the output file
14184         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14185         # to its proper name (with version) after linking.
14186         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'
14187         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'
14188         # Commands to make compiler produce verbose output that lists
14189         # what "hidden" libraries, object files and flags are used when
14190         # linking a shared library.
14191         #
14192         # There doesn't appear to be a way to prevent this compiler from
14193         # explicitly linking system object files so we need to strip them
14194         # from the output so that they don't get included in the library
14195         # dependencies.
14196         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 $list'
14197
14198         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14199         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14200
14201         # Archives containing C++ object files must be created using
14202         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14203         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14204         ;;
14205       icpc*)
14206         # Intel C++
14207         with_gnu_ld=yes
14208         # version 8.0 and above of icpc choke on multiply defined symbols
14209         # if we add $predep_objects and $postdep_objects, however 7.1 and
14210         # earlier do not add the objects themselves.
14211         case `$CC -V 2>&1` in
14212         *"Version 7."*)
14213           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214           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'
14215           ;;
14216         *)  # Version 8.0 or newer
14217           tmp_idyn=
14218           case $host_cpu in
14219             ia64*) tmp_idyn=' -i_dynamic';;
14220           esac
14221           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14222           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'
14223           ;;
14224         esac
14225         archive_cmds_need_lc_CXX=no
14226         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14227         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14228         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14229         ;;
14230       pgCC* | pgcpp*)
14231         # Portland Group C++ compiler
14232         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14233         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'
14234
14235         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14236         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14237         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'
14238         ;;
14239       cxx*)
14240         # Compaq C++
14241         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242         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'
14243
14244         runpath_var=LD_RUN_PATH
14245         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14246         hardcode_libdir_separator_CXX=:
14247
14248         # Commands to make compiler produce verbose output that lists
14249         # what "hidden" libraries, object files and flags are used when
14250         # linking a shared library.
14251         #
14252         # There doesn't appear to be a way to prevent this compiler from
14253         # explicitly linking system object files so we need to strip them
14254         # from the output so that they don't get included in the library
14255         # dependencies.
14256         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
14257         ;;
14258       *)
14259         case `$CC -V 2>&1 | sed 5q` in
14260         *Sun\ C*)
14261           # Sun C++ 5.9
14262           no_undefined_flag_CXX=' -zdefs'
14263           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14264           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'
14265           hardcode_libdir_flag_spec_CXX='-R$libdir'
14266           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'
14267
14268           # Not sure whether something based on
14269           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14270           # would be better.
14271           output_verbose_link_cmd='echo'
14272
14273           # Archives containing C++ object files must be created using
14274           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14275           # necessary to make sure instantiated templates are included
14276           # in the archive.
14277           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14278           ;;
14279         esac
14280         ;;
14281     esac
14282     ;;
14283   lynxos*)
14284     # FIXME: insert proper C++ library support
14285     ld_shlibs_CXX=no
14286     ;;
14287   m88k*)
14288     # FIXME: insert proper C++ library support
14289     ld_shlibs_CXX=no
14290     ;;
14291   mvs*)
14292     case $cc_basename in
14293       cxx*)
14294         # FIXME: insert proper C++ library support
14295         ld_shlibs_CXX=no
14296         ;;
14297       *)
14298         # FIXME: insert proper C++ library support
14299         ld_shlibs_CXX=no
14300         ;;
14301     esac
14302     ;;
14303   netbsd*)
14304     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14305       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14306       wlarc=
14307       hardcode_libdir_flag_spec_CXX='-R$libdir'
14308       hardcode_direct_CXX=yes
14309       hardcode_shlibpath_var_CXX=no
14310     fi
14311     # Workaround some broken pre-1.5 toolchains
14312     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14313     ;;
14314   openbsd2*)
14315     # C++ shared libraries are fairly broken
14316     ld_shlibs_CXX=no
14317     ;;
14318   openbsd*)
14319     if test -f /usr/libexec/ld.so; then
14320       hardcode_direct_CXX=yes
14321       hardcode_shlibpath_var_CXX=no
14322       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14323       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14324       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14325         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14326         export_dynamic_flag_spec_CXX='${wl}-E'
14327         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14328       fi
14329       output_verbose_link_cmd='echo'
14330     else
14331       ld_shlibs_CXX=no
14332     fi
14333     ;;
14334   osf3*)
14335     case $cc_basename in
14336       KCC*)
14337         # Kuck and Associates, Inc. (KAI) C++ Compiler
14338
14339         # KCC will only create a shared library if the output file
14340         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14341         # to its proper name (with version) after linking.
14342         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'
14343
14344         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14345         hardcode_libdir_separator_CXX=:
14346
14347         # Archives containing C++ object files must be created using
14348         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14349         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14350
14351         ;;
14352       RCC*)
14353         # Rational C++ 2.4.1
14354         # FIXME: insert proper C++ library support
14355         ld_shlibs_CXX=no
14356         ;;
14357       cxx*)
14358         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14359         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14360
14361         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14362         hardcode_libdir_separator_CXX=:
14363
14364         # Commands to make compiler produce verbose output that lists
14365         # what "hidden" libraries, object files and flags are used when
14366         # linking a shared library.
14367         #
14368         # There doesn't appear to be a way to prevent this compiler from
14369         # explicitly linking system object files so we need to strip them
14370         # from the output so that they don't get included in the library
14371         # dependencies.
14372         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
14373         ;;
14374       *)
14375         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14376           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14377           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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14378
14379           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14380           hardcode_libdir_separator_CXX=:
14381
14382           # Commands to make compiler produce verbose output that lists
14383           # what "hidden" libraries, object files and flags are used when
14384           # linking a shared library.
14385           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14386
14387         else
14388           # FIXME: insert proper C++ library support
14389           ld_shlibs_CXX=no
14390         fi
14391         ;;
14392     esac
14393     ;;
14394   osf4* | osf5*)
14395     case $cc_basename in
14396       KCC*)
14397         # Kuck and Associates, Inc. (KAI) C++ Compiler
14398
14399         # KCC will only create a shared library if the output file
14400         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14401         # to its proper name (with version) after linking.
14402         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'
14403
14404         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14405         hardcode_libdir_separator_CXX=:
14406
14407         # Archives containing C++ object files must be created using
14408         # the KAI C++ compiler.
14409         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14410         ;;
14411       RCC*)
14412         # Rational C++ 2.4.1
14413         # FIXME: insert proper C++ library support
14414         ld_shlibs_CXX=no
14415         ;;
14416       cxx*)
14417         allow_undefined_flag_CXX=' -expect_unresolved \*'
14418         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14419         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14420           echo "-hidden">> $lib.exp~
14421           $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
14422           $rm $lib.exp'
14423
14424         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14425         hardcode_libdir_separator_CXX=:
14426
14427         # Commands to make compiler produce verbose output that lists
14428         # what "hidden" libraries, object files and flags are used when
14429         # linking a shared library.
14430         #
14431         # There doesn't appear to be a way to prevent this compiler from
14432         # explicitly linking system object files so we need to strip them
14433         # from the output so that they don't get included in the library
14434         # dependencies.
14435         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
14436         ;;
14437       *)
14438         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14439           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14440          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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14441
14442           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14443           hardcode_libdir_separator_CXX=:
14444
14445           # Commands to make compiler produce verbose output that lists
14446           # what "hidden" libraries, object files and flags are used when
14447           # linking a shared library.
14448           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14449
14450         else
14451           # FIXME: insert proper C++ library support
14452           ld_shlibs_CXX=no
14453         fi
14454         ;;
14455     esac
14456     ;;
14457   psos*)
14458     # FIXME: insert proper C++ library support
14459     ld_shlibs_CXX=no
14460     ;;
14461   sunos4*)
14462     case $cc_basename in
14463       CC*)
14464         # Sun C++ 4.x
14465         # FIXME: insert proper C++ library support
14466         ld_shlibs_CXX=no
14467         ;;
14468       lcc*)
14469         # Lucid
14470         # FIXME: insert proper C++ library support
14471         ld_shlibs_CXX=no
14472         ;;
14473       *)
14474         # FIXME: insert proper C++ library support
14475         ld_shlibs_CXX=no
14476         ;;
14477     esac
14478     ;;
14479   solaris*)
14480     case $cc_basename in
14481       CC*)
14482         # Sun C++ 4.2, 5.x and Centerline C++
14483         archive_cmds_need_lc_CXX=yes
14484         no_undefined_flag_CXX=' -zdefs'
14485         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14486         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14487         $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'
14488
14489         hardcode_libdir_flag_spec_CXX='-R$libdir'
14490         hardcode_shlibpath_var_CXX=no
14491         case $host_os in
14492           solaris2.[0-5] | solaris2.[0-5].*) ;;
14493           *)
14494             # The compiler driver will combine and reorder linker options,
14495             # but understands `-z linker_flag'.
14496             # Supported since Solaris 2.6 (maybe 2.5.1?)
14497             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14498             ;;
14499         esac
14500         link_all_deplibs_CXX=yes
14501
14502         output_verbose_link_cmd='echo'
14503
14504         # Archives containing C++ object files must be created using
14505         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14506         # necessary to make sure instantiated templates are included
14507         # in the archive.
14508         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14509         ;;
14510       gcx*)
14511         # Green Hills C++ Compiler
14512         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14513
14514         # The C++ compiler must be used to create the archive.
14515         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14516         ;;
14517       *)
14518         # GNU C++ compiler with Solaris linker
14519         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14520           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14521           if $CC --version | grep -v '^2\.7' > /dev/null; then
14522             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14523             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14524                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14525
14526             # Commands to make compiler produce verbose output that lists
14527             # what "hidden" libraries, object files and flags are used when
14528             # linking a shared library.
14529             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14530           else
14531             # g++ 2.7 appears to require `-G' NOT `-shared' on this
14532             # platform.
14533             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14534             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14535                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14536
14537             # Commands to make compiler produce verbose output that lists
14538             # what "hidden" libraries, object files and flags are used when
14539             # linking a shared library.
14540             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14541           fi
14542
14543           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14544           case $host_os in
14545           solaris2.[0-5] | solaris2.[0-5].*) ;;
14546           *)
14547             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14548             ;;
14549           esac
14550         fi
14551         ;;
14552     esac
14553     ;;
14554   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14555     no_undefined_flag_CXX='${wl}-z,text'
14556     archive_cmds_need_lc_CXX=no
14557     hardcode_shlibpath_var_CXX=no
14558     runpath_var='LD_RUN_PATH'
14559
14560     case $cc_basename in
14561       CC*)
14562         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14564         ;;
14565       *)
14566         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14567         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568         ;;
14569     esac
14570     ;;
14571   sysv5* | sco3.2v5* | sco5v6*)
14572     # Note: We can NOT use -z defs as we might desire, because we do not
14573     # link with -lc, and that would cause any symbols used from libc to
14574     # always be unresolved, which means just about no library would
14575     # ever link correctly.  If we're not using GNU ld we use -z text
14576     # though, which does catch some bad symbols but isn't as heavy-handed
14577     # as -z defs.
14578     # For security reasons, it is highly recommended that you always
14579     # use absolute paths for naming shared libraries, and exclude the
14580     # DT_RUNPATH tag from executables and libraries.  But doing so
14581     # requires that you compile everything twice, which is a pain.
14582     # So that behaviour is only enabled if SCOABSPATH is set to a
14583     # non-empty value in the environment.  Most likely only useful for
14584     # creating official distributions of packages.
14585     # This is a hack until libtool officially supports absolute path
14586     # names for shared libraries.
14587     no_undefined_flag_CXX='${wl}-z,text'
14588     allow_undefined_flag_CXX='${wl}-z,nodefs'
14589     archive_cmds_need_lc_CXX=no
14590     hardcode_shlibpath_var_CXX=no
14591     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14592     hardcode_libdir_separator_CXX=':'
14593     link_all_deplibs_CXX=yes
14594     export_dynamic_flag_spec_CXX='${wl}-Bexport'
14595     runpath_var='LD_RUN_PATH'
14596
14597     case $cc_basename in
14598       CC*)
14599         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14600         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14601         ;;
14602       *)
14603         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14604         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14605         ;;
14606     esac
14607     ;;
14608   tandem*)
14609     case $cc_basename in
14610       NCC*)
14611         # NonStop-UX NCC 3.20
14612         # FIXME: insert proper C++ library support
14613         ld_shlibs_CXX=no
14614         ;;
14615       *)
14616         # FIXME: insert proper C++ library support
14617         ld_shlibs_CXX=no
14618         ;;
14619     esac
14620     ;;
14621   vxworks*)
14622     # FIXME: insert proper C++ library support
14623     ld_shlibs_CXX=no
14624     ;;
14625   *)
14626     # FIXME: insert proper C++ library support
14627     ld_shlibs_CXX=no
14628     ;;
14629 esac
14630 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14631 $as_echo "$ld_shlibs_CXX" >&6; }
14632 test "$ld_shlibs_CXX" = no && can_build_shared=no
14633
14634 GCC_CXX="$GXX"
14635 LD_CXX="$LD"
14636
14637 cat > conftest.$ac_ext <<EOF
14638 class Foo
14639 {
14640 public:
14641   Foo (void) { a = 0; }
14642 private:
14643   int a;
14644 };
14645 EOF
14646
14647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648   (eval $ac_compile) 2>&5
14649   ac_status=$?
14650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; then
14652   # Parse the compiler output and extract the necessary
14653   # objects, libraries and library flags.
14654
14655   # Sentinel used to keep track of whether or not we are before
14656   # the conftest object file.
14657   pre_test_object_deps_done=no
14658
14659   # The `*' in the case matches for architectures that use `case' in
14660   # $output_verbose_cmd can trigger glob expansion during the loop
14661   # eval without this substitution.
14662   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14663
14664   for p in `eval $output_verbose_link_cmd`; do
14665     case $p in
14666
14667     -L* | -R* | -l*)
14668        # Some compilers place space between "-{L,R}" and the path.
14669        # Remove the space.
14670        if test $p = "-L" \
14671           || test $p = "-R"; then
14672          prev=$p
14673          continue
14674        else
14675          prev=
14676        fi
14677
14678        if test "$pre_test_object_deps_done" = no; then
14679          case $p in
14680          -L* | -R*)
14681            # Internal compiler library paths should come after those
14682            # provided the user.  The postdeps already come after the
14683            # user supplied libs so there is no need to process them.
14684            if test -z "$compiler_lib_search_path_CXX"; then
14685              compiler_lib_search_path_CXX="${prev}${p}"
14686            else
14687              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14688            fi
14689            ;;
14690          # The "-l" case would never come before the object being
14691          # linked, so don't bother handling this case.
14692          esac
14693        else
14694          if test -z "$postdeps_CXX"; then
14695            postdeps_CXX="${prev}${p}"
14696          else
14697            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14698          fi
14699        fi
14700        ;;
14701
14702     *.$objext)
14703        # This assumes that the test object file only shows up
14704        # once in the compiler output.
14705        if test "$p" = "conftest.$objext"; then
14706          pre_test_object_deps_done=yes
14707          continue
14708        fi
14709
14710        if test "$pre_test_object_deps_done" = no; then
14711          if test -z "$predep_objects_CXX"; then
14712            predep_objects_CXX="$p"
14713          else
14714            predep_objects_CXX="$predep_objects_CXX $p"
14715          fi
14716        else
14717          if test -z "$postdep_objects_CXX"; then
14718            postdep_objects_CXX="$p"
14719          else
14720            postdep_objects_CXX="$postdep_objects_CXX $p"
14721          fi
14722        fi
14723        ;;
14724
14725     *) ;; # Ignore the rest.
14726
14727     esac
14728   done
14729
14730   # Clean up.
14731   rm -f a.out a.exe
14732 else
14733   echo "libtool.m4: error: problem compiling CXX test program"
14734 fi
14735
14736 $rm -f confest.$objext
14737
14738 compiler_lib_search_dirs_CXX=
14739 if test -n "$compiler_lib_search_path_CXX"; then
14740   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14741 fi
14742
14743 # PORTME: override above test on systems where it is broken
14744 case $host_os in
14745 interix[3-9]*)
14746   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14747   # hack all around it, let's just trust "g++" to DTRT.
14748   predep_objects_CXX=
14749   postdep_objects_CXX=
14750   postdeps_CXX=
14751   ;;
14752
14753 linux*)
14754   case `$CC -V 2>&1 | sed 5q` in
14755   *Sun\ C*)
14756     # Sun C++ 5.9
14757     #
14758     # The more standards-conforming stlport4 library is
14759     # incompatible with the Cstd library. Avoid specifying
14760     # it if it's in CXXFLAGS. Ignore libCrun as
14761     # -library=stlport4 depends on it.
14762     case " $CXX $CXXFLAGS " in
14763     *" -library=stlport4 "*)
14764       solaris_use_stlport4=yes
14765       ;;
14766     esac
14767     if test "$solaris_use_stlport4" != yes; then
14768       postdeps_CXX='-library=Cstd -library=Crun'
14769     fi
14770     ;;
14771   esac
14772   ;;
14773
14774 solaris*)
14775   case $cc_basename in
14776   CC*)
14777     # The more standards-conforming stlport4 library is
14778     # incompatible with the Cstd library. Avoid specifying
14779     # it if it's in CXXFLAGS. Ignore libCrun as
14780     # -library=stlport4 depends on it.
14781     case " $CXX $CXXFLAGS " in
14782     *" -library=stlport4 "*)
14783       solaris_use_stlport4=yes
14784       ;;
14785     esac
14786
14787     # Adding this requires a known-good setup of shared libraries for
14788     # Sun compiler versions before 5.6, else PIC objects from an old
14789     # archive will be linked into the output, leading to subtle bugs.
14790     if test "$solaris_use_stlport4" != yes; then
14791       postdeps_CXX='-library=Cstd -library=Crun'
14792     fi
14793     ;;
14794   esac
14795   ;;
14796 esac
14797
14798 case " $postdeps_CXX " in
14799 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14800 esac
14801
14802 lt_prog_compiler_wl_CXX=
14803 lt_prog_compiler_pic_CXX=
14804 lt_prog_compiler_static_CXX=
14805
14806 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14807 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14808
14809   # C++ specific cases for pic, static, wl, etc.
14810   if test "$GXX" = yes; then
14811     lt_prog_compiler_wl_CXX='-Wl,'
14812     lt_prog_compiler_static_CXX='-static'
14813
14814     case $host_os in
14815     aix*)
14816       # All AIX code is PIC.
14817       if test "$host_cpu" = ia64; then
14818         # AIX 5 now supports IA64 processor
14819         lt_prog_compiler_static_CXX='-Bstatic'
14820       fi
14821       ;;
14822     amigaos*)
14823       # FIXME: we need at least 68020 code to build shared libraries, but
14824       # adding the `-m68020' flag to GCC prevents building anything better,
14825       # like `-m68040'.
14826       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14827       ;;
14828     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14829       # PIC is the default for these OSes.
14830       ;;
14831     mingw* | cygwin* | os2* | pw32*)
14832       # This hack is so that the source file can tell whether it is being
14833       # built for inclusion in a dll (and should export symbols for example).
14834       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14835       # (--disable-auto-import) libraries
14836       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14837       ;;
14838     darwin* | rhapsody*)
14839       # PIC is the default on this platform
14840       # Common symbols not allowed in MH_DYLIB files
14841       lt_prog_compiler_pic_CXX='-fno-common'
14842       ;;
14843     *djgpp*)
14844       # DJGPP does not support shared libraries at all
14845       lt_prog_compiler_pic_CXX=
14846       ;;
14847     interix[3-9]*)
14848       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14849       # Instead, we relocate shared libraries at runtime.
14850       ;;
14851     sysv4*MP*)
14852       if test -d /usr/nec; then
14853         lt_prog_compiler_pic_CXX=-Kconform_pic
14854       fi
14855       ;;
14856     hpux*)
14857       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14858       # not for PA HP-UX.
14859       case $host_cpu in
14860       hppa*64*|ia64*)
14861         ;;
14862       *)
14863         lt_prog_compiler_pic_CXX='-fPIC'
14864         ;;
14865       esac
14866       ;;
14867     *)
14868       lt_prog_compiler_pic_CXX='-fPIC'
14869       ;;
14870     esac
14871   else
14872     case $host_os in
14873       aix[4-9]*)
14874         # All AIX code is PIC.
14875         if test "$host_cpu" = ia64; then
14876           # AIX 5 now supports IA64 processor
14877           lt_prog_compiler_static_CXX='-Bstatic'
14878         else
14879           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14880         fi
14881         ;;
14882       chorus*)
14883         case $cc_basename in
14884         cxch68*)
14885           # Green Hills C++ Compiler
14886           # _LT_AC_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"
14887           ;;
14888         esac
14889         ;;
14890        darwin*)
14891          # PIC is the default on this platform
14892          # Common symbols not allowed in MH_DYLIB files
14893          case $cc_basename in
14894            xlc*)
14895            lt_prog_compiler_pic_CXX='-qnocommon'
14896            lt_prog_compiler_wl_CXX='-Wl,'
14897            ;;
14898          esac
14899        ;;
14900       dgux*)
14901         case $cc_basename in
14902           ec++*)
14903             lt_prog_compiler_pic_CXX='-KPIC'
14904             ;;
14905           ghcx*)
14906             # Green Hills C++ Compiler
14907             lt_prog_compiler_pic_CXX='-pic'
14908             ;;
14909           *)
14910             ;;
14911         esac
14912         ;;
14913       freebsd* | dragonfly*)
14914         # FreeBSD uses GNU C++
14915         ;;
14916       hpux9* | hpux10* | hpux11*)
14917         case $cc_basename in
14918           CC*)
14919             lt_prog_compiler_wl_CXX='-Wl,'
14920             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14921             if test "$host_cpu" != ia64; then
14922               lt_prog_compiler_pic_CXX='+Z'
14923             fi
14924             ;;
14925           aCC*)
14926             lt_prog_compiler_wl_CXX='-Wl,'
14927             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14928             case $host_cpu in
14929             hppa*64*|ia64*)
14930               # +Z the default
14931               ;;
14932             *)
14933               lt_prog_compiler_pic_CXX='+Z'
14934               ;;
14935             esac
14936             ;;
14937           *)
14938             ;;
14939         esac
14940         ;;
14941       interix*)
14942         # This is c89, which is MS Visual C++ (no shared libs)
14943         # Anyone wants to do a port?
14944         ;;
14945       irix5* | irix6* | nonstopux*)
14946         case $cc_basename in
14947           CC*)
14948             lt_prog_compiler_wl_CXX='-Wl,'
14949             lt_prog_compiler_static_CXX='-non_shared'
14950             # CC pic flag -KPIC is the default.
14951             ;;
14952           *)
14953             ;;
14954         esac
14955         ;;
14956       linux* | k*bsd*-gnu)
14957         case $cc_basename in
14958           KCC*)
14959             # KAI C++ Compiler
14960             lt_prog_compiler_wl_CXX='--backend -Wl,'
14961             lt_prog_compiler_pic_CXX='-fPIC'
14962             ;;
14963           icpc* | ecpc*)
14964             # Intel C++
14965             lt_prog_compiler_wl_CXX='-Wl,'
14966             lt_prog_compiler_pic_CXX='-KPIC'
14967             lt_prog_compiler_static_CXX='-static'
14968             ;;
14969           pgCC* | pgcpp*)
14970             # Portland Group C++ compiler.
14971             lt_prog_compiler_wl_CXX='-Wl,'
14972             lt_prog_compiler_pic_CXX='-fpic'
14973             lt_prog_compiler_static_CXX='-Bstatic'
14974             ;;
14975           cxx*)
14976             # Compaq C++
14977             # Make sure the PIC flag is empty.  It appears that all Alpha
14978             # Linux and Compaq Tru64 Unix objects are PIC.
14979             lt_prog_compiler_pic_CXX=
14980             lt_prog_compiler_static_CXX='-non_shared'
14981             ;;
14982           *)
14983             case `$CC -V 2>&1 | sed 5q` in
14984             *Sun\ C*)
14985               # Sun C++ 5.9
14986               lt_prog_compiler_pic_CXX='-KPIC'
14987               lt_prog_compiler_static_CXX='-Bstatic'
14988               lt_prog_compiler_wl_CXX='-Qoption ld '
14989               ;;
14990             esac
14991             ;;
14992         esac
14993         ;;
14994       lynxos*)
14995         ;;
14996       m88k*)
14997         ;;
14998       mvs*)
14999         case $cc_basename in
15000           cxx*)
15001             lt_prog_compiler_pic_CXX='-W c,exportall'
15002             ;;
15003           *)
15004             ;;
15005         esac
15006         ;;
15007       netbsd*)
15008         ;;
15009       osf3* | osf4* | osf5*)
15010         case $cc_basename in
15011           KCC*)
15012             lt_prog_compiler_wl_CXX='--backend -Wl,'
15013             ;;
15014           RCC*)
15015             # Rational C++ 2.4.1
15016             lt_prog_compiler_pic_CXX='-pic'
15017             ;;
15018           cxx*)
15019             # Digital/Compaq C++
15020             lt_prog_compiler_wl_CXX='-Wl,'
15021             # Make sure the PIC flag is empty.  It appears that all Alpha
15022             # Linux and Compaq Tru64 Unix objects are PIC.
15023             lt_prog_compiler_pic_CXX=
15024             lt_prog_compiler_static_CXX='-non_shared'
15025             ;;
15026           *)
15027             ;;
15028         esac
15029         ;;
15030       psos*)
15031         ;;
15032       solaris*)
15033         case $cc_basename in
15034           CC*)
15035             # Sun C++ 4.2, 5.x and Centerline C++
15036             lt_prog_compiler_pic_CXX='-KPIC'
15037             lt_prog_compiler_static_CXX='-Bstatic'
15038             lt_prog_compiler_wl_CXX='-Qoption ld '
15039             ;;
15040           gcx*)
15041             # Green Hills C++ Compiler
15042             lt_prog_compiler_pic_CXX='-PIC'
15043             ;;
15044           *)
15045             ;;
15046         esac
15047         ;;
15048       sunos4*)
15049         case $cc_basename in
15050           CC*)
15051             # Sun C++ 4.x
15052             lt_prog_compiler_pic_CXX='-pic'
15053             lt_prog_compiler_static_CXX='-Bstatic'
15054             ;;
15055           lcc*)
15056             # Lucid
15057             lt_prog_compiler_pic_CXX='-pic'
15058             ;;
15059           *)
15060             ;;
15061         esac
15062         ;;
15063       tandem*)
15064         case $cc_basename in
15065           NCC*)
15066             # NonStop-UX NCC 3.20
15067             lt_prog_compiler_pic_CXX='-KPIC'
15068             ;;
15069           *)
15070             ;;
15071         esac
15072         ;;
15073       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15074         case $cc_basename in
15075           CC*)
15076             lt_prog_compiler_wl_CXX='-Wl,'
15077             lt_prog_compiler_pic_CXX='-KPIC'
15078             lt_prog_compiler_static_CXX='-Bstatic'
15079             ;;
15080         esac
15081         ;;
15082       vxworks*)
15083         ;;
15084       *)
15085         lt_prog_compiler_can_build_shared_CXX=no
15086         ;;
15087     esac
15088   fi
15089
15090 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15091 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15092
15093 #
15094 # Check to make sure the PIC flag actually works.
15095 #
15096 if test -n "$lt_prog_compiler_pic_CXX"; then
15097
15098 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15099 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15100 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15101   $as_echo_n "(cached) " >&6
15102 else
15103   lt_cv_prog_compiler_pic_works_CXX=no
15104   ac_outfile=conftest.$ac_objext
15105    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15106    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15107    # Insert the option either (1) after the last *FLAGS variable, or
15108    # (2) before a word containing "conftest.", or (3) at the end.
15109    # Note that $ac_compile itself does not contain backslashes and begins
15110    # with a dollar sign (not a hyphen), so the echo should work correctly.
15111    # The option is referenced via a variable to avoid confusing sed.
15112    lt_compile=`echo "$ac_compile" | $SED \
15113    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15114    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15115    -e 's:$: $lt_compiler_flag:'`
15116    (eval echo "\"\$as_me:15116: $lt_compile\"" >&5)
15117    (eval "$lt_compile" 2>conftest.err)
15118    ac_status=$?
15119    cat conftest.err >&5
15120    echo "$as_me:15120: \$? = $ac_status" >&5
15121    if (exit $ac_status) && test -s "$ac_outfile"; then
15122      # The compiler can only warn and ignore the option if not recognized
15123      # So say no if there are warnings other than the usual output.
15124      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15125      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15126      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15127        lt_cv_prog_compiler_pic_works_CXX=yes
15128      fi
15129    fi
15130    $rm conftest*
15131
15132 fi
15133 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15134 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15135
15136 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15137     case $lt_prog_compiler_pic_CXX in
15138      "" | " "*) ;;
15139      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15140      esac
15141 else
15142     lt_prog_compiler_pic_CXX=
15143      lt_prog_compiler_can_build_shared_CXX=no
15144 fi
15145
15146 fi
15147 case $host_os in
15148   # For platforms which do not support PIC, -DPIC is meaningless:
15149   *djgpp*)
15150     lt_prog_compiler_pic_CXX=
15151     ;;
15152   *)
15153     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15154     ;;
15155 esac
15156
15157 #
15158 # Check to make sure the static flag actually works.
15159 #
15160 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15161 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15162 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15163 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15164   $as_echo_n "(cached) " >&6
15165 else
15166   lt_cv_prog_compiler_static_works_CXX=no
15167    save_LDFLAGS="$LDFLAGS"
15168    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15169    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15170    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15171      # The linker can only warn and ignore the option if not recognized
15172      # So say no if there are warnings
15173      if test -s conftest.err; then
15174        # Append any errors to the config.log.
15175        cat conftest.err 1>&5
15176        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15177        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15178        if diff conftest.exp conftest.er2 >/dev/null; then
15179          lt_cv_prog_compiler_static_works_CXX=yes
15180        fi
15181      else
15182        lt_cv_prog_compiler_static_works_CXX=yes
15183      fi
15184    fi
15185    $rm -r conftest*
15186    LDFLAGS="$save_LDFLAGS"
15187
15188 fi
15189 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15190 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15191
15192 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15193     :
15194 else
15195     lt_prog_compiler_static_CXX=
15196 fi
15197
15198
15199 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15200 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15201 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15202   $as_echo_n "(cached) " >&6
15203 else
15204   lt_cv_prog_compiler_c_o_CXX=no
15205    $rm -r conftest 2>/dev/null
15206    mkdir conftest
15207    cd conftest
15208    mkdir out
15209    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15210
15211    lt_compiler_flag="-o out/conftest2.$ac_objext"
15212    # Insert the option either (1) after the last *FLAGS variable, or
15213    # (2) before a word containing "conftest.", or (3) at the end.
15214    # Note that $ac_compile itself does not contain backslashes and begins
15215    # with a dollar sign (not a hyphen), so the echo should work correctly.
15216    lt_compile=`echo "$ac_compile" | $SED \
15217    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15218    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15219    -e 's:$: $lt_compiler_flag:'`
15220    (eval echo "\"\$as_me:15220: $lt_compile\"" >&5)
15221    (eval "$lt_compile" 2>out/conftest.err)
15222    ac_status=$?
15223    cat out/conftest.err >&5
15224    echo "$as_me:15224: \$? = $ac_status" >&5
15225    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15226    then
15227      # The compiler can only warn and ignore the option if not recognized
15228      # So say no if there are warnings
15229      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15230      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15231      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15232        lt_cv_prog_compiler_c_o_CXX=yes
15233      fi
15234    fi
15235    chmod u+w . 2>&5
15236    $rm conftest*
15237    # SGI C++ compiler will create directory out/ii_files/ for
15238    # template instantiation
15239    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15240    $rm out/* && rmdir out
15241    cd ..
15242    rmdir conftest
15243    $rm conftest*
15244
15245 fi
15246 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15247 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15248
15249
15250 hard_links="nottested"
15251 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15252   # do not overwrite the value of need_locks provided by the user
15253   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15254 $as_echo_n "checking if we can lock with hard links... " >&6; }
15255   hard_links=yes
15256   $rm conftest*
15257   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15258   touch conftest.a
15259   ln conftest.a conftest.b 2>&5 || hard_links=no
15260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15261   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15262 $as_echo "$hard_links" >&6; }
15263   if test "$hard_links" = no; then
15264     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15265 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15266     need_locks=warn
15267   fi
15268 else
15269   need_locks=no
15270 fi
15271
15272 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15274
15275   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15276   case $host_os in
15277   aix[4-9]*)
15278     # If we're using GNU nm, then we don't want the "-C" option.
15279     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15280     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15281       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'
15282     else
15283       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'
15284     fi
15285     ;;
15286   pw32*)
15287     export_symbols_cmds_CXX="$ltdll_cmds"
15288   ;;
15289   cygwin* | mingw*)
15290     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'
15291   ;;
15292   *)
15293     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15294   ;;
15295   esac
15296   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15297
15298 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15299 $as_echo "$ld_shlibs_CXX" >&6; }
15300 test "$ld_shlibs_CXX" = no && can_build_shared=no
15301
15302 #
15303 # Do we need to explicitly link libc?
15304 #
15305 case "x$archive_cmds_need_lc_CXX" in
15306 x|xyes)
15307   # Assume -lc should be added
15308   archive_cmds_need_lc_CXX=yes
15309
15310   if test "$enable_shared" = yes && test "$GCC" = yes; then
15311     case $archive_cmds_CXX in
15312     *'~'*)
15313       # FIXME: we may have to deal with multi-command sequences.
15314       ;;
15315     '$CC '*)
15316       # Test whether the compiler implicitly links with -lc since on some
15317       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15318       # to ld, don't add -lc before -lgcc.
15319       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15320 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15321       $rm conftest*
15322       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15323
15324       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325   (eval $ac_compile) 2>&5
15326   ac_status=$?
15327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } 2>conftest.err; then
15329         soname=conftest
15330         lib=conftest
15331         libobjs=conftest.$ac_objext
15332         deplibs=
15333         wl=$lt_prog_compiler_wl_CXX
15334         pic_flag=$lt_prog_compiler_pic_CXX
15335         compiler_flags=-v
15336         linker_flags=-v
15337         verstring=
15338         output_objdir=.
15339         libname=conftest
15340         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15341         allow_undefined_flag_CXX=
15342         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15343   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15344   ac_status=$?
15345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }
15347         then
15348           archive_cmds_need_lc_CXX=no
15349         else
15350           archive_cmds_need_lc_CXX=yes
15351         fi
15352         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15353       else
15354         cat conftest.err 1>&5
15355       fi
15356       $rm conftest*
15357       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15358 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15359       ;;
15360     esac
15361   fi
15362   ;;
15363 esac
15364
15365 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15366 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15367 library_names_spec=
15368 libname_spec='lib$name'
15369 soname_spec=
15370 shrext_cmds=".so"
15371 postinstall_cmds=
15372 postuninstall_cmds=
15373 finish_cmds=
15374 finish_eval=
15375 shlibpath_var=
15376 shlibpath_overrides_runpath=unknown
15377 version_type=none
15378 dynamic_linker="$host_os ld.so"
15379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15380
15381 need_lib_prefix=unknown
15382 hardcode_into_libs=no
15383
15384 # when you set need_version to no, make sure it does not cause -set_version
15385 # flags to be left without arguments
15386 need_version=unknown
15387
15388 case $host_os in
15389 aix3*)
15390   version_type=linux
15391   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15392   shlibpath_var=LIBPATH
15393
15394   # AIX 3 has no versioning support, so we append a major version to the name.
15395   soname_spec='${libname}${release}${shared_ext}$major'
15396   ;;
15397
15398 aix[4-9]*)
15399   version_type=linux
15400   need_lib_prefix=no
15401   need_version=no
15402   hardcode_into_libs=yes
15403   if test "$host_cpu" = ia64; then
15404     # AIX 5 supports IA64
15405     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15406     shlibpath_var=LD_LIBRARY_PATH
15407   else
15408     # With GCC up to 2.95.x, collect2 would create an import file
15409     # for dependence libraries.  The import file would start with
15410     # the line `#! .'.  This would cause the generated library to
15411     # depend on `.', always an invalid library.  This was fixed in
15412     # development snapshots of GCC prior to 3.0.
15413     case $host_os in
15414       aix4 | aix4.[01] | aix4.[01].*)
15415       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15416            echo ' yes '
15417            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15418         :
15419       else
15420         can_build_shared=no
15421       fi
15422       ;;
15423     esac
15424     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15425     # soname into executable. Probably we can add versioning support to
15426     # collect2, so additional links can be useful in future.
15427     if test "$aix_use_runtimelinking" = yes; then
15428       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15429       # instead of lib<name>.a to let people know that these are not
15430       # typical AIX shared libraries.
15431       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432     else
15433       # We preserve .a as extension for shared libraries through AIX4.2
15434       # and later when we are not doing run time linking.
15435       library_names_spec='${libname}${release}.a $libname.a'
15436       soname_spec='${libname}${release}${shared_ext}$major'
15437     fi
15438     shlibpath_var=LIBPATH
15439   fi
15440   ;;
15441
15442 amigaos*)
15443   library_names_spec='$libname.ixlibrary $libname.a'
15444   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15445   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'
15446   ;;
15447
15448 beos*)
15449   library_names_spec='${libname}${shared_ext}'
15450   dynamic_linker="$host_os ld.so"
15451   shlibpath_var=LIBRARY_PATH
15452   ;;
15453
15454 bsdi[45]*)
15455   version_type=linux
15456   need_version=no
15457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458   soname_spec='${libname}${release}${shared_ext}$major'
15459   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15460   shlibpath_var=LD_LIBRARY_PATH
15461   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15462   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15463   # the default ld.so.conf also contains /usr/contrib/lib and
15464   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15465   # libtool to hard-code these into programs
15466   ;;
15467
15468 cygwin* | mingw* | pw32*)
15469   version_type=windows
15470   shrext_cmds=".dll"
15471   need_version=no
15472   need_lib_prefix=no
15473
15474   case $GCC,$host_os in
15475   yes,cygwin* | yes,mingw* | yes,pw32*)
15476     library_names_spec='$libname.dll.a'
15477     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15478     postinstall_cmds='base_file=`basename \${file}`~
15479       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15480       dldir=$destdir/`dirname \$dlpath`~
15481       test -d \$dldir || mkdir -p \$dldir~
15482       $install_prog $dir/$dlname \$dldir/$dlname~
15483       chmod a+x \$dldir/$dlname'
15484     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15485       dlpath=$dir/\$dldll~
15486        $rm \$dlpath'
15487     shlibpath_overrides_runpath=yes
15488
15489     case $host_os in
15490     cygwin*)
15491       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15492       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15493       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15494       ;;
15495     mingw*)
15496       # MinGW DLLs use traditional 'lib' prefix
15497       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15498       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15499       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15500         # It is most probably a Windows format PATH printed by
15501         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15502         # path with ; separators, and with drive letters. We can handle the
15503         # drive letters (cygwin fileutils understands them), so leave them,
15504         # especially as we might pass files found there to a mingw objdump,
15505         # which wouldn't understand a cygwinified path. Ahh.
15506         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15507       else
15508         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15509       fi
15510       ;;
15511     pw32*)
15512       # pw32 DLLs use 'pw' prefix rather than 'lib'
15513       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15514       ;;
15515     esac
15516     ;;
15517
15518   *)
15519     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15520     ;;
15521   esac
15522   dynamic_linker='Win32 ld.exe'
15523   # FIXME: first we should search . and the directory the executable is in
15524   shlibpath_var=PATH
15525   ;;
15526
15527 darwin* | rhapsody*)
15528   dynamic_linker="$host_os dyld"
15529   version_type=darwin
15530   need_lib_prefix=no
15531   need_version=no
15532   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15533   soname_spec='${libname}${release}${major}$shared_ext'
15534   shlibpath_overrides_runpath=yes
15535   shlibpath_var=DYLD_LIBRARY_PATH
15536   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15537
15538   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15539   ;;
15540
15541 dgux*)
15542   version_type=linux
15543   need_lib_prefix=no
15544   need_version=no
15545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15546   soname_spec='${libname}${release}${shared_ext}$major'
15547   shlibpath_var=LD_LIBRARY_PATH
15548   ;;
15549
15550 freebsd1*)
15551   dynamic_linker=no
15552   ;;
15553
15554 freebsd* | dragonfly*)
15555   # DragonFly does not have aout.  When/if they implement a new
15556   # versioning mechanism, adjust this.
15557   if test -x /usr/bin/objformat; then
15558     objformat=`/usr/bin/objformat`
15559   else
15560     case $host_os in
15561     freebsd[123]*) objformat=aout ;;
15562     *) objformat=elf ;;
15563     esac
15564   fi
15565   version_type=freebsd-$objformat
15566   case $version_type in
15567     freebsd-elf*)
15568       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15569       need_version=no
15570       need_lib_prefix=no
15571       ;;
15572     freebsd-*)
15573       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15574       need_version=yes
15575       ;;
15576   esac
15577   shlibpath_var=LD_LIBRARY_PATH
15578   case $host_os in
15579   freebsd2*)
15580     shlibpath_overrides_runpath=yes
15581     ;;
15582   freebsd3.[01]* | freebsdelf3.[01]*)
15583     shlibpath_overrides_runpath=yes
15584     hardcode_into_libs=yes
15585     ;;
15586   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15587   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15588     shlibpath_overrides_runpath=no
15589     hardcode_into_libs=yes
15590     ;;
15591   *) # from 4.6 on, and DragonFly
15592     shlibpath_overrides_runpath=yes
15593     hardcode_into_libs=yes
15594     ;;
15595   esac
15596   ;;
15597
15598 gnu*)
15599   version_type=linux
15600   need_lib_prefix=no
15601   need_version=no
15602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15603   soname_spec='${libname}${release}${shared_ext}$major'
15604   shlibpath_var=LD_LIBRARY_PATH
15605   hardcode_into_libs=yes
15606   ;;
15607
15608 hpux9* | hpux10* | hpux11*)
15609   # Give a soname corresponding to the major version so that dld.sl refuses to
15610   # link against other versions.
15611   version_type=sunos
15612   need_lib_prefix=no
15613   need_version=no
15614   case $host_cpu in
15615   ia64*)
15616     shrext_cmds='.so'
15617     hardcode_into_libs=yes
15618     dynamic_linker="$host_os dld.so"
15619     shlibpath_var=LD_LIBRARY_PATH
15620     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622     soname_spec='${libname}${release}${shared_ext}$major'
15623     if test "X$HPUX_IA64_MODE" = X32; then
15624       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15625     else
15626       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15627     fi
15628     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15629     ;;
15630    hppa*64*)
15631      shrext_cmds='.sl'
15632      hardcode_into_libs=yes
15633      dynamic_linker="$host_os dld.sl"
15634      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15635      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15636      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637      soname_spec='${libname}${release}${shared_ext}$major'
15638      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15639      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15640      ;;
15641    *)
15642     shrext_cmds='.sl'
15643     dynamic_linker="$host_os dld.sl"
15644     shlibpath_var=SHLIB_PATH
15645     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647     soname_spec='${libname}${release}${shared_ext}$major'
15648     ;;
15649   esac
15650   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15651   postinstall_cmds='chmod 555 $lib'
15652   ;;
15653
15654 interix[3-9]*)
15655   version_type=linux
15656   need_lib_prefix=no
15657   need_version=no
15658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15659   soname_spec='${libname}${release}${shared_ext}$major'
15660   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15661   shlibpath_var=LD_LIBRARY_PATH
15662   shlibpath_overrides_runpath=no
15663   hardcode_into_libs=yes
15664   ;;
15665
15666 irix5* | irix6* | nonstopux*)
15667   case $host_os in
15668     nonstopux*) version_type=nonstopux ;;
15669     *)
15670         if test "$lt_cv_prog_gnu_ld" = yes; then
15671                 version_type=linux
15672         else
15673                 version_type=irix
15674         fi ;;
15675   esac
15676   need_lib_prefix=no
15677   need_version=no
15678   soname_spec='${libname}${release}${shared_ext}$major'
15679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15680   case $host_os in
15681   irix5* | nonstopux*)
15682     libsuff= shlibsuff=
15683     ;;
15684   *)
15685     case $LD in # libtool.m4 will add one of these switches to LD
15686     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15687       libsuff= shlibsuff= libmagic=32-bit;;
15688     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15689       libsuff=32 shlibsuff=N32 libmagic=N32;;
15690     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15691       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15692     *) libsuff= shlibsuff= libmagic=never-match;;
15693     esac
15694     ;;
15695   esac
15696   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15697   shlibpath_overrides_runpath=no
15698   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15699   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15700   hardcode_into_libs=yes
15701   ;;
15702
15703 # No shared lib support for Linux oldld, aout, or coff.
15704 linux*oldld* | linux*aout* | linux*coff*)
15705   dynamic_linker=no
15706   ;;
15707
15708 # This must be Linux ELF.
15709 linux* | k*bsd*-gnu)
15710   version_type=linux
15711   need_lib_prefix=no
15712   need_version=no
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714   soname_spec='${libname}${release}${shared_ext}$major'
15715   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15716   shlibpath_var=LD_LIBRARY_PATH
15717   shlibpath_overrides_runpath=no
15718   # This implies no fast_install, which is unacceptable.
15719   # Some rework will be needed to allow for fast_install
15720   # before this can be enabled.
15721   hardcode_into_libs=yes
15722   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15723   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15724
15725   # Append ld.so.conf contents to the search path
15726   if test -f /etc/ld.so.conf; then
15727     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/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15728     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15729   fi
15730
15731   # We used to test for /lib/ld.so.1 and disable shared libraries on
15732   # powerpc, because MkLinux only supported shared libraries with the
15733   # GNU dynamic linker.  Since this was broken with cross compilers,
15734   # most powerpc-linux boxes support dynamic linking these days and
15735   # people can always --disable-shared, the test was removed, and we
15736   # assume the GNU/Linux dynamic linker is in use.
15737   dynamic_linker='GNU/Linux ld.so'
15738   ;;
15739
15740 netbsd*)
15741   version_type=sunos
15742   need_lib_prefix=no
15743   need_version=no
15744   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15746     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15747     dynamic_linker='NetBSD (a.out) ld.so'
15748   else
15749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15750     soname_spec='${libname}${release}${shared_ext}$major'
15751     dynamic_linker='NetBSD ld.elf_so'
15752   fi
15753   shlibpath_var=LD_LIBRARY_PATH
15754   shlibpath_overrides_runpath=yes
15755   hardcode_into_libs=yes
15756   ;;
15757
15758 newsos6)
15759   version_type=linux
15760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761   shlibpath_var=LD_LIBRARY_PATH
15762   shlibpath_overrides_runpath=yes
15763   ;;
15764
15765 nto-qnx*)
15766   version_type=linux
15767   need_lib_prefix=no
15768   need_version=no
15769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770   soname_spec='${libname}${release}${shared_ext}$major'
15771   shlibpath_var=LD_LIBRARY_PATH
15772   shlibpath_overrides_runpath=yes
15773   ;;
15774
15775 openbsd*)
15776   version_type=sunos
15777   sys_lib_dlsearch_path_spec="/usr/lib"
15778   need_lib_prefix=no
15779   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15780   case $host_os in
15781     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15782     *)                         need_version=no  ;;
15783   esac
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15785   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15788     case $host_os in
15789       openbsd2.[89] | openbsd2.[89].*)
15790         shlibpath_overrides_runpath=no
15791         ;;
15792       *)
15793         shlibpath_overrides_runpath=yes
15794         ;;
15795       esac
15796   else
15797     shlibpath_overrides_runpath=yes
15798   fi
15799   ;;
15800
15801 os2*)
15802   libname_spec='$name'
15803   shrext_cmds=".dll"
15804   need_lib_prefix=no
15805   library_names_spec='$libname${shared_ext} $libname.a'
15806   dynamic_linker='OS/2 ld.exe'
15807   shlibpath_var=LIBPATH
15808   ;;
15809
15810 osf3* | osf4* | osf5*)
15811   version_type=osf
15812   need_lib_prefix=no
15813   need_version=no
15814   soname_spec='${libname}${release}${shared_ext}$major'
15815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816   shlibpath_var=LD_LIBRARY_PATH
15817   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15818   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15819   ;;
15820
15821 rdos*)
15822   dynamic_linker=no
15823   ;;
15824
15825 solaris*)
15826   version_type=linux
15827   need_lib_prefix=no
15828   need_version=no
15829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830   soname_spec='${libname}${release}${shared_ext}$major'
15831   shlibpath_var=LD_LIBRARY_PATH
15832   shlibpath_overrides_runpath=yes
15833   hardcode_into_libs=yes
15834   # ldd complains unless libraries are executable
15835   postinstall_cmds='chmod +x $lib'
15836   ;;
15837
15838 sunos4*)
15839   version_type=sunos
15840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15841   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15842   shlibpath_var=LD_LIBRARY_PATH
15843   shlibpath_overrides_runpath=yes
15844   if test "$with_gnu_ld" = yes; then
15845     need_lib_prefix=no
15846   fi
15847   need_version=yes
15848   ;;
15849
15850 sysv4 | sysv4.3*)
15851   version_type=linux
15852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853   soname_spec='${libname}${release}${shared_ext}$major'
15854   shlibpath_var=LD_LIBRARY_PATH
15855   case $host_vendor in
15856     sni)
15857       shlibpath_overrides_runpath=no
15858       need_lib_prefix=no
15859       export_dynamic_flag_spec='${wl}-Blargedynsym'
15860       runpath_var=LD_RUN_PATH
15861       ;;
15862     siemens)
15863       need_lib_prefix=no
15864       ;;
15865     motorola)
15866       need_lib_prefix=no
15867       need_version=no
15868       shlibpath_overrides_runpath=no
15869       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15870       ;;
15871   esac
15872   ;;
15873
15874 sysv4*MP*)
15875   if test -d /usr/nec ;then
15876     version_type=linux
15877     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15878     soname_spec='$libname${shared_ext}.$major'
15879     shlibpath_var=LD_LIBRARY_PATH
15880   fi
15881   ;;
15882
15883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15884   version_type=freebsd-elf
15885   need_lib_prefix=no
15886   need_version=no
15887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15888   soname_spec='${libname}${release}${shared_ext}$major'
15889   shlibpath_var=LD_LIBRARY_PATH
15890   hardcode_into_libs=yes
15891   if test "$with_gnu_ld" = yes; then
15892     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15893     shlibpath_overrides_runpath=no
15894   else
15895     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15896     shlibpath_overrides_runpath=yes
15897     case $host_os in
15898       sco3.2v5*)
15899         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15900         ;;
15901     esac
15902   fi
15903   sys_lib_dlsearch_path_spec='/usr/lib'
15904   ;;
15905
15906 uts4*)
15907   version_type=linux
15908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909   soname_spec='${libname}${release}${shared_ext}$major'
15910   shlibpath_var=LD_LIBRARY_PATH
15911   ;;
15912
15913 *)
15914   dynamic_linker=no
15915   ;;
15916 esac
15917 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15918 $as_echo "$dynamic_linker" >&6; }
15919 test "$dynamic_linker" = no && can_build_shared=no
15920
15921 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15922   $as_echo_n "(cached) " >&6
15923 else
15924   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15925 fi
15926
15927 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15929   $as_echo_n "(cached) " >&6
15930 else
15931   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15932 fi
15933
15934 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15935
15936 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15937 if test "$GCC" = yes; then
15938   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15939 fi
15940
15941 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15942 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15943 hardcode_action_CXX=
15944 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15945    test -n "$runpath_var_CXX" || \
15946    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15947
15948   # We can hardcode non-existant directories.
15949   if test "$hardcode_direct_CXX" != no &&
15950      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15951      # have to relink, otherwise we might link with an installed library
15952      # when we should be linking with a yet-to-be-installed one
15953      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15954      test "$hardcode_minus_L_CXX" != no; then
15955     # Linking always hardcodes the temporary library directory.
15956     hardcode_action_CXX=relink
15957   else
15958     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15959     hardcode_action_CXX=immediate
15960   fi
15961 else
15962   # We cannot hardcode anything, or else we can only hardcode existing
15963   # directories.
15964   hardcode_action_CXX=unsupported
15965 fi
15966 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15967 $as_echo "$hardcode_action_CXX" >&6; }
15968
15969 if test "$hardcode_action_CXX" = relink; then
15970   # Fast installation is not supported
15971   enable_fast_install=no
15972 elif test "$shlibpath_overrides_runpath" = yes ||
15973      test "$enable_shared" = no; then
15974   # Fast installation is not necessary
15975   enable_fast_install=needless
15976 fi
15977
15978
15979 # The else clause should only fire when bootstrapping the
15980 # libtool distribution, otherwise you forgot to ship ltmain.sh
15981 # with your package, and you will get complaints that there are
15982 # no rules to generate ltmain.sh.
15983 if test -f "$ltmain"; then
15984   # See if we are running on zsh, and set the options which allow our commands through
15985   # without removal of \ escapes.
15986   if test -n "${ZSH_VERSION+set}" ; then
15987     setopt NO_GLOB_SUBST
15988   fi
15989   # Now quote all the things that may contain metacharacters while being
15990   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15991   # variables and quote the copies for generation of the libtool script.
15992   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15993     SED SHELL STRIP \
15994     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15995     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15996     deplibs_check_method reload_flag reload_cmds need_locks \
15997     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15998     lt_cv_sys_global_symbol_to_c_name_address \
15999     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16000     old_postinstall_cmds old_postuninstall_cmds \
16001     compiler_CXX \
16002     CC_CXX \
16003     LD_CXX \
16004     lt_prog_compiler_wl_CXX \
16005     lt_prog_compiler_pic_CXX \
16006     lt_prog_compiler_static_CXX \
16007     lt_prog_compiler_no_builtin_flag_CXX \
16008     export_dynamic_flag_spec_CXX \
16009     thread_safe_flag_spec_CXX \
16010     whole_archive_flag_spec_CXX \
16011     enable_shared_with_static_runtimes_CXX \
16012     old_archive_cmds_CXX \
16013     old_archive_from_new_cmds_CXX \
16014     predep_objects_CXX \
16015     postdep_objects_CXX \
16016     predeps_CXX \
16017     postdeps_CXX \
16018     compiler_lib_search_path_CXX \
16019     compiler_lib_search_dirs_CXX \
16020     archive_cmds_CXX \
16021     archive_expsym_cmds_CXX \
16022     postinstall_cmds_CXX \
16023     postuninstall_cmds_CXX \
16024     old_archive_from_expsyms_cmds_CXX \
16025     allow_undefined_flag_CXX \
16026     no_undefined_flag_CXX \
16027     export_symbols_cmds_CXX \
16028     hardcode_libdir_flag_spec_CXX \
16029     hardcode_libdir_flag_spec_ld_CXX \
16030     hardcode_libdir_separator_CXX \
16031     hardcode_automatic_CXX \
16032     module_cmds_CXX \
16033     module_expsym_cmds_CXX \
16034     lt_cv_prog_compiler_c_o_CXX \
16035     fix_srcfile_path_CXX \
16036     exclude_expsyms_CXX \
16037     include_expsyms_CXX; do
16038
16039     case $var in
16040     old_archive_cmds_CXX | \
16041     old_archive_from_new_cmds_CXX | \
16042     archive_cmds_CXX | \
16043     archive_expsym_cmds_CXX | \
16044     module_cmds_CXX | \
16045     module_expsym_cmds_CXX | \
16046     old_archive_from_expsyms_cmds_CXX | \
16047     export_symbols_cmds_CXX | \
16048     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16049     postinstall_cmds | postuninstall_cmds | \
16050     old_postinstall_cmds | old_postuninstall_cmds | \
16051     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16052       # Double-quote double-evaled strings.
16053       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16054       ;;
16055     *)
16056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16057       ;;
16058     esac
16059   done
16060
16061   case $lt_echo in
16062   *'\$0 --fallback-echo"')
16063     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16064     ;;
16065   esac
16066
16067 cfgfile="$ofile"
16068
16069   cat <<__EOF__ >> "$cfgfile"
16070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16071
16072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16073
16074 # Shell to use when invoking shell scripts.
16075 SHELL=$lt_SHELL
16076
16077 # Whether or not to build shared libraries.
16078 build_libtool_libs=$enable_shared
16079
16080 # Whether or not to build static libraries.
16081 build_old_libs=$enable_static
16082
16083 # Whether or not to add -lc for building shared libraries.
16084 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16085
16086 # Whether or not to disallow shared libs when runtime libs are static
16087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16088
16089 # Whether or not to optimize for fast installation.
16090 fast_install=$enable_fast_install
16091
16092 # The host system.
16093 host_alias=$host_alias
16094 host=$host
16095 host_os=$host_os
16096
16097 # The build system.
16098 build_alias=$build_alias
16099 build=$build
16100 build_os=$build_os
16101
16102 # An echo program that does not interpret backslashes.
16103 echo=$lt_echo
16104
16105 # The archiver.
16106 AR=$lt_AR
16107 AR_FLAGS=$lt_AR_FLAGS
16108
16109 # A C compiler.
16110 LTCC=$lt_LTCC
16111
16112 # LTCC compiler flags.
16113 LTCFLAGS=$lt_LTCFLAGS
16114
16115 # A language-specific compiler.
16116 CC=$lt_compiler_CXX
16117
16118 # Is the compiler the GNU C compiler?
16119 with_gcc=$GCC_CXX
16120
16121 # An ERE matcher.
16122 EGREP=$lt_EGREP
16123
16124 # The linker used to build libraries.
16125 LD=$lt_LD_CXX
16126
16127 # Whether we need hard or soft links.
16128 LN_S=$lt_LN_S
16129
16130 # A BSD-compatible nm program.
16131 NM=$lt_NM
16132
16133 # A symbol stripping program
16134 STRIP=$lt_STRIP
16135
16136 # Used to examine libraries when file_magic_cmd begins "file"
16137 MAGIC_CMD=$MAGIC_CMD
16138
16139 # Used on cygwin: DLL creation program.
16140 DLLTOOL="$DLLTOOL"
16141
16142 # Used on cygwin: object dumper.
16143 OBJDUMP="$OBJDUMP"
16144
16145 # Used on cygwin: assembler.
16146 AS="$AS"
16147
16148 # The name of the directory that contains temporary libtool files.
16149 objdir=$objdir
16150
16151 # How to create reloadable object files.
16152 reload_flag=$lt_reload_flag
16153 reload_cmds=$lt_reload_cmds
16154
16155 # How to pass a linker flag through the compiler.
16156 wl=$lt_lt_prog_compiler_wl_CXX
16157
16158 # Object file suffix (normally "o").
16159 objext="$ac_objext"
16160
16161 # Old archive suffix (normally "a").
16162 libext="$libext"
16163
16164 # Shared library suffix (normally ".so").
16165 shrext_cmds='$shrext_cmds'
16166
16167 # Executable file suffix (normally "").
16168 exeext="$exeext"
16169
16170 # Additional compiler flags for building library objects.
16171 pic_flag=$lt_lt_prog_compiler_pic_CXX
16172 pic_mode=$pic_mode
16173
16174 # What is the maximum length of a command?
16175 max_cmd_len=$lt_cv_sys_max_cmd_len
16176
16177 # Does compiler simultaneously support -c and -o options?
16178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16179
16180 # Must we lock files when doing compilation?
16181 need_locks=$lt_need_locks
16182
16183 # Do we need the lib prefix for modules?
16184 need_lib_prefix=$need_lib_prefix
16185
16186 # Do we need a version for libraries?
16187 need_version=$need_version
16188
16189 # Whether dlopen is supported.
16190 dlopen_support=$enable_dlopen
16191
16192 # Whether dlopen of programs is supported.
16193 dlopen_self=$enable_dlopen_self
16194
16195 # Whether dlopen of statically linked programs is supported.
16196 dlopen_self_static=$enable_dlopen_self_static
16197
16198 # Compiler flag to prevent dynamic linking.
16199 link_static_flag=$lt_lt_prog_compiler_static_CXX
16200
16201 # Compiler flag to turn off builtin functions.
16202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16203
16204 # Compiler flag to allow reflexive dlopens.
16205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16206
16207 # Compiler flag to generate shared objects directly from archives.
16208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16209
16210 # Compiler flag to generate thread-safe objects.
16211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16212
16213 # Library versioning type.
16214 version_type=$version_type
16215
16216 # Format of library name prefix.
16217 libname_spec=$lt_libname_spec
16218
16219 # List of archive names.  First name is the real one, the rest are links.
16220 # The last name is the one that the linker finds with -lNAME.
16221 library_names_spec=$lt_library_names_spec
16222
16223 # The coded name of the library, if different from the real name.
16224 soname_spec=$lt_soname_spec
16225
16226 # Commands used to build and install an old-style archive.
16227 RANLIB=$lt_RANLIB
16228 old_archive_cmds=$lt_old_archive_cmds_CXX
16229 old_postinstall_cmds=$lt_old_postinstall_cmds
16230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16231
16232 # Create an old-style archive from a shared archive.
16233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16234
16235 # Create a temporary old-style archive to link instead of a shared archive.
16236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16237
16238 # Commands used to build and install a shared archive.
16239 archive_cmds=$lt_archive_cmds_CXX
16240 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16241 postinstall_cmds=$lt_postinstall_cmds
16242 postuninstall_cmds=$lt_postuninstall_cmds
16243
16244 # Commands used to build a loadable module (assumed same as above if empty)
16245 module_cmds=$lt_module_cmds_CXX
16246 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16247
16248 # Commands to strip libraries.
16249 old_striplib=$lt_old_striplib
16250 striplib=$lt_striplib
16251
16252 # Dependencies to place before the objects being linked to create a
16253 # shared library.
16254 predep_objects=$lt_predep_objects_CXX
16255
16256 # Dependencies to place after the objects being linked to create a
16257 # shared library.
16258 postdep_objects=$lt_postdep_objects_CXX
16259
16260 # Dependencies to place before the objects being linked to create a
16261 # shared library.
16262 predeps=$lt_predeps_CXX
16263
16264 # Dependencies to place after the objects being linked to create a
16265 # shared library.
16266 postdeps=$lt_postdeps_CXX
16267
16268 # The directories searched by this compiler when creating a shared
16269 # library
16270 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16271
16272 # The library search path used internally by the compiler when linking
16273 # a shared library.
16274 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16275
16276 # Method to check whether dependent libraries are shared objects.
16277 deplibs_check_method=$lt_deplibs_check_method
16278
16279 # Command to use when deplibs_check_method == file_magic.
16280 file_magic_cmd=$lt_file_magic_cmd
16281
16282 # Flag that allows shared libraries with undefined symbols to be built.
16283 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16284
16285 # Flag that forces no undefined symbols.
16286 no_undefined_flag=$lt_no_undefined_flag_CXX
16287
16288 # Commands used to finish a libtool library installation in a directory.
16289 finish_cmds=$lt_finish_cmds
16290
16291 # Same as above, but a single script fragment to be evaled but not shown.
16292 finish_eval=$lt_finish_eval
16293
16294 # Take the output of nm and produce a listing of raw symbols and C names.
16295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16296
16297 # Transform the output of nm in a proper C declaration
16298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16299
16300 # Transform the output of nm in a C name address pair
16301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16302
16303 # This is the shared library runtime path variable.
16304 runpath_var=$runpath_var
16305
16306 # This is the shared library path variable.
16307 shlibpath_var=$shlibpath_var
16308
16309 # Is shlibpath searched before the hard-coded library search path?
16310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16311
16312 # How to hardcode a shared library path into an executable.
16313 hardcode_action=$hardcode_action_CXX
16314
16315 # Whether we should hardcode library paths into libraries.
16316 hardcode_into_libs=$hardcode_into_libs
16317
16318 # Flag to hardcode \$libdir into a binary during linking.
16319 # This must work even if \$libdir does not exist.
16320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16321
16322 # If ld is used when linking, flag to hardcode \$libdir into
16323 # a binary during linking. This must work even if \$libdir does
16324 # not exist.
16325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16326
16327 # Whether we need a single -rpath flag with a separated argument.
16328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16329
16330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16331 # resulting binary.
16332 hardcode_direct=$hardcode_direct_CXX
16333
16334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16335 # resulting binary.
16336 hardcode_minus_L=$hardcode_minus_L_CXX
16337
16338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16339 # the resulting binary.
16340 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16341
16342 # Set to yes if building a shared library automatically hardcodes DIR into the library
16343 # and all subsequent libraries and executables linked against it.
16344 hardcode_automatic=$hardcode_automatic_CXX
16345
16346 # Variables whose values should be saved in libtool wrapper scripts and
16347 # restored at relink time.
16348 variables_saved_for_relink="$variables_saved_for_relink"
16349
16350 # Whether libtool must link a program against all its dependency libraries.
16351 link_all_deplibs=$link_all_deplibs_CXX
16352
16353 # Compile-time system search path for libraries
16354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16355
16356 # Run-time system search path for libraries
16357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16358
16359 # Fix the shell variable \$srcfile for the compiler.
16360 fix_srcfile_path=$lt_fix_srcfile_path
16361
16362 # Set to yes if exported symbols are required.
16363 always_export_symbols=$always_export_symbols_CXX
16364
16365 # The commands to list exported symbols.
16366 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16367
16368 # The commands to extract the exported symbol list from a shared archive.
16369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16370
16371 # Symbols that should not be listed in the preloaded symbols.
16372 exclude_expsyms=$lt_exclude_expsyms_CXX
16373
16374 # Symbols that must always be exported.
16375 include_expsyms=$lt_include_expsyms_CXX
16376
16377 # ### END LIBTOOL TAG CONFIG: $tagname
16378
16379 __EOF__
16380
16381
16382 else
16383   # If there is no Makefile yet, we rely on a make rule to execute
16384   # `config.status --recheck' to rerun these tests and create the
16385   # libtool script then.
16386   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16387   if test -f "$ltmain_in"; then
16388     test -f Makefile && make "$ltmain"
16389   fi
16390 fi
16391
16392
16393 ac_ext=c
16394 ac_cpp='$CPP $CPPFLAGS'
16395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16398
16399 CC=$lt_save_CC
16400 LDCXX=$LD
16401 LD=$lt_save_LD
16402 GCC=$lt_save_GCC
16403 with_gnu_ldcxx=$with_gnu_ld
16404 with_gnu_ld=$lt_save_with_gnu_ld
16405 lt_cv_path_LDCXX=$lt_cv_path_LD
16406 lt_cv_path_LD=$lt_save_path_LD
16407 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16408 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16409
16410         else
16411           tagname=""
16412         fi
16413         ;;
16414
16415       F77)
16416         if test -n "$F77" && test "X$F77" != "Xno"; then
16417
16418 ac_ext=f
16419 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16420 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16421 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16422
16423
16424 archive_cmds_need_lc_F77=no
16425 allow_undefined_flag_F77=
16426 always_export_symbols_F77=no
16427 archive_expsym_cmds_F77=
16428 export_dynamic_flag_spec_F77=
16429 hardcode_direct_F77=no
16430 hardcode_libdir_flag_spec_F77=
16431 hardcode_libdir_flag_spec_ld_F77=
16432 hardcode_libdir_separator_F77=
16433 hardcode_minus_L_F77=no
16434 hardcode_automatic_F77=no
16435 module_cmds_F77=
16436 module_expsym_cmds_F77=
16437 link_all_deplibs_F77=unknown
16438 old_archive_cmds_F77=$old_archive_cmds
16439 no_undefined_flag_F77=
16440 whole_archive_flag_spec_F77=
16441 enable_shared_with_static_runtimes_F77=no
16442
16443 # Source file extension for f77 test sources.
16444 ac_ext=f
16445
16446 # Object file extension for compiled f77 test sources.
16447 objext=o
16448 objext_F77=$objext
16449
16450 # Code to be used in simple compile tests
16451 lt_simple_compile_test_code="\
16452       subroutine t
16453       return
16454       end
16455 "
16456
16457 # Code to be used in simple link tests
16458 lt_simple_link_test_code="\
16459       program t
16460       end
16461 "
16462
16463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16464
16465 # If no C compiler was specified, use CC.
16466 LTCC=${LTCC-"$CC"}
16467
16468 # If no C compiler flags were specified, use CFLAGS.
16469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16470
16471 # Allow CC to be a program name with arguments.
16472 compiler=$CC
16473
16474
16475 # save warnings/boilerplate of simple test code
16476 ac_outfile=conftest.$ac_objext
16477 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16478 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16479 _lt_compiler_boilerplate=`cat conftest.err`
16480 $rm conftest*
16481
16482 ac_outfile=conftest.$ac_objext
16483 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16484 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16485 _lt_linker_boilerplate=`cat conftest.err`
16486 $rm -r conftest*
16487
16488
16489 # Allow CC to be a program name with arguments.
16490 lt_save_CC="$CC"
16491 CC=${F77-"f77"}
16492 compiler=$CC
16493 compiler_F77=$CC
16494 for cc_temp in $compiler""; do
16495   case $cc_temp in
16496     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16497     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16498     \-*) ;;
16499     *) break;;
16500   esac
16501 done
16502 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16503
16504
16505 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16506 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16507 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16508 $as_echo "$can_build_shared" >&6; }
16509
16510 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16511 $as_echo_n "checking whether to build shared libraries... " >&6; }
16512 test "$can_build_shared" = "no" && enable_shared=no
16513
16514 # On AIX, shared libraries and static libraries use the same namespace, and
16515 # are all built from PIC.
16516 case $host_os in
16517 aix3*)
16518   test "$enable_shared" = yes && enable_static=no
16519   if test -n "$RANLIB"; then
16520     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16521     postinstall_cmds='$RANLIB $lib'
16522   fi
16523   ;;
16524 aix[4-9]*)
16525   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16526     test "$enable_shared" = yes && enable_static=no
16527   fi
16528   ;;
16529 esac
16530 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16531 $as_echo "$enable_shared" >&6; }
16532
16533 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16534 $as_echo_n "checking whether to build static libraries... " >&6; }
16535 # Make sure either enable_shared or enable_static is yes.
16536 test "$enable_shared" = yes || enable_static=yes
16537 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16538 $as_echo "$enable_static" >&6; }
16539
16540 GCC_F77="$G77"
16541 LD_F77="$LD"
16542
16543 lt_prog_compiler_wl_F77=
16544 lt_prog_compiler_pic_F77=
16545 lt_prog_compiler_static_F77=
16546
16547 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16548 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16549
16550   if test "$GCC" = yes; then
16551     lt_prog_compiler_wl_F77='-Wl,'
16552     lt_prog_compiler_static_F77='-static'
16553
16554     case $host_os in
16555       aix*)
16556       # All AIX code is PIC.
16557       if test "$host_cpu" = ia64; then
16558         # AIX 5 now supports IA64 processor
16559         lt_prog_compiler_static_F77='-Bstatic'
16560       fi
16561       ;;
16562
16563     amigaos*)
16564       # FIXME: we need at least 68020 code to build shared libraries, but
16565       # adding the `-m68020' flag to GCC prevents building anything better,
16566       # like `-m68040'.
16567       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16568       ;;
16569
16570     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16571       # PIC is the default for these OSes.
16572       ;;
16573
16574     mingw* | cygwin* | pw32* | os2*)
16575       # This hack is so that the source file can tell whether it is being
16576       # built for inclusion in a dll (and should export symbols for example).
16577       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16578       # (--disable-auto-import) libraries
16579       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16580       ;;
16581
16582     darwin* | rhapsody*)
16583       # PIC is the default on this platform
16584       # Common symbols not allowed in MH_DYLIB files
16585       lt_prog_compiler_pic_F77='-fno-common'
16586       ;;
16587
16588     interix[3-9]*)
16589       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16590       # Instead, we relocate shared libraries at runtime.
16591       ;;
16592
16593     msdosdjgpp*)
16594       # Just because we use GCC doesn't mean we suddenly get shared libraries
16595       # on systems that don't support them.
16596       lt_prog_compiler_can_build_shared_F77=no
16597       enable_shared=no
16598       ;;
16599
16600     sysv4*MP*)
16601       if test -d /usr/nec; then
16602         lt_prog_compiler_pic_F77=-Kconform_pic
16603       fi
16604       ;;
16605
16606     hpux*)
16607       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16608       # not for PA HP-UX.
16609       case $host_cpu in
16610       hppa*64*|ia64*)
16611         # +Z the default
16612         ;;
16613       *)
16614         lt_prog_compiler_pic_F77='-fPIC'
16615         ;;
16616       esac
16617       ;;
16618
16619     *)
16620       lt_prog_compiler_pic_F77='-fPIC'
16621       ;;
16622     esac
16623   else
16624     # PORTME Check for flag to pass linker flags through the system compiler.
16625     case $host_os in
16626     aix*)
16627       lt_prog_compiler_wl_F77='-Wl,'
16628       if test "$host_cpu" = ia64; then
16629         # AIX 5 now supports IA64 processor
16630         lt_prog_compiler_static_F77='-Bstatic'
16631       else
16632         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16633       fi
16634       ;;
16635       darwin*)
16636         # PIC is the default on this platform
16637         # Common symbols not allowed in MH_DYLIB files
16638        case $cc_basename in
16639          xlc*)
16640          lt_prog_compiler_pic_F77='-qnocommon'
16641          lt_prog_compiler_wl_F77='-Wl,'
16642          ;;
16643        esac
16644        ;;
16645
16646     mingw* | cygwin* | pw32* | os2*)
16647       # This hack is so that the source file can tell whether it is being
16648       # built for inclusion in a dll (and should export symbols for example).
16649       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16650       ;;
16651
16652     hpux9* | hpux10* | hpux11*)
16653       lt_prog_compiler_wl_F77='-Wl,'
16654       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16655       # not for PA HP-UX.
16656       case $host_cpu in
16657       hppa*64*|ia64*)
16658         # +Z the default
16659         ;;
16660       *)
16661         lt_prog_compiler_pic_F77='+Z'
16662         ;;
16663       esac
16664       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16665       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16666       ;;
16667
16668     irix5* | irix6* | nonstopux*)
16669       lt_prog_compiler_wl_F77='-Wl,'
16670       # PIC (with -KPIC) is the default.
16671       lt_prog_compiler_static_F77='-non_shared'
16672       ;;
16673
16674     newsos6)
16675       lt_prog_compiler_pic_F77='-KPIC'
16676       lt_prog_compiler_static_F77='-Bstatic'
16677       ;;
16678
16679     linux* | k*bsd*-gnu)
16680       case $cc_basename in
16681       icc* | ecc*)
16682         lt_prog_compiler_wl_F77='-Wl,'
16683         lt_prog_compiler_pic_F77='-KPIC'
16684         lt_prog_compiler_static_F77='-static'
16685         ;;
16686       pgcc* | pgf77* | pgf90* | pgf95*)
16687         # Portland Group compilers (*not* the Pentium gcc compiler,
16688         # which looks to be a dead project)
16689         lt_prog_compiler_wl_F77='-Wl,'
16690         lt_prog_compiler_pic_F77='-fpic'
16691         lt_prog_compiler_static_F77='-Bstatic'
16692         ;;
16693       ccc*)
16694         lt_prog_compiler_wl_F77='-Wl,'
16695         # All Alpha code is PIC.
16696         lt_prog_compiler_static_F77='-non_shared'
16697         ;;
16698       *)
16699         case `$CC -V 2>&1 | sed 5q` in
16700         *Sun\ C*)
16701           # Sun C 5.9
16702           lt_prog_compiler_pic_F77='-KPIC'
16703           lt_prog_compiler_static_F77='-Bstatic'
16704           lt_prog_compiler_wl_F77='-Wl,'
16705           ;;
16706         *Sun\ F*)
16707           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16708           lt_prog_compiler_pic_F77='-KPIC'
16709           lt_prog_compiler_static_F77='-Bstatic'
16710           lt_prog_compiler_wl_F77=''
16711           ;;
16712         esac
16713         ;;
16714       esac
16715       ;;
16716
16717     osf3* | osf4* | osf5*)
16718       lt_prog_compiler_wl_F77='-Wl,'
16719       # All OSF/1 code is PIC.
16720       lt_prog_compiler_static_F77='-non_shared'
16721       ;;
16722
16723     rdos*)
16724       lt_prog_compiler_static_F77='-non_shared'
16725       ;;
16726
16727     solaris*)
16728       lt_prog_compiler_pic_F77='-KPIC'
16729       lt_prog_compiler_static_F77='-Bstatic'
16730       case $cc_basename in
16731       f77* | f90* | f95*)
16732         lt_prog_compiler_wl_F77='-Qoption ld ';;
16733       *)
16734         lt_prog_compiler_wl_F77='-Wl,';;
16735       esac
16736       ;;
16737
16738     sunos4*)
16739       lt_prog_compiler_wl_F77='-Qoption ld '
16740       lt_prog_compiler_pic_F77='-PIC'
16741       lt_prog_compiler_static_F77='-Bstatic'
16742       ;;
16743
16744     sysv4 | sysv4.2uw2* | sysv4.3*)
16745       lt_prog_compiler_wl_F77='-Wl,'
16746       lt_prog_compiler_pic_F77='-KPIC'
16747       lt_prog_compiler_static_F77='-Bstatic'
16748       ;;
16749
16750     sysv4*MP*)
16751       if test -d /usr/nec ;then
16752         lt_prog_compiler_pic_F77='-Kconform_pic'
16753         lt_prog_compiler_static_F77='-Bstatic'
16754       fi
16755       ;;
16756
16757     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16758       lt_prog_compiler_wl_F77='-Wl,'
16759       lt_prog_compiler_pic_F77='-KPIC'
16760       lt_prog_compiler_static_F77='-Bstatic'
16761       ;;
16762
16763     unicos*)
16764       lt_prog_compiler_wl_F77='-Wl,'
16765       lt_prog_compiler_can_build_shared_F77=no
16766       ;;
16767
16768     uts4*)
16769       lt_prog_compiler_pic_F77='-pic'
16770       lt_prog_compiler_static_F77='-Bstatic'
16771       ;;
16772
16773     *)
16774       lt_prog_compiler_can_build_shared_F77=no
16775       ;;
16776     esac
16777   fi
16778
16779 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16780 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
16781
16782 #
16783 # Check to make sure the PIC flag actually works.
16784 #
16785 if test -n "$lt_prog_compiler_pic_F77"; then
16786
16787 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16788 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16789 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16790   $as_echo_n "(cached) " >&6
16791 else
16792   lt_cv_prog_compiler_pic_works_F77=no
16793   ac_outfile=conftest.$ac_objext
16794    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16795    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16796    # Insert the option either (1) after the last *FLAGS variable, or
16797    # (2) before a word containing "conftest.", or (3) at the end.
16798    # Note that $ac_compile itself does not contain backslashes and begins
16799    # with a dollar sign (not a hyphen), so the echo should work correctly.
16800    # The option is referenced via a variable to avoid confusing sed.
16801    lt_compile=`echo "$ac_compile" | $SED \
16802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16804    -e 's:$: $lt_compiler_flag:'`
16805    (eval echo "\"\$as_me:16805: $lt_compile\"" >&5)
16806    (eval "$lt_compile" 2>conftest.err)
16807    ac_status=$?
16808    cat conftest.err >&5
16809    echo "$as_me:16809: \$? = $ac_status" >&5
16810    if (exit $ac_status) && test -s "$ac_outfile"; then
16811      # The compiler can only warn and ignore the option if not recognized
16812      # So say no if there are warnings other than the usual output.
16813      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16814      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16815      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16816        lt_cv_prog_compiler_pic_works_F77=yes
16817      fi
16818    fi
16819    $rm conftest*
16820
16821 fi
16822 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16823 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16824
16825 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16826     case $lt_prog_compiler_pic_F77 in
16827      "" | " "*) ;;
16828      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16829      esac
16830 else
16831     lt_prog_compiler_pic_F77=
16832      lt_prog_compiler_can_build_shared_F77=no
16833 fi
16834
16835 fi
16836 case $host_os in
16837   # For platforms which do not support PIC, -DPIC is meaningless:
16838   *djgpp*)
16839     lt_prog_compiler_pic_F77=
16840     ;;
16841   *)
16842     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16843     ;;
16844 esac
16845
16846 #
16847 # Check to make sure the static flag actually works.
16848 #
16849 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16850 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16851 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16852 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16853   $as_echo_n "(cached) " >&6
16854 else
16855   lt_cv_prog_compiler_static_works_F77=no
16856    save_LDFLAGS="$LDFLAGS"
16857    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16858    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16859    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16860      # The linker can only warn and ignore the option if not recognized
16861      # So say no if there are warnings
16862      if test -s conftest.err; then
16863        # Append any errors to the config.log.
16864        cat conftest.err 1>&5
16865        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16866        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16867        if diff conftest.exp conftest.er2 >/dev/null; then
16868          lt_cv_prog_compiler_static_works_F77=yes
16869        fi
16870      else
16871        lt_cv_prog_compiler_static_works_F77=yes
16872      fi
16873    fi
16874    $rm -r conftest*
16875    LDFLAGS="$save_LDFLAGS"
16876
16877 fi
16878 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16879 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16880
16881 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16882     :
16883 else
16884     lt_prog_compiler_static_F77=
16885 fi
16886
16887
16888 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16890 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16891   $as_echo_n "(cached) " >&6
16892 else
16893   lt_cv_prog_compiler_c_o_F77=no
16894    $rm -r conftest 2>/dev/null
16895    mkdir conftest
16896    cd conftest
16897    mkdir out
16898    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16899
16900    lt_compiler_flag="-o out/conftest2.$ac_objext"
16901    # Insert the option either (1) after the last *FLAGS variable, or
16902    # (2) before a word containing "conftest.", or (3) at the end.
16903    # Note that $ac_compile itself does not contain backslashes and begins
16904    # with a dollar sign (not a hyphen), so the echo should work correctly.
16905    lt_compile=`echo "$ac_compile" | $SED \
16906    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16907    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16908    -e 's:$: $lt_compiler_flag:'`
16909    (eval echo "\"\$as_me:16909: $lt_compile\"" >&5)
16910    (eval "$lt_compile" 2>out/conftest.err)
16911    ac_status=$?
16912    cat out/conftest.err >&5
16913    echo "$as_me:16913: \$? = $ac_status" >&5
16914    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16915    then
16916      # The compiler can only warn and ignore the option if not recognized
16917      # So say no if there are warnings
16918      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16919      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16920      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16921        lt_cv_prog_compiler_c_o_F77=yes
16922      fi
16923    fi
16924    chmod u+w . 2>&5
16925    $rm conftest*
16926    # SGI C++ compiler will create directory out/ii_files/ for
16927    # template instantiation
16928    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16929    $rm out/* && rmdir out
16930    cd ..
16931    rmdir conftest
16932    $rm conftest*
16933
16934 fi
16935 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16936 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16937
16938
16939 hard_links="nottested"
16940 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16941   # do not overwrite the value of need_locks provided by the user
16942   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16943 $as_echo_n "checking if we can lock with hard links... " >&6; }
16944   hard_links=yes
16945   $rm conftest*
16946   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16947   touch conftest.a
16948   ln conftest.a conftest.b 2>&5 || hard_links=no
16949   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16950   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16951 $as_echo "$hard_links" >&6; }
16952   if test "$hard_links" = no; then
16953     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16954 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16955     need_locks=warn
16956   fi
16957 else
16958   need_locks=no
16959 fi
16960
16961 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16963
16964   runpath_var=
16965   allow_undefined_flag_F77=
16966   enable_shared_with_static_runtimes_F77=no
16967   archive_cmds_F77=
16968   archive_expsym_cmds_F77=
16969   old_archive_From_new_cmds_F77=
16970   old_archive_from_expsyms_cmds_F77=
16971   export_dynamic_flag_spec_F77=
16972   whole_archive_flag_spec_F77=
16973   thread_safe_flag_spec_F77=
16974   hardcode_libdir_flag_spec_F77=
16975   hardcode_libdir_flag_spec_ld_F77=
16976   hardcode_libdir_separator_F77=
16977   hardcode_direct_F77=no
16978   hardcode_minus_L_F77=no
16979   hardcode_shlibpath_var_F77=unsupported
16980   link_all_deplibs_F77=unknown
16981   hardcode_automatic_F77=no
16982   module_cmds_F77=
16983   module_expsym_cmds_F77=
16984   always_export_symbols_F77=no
16985   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16986   # include_expsyms should be a list of space-separated symbols to be *always*
16987   # included in the symbol list
16988   include_expsyms_F77=
16989   # exclude_expsyms can be an extended regexp of symbols to exclude
16990   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16991   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16992   # as well as any symbol that contains `d'.
16993   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16994   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16995   # platforms (ab)use it in PIC code, but their linkers get confused if
16996   # the symbol is explicitly referenced.  Since portable code cannot
16997   # rely on this symbol name, it's probably fine to never include it in
16998   # preloaded symbol tables.
16999   # Exclude shared library initialization/finalization symbols.
17000   extract_expsyms_cmds=
17001   # Just being paranoid about ensuring that cc_basename is set.
17002   for cc_temp in $compiler""; do
17003   case $cc_temp in
17004     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17005     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17006     \-*) ;;
17007     *) break;;
17008   esac
17009 done
17010 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17011
17012   case $host_os in
17013   cygwin* | mingw* | pw32*)
17014     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17015     # When not using gcc, we currently assume that we are using
17016     # Microsoft Visual C++.
17017     if test "$GCC" != yes; then
17018       with_gnu_ld=no
17019     fi
17020     ;;
17021   interix*)
17022     # we just hope/assume this is gcc and not c89 (= MSVC++)
17023     with_gnu_ld=yes
17024     ;;
17025   openbsd*)
17026     with_gnu_ld=no
17027     ;;
17028   esac
17029
17030   ld_shlibs_F77=yes
17031   if test "$with_gnu_ld" = yes; then
17032     # If archive_cmds runs LD, not CC, wlarc should be empty
17033     wlarc='${wl}'
17034
17035     # Set some defaults for GNU ld with shared library support. These
17036     # are reset later if shared libraries are not supported. Putting them
17037     # here allows them to be overridden if necessary.
17038     runpath_var=LD_RUN_PATH
17039     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17040     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17041     # ancient GNU ld didn't support --whole-archive et. al.
17042     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17043         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17044       else
17045         whole_archive_flag_spec_F77=
17046     fi
17047     supports_anon_versioning=no
17048     case `$LD -v 2>/dev/null` in
17049       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17050       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17051       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17052       *\ 2.11.*) ;; # other 2.11 versions
17053       *) supports_anon_versioning=yes ;;
17054     esac
17055
17056     # See if GNU ld supports shared libraries.
17057     case $host_os in
17058     aix[3-9]*)
17059       # On AIX/PPC, the GNU linker is very broken
17060       if test "$host_cpu" != ia64; then
17061         ld_shlibs_F77=no
17062         cat <<EOF 1>&2
17063
17064 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17065 *** to be unable to reliably create shared libraries on AIX.
17066 *** Therefore, libtool is disabling shared libraries support.  If you
17067 *** really care for shared libraries, you may want to modify your PATH
17068 *** so that a non-GNU linker is found, and then restart.
17069
17070 EOF
17071       fi
17072       ;;
17073
17074     amigaos*)
17075       archive_cmds_F77='$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)'
17076       hardcode_libdir_flag_spec_F77='-L$libdir'
17077       hardcode_minus_L_F77=yes
17078
17079       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17080       # that the semantics of dynamic libraries on AmigaOS, at least up
17081       # to version 4, is to share data among multiple programs linked
17082       # with the same dynamic library.  Since this doesn't match the
17083       # behavior of shared libraries on other platforms, we can't use
17084       # them.
17085       ld_shlibs_F77=no
17086       ;;
17087
17088     beos*)
17089       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17090         allow_undefined_flag_F77=unsupported
17091         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17092         # support --undefined.  This deserves some investigation.  FIXME
17093         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17094       else
17095         ld_shlibs_F77=no
17096       fi
17097       ;;
17098
17099     cygwin* | mingw* | pw32*)
17100       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17101       # as there is no search path for DLLs.
17102       hardcode_libdir_flag_spec_F77='-L$libdir'
17103       allow_undefined_flag_F77=unsupported
17104       always_export_symbols_F77=no
17105       enable_shared_with_static_runtimes_F77=yes
17106       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17107
17108       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17109         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17110         # If the export-symbols file already is a .def file (1st line
17111         # is EXPORTS), use it as is; otherwise, prepend...
17112         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17113           cp $export_symbols $output_objdir/$soname.def;
17114         else
17115           echo EXPORTS > $output_objdir/$soname.def;
17116           cat $export_symbols >> $output_objdir/$soname.def;
17117         fi~
17118         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17119       else
17120         ld_shlibs_F77=no
17121       fi
17122       ;;
17123
17124     interix[3-9]*)
17125       hardcode_direct_F77=no
17126       hardcode_shlibpath_var_F77=no
17127       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17128       export_dynamic_flag_spec_F77='${wl}-E'
17129       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17130       # Instead, shared libraries are loaded at an image base (0x10000000 by
17131       # default) and relocated if they conflict, which is a slow very memory
17132       # consuming and fragmenting process.  To avoid this, we pick a random,
17133       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17134       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17135       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17136       archive_expsym_cmds_F77='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'
17137       ;;
17138
17139     gnu* | linux* | k*bsd*-gnu)
17140       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17141         tmp_addflag=
17142         case $cc_basename,$host_cpu in
17143         pgcc*)                          # Portland Group C compiler
17144           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17145           tmp_addflag=' $pic_flag'
17146           ;;
17147         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17148           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17149           tmp_addflag=' $pic_flag -Mnomain' ;;
17150         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17151           tmp_addflag=' -i_dynamic' ;;
17152         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17153           tmp_addflag=' -i_dynamic -nofor_main' ;;
17154         ifc* | ifort*)                  # Intel Fortran compiler
17155           tmp_addflag=' -nofor_main' ;;
17156         esac
17157         case `$CC -V 2>&1 | sed 5q` in
17158         *Sun\ C*)                       # Sun C 5.9
17159           whole_archive_flag_spec_F77='${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'
17160           tmp_sharedflag='-G' ;;
17161         *Sun\ F*)                       # Sun Fortran 8.3
17162           tmp_sharedflag='-G' ;;
17163         *)
17164           tmp_sharedflag='-shared' ;;
17165         esac
17166         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17167
17168         if test $supports_anon_versioning = yes; then
17169           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17170   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17171   $echo "local: *; };" >> $output_objdir/$libname.ver~
17172           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17173         fi
17174       else
17175         ld_shlibs_F77=no
17176       fi
17177       ;;
17178
17179     netbsd*)
17180       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17181         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17182         wlarc=
17183       else
17184         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17185         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17186       fi
17187       ;;
17188
17189     solaris*)
17190       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17191         ld_shlibs_F77=no
17192         cat <<EOF 1>&2
17193
17194 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17195 *** create shared libraries on Solaris systems.  Therefore, libtool
17196 *** is disabling shared libraries support.  We urge you to upgrade GNU
17197 *** binutils to release 2.9.1 or newer.  Another option is to modify
17198 *** your PATH or compiler configuration so that the native linker is
17199 *** used, and then restart.
17200
17201 EOF
17202       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17203         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17204         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17205       else
17206         ld_shlibs_F77=no
17207       fi
17208       ;;
17209
17210     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17211       case `$LD -v 2>&1` in
17212         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17213         ld_shlibs_F77=no
17214         cat <<_LT_EOF 1>&2
17215
17216 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17217 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17218 *** is disabling shared libraries support.  We urge you to upgrade GNU
17219 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17220 *** your PATH or compiler configuration so that the native linker is
17221 *** used, and then restart.
17222
17223 _LT_EOF
17224         ;;
17225         *)
17226           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17227             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17228             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17229             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17230           else
17231             ld_shlibs_F77=no
17232           fi
17233         ;;
17234       esac
17235       ;;
17236
17237     sunos4*)
17238       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17239       wlarc=
17240       hardcode_direct_F77=yes
17241       hardcode_shlibpath_var_F77=no
17242       ;;
17243
17244     *)
17245       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17246         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17247         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17248       else
17249         ld_shlibs_F77=no
17250       fi
17251       ;;
17252     esac
17253
17254     if test "$ld_shlibs_F77" = no; then
17255       runpath_var=
17256       hardcode_libdir_flag_spec_F77=
17257       export_dynamic_flag_spec_F77=
17258       whole_archive_flag_spec_F77=
17259     fi
17260   else
17261     # PORTME fill in a description of your system's linker (not GNU ld)
17262     case $host_os in
17263     aix3*)
17264       allow_undefined_flag_F77=unsupported
17265       always_export_symbols_F77=yes
17266       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17267       # Note: this linker hardcodes the directories in LIBPATH if there
17268       # are no directories specified by -L.
17269       hardcode_minus_L_F77=yes
17270       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17271         # Neither direct hardcoding nor static linking is supported with a
17272         # broken collect2.
17273         hardcode_direct_F77=unsupported
17274       fi
17275       ;;
17276
17277     aix[4-9]*)
17278       if test "$host_cpu" = ia64; then
17279         # On IA64, the linker does run time linking by default, so we don't
17280         # have to do anything special.
17281         aix_use_runtimelinking=no
17282         exp_sym_flag='-Bexport'
17283         no_entry_flag=""
17284       else
17285         # If we're using GNU nm, then we don't want the "-C" option.
17286         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17287         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17288           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17289         else
17290           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17291         fi
17292         aix_use_runtimelinking=no
17293
17294         # Test if we are trying to use run time linking or normal
17295         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17296         # need to do runtime linking.
17297         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17298           for ld_flag in $LDFLAGS; do
17299           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17300             aix_use_runtimelinking=yes
17301             break
17302           fi
17303           done
17304           ;;
17305         esac
17306
17307         exp_sym_flag='-bexport'
17308         no_entry_flag='-bnoentry'
17309       fi
17310
17311       # When large executables or shared objects are built, AIX ld can
17312       # have problems creating the table of contents.  If linking a library
17313       # or program results in "error TOC overflow" add -mminimal-toc to
17314       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17315       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17316
17317       archive_cmds_F77=''
17318       hardcode_direct_F77=yes
17319       hardcode_libdir_separator_F77=':'
17320       link_all_deplibs_F77=yes
17321
17322       if test "$GCC" = yes; then
17323         case $host_os in aix4.[012]|aix4.[012].*)
17324         # We only want to do this on AIX 4.2 and lower, the check
17325         # below for broken collect2 doesn't work under 4.3+
17326           collect2name=`${CC} -print-prog-name=collect2`
17327           if test -f "$collect2name" && \
17328            strings "$collect2name" | grep resolve_lib_name >/dev/null
17329           then
17330           # We have reworked collect2
17331           :
17332           else
17333           # We have old collect2
17334           hardcode_direct_F77=unsupported
17335           # It fails to find uninstalled libraries when the uninstalled
17336           # path is not listed in the libpath.  Setting hardcode_minus_L
17337           # to unsupported forces relinking
17338           hardcode_minus_L_F77=yes
17339           hardcode_libdir_flag_spec_F77='-L$libdir'
17340           hardcode_libdir_separator_F77=
17341           fi
17342           ;;
17343         esac
17344         shared_flag='-shared'
17345         if test "$aix_use_runtimelinking" = yes; then
17346           shared_flag="$shared_flag "'${wl}-G'
17347         fi
17348       else
17349         # not using gcc
17350         if test "$host_cpu" = ia64; then
17351         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17352         # chokes on -Wl,-G. The following line is correct:
17353           shared_flag='-G'
17354         else
17355           if test "$aix_use_runtimelinking" = yes; then
17356             shared_flag='${wl}-G'
17357           else
17358             shared_flag='${wl}-bM:SRE'
17359           fi
17360         fi
17361       fi
17362
17363       # It seems that -bexpall does not export symbols beginning with
17364       # underscore (_), so it is better to generate a list of symbols to export.
17365       always_export_symbols_F77=yes
17366       if test "$aix_use_runtimelinking" = yes; then
17367         # Warning - without using the other runtime loading flags (-brtl),
17368         # -berok will link without error, but may produce a broken library.
17369         allow_undefined_flag_F77='-berok'
17370        # Determine the default libpath from the value encoded in an empty executable.
17371        cat >conftest.$ac_ext <<_ACEOF
17372       program main
17373
17374       end
17375 _ACEOF
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (ac_try="$ac_link"
17378 case "(($ac_try" in
17379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380   *) ac_try_echo=$ac_try;;
17381 esac
17382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17383 $as_echo "$ac_try_echo") >&5
17384   (eval "$ac_link") 2>conftest.er1
17385   ac_status=$?
17386   grep -v '^ *+' conftest.er1 >conftest.err
17387   rm -f conftest.er1
17388   cat conftest.err >&5
17389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } && {
17391          test -z "$ac_f77_werror_flag" ||
17392          test ! -s conftest.err
17393        } && test -s conftest$ac_exeext && {
17394          test "$cross_compiling" = yes ||
17395          $as_test_x conftest$ac_exeext
17396        }; then
17397
17398 lt_aix_libpath_sed='
17399     /Import File Strings/,/^$/ {
17400         /^0/ {
17401             s/^0  *\(.*\)$/\1/
17402             p
17403         }
17404     }'
17405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17406 # Check for a 64-bit object if we didn't find anything.
17407 if test -z "$aix_libpath"; then
17408   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17409 fi
17410 else
17411   $as_echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17413
17414
17415 fi
17416
17417 rm -rf conftest.dSYM
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419       conftest$ac_exeext conftest.$ac_ext
17420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17421
17422        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17423         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17424        else
17425         if test "$host_cpu" = ia64; then
17426           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17427           allow_undefined_flag_F77="-z nodefs"
17428           archive_expsym_cmds_F77="\$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"
17429         else
17430          # Determine the default libpath from the value encoded in an empty executable.
17431          cat >conftest.$ac_ext <<_ACEOF
17432       program main
17433
17434       end
17435 _ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440   *) ac_try_echo=$ac_try;;
17441 esac
17442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17443 $as_echo "$ac_try_echo") >&5
17444   (eval "$ac_link") 2>conftest.er1
17445   ac_status=$?
17446   grep -v '^ *+' conftest.er1 >conftest.err
17447   rm -f conftest.er1
17448   cat conftest.err >&5
17449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } && {
17451          test -z "$ac_f77_werror_flag" ||
17452          test ! -s conftest.err
17453        } && test -s conftest$ac_exeext && {
17454          test "$cross_compiling" = yes ||
17455          $as_test_x conftest$ac_exeext
17456        }; then
17457
17458 lt_aix_libpath_sed='
17459     /Import File Strings/,/^$/ {
17460         /^0/ {
17461             s/^0  *\(.*\)$/\1/
17462             p
17463         }
17464     }'
17465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17466 # Check for a 64-bit object if we didn't find anything.
17467 if test -z "$aix_libpath"; then
17468   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17469 fi
17470 else
17471   $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474
17475 fi
17476
17477 rm -rf conftest.dSYM
17478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17479       conftest$ac_exeext conftest.$ac_ext
17480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17481
17482          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17483           # Warning - without using the other run time loading flags,
17484           # -berok will link without error, but may produce a broken library.
17485           no_undefined_flag_F77=' ${wl}-bernotok'
17486           allow_undefined_flag_F77=' ${wl}-berok'
17487           # Exported symbols can be pulled into shared objects from archives
17488           whole_archive_flag_spec_F77='$convenience'
17489           archive_cmds_need_lc_F77=yes
17490           # This is similar to how AIX traditionally builds its shared libraries.
17491           archive_expsym_cmds_F77="\$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'
17492         fi
17493       fi
17494       ;;
17495
17496     amigaos*)
17497       archive_cmds_F77='$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)'
17498       hardcode_libdir_flag_spec_F77='-L$libdir'
17499       hardcode_minus_L_F77=yes
17500       # see comment about different semantics on the GNU ld section
17501       ld_shlibs_F77=no
17502       ;;
17503
17504     bsdi[45]*)
17505       export_dynamic_flag_spec_F77=-rdynamic
17506       ;;
17507
17508     cygwin* | mingw* | pw32*)
17509       # When not using gcc, we currently assume that we are using
17510       # Microsoft Visual C++.
17511       # hardcode_libdir_flag_spec is actually meaningless, as there is
17512       # no search path for DLLs.
17513       hardcode_libdir_flag_spec_F77=' '
17514       allow_undefined_flag_F77=unsupported
17515       # Tell ltmain to make .lib files, not .a files.
17516       libext=lib
17517       # Tell ltmain to make .dll files, not .so files.
17518       shrext_cmds=".dll"
17519       # FIXME: Setting linknames here is a bad hack.
17520       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17521       # The linker will automatically build a .lib file if we build a DLL.
17522       old_archive_From_new_cmds_F77='true'
17523       # FIXME: Should let the user specify the lib program.
17524       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17525       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17526       enable_shared_with_static_runtimes_F77=yes
17527       ;;
17528
17529     darwin* | rhapsody*)
17530       case $host_os in
17531         rhapsody* | darwin1.[012])
17532          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17533          ;;
17534        *) # Darwin 1.3 on
17535          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17536            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17537          else
17538            case ${MACOSX_DEPLOYMENT_TARGET} in
17539              10.[012])
17540                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17541                ;;
17542              10.*)
17543                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17544                ;;
17545            esac
17546          fi
17547          ;;
17548       esac
17549       archive_cmds_need_lc_F77=no
17550       hardcode_direct_F77=no
17551       hardcode_automatic_F77=yes
17552       hardcode_shlibpath_var_F77=unsupported
17553       whole_archive_flag_spec_F77=''
17554       link_all_deplibs_F77=yes
17555     if test "$GCC" = yes ; then
17556         output_verbose_link_cmd='echo'
17557         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17558         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17559         archive_expsym_cmds_F77="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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17560         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17561     else
17562       case $cc_basename in
17563         xlc*)
17564          output_verbose_link_cmd='echo'
17565          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17566          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17567           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17568          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17569           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
17570           ;;
17571        *)
17572          ld_shlibs_F77=no
17573           ;;
17574       esac
17575     fi
17576       ;;
17577
17578     dgux*)
17579       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17580       hardcode_libdir_flag_spec_F77='-L$libdir'
17581       hardcode_shlibpath_var_F77=no
17582       ;;
17583
17584     freebsd1*)
17585       ld_shlibs_F77=no
17586       ;;
17587
17588     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17589     # support.  Future versions do this automatically, but an explicit c++rt0.o
17590     # does not break anything, and helps significantly (at the cost of a little
17591     # extra space).
17592     freebsd2.2*)
17593       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17594       hardcode_libdir_flag_spec_F77='-R$libdir'
17595       hardcode_direct_F77=yes
17596       hardcode_shlibpath_var_F77=no
17597       ;;
17598
17599     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17600     freebsd2*)
17601       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17602       hardcode_direct_F77=yes
17603       hardcode_minus_L_F77=yes
17604       hardcode_shlibpath_var_F77=no
17605       ;;
17606
17607     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17608     freebsd* | dragonfly*)
17609       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17610       hardcode_libdir_flag_spec_F77='-R$libdir'
17611       hardcode_direct_F77=yes
17612       hardcode_shlibpath_var_F77=no
17613       ;;
17614
17615     hpux9*)
17616       if test "$GCC" = yes; then
17617         archive_cmds_F77='$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'
17618       else
17619         archive_cmds_F77='$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'
17620       fi
17621       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17622       hardcode_libdir_separator_F77=:
17623       hardcode_direct_F77=yes
17624
17625       # hardcode_minus_L: Not really in the search PATH,
17626       # but as the default location of the library.
17627       hardcode_minus_L_F77=yes
17628       export_dynamic_flag_spec_F77='${wl}-E'
17629       ;;
17630
17631     hpux10*)
17632       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17633         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17634       else
17635         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17636       fi
17637       if test "$with_gnu_ld" = no; then
17638         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17639         hardcode_libdir_separator_F77=:
17640
17641         hardcode_direct_F77=yes
17642         export_dynamic_flag_spec_F77='${wl}-E'
17643
17644         # hardcode_minus_L: Not really in the search PATH,
17645         # but as the default location of the library.
17646         hardcode_minus_L_F77=yes
17647       fi
17648       ;;
17649
17650     hpux11*)
17651       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17652         case $host_cpu in
17653         hppa*64*)
17654           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17655           ;;
17656         ia64*)
17657           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17658           ;;
17659         *)
17660           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17661           ;;
17662         esac
17663       else
17664         case $host_cpu in
17665         hppa*64*)
17666           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17667           ;;
17668         ia64*)
17669           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17670           ;;
17671         *)
17672           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17673           ;;
17674         esac
17675       fi
17676       if test "$with_gnu_ld" = no; then
17677         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17678         hardcode_libdir_separator_F77=:
17679
17680         case $host_cpu in
17681         hppa*64*|ia64*)
17682           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17683           hardcode_direct_F77=no
17684           hardcode_shlibpath_var_F77=no
17685           ;;
17686         *)
17687           hardcode_direct_F77=yes
17688           export_dynamic_flag_spec_F77='${wl}-E'
17689
17690           # hardcode_minus_L: Not really in the search PATH,
17691           # but as the default location of the library.
17692           hardcode_minus_L_F77=yes
17693           ;;
17694         esac
17695       fi
17696       ;;
17697
17698     irix5* | irix6* | nonstopux*)
17699       if test "$GCC" = yes; then
17700         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17701       else
17702         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17703         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17704       fi
17705       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17706       hardcode_libdir_separator_F77=:
17707       link_all_deplibs_F77=yes
17708       ;;
17709
17710     netbsd*)
17711       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17712         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17713       else
17714         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17715       fi
17716       hardcode_libdir_flag_spec_F77='-R$libdir'
17717       hardcode_direct_F77=yes
17718       hardcode_shlibpath_var_F77=no
17719       ;;
17720
17721     newsos6)
17722       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723       hardcode_direct_F77=yes
17724       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17725       hardcode_libdir_separator_F77=:
17726       hardcode_shlibpath_var_F77=no
17727       ;;
17728
17729     openbsd*)
17730       if test -f /usr/libexec/ld.so; then
17731         hardcode_direct_F77=yes
17732         hardcode_shlibpath_var_F77=no
17733         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17734           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17735           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17736           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17737           export_dynamic_flag_spec_F77='${wl}-E'
17738         else
17739           case $host_os in
17740            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17741              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742              hardcode_libdir_flag_spec_F77='-R$libdir'
17743              ;;
17744            *)
17745              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17746              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17747              ;;
17748           esac
17749         fi
17750       else
17751         ld_shlibs_F77=no
17752       fi
17753       ;;
17754
17755     os2*)
17756       hardcode_libdir_flag_spec_F77='-L$libdir'
17757       hardcode_minus_L_F77=yes
17758       allow_undefined_flag_F77=unsupported
17759       archive_cmds_F77='$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'
17760       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17761       ;;
17762
17763     osf3*)
17764       if test "$GCC" = yes; then
17765         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17766         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17767       else
17768         allow_undefined_flag_F77=' -expect_unresolved \*'
17769         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17770       fi
17771       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17772       hardcode_libdir_separator_F77=:
17773       ;;
17774
17775     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17776       if test "$GCC" = yes; then
17777         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17778         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17779         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17780       else
17781         allow_undefined_flag_F77=' -expect_unresolved \*'
17782         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17783         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17784         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17785
17786         # Both c and cxx compiler support -rpath directly
17787         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17788       fi
17789       hardcode_libdir_separator_F77=:
17790       ;;
17791
17792     solaris*)
17793       no_undefined_flag_F77=' -z text'
17794       if test "$GCC" = yes; then
17795         wlarc='${wl}'
17796         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17797         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17798           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17799       else
17800         wlarc=''
17801         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17802         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17803         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17804       fi
17805       hardcode_libdir_flag_spec_F77='-R$libdir'
17806       hardcode_shlibpath_var_F77=no
17807       case $host_os in
17808       solaris2.[0-5] | solaris2.[0-5].*) ;;
17809       *)
17810         # The compiler driver will combine and reorder linker options,
17811         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17812         # but is careful enough not to reorder.
17813         # Supported since Solaris 2.6 (maybe 2.5.1?)
17814         if test "$GCC" = yes; then
17815           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17816         else
17817           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17818         fi
17819         ;;
17820       esac
17821       link_all_deplibs_F77=yes
17822       ;;
17823
17824     sunos4*)
17825       if test "x$host_vendor" = xsequent; then
17826         # Use $CC to link under sequent, because it throws in some extra .o
17827         # files that make .init and .fini sections work.
17828         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17829       else
17830         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17831       fi
17832       hardcode_libdir_flag_spec_F77='-L$libdir'
17833       hardcode_direct_F77=yes
17834       hardcode_minus_L_F77=yes
17835       hardcode_shlibpath_var_F77=no
17836       ;;
17837
17838     sysv4)
17839       case $host_vendor in
17840         sni)
17841           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17842           hardcode_direct_F77=yes # is this really true???
17843         ;;
17844         siemens)
17845           ## LD is ld it makes a PLAMLIB
17846           ## CC just makes a GrossModule.
17847           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17848           reload_cmds_F77='$CC -r -o $output$reload_objs'
17849           hardcode_direct_F77=no
17850         ;;
17851         motorola)
17852           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17853           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17854         ;;
17855       esac
17856       runpath_var='LD_RUN_PATH'
17857       hardcode_shlibpath_var_F77=no
17858       ;;
17859
17860     sysv4.3*)
17861       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17862       hardcode_shlibpath_var_F77=no
17863       export_dynamic_flag_spec_F77='-Bexport'
17864       ;;
17865
17866     sysv4*MP*)
17867       if test -d /usr/nec; then
17868         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17869         hardcode_shlibpath_var_F77=no
17870         runpath_var=LD_RUN_PATH
17871         hardcode_runpath_var=yes
17872         ld_shlibs_F77=yes
17873       fi
17874       ;;
17875
17876     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17877       no_undefined_flag_F77='${wl}-z,text'
17878       archive_cmds_need_lc_F77=no
17879       hardcode_shlibpath_var_F77=no
17880       runpath_var='LD_RUN_PATH'
17881
17882       if test "$GCC" = yes; then
17883         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17884         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17885       else
17886         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17887         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17888       fi
17889       ;;
17890
17891     sysv5* | sco3.2v5* | sco5v6*)
17892       # Note: We can NOT use -z defs as we might desire, because we do not
17893       # link with -lc, and that would cause any symbols used from libc to
17894       # always be unresolved, which means just about no library would
17895       # ever link correctly.  If we're not using GNU ld we use -z text
17896       # though, which does catch some bad symbols but isn't as heavy-handed
17897       # as -z defs.
17898       no_undefined_flag_F77='${wl}-z,text'
17899       allow_undefined_flag_F77='${wl}-z,nodefs'
17900       archive_cmds_need_lc_F77=no
17901       hardcode_shlibpath_var_F77=no
17902       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17903       hardcode_libdir_separator_F77=':'
17904       link_all_deplibs_F77=yes
17905       export_dynamic_flag_spec_F77='${wl}-Bexport'
17906       runpath_var='LD_RUN_PATH'
17907
17908       if test "$GCC" = yes; then
17909         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17910         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17911       else
17912         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17913         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17914       fi
17915       ;;
17916
17917     uts4*)
17918       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17919       hardcode_libdir_flag_spec_F77='-L$libdir'
17920       hardcode_shlibpath_var_F77=no
17921       ;;
17922
17923     *)
17924       ld_shlibs_F77=no
17925       ;;
17926     esac
17927   fi
17928
17929 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17930 $as_echo "$ld_shlibs_F77" >&6; }
17931 test "$ld_shlibs_F77" = no && can_build_shared=no
17932
17933 #
17934 # Do we need to explicitly link libc?
17935 #
17936 case "x$archive_cmds_need_lc_F77" in
17937 x|xyes)
17938   # Assume -lc should be added
17939   archive_cmds_need_lc_F77=yes
17940
17941   if test "$enable_shared" = yes && test "$GCC" = yes; then
17942     case $archive_cmds_F77 in
17943     *'~'*)
17944       # FIXME: we may have to deal with multi-command sequences.
17945       ;;
17946     '$CC '*)
17947       # Test whether the compiler implicitly links with -lc since on some
17948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17949       # to ld, don't add -lc before -lgcc.
17950       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17952       $rm conftest*
17953       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17954
17955       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17956   (eval $ac_compile) 2>&5
17957   ac_status=$?
17958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); } 2>conftest.err; then
17960         soname=conftest
17961         lib=conftest
17962         libobjs=conftest.$ac_objext
17963         deplibs=
17964         wl=$lt_prog_compiler_wl_F77
17965         pic_flag=$lt_prog_compiler_pic_F77
17966         compiler_flags=-v
17967         linker_flags=-v
17968         verstring=
17969         output_objdir=.
17970         libname=conftest
17971         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17972         allow_undefined_flag_F77=
17973         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17974   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17975   ac_status=$?
17976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); }
17978         then
17979           archive_cmds_need_lc_F77=no
17980         else
17981           archive_cmds_need_lc_F77=yes
17982         fi
17983         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17984       else
17985         cat conftest.err 1>&5
17986       fi
17987       $rm conftest*
17988       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17989 $as_echo "$archive_cmds_need_lc_F77" >&6; }
17990       ;;
17991     esac
17992   fi
17993   ;;
17994 esac
17995
17996 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17998 library_names_spec=
17999 libname_spec='lib$name'
18000 soname_spec=
18001 shrext_cmds=".so"
18002 postinstall_cmds=
18003 postuninstall_cmds=
18004 finish_cmds=
18005 finish_eval=
18006 shlibpath_var=
18007 shlibpath_overrides_runpath=unknown
18008 version_type=none
18009 dynamic_linker="$host_os ld.so"
18010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18011
18012 need_lib_prefix=unknown
18013 hardcode_into_libs=no
18014
18015 # when you set need_version to no, make sure it does not cause -set_version
18016 # flags to be left without arguments
18017 need_version=unknown
18018
18019 case $host_os in
18020 aix3*)
18021   version_type=linux
18022   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18023   shlibpath_var=LIBPATH
18024
18025   # AIX 3 has no versioning support, so we append a major version to the name.
18026   soname_spec='${libname}${release}${shared_ext}$major'
18027   ;;
18028
18029 aix[4-9]*)
18030   version_type=linux
18031   need_lib_prefix=no
18032   need_version=no
18033   hardcode_into_libs=yes
18034   if test "$host_cpu" = ia64; then
18035     # AIX 5 supports IA64
18036     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18037     shlibpath_var=LD_LIBRARY_PATH
18038   else
18039     # With GCC up to 2.95.x, collect2 would create an import file
18040     # for dependence libraries.  The import file would start with
18041     # the line `#! .'.  This would cause the generated library to
18042     # depend on `.', always an invalid library.  This was fixed in
18043     # development snapshots of GCC prior to 3.0.
18044     case $host_os in
18045       aix4 | aix4.[01] | aix4.[01].*)
18046       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18047            echo ' yes '
18048            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18049         :
18050       else
18051         can_build_shared=no
18052       fi
18053       ;;
18054     esac
18055     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18056     # soname into executable. Probably we can add versioning support to
18057     # collect2, so additional links can be useful in future.
18058     if test "$aix_use_runtimelinking" = yes; then
18059       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18060       # instead of lib<name>.a to let people know that these are not
18061       # typical AIX shared libraries.
18062       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063     else
18064       # We preserve .a as extension for shared libraries through AIX4.2
18065       # and later when we are not doing run time linking.
18066       library_names_spec='${libname}${release}.a $libname.a'
18067       soname_spec='${libname}${release}${shared_ext}$major'
18068     fi
18069     shlibpath_var=LIBPATH
18070   fi
18071   ;;
18072
18073 amigaos*)
18074   library_names_spec='$libname.ixlibrary $libname.a'
18075   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18076   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'
18077   ;;
18078
18079 beos*)
18080   library_names_spec='${libname}${shared_ext}'
18081   dynamic_linker="$host_os ld.so"
18082   shlibpath_var=LIBRARY_PATH
18083   ;;
18084
18085 bsdi[45]*)
18086   version_type=linux
18087   need_version=no
18088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18089   soname_spec='${libname}${release}${shared_ext}$major'
18090   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18091   shlibpath_var=LD_LIBRARY_PATH
18092   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18093   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18094   # the default ld.so.conf also contains /usr/contrib/lib and
18095   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18096   # libtool to hard-code these into programs
18097   ;;
18098
18099 cygwin* | mingw* | pw32*)
18100   version_type=windows
18101   shrext_cmds=".dll"
18102   need_version=no
18103   need_lib_prefix=no
18104
18105   case $GCC,$host_os in
18106   yes,cygwin* | yes,mingw* | yes,pw32*)
18107     library_names_spec='$libname.dll.a'
18108     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18109     postinstall_cmds='base_file=`basename \${file}`~
18110       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18111       dldir=$destdir/`dirname \$dlpath`~
18112       test -d \$dldir || mkdir -p \$dldir~
18113       $install_prog $dir/$dlname \$dldir/$dlname~
18114       chmod a+x \$dldir/$dlname'
18115     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18116       dlpath=$dir/\$dldll~
18117        $rm \$dlpath'
18118     shlibpath_overrides_runpath=yes
18119
18120     case $host_os in
18121     cygwin*)
18122       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18123       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18124       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18125       ;;
18126     mingw*)
18127       # MinGW DLLs use traditional 'lib' prefix
18128       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18129       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18130       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18131         # It is most probably a Windows format PATH printed by
18132         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18133         # path with ; separators, and with drive letters. We can handle the
18134         # drive letters (cygwin fileutils understands them), so leave them,
18135         # especially as we might pass files found there to a mingw objdump,
18136         # which wouldn't understand a cygwinified path. Ahh.
18137         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18138       else
18139         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18140       fi
18141       ;;
18142     pw32*)
18143       # pw32 DLLs use 'pw' prefix rather than 'lib'
18144       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18145       ;;
18146     esac
18147     ;;
18148
18149   *)
18150     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18151     ;;
18152   esac
18153   dynamic_linker='Win32 ld.exe'
18154   # FIXME: first we should search . and the directory the executable is in
18155   shlibpath_var=PATH
18156   ;;
18157
18158 darwin* | rhapsody*)
18159   dynamic_linker="$host_os dyld"
18160   version_type=darwin
18161   need_lib_prefix=no
18162   need_version=no
18163   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18164   soname_spec='${libname}${release}${major}$shared_ext'
18165   shlibpath_overrides_runpath=yes
18166   shlibpath_var=DYLD_LIBRARY_PATH
18167   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18168
18169   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18170   ;;
18171
18172 dgux*)
18173   version_type=linux
18174   need_lib_prefix=no
18175   need_version=no
18176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18177   soname_spec='${libname}${release}${shared_ext}$major'
18178   shlibpath_var=LD_LIBRARY_PATH
18179   ;;
18180
18181 freebsd1*)
18182   dynamic_linker=no
18183   ;;
18184
18185 freebsd* | dragonfly*)
18186   # DragonFly does not have aout.  When/if they implement a new
18187   # versioning mechanism, adjust this.
18188   if test -x /usr/bin/objformat; then
18189     objformat=`/usr/bin/objformat`
18190   else
18191     case $host_os in
18192     freebsd[123]*) objformat=aout ;;
18193     *) objformat=elf ;;
18194     esac
18195   fi
18196   version_type=freebsd-$objformat
18197   case $version_type in
18198     freebsd-elf*)
18199       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18200       need_version=no
18201       need_lib_prefix=no
18202       ;;
18203     freebsd-*)
18204       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18205       need_version=yes
18206       ;;
18207   esac
18208   shlibpath_var=LD_LIBRARY_PATH
18209   case $host_os in
18210   freebsd2*)
18211     shlibpath_overrides_runpath=yes
18212     ;;
18213   freebsd3.[01]* | freebsdelf3.[01]*)
18214     shlibpath_overrides_runpath=yes
18215     hardcode_into_libs=yes
18216     ;;
18217   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18218   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18219     shlibpath_overrides_runpath=no
18220     hardcode_into_libs=yes
18221     ;;
18222   *) # from 4.6 on, and DragonFly
18223     shlibpath_overrides_runpath=yes
18224     hardcode_into_libs=yes
18225     ;;
18226   esac
18227   ;;
18228
18229 gnu*)
18230   version_type=linux
18231   need_lib_prefix=no
18232   need_version=no
18233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18234   soname_spec='${libname}${release}${shared_ext}$major'
18235   shlibpath_var=LD_LIBRARY_PATH
18236   hardcode_into_libs=yes
18237   ;;
18238
18239 hpux9* | hpux10* | hpux11*)
18240   # Give a soname corresponding to the major version so that dld.sl refuses to
18241   # link against other versions.
18242   version_type=sunos
18243   need_lib_prefix=no
18244   need_version=no
18245   case $host_cpu in
18246   ia64*)
18247     shrext_cmds='.so'
18248     hardcode_into_libs=yes
18249     dynamic_linker="$host_os dld.so"
18250     shlibpath_var=LD_LIBRARY_PATH
18251     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253     soname_spec='${libname}${release}${shared_ext}$major'
18254     if test "X$HPUX_IA64_MODE" = X32; then
18255       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18256     else
18257       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18258     fi
18259     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18260     ;;
18261    hppa*64*)
18262      shrext_cmds='.sl'
18263      hardcode_into_libs=yes
18264      dynamic_linker="$host_os dld.sl"
18265      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18266      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18268      soname_spec='${libname}${release}${shared_ext}$major'
18269      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18270      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18271      ;;
18272    *)
18273     shrext_cmds='.sl'
18274     dynamic_linker="$host_os dld.sl"
18275     shlibpath_var=SHLIB_PATH
18276     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278     soname_spec='${libname}${release}${shared_ext}$major'
18279     ;;
18280   esac
18281   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18282   postinstall_cmds='chmod 555 $lib'
18283   ;;
18284
18285 interix[3-9]*)
18286   version_type=linux
18287   need_lib_prefix=no
18288   need_version=no
18289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18290   soname_spec='${libname}${release}${shared_ext}$major'
18291   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18292   shlibpath_var=LD_LIBRARY_PATH
18293   shlibpath_overrides_runpath=no
18294   hardcode_into_libs=yes
18295   ;;
18296
18297 irix5* | irix6* | nonstopux*)
18298   case $host_os in
18299     nonstopux*) version_type=nonstopux ;;
18300     *)
18301         if test "$lt_cv_prog_gnu_ld" = yes; then
18302                 version_type=linux
18303         else
18304                 version_type=irix
18305         fi ;;
18306   esac
18307   need_lib_prefix=no
18308   need_version=no
18309   soname_spec='${libname}${release}${shared_ext}$major'
18310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18311   case $host_os in
18312   irix5* | nonstopux*)
18313     libsuff= shlibsuff=
18314     ;;
18315   *)
18316     case $LD in # libtool.m4 will add one of these switches to LD
18317     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18318       libsuff= shlibsuff= libmagic=32-bit;;
18319     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18320       libsuff=32 shlibsuff=N32 libmagic=N32;;
18321     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18322       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18323     *) libsuff= shlibsuff= libmagic=never-match;;
18324     esac
18325     ;;
18326   esac
18327   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18328   shlibpath_overrides_runpath=no
18329   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18330   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18331   hardcode_into_libs=yes
18332   ;;
18333
18334 # No shared lib support for Linux oldld, aout, or coff.
18335 linux*oldld* | linux*aout* | linux*coff*)
18336   dynamic_linker=no
18337   ;;
18338
18339 # This must be Linux ELF.
18340 linux* | k*bsd*-gnu)
18341   version_type=linux
18342   need_lib_prefix=no
18343   need_version=no
18344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345   soname_spec='${libname}${release}${shared_ext}$major'
18346   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18347   shlibpath_var=LD_LIBRARY_PATH
18348   shlibpath_overrides_runpath=no
18349   # This implies no fast_install, which is unacceptable.
18350   # Some rework will be needed to allow for fast_install
18351   # before this can be enabled.
18352   hardcode_into_libs=yes
18353   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18354   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18355
18356   # Append ld.so.conf contents to the search path
18357   if test -f /etc/ld.so.conf; then
18358     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/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18359     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18360   fi
18361
18362   # We used to test for /lib/ld.so.1 and disable shared libraries on
18363   # powerpc, because MkLinux only supported shared libraries with the
18364   # GNU dynamic linker.  Since this was broken with cross compilers,
18365   # most powerpc-linux boxes support dynamic linking these days and
18366   # people can always --disable-shared, the test was removed, and we
18367   # assume the GNU/Linux dynamic linker is in use.
18368   dynamic_linker='GNU/Linux ld.so'
18369   ;;
18370
18371 netbsd*)
18372   version_type=sunos
18373   need_lib_prefix=no
18374   need_version=no
18375   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18377     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18378     dynamic_linker='NetBSD (a.out) ld.so'
18379   else
18380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18381     soname_spec='${libname}${release}${shared_ext}$major'
18382     dynamic_linker='NetBSD ld.elf_so'
18383   fi
18384   shlibpath_var=LD_LIBRARY_PATH
18385   shlibpath_overrides_runpath=yes
18386   hardcode_into_libs=yes
18387   ;;
18388
18389 newsos6)
18390   version_type=linux
18391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392   shlibpath_var=LD_LIBRARY_PATH
18393   shlibpath_overrides_runpath=yes
18394   ;;
18395
18396 nto-qnx*)
18397   version_type=linux
18398   need_lib_prefix=no
18399   need_version=no
18400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401   soname_spec='${libname}${release}${shared_ext}$major'
18402   shlibpath_var=LD_LIBRARY_PATH
18403   shlibpath_overrides_runpath=yes
18404   ;;
18405
18406 openbsd*)
18407   version_type=sunos
18408   sys_lib_dlsearch_path_spec="/usr/lib"
18409   need_lib_prefix=no
18410   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18411   case $host_os in
18412     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18413     *)                         need_version=no  ;;
18414   esac
18415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18416   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18417   shlibpath_var=LD_LIBRARY_PATH
18418   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18419     case $host_os in
18420       openbsd2.[89] | openbsd2.[89].*)
18421         shlibpath_overrides_runpath=no
18422         ;;
18423       *)
18424         shlibpath_overrides_runpath=yes
18425         ;;
18426       esac
18427   else
18428     shlibpath_overrides_runpath=yes
18429   fi
18430   ;;
18431
18432 os2*)
18433   libname_spec='$name'
18434   shrext_cmds=".dll"
18435   need_lib_prefix=no
18436   library_names_spec='$libname${shared_ext} $libname.a'
18437   dynamic_linker='OS/2 ld.exe'
18438   shlibpath_var=LIBPATH
18439   ;;
18440
18441 osf3* | osf4* | osf5*)
18442   version_type=osf
18443   need_lib_prefix=no
18444   need_version=no
18445   soname_spec='${libname}${release}${shared_ext}$major'
18446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447   shlibpath_var=LD_LIBRARY_PATH
18448   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18449   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18450   ;;
18451
18452 rdos*)
18453   dynamic_linker=no
18454   ;;
18455
18456 solaris*)
18457   version_type=linux
18458   need_lib_prefix=no
18459   need_version=no
18460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18461   soname_spec='${libname}${release}${shared_ext}$major'
18462   shlibpath_var=LD_LIBRARY_PATH
18463   shlibpath_overrides_runpath=yes
18464   hardcode_into_libs=yes
18465   # ldd complains unless libraries are executable
18466   postinstall_cmds='chmod +x $lib'
18467   ;;
18468
18469 sunos4*)
18470   version_type=sunos
18471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18472   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18473   shlibpath_var=LD_LIBRARY_PATH
18474   shlibpath_overrides_runpath=yes
18475   if test "$with_gnu_ld" = yes; then
18476     need_lib_prefix=no
18477   fi
18478   need_version=yes
18479   ;;
18480
18481 sysv4 | sysv4.3*)
18482   version_type=linux
18483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484   soname_spec='${libname}${release}${shared_ext}$major'
18485   shlibpath_var=LD_LIBRARY_PATH
18486   case $host_vendor in
18487     sni)
18488       shlibpath_overrides_runpath=no
18489       need_lib_prefix=no
18490       export_dynamic_flag_spec='${wl}-Blargedynsym'
18491       runpath_var=LD_RUN_PATH
18492       ;;
18493     siemens)
18494       need_lib_prefix=no
18495       ;;
18496     motorola)
18497       need_lib_prefix=no
18498       need_version=no
18499       shlibpath_overrides_runpath=no
18500       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18501       ;;
18502   esac
18503   ;;
18504
18505 sysv4*MP*)
18506   if test -d /usr/nec ;then
18507     version_type=linux
18508     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18509     soname_spec='$libname${shared_ext}.$major'
18510     shlibpath_var=LD_LIBRARY_PATH
18511   fi
18512   ;;
18513
18514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18515   version_type=freebsd-elf
18516   need_lib_prefix=no
18517   need_version=no
18518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18519   soname_spec='${libname}${release}${shared_ext}$major'
18520   shlibpath_var=LD_LIBRARY_PATH
18521   hardcode_into_libs=yes
18522   if test "$with_gnu_ld" = yes; then
18523     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18524     shlibpath_overrides_runpath=no
18525   else
18526     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18527     shlibpath_overrides_runpath=yes
18528     case $host_os in
18529       sco3.2v5*)
18530         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18531         ;;
18532     esac
18533   fi
18534   sys_lib_dlsearch_path_spec='/usr/lib'
18535   ;;
18536
18537 uts4*)
18538   version_type=linux
18539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540   soname_spec='${libname}${release}${shared_ext}$major'
18541   shlibpath_var=LD_LIBRARY_PATH
18542   ;;
18543
18544 *)
18545   dynamic_linker=no
18546   ;;
18547 esac
18548 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18549 $as_echo "$dynamic_linker" >&6; }
18550 test "$dynamic_linker" = no && can_build_shared=no
18551
18552 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18553   $as_echo_n "(cached) " >&6
18554 else
18555   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18556 fi
18557
18558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18560   $as_echo_n "(cached) " >&6
18561 else
18562   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18563 fi
18564
18565 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18566
18567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18568 if test "$GCC" = yes; then
18569   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18570 fi
18571
18572 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18573 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18574 hardcode_action_F77=
18575 if test -n "$hardcode_libdir_flag_spec_F77" || \
18576    test -n "$runpath_var_F77" || \
18577    test "X$hardcode_automatic_F77" = "Xyes" ; then
18578
18579   # We can hardcode non-existant directories.
18580   if test "$hardcode_direct_F77" != no &&
18581      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18582      # have to relink, otherwise we might link with an installed library
18583      # when we should be linking with a yet-to-be-installed one
18584      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18585      test "$hardcode_minus_L_F77" != no; then
18586     # Linking always hardcodes the temporary library directory.
18587     hardcode_action_F77=relink
18588   else
18589     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18590     hardcode_action_F77=immediate
18591   fi
18592 else
18593   # We cannot hardcode anything, or else we can only hardcode existing
18594   # directories.
18595   hardcode_action_F77=unsupported
18596 fi
18597 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18598 $as_echo "$hardcode_action_F77" >&6; }
18599
18600 if test "$hardcode_action_F77" = relink; then
18601   # Fast installation is not supported
18602   enable_fast_install=no
18603 elif test "$shlibpath_overrides_runpath" = yes ||
18604      test "$enable_shared" = no; then
18605   # Fast installation is not necessary
18606   enable_fast_install=needless
18607 fi
18608
18609
18610 # The else clause should only fire when bootstrapping the
18611 # libtool distribution, otherwise you forgot to ship ltmain.sh
18612 # with your package, and you will get complaints that there are
18613 # no rules to generate ltmain.sh.
18614 if test -f "$ltmain"; then
18615   # See if we are running on zsh, and set the options which allow our commands through
18616   # without removal of \ escapes.
18617   if test -n "${ZSH_VERSION+set}" ; then
18618     setopt NO_GLOB_SUBST
18619   fi
18620   # Now quote all the things that may contain metacharacters while being
18621   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18622   # variables and quote the copies for generation of the libtool script.
18623   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18624     SED SHELL STRIP \
18625     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18626     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18627     deplibs_check_method reload_flag reload_cmds need_locks \
18628     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18629     lt_cv_sys_global_symbol_to_c_name_address \
18630     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18631     old_postinstall_cmds old_postuninstall_cmds \
18632     compiler_F77 \
18633     CC_F77 \
18634     LD_F77 \
18635     lt_prog_compiler_wl_F77 \
18636     lt_prog_compiler_pic_F77 \
18637     lt_prog_compiler_static_F77 \
18638     lt_prog_compiler_no_builtin_flag_F77 \
18639     export_dynamic_flag_spec_F77 \
18640     thread_safe_flag_spec_F77 \
18641     whole_archive_flag_spec_F77 \
18642     enable_shared_with_static_runtimes_F77 \
18643     old_archive_cmds_F77 \
18644     old_archive_from_new_cmds_F77 \
18645     predep_objects_F77 \
18646     postdep_objects_F77 \
18647     predeps_F77 \
18648     postdeps_F77 \
18649     compiler_lib_search_path_F77 \
18650     compiler_lib_search_dirs_F77 \
18651     archive_cmds_F77 \
18652     archive_expsym_cmds_F77 \
18653     postinstall_cmds_F77 \
18654     postuninstall_cmds_F77 \
18655     old_archive_from_expsyms_cmds_F77 \
18656     allow_undefined_flag_F77 \
18657     no_undefined_flag_F77 \
18658     export_symbols_cmds_F77 \
18659     hardcode_libdir_flag_spec_F77 \
18660     hardcode_libdir_flag_spec_ld_F77 \
18661     hardcode_libdir_separator_F77 \
18662     hardcode_automatic_F77 \
18663     module_cmds_F77 \
18664     module_expsym_cmds_F77 \
18665     lt_cv_prog_compiler_c_o_F77 \
18666     fix_srcfile_path_F77 \
18667     exclude_expsyms_F77 \
18668     include_expsyms_F77; do
18669
18670     case $var in
18671     old_archive_cmds_F77 | \
18672     old_archive_from_new_cmds_F77 | \
18673     archive_cmds_F77 | \
18674     archive_expsym_cmds_F77 | \
18675     module_cmds_F77 | \
18676     module_expsym_cmds_F77 | \
18677     old_archive_from_expsyms_cmds_F77 | \
18678     export_symbols_cmds_F77 | \
18679     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18680     postinstall_cmds | postuninstall_cmds | \
18681     old_postinstall_cmds | old_postuninstall_cmds | \
18682     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18683       # Double-quote double-evaled strings.
18684       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18685       ;;
18686     *)
18687       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18688       ;;
18689     esac
18690   done
18691
18692   case $lt_echo in
18693   *'\$0 --fallback-echo"')
18694     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18695     ;;
18696   esac
18697
18698 cfgfile="$ofile"
18699
18700   cat <<__EOF__ >> "$cfgfile"
18701 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18702
18703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18704
18705 # Shell to use when invoking shell scripts.
18706 SHELL=$lt_SHELL
18707
18708 # Whether or not to build shared libraries.
18709 build_libtool_libs=$enable_shared
18710
18711 # Whether or not to build static libraries.
18712 build_old_libs=$enable_static
18713
18714 # Whether or not to add -lc for building shared libraries.
18715 build_libtool_need_lc=$archive_cmds_need_lc_F77
18716
18717 # Whether or not to disallow shared libs when runtime libs are static
18718 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18719
18720 # Whether or not to optimize for fast installation.
18721 fast_install=$enable_fast_install
18722
18723 # The host system.
18724 host_alias=$host_alias
18725 host=$host
18726 host_os=$host_os
18727
18728 # The build system.
18729 build_alias=$build_alias
18730 build=$build
18731 build_os=$build_os
18732
18733 # An echo program that does not interpret backslashes.
18734 echo=$lt_echo
18735
18736 # The archiver.
18737 AR=$lt_AR
18738 AR_FLAGS=$lt_AR_FLAGS
18739
18740 # A C compiler.
18741 LTCC=$lt_LTCC
18742
18743 # LTCC compiler flags.
18744 LTCFLAGS=$lt_LTCFLAGS
18745
18746 # A language-specific compiler.
18747 CC=$lt_compiler_F77
18748
18749 # Is the compiler the GNU C compiler?
18750 with_gcc=$GCC_F77
18751
18752 # An ERE matcher.
18753 EGREP=$lt_EGREP
18754
18755 # The linker used to build libraries.
18756 LD=$lt_LD_F77
18757
18758 # Whether we need hard or soft links.
18759 LN_S=$lt_LN_S
18760
18761 # A BSD-compatible nm program.
18762 NM=$lt_NM
18763
18764 # A symbol stripping program
18765 STRIP=$lt_STRIP
18766
18767 # Used to examine libraries when file_magic_cmd begins "file"
18768 MAGIC_CMD=$MAGIC_CMD
18769
18770 # Used on cygwin: DLL creation program.
18771 DLLTOOL="$DLLTOOL"
18772
18773 # Used on cygwin: object dumper.
18774 OBJDUMP="$OBJDUMP"
18775
18776 # Used on cygwin: assembler.
18777 AS="$AS"
18778
18779 # The name of the directory that contains temporary libtool files.
18780 objdir=$objdir
18781
18782 # How to create reloadable object files.
18783 reload_flag=$lt_reload_flag
18784 reload_cmds=$lt_reload_cmds
18785
18786 # How to pass a linker flag through the compiler.
18787 wl=$lt_lt_prog_compiler_wl_F77
18788
18789 # Object file suffix (normally "o").
18790 objext="$ac_objext"
18791
18792 # Old archive suffix (normally "a").
18793 libext="$libext"
18794
18795 # Shared library suffix (normally ".so").
18796 shrext_cmds='$shrext_cmds'
18797
18798 # Executable file suffix (normally "").
18799 exeext="$exeext"
18800
18801 # Additional compiler flags for building library objects.
18802 pic_flag=$lt_lt_prog_compiler_pic_F77
18803 pic_mode=$pic_mode
18804
18805 # What is the maximum length of a command?
18806 max_cmd_len=$lt_cv_sys_max_cmd_len
18807
18808 # Does compiler simultaneously support -c and -o options?
18809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18810
18811 # Must we lock files when doing compilation?
18812 need_locks=$lt_need_locks
18813
18814 # Do we need the lib prefix for modules?
18815 need_lib_prefix=$need_lib_prefix
18816
18817 # Do we need a version for libraries?
18818 need_version=$need_version
18819
18820 # Whether dlopen is supported.
18821 dlopen_support=$enable_dlopen
18822
18823 # Whether dlopen of programs is supported.
18824 dlopen_self=$enable_dlopen_self
18825
18826 # Whether dlopen of statically linked programs is supported.
18827 dlopen_self_static=$enable_dlopen_self_static
18828
18829 # Compiler flag to prevent dynamic linking.
18830 link_static_flag=$lt_lt_prog_compiler_static_F77
18831
18832 # Compiler flag to turn off builtin functions.
18833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18834
18835 # Compiler flag to allow reflexive dlopens.
18836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18837
18838 # Compiler flag to generate shared objects directly from archives.
18839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18840
18841 # Compiler flag to generate thread-safe objects.
18842 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18843
18844 # Library versioning type.
18845 version_type=$version_type
18846
18847 # Format of library name prefix.
18848 libname_spec=$lt_libname_spec
18849
18850 # List of archive names.  First name is the real one, the rest are links.
18851 # The last name is the one that the linker finds with -lNAME.
18852 library_names_spec=$lt_library_names_spec
18853
18854 # The coded name of the library, if different from the real name.
18855 soname_spec=$lt_soname_spec
18856
18857 # Commands used to build and install an old-style archive.
18858 RANLIB=$lt_RANLIB
18859 old_archive_cmds=$lt_old_archive_cmds_F77
18860 old_postinstall_cmds=$lt_old_postinstall_cmds
18861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18862
18863 # Create an old-style archive from a shared archive.
18864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18865
18866 # Create a temporary old-style archive to link instead of a shared archive.
18867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18868
18869 # Commands used to build and install a shared archive.
18870 archive_cmds=$lt_archive_cmds_F77
18871 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18872 postinstall_cmds=$lt_postinstall_cmds
18873 postuninstall_cmds=$lt_postuninstall_cmds
18874
18875 # Commands used to build a loadable module (assumed same as above if empty)
18876 module_cmds=$lt_module_cmds_F77
18877 module_expsym_cmds=$lt_module_expsym_cmds_F77
18878
18879 # Commands to strip libraries.
18880 old_striplib=$lt_old_striplib
18881 striplib=$lt_striplib
18882
18883 # Dependencies to place before the objects being linked to create a
18884 # shared library.
18885 predep_objects=$lt_predep_objects_F77
18886
18887 # Dependencies to place after the objects being linked to create a
18888 # shared library.
18889 postdep_objects=$lt_postdep_objects_F77
18890
18891 # Dependencies to place before the objects being linked to create a
18892 # shared library.
18893 predeps=$lt_predeps_F77
18894
18895 # Dependencies to place after the objects being linked to create a
18896 # shared library.
18897 postdeps=$lt_postdeps_F77
18898
18899 # The directories searched by this compiler when creating a shared
18900 # library
18901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18902
18903 # The library search path used internally by the compiler when linking
18904 # a shared library.
18905 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18906
18907 # Method to check whether dependent libraries are shared objects.
18908 deplibs_check_method=$lt_deplibs_check_method
18909
18910 # Command to use when deplibs_check_method == file_magic.
18911 file_magic_cmd=$lt_file_magic_cmd
18912
18913 # Flag that allows shared libraries with undefined symbols to be built.
18914 allow_undefined_flag=$lt_allow_undefined_flag_F77
18915
18916 # Flag that forces no undefined symbols.
18917 no_undefined_flag=$lt_no_undefined_flag_F77
18918
18919 # Commands used to finish a libtool library installation in a directory.
18920 finish_cmds=$lt_finish_cmds
18921
18922 # Same as above, but a single script fragment to be evaled but not shown.
18923 finish_eval=$lt_finish_eval
18924
18925 # Take the output of nm and produce a listing of raw symbols and C names.
18926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18927
18928 # Transform the output of nm in a proper C declaration
18929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18930
18931 # Transform the output of nm in a C name address pair
18932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18933
18934 # This is the shared library runtime path variable.
18935 runpath_var=$runpath_var
18936
18937 # This is the shared library path variable.
18938 shlibpath_var=$shlibpath_var
18939
18940 # Is shlibpath searched before the hard-coded library search path?
18941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18942
18943 # How to hardcode a shared library path into an executable.
18944 hardcode_action=$hardcode_action_F77
18945
18946 # Whether we should hardcode library paths into libraries.
18947 hardcode_into_libs=$hardcode_into_libs
18948
18949 # Flag to hardcode \$libdir into a binary during linking.
18950 # This must work even if \$libdir does not exist.
18951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18952
18953 # If ld is used when linking, flag to hardcode \$libdir into
18954 # a binary during linking. This must work even if \$libdir does
18955 # not exist.
18956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18957
18958 # Whether we need a single -rpath flag with a separated argument.
18959 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18960
18961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18962 # resulting binary.
18963 hardcode_direct=$hardcode_direct_F77
18964
18965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18966 # resulting binary.
18967 hardcode_minus_L=$hardcode_minus_L_F77
18968
18969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18970 # the resulting binary.
18971 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18972
18973 # Set to yes if building a shared library automatically hardcodes DIR into the library
18974 # and all subsequent libraries and executables linked against it.
18975 hardcode_automatic=$hardcode_automatic_F77
18976
18977 # Variables whose values should be saved in libtool wrapper scripts and
18978 # restored at relink time.
18979 variables_saved_for_relink="$variables_saved_for_relink"
18980
18981 # Whether libtool must link a program against all its dependency libraries.
18982 link_all_deplibs=$link_all_deplibs_F77
18983
18984 # Compile-time system search path for libraries
18985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18986
18987 # Run-time system search path for libraries
18988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18989
18990 # Fix the shell variable \$srcfile for the compiler.
18991 fix_srcfile_path=$lt_fix_srcfile_path
18992
18993 # Set to yes if exported symbols are required.
18994 always_export_symbols=$always_export_symbols_F77
18995
18996 # The commands to list exported symbols.
18997 export_symbols_cmds=$lt_export_symbols_cmds_F77
18998
18999 # The commands to extract the exported symbol list from a shared archive.
19000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19001
19002 # Symbols that should not be listed in the preloaded symbols.
19003 exclude_expsyms=$lt_exclude_expsyms_F77
19004
19005 # Symbols that must always be exported.
19006 include_expsyms=$lt_include_expsyms_F77
19007
19008 # ### END LIBTOOL TAG CONFIG: $tagname
19009
19010 __EOF__
19011
19012
19013 else
19014   # If there is no Makefile yet, we rely on a make rule to execute
19015   # `config.status --recheck' to rerun these tests and create the
19016   # libtool script then.
19017   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19018   if test -f "$ltmain_in"; then
19019     test -f Makefile && make "$ltmain"
19020   fi
19021 fi
19022
19023
19024 ac_ext=c
19025 ac_cpp='$CPP $CPPFLAGS'
19026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19029
19030 CC="$lt_save_CC"
19031
19032         else
19033           tagname=""
19034         fi
19035         ;;
19036
19037       GCJ)
19038         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19039
19040
19041 # Source file extension for Java test sources.
19042 ac_ext=java
19043
19044 # Object file extension for compiled Java test sources.
19045 objext=o
19046 objext_GCJ=$objext
19047
19048 # Code to be used in simple compile tests
19049 lt_simple_compile_test_code="class foo {}"
19050
19051 # Code to be used in simple link tests
19052 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
19053
19054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19055
19056 # If no C compiler was specified, use CC.
19057 LTCC=${LTCC-"$CC"}
19058
19059 # If no C compiler flags were specified, use CFLAGS.
19060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19061
19062 # Allow CC to be a program name with arguments.
19063 compiler=$CC
19064
19065
19066 # save warnings/boilerplate of simple test code
19067 ac_outfile=conftest.$ac_objext
19068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19070 _lt_compiler_boilerplate=`cat conftest.err`
19071 $rm conftest*
19072
19073 ac_outfile=conftest.$ac_objext
19074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19076 _lt_linker_boilerplate=`cat conftest.err`
19077 $rm -r conftest*
19078
19079
19080 # Allow CC to be a program name with arguments.
19081 lt_save_CC="$CC"
19082 CC=${GCJ-"gcj"}
19083 compiler=$CC
19084 compiler_GCJ=$CC
19085 for cc_temp in $compiler""; do
19086   case $cc_temp in
19087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19089     \-*) ;;
19090     *) break;;
19091   esac
19092 done
19093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19094
19095
19096 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19097 archive_cmds_need_lc_GCJ=no
19098
19099 old_archive_cmds_GCJ=$old_archive_cmds
19100
19101
19102 lt_prog_compiler_no_builtin_flag_GCJ=
19103
19104 if test "$GCC" = yes; then
19105   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19106
19107
19108 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19109 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19110 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19111   $as_echo_n "(cached) " >&6
19112 else
19113   lt_cv_prog_compiler_rtti_exceptions=no
19114   ac_outfile=conftest.$ac_objext
19115    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19116    lt_compiler_flag="-fno-rtti -fno-exceptions"
19117    # Insert the option either (1) after the last *FLAGS variable, or
19118    # (2) before a word containing "conftest.", or (3) at the end.
19119    # Note that $ac_compile itself does not contain backslashes and begins
19120    # with a dollar sign (not a hyphen), so the echo should work correctly.
19121    # The option is referenced via a variable to avoid confusing sed.
19122    lt_compile=`echo "$ac_compile" | $SED \
19123    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19125    -e 's:$: $lt_compiler_flag:'`
19126    (eval echo "\"\$as_me:19126: $lt_compile\"" >&5)
19127    (eval "$lt_compile" 2>conftest.err)
19128    ac_status=$?
19129    cat conftest.err >&5
19130    echo "$as_me:19130: \$? = $ac_status" >&5
19131    if (exit $ac_status) && test -s "$ac_outfile"; then
19132      # The compiler can only warn and ignore the option if not recognized
19133      # So say no if there are warnings other than the usual output.
19134      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19135      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19136      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19137        lt_cv_prog_compiler_rtti_exceptions=yes
19138      fi
19139    fi
19140    $rm conftest*
19141
19142 fi
19143 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19144 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19145
19146 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19147     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19148 else
19149     :
19150 fi
19151
19152 fi
19153
19154 lt_prog_compiler_wl_GCJ=
19155 lt_prog_compiler_pic_GCJ=
19156 lt_prog_compiler_static_GCJ=
19157
19158 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19159 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19160
19161   if test "$GCC" = yes; then
19162     lt_prog_compiler_wl_GCJ='-Wl,'
19163     lt_prog_compiler_static_GCJ='-static'
19164
19165     case $host_os in
19166       aix*)
19167       # All AIX code is PIC.
19168       if test "$host_cpu" = ia64; then
19169         # AIX 5 now supports IA64 processor
19170         lt_prog_compiler_static_GCJ='-Bstatic'
19171       fi
19172       ;;
19173
19174     amigaos*)
19175       # FIXME: we need at least 68020 code to build shared libraries, but
19176       # adding the `-m68020' flag to GCC prevents building anything better,
19177       # like `-m68040'.
19178       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19179       ;;
19180
19181     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19182       # PIC is the default for these OSes.
19183       ;;
19184
19185     mingw* | cygwin* | pw32* | os2*)
19186       # This hack is so that the source file can tell whether it is being
19187       # built for inclusion in a dll (and should export symbols for example).
19188       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19189       # (--disable-auto-import) libraries
19190
19191       ;;
19192
19193     darwin* | rhapsody*)
19194       # PIC is the default on this platform
19195       # Common symbols not allowed in MH_DYLIB files
19196       lt_prog_compiler_pic_GCJ='-fno-common'
19197       ;;
19198
19199     interix[3-9]*)
19200       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19201       # Instead, we relocate shared libraries at runtime.
19202       ;;
19203
19204     msdosdjgpp*)
19205       # Just because we use GCC doesn't mean we suddenly get shared libraries
19206       # on systems that don't support them.
19207       lt_prog_compiler_can_build_shared_GCJ=no
19208       enable_shared=no
19209       ;;
19210
19211     sysv4*MP*)
19212       if test -d /usr/nec; then
19213         lt_prog_compiler_pic_GCJ=-Kconform_pic
19214       fi
19215       ;;
19216
19217     hpux*)
19218       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19219       # not for PA HP-UX.
19220       case $host_cpu in
19221       hppa*64*|ia64*)
19222         # +Z the default
19223         ;;
19224       *)
19225         lt_prog_compiler_pic_GCJ='-fPIC'
19226         ;;
19227       esac
19228       ;;
19229
19230     *)
19231       lt_prog_compiler_pic_GCJ='-fPIC'
19232       ;;
19233     esac
19234   else
19235     # PORTME Check for flag to pass linker flags through the system compiler.
19236     case $host_os in
19237     aix*)
19238       lt_prog_compiler_wl_GCJ='-Wl,'
19239       if test "$host_cpu" = ia64; then
19240         # AIX 5 now supports IA64 processor
19241         lt_prog_compiler_static_GCJ='-Bstatic'
19242       else
19243         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19244       fi
19245       ;;
19246       darwin*)
19247         # PIC is the default on this platform
19248         # Common symbols not allowed in MH_DYLIB files
19249        case $cc_basename in
19250          xlc*)
19251          lt_prog_compiler_pic_GCJ='-qnocommon'
19252          lt_prog_compiler_wl_GCJ='-Wl,'
19253          ;;
19254        esac
19255        ;;
19256
19257     mingw* | cygwin* | pw32* | os2*)
19258       # This hack is so that the source file can tell whether it is being
19259       # built for inclusion in a dll (and should export symbols for example).
19260
19261       ;;
19262
19263     hpux9* | hpux10* | hpux11*)
19264       lt_prog_compiler_wl_GCJ='-Wl,'
19265       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19266       # not for PA HP-UX.
19267       case $host_cpu in
19268       hppa*64*|ia64*)
19269         # +Z the default
19270         ;;
19271       *)
19272         lt_prog_compiler_pic_GCJ='+Z'
19273         ;;
19274       esac
19275       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19276       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19277       ;;
19278
19279     irix5* | irix6* | nonstopux*)
19280       lt_prog_compiler_wl_GCJ='-Wl,'
19281       # PIC (with -KPIC) is the default.
19282       lt_prog_compiler_static_GCJ='-non_shared'
19283       ;;
19284
19285     newsos6)
19286       lt_prog_compiler_pic_GCJ='-KPIC'
19287       lt_prog_compiler_static_GCJ='-Bstatic'
19288       ;;
19289
19290     linux* | k*bsd*-gnu)
19291       case $cc_basename in
19292       icc* | ecc*)
19293         lt_prog_compiler_wl_GCJ='-Wl,'
19294         lt_prog_compiler_pic_GCJ='-KPIC'
19295         lt_prog_compiler_static_GCJ='-static'
19296         ;;
19297       pgcc* | pgf77* | pgf90* | pgf95*)
19298         # Portland Group compilers (*not* the Pentium gcc compiler,
19299         # which looks to be a dead project)
19300         lt_prog_compiler_wl_GCJ='-Wl,'
19301         lt_prog_compiler_pic_GCJ='-fpic'
19302         lt_prog_compiler_static_GCJ='-Bstatic'
19303         ;;
19304       ccc*)
19305         lt_prog_compiler_wl_GCJ='-Wl,'
19306         # All Alpha code is PIC.
19307         lt_prog_compiler_static_GCJ='-non_shared'
19308         ;;
19309       *)
19310         case `$CC -V 2>&1 | sed 5q` in
19311         *Sun\ C*)
19312           # Sun C 5.9
19313           lt_prog_compiler_pic_GCJ='-KPIC'
19314           lt_prog_compiler_static_GCJ='-Bstatic'
19315           lt_prog_compiler_wl_GCJ='-Wl,'
19316           ;;
19317         *Sun\ F*)
19318           # Sun Fortran 8.3 passes all unrecognized flags to the linker
19319           lt_prog_compiler_pic_GCJ='-KPIC'
19320           lt_prog_compiler_static_GCJ='-Bstatic'
19321           lt_prog_compiler_wl_GCJ=''
19322           ;;
19323         esac
19324         ;;
19325       esac
19326       ;;
19327
19328     osf3* | osf4* | osf5*)
19329       lt_prog_compiler_wl_GCJ='-Wl,'
19330       # All OSF/1 code is PIC.
19331       lt_prog_compiler_static_GCJ='-non_shared'
19332       ;;
19333
19334     rdos*)
19335       lt_prog_compiler_static_GCJ='-non_shared'
19336       ;;
19337
19338     solaris*)
19339       lt_prog_compiler_pic_GCJ='-KPIC'
19340       lt_prog_compiler_static_GCJ='-Bstatic'
19341       case $cc_basename in
19342       f77* | f90* | f95*)
19343         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19344       *)
19345         lt_prog_compiler_wl_GCJ='-Wl,';;
19346       esac
19347       ;;
19348
19349     sunos4*)
19350       lt_prog_compiler_wl_GCJ='-Qoption ld '
19351       lt_prog_compiler_pic_GCJ='-PIC'
19352       lt_prog_compiler_static_GCJ='-Bstatic'
19353       ;;
19354
19355     sysv4 | sysv4.2uw2* | sysv4.3*)
19356       lt_prog_compiler_wl_GCJ='-Wl,'
19357       lt_prog_compiler_pic_GCJ='-KPIC'
19358       lt_prog_compiler_static_GCJ='-Bstatic'
19359       ;;
19360
19361     sysv4*MP*)
19362       if test -d /usr/nec ;then
19363         lt_prog_compiler_pic_GCJ='-Kconform_pic'
19364         lt_prog_compiler_static_GCJ='-Bstatic'
19365       fi
19366       ;;
19367
19368     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19369       lt_prog_compiler_wl_GCJ='-Wl,'
19370       lt_prog_compiler_pic_GCJ='-KPIC'
19371       lt_prog_compiler_static_GCJ='-Bstatic'
19372       ;;
19373
19374     unicos*)
19375       lt_prog_compiler_wl_GCJ='-Wl,'
19376       lt_prog_compiler_can_build_shared_GCJ=no
19377       ;;
19378
19379     uts4*)
19380       lt_prog_compiler_pic_GCJ='-pic'
19381       lt_prog_compiler_static_GCJ='-Bstatic'
19382       ;;
19383
19384     *)
19385       lt_prog_compiler_can_build_shared_GCJ=no
19386       ;;
19387     esac
19388   fi
19389
19390 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19391 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19392
19393 #
19394 # Check to make sure the PIC flag actually works.
19395 #
19396 if test -n "$lt_prog_compiler_pic_GCJ"; then
19397
19398 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19399 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19400 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
19401   $as_echo_n "(cached) " >&6
19402 else
19403   lt_cv_prog_compiler_pic_works_GCJ=no
19404   ac_outfile=conftest.$ac_objext
19405    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19406    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19407    # Insert the option either (1) after the last *FLAGS variable, or
19408    # (2) before a word containing "conftest.", or (3) at the end.
19409    # Note that $ac_compile itself does not contain backslashes and begins
19410    # with a dollar sign (not a hyphen), so the echo should work correctly.
19411    # The option is referenced via a variable to avoid confusing sed.
19412    lt_compile=`echo "$ac_compile" | $SED \
19413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19415    -e 's:$: $lt_compiler_flag:'`
19416    (eval echo "\"\$as_me:19416: $lt_compile\"" >&5)
19417    (eval "$lt_compile" 2>conftest.err)
19418    ac_status=$?
19419    cat conftest.err >&5
19420    echo "$as_me:19420: \$? = $ac_status" >&5
19421    if (exit $ac_status) && test -s "$ac_outfile"; then
19422      # The compiler can only warn and ignore the option if not recognized
19423      # So say no if there are warnings other than the usual output.
19424      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19425      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19426      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19427        lt_cv_prog_compiler_pic_works_GCJ=yes
19428      fi
19429    fi
19430    $rm conftest*
19431
19432 fi
19433 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19434 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19435
19436 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19437     case $lt_prog_compiler_pic_GCJ in
19438      "" | " "*) ;;
19439      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19440      esac
19441 else
19442     lt_prog_compiler_pic_GCJ=
19443      lt_prog_compiler_can_build_shared_GCJ=no
19444 fi
19445
19446 fi
19447 case $host_os in
19448   # For platforms which do not support PIC, -DPIC is meaningless:
19449   *djgpp*)
19450     lt_prog_compiler_pic_GCJ=
19451     ;;
19452   *)
19453     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19454     ;;
19455 esac
19456
19457 #
19458 # Check to make sure the static flag actually works.
19459 #
19460 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19461 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19462 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19463 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
19464   $as_echo_n "(cached) " >&6
19465 else
19466   lt_cv_prog_compiler_static_works_GCJ=no
19467    save_LDFLAGS="$LDFLAGS"
19468    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19469    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19470    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19471      # The linker can only warn and ignore the option if not recognized
19472      # So say no if there are warnings
19473      if test -s conftest.err; then
19474        # Append any errors to the config.log.
19475        cat conftest.err 1>&5
19476        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19477        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19478        if diff conftest.exp conftest.er2 >/dev/null; then
19479          lt_cv_prog_compiler_static_works_GCJ=yes
19480        fi
19481      else
19482        lt_cv_prog_compiler_static_works_GCJ=yes
19483      fi
19484    fi
19485    $rm -r conftest*
19486    LDFLAGS="$save_LDFLAGS"
19487
19488 fi
19489 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19490 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19491
19492 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19493     :
19494 else
19495     lt_prog_compiler_static_GCJ=
19496 fi
19497
19498
19499 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19500 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19501 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19502   $as_echo_n "(cached) " >&6
19503 else
19504   lt_cv_prog_compiler_c_o_GCJ=no
19505    $rm -r conftest 2>/dev/null
19506    mkdir conftest
19507    cd conftest
19508    mkdir out
19509    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19510
19511    lt_compiler_flag="-o out/conftest2.$ac_objext"
19512    # Insert the option either (1) after the last *FLAGS variable, or
19513    # (2) before a word containing "conftest.", or (3) at the end.
19514    # Note that $ac_compile itself does not contain backslashes and begins
19515    # with a dollar sign (not a hyphen), so the echo should work correctly.
19516    lt_compile=`echo "$ac_compile" | $SED \
19517    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19518    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19519    -e 's:$: $lt_compiler_flag:'`
19520    (eval echo "\"\$as_me:19520: $lt_compile\"" >&5)
19521    (eval "$lt_compile" 2>out/conftest.err)
19522    ac_status=$?
19523    cat out/conftest.err >&5
19524    echo "$as_me:19524: \$? = $ac_status" >&5
19525    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19526    then
19527      # The compiler can only warn and ignore the option if not recognized
19528      # So say no if there are warnings
19529      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19530      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19531      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19532        lt_cv_prog_compiler_c_o_GCJ=yes
19533      fi
19534    fi
19535    chmod u+w . 2>&5
19536    $rm conftest*
19537    # SGI C++ compiler will create directory out/ii_files/ for
19538    # template instantiation
19539    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19540    $rm out/* && rmdir out
19541    cd ..
19542    rmdir conftest
19543    $rm conftest*
19544
19545 fi
19546 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19547 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19548
19549
19550 hard_links="nottested"
19551 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19552   # do not overwrite the value of need_locks provided by the user
19553   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19554 $as_echo_n "checking if we can lock with hard links... " >&6; }
19555   hard_links=yes
19556   $rm conftest*
19557   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19558   touch conftest.a
19559   ln conftest.a conftest.b 2>&5 || hard_links=no
19560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19561   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19562 $as_echo "$hard_links" >&6; }
19563   if test "$hard_links" = no; then
19564     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19565 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19566     need_locks=warn
19567   fi
19568 else
19569   need_locks=no
19570 fi
19571
19572 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19573 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19574
19575   runpath_var=
19576   allow_undefined_flag_GCJ=
19577   enable_shared_with_static_runtimes_GCJ=no
19578   archive_cmds_GCJ=
19579   archive_expsym_cmds_GCJ=
19580   old_archive_From_new_cmds_GCJ=
19581   old_archive_from_expsyms_cmds_GCJ=
19582   export_dynamic_flag_spec_GCJ=
19583   whole_archive_flag_spec_GCJ=
19584   thread_safe_flag_spec_GCJ=
19585   hardcode_libdir_flag_spec_GCJ=
19586   hardcode_libdir_flag_spec_ld_GCJ=
19587   hardcode_libdir_separator_GCJ=
19588   hardcode_direct_GCJ=no
19589   hardcode_minus_L_GCJ=no
19590   hardcode_shlibpath_var_GCJ=unsupported
19591   link_all_deplibs_GCJ=unknown
19592   hardcode_automatic_GCJ=no
19593   module_cmds_GCJ=
19594   module_expsym_cmds_GCJ=
19595   always_export_symbols_GCJ=no
19596   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19597   # include_expsyms should be a list of space-separated symbols to be *always*
19598   # included in the symbol list
19599   include_expsyms_GCJ=
19600   # exclude_expsyms can be an extended regexp of symbols to exclude
19601   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19602   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19603   # as well as any symbol that contains `d'.
19604   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19605   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19606   # platforms (ab)use it in PIC code, but their linkers get confused if
19607   # the symbol is explicitly referenced.  Since portable code cannot
19608   # rely on this symbol name, it's probably fine to never include it in
19609   # preloaded symbol tables.
19610   # Exclude shared library initialization/finalization symbols.
19611   extract_expsyms_cmds=
19612   # Just being paranoid about ensuring that cc_basename is set.
19613   for cc_temp in $compiler""; do
19614   case $cc_temp in
19615     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19616     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19617     \-*) ;;
19618     *) break;;
19619   esac
19620 done
19621 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19622
19623   case $host_os in
19624   cygwin* | mingw* | pw32*)
19625     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19626     # When not using gcc, we currently assume that we are using
19627     # Microsoft Visual C++.
19628     if test "$GCC" != yes; then
19629       with_gnu_ld=no
19630     fi
19631     ;;
19632   interix*)
19633     # we just hope/assume this is gcc and not c89 (= MSVC++)
19634     with_gnu_ld=yes
19635     ;;
19636   openbsd*)
19637     with_gnu_ld=no
19638     ;;
19639   esac
19640
19641   ld_shlibs_GCJ=yes
19642   if test "$with_gnu_ld" = yes; then
19643     # If archive_cmds runs LD, not CC, wlarc should be empty
19644     wlarc='${wl}'
19645
19646     # Set some defaults for GNU ld with shared library support. These
19647     # are reset later if shared libraries are not supported. Putting them
19648     # here allows them to be overridden if necessary.
19649     runpath_var=LD_RUN_PATH
19650     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19651     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19652     # ancient GNU ld didn't support --whole-archive et. al.
19653     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19654         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19655       else
19656         whole_archive_flag_spec_GCJ=
19657     fi
19658     supports_anon_versioning=no
19659     case `$LD -v 2>/dev/null` in
19660       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19661       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19662       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19663       *\ 2.11.*) ;; # other 2.11 versions
19664       *) supports_anon_versioning=yes ;;
19665     esac
19666
19667     # See if GNU ld supports shared libraries.
19668     case $host_os in
19669     aix[3-9]*)
19670       # On AIX/PPC, the GNU linker is very broken
19671       if test "$host_cpu" != ia64; then
19672         ld_shlibs_GCJ=no
19673         cat <<EOF 1>&2
19674
19675 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19676 *** to be unable to reliably create shared libraries on AIX.
19677 *** Therefore, libtool is disabling shared libraries support.  If you
19678 *** really care for shared libraries, you may want to modify your PATH
19679 *** so that a non-GNU linker is found, and then restart.
19680
19681 EOF
19682       fi
19683       ;;
19684
19685     amigaos*)
19686       archive_cmds_GCJ='$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)'
19687       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19688       hardcode_minus_L_GCJ=yes
19689
19690       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19691       # that the semantics of dynamic libraries on AmigaOS, at least up
19692       # to version 4, is to share data among multiple programs linked
19693       # with the same dynamic library.  Since this doesn't match the
19694       # behavior of shared libraries on other platforms, we can't use
19695       # them.
19696       ld_shlibs_GCJ=no
19697       ;;
19698
19699     beos*)
19700       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19701         allow_undefined_flag_GCJ=unsupported
19702         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19703         # support --undefined.  This deserves some investigation.  FIXME
19704         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19705       else
19706         ld_shlibs_GCJ=no
19707       fi
19708       ;;
19709
19710     cygwin* | mingw* | pw32*)
19711       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19712       # as there is no search path for DLLs.
19713       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19714       allow_undefined_flag_GCJ=unsupported
19715       always_export_symbols_GCJ=no
19716       enable_shared_with_static_runtimes_GCJ=yes
19717       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19718
19719       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19720         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19721         # If the export-symbols file already is a .def file (1st line
19722         # is EXPORTS), use it as is; otherwise, prepend...
19723         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19724           cp $export_symbols $output_objdir/$soname.def;
19725         else
19726           echo EXPORTS > $output_objdir/$soname.def;
19727           cat $export_symbols >> $output_objdir/$soname.def;
19728         fi~
19729         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19730       else
19731         ld_shlibs_GCJ=no
19732       fi
19733       ;;
19734
19735     interix[3-9]*)
19736       hardcode_direct_GCJ=no
19737       hardcode_shlibpath_var_GCJ=no
19738       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19739       export_dynamic_flag_spec_GCJ='${wl}-E'
19740       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19741       # Instead, shared libraries are loaded at an image base (0x10000000 by
19742       # default) and relocated if they conflict, which is a slow very memory
19743       # consuming and fragmenting process.  To avoid this, we pick a random,
19744       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19745       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19746       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19747       archive_expsym_cmds_GCJ='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'
19748       ;;
19749
19750     gnu* | linux* | k*bsd*-gnu)
19751       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19752         tmp_addflag=
19753         case $cc_basename,$host_cpu in
19754         pgcc*)                          # Portland Group C compiler
19755           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19756           tmp_addflag=' $pic_flag'
19757           ;;
19758         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
19759           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19760           tmp_addflag=' $pic_flag -Mnomain' ;;
19761         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
19762           tmp_addflag=' -i_dynamic' ;;
19763         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19764           tmp_addflag=' -i_dynamic -nofor_main' ;;
19765         ifc* | ifort*)                  # Intel Fortran compiler
19766           tmp_addflag=' -nofor_main' ;;
19767         esac
19768         case `$CC -V 2>&1 | sed 5q` in
19769         *Sun\ C*)                       # Sun C 5.9
19770           whole_archive_flag_spec_GCJ='${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'
19771           tmp_sharedflag='-G' ;;
19772         *Sun\ F*)                       # Sun Fortran 8.3
19773           tmp_sharedflag='-G' ;;
19774         *)
19775           tmp_sharedflag='-shared' ;;
19776         esac
19777         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19778
19779         if test $supports_anon_versioning = yes; then
19780           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19781   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19782   $echo "local: *; };" >> $output_objdir/$libname.ver~
19783           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19784         fi
19785       else
19786         ld_shlibs_GCJ=no
19787       fi
19788       ;;
19789
19790     netbsd*)
19791       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19792         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19793         wlarc=
19794       else
19795         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19796         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19797       fi
19798       ;;
19799
19800     solaris*)
19801       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19802         ld_shlibs_GCJ=no
19803         cat <<EOF 1>&2
19804
19805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19806 *** create shared libraries on Solaris systems.  Therefore, libtool
19807 *** is disabling shared libraries support.  We urge you to upgrade GNU
19808 *** binutils to release 2.9.1 or newer.  Another option is to modify
19809 *** your PATH or compiler configuration so that the native linker is
19810 *** used, and then restart.
19811
19812 EOF
19813       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19814         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19815         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19816       else
19817         ld_shlibs_GCJ=no
19818       fi
19819       ;;
19820
19821     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19822       case `$LD -v 2>&1` in
19823         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19824         ld_shlibs_GCJ=no
19825         cat <<_LT_EOF 1>&2
19826
19827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19828 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19829 *** is disabling shared libraries support.  We urge you to upgrade GNU
19830 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19831 *** your PATH or compiler configuration so that the native linker is
19832 *** used, and then restart.
19833
19834 _LT_EOF
19835         ;;
19836         *)
19837           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19838             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19839             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19840             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19841           else
19842             ld_shlibs_GCJ=no
19843           fi
19844         ;;
19845       esac
19846       ;;
19847
19848     sunos4*)
19849       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19850       wlarc=
19851       hardcode_direct_GCJ=yes
19852       hardcode_shlibpath_var_GCJ=no
19853       ;;
19854
19855     *)
19856       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19857         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19858         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19859       else
19860         ld_shlibs_GCJ=no
19861       fi
19862       ;;
19863     esac
19864
19865     if test "$ld_shlibs_GCJ" = no; then
19866       runpath_var=
19867       hardcode_libdir_flag_spec_GCJ=
19868       export_dynamic_flag_spec_GCJ=
19869       whole_archive_flag_spec_GCJ=
19870     fi
19871   else
19872     # PORTME fill in a description of your system's linker (not GNU ld)
19873     case $host_os in
19874     aix3*)
19875       allow_undefined_flag_GCJ=unsupported
19876       always_export_symbols_GCJ=yes
19877       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19878       # Note: this linker hardcodes the directories in LIBPATH if there
19879       # are no directories specified by -L.
19880       hardcode_minus_L_GCJ=yes
19881       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19882         # Neither direct hardcoding nor static linking is supported with a
19883         # broken collect2.
19884         hardcode_direct_GCJ=unsupported
19885       fi
19886       ;;
19887
19888     aix[4-9]*)
19889       if test "$host_cpu" = ia64; then
19890         # On IA64, the linker does run time linking by default, so we don't
19891         # have to do anything special.
19892         aix_use_runtimelinking=no
19893         exp_sym_flag='-Bexport'
19894         no_entry_flag=""
19895       else
19896         # If we're using GNU nm, then we don't want the "-C" option.
19897         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19898         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19899           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19900         else
19901           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19902         fi
19903         aix_use_runtimelinking=no
19904
19905         # Test if we are trying to use run time linking or normal
19906         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19907         # need to do runtime linking.
19908         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19909           for ld_flag in $LDFLAGS; do
19910           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19911             aix_use_runtimelinking=yes
19912             break
19913           fi
19914           done
19915           ;;
19916         esac
19917
19918         exp_sym_flag='-bexport'
19919         no_entry_flag='-bnoentry'
19920       fi
19921
19922       # When large executables or shared objects are built, AIX ld can
19923       # have problems creating the table of contents.  If linking a library
19924       # or program results in "error TOC overflow" add -mminimal-toc to
19925       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19926       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19927
19928       archive_cmds_GCJ=''
19929       hardcode_direct_GCJ=yes
19930       hardcode_libdir_separator_GCJ=':'
19931       link_all_deplibs_GCJ=yes
19932
19933       if test "$GCC" = yes; then
19934         case $host_os in aix4.[012]|aix4.[012].*)
19935         # We only want to do this on AIX 4.2 and lower, the check
19936         # below for broken collect2 doesn't work under 4.3+
19937           collect2name=`${CC} -print-prog-name=collect2`
19938           if test -f "$collect2name" && \
19939            strings "$collect2name" | grep resolve_lib_name >/dev/null
19940           then
19941           # We have reworked collect2
19942           :
19943           else
19944           # We have old collect2
19945           hardcode_direct_GCJ=unsupported
19946           # It fails to find uninstalled libraries when the uninstalled
19947           # path is not listed in the libpath.  Setting hardcode_minus_L
19948           # to unsupported forces relinking
19949           hardcode_minus_L_GCJ=yes
19950           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19951           hardcode_libdir_separator_GCJ=
19952           fi
19953           ;;
19954         esac
19955         shared_flag='-shared'
19956         if test "$aix_use_runtimelinking" = yes; then
19957           shared_flag="$shared_flag "'${wl}-G'
19958         fi
19959       else
19960         # not using gcc
19961         if test "$host_cpu" = ia64; then
19962         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19963         # chokes on -Wl,-G. The following line is correct:
19964           shared_flag='-G'
19965         else
19966           if test "$aix_use_runtimelinking" = yes; then
19967             shared_flag='${wl}-G'
19968           else
19969             shared_flag='${wl}-bM:SRE'
19970           fi
19971         fi
19972       fi
19973
19974       # It seems that -bexpall does not export symbols beginning with
19975       # underscore (_), so it is better to generate a list of symbols to export.
19976       always_export_symbols_GCJ=yes
19977       if test "$aix_use_runtimelinking" = yes; then
19978         # Warning - without using the other runtime loading flags (-brtl),
19979         # -berok will link without error, but may produce a broken library.
19980         allow_undefined_flag_GCJ='-berok'
19981        # Determine the default libpath from the value encoded in an empty executable.
19982        cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h.  */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h.  */
19988
19989 int
19990 main ()
19991 {
19992
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001   *) ac_try_echo=$ac_try;;
20002 esac
20003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20004 $as_echo "$ac_try_echo") >&5
20005   (eval "$ac_link") 2>conftest.er1
20006   ac_status=$?
20007   grep -v '^ *+' conftest.er1 >conftest.err
20008   rm -f conftest.er1
20009   cat conftest.err >&5
20010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); } && {
20012          test -z "$ac_c_werror_flag" ||
20013          test ! -s conftest.err
20014        } && test -s conftest$ac_exeext && {
20015          test "$cross_compiling" = yes ||
20016          $as_test_x conftest$ac_exeext
20017        }; then
20018
20019 lt_aix_libpath_sed='
20020     /Import File Strings/,/^$/ {
20021         /^0/ {
20022             s/^0  *\(.*\)$/\1/
20023             p
20024         }
20025     }'
20026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20027 # Check for a 64-bit object if we didn't find anything.
20028 if test -z "$aix_libpath"; then
20029   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20030 fi
20031 else
20032   $as_echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20034
20035
20036 fi
20037
20038 rm -rf conftest.dSYM
20039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20040       conftest$ac_exeext conftest.$ac_ext
20041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20042
20043        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20044         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20045        else
20046         if test "$host_cpu" = ia64; then
20047           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20048           allow_undefined_flag_GCJ="-z nodefs"
20049           archive_expsym_cmds_GCJ="\$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"
20050         else
20051          # Determine the default libpath from the value encoded in an empty executable.
20052          cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058
20059 int
20060 main ()
20061 {
20062
20063   ;
20064   return 0;
20065 }
20066 _ACEOF
20067 rm -f conftest.$ac_objext conftest$ac_exeext
20068 if { (ac_try="$ac_link"
20069 case "(($ac_try" in
20070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071   *) ac_try_echo=$ac_try;;
20072 esac
20073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20074 $as_echo "$ac_try_echo") >&5
20075   (eval "$ac_link") 2>conftest.er1
20076   ac_status=$?
20077   grep -v '^ *+' conftest.er1 >conftest.err
20078   rm -f conftest.er1
20079   cat conftest.err >&5
20080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); } && {
20082          test -z "$ac_c_werror_flag" ||
20083          test ! -s conftest.err
20084        } && test -s conftest$ac_exeext && {
20085          test "$cross_compiling" = yes ||
20086          $as_test_x conftest$ac_exeext
20087        }; then
20088
20089 lt_aix_libpath_sed='
20090     /Import File Strings/,/^$/ {
20091         /^0/ {
20092             s/^0  *\(.*\)$/\1/
20093             p
20094         }
20095     }'
20096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20097 # Check for a 64-bit object if we didn't find anything.
20098 if test -z "$aix_libpath"; then
20099   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20100 fi
20101 else
20102   $as_echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105
20106 fi
20107
20108 rm -rf conftest.dSYM
20109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20110       conftest$ac_exeext conftest.$ac_ext
20111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20112
20113          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20114           # Warning - without using the other run time loading flags,
20115           # -berok will link without error, but may produce a broken library.
20116           no_undefined_flag_GCJ=' ${wl}-bernotok'
20117           allow_undefined_flag_GCJ=' ${wl}-berok'
20118           # Exported symbols can be pulled into shared objects from archives
20119           whole_archive_flag_spec_GCJ='$convenience'
20120           archive_cmds_need_lc_GCJ=yes
20121           # This is similar to how AIX traditionally builds its shared libraries.
20122           archive_expsym_cmds_GCJ="\$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'
20123         fi
20124       fi
20125       ;;
20126
20127     amigaos*)
20128       archive_cmds_GCJ='$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)'
20129       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20130       hardcode_minus_L_GCJ=yes
20131       # see comment about different semantics on the GNU ld section
20132       ld_shlibs_GCJ=no
20133       ;;
20134
20135     bsdi[45]*)
20136       export_dynamic_flag_spec_GCJ=-rdynamic
20137       ;;
20138
20139     cygwin* | mingw* | pw32*)
20140       # When not using gcc, we currently assume that we are using
20141       # Microsoft Visual C++.
20142       # hardcode_libdir_flag_spec is actually meaningless, as there is
20143       # no search path for DLLs.
20144       hardcode_libdir_flag_spec_GCJ=' '
20145       allow_undefined_flag_GCJ=unsupported
20146       # Tell ltmain to make .lib files, not .a files.
20147       libext=lib
20148       # Tell ltmain to make .dll files, not .so files.
20149       shrext_cmds=".dll"
20150       # FIXME: Setting linknames here is a bad hack.
20151       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20152       # The linker will automatically build a .lib file if we build a DLL.
20153       old_archive_From_new_cmds_GCJ='true'
20154       # FIXME: Should let the user specify the lib program.
20155       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20156       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20157       enable_shared_with_static_runtimes_GCJ=yes
20158       ;;
20159
20160     darwin* | rhapsody*)
20161       case $host_os in
20162         rhapsody* | darwin1.[012])
20163          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20164          ;;
20165        *) # Darwin 1.3 on
20166          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20167            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20168          else
20169            case ${MACOSX_DEPLOYMENT_TARGET} in
20170              10.[012])
20171                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20172                ;;
20173              10.*)
20174                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20175                ;;
20176            esac
20177          fi
20178          ;;
20179       esac
20180       archive_cmds_need_lc_GCJ=no
20181       hardcode_direct_GCJ=no
20182       hardcode_automatic_GCJ=yes
20183       hardcode_shlibpath_var_GCJ=unsupported
20184       whole_archive_flag_spec_GCJ=''
20185       link_all_deplibs_GCJ=yes
20186     if test "$GCC" = yes ; then
20187         output_verbose_link_cmd='echo'
20188         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20189         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20190         archive_expsym_cmds_GCJ="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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20191         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
20192     else
20193       case $cc_basename in
20194         xlc*)
20195          output_verbose_link_cmd='echo'
20196          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20197          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20198           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20199          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20200           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
20201           ;;
20202        *)
20203          ld_shlibs_GCJ=no
20204           ;;
20205       esac
20206     fi
20207       ;;
20208
20209     dgux*)
20210       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20211       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20212       hardcode_shlibpath_var_GCJ=no
20213       ;;
20214
20215     freebsd1*)
20216       ld_shlibs_GCJ=no
20217       ;;
20218
20219     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20220     # support.  Future versions do this automatically, but an explicit c++rt0.o
20221     # does not break anything, and helps significantly (at the cost of a little
20222     # extra space).
20223     freebsd2.2*)
20224       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20225       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20226       hardcode_direct_GCJ=yes
20227       hardcode_shlibpath_var_GCJ=no
20228       ;;
20229
20230     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20231     freebsd2*)
20232       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20233       hardcode_direct_GCJ=yes
20234       hardcode_minus_L_GCJ=yes
20235       hardcode_shlibpath_var_GCJ=no
20236       ;;
20237
20238     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20239     freebsd* | dragonfly*)
20240       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20241       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20242       hardcode_direct_GCJ=yes
20243       hardcode_shlibpath_var_GCJ=no
20244       ;;
20245
20246     hpux9*)
20247       if test "$GCC" = yes; then
20248         archive_cmds_GCJ='$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'
20249       else
20250         archive_cmds_GCJ='$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'
20251       fi
20252       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20253       hardcode_libdir_separator_GCJ=:
20254       hardcode_direct_GCJ=yes
20255
20256       # hardcode_minus_L: Not really in the search PATH,
20257       # but as the default location of the library.
20258       hardcode_minus_L_GCJ=yes
20259       export_dynamic_flag_spec_GCJ='${wl}-E'
20260       ;;
20261
20262     hpux10*)
20263       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20264         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20265       else
20266         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20267       fi
20268       if test "$with_gnu_ld" = no; then
20269         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20270         hardcode_libdir_separator_GCJ=:
20271
20272         hardcode_direct_GCJ=yes
20273         export_dynamic_flag_spec_GCJ='${wl}-E'
20274
20275         # hardcode_minus_L: Not really in the search PATH,
20276         # but as the default location of the library.
20277         hardcode_minus_L_GCJ=yes
20278       fi
20279       ;;
20280
20281     hpux11*)
20282       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20283         case $host_cpu in
20284         hppa*64*)
20285           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20286           ;;
20287         ia64*)
20288           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20289           ;;
20290         *)
20291           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20292           ;;
20293         esac
20294       else
20295         case $host_cpu in
20296         hppa*64*)
20297           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20298           ;;
20299         ia64*)
20300           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20301           ;;
20302         *)
20303           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20304           ;;
20305         esac
20306       fi
20307       if test "$with_gnu_ld" = no; then
20308         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20309         hardcode_libdir_separator_GCJ=:
20310
20311         case $host_cpu in
20312         hppa*64*|ia64*)
20313           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20314           hardcode_direct_GCJ=no
20315           hardcode_shlibpath_var_GCJ=no
20316           ;;
20317         *)
20318           hardcode_direct_GCJ=yes
20319           export_dynamic_flag_spec_GCJ='${wl}-E'
20320
20321           # hardcode_minus_L: Not really in the search PATH,
20322           # but as the default location of the library.
20323           hardcode_minus_L_GCJ=yes
20324           ;;
20325         esac
20326       fi
20327       ;;
20328
20329     irix5* | irix6* | nonstopux*)
20330       if test "$GCC" = yes; then
20331         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20332       else
20333         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20334         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20335       fi
20336       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20337       hardcode_libdir_separator_GCJ=:
20338       link_all_deplibs_GCJ=yes
20339       ;;
20340
20341     netbsd*)
20342       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20343         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20344       else
20345         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20346       fi
20347       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20348       hardcode_direct_GCJ=yes
20349       hardcode_shlibpath_var_GCJ=no
20350       ;;
20351
20352     newsos6)
20353       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20354       hardcode_direct_GCJ=yes
20355       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20356       hardcode_libdir_separator_GCJ=:
20357       hardcode_shlibpath_var_GCJ=no
20358       ;;
20359
20360     openbsd*)
20361       if test -f /usr/libexec/ld.so; then
20362         hardcode_direct_GCJ=yes
20363         hardcode_shlibpath_var_GCJ=no
20364         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20365           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20366           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20367           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20368           export_dynamic_flag_spec_GCJ='${wl}-E'
20369         else
20370           case $host_os in
20371            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20372              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20373              hardcode_libdir_flag_spec_GCJ='-R$libdir'
20374              ;;
20375            *)
20376              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20377              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20378              ;;
20379           esac
20380         fi
20381       else
20382         ld_shlibs_GCJ=no
20383       fi
20384       ;;
20385
20386     os2*)
20387       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20388       hardcode_minus_L_GCJ=yes
20389       allow_undefined_flag_GCJ=unsupported
20390       archive_cmds_GCJ='$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'
20391       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20392       ;;
20393
20394     osf3*)
20395       if test "$GCC" = yes; then
20396         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20397         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20398       else
20399         allow_undefined_flag_GCJ=' -expect_unresolved \*'
20400         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20401       fi
20402       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20403       hardcode_libdir_separator_GCJ=:
20404       ;;
20405
20406     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20407       if test "$GCC" = yes; then
20408         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20409         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20410         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20411       else
20412         allow_undefined_flag_GCJ=' -expect_unresolved \*'
20413         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20414         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20415         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20416
20417         # Both c and cxx compiler support -rpath directly
20418         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20419       fi
20420       hardcode_libdir_separator_GCJ=:
20421       ;;
20422
20423     solaris*)
20424       no_undefined_flag_GCJ=' -z text'
20425       if test "$GCC" = yes; then
20426         wlarc='${wl}'
20427         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20428         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20429           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20430       else
20431         wlarc=''
20432         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20433         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20434         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20435       fi
20436       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20437       hardcode_shlibpath_var_GCJ=no
20438       case $host_os in
20439       solaris2.[0-5] | solaris2.[0-5].*) ;;
20440       *)
20441         # The compiler driver will combine and reorder linker options,
20442         # but understands `-z linker_flag'.  GCC discards it without `$wl',
20443         # but is careful enough not to reorder.
20444         # Supported since Solaris 2.6 (maybe 2.5.1?)
20445         if test "$GCC" = yes; then
20446           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20447         else
20448           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20449         fi
20450         ;;
20451       esac
20452       link_all_deplibs_GCJ=yes
20453       ;;
20454
20455     sunos4*)
20456       if test "x$host_vendor" = xsequent; then
20457         # Use $CC to link under sequent, because it throws in some extra .o
20458         # files that make .init and .fini sections work.
20459         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20460       else
20461         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20462       fi
20463       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20464       hardcode_direct_GCJ=yes
20465       hardcode_minus_L_GCJ=yes
20466       hardcode_shlibpath_var_GCJ=no
20467       ;;
20468
20469     sysv4)
20470       case $host_vendor in
20471         sni)
20472           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20473           hardcode_direct_GCJ=yes # is this really true???
20474         ;;
20475         siemens)
20476           ## LD is ld it makes a PLAMLIB
20477           ## CC just makes a GrossModule.
20478           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20479           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20480           hardcode_direct_GCJ=no
20481         ;;
20482         motorola)
20483           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20484           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20485         ;;
20486       esac
20487       runpath_var='LD_RUN_PATH'
20488       hardcode_shlibpath_var_GCJ=no
20489       ;;
20490
20491     sysv4.3*)
20492       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20493       hardcode_shlibpath_var_GCJ=no
20494       export_dynamic_flag_spec_GCJ='-Bexport'
20495       ;;
20496
20497     sysv4*MP*)
20498       if test -d /usr/nec; then
20499         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20500         hardcode_shlibpath_var_GCJ=no
20501         runpath_var=LD_RUN_PATH
20502         hardcode_runpath_var=yes
20503         ld_shlibs_GCJ=yes
20504       fi
20505       ;;
20506
20507     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20508       no_undefined_flag_GCJ='${wl}-z,text'
20509       archive_cmds_need_lc_GCJ=no
20510       hardcode_shlibpath_var_GCJ=no
20511       runpath_var='LD_RUN_PATH'
20512
20513       if test "$GCC" = yes; then
20514         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20515         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20516       else
20517         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20518         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20519       fi
20520       ;;
20521
20522     sysv5* | sco3.2v5* | sco5v6*)
20523       # Note: We can NOT use -z defs as we might desire, because we do not
20524       # link with -lc, and that would cause any symbols used from libc to
20525       # always be unresolved, which means just about no library would
20526       # ever link correctly.  If we're not using GNU ld we use -z text
20527       # though, which does catch some bad symbols but isn't as heavy-handed
20528       # as -z defs.
20529       no_undefined_flag_GCJ='${wl}-z,text'
20530       allow_undefined_flag_GCJ='${wl}-z,nodefs'
20531       archive_cmds_need_lc_GCJ=no
20532       hardcode_shlibpath_var_GCJ=no
20533       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20534       hardcode_libdir_separator_GCJ=':'
20535       link_all_deplibs_GCJ=yes
20536       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20537       runpath_var='LD_RUN_PATH'
20538
20539       if test "$GCC" = yes; then
20540         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20541         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20542       else
20543         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20544         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20545       fi
20546       ;;
20547
20548     uts4*)
20549       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20550       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20551       hardcode_shlibpath_var_GCJ=no
20552       ;;
20553
20554     *)
20555       ld_shlibs_GCJ=no
20556       ;;
20557     esac
20558   fi
20559
20560 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20561 $as_echo "$ld_shlibs_GCJ" >&6; }
20562 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20563
20564 #
20565 # Do we need to explicitly link libc?
20566 #
20567 case "x$archive_cmds_need_lc_GCJ" in
20568 x|xyes)
20569   # Assume -lc should be added
20570   archive_cmds_need_lc_GCJ=yes
20571
20572   if test "$enable_shared" = yes && test "$GCC" = yes; then
20573     case $archive_cmds_GCJ in
20574     *'~'*)
20575       # FIXME: we may have to deal with multi-command sequences.
20576       ;;
20577     '$CC '*)
20578       # Test whether the compiler implicitly links with -lc since on some
20579       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20580       # to ld, don't add -lc before -lgcc.
20581       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20582 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20583       $rm conftest*
20584       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20585
20586       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587   (eval $ac_compile) 2>&5
20588   ac_status=$?
20589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } 2>conftest.err; then
20591         soname=conftest
20592         lib=conftest
20593         libobjs=conftest.$ac_objext
20594         deplibs=
20595         wl=$lt_prog_compiler_wl_GCJ
20596         pic_flag=$lt_prog_compiler_pic_GCJ
20597         compiler_flags=-v
20598         linker_flags=-v
20599         verstring=
20600         output_objdir=.
20601         libname=conftest
20602         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20603         allow_undefined_flag_GCJ=
20604         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20605   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20606   ac_status=$?
20607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); }
20609         then
20610           archive_cmds_need_lc_GCJ=no
20611         else
20612           archive_cmds_need_lc_GCJ=yes
20613         fi
20614         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20615       else
20616         cat conftest.err 1>&5
20617       fi
20618       $rm conftest*
20619       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20620 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20621       ;;
20622     esac
20623   fi
20624   ;;
20625 esac
20626
20627 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20628 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20629 library_names_spec=
20630 libname_spec='lib$name'
20631 soname_spec=
20632 shrext_cmds=".so"
20633 postinstall_cmds=
20634 postuninstall_cmds=
20635 finish_cmds=
20636 finish_eval=
20637 shlibpath_var=
20638 shlibpath_overrides_runpath=unknown
20639 version_type=none
20640 dynamic_linker="$host_os ld.so"
20641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20642
20643 need_lib_prefix=unknown
20644 hardcode_into_libs=no
20645
20646 # when you set need_version to no, make sure it does not cause -set_version
20647 # flags to be left without arguments
20648 need_version=unknown
20649
20650 case $host_os in
20651 aix3*)
20652   version_type=linux
20653   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20654   shlibpath_var=LIBPATH
20655
20656   # AIX 3 has no versioning support, so we append a major version to the name.
20657   soname_spec='${libname}${release}${shared_ext}$major'
20658   ;;
20659
20660 aix[4-9]*)
20661   version_type=linux
20662   need_lib_prefix=no
20663   need_version=no
20664   hardcode_into_libs=yes
20665   if test "$host_cpu" = ia64; then
20666     # AIX 5 supports IA64
20667     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20668     shlibpath_var=LD_LIBRARY_PATH
20669   else
20670     # With GCC up to 2.95.x, collect2 would create an import file
20671     # for dependence libraries.  The import file would start with
20672     # the line `#! .'.  This would cause the generated library to
20673     # depend on `.', always an invalid library.  This was fixed in
20674     # development snapshots of GCC prior to 3.0.
20675     case $host_os in
20676       aix4 | aix4.[01] | aix4.[01].*)
20677       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20678            echo ' yes '
20679            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20680         :
20681       else
20682         can_build_shared=no
20683       fi
20684       ;;
20685     esac
20686     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20687     # soname into executable. Probably we can add versioning support to
20688     # collect2, so additional links can be useful in future.
20689     if test "$aix_use_runtimelinking" = yes; then
20690       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20691       # instead of lib<name>.a to let people know that these are not
20692       # typical AIX shared libraries.
20693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20694     else
20695       # We preserve .a as extension for shared libraries through AIX4.2
20696       # and later when we are not doing run time linking.
20697       library_names_spec='${libname}${release}.a $libname.a'
20698       soname_spec='${libname}${release}${shared_ext}$major'
20699     fi
20700     shlibpath_var=LIBPATH
20701   fi
20702   ;;
20703
20704 amigaos*)
20705   library_names_spec='$libname.ixlibrary $libname.a'
20706   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20707   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'
20708   ;;
20709
20710 beos*)
20711   library_names_spec='${libname}${shared_ext}'
20712   dynamic_linker="$host_os ld.so"
20713   shlibpath_var=LIBRARY_PATH
20714   ;;
20715
20716 bsdi[45]*)
20717   version_type=linux
20718   need_version=no
20719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20720   soname_spec='${libname}${release}${shared_ext}$major'
20721   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20722   shlibpath_var=LD_LIBRARY_PATH
20723   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20724   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20725   # the default ld.so.conf also contains /usr/contrib/lib and
20726   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20727   # libtool to hard-code these into programs
20728   ;;
20729
20730 cygwin* | mingw* | pw32*)
20731   version_type=windows
20732   shrext_cmds=".dll"
20733   need_version=no
20734   need_lib_prefix=no
20735
20736   case $GCC,$host_os in
20737   yes,cygwin* | yes,mingw* | yes,pw32*)
20738     library_names_spec='$libname.dll.a'
20739     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20740     postinstall_cmds='base_file=`basename \${file}`~
20741       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20742       dldir=$destdir/`dirname \$dlpath`~
20743       test -d \$dldir || mkdir -p \$dldir~
20744       $install_prog $dir/$dlname \$dldir/$dlname~
20745       chmod a+x \$dldir/$dlname'
20746     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20747       dlpath=$dir/\$dldll~
20748        $rm \$dlpath'
20749     shlibpath_overrides_runpath=yes
20750
20751     case $host_os in
20752     cygwin*)
20753       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20754       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20755       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20756       ;;
20757     mingw*)
20758       # MinGW DLLs use traditional 'lib' prefix
20759       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20760       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20761       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20762         # It is most probably a Windows format PATH printed by
20763         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20764         # path with ; separators, and with drive letters. We can handle the
20765         # drive letters (cygwin fileutils understands them), so leave them,
20766         # especially as we might pass files found there to a mingw objdump,
20767         # which wouldn't understand a cygwinified path. Ahh.
20768         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20769       else
20770         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20771       fi
20772       ;;
20773     pw32*)
20774       # pw32 DLLs use 'pw' prefix rather than 'lib'
20775       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20776       ;;
20777     esac
20778     ;;
20779
20780   *)
20781     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20782     ;;
20783   esac
20784   dynamic_linker='Win32 ld.exe'
20785   # FIXME: first we should search . and the directory the executable is in
20786   shlibpath_var=PATH
20787   ;;
20788
20789 darwin* | rhapsody*)
20790   dynamic_linker="$host_os dyld"
20791   version_type=darwin
20792   need_lib_prefix=no
20793   need_version=no
20794   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20795   soname_spec='${libname}${release}${major}$shared_ext'
20796   shlibpath_overrides_runpath=yes
20797   shlibpath_var=DYLD_LIBRARY_PATH
20798   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20799
20800   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20801   ;;
20802
20803 dgux*)
20804   version_type=linux
20805   need_lib_prefix=no
20806   need_version=no
20807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20808   soname_spec='${libname}${release}${shared_ext}$major'
20809   shlibpath_var=LD_LIBRARY_PATH
20810   ;;
20811
20812 freebsd1*)
20813   dynamic_linker=no
20814   ;;
20815
20816 freebsd* | dragonfly*)
20817   # DragonFly does not have aout.  When/if they implement a new
20818   # versioning mechanism, adjust this.
20819   if test -x /usr/bin/objformat; then
20820     objformat=`/usr/bin/objformat`
20821   else
20822     case $host_os in
20823     freebsd[123]*) objformat=aout ;;
20824     *) objformat=elf ;;
20825     esac
20826   fi
20827   version_type=freebsd-$objformat
20828   case $version_type in
20829     freebsd-elf*)
20830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20831       need_version=no
20832       need_lib_prefix=no
20833       ;;
20834     freebsd-*)
20835       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20836       need_version=yes
20837       ;;
20838   esac
20839   shlibpath_var=LD_LIBRARY_PATH
20840   case $host_os in
20841   freebsd2*)
20842     shlibpath_overrides_runpath=yes
20843     ;;
20844   freebsd3.[01]* | freebsdelf3.[01]*)
20845     shlibpath_overrides_runpath=yes
20846     hardcode_into_libs=yes
20847     ;;
20848   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20849   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20850     shlibpath_overrides_runpath=no
20851     hardcode_into_libs=yes
20852     ;;
20853   *) # from 4.6 on, and DragonFly
20854     shlibpath_overrides_runpath=yes
20855     hardcode_into_libs=yes
20856     ;;
20857   esac
20858   ;;
20859
20860 gnu*)
20861   version_type=linux
20862   need_lib_prefix=no
20863   need_version=no
20864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20865   soname_spec='${libname}${release}${shared_ext}$major'
20866   shlibpath_var=LD_LIBRARY_PATH
20867   hardcode_into_libs=yes
20868   ;;
20869
20870 hpux9* | hpux10* | hpux11*)
20871   # Give a soname corresponding to the major version so that dld.sl refuses to
20872   # link against other versions.
20873   version_type=sunos
20874   need_lib_prefix=no
20875   need_version=no
20876   case $host_cpu in
20877   ia64*)
20878     shrext_cmds='.so'
20879     hardcode_into_libs=yes
20880     dynamic_linker="$host_os dld.so"
20881     shlibpath_var=LD_LIBRARY_PATH
20882     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884     soname_spec='${libname}${release}${shared_ext}$major'
20885     if test "X$HPUX_IA64_MODE" = X32; then
20886       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20887     else
20888       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20889     fi
20890     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20891     ;;
20892    hppa*64*)
20893      shrext_cmds='.sl'
20894      hardcode_into_libs=yes
20895      dynamic_linker="$host_os dld.sl"
20896      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20897      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20898      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20899      soname_spec='${libname}${release}${shared_ext}$major'
20900      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20901      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20902      ;;
20903    *)
20904     shrext_cmds='.sl'
20905     dynamic_linker="$host_os dld.sl"
20906     shlibpath_var=SHLIB_PATH
20907     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20909     soname_spec='${libname}${release}${shared_ext}$major'
20910     ;;
20911   esac
20912   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20913   postinstall_cmds='chmod 555 $lib'
20914   ;;
20915
20916 interix[3-9]*)
20917   version_type=linux
20918   need_lib_prefix=no
20919   need_version=no
20920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20921   soname_spec='${libname}${release}${shared_ext}$major'
20922   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20923   shlibpath_var=LD_LIBRARY_PATH
20924   shlibpath_overrides_runpath=no
20925   hardcode_into_libs=yes
20926   ;;
20927
20928 irix5* | irix6* | nonstopux*)
20929   case $host_os in
20930     nonstopux*) version_type=nonstopux ;;
20931     *)
20932         if test "$lt_cv_prog_gnu_ld" = yes; then
20933                 version_type=linux
20934         else
20935                 version_type=irix
20936         fi ;;
20937   esac
20938   need_lib_prefix=no
20939   need_version=no
20940   soname_spec='${libname}${release}${shared_ext}$major'
20941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20942   case $host_os in
20943   irix5* | nonstopux*)
20944     libsuff= shlibsuff=
20945     ;;
20946   *)
20947     case $LD in # libtool.m4 will add one of these switches to LD
20948     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20949       libsuff= shlibsuff= libmagic=32-bit;;
20950     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20951       libsuff=32 shlibsuff=N32 libmagic=N32;;
20952     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20953       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20954     *) libsuff= shlibsuff= libmagic=never-match;;
20955     esac
20956     ;;
20957   esac
20958   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20959   shlibpath_overrides_runpath=no
20960   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20961   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20962   hardcode_into_libs=yes
20963   ;;
20964
20965 # No shared lib support for Linux oldld, aout, or coff.
20966 linux*oldld* | linux*aout* | linux*coff*)
20967   dynamic_linker=no
20968   ;;
20969
20970 # This must be Linux ELF.
20971 linux* | k*bsd*-gnu)
20972   version_type=linux
20973   need_lib_prefix=no
20974   need_version=no
20975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20976   soname_spec='${libname}${release}${shared_ext}$major'
20977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20978   shlibpath_var=LD_LIBRARY_PATH
20979   shlibpath_overrides_runpath=no
20980   # This implies no fast_install, which is unacceptable.
20981   # Some rework will be needed to allow for fast_install
20982   # before this can be enabled.
20983   hardcode_into_libs=yes
20984   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20985   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20986
20987   # Append ld.so.conf contents to the search path
20988   if test -f /etc/ld.so.conf; then
20989     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/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20990     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20991   fi
20992
20993   # We used to test for /lib/ld.so.1 and disable shared libraries on
20994   # powerpc, because MkLinux only supported shared libraries with the
20995   # GNU dynamic linker.  Since this was broken with cross compilers,
20996   # most powerpc-linux boxes support dynamic linking these days and
20997   # people can always --disable-shared, the test was removed, and we
20998   # assume the GNU/Linux dynamic linker is in use.
20999   dynamic_linker='GNU/Linux ld.so'
21000   ;;
21001
21002 netbsd*)
21003   version_type=sunos
21004   need_lib_prefix=no
21005   need_version=no
21006   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21008     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21009     dynamic_linker='NetBSD (a.out) ld.so'
21010   else
21011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21012     soname_spec='${libname}${release}${shared_ext}$major'
21013     dynamic_linker='NetBSD ld.elf_so'
21014   fi
21015   shlibpath_var=LD_LIBRARY_PATH
21016   shlibpath_overrides_runpath=yes
21017   hardcode_into_libs=yes
21018   ;;
21019
21020 newsos6)
21021   version_type=linux
21022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21023   shlibpath_var=LD_LIBRARY_PATH
21024   shlibpath_overrides_runpath=yes
21025   ;;
21026
21027 nto-qnx*)
21028   version_type=linux
21029   need_lib_prefix=no
21030   need_version=no
21031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032   soname_spec='${libname}${release}${shared_ext}$major'
21033   shlibpath_var=LD_LIBRARY_PATH
21034   shlibpath_overrides_runpath=yes
21035   ;;
21036
21037 openbsd*)
21038   version_type=sunos
21039   sys_lib_dlsearch_path_spec="/usr/lib"
21040   need_lib_prefix=no
21041   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21042   case $host_os in
21043     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21044     *)                         need_version=no  ;;
21045   esac
21046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21047   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21048   shlibpath_var=LD_LIBRARY_PATH
21049   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21050     case $host_os in
21051       openbsd2.[89] | openbsd2.[89].*)
21052         shlibpath_overrides_runpath=no
21053         ;;
21054       *)
21055         shlibpath_overrides_runpath=yes
21056         ;;
21057       esac
21058   else
21059     shlibpath_overrides_runpath=yes
21060   fi
21061   ;;
21062
21063 os2*)
21064   libname_spec='$name'
21065   shrext_cmds=".dll"
21066   need_lib_prefix=no
21067   library_names_spec='$libname${shared_ext} $libname.a'
21068   dynamic_linker='OS/2 ld.exe'
21069   shlibpath_var=LIBPATH
21070   ;;
21071
21072 osf3* | osf4* | osf5*)
21073   version_type=osf
21074   need_lib_prefix=no
21075   need_version=no
21076   soname_spec='${libname}${release}${shared_ext}$major'
21077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21078   shlibpath_var=LD_LIBRARY_PATH
21079   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21080   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21081   ;;
21082
21083 rdos*)
21084   dynamic_linker=no
21085   ;;
21086
21087 solaris*)
21088   version_type=linux
21089   need_lib_prefix=no
21090   need_version=no
21091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21092   soname_spec='${libname}${release}${shared_ext}$major'
21093   shlibpath_var=LD_LIBRARY_PATH
21094   shlibpath_overrides_runpath=yes
21095   hardcode_into_libs=yes
21096   # ldd complains unless libraries are executable
21097   postinstall_cmds='chmod +x $lib'
21098   ;;
21099
21100 sunos4*)
21101   version_type=sunos
21102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21103   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21104   shlibpath_var=LD_LIBRARY_PATH
21105   shlibpath_overrides_runpath=yes
21106   if test "$with_gnu_ld" = yes; then
21107     need_lib_prefix=no
21108   fi
21109   need_version=yes
21110   ;;
21111
21112 sysv4 | sysv4.3*)
21113   version_type=linux
21114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21115   soname_spec='${libname}${release}${shared_ext}$major'
21116   shlibpath_var=LD_LIBRARY_PATH
21117   case $host_vendor in
21118     sni)
21119       shlibpath_overrides_runpath=no
21120       need_lib_prefix=no
21121       export_dynamic_flag_spec='${wl}-Blargedynsym'
21122       runpath_var=LD_RUN_PATH
21123       ;;
21124     siemens)
21125       need_lib_prefix=no
21126       ;;
21127     motorola)
21128       need_lib_prefix=no
21129       need_version=no
21130       shlibpath_overrides_runpath=no
21131       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21132       ;;
21133   esac
21134   ;;
21135
21136 sysv4*MP*)
21137   if test -d /usr/nec ;then
21138     version_type=linux
21139     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21140     soname_spec='$libname${shared_ext}.$major'
21141     shlibpath_var=LD_LIBRARY_PATH
21142   fi
21143   ;;
21144
21145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21146   version_type=freebsd-elf
21147   need_lib_prefix=no
21148   need_version=no
21149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21150   soname_spec='${libname}${release}${shared_ext}$major'
21151   shlibpath_var=LD_LIBRARY_PATH
21152   hardcode_into_libs=yes
21153   if test "$with_gnu_ld" = yes; then
21154     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21155     shlibpath_overrides_runpath=no
21156   else
21157     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21158     shlibpath_overrides_runpath=yes
21159     case $host_os in
21160       sco3.2v5*)
21161         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21162         ;;
21163     esac
21164   fi
21165   sys_lib_dlsearch_path_spec='/usr/lib'
21166   ;;
21167
21168 uts4*)
21169   version_type=linux
21170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21171   soname_spec='${libname}${release}${shared_ext}$major'
21172   shlibpath_var=LD_LIBRARY_PATH
21173   ;;
21174
21175 *)
21176   dynamic_linker=no
21177   ;;
21178 esac
21179 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21180 $as_echo "$dynamic_linker" >&6; }
21181 test "$dynamic_linker" = no && can_build_shared=no
21182
21183 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21184   $as_echo_n "(cached) " >&6
21185 else
21186   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21187 fi
21188
21189 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21190 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21191   $as_echo_n "(cached) " >&6
21192 else
21193   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21194 fi
21195
21196 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21197
21198 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21199 if test "$GCC" = yes; then
21200   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21201 fi
21202
21203 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21204 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21205 hardcode_action_GCJ=
21206 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21207    test -n "$runpath_var_GCJ" || \
21208    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21209
21210   # We can hardcode non-existant directories.
21211   if test "$hardcode_direct_GCJ" != no &&
21212      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21213      # have to relink, otherwise we might link with an installed library
21214      # when we should be linking with a yet-to-be-installed one
21215      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21216      test "$hardcode_minus_L_GCJ" != no; then
21217     # Linking always hardcodes the temporary library directory.
21218     hardcode_action_GCJ=relink
21219   else
21220     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21221     hardcode_action_GCJ=immediate
21222   fi
21223 else
21224   # We cannot hardcode anything, or else we can only hardcode existing
21225   # directories.
21226   hardcode_action_GCJ=unsupported
21227 fi
21228 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21229 $as_echo "$hardcode_action_GCJ" >&6; }
21230
21231 if test "$hardcode_action_GCJ" = relink; then
21232   # Fast installation is not supported
21233   enable_fast_install=no
21234 elif test "$shlibpath_overrides_runpath" = yes ||
21235      test "$enable_shared" = no; then
21236   # Fast installation is not necessary
21237   enable_fast_install=needless
21238 fi
21239
21240
21241 # The else clause should only fire when bootstrapping the
21242 # libtool distribution, otherwise you forgot to ship ltmain.sh
21243 # with your package, and you will get complaints that there are
21244 # no rules to generate ltmain.sh.
21245 if test -f "$ltmain"; then
21246   # See if we are running on zsh, and set the options which allow our commands through
21247   # without removal of \ escapes.
21248   if test -n "${ZSH_VERSION+set}" ; then
21249     setopt NO_GLOB_SUBST
21250   fi
21251   # Now quote all the things that may contain metacharacters while being
21252   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21253   # variables and quote the copies for generation of the libtool script.
21254   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21255     SED SHELL STRIP \
21256     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21257     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21258     deplibs_check_method reload_flag reload_cmds need_locks \
21259     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21260     lt_cv_sys_global_symbol_to_c_name_address \
21261     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21262     old_postinstall_cmds old_postuninstall_cmds \
21263     compiler_GCJ \
21264     CC_GCJ \
21265     LD_GCJ \
21266     lt_prog_compiler_wl_GCJ \
21267     lt_prog_compiler_pic_GCJ \
21268     lt_prog_compiler_static_GCJ \
21269     lt_prog_compiler_no_builtin_flag_GCJ \
21270     export_dynamic_flag_spec_GCJ \
21271     thread_safe_flag_spec_GCJ \
21272     whole_archive_flag_spec_GCJ \
21273     enable_shared_with_static_runtimes_GCJ \
21274     old_archive_cmds_GCJ \
21275     old_archive_from_new_cmds_GCJ \
21276     predep_objects_GCJ \
21277     postdep_objects_GCJ \
21278     predeps_GCJ \
21279     postdeps_GCJ \
21280     compiler_lib_search_path_GCJ \
21281     compiler_lib_search_dirs_GCJ \
21282     archive_cmds_GCJ \
21283     archive_expsym_cmds_GCJ \
21284     postinstall_cmds_GCJ \
21285     postuninstall_cmds_GCJ \
21286     old_archive_from_expsyms_cmds_GCJ \
21287     allow_undefined_flag_GCJ \
21288     no_undefined_flag_GCJ \
21289     export_symbols_cmds_GCJ \
21290     hardcode_libdir_flag_spec_GCJ \
21291     hardcode_libdir_flag_spec_ld_GCJ \
21292     hardcode_libdir_separator_GCJ \
21293     hardcode_automatic_GCJ \
21294     module_cmds_GCJ \
21295     module_expsym_cmds_GCJ \
21296     lt_cv_prog_compiler_c_o_GCJ \
21297     fix_srcfile_path_GCJ \
21298     exclude_expsyms_GCJ \
21299     include_expsyms_GCJ; do
21300
21301     case $var in
21302     old_archive_cmds_GCJ | \
21303     old_archive_from_new_cmds_GCJ | \
21304     archive_cmds_GCJ | \
21305     archive_expsym_cmds_GCJ | \
21306     module_cmds_GCJ | \
21307     module_expsym_cmds_GCJ | \
21308     old_archive_from_expsyms_cmds_GCJ | \
21309     export_symbols_cmds_GCJ | \
21310     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21311     postinstall_cmds | postuninstall_cmds | \
21312     old_postinstall_cmds | old_postuninstall_cmds | \
21313     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21314       # Double-quote double-evaled strings.
21315       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21316       ;;
21317     *)
21318       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21319       ;;
21320     esac
21321   done
21322
21323   case $lt_echo in
21324   *'\$0 --fallback-echo"')
21325     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21326     ;;
21327   esac
21328
21329 cfgfile="$ofile"
21330
21331   cat <<__EOF__ >> "$cfgfile"
21332 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21333
21334 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21335
21336 # Shell to use when invoking shell scripts.
21337 SHELL=$lt_SHELL
21338
21339 # Whether or not to build shared libraries.
21340 build_libtool_libs=$enable_shared
21341
21342 # Whether or not to build static libraries.
21343 build_old_libs=$enable_static
21344
21345 # Whether or not to add -lc for building shared libraries.
21346 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21347
21348 # Whether or not to disallow shared libs when runtime libs are static
21349 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21350
21351 # Whether or not to optimize for fast installation.
21352 fast_install=$enable_fast_install
21353
21354 # The host system.
21355 host_alias=$host_alias
21356 host=$host
21357 host_os=$host_os
21358
21359 # The build system.
21360 build_alias=$build_alias
21361 build=$build
21362 build_os=$build_os
21363
21364 # An echo program that does not interpret backslashes.
21365 echo=$lt_echo
21366
21367 # The archiver.
21368 AR=$lt_AR
21369 AR_FLAGS=$lt_AR_FLAGS
21370
21371 # A C compiler.
21372 LTCC=$lt_LTCC
21373
21374 # LTCC compiler flags.
21375 LTCFLAGS=$lt_LTCFLAGS
21376
21377 # A language-specific compiler.
21378 CC=$lt_compiler_GCJ
21379
21380 # Is the compiler the GNU C compiler?
21381 with_gcc=$GCC_GCJ
21382
21383 # An ERE matcher.
21384 EGREP=$lt_EGREP
21385
21386 # The linker used to build libraries.
21387 LD=$lt_LD_GCJ
21388
21389 # Whether we need hard or soft links.
21390 LN_S=$lt_LN_S
21391
21392 # A BSD-compatible nm program.
21393 NM=$lt_NM
21394
21395 # A symbol stripping program
21396 STRIP=$lt_STRIP
21397
21398 # Used to examine libraries when file_magic_cmd begins "file"
21399 MAGIC_CMD=$MAGIC_CMD
21400
21401 # Used on cygwin: DLL creation program.
21402 DLLTOOL="$DLLTOOL"
21403
21404 # Used on cygwin: object dumper.
21405 OBJDUMP="$OBJDUMP"
21406
21407 # Used on cygwin: assembler.
21408 AS="$AS"
21409
21410 # The name of the directory that contains temporary libtool files.
21411 objdir=$objdir
21412
21413 # How to create reloadable object files.
21414 reload_flag=$lt_reload_flag
21415 reload_cmds=$lt_reload_cmds
21416
21417 # How to pass a linker flag through the compiler.
21418 wl=$lt_lt_prog_compiler_wl_GCJ
21419
21420 # Object file suffix (normally "o").
21421 objext="$ac_objext"
21422
21423 # Old archive suffix (normally "a").
21424 libext="$libext"
21425
21426 # Shared library suffix (normally ".so").
21427 shrext_cmds='$shrext_cmds'
21428
21429 # Executable file suffix (normally "").
21430 exeext="$exeext"
21431
21432 # Additional compiler flags for building library objects.
21433 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21434 pic_mode=$pic_mode
21435
21436 # What is the maximum length of a command?
21437 max_cmd_len=$lt_cv_sys_max_cmd_len
21438
21439 # Does compiler simultaneously support -c and -o options?
21440 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21441
21442 # Must we lock files when doing compilation?
21443 need_locks=$lt_need_locks
21444
21445 # Do we need the lib prefix for modules?
21446 need_lib_prefix=$need_lib_prefix
21447
21448 # Do we need a version for libraries?
21449 need_version=$need_version
21450
21451 # Whether dlopen is supported.
21452 dlopen_support=$enable_dlopen
21453
21454 # Whether dlopen of programs is supported.
21455 dlopen_self=$enable_dlopen_self
21456
21457 # Whether dlopen of statically linked programs is supported.
21458 dlopen_self_static=$enable_dlopen_self_static
21459
21460 # Compiler flag to prevent dynamic linking.
21461 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21462
21463 # Compiler flag to turn off builtin functions.
21464 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21465
21466 # Compiler flag to allow reflexive dlopens.
21467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21468
21469 # Compiler flag to generate shared objects directly from archives.
21470 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21471
21472 # Compiler flag to generate thread-safe objects.
21473 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21474
21475 # Library versioning type.
21476 version_type=$version_type
21477
21478 # Format of library name prefix.
21479 libname_spec=$lt_libname_spec
21480
21481 # List of archive names.  First name is the real one, the rest are links.
21482 # The last name is the one that the linker finds with -lNAME.
21483 library_names_spec=$lt_library_names_spec
21484
21485 # The coded name of the library, if different from the real name.
21486 soname_spec=$lt_soname_spec
21487
21488 # Commands used to build and install an old-style archive.
21489 RANLIB=$lt_RANLIB
21490 old_archive_cmds=$lt_old_archive_cmds_GCJ
21491 old_postinstall_cmds=$lt_old_postinstall_cmds
21492 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21493
21494 # Create an old-style archive from a shared archive.
21495 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21496
21497 # Create a temporary old-style archive to link instead of a shared archive.
21498 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21499
21500 # Commands used to build and install a shared archive.
21501 archive_cmds=$lt_archive_cmds_GCJ
21502 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21503 postinstall_cmds=$lt_postinstall_cmds
21504 postuninstall_cmds=$lt_postuninstall_cmds
21505
21506 # Commands used to build a loadable module (assumed same as above if empty)
21507 module_cmds=$lt_module_cmds_GCJ
21508 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21509
21510 # Commands to strip libraries.
21511 old_striplib=$lt_old_striplib
21512 striplib=$lt_striplib
21513
21514 # Dependencies to place before the objects being linked to create a
21515 # shared library.
21516 predep_objects=$lt_predep_objects_GCJ
21517
21518 # Dependencies to place after the objects being linked to create a
21519 # shared library.
21520 postdep_objects=$lt_postdep_objects_GCJ
21521
21522 # Dependencies to place before the objects being linked to create a
21523 # shared library.
21524 predeps=$lt_predeps_GCJ
21525
21526 # Dependencies to place after the objects being linked to create a
21527 # shared library.
21528 postdeps=$lt_postdeps_GCJ
21529
21530 # The directories searched by this compiler when creating a shared
21531 # library
21532 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
21533
21534 # The library search path used internally by the compiler when linking
21535 # a shared library.
21536 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21537
21538 # Method to check whether dependent libraries are shared objects.
21539 deplibs_check_method=$lt_deplibs_check_method
21540
21541 # Command to use when deplibs_check_method == file_magic.
21542 file_magic_cmd=$lt_file_magic_cmd
21543
21544 # Flag that allows shared libraries with undefined symbols to be built.
21545 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21546
21547 # Flag that forces no undefined symbols.
21548 no_undefined_flag=$lt_no_undefined_flag_GCJ
21549
21550 # Commands used to finish a libtool library installation in a directory.
21551 finish_cmds=$lt_finish_cmds
21552
21553 # Same as above, but a single script fragment to be evaled but not shown.
21554 finish_eval=$lt_finish_eval
21555
21556 # Take the output of nm and produce a listing of raw symbols and C names.
21557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21558
21559 # Transform the output of nm in a proper C declaration
21560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21561
21562 # Transform the output of nm in a C name address pair
21563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21564
21565 # This is the shared library runtime path variable.
21566 runpath_var=$runpath_var
21567
21568 # This is the shared library path variable.
21569 shlibpath_var=$shlibpath_var
21570
21571 # Is shlibpath searched before the hard-coded library search path?
21572 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21573
21574 # How to hardcode a shared library path into an executable.
21575 hardcode_action=$hardcode_action_GCJ
21576
21577 # Whether we should hardcode library paths into libraries.
21578 hardcode_into_libs=$hardcode_into_libs
21579
21580 # Flag to hardcode \$libdir into a binary during linking.
21581 # This must work even if \$libdir does not exist.
21582 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21583
21584 # If ld is used when linking, flag to hardcode \$libdir into
21585 # a binary during linking. This must work even if \$libdir does
21586 # not exist.
21587 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21588
21589 # Whether we need a single -rpath flag with a separated argument.
21590 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21591
21592 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21593 # resulting binary.
21594 hardcode_direct=$hardcode_direct_GCJ
21595
21596 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21597 # resulting binary.
21598 hardcode_minus_L=$hardcode_minus_L_GCJ
21599
21600 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21601 # the resulting binary.
21602 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21603
21604 # Set to yes if building a shared library automatically hardcodes DIR into the library
21605 # and all subsequent libraries and executables linked against it.
21606 hardcode_automatic=$hardcode_automatic_GCJ
21607
21608 # Variables whose values should be saved in libtool wrapper scripts and
21609 # restored at relink time.
21610 variables_saved_for_relink="$variables_saved_for_relink"
21611
21612 # Whether libtool must link a program against all its dependency libraries.
21613 link_all_deplibs=$link_all_deplibs_GCJ
21614
21615 # Compile-time system search path for libraries
21616 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21617
21618 # Run-time system search path for libraries
21619 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21620
21621 # Fix the shell variable \$srcfile for the compiler.
21622 fix_srcfile_path=$lt_fix_srcfile_path
21623
21624 # Set to yes if exported symbols are required.
21625 always_export_symbols=$always_export_symbols_GCJ
21626
21627 # The commands to list exported symbols.
21628 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21629
21630 # The commands to extract the exported symbol list from a shared archive.
21631 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21632
21633 # Symbols that should not be listed in the preloaded symbols.
21634 exclude_expsyms=$lt_exclude_expsyms_GCJ
21635
21636 # Symbols that must always be exported.
21637 include_expsyms=$lt_include_expsyms_GCJ
21638
21639 # ### END LIBTOOL TAG CONFIG: $tagname
21640
21641 __EOF__
21642
21643
21644 else
21645   # If there is no Makefile yet, we rely on a make rule to execute
21646   # `config.status --recheck' to rerun these tests and create the
21647   # libtool script then.
21648   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21649   if test -f "$ltmain_in"; then
21650     test -f Makefile && make "$ltmain"
21651   fi
21652 fi
21653
21654
21655 ac_ext=c
21656 ac_cpp='$CPP $CPPFLAGS'
21657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21660
21661 CC="$lt_save_CC"
21662
21663         else
21664           tagname=""
21665         fi
21666         ;;
21667
21668       RC)
21669
21670
21671 # Source file extension for RC test sources.
21672 ac_ext=rc
21673
21674 # Object file extension for compiled RC test sources.
21675 objext=o
21676 objext_RC=$objext
21677
21678 # Code to be used in simple compile tests
21679 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21680
21681 # Code to be used in simple link tests
21682 lt_simple_link_test_code="$lt_simple_compile_test_code"
21683
21684 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21685
21686 # If no C compiler was specified, use CC.
21687 LTCC=${LTCC-"$CC"}
21688
21689 # If no C compiler flags were specified, use CFLAGS.
21690 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21691
21692 # Allow CC to be a program name with arguments.
21693 compiler=$CC
21694
21695
21696 # save warnings/boilerplate of simple test code
21697 ac_outfile=conftest.$ac_objext
21698 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21699 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21700 _lt_compiler_boilerplate=`cat conftest.err`
21701 $rm conftest*
21702
21703 ac_outfile=conftest.$ac_objext
21704 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21705 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21706 _lt_linker_boilerplate=`cat conftest.err`
21707 $rm -r conftest*
21708
21709
21710 # Allow CC to be a program name with arguments.
21711 lt_save_CC="$CC"
21712 CC=${RC-"windres"}
21713 compiler=$CC
21714 compiler_RC=$CC
21715 for cc_temp in $compiler""; do
21716   case $cc_temp in
21717     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21718     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21719     \-*) ;;
21720     *) break;;
21721   esac
21722 done
21723 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21724
21725 lt_cv_prog_compiler_c_o_RC=yes
21726
21727 # The else clause should only fire when bootstrapping the
21728 # libtool distribution, otherwise you forgot to ship ltmain.sh
21729 # with your package, and you will get complaints that there are
21730 # no rules to generate ltmain.sh.
21731 if test -f "$ltmain"; then
21732   # See if we are running on zsh, and set the options which allow our commands through
21733   # without removal of \ escapes.
21734   if test -n "${ZSH_VERSION+set}" ; then
21735     setopt NO_GLOB_SUBST
21736   fi
21737   # Now quote all the things that may contain metacharacters while being
21738   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21739   # variables and quote the copies for generation of the libtool script.
21740   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21741     SED SHELL STRIP \
21742     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21743     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21744     deplibs_check_method reload_flag reload_cmds need_locks \
21745     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21746     lt_cv_sys_global_symbol_to_c_name_address \
21747     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21748     old_postinstall_cmds old_postuninstall_cmds \
21749     compiler_RC \
21750     CC_RC \
21751     LD_RC \
21752     lt_prog_compiler_wl_RC \
21753     lt_prog_compiler_pic_RC \
21754     lt_prog_compiler_static_RC \
21755     lt_prog_compiler_no_builtin_flag_RC \
21756     export_dynamic_flag_spec_RC \
21757     thread_safe_flag_spec_RC \
21758     whole_archive_flag_spec_RC \
21759     enable_shared_with_static_runtimes_RC \
21760     old_archive_cmds_RC \
21761     old_archive_from_new_cmds_RC \
21762     predep_objects_RC \
21763     postdep_objects_RC \
21764     predeps_RC \
21765     postdeps_RC \
21766     compiler_lib_search_path_RC \
21767     compiler_lib_search_dirs_RC \
21768     archive_cmds_RC \
21769     archive_expsym_cmds_RC \
21770     postinstall_cmds_RC \
21771     postuninstall_cmds_RC \
21772     old_archive_from_expsyms_cmds_RC \
21773     allow_undefined_flag_RC \
21774     no_undefined_flag_RC \
21775     export_symbols_cmds_RC \
21776     hardcode_libdir_flag_spec_RC \
21777     hardcode_libdir_flag_spec_ld_RC \
21778     hardcode_libdir_separator_RC \
21779     hardcode_automatic_RC \
21780     module_cmds_RC \
21781     module_expsym_cmds_RC \
21782     lt_cv_prog_compiler_c_o_RC \
21783     fix_srcfile_path_RC \
21784     exclude_expsyms_RC \
21785     include_expsyms_RC; do
21786
21787     case $var in
21788     old_archive_cmds_RC | \
21789     old_archive_from_new_cmds_RC | \
21790     archive_cmds_RC | \
21791     archive_expsym_cmds_RC | \
21792     module_cmds_RC | \
21793     module_expsym_cmds_RC | \
21794     old_archive_from_expsyms_cmds_RC | \
21795     export_symbols_cmds_RC | \
21796     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21797     postinstall_cmds | postuninstall_cmds | \
21798     old_postinstall_cmds | old_postuninstall_cmds | \
21799     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21800       # Double-quote double-evaled strings.
21801       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21802       ;;
21803     *)
21804       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21805       ;;
21806     esac
21807   done
21808
21809   case $lt_echo in
21810   *'\$0 --fallback-echo"')
21811     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21812     ;;
21813   esac
21814
21815 cfgfile="$ofile"
21816
21817   cat <<__EOF__ >> "$cfgfile"
21818 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21819
21820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21821
21822 # Shell to use when invoking shell scripts.
21823 SHELL=$lt_SHELL
21824
21825 # Whether or not to build shared libraries.
21826 build_libtool_libs=$enable_shared
21827
21828 # Whether or not to build static libraries.
21829 build_old_libs=$enable_static
21830
21831 # Whether or not to add -lc for building shared libraries.
21832 build_libtool_need_lc=$archive_cmds_need_lc_RC
21833
21834 # Whether or not to disallow shared libs when runtime libs are static
21835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21836
21837 # Whether or not to optimize for fast installation.
21838 fast_install=$enable_fast_install
21839
21840 # The host system.
21841 host_alias=$host_alias
21842 host=$host
21843 host_os=$host_os
21844
21845 # The build system.
21846 build_alias=$build_alias
21847 build=$build
21848 build_os=$build_os
21849
21850 # An echo program that does not interpret backslashes.
21851 echo=$lt_echo
21852
21853 # The archiver.
21854 AR=$lt_AR
21855 AR_FLAGS=$lt_AR_FLAGS
21856
21857 # A C compiler.
21858 LTCC=$lt_LTCC
21859
21860 # LTCC compiler flags.
21861 LTCFLAGS=$lt_LTCFLAGS
21862
21863 # A language-specific compiler.
21864 CC=$lt_compiler_RC
21865
21866 # Is the compiler the GNU C compiler?
21867 with_gcc=$GCC_RC
21868
21869 # An ERE matcher.
21870 EGREP=$lt_EGREP
21871
21872 # The linker used to build libraries.
21873 LD=$lt_LD_RC
21874
21875 # Whether we need hard or soft links.
21876 LN_S=$lt_LN_S
21877
21878 # A BSD-compatible nm program.
21879 NM=$lt_NM
21880
21881 # A symbol stripping program
21882 STRIP=$lt_STRIP
21883
21884 # Used to examine libraries when file_magic_cmd begins "file"
21885 MAGIC_CMD=$MAGIC_CMD
21886
21887 # Used on cygwin: DLL creation program.
21888 DLLTOOL="$DLLTOOL"
21889
21890 # Used on cygwin: object dumper.
21891 OBJDUMP="$OBJDUMP"
21892
21893 # Used on cygwin: assembler.
21894 AS="$AS"
21895
21896 # The name of the directory that contains temporary libtool files.
21897 objdir=$objdir
21898
21899 # How to create reloadable object files.
21900 reload_flag=$lt_reload_flag
21901 reload_cmds=$lt_reload_cmds
21902
21903 # How to pass a linker flag through the compiler.
21904 wl=$lt_lt_prog_compiler_wl_RC
21905
21906 # Object file suffix (normally "o").
21907 objext="$ac_objext"
21908
21909 # Old archive suffix (normally "a").
21910 libext="$libext"
21911
21912 # Shared library suffix (normally ".so").
21913 shrext_cmds='$shrext_cmds'
21914
21915 # Executable file suffix (normally "").
21916 exeext="$exeext"
21917
21918 # Additional compiler flags for building library objects.
21919 pic_flag=$lt_lt_prog_compiler_pic_RC
21920 pic_mode=$pic_mode
21921
21922 # What is the maximum length of a command?
21923 max_cmd_len=$lt_cv_sys_max_cmd_len
21924
21925 # Does compiler simultaneously support -c and -o options?
21926 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21927
21928 # Must we lock files when doing compilation?
21929 need_locks=$lt_need_locks
21930
21931 # Do we need the lib prefix for modules?
21932 need_lib_prefix=$need_lib_prefix
21933
21934 # Do we need a version for libraries?
21935 need_version=$need_version
21936
21937 # Whether dlopen is supported.
21938 dlopen_support=$enable_dlopen
21939
21940 # Whether dlopen of programs is supported.
21941 dlopen_self=$enable_dlopen_self
21942
21943 # Whether dlopen of statically linked programs is supported.
21944 dlopen_self_static=$enable_dlopen_self_static
21945
21946 # Compiler flag to prevent dynamic linking.
21947 link_static_flag=$lt_lt_prog_compiler_static_RC
21948
21949 # Compiler flag to turn off builtin functions.
21950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21951
21952 # Compiler flag to allow reflexive dlopens.
21953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21954
21955 # Compiler flag to generate shared objects directly from archives.
21956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21957
21958 # Compiler flag to generate thread-safe objects.
21959 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21960
21961 # Library versioning type.
21962 version_type=$version_type
21963
21964 # Format of library name prefix.
21965 libname_spec=$lt_libname_spec
21966
21967 # List of archive names.  First name is the real one, the rest are links.
21968 # The last name is the one that the linker finds with -lNAME.
21969 library_names_spec=$lt_library_names_spec
21970
21971 # The coded name of the library, if different from the real name.
21972 soname_spec=$lt_soname_spec
21973
21974 # Commands used to build and install an old-style archive.
21975 RANLIB=$lt_RANLIB
21976 old_archive_cmds=$lt_old_archive_cmds_RC
21977 old_postinstall_cmds=$lt_old_postinstall_cmds
21978 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21979
21980 # Create an old-style archive from a shared archive.
21981 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21982
21983 # Create a temporary old-style archive to link instead of a shared archive.
21984 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21985
21986 # Commands used to build and install a shared archive.
21987 archive_cmds=$lt_archive_cmds_RC
21988 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21989 postinstall_cmds=$lt_postinstall_cmds
21990 postuninstall_cmds=$lt_postuninstall_cmds
21991
21992 # Commands used to build a loadable module (assumed same as above if empty)
21993 module_cmds=$lt_module_cmds_RC
21994 module_expsym_cmds=$lt_module_expsym_cmds_RC
21995
21996 # Commands to strip libraries.
21997 old_striplib=$lt_old_striplib
21998 striplib=$lt_striplib
21999
22000 # Dependencies to place before the objects being linked to create a
22001 # shared library.
22002 predep_objects=$lt_predep_objects_RC
22003
22004 # Dependencies to place after the objects being linked to create a
22005 # shared library.
22006 postdep_objects=$lt_postdep_objects_RC
22007
22008 # Dependencies to place before the objects being linked to create a
22009 # shared library.
22010 predeps=$lt_predeps_RC
22011
22012 # Dependencies to place after the objects being linked to create a
22013 # shared library.
22014 postdeps=$lt_postdeps_RC
22015
22016 # The directories searched by this compiler when creating a shared
22017 # library
22018 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22019
22020 # The library search path used internally by the compiler when linking
22021 # a shared library.
22022 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22023
22024 # Method to check whether dependent libraries are shared objects.
22025 deplibs_check_method=$lt_deplibs_check_method
22026
22027 # Command to use when deplibs_check_method == file_magic.
22028 file_magic_cmd=$lt_file_magic_cmd
22029
22030 # Flag that allows shared libraries with undefined symbols to be built.
22031 allow_undefined_flag=$lt_allow_undefined_flag_RC
22032
22033 # Flag that forces no undefined symbols.
22034 no_undefined_flag=$lt_no_undefined_flag_RC
22035
22036 # Commands used to finish a libtool library installation in a directory.
22037 finish_cmds=$lt_finish_cmds
22038
22039 # Same as above, but a single script fragment to be evaled but not shown.
22040 finish_eval=$lt_finish_eval
22041
22042 # Take the output of nm and produce a listing of raw symbols and C names.
22043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22044
22045 # Transform the output of nm in a proper C declaration
22046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22047
22048 # Transform the output of nm in a C name address pair
22049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22050
22051 # This is the shared library runtime path variable.
22052 runpath_var=$runpath_var
22053
22054 # This is the shared library path variable.
22055 shlibpath_var=$shlibpath_var
22056
22057 # Is shlibpath searched before the hard-coded library search path?
22058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22059
22060 # How to hardcode a shared library path into an executable.
22061 hardcode_action=$hardcode_action_RC
22062
22063 # Whether we should hardcode library paths into libraries.
22064 hardcode_into_libs=$hardcode_into_libs
22065
22066 # Flag to hardcode \$libdir into a binary during linking.
22067 # This must work even if \$libdir does not exist.
22068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22069
22070 # If ld is used when linking, flag to hardcode \$libdir into
22071 # a binary during linking. This must work even if \$libdir does
22072 # not exist.
22073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22074
22075 # Whether we need a single -rpath flag with a separated argument.
22076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22077
22078 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22079 # resulting binary.
22080 hardcode_direct=$hardcode_direct_RC
22081
22082 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22083 # resulting binary.
22084 hardcode_minus_L=$hardcode_minus_L_RC
22085
22086 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22087 # the resulting binary.
22088 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22089
22090 # Set to yes if building a shared library automatically hardcodes DIR into the library
22091 # and all subsequent libraries and executables linked against it.
22092 hardcode_automatic=$hardcode_automatic_RC
22093
22094 # Variables whose values should be saved in libtool wrapper scripts and
22095 # restored at relink time.
22096 variables_saved_for_relink="$variables_saved_for_relink"
22097
22098 # Whether libtool must link a program against all its dependency libraries.
22099 link_all_deplibs=$link_all_deplibs_RC
22100
22101 # Compile-time system search path for libraries
22102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22103
22104 # Run-time system search path for libraries
22105 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22106
22107 # Fix the shell variable \$srcfile for the compiler.
22108 fix_srcfile_path=$lt_fix_srcfile_path
22109
22110 # Set to yes if exported symbols are required.
22111 always_export_symbols=$always_export_symbols_RC
22112
22113 # The commands to list exported symbols.
22114 export_symbols_cmds=$lt_export_symbols_cmds_RC
22115
22116 # The commands to extract the exported symbol list from a shared archive.
22117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22118
22119 # Symbols that should not be listed in the preloaded symbols.
22120 exclude_expsyms=$lt_exclude_expsyms_RC
22121
22122 # Symbols that must always be exported.
22123 include_expsyms=$lt_include_expsyms_RC
22124
22125 # ### END LIBTOOL TAG CONFIG: $tagname
22126
22127 __EOF__
22128
22129
22130 else
22131   # If there is no Makefile yet, we rely on a make rule to execute
22132   # `config.status --recheck' to rerun these tests and create the
22133   # libtool script then.
22134   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22135   if test -f "$ltmain_in"; then
22136     test -f Makefile && make "$ltmain"
22137   fi
22138 fi
22139
22140
22141 ac_ext=c
22142 ac_cpp='$CPP $CPPFLAGS'
22143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22146
22147 CC="$lt_save_CC"
22148
22149         ;;
22150
22151       *)
22152         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22153 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22154    { (exit 1); exit 1; }; }
22155         ;;
22156       esac
22157
22158       # Append the new tag name to the list of available tags.
22159       if test -n "$tagname" ; then
22160       available_tags="$available_tags $tagname"
22161     fi
22162     fi
22163   done
22164   IFS="$lt_save_ifs"
22165
22166   # Now substitute the updated list of available tags.
22167   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22168     mv "${ofile}T" "$ofile"
22169     chmod +x "$ofile"
22170   else
22171     rm -f "${ofile}T"
22172     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22173 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22174    { (exit 1); exit 1; }; }
22175   fi
22176 fi
22177
22178
22179
22180 # This can be used to rebuild libtool when needed
22181 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22182
22183 # Always use our own libtool.
22184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22185
22186 # Prevent multiple expansion
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208 #
22209 # Check for AViiON Machines running DGUX
22210 # FIXME: Should this be moved down to below the gc-debug processing?
22211 #
22212 ac_is_dgux=no
22213 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
22214   { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
22215 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
22216 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
22217   $as_echo_n "(cached) " >&6
22218 fi
22219 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
22220 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
22221 else
22222   # Is the header compilable?
22223 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
22224 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
22225 cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 $ac_includes_default
22232 #include <sys/dg_sys_info.h>
22233 _ACEOF
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242   (eval "$ac_compile") 2>conftest.er1
22243   ac_status=$?
22244   grep -v '^ *+' conftest.er1 >conftest.err
22245   rm -f conftest.er1
22246   cat conftest.err >&5
22247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } && {
22249          test -z "$ac_c_werror_flag" ||
22250          test ! -s conftest.err
22251        } && test -s conftest.$ac_objext; then
22252   ac_header_compiler=yes
22253 else
22254   $as_echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257         ac_header_compiler=no
22258 fi
22259
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22262 $as_echo "$ac_header_compiler" >&6; }
22263
22264 # Is the header present?
22265 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
22266 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h.  */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h.  */
22273 #include <sys/dg_sys_info.h>
22274 _ACEOF
22275 if { (ac_try="$ac_cpp conftest.$ac_ext"
22276 case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22281 $as_echo "$ac_try_echo") >&5
22282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22283   ac_status=$?
22284   grep -v '^ *+' conftest.er1 >conftest.err
22285   rm -f conftest.er1
22286   cat conftest.err >&5
22287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); } >/dev/null && {
22289          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22290          test ! -s conftest.err
22291        }; then
22292   ac_header_preproc=yes
22293 else
22294   $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297   ac_header_preproc=no
22298 fi
22299
22300 rm -f conftest.err conftest.$ac_ext
22301 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22302 $as_echo "$ac_header_preproc" >&6; }
22303
22304 # So?  What about this header?
22305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22306   yes:no: )
22307     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
22308 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22309     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
22310 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
22311     ac_header_preproc=yes
22312     ;;
22313   no:yes:* )
22314     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
22315 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
22316     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
22317 $as_echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
22318     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
22319 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
22320     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
22321 $as_echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22322     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
22323 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
22324     { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
22325 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
22326     ( cat <<\_ASBOX
22327 ## -------------------------------- ##
22328 ## Report this to Hans.Boehm@hp.com ##
22329 ## -------------------------------- ##
22330 _ASBOX
22331      ) | sed "s/^/$as_me: WARNING:     /" >&2
22332     ;;
22333 esac
22334 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
22335 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
22336 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
22337   $as_echo_n "(cached) " >&6
22338 else
22339   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
22340 fi
22341 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
22342 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
22343
22344 fi
22345 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
22346   ac_is_dgux=yes;
22347 fi
22348
22349
22350
22351     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
22352 if test $ac_is_dgux = yes; then
22353     if test "$enable_gc_debug" = "yes"; then
22354       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
22355       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
22356     else
22357       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
22358       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
22359     fi
22360
22361
22362 fi
22363
22364
22365 # Check whether --with-target-subdir was given.
22366 if test "${with_target_subdir+set}" = set; then
22367   withval=$with_target_subdir;
22368 fi
22369
22370
22371 # Check whether --with-cross-host was given.
22372 if test "${with_cross_host+set}" = set; then
22373   withval=$with_cross_host;
22374 fi
22375
22376
22377 # automake wants to see AC_EXEEXT.  But we don't need it.  And having
22378 # it is actually a problem, because the compiler we're passed can't
22379 # necessarily do a full link.  So we fool automake here.
22380 if false; then
22381   # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
22382   # to nothing, so nothing would remain between `then' and `fi' if it
22383   # were not for the `:' below.
22384   :
22385
22386 fi
22387
22388 { $as_echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
22389 $as_echo_n "checking whether Solaris gcc optimization fix is necessary... " >&6; }
22390 case "$host" in
22391  *aix*)
22392     if test "$GCC" = yes; then
22393        { $as_echo "$as_me:$LINENO: result: yes" >&5
22394 $as_echo "yes" >&6; }
22395        new_CFLAGS=
22396        for i in $CFLAGS; do
22397           case "$i" in
22398            -O*)
22399               ;;
22400            *)
22401               new_CFLAGS="$new_CFLAGS $i"
22402               ;;
22403           esac
22404        done
22405        CFLAGS="$new_CFLAGS"
22406     else
22407        { $as_echo "$as_me:$LINENO: result: no" >&5
22408 $as_echo "no" >&6; }
22409     fi
22410     ;;
22411  *) { $as_echo "$as_me:$LINENO: result: no" >&5
22412 $as_echo "no" >&6; } ;;
22413 esac
22414
22415
22416 cat >>confdefs.h <<\_ACEOF
22417 #define NO_EXECUTE_PERMISSION 1
22418 _ACEOF
22419
22420
22421 cat >>confdefs.h <<\_ACEOF
22422 #define ALL_INTERIOR_POINTERS 1
22423 _ACEOF
22424
22425
22426
22427 # Check whether --enable-gcj-support was given.
22428 if test "${enable_gcj_support+set}" = set; then
22429   enableval=$enable_gcj_support;
22430 fi
22431
22432  if test x"$enable_gcj_support" != xno; then
22433   ENABLE_GCJ_SUPPORT_TRUE=
22434   ENABLE_GCJ_SUPPORT_FALSE='#'
22435 else
22436   ENABLE_GCJ_SUPPORT_TRUE='#'
22437   ENABLE_GCJ_SUPPORT_FALSE=
22438 fi
22439
22440 if test x"$enable_gcj_support" != xno; then
22441
22442 cat >>confdefs.h <<\_ACEOF
22443 #define GC_GCJ_SUPPORT 1
22444 _ACEOF
22445
22446 fi
22447
22448
22449
22450
22451
22452
22453
22454
22455 UNWINDLIBS=
22456 # Check whether --enable-gc-debug was given.
22457 if test "${enable_gc_debug+set}" = set; then
22458   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
22459     { $as_echo "$as_me:$LINENO: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
22460 $as_echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
22461
22462 cat >>confdefs.h <<\_ACEOF
22463 #define KEEP_BACK_PTRS 1
22464 _ACEOF
22465
22466     keep_back_ptrs=true
22467
22468 cat >>confdefs.h <<\_ACEOF
22469 #define DBG_HDRS_ALL 1
22470 _ACEOF
22471
22472     case $host in
22473       ia64-*-linux* )
22474         cat >>confdefs.h <<\_ACEOF
22475 #define MAKE_BACK_GRAPH 1
22476 _ACEOF
22477
22478         cat >>confdefs.h <<\_ACEOF
22479 #define SAVE_CALL_COUNT 8
22480 _ACEOF
22481
22482         { $as_echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
22483 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
22484 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
22485   $as_echo_n "(cached) " >&6
22486 else
22487   ac_check_lib_save_LIBS=$LIBS
22488 LIBS="-lunwind  $LIBS"
22489 cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495
22496 /* Override any GCC internal prototype to avoid an error.
22497    Use char because int might match the return type of a GCC
22498    builtin and then its argument prototype would still apply.  */
22499 #ifdef __cplusplus
22500 extern "C"
22501 #endif
22502 char backtrace ();
22503 int
22504 main ()
22505 {
22506 return backtrace ();
22507   ;
22508   return 0;
22509 }
22510 _ACEOF
22511 rm -f conftest.$ac_objext conftest$ac_exeext
22512 if { (ac_try="$ac_link"
22513 case "(($ac_try" in
22514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515   *) ac_try_echo=$ac_try;;
22516 esac
22517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22518 $as_echo "$ac_try_echo") >&5
22519   (eval "$ac_link") 2>conftest.er1
22520   ac_status=$?
22521   grep -v '^ *+' conftest.er1 >conftest.err
22522   rm -f conftest.er1
22523   cat conftest.err >&5
22524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } && {
22526          test -z "$ac_c_werror_flag" ||
22527          test ! -s conftest.err
22528        } && test -s conftest$ac_exeext && {
22529          test "$cross_compiling" = yes ||
22530          $as_test_x conftest$ac_exeext
22531        }; then
22532   ac_cv_lib_unwind_backtrace=yes
22533 else
22534   $as_echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22536
22537         ac_cv_lib_unwind_backtrace=no
22538 fi
22539
22540 rm -rf conftest.dSYM
22541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22542       conftest$ac_exeext conftest.$ac_ext
22543 LIBS=$ac_check_lib_save_LIBS
22544 fi
22545 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
22546 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
22547 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then
22548
22549           cat >>confdefs.h <<\_ACEOF
22550 #define GC_HAVE_BUILTIN_BACKTRACE 1
22551 _ACEOF
22552
22553           UNWINDLIBS=-lunwind
22554           { $as_echo "$as_me:$LINENO: WARNING: \"Client code may need to link against libunwind.\"" >&5
22555 $as_echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
22556
22557 fi
22558
22559       ;;
22560       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
22561         cat >>confdefs.h <<\_ACEOF
22562 #define MAKE_BACK_GRAPH 1
22563 _ACEOF
22564
22565         { $as_echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
22566 $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
22567         cat >>confdefs.h <<\_ACEOF
22568 #define SAVE_CALL_COUNT 8
22569 _ACEOF
22570
22571       ;;
22572       i345686-*-dgux*)
22573         cat >>confdefs.h <<\_ACEOF
22574 #define MAKE_BACK_GRAPH 1
22575 _ACEOF
22576
22577       ;;
22578     esac
22579   fi
22580 fi
22581
22582  if test x"$keep_back_ptrs" = xtrue; then
22583   KEEP_BACK_PTRS_TRUE=
22584   KEEP_BACK_PTRS_FALSE='#'
22585 else
22586   KEEP_BACK_PTRS_TRUE='#'
22587   KEEP_BACK_PTRS_FALSE=
22588 fi
22589
22590
22591 # Check whether --enable-java-finalization was given.
22592 if test "${enable_java_finalization+set}" = set; then
22593   enableval=$enable_java_finalization;
22594 fi
22595
22596 if test x"$enable_java_finalization" != xno; then
22597
22598 cat >>confdefs.h <<\_ACEOF
22599 #define JAVA_FINALIZATION 1
22600 _ACEOF
22601
22602 fi
22603
22604 # Check whether --enable-atomic-uncollectable was given.
22605 if test "${enable_atomic_uncollectable+set}" = set; then
22606   enableval=$enable_atomic_uncollectable;
22607 fi
22608
22609 if test x"$enable_atomic_uncollectible" != x"no"; then
22610
22611 cat >>confdefs.h <<\_ACEOF
22612 #define ATOMIC_UNCOLLECTABLE 1
22613 _ACEOF
22614
22615 fi
22616
22617 # Check whether --enable-redirect-malloc was given.
22618 if test "${enable_redirect_malloc+set}" = set; then
22619   enableval=$enable_redirect_malloc;
22620 fi
22621
22622
22623 if test "${enable_redirect_malloc}" = yes; then
22624     if test "${enable_gc_debug}" = yes; then
22625
22626 cat >>confdefs.h <<\_ACEOF
22627 #define REDIRECT_MALLOC GC_debug_malloc_replacement
22628 _ACEOF
22629
22630
22631 cat >>confdefs.h <<\_ACEOF
22632 #define REDIRECT_REALLOC GC_debug_realloc_replacement
22633 _ACEOF
22634
22635
22636 cat >>confdefs.h <<\_ACEOF
22637 #define REDIRECT_FREE GC_debug_free
22638 _ACEOF
22639
22640     else
22641         cat >>confdefs.h <<\_ACEOF
22642 #define REDIRECT_MALLOC GC_malloc
22643 _ACEOF
22644
22645     fi
22646
22647 cat >>confdefs.h <<\_ACEOF
22648 #define GC_USE_DLOPEN_WRAP 1
22649 _ACEOF
22650
22651 fi
22652
22653 # Check whether --enable-large-config was given.
22654 if test "${enable_large_config+set}" = set; then
22655   enableval=$enable_large_config;
22656 fi
22657
22658
22659 if test "${enable_large_config}" = yes; then
22660
22661 cat >>confdefs.h <<\_ACEOF
22662 #define LARGE_CONFIG 1
22663 _ACEOF
22664
22665 fi
22666
22667 if test -n "${with_cross_host}"; then
22668
22669 cat >>confdefs.h <<\_ACEOF
22670 #define NO_CLOCK 1
22671 _ACEOF
22672
22673
22674 cat >>confdefs.h <<\_ACEOF
22675 #define SMALL_CONFIG 1
22676 _ACEOF
22677
22678
22679 cat >>confdefs.h <<\_ACEOF
22680 #define NO_DEBUGGING 1
22681 _ACEOF
22682
22683 fi
22684
22685
22686
22687
22688 # Check whether --enable-gc-assertions was given.
22689 if test "${enable_gc_assertions+set}" = set; then
22690   enableval=$enable_gc_assertions;
22691 fi
22692
22693 if test "${enable_gc_assertions}" = yes; then
22694
22695 cat >>confdefs.h <<\_ACEOF
22696 #define GC_ASSERTIONS 1
22697 _ACEOF
22698
22699 fi
22700
22701 # Check whether --enable-munmap was given.
22702 if test "${enable_munmap+set}" = set; then
22703   enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
22704    case "$MMAP" in
22705       no)
22706         { { $as_echo "$as_me:$LINENO: error: --enable-munmap requires --enable-mmap" >&5
22707 $as_echo "$as_me: error: --enable-munmap requires --enable-mmap" >&2;}
22708    { (exit 1); exit 1; }; }
22709         ;;
22710     esac
22711
22712 fi
22713
22714 if test "${enable_munmap}" != ""; then
22715
22716 cat >>confdefs.h <<\_ACEOF
22717 #define USE_MMAP 1
22718 _ACEOF
22719
22720
22721 cat >>confdefs.h <<\_ACEOF
22722 #define USE_MUNMAP 1
22723 _ACEOF
22724
22725     if test "${MUNMAP_THRESHOLD}" = "yes"; then
22726       MUNMAP_THRESHOLD=6
22727     fi
22728
22729 cat >>confdefs.h <<_ACEOF
22730 #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
22731 _ACEOF
22732
22733 fi
22734
22735  if test -z "$with_cross_host"; then
22736   USE_LIBDIR_TRUE=
22737   USE_LIBDIR_FALSE='#'
22738 else
22739   USE_LIBDIR_TRUE='#'
22740   USE_LIBDIR_FALSE=
22741 fi
22742
22743
22744
22745 # Atomic Ops
22746 # ----------
22747
22748 # Do we want to use an external libatomic_ops?  By default use it if it's
22749 # found.
22750
22751 # Check whether --with-libatomic-ops was given.
22752 if test "${with_libatomic_ops+set}" = set; then
22753   withval=$with_libatomic_ops;
22754 else
22755   with_libatomic_ops=check
22756 fi
22757
22758
22759 # Check for an external libatomic_ops if the answer was yes or check.  If not
22760 # found, fail on yes, and convert check to no.
22761 if test x"$with_libatomic_ops" != xno; then
22762    if test "${ac_cv_header_atomic_ops_h+set}" = set; then
22763   { $as_echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
22764 $as_echo_n "checking for atomic_ops.h... " >&6; }
22765 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
22766   $as_echo_n "(cached) " >&6
22767 fi
22768 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
22769 $as_echo "$ac_cv_header_atomic_ops_h" >&6; }
22770 else
22771   # Is the header compilable?
22772 { $as_echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
22773 $as_echo_n "checking atomic_ops.h usability... " >&6; }
22774 cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h.  */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h.  */
22780 $ac_includes_default
22781 #include <atomic_ops.h>
22782 _ACEOF
22783 rm -f conftest.$ac_objext
22784 if { (ac_try="$ac_compile"
22785 case "(($ac_try" in
22786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787   *) ac_try_echo=$ac_try;;
22788 esac
22789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22790 $as_echo "$ac_try_echo") >&5
22791   (eval "$ac_compile") 2>conftest.er1
22792   ac_status=$?
22793   grep -v '^ *+' conftest.er1 >conftest.err
22794   rm -f conftest.er1
22795   cat conftest.err >&5
22796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); } && {
22798          test -z "$ac_c_werror_flag" ||
22799          test ! -s conftest.err
22800        } && test -s conftest.$ac_objext; then
22801   ac_header_compiler=yes
22802 else
22803   $as_echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806         ac_header_compiler=no
22807 fi
22808
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22811 $as_echo "$ac_header_compiler" >&6; }
22812
22813 # Is the header present?
22814 { $as_echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
22815 $as_echo_n "checking atomic_ops.h presence... " >&6; }
22816 cat >conftest.$ac_ext <<_ACEOF
22817 /* confdefs.h.  */
22818 _ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h.  */
22822 #include <atomic_ops.h>
22823 _ACEOF
22824 if { (ac_try="$ac_cpp conftest.$ac_ext"
22825 case "(($ac_try" in
22826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827   *) ac_try_echo=$ac_try;;
22828 esac
22829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22830 $as_echo "$ac_try_echo") >&5
22831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22832   ac_status=$?
22833   grep -v '^ *+' conftest.er1 >conftest.err
22834   rm -f conftest.er1
22835   cat conftest.err >&5
22836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); } >/dev/null && {
22838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22839          test ! -s conftest.err
22840        }; then
22841   ac_header_preproc=yes
22842 else
22843   $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846   ac_header_preproc=no
22847 fi
22848
22849 rm -f conftest.err conftest.$ac_ext
22850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22851 $as_echo "$ac_header_preproc" >&6; }
22852
22853 # So?  What about this header?
22854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22855   yes:no: )
22856     { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
22857 $as_echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22858     { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
22859 $as_echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
22860     ac_header_preproc=yes
22861     ;;
22862   no:yes:* )
22863     { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
22864 $as_echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
22865     { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h:     check for missing prerequisite headers?" >&5
22866 $as_echo "$as_me: WARNING: atomic_ops.h:     check for missing prerequisite headers?" >&2;}
22867     { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
22868 $as_echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
22869     { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h:     section \"Present But Cannot Be Compiled\"" >&5
22870 $as_echo "$as_me: WARNING: atomic_ops.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22871     { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
22872 $as_echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
22873     { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
22874 $as_echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
22875     ( cat <<\_ASBOX
22876 ## -------------------------------- ##
22877 ## Report this to Hans.Boehm@hp.com ##
22878 ## -------------------------------- ##
22879 _ASBOX
22880      ) | sed "s/^/$as_me: WARNING:     /" >&2
22881     ;;
22882 esac
22883 { $as_echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
22884 $as_echo_n "checking for atomic_ops.h... " >&6; }
22885 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
22886   $as_echo_n "(cached) " >&6
22887 else
22888   ac_cv_header_atomic_ops_h=$ac_header_preproc
22889 fi
22890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
22891 $as_echo "$ac_cv_header_atomic_ops_h" >&6; }
22892
22893 fi
22894 if test "x$ac_cv_header_atomic_ops_h" = x""yes; then
22895   :
22896 else
22897    if test x"$with_libatomic_ops" != xcheck; then
22898   { { $as_echo "$as_me:$LINENO: error: A pre-installed libatomic_ops was not found." >&5
22899 $as_echo "$as_me: error: A pre-installed libatomic_ops was not found." >&2;}
22900    { (exit 1); exit 1; }; }
22901 fi
22902
22903         with_libatomic_ops=no
22904 fi
22905
22906
22907 fi
22908
22909
22910 # Finally, emit the definitions for bundled or pre-installed AO.
22911 { $as_echo "$as_me:$LINENO: checking which libatomic_ops to use" >&5
22912 $as_echo_n "checking which libatomic_ops to use... " >&6; }
22913
22914
22915 if test x"$with_libatomic_ops" != xno; then
22916    { $as_echo "$as_me:$LINENO: result: pre-installed" >&5
22917 $as_echo "pre-installed" >&6; }
22918     ATOMIC_OPS_LIBS="-latomic_ops"
22919
22920 else
22921    { $as_echo "$as_me:$LINENO: result: bundled" >&5
22922 $as_echo "bundled" >&6; }
22923     subdirs="$subdirs libatomic_ops"
22924
22925
22926 fi
22927
22928  if test x$with_libatomic_ops = xno -a x"$THREADS" != xnone; then
22929   USE_INTERNAL_LIBATOMIC_OPS_TRUE=
22930   USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
22931 else
22932   USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
22933   USE_INTERNAL_LIBATOMIC_OPS_FALSE=
22934 fi
22935
22936  if test x$with_libatomic_ops = xno -a x$need_atomic_ops_asm = xtrue; then
22937   NEED_ATOMIC_OPS_ASM_TRUE=
22938   NEED_ATOMIC_OPS_ASM_FALSE='#'
22939 else
22940   NEED_ATOMIC_OPS_ASM_TRUE='#'
22941   NEED_ATOMIC_OPS_ASM_FALSE=
22942 fi
22943
22944
22945
22946 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
22947
22948
22949 ac_config_commands="$ac_config_commands default"
22950
22951
22952 cat >confcache <<\_ACEOF
22953 # This file is a shell script that caches the results of configure
22954 # tests run on this system so they can be shared between configure
22955 # scripts and configure runs, see configure's option --config-cache.
22956 # It is not useful on other systems.  If it contains results you don't
22957 # want to keep, you may remove or edit it.
22958 #
22959 # config.status only pays attention to the cache file if you give it
22960 # the --recheck option to rerun configure.
22961 #
22962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22964 # following values.
22965
22966 _ACEOF
22967
22968 # The following way of writing the cache mishandles newlines in values,
22969 # but we know of no workaround that is simple, portable, and efficient.
22970 # So, we kill variables containing newlines.
22971 # Ultrix sh set writes to stderr and can't be redirected directly,
22972 # and sets the high bit in the cache file unless we assign to the vars.
22973 (
22974   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22975     eval ac_val=\$$ac_var
22976     case $ac_val in #(
22977     *${as_nl}*)
22978       case $ac_var in #(
22979       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22981       esac
22982       case $ac_var in #(
22983       _ | IFS | as_nl) ;; #(
22984       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22985       *) $as_unset $ac_var ;;
22986       esac ;;
22987     esac
22988   done
22989
22990   (set) 2>&1 |
22991     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22992     *${as_nl}ac_space=\ *)
22993       # `set' does not quote correctly, so add quotes (double-quote
22994       # substitution turns \\\\ into \\, and sed turns \\ into \).
22995       sed -n \
22996         "s/'/'\\\\''/g;
22997           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22998       ;; #(
22999     *)
23000       # `set' quotes correctly as required by POSIX, so do not add quotes.
23001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23002       ;;
23003     esac |
23004     sort
23005 ) |
23006   sed '
23007      /^ac_cv_env_/b end
23008      t clear
23009      :clear
23010      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23011      t end
23012      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23013      :end' >>confcache
23014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23015   if test -w "$cache_file"; then
23016     test "x$cache_file" != "x/dev/null" &&
23017       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23018 $as_echo "$as_me: updating cache $cache_file" >&6;}
23019     cat confcache >$cache_file
23020   else
23021     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23022 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23023   fi
23024 fi
23025 rm -f confcache
23026
23027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23028 # Let make expand exec_prefix.
23029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23030
23031 DEFS=-DHAVE_CONFIG_H
23032
23033 ac_libobjs=
23034 ac_ltlibobjs=
23035 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23036   # 1. Remove the extension, and $U if already installed.
23037   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23038   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23039   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23040   #    will be set to the directory where LIBOBJS objects are built.
23041   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23042   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23043 done
23044 LIBOBJS=$ac_libobjs
23045
23046 LTLIBOBJS=$ac_ltlibobjs
23047
23048
23049 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23050   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23051 Usually this means the macro was only invoked conditionally." >&5
23052 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23053 Usually this means the macro was only invoked conditionally." >&2;}
23054    { (exit 1); exit 1; }; }
23055 fi
23056 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23057   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23058 Usually this means the macro was only invoked conditionally." >&5
23059 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23060 Usually this means the macro was only invoked conditionally." >&2;}
23061    { (exit 1); exit 1; }; }
23062 fi
23063 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23064   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23065 Usually this means the macro was only invoked conditionally." >&5
23066 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23067 Usually this means the macro was only invoked conditionally." >&2;}
23068    { (exit 1); exit 1; }; }
23069 fi
23070 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23071   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23072 Usually this means the macro was only invoked conditionally." >&5
23073 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23074 Usually this means the macro was only invoked conditionally." >&2;}
23075    { (exit 1); exit 1; }; }
23076 fi
23077 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
23078   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
23079 Usually this means the macro was only invoked conditionally." >&5
23080 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
23081 Usually this means the macro was only invoked conditionally." >&2;}
23082    { (exit 1); exit 1; }; }
23083 fi
23084 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
23085   { { $as_echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
23086 Usually this means the macro was only invoked conditionally." >&5
23087 $as_echo "$as_me: error: conditional \"THREADS\" was never defined.
23088 Usually this means the macro was only invoked conditionally." >&2;}
23089    { (exit 1); exit 1; }; }
23090 fi
23091 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
23092   { { $as_echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined.
23093 Usually this means the macro was only invoked conditionally." >&5
23094 $as_echo "$as_me: error: conditional \"PTHREADS\" was never defined.
23095 Usually this means the macro was only invoked conditionally." >&2;}
23096    { (exit 1); exit 1; }; }
23097 fi
23098 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
23099   { { $as_echo "$as_me:$LINENO: error: conditional \"DARWIN_THREADS\" was never defined.
23100 Usually this means the macro was only invoked conditionally." >&5
23101 $as_echo "$as_me: error: conditional \"DARWIN_THREADS\" was never defined.
23102 Usually this means the macro was only invoked conditionally." >&2;}
23103    { (exit 1); exit 1; }; }
23104 fi
23105 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
23106   { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_THREADS\" was never defined.
23107 Usually this means the macro was only invoked conditionally." >&5
23108 $as_echo "$as_me: error: conditional \"WIN32_THREADS\" was never defined.
23109 Usually this means the macro was only invoked conditionally." >&2;}
23110    { (exit 1); exit 1; }; }
23111 fi
23112 if test -z "${OPENBSD_THREADS_TRUE}" && test -z "${OPENBSD_THREADS_FALSE}"; then
23113   { { $as_echo "$as_me:$LINENO: error: conditional \"OPENBSD_THREADS\" was never defined.
23114 Usually this means the macro was only invoked conditionally." >&5
23115 $as_echo "$as_me: error: conditional \"OPENBSD_THREADS\" was never defined.
23116 Usually this means the macro was only invoked conditionally." >&2;}
23117    { (exit 1); exit 1; }; }
23118 fi
23119 if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
23120   { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILER_XLC\" was never defined.
23121 Usually this means the macro was only invoked conditionally." >&5
23122 $as_echo "$as_me: error: conditional \"COMPILER_XLC\" was never defined.
23123 Usually this means the macro was only invoked conditionally." >&2;}
23124    { (exit 1); exit 1; }; }
23125 fi
23126 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
23127   { { $as_echo "$as_me:$LINENO: error: conditional \"AVOID_CPP_LIB\" was never defined.
23128 Usually this means the macro was only invoked conditionally." >&5
23129 $as_echo "$as_me: error: conditional \"AVOID_CPP_LIB\" was never defined.
23130 Usually this means the macro was only invoked conditionally." >&2;}
23131    { (exit 1); exit 1; }; }
23132 fi
23133 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
23134   { { $as_echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
23135 Usually this means the macro was only invoked conditionally." >&5
23136 $as_echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
23137 Usually this means the macro was only invoked conditionally." >&2;}
23138    { (exit 1); exit 1; }; }
23139 fi
23140 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
23141   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
23142 Usually this means the macro was only invoked conditionally." >&5
23143 $as_echo "$as_me: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
23144 Usually this means the macro was only invoked conditionally." >&2;}
23145    { (exit 1); exit 1; }; }
23146 fi
23147 if test -z "${KEEP_BACK_PTRS_TRUE}" && test -z "${KEEP_BACK_PTRS_FALSE}"; then
23148   { { $as_echo "$as_me:$LINENO: error: conditional \"KEEP_BACK_PTRS\" was never defined.
23149 Usually this means the macro was only invoked conditionally." >&5
23150 $as_echo "$as_me: error: conditional \"KEEP_BACK_PTRS\" was never defined.
23151 Usually this means the macro was only invoked conditionally." >&2;}
23152    { (exit 1); exit 1; }; }
23153 fi
23154 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
23155   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined.
23156 Usually this means the macro was only invoked conditionally." >&5
23157 $as_echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined.
23158 Usually this means the macro was only invoked conditionally." >&2;}
23159    { (exit 1); exit 1; }; }
23160 fi
23161 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
23162   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
23163 Usually this means the macro was only invoked conditionally." >&5
23164 $as_echo "$as_me: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
23165 Usually this means the macro was only invoked conditionally." >&2;}
23166    { (exit 1); exit 1; }; }
23167 fi
23168 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
23169   { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
23170 Usually this means the macro was only invoked conditionally." >&5
23171 $as_echo "$as_me: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
23172 Usually this means the macro was only invoked conditionally." >&2;}
23173    { (exit 1); exit 1; }; }
23174 fi
23175
23176 : ${CONFIG_STATUS=./config.status}
23177 ac_write_fail=0
23178 ac_clean_files_save=$ac_clean_files
23179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23180 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23181 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23182 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23183 #! $SHELL
23184 # Generated by $as_me.
23185 # Run this file to recreate the current configuration.
23186 # Compiler output produced by configure, useful for debugging
23187 # configure, is in config.log if it exists.
23188
23189 debug=false
23190 ac_cs_recheck=false
23191 ac_cs_silent=false
23192 SHELL=\${CONFIG_SHELL-$SHELL}
23193 _ACEOF
23194
23195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23196 ## --------------------- ##
23197 ## M4sh Initialization.  ##
23198 ## --------------------- ##
23199
23200 # Be more Bourne compatible
23201 DUALCASE=1; export DUALCASE # for MKS sh
23202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23203   emulate sh
23204   NULLCMD=:
23205   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23206   # is contrary to our usage.  Disable this feature.
23207   alias -g '${1+"$@"}'='"$@"'
23208   setopt NO_GLOB_SUBST
23209 else
23210   case `(set -o) 2>/dev/null` in
23211   *posix*) set -o posix ;;
23212 esac
23213
23214 fi
23215
23216
23217
23218
23219 # PATH needs CR
23220 # Avoid depending upon Character Ranges.
23221 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23222 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23223 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23224 as_cr_digits='0123456789'
23225 as_cr_alnum=$as_cr_Letters$as_cr_digits
23226
23227 as_nl='
23228 '
23229 export as_nl
23230 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23231 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23234 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23235   as_echo='printf %s\n'
23236   as_echo_n='printf %s'
23237 else
23238   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23239     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23240     as_echo_n='/usr/ucb/echo -n'
23241   else
23242     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23243     as_echo_n_body='eval
23244       arg=$1;
23245       case $arg in
23246       *"$as_nl"*)
23247         expr "X$arg" : "X\\(.*\\)$as_nl";
23248         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23249       esac;
23250       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23251     '
23252     export as_echo_n_body
23253     as_echo_n='sh -c $as_echo_n_body as_echo'
23254   fi
23255   export as_echo_body
23256   as_echo='sh -c $as_echo_body as_echo'
23257 fi
23258
23259 # The user is always right.
23260 if test "${PATH_SEPARATOR+set}" != set; then
23261   PATH_SEPARATOR=:
23262   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23263     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23264       PATH_SEPARATOR=';'
23265   }
23266 fi
23267
23268 # Support unset when possible.
23269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23270   as_unset=unset
23271 else
23272   as_unset=false
23273 fi
23274
23275
23276 # IFS
23277 # We need space, tab and new line, in precisely that order.  Quoting is
23278 # there to prevent editors from complaining about space-tab.
23279 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23280 # splitting by setting IFS to empty value.)
23281 IFS=" ""        $as_nl"
23282
23283 # Find who we are.  Look in the path if we contain no directory separator.
23284 case $0 in
23285   *[\\/]* ) as_myself=$0 ;;
23286   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23287 for as_dir in $PATH
23288 do
23289   IFS=$as_save_IFS
23290   test -z "$as_dir" && as_dir=.
23291   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23292 done
23293 IFS=$as_save_IFS
23294
23295      ;;
23296 esac
23297 # We did not find ourselves, most probably we were run as `sh COMMAND'
23298 # in which case we are not to be found in the path.
23299 if test "x$as_myself" = x; then
23300   as_myself=$0
23301 fi
23302 if test ! -f "$as_myself"; then
23303   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23304   { (exit 1); exit 1; }
23305 fi
23306
23307 # Work around bugs in pre-3.0 UWIN ksh.
23308 for as_var in ENV MAIL MAILPATH
23309 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23310 done
23311 PS1='$ '
23312 PS2='> '
23313 PS4='+ '
23314
23315 # NLS nuisances.
23316 LC_ALL=C
23317 export LC_ALL
23318 LANGUAGE=C
23319 export LANGUAGE
23320
23321 # Required to use basename.
23322 if expr a : '\(a\)' >/dev/null 2>&1 &&
23323    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23324   as_expr=expr
23325 else
23326   as_expr=false
23327 fi
23328
23329 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23330   as_basename=basename
23331 else
23332   as_basename=false
23333 fi
23334
23335
23336 # Name of the executable.
23337 as_me=`$as_basename -- "$0" ||
23338 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23339          X"$0" : 'X\(//\)$' \| \
23340          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23341 $as_echo X/"$0" |
23342     sed '/^.*\/\([^/][^/]*\)\/*$/{
23343             s//\1/
23344             q
23345           }
23346           /^X\/\(\/\/\)$/{
23347             s//\1/
23348             q
23349           }
23350           /^X\/\(\/\).*/{
23351             s//\1/
23352             q
23353           }
23354           s/.*/./; q'`
23355
23356 # CDPATH.
23357 $as_unset CDPATH
23358
23359
23360
23361   as_lineno_1=$LINENO
23362   as_lineno_2=$LINENO
23363   test "x$as_lineno_1" != "x$as_lineno_2" &&
23364   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23365
23366   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23367   # uniformly replaced by the line number.  The first 'sed' inserts a
23368   # line-number line after each line using $LINENO; the second 'sed'
23369   # does the real work.  The second script uses 'N' to pair each
23370   # line-number line with the line containing $LINENO, and appends
23371   # trailing '-' during substitution so that $LINENO is not a special
23372   # case at line end.
23373   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23374   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23375   # E. McMahon (1931-1989) for sed's syntax.  :-)
23376   sed -n '
23377     p
23378     /[$]LINENO/=
23379   ' <$as_myself |
23380     sed '
23381       s/[$]LINENO.*/&-/
23382       t lineno
23383       b
23384       :lineno
23385       N
23386       :loop
23387       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23388       t loop
23389       s/-\n.*//
23390     ' >$as_me.lineno &&
23391   chmod +x "$as_me.lineno" ||
23392     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23393    { (exit 1); exit 1; }; }
23394
23395   # Don't try to exec as it changes $[0], causing all sort of problems
23396   # (the dirname of $[0] is not the place where we might find the
23397   # original and so on.  Autoconf is especially sensitive to this).
23398   . "./$as_me.lineno"
23399   # Exit status is that of the last command.
23400   exit
23401 }
23402
23403
23404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23405   as_dirname=dirname
23406 else
23407   as_dirname=false
23408 fi
23409
23410 ECHO_C= ECHO_N= ECHO_T=
23411 case `echo -n x` in
23412 -n*)
23413   case `echo 'x\c'` in
23414   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23415   *)   ECHO_C='\c';;
23416   esac;;
23417 *)
23418   ECHO_N='-n';;
23419 esac
23420 if expr a : '\(a\)' >/dev/null 2>&1 &&
23421    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23422   as_expr=expr
23423 else
23424   as_expr=false
23425 fi
23426
23427 rm -f conf$$ conf$$.exe conf$$.file
23428 if test -d conf$$.dir; then
23429   rm -f conf$$.dir/conf$$.file
23430 else
23431   rm -f conf$$.dir
23432   mkdir conf$$.dir 2>/dev/null
23433 fi
23434 if (echo >conf$$.file) 2>/dev/null; then
23435   if ln -s conf$$.file conf$$ 2>/dev/null; then
23436     as_ln_s='ln -s'
23437     # ... but there are two gotchas:
23438     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23439     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23440     # In both cases, we have to default to `cp -p'.
23441     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23442       as_ln_s='cp -p'
23443   elif ln conf$$.file conf$$ 2>/dev/null; then
23444     as_ln_s=ln
23445   else
23446     as_ln_s='cp -p'
23447   fi
23448 else
23449   as_ln_s='cp -p'
23450 fi
23451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23452 rmdir conf$$.dir 2>/dev/null
23453
23454 if mkdir -p . 2>/dev/null; then
23455   as_mkdir_p=:
23456 else
23457   test -d ./-p && rmdir ./-p
23458   as_mkdir_p=false
23459 fi
23460
23461 if test -x / >/dev/null 2>&1; then
23462   as_test_x='test -x'
23463 else
23464   if ls -dL / >/dev/null 2>&1; then
23465     as_ls_L_option=L
23466   else
23467     as_ls_L_option=
23468   fi
23469   as_test_x='
23470     eval sh -c '\''
23471       if test -d "$1"; then
23472         test -d "$1/.";
23473       else
23474         case $1 in
23475         -*)set "./$1";;
23476         esac;
23477         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23478         ???[sx]*):;;*)false;;esac;fi
23479     '\'' sh
23480   '
23481 fi
23482 as_executable_p=$as_test_x
23483
23484 # Sed expression to map a string onto a valid CPP name.
23485 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23486
23487 # Sed expression to map a string onto a valid variable name.
23488 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23489
23490
23491 exec 6>&1
23492
23493 # Save the log message, to keep $[0] and so on meaningful, and to
23494 # report actual input values of CONFIG_FILES etc. instead of their
23495 # values after options handling.
23496 ac_log="
23497 This file was extended by gc $as_me 7.2alpha4, which was
23498 generated by GNU Autoconf 2.63.  Invocation command line was
23499
23500   CONFIG_FILES    = $CONFIG_FILES
23501   CONFIG_HEADERS  = $CONFIG_HEADERS
23502   CONFIG_LINKS    = $CONFIG_LINKS
23503   CONFIG_COMMANDS = $CONFIG_COMMANDS
23504   $ $0 $@
23505
23506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23507 "
23508
23509 _ACEOF
23510
23511 case $ac_config_files in *"
23512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23513 esac
23514
23515 case $ac_config_headers in *"
23516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23517 esac
23518
23519
23520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23521 # Files that config.status was made for.
23522 config_files="$ac_config_files"
23523 config_headers="$ac_config_headers"
23524 config_commands="$ac_config_commands"
23525
23526 _ACEOF
23527
23528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23529 ac_cs_usage="\
23530 \`$as_me' instantiates files from templates according to the
23531 current configuration.
23532
23533 Usage: $0 [OPTION]... [FILE]...
23534
23535   -h, --help       print this help, then exit
23536   -V, --version    print version number and configuration settings, then exit
23537   -q, --quiet, --silent
23538                    do not print progress messages
23539   -d, --debug      don't remove temporary files
23540       --recheck    update $as_me by reconfiguring in the same conditions
23541       --file=FILE[:TEMPLATE]
23542                    instantiate the configuration file FILE
23543       --header=FILE[:TEMPLATE]
23544                    instantiate the configuration header FILE
23545
23546 Configuration files:
23547 $config_files
23548
23549 Configuration headers:
23550 $config_headers
23551
23552 Configuration commands:
23553 $config_commands
23554
23555 Report bugs to <bug-autoconf@gnu.org>."
23556
23557 _ACEOF
23558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23559 ac_cs_version="\\
23560 gc config.status 7.2alpha4
23561 configured by $0, generated by GNU Autoconf 2.63,
23562   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23563
23564 Copyright (C) 2008 Free Software Foundation, Inc.
23565 This config.status script is free software; the Free Software Foundation
23566 gives unlimited permission to copy, distribute and modify it."
23567
23568 ac_pwd='$ac_pwd'
23569 srcdir='$srcdir'
23570 INSTALL='$INSTALL'
23571 MKDIR_P='$MKDIR_P'
23572 AWK='$AWK'
23573 test -n "\$AWK" || AWK=awk
23574 _ACEOF
23575
23576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23577 # The default lists apply if the user does not specify any file.
23578 ac_need_defaults=:
23579 while test $# != 0
23580 do
23581   case $1 in
23582   --*=*)
23583     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23584     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23585     ac_shift=:
23586     ;;
23587   *)
23588     ac_option=$1
23589     ac_optarg=$2
23590     ac_shift=shift
23591     ;;
23592   esac
23593
23594   case $ac_option in
23595   # Handling of the options.
23596   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23597     ac_cs_recheck=: ;;
23598   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23599     $as_echo "$ac_cs_version"; exit ;;
23600   --debug | --debu | --deb | --de | --d | -d )
23601     debug=: ;;
23602   --file | --fil | --fi | --f )
23603     $ac_shift
23604     case $ac_optarg in
23605     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23606     esac
23607     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23608     ac_need_defaults=false;;
23609   --header | --heade | --head | --hea )
23610     $ac_shift
23611     case $ac_optarg in
23612     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23613     esac
23614     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23615     ac_need_defaults=false;;
23616   --he | --h)
23617     # Conflict between --help and --header
23618     { $as_echo "$as_me: error: ambiguous option: $1
23619 Try \`$0 --help' for more information." >&2
23620    { (exit 1); exit 1; }; };;
23621   --help | --hel | -h )
23622     $as_echo "$ac_cs_usage"; exit ;;
23623   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23624   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23625     ac_cs_silent=: ;;
23626
23627   # This is an error.
23628   -*) { $as_echo "$as_me: error: unrecognized option: $1
23629 Try \`$0 --help' for more information." >&2
23630    { (exit 1); exit 1; }; } ;;
23631
23632   *) ac_config_targets="$ac_config_targets $1"
23633      ac_need_defaults=false ;;
23634
23635   esac
23636   shift
23637 done
23638
23639 ac_configure_extra_args=
23640
23641 if $ac_cs_silent; then
23642   exec 6>/dev/null
23643   ac_configure_extra_args="$ac_configure_extra_args --silent"
23644 fi
23645
23646 _ACEOF
23647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23648 if \$ac_cs_recheck; then
23649   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23650   shift
23651   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23652   CONFIG_SHELL='$SHELL'
23653   export CONFIG_SHELL
23654   exec "\$@"
23655 fi
23656
23657 _ACEOF
23658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23659 exec 5>>config.log
23660 {
23661   echo
23662   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23663 ## Running $as_me. ##
23664 _ASBOX
23665   $as_echo "$ac_log"
23666 } >&5
23667
23668 _ACEOF
23669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23670 #
23671 # INIT-COMMANDS
23672 #
23673 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23674  srcdir="${srcdir}"
23675     host=${host}
23676     CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23677     CC="${CC}"
23678     DEFS="$DEFS"
23679
23680 _ACEOF
23681
23682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23683
23684 # Handling of arguments.
23685 for ac_config_target in $ac_config_targets
23686 do
23687   case $ac_config_target in
23688     "include/private/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/config.h" ;;
23689     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23690     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23691     "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
23692     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23693
23694   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23695 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23696    { (exit 1); exit 1; }; };;
23697   esac
23698 done
23699
23700
23701 # If the user did not use the arguments to specify the items to instantiate,
23702 # then the envvar interface is used.  Set only those that are not.
23703 # We use the long form for the default assignment because of an extremely
23704 # bizarre bug on SunOS 4.1.3.
23705 if $ac_need_defaults; then
23706   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23707   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23708   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23709 fi
23710
23711 # Have a temporary directory for convenience.  Make it in the build tree
23712 # simply because there is no reason against having it here, and in addition,
23713 # creating and moving files from /tmp can sometimes cause problems.
23714 # Hook for its removal unless debugging.
23715 # Note that there is a small window in which the directory will not be cleaned:
23716 # after its creation but before its name has been assigned to `$tmp'.
23717 $debug ||
23718 {
23719   tmp=
23720   trap 'exit_status=$?
23721   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23722 ' 0
23723   trap '{ (exit 1); exit 1; }' 1 2 13 15
23724 }
23725 # Create a (secure) tmp directory for tmp files.
23726
23727 {
23728   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23729   test -n "$tmp" && test -d "$tmp"
23730 }  ||
23731 {
23732   tmp=./conf$$-$RANDOM
23733   (umask 077 && mkdir "$tmp")
23734 } ||
23735 {
23736    $as_echo "$as_me: cannot create a temporary directory in ." >&2
23737    { (exit 1); exit 1; }
23738 }
23739
23740 # Set up the scripts for CONFIG_FILES section.
23741 # No need to generate them if there are no CONFIG_FILES.
23742 # This happens for instance with `./config.status config.h'.
23743 if test -n "$CONFIG_FILES"; then
23744
23745
23746 ac_cr='\r'
23747 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23748 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23749   ac_cs_awk_cr='\\r'
23750 else
23751   ac_cs_awk_cr=$ac_cr
23752 fi
23753
23754 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23755 _ACEOF
23756
23757
23758 {
23759   echo "cat >conf$$subs.awk <<_ACEOF" &&
23760   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23761   echo "_ACEOF"
23762 } >conf$$subs.sh ||
23763   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23764 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23765    { (exit 1); exit 1; }; }
23766 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23767 ac_delim='%!_!# '
23768 for ac_last_try in false false false false false :; do
23769   . ./conf$$subs.sh ||
23770     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23771 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23772    { (exit 1); exit 1; }; }
23773
23774   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23775   if test $ac_delim_n = $ac_delim_num; then
23776     break
23777   elif $ac_last_try; then
23778     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23779 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23780    { (exit 1); exit 1; }; }
23781   else
23782     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23783   fi
23784 done
23785 rm -f conf$$subs.sh
23786
23787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23788 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23789 _ACEOF
23790 sed -n '
23791 h
23792 s/^/S["/; s/!.*/"]=/
23793 p
23794 g
23795 s/^[^!]*!//
23796 :repl
23797 t repl
23798 s/'"$ac_delim"'$//
23799 t delim
23800 :nl
23801 h
23802 s/\(.\{148\}\).*/\1/
23803 t more1
23804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23805 p
23806 n
23807 b repl
23808 :more1
23809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23810 p
23811 g
23812 s/.\{148\}//
23813 t nl
23814 :delim
23815 h
23816 s/\(.\{148\}\).*/\1/
23817 t more2
23818 s/["\\]/\\&/g; s/^/"/; s/$/"/
23819 p
23820 b
23821 :more2
23822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23823 p
23824 g
23825 s/.\{148\}//
23826 t delim
23827 ' <conf$$subs.awk | sed '
23828 /^[^""]/{
23829   N
23830   s/\n//
23831 }
23832 ' >>$CONFIG_STATUS || ac_write_fail=1
23833 rm -f conf$$subs.awk
23834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23835 _ACAWK
23836 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23837   for (key in S) S_is_set[key] = 1
23838   FS = "\a"
23839
23840 }
23841 {
23842   line = $ 0
23843   nfields = split(line, field, "@")
23844   substed = 0
23845   len = length(field[1])
23846   for (i = 2; i < nfields; i++) {
23847     key = field[i]
23848     keylen = length(key)
23849     if (S_is_set[key]) {
23850       value = S[key]
23851       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23852       len += length(value) + length(field[++i])
23853       substed = 1
23854     } else
23855       len += 1 + keylen
23856   }
23857
23858   print line
23859 }
23860
23861 _ACAWK
23862 _ACEOF
23863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23865   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23866 else
23867   cat
23868 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23869   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23870 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23871    { (exit 1); exit 1; }; }
23872 _ACEOF
23873
23874 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23875 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23876 # trailing colons and then remove the whole line if VPATH becomes empty
23877 # (actually we leave an empty line to preserve line numbers).
23878 if test "x$srcdir" = x.; then
23879   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23880 s/:*\$(srcdir):*/:/
23881 s/:*\${srcdir}:*/:/
23882 s/:*@srcdir@:*/:/
23883 s/^\([^=]*=[     ]*\):*/\1/
23884 s/:*$//
23885 s/^[^=]*=[       ]*$//
23886 }'
23887 fi
23888
23889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23890 fi # test -n "$CONFIG_FILES"
23891
23892 # Set up the scripts for CONFIG_HEADERS section.
23893 # No need to generate them if there are no CONFIG_HEADERS.
23894 # This happens for instance with `./config.status Makefile'.
23895 if test -n "$CONFIG_HEADERS"; then
23896 cat >"$tmp/defines.awk" <<\_ACAWK ||
23897 BEGIN {
23898 _ACEOF
23899
23900 # Transform confdefs.h into an awk script `defines.awk', embedded as
23901 # here-document in config.status, that substitutes the proper values into
23902 # config.h.in to produce config.h.
23903
23904 # Create a delimiter string that does not exist in confdefs.h, to ease
23905 # handling of long lines.
23906 ac_delim='%!_!# '
23907 for ac_last_try in false false :; do
23908   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23909   if test -z "$ac_t"; then
23910     break
23911   elif $ac_last_try; then
23912     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23913 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23914    { (exit 1); exit 1; }; }
23915   else
23916     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23917   fi
23918 done
23919
23920 # For the awk script, D is an array of macro values keyed by name,
23921 # likewise P contains macro parameters if any.  Preserve backslash
23922 # newline sequences.
23923
23924 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23925 sed -n '
23926 s/.\{148\}/&'"$ac_delim"'/g
23927 t rset
23928 :rset
23929 s/^[     ]*#[    ]*define[       ][      ]*/ /
23930 t def
23931 d
23932 :def
23933 s/\\$//
23934 t bsnl
23935 s/["\\]/\\&/g
23936 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23937 D["\1"]=" \3"/p
23938 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23939 d
23940 :bsnl
23941 s/["\\]/\\&/g
23942 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23943 D["\1"]=" \3\\\\\\n"\\/p
23944 t cont
23945 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23946 t cont
23947 d
23948 :cont
23949 n
23950 s/.\{148\}/&'"$ac_delim"'/g
23951 t clear
23952 :clear
23953 s/\\$//
23954 t bsnlc
23955 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23956 d
23957 :bsnlc
23958 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23959 b cont
23960 ' <confdefs.h | sed '
23961 s/'"$ac_delim"'/"\\\
23962 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23963
23964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23965   for (key in D) D_is_set[key] = 1
23966   FS = "\a"
23967 }
23968 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23969   line = \$ 0
23970   split(line, arg, " ")
23971   if (arg[1] == "#") {
23972     defundef = arg[2]
23973     mac1 = arg[3]
23974   } else {
23975     defundef = substr(arg[1], 2)
23976     mac1 = arg[2]
23977   }
23978   split(mac1, mac2, "(") #)
23979   macro = mac2[1]
23980   prefix = substr(line, 1, index(line, defundef) - 1)
23981   if (D_is_set[macro]) {
23982     # Preserve the white space surrounding the "#".
23983     print prefix "define", macro P[macro] D[macro]
23984     next
23985   } else {
23986     # Replace #undef with comments.  This is necessary, for example,
23987     # in the case of _POSIX_SOURCE, which is predefined and required
23988     # on some systems where configure will not decide to define it.
23989     if (defundef == "undef") {
23990       print "/*", prefix defundef, macro, "*/"
23991       next
23992     }
23993   }
23994 }
23995 { print }
23996 _ACAWK
23997 _ACEOF
23998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23999   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24000 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24001    { (exit 1); exit 1; }; }
24002 fi # test -n "$CONFIG_HEADERS"
24003
24004
24005 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24006 shift
24007 for ac_tag
24008 do
24009   case $ac_tag in
24010   :[FHLC]) ac_mode=$ac_tag; continue;;
24011   esac
24012   case $ac_mode$ac_tag in
24013   :[FHL]*:*);;
24014   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24015 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24016    { (exit 1); exit 1; }; };;
24017   :[FH]-) ac_tag=-:-;;
24018   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24019   esac
24020   ac_save_IFS=$IFS
24021   IFS=:
24022   set x $ac_tag
24023   IFS=$ac_save_IFS
24024   shift
24025   ac_file=$1
24026   shift
24027
24028   case $ac_mode in
24029   :L) ac_source=$1;;
24030   :[FH])
24031     ac_file_inputs=
24032     for ac_f
24033     do
24034       case $ac_f in
24035       -) ac_f="$tmp/stdin";;
24036       *) # Look for the file first in the build tree, then in the source tree
24037          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24038          # because $ac_f cannot contain `:'.
24039          test -f "$ac_f" ||
24040            case $ac_f in
24041            [\\/$]*) false;;
24042            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24043            esac ||
24044            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24045 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24046    { (exit 1); exit 1; }; };;
24047       esac
24048       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24049       ac_file_inputs="$ac_file_inputs '$ac_f'"
24050     done
24051
24052     # Let's still pretend it is `configure' which instantiates (i.e., don't
24053     # use $as_me), people would be surprised to read:
24054     #    /* config.h.  Generated by config.status.  */
24055     configure_input='Generated from '`
24056           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24057         `' by configure.'
24058     if test x"$ac_file" != x-; then
24059       configure_input="$ac_file.  $configure_input"
24060       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24061 $as_echo "$as_me: creating $ac_file" >&6;}
24062     fi
24063     # Neutralize special characters interpreted by sed in replacement strings.
24064     case $configure_input in #(
24065     *\&* | *\|* | *\\* )
24066        ac_sed_conf_input=`$as_echo "$configure_input" |
24067        sed 's/[\\\\&|]/\\\\&/g'`;; #(
24068     *) ac_sed_conf_input=$configure_input;;
24069     esac
24070
24071     case $ac_tag in
24072     *:-:* | *:-) cat >"$tmp/stdin" \
24073       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24074 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24075    { (exit 1); exit 1; }; } ;;
24076     esac
24077     ;;
24078   esac
24079
24080   ac_dir=`$as_dirname -- "$ac_file" ||
24081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24082          X"$ac_file" : 'X\(//\)[^/]' \| \
24083          X"$ac_file" : 'X\(//\)$' \| \
24084          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24085 $as_echo X"$ac_file" |
24086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24087             s//\1/
24088             q
24089           }
24090           /^X\(\/\/\)[^/].*/{
24091             s//\1/
24092             q
24093           }
24094           /^X\(\/\/\)$/{
24095             s//\1/
24096             q
24097           }
24098           /^X\(\/\).*/{
24099             s//\1/
24100             q
24101           }
24102           s/.*/./; q'`
24103   { as_dir="$ac_dir"
24104   case $as_dir in #(
24105   -*) as_dir=./$as_dir;;
24106   esac
24107   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24108     as_dirs=
24109     while :; do
24110       case $as_dir in #(
24111       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24112       *) as_qdir=$as_dir;;
24113       esac
24114       as_dirs="'$as_qdir' $as_dirs"
24115       as_dir=`$as_dirname -- "$as_dir" ||
24116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24117          X"$as_dir" : 'X\(//\)[^/]' \| \
24118          X"$as_dir" : 'X\(//\)$' \| \
24119          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24120 $as_echo X"$as_dir" |
24121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24122             s//\1/
24123             q
24124           }
24125           /^X\(\/\/\)[^/].*/{
24126             s//\1/
24127             q
24128           }
24129           /^X\(\/\/\)$/{
24130             s//\1/
24131             q
24132           }
24133           /^X\(\/\).*/{
24134             s//\1/
24135             q
24136           }
24137           s/.*/./; q'`
24138       test -d "$as_dir" && break
24139     done
24140     test -z "$as_dirs" || eval "mkdir $as_dirs"
24141   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24142 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24143    { (exit 1); exit 1; }; }; }
24144   ac_builddir=.
24145
24146 case "$ac_dir" in
24147 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24148 *)
24149   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24150   # A ".." for each directory in $ac_dir_suffix.
24151   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24152   case $ac_top_builddir_sub in
24153   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24154   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24155   esac ;;
24156 esac
24157 ac_abs_top_builddir=$ac_pwd
24158 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24159 # for backward compatibility:
24160 ac_top_builddir=$ac_top_build_prefix
24161
24162 case $srcdir in
24163   .)  # We are building in place.
24164     ac_srcdir=.
24165     ac_top_srcdir=$ac_top_builddir_sub
24166     ac_abs_top_srcdir=$ac_pwd ;;
24167   [\\/]* | ?:[\\/]* )  # Absolute name.
24168     ac_srcdir=$srcdir$ac_dir_suffix;
24169     ac_top_srcdir=$srcdir
24170     ac_abs_top_srcdir=$srcdir ;;
24171   *) # Relative name.
24172     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24173     ac_top_srcdir=$ac_top_build_prefix$srcdir
24174     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24175 esac
24176 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24177
24178
24179   case $ac_mode in
24180   :F)
24181   #
24182   # CONFIG_FILE
24183   #
24184
24185   case $INSTALL in
24186   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24187   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24188   esac
24189   ac_MKDIR_P=$MKDIR_P
24190   case $MKDIR_P in
24191   [\\/$]* | ?:[\\/]* ) ;;
24192   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24193   esac
24194 _ACEOF
24195
24196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24197 # If the template does not know about datarootdir, expand it.
24198 # FIXME: This hack should be removed a few years after 2.60.
24199 ac_datarootdir_hack=; ac_datarootdir_seen=
24200
24201 ac_sed_dataroot='
24202 /datarootdir/ {
24203   p
24204   q
24205 }
24206 /@datadir@/p
24207 /@docdir@/p
24208 /@infodir@/p
24209 /@localedir@/p
24210 /@mandir@/p
24211 '
24212 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24213 *datarootdir*) ac_datarootdir_seen=yes;;
24214 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24215   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24216 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24217 _ACEOF
24218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24219   ac_datarootdir_hack='
24220   s&@datadir@&$datadir&g
24221   s&@docdir@&$docdir&g
24222   s&@infodir@&$infodir&g
24223   s&@localedir@&$localedir&g
24224   s&@mandir@&$mandir&g
24225     s&\\\${datarootdir}&$datarootdir&g' ;;
24226 esac
24227 _ACEOF
24228
24229 # Neutralize VPATH when `$srcdir' = `.'.
24230 # Shell code in configure.ac might set extrasub.
24231 # FIXME: do we really want to maintain this feature?
24232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24233 ac_sed_extra="$ac_vpsub
24234 $extrasub
24235 _ACEOF
24236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24237 :t
24238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24239 s|@configure_input@|$ac_sed_conf_input|;t t
24240 s&@top_builddir@&$ac_top_builddir_sub&;t t
24241 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24242 s&@srcdir@&$ac_srcdir&;t t
24243 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24244 s&@top_srcdir@&$ac_top_srcdir&;t t
24245 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24246 s&@builddir@&$ac_builddir&;t t
24247 s&@abs_builddir@&$ac_abs_builddir&;t t
24248 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24249 s&@INSTALL@&$ac_INSTALL&;t t
24250 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24251 $ac_datarootdir_hack
24252 "
24253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24254   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24255 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24256    { (exit 1); exit 1; }; }
24257
24258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24259   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24260   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24261   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24262 which seems to be undefined.  Please make sure it is defined." >&5
24263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24264 which seems to be undefined.  Please make sure it is defined." >&2;}
24265
24266   rm -f "$tmp/stdin"
24267   case $ac_file in
24268   -) cat "$tmp/out" && rm -f "$tmp/out";;
24269   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24270   esac \
24271   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24272 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24273    { (exit 1); exit 1; }; }
24274  ;;
24275   :H)
24276   #
24277   # CONFIG_HEADER
24278   #
24279   if test x"$ac_file" != x-; then
24280     {
24281       $as_echo "/* $configure_input  */" \
24282       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24283     } >"$tmp/config.h" \
24284       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24285 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24286    { (exit 1); exit 1; }; }
24287     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24288       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24289 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24290     else
24291       rm -f "$ac_file"
24292       mv "$tmp/config.h" "$ac_file" \
24293         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24294 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24295    { (exit 1); exit 1; }; }
24296     fi
24297   else
24298     $as_echo "/* $configure_input  */" \
24299       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24300       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24301 $as_echo "$as_me: error: could not create -" >&2;}
24302    { (exit 1); exit 1; }; }
24303   fi
24304 # Compute "$ac_file"'s index in $config_headers.
24305 _am_arg="$ac_file"
24306 _am_stamp_count=1
24307 for _am_header in $config_headers :; do
24308   case $_am_header in
24309     $_am_arg | $_am_arg:* )
24310       break ;;
24311     * )
24312       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24313   esac
24314 done
24315 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24316 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24317          X"$_am_arg" : 'X\(//\)[^/]' \| \
24318          X"$_am_arg" : 'X\(//\)$' \| \
24319          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24320 $as_echo X"$_am_arg" |
24321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24322             s//\1/
24323             q
24324           }
24325           /^X\(\/\/\)[^/].*/{
24326             s//\1/
24327             q
24328           }
24329           /^X\(\/\/\)$/{
24330             s//\1/
24331             q
24332           }
24333           /^X\(\/\).*/{
24334             s//\1/
24335             q
24336           }
24337           s/.*/./; q'`/stamp-h$_am_stamp_count
24338  ;;
24339
24340   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24341 $as_echo "$as_me: executing $ac_file commands" >&6;}
24342  ;;
24343   esac
24344
24345
24346   case $ac_file$ac_mode in
24347     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24348   # Strip MF so we end up with the name of the file.
24349   mf=`echo "$mf" | sed -e 's/:.*$//'`
24350   # Check whether this is an Automake generated Makefile or not.
24351   # We used to match only the files named `Makefile.in', but
24352   # some people rename them; so instead we look at the file content.
24353   # Grep'ing the first line is not enough: some people post-process
24354   # each Makefile.in and add a new line on top of each file to say so.
24355   # Grep'ing the whole file is not good either: AIX grep has a line
24356   # limit of 2048, but all sed's we know have understand at least 4000.
24357   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24358     dirpart=`$as_dirname -- "$mf" ||
24359 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24360          X"$mf" : 'X\(//\)[^/]' \| \
24361          X"$mf" : 'X\(//\)$' \| \
24362          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24363 $as_echo X"$mf" |
24364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24365             s//\1/
24366             q
24367           }
24368           /^X\(\/\/\)[^/].*/{
24369             s//\1/
24370             q
24371           }
24372           /^X\(\/\/\)$/{
24373             s//\1/
24374             q
24375           }
24376           /^X\(\/\).*/{
24377             s//\1/
24378             q
24379           }
24380           s/.*/./; q'`
24381   else
24382     continue
24383   fi
24384   # Extract the definition of DEPDIR, am__include, and am__quote
24385   # from the Makefile without running `make'.
24386   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24387   test -z "$DEPDIR" && continue
24388   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24389   test -z "am__include" && continue
24390   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24391   # When using ansi2knr, U may be empty or an underscore; expand it
24392   U=`sed -n 's/^U = //p' < "$mf"`
24393   # Find all dependency output files, they are included files with
24394   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24395   # simplest approach to changing $(DEPDIR) to its actual value in the
24396   # expansion.
24397   for file in `sed -n "
24398     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24399        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24400     # Make sure the directory exists.
24401     test -f "$dirpart/$file" && continue
24402     fdir=`$as_dirname -- "$file" ||
24403 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24404          X"$file" : 'X\(//\)[^/]' \| \
24405          X"$file" : 'X\(//\)$' \| \
24406          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24407 $as_echo X"$file" |
24408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24409             s//\1/
24410             q
24411           }
24412           /^X\(\/\/\)[^/].*/{
24413             s//\1/
24414             q
24415           }
24416           /^X\(\/\/\)$/{
24417             s//\1/
24418             q
24419           }
24420           /^X\(\/\).*/{
24421             s//\1/
24422             q
24423           }
24424           s/.*/./; q'`
24425     { as_dir=$dirpart/$fdir
24426   case $as_dir in #(
24427   -*) as_dir=./$as_dir;;
24428   esac
24429   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24430     as_dirs=
24431     while :; do
24432       case $as_dir in #(
24433       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24434       *) as_qdir=$as_dir;;
24435       esac
24436       as_dirs="'$as_qdir' $as_dirs"
24437       as_dir=`$as_dirname -- "$as_dir" ||
24438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24439          X"$as_dir" : 'X\(//\)[^/]' \| \
24440          X"$as_dir" : 'X\(//\)$' \| \
24441          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24442 $as_echo X"$as_dir" |
24443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24444             s//\1/
24445             q
24446           }
24447           /^X\(\/\/\)[^/].*/{
24448             s//\1/
24449             q
24450           }
24451           /^X\(\/\/\)$/{
24452             s//\1/
24453             q
24454           }
24455           /^X\(\/\).*/{
24456             s//\1/
24457             q
24458           }
24459           s/.*/./; q'`
24460       test -d "$as_dir" && break
24461     done
24462     test -z "$as_dirs" || eval "mkdir $as_dirs"
24463   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24464 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24465    { (exit 1); exit 1; }; }; }
24466     # echo "creating $dirpart/$file"
24467     echo '# dummy' > "$dirpart/$file"
24468   done
24469 done
24470  ;;
24471
24472   esac
24473 done # for ac_tag
24474
24475
24476 { (exit 0); exit 0; }
24477 _ACEOF
24478 chmod +x $CONFIG_STATUS
24479 ac_clean_files=$ac_clean_files_save
24480
24481 test $ac_write_fail = 0 ||
24482   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24483 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24484    { (exit 1); exit 1; }; }
24485
24486
24487 # configure is writing to config.log, and then calls config.status.
24488 # config.status does its own redirection, appending to config.log.
24489 # Unfortunately, on DOS this fails, as config.log is still kept open
24490 # by configure, so config.status won't be able to write to it; its
24491 # output is simply discarded.  So we exec the FD to /dev/null,
24492 # effectively closing config.log, so it can be properly (re)opened and
24493 # appended to by config.status.  When coming back to configure, we
24494 # need to make the FD available again.
24495 if test "$no_create" != yes; then
24496   ac_cs_success=:
24497   ac_config_status_args=
24498   test "$silent" = yes &&
24499     ac_config_status_args="$ac_config_status_args --quiet"
24500   exec 5>/dev/null
24501   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24502   exec 5>>config.log
24503   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24504   # would make configure fail if this is the last instruction.
24505   $ac_cs_success || { (exit 1); exit 1; }
24506 fi
24507
24508 #
24509 # CONFIG_SUBDIRS section.
24510 #
24511 if test "$no_recursion" != yes; then
24512
24513   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24514   # so they do not pile up.
24515   ac_sub_configure_args=
24516   ac_prev=
24517   eval "set x $ac_configure_args"
24518   shift
24519   for ac_arg
24520   do
24521     if test -n "$ac_prev"; then
24522       ac_prev=
24523       continue
24524     fi
24525     case $ac_arg in
24526     -cache-file | --cache-file | --cache-fil | --cache-fi \
24527     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24528       ac_prev=cache_file ;;
24529     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24530     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24531     | --c=*)
24532       ;;
24533     --config-cache | -C)
24534       ;;
24535     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24536       ac_prev=srcdir ;;
24537     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24538       ;;
24539     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24540       ac_prev=prefix ;;
24541     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24542       ;;
24543     --disable-option-checking)
24544       ;;
24545     *)
24546       case $ac_arg in
24547       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24548       esac
24549       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24550     esac
24551   done
24552
24553   # Always prepend --prefix to ensure using the same prefix
24554   # in subdir configurations.
24555   ac_arg="--prefix=$prefix"
24556   case $ac_arg in
24557   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24558   esac
24559   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24560
24561   # Pass --silent
24562   if test "$silent" = yes; then
24563     ac_sub_configure_args="--silent $ac_sub_configure_args"
24564   fi
24565
24566   # Always prepend --disable-option-checking to silence warnings, since
24567   # different subdirs can have different --enable and --with options.
24568   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24569
24570   ac_popdir=`pwd`
24571   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24572
24573     # Do not complain, so a configure script can configure whichever
24574     # parts of a large source tree are present.
24575     test -d "$srcdir/$ac_dir" || continue
24576
24577     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24578     $as_echo "$as_me:$LINENO: $ac_msg" >&5
24579     $as_echo "$ac_msg" >&6
24580     { as_dir="$ac_dir"
24581   case $as_dir in #(
24582   -*) as_dir=./$as_dir;;
24583   esac
24584   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24585     as_dirs=
24586     while :; do
24587       case $as_dir in #(
24588       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24589       *) as_qdir=$as_dir;;
24590       esac
24591       as_dirs="'$as_qdir' $as_dirs"
24592       as_dir=`$as_dirname -- "$as_dir" ||
24593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24594          X"$as_dir" : 'X\(//\)[^/]' \| \
24595          X"$as_dir" : 'X\(//\)$' \| \
24596          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24597 $as_echo X"$as_dir" |
24598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24599             s//\1/
24600             q
24601           }
24602           /^X\(\/\/\)[^/].*/{
24603             s//\1/
24604             q
24605           }
24606           /^X\(\/\/\)$/{
24607             s//\1/
24608             q
24609           }
24610           /^X\(\/\).*/{
24611             s//\1/
24612             q
24613           }
24614           s/.*/./; q'`
24615       test -d "$as_dir" && break
24616     done
24617     test -z "$as_dirs" || eval "mkdir $as_dirs"
24618   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24619 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24620    { (exit 1); exit 1; }; }; }
24621     ac_builddir=.
24622
24623 case "$ac_dir" in
24624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24625 *)
24626   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24627   # A ".." for each directory in $ac_dir_suffix.
24628   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24629   case $ac_top_builddir_sub in
24630   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24631   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24632   esac ;;
24633 esac
24634 ac_abs_top_builddir=$ac_pwd
24635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24636 # for backward compatibility:
24637 ac_top_builddir=$ac_top_build_prefix
24638
24639 case $srcdir in
24640   .)  # We are building in place.
24641     ac_srcdir=.
24642     ac_top_srcdir=$ac_top_builddir_sub
24643     ac_abs_top_srcdir=$ac_pwd ;;
24644   [\\/]* | ?:[\\/]* )  # Absolute name.
24645     ac_srcdir=$srcdir$ac_dir_suffix;
24646     ac_top_srcdir=$srcdir
24647     ac_abs_top_srcdir=$srcdir ;;
24648   *) # Relative name.
24649     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24650     ac_top_srcdir=$ac_top_build_prefix$srcdir
24651     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24652 esac
24653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24654
24655
24656     cd "$ac_dir"
24657
24658     # Check for guested configure; otherwise get Cygnus style configure.
24659     if test -f "$ac_srcdir/configure.gnu"; then
24660       ac_sub_configure=$ac_srcdir/configure.gnu
24661     elif test -f "$ac_srcdir/configure"; then
24662       ac_sub_configure=$ac_srcdir/configure
24663     elif test -f "$ac_srcdir/configure.in"; then
24664       # This should be Cygnus configure.
24665       ac_sub_configure=$ac_aux_dir/configure
24666     else
24667       { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24669       ac_sub_configure=
24670     fi
24671
24672     # The recursion is here.
24673     if test -n "$ac_sub_configure"; then
24674       # Make the cache file name correct relative to the subdirectory.
24675       case $cache_file in
24676       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24677       *) # Relative name.
24678         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24679       esac
24680
24681       { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24682 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24683       # The eval makes quoting arguments work.
24684       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24685            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24686         { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24687 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24688    { (exit 1); exit 1; }; }
24689     fi
24690
24691     cd "$ac_popdir"
24692   done
24693 fi
24694 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24695   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24696 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24697 fi
24698