boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.43 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for gc 7.2alpha3.
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 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='gc'
731 PACKAGE_TARNAME='gc'
732 PACKAGE_VERSION='7.2alpha3'
733 PACKAGE_STRING='gc 7.2alpha3'
734 PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
735
736 ac_unique_file="gcj_mlc.c"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 MAINTAINER_MODE_TRUE
844 MAINTAINER_MODE_FALSE
845 MAINT
846 GC_VERSION
847 CC
848 CFLAGS
849 LDFLAGS
850 CPPFLAGS
851 ac_ct_CC
852 EXEEXT
853 OBJEXT
854 DEPDIR
855 am__include
856 am__quote
857 AMDEP_TRUE
858 AMDEP_FALSE
859 AMDEPBACKSLASH
860 CCDEPMODE
861 am__fastdepCC_TRUE
862 am__fastdepCC_FALSE
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CCAS
870 CCASFLAGS
871 AR
872 RANLIB
873 GC_CFLAGS
874 THREADDLLIBS
875 THREADS_TRUE
876 THREADS_FALSE
877 PTHREADS_TRUE
878 PTHREADS_FALSE
879 DARWIN_THREADS_TRUE
880 DARWIN_THREADS_FALSE
881 WIN32_THREADS_TRUE
882 WIN32_THREADS_FALSE
883 COMPILER_XLC_TRUE
884 COMPILER_XLC_FALSE
885 AVOID_CPP_LIB_TRUE
886 AVOID_CPP_LIB_FALSE
887 extra_ldflags_libgc
888 EXTRA_TEST_LIBS
889 target_all
890 CPLUSPLUS_TRUE
891 CPLUSPLUS_FALSE
892 INCLUDES
893 CXXINCLUDES
894 addobjs
895 addlibs
896 GREP
897 EGREP
898 LN_S
899 ECHO
900 CPP
901 CXXCPP
902 F77
903 FFLAGS
904 ac_ct_F77
905 LIBTOOL
906 ENABLE_GCJ_SUPPORT_TRUE
907 ENABLE_GCJ_SUPPORT_FALSE
908 UNWINDLIBS
909 USE_LIBDIR_TRUE
910 USE_LIBDIR_FALSE
911 subdirs
912 USE_INTERNAL_LIBATOMIC_OPS_TRUE
913 USE_INTERNAL_LIBATOMIC_OPS_FALSE
914 NEED_ATOMIC_OPS_ASM_TRUE
915 NEED_ATOMIC_OPS_ASM_FALSE
916 atomic_ops_libs
917 LIBOBJS
918 LTLIBOBJS'
919 ac_subst_files=''
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CCAS
932 CCASFLAGS
933 CPP
934 CXXCPP
935 F77
936 FFLAGS'
937 ac_subdirs_all='libatomic_ops'
938
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
989   # If the previous option needs an argument, assign it.
990   if test -n "$ac_prev"; then
991     eval $ac_prev=\$ac_option
992     ac_prev=
993     continue
994   fi
995
996   case $ac_option in
997   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998   *)    ac_optarg=yes ;;
999   esac
1000
1001   # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003   case $ac_dashdash$ac_option in
1004   --)
1005     ac_dashdash=yes ;;
1006
1007   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008     ac_prev=bindir ;;
1009   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010     bindir=$ac_optarg ;;
1011
1012   -build | --build | --buil | --bui | --bu)
1013     ac_prev=build_alias ;;
1014   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015     build_alias=$ac_optarg ;;
1016
1017   -cache-file | --cache-file | --cache-fil | --cache-fi \
1018   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019     ac_prev=cache_file ;;
1020   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022     cache_file=$ac_optarg ;;
1023
1024   --config-cache | -C)
1025     cache_file=config.cache ;;
1026
1027   -datadir | --datadir | --datadi | --datad)
1028     ac_prev=datadir ;;
1029   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030     datadir=$ac_optarg ;;
1031
1032   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033   | --dataroo | --dataro | --datar)
1034     ac_prev=datarootdir ;;
1035   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037     datarootdir=$ac_optarg ;;
1038
1039   -disable-* | --disable-*)
1040     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044    { (exit 1); exit 1; }; }
1045     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046     eval enable_$ac_feature=no ;;
1047
1048   -docdir | --docdir | --docdi | --doc | --do)
1049     ac_prev=docdir ;;
1050   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051     docdir=$ac_optarg ;;
1052
1053   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054     ac_prev=dvidir ;;
1055   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056     dvidir=$ac_optarg ;;
1057
1058   -enable-* | --enable-*)
1059     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063    { (exit 1); exit 1; }; }
1064     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1065     eval enable_$ac_feature=\$ac_optarg ;;
1066
1067   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069   | --exec | --exe | --ex)
1070     ac_prev=exec_prefix ;;
1071   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073   | --exec=* | --exe=* | --ex=*)
1074     exec_prefix=$ac_optarg ;;
1075
1076   -gas | --gas | --ga | --g)
1077     # Obsolete; use --with-gas.
1078     with_gas=yes ;;
1079
1080   -help | --help | --hel | --he | -h)
1081     ac_init_help=long ;;
1082   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083     ac_init_help=recursive ;;
1084   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085     ac_init_help=short ;;
1086
1087   -host | --host | --hos | --ho)
1088     ac_prev=host_alias ;;
1089   -host=* | --host=* | --hos=* | --ho=*)
1090     host_alias=$ac_optarg ;;
1091
1092   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093     ac_prev=htmldir ;;
1094   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095   | --ht=*)
1096     htmldir=$ac_optarg ;;
1097
1098   -includedir | --includedir | --includedi | --included | --include \
1099   | --includ | --inclu | --incl | --inc)
1100     ac_prev=includedir ;;
1101   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102   | --includ=* | --inclu=* | --incl=* | --inc=*)
1103     includedir=$ac_optarg ;;
1104
1105   -infodir | --infodir | --infodi | --infod | --info | --inf)
1106     ac_prev=infodir ;;
1107   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108     infodir=$ac_optarg ;;
1109
1110   -libdir | --libdir | --libdi | --libd)
1111     ac_prev=libdir ;;
1112   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113     libdir=$ac_optarg ;;
1114
1115   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116   | --libexe | --libex | --libe)
1117     ac_prev=libexecdir ;;
1118   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119   | --libexe=* | --libex=* | --libe=*)
1120     libexecdir=$ac_optarg ;;
1121
1122   -localedir | --localedir | --localedi | --localed | --locale)
1123     ac_prev=localedir ;;
1124   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125     localedir=$ac_optarg ;;
1126
1127   -localstatedir | --localstatedir | --localstatedi | --localstated \
1128   | --localstate | --localstat | --localsta | --localst | --locals)
1129     ac_prev=localstatedir ;;
1130   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132     localstatedir=$ac_optarg ;;
1133
1134   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135     ac_prev=mandir ;;
1136   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137     mandir=$ac_optarg ;;
1138
1139   -nfp | --nfp | --nf)
1140     # Obsolete; use --without-fp.
1141     with_fp=no ;;
1142
1143   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144   | --no-cr | --no-c | -n)
1145     no_create=yes ;;
1146
1147   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149     no_recursion=yes ;;
1150
1151   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153   | --oldin | --oldi | --old | --ol | --o)
1154     ac_prev=oldincludedir ;;
1155   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158     oldincludedir=$ac_optarg ;;
1159
1160   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161     ac_prev=prefix ;;
1162   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163     prefix=$ac_optarg ;;
1164
1165   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166   | --program-pre | --program-pr | --program-p)
1167     ac_prev=program_prefix ;;
1168   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170     program_prefix=$ac_optarg ;;
1171
1172   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173   | --program-suf | --program-su | --program-s)
1174     ac_prev=program_suffix ;;
1175   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177     program_suffix=$ac_optarg ;;
1178
1179   -program-transform-name | --program-transform-name \
1180   | --program-transform-nam | --program-transform-na \
1181   | --program-transform-n | --program-transform- \
1182   | --program-transform | --program-transfor \
1183   | --program-transfo | --program-transf \
1184   | --program-trans | --program-tran \
1185   | --progr-tra | --program-tr | --program-t)
1186     ac_prev=program_transform_name ;;
1187   -program-transform-name=* | --program-transform-name=* \
1188   | --program-transform-nam=* | --program-transform-na=* \
1189   | --program-transform-n=* | --program-transform-=* \
1190   | --program-transform=* | --program-transfor=* \
1191   | --program-transfo=* | --program-transf=* \
1192   | --program-trans=* | --program-tran=* \
1193   | --progr-tra=* | --program-tr=* | --program-t=*)
1194     program_transform_name=$ac_optarg ;;
1195
1196   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197     ac_prev=pdfdir ;;
1198   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199     pdfdir=$ac_optarg ;;
1200
1201   -psdir | --psdir | --psdi | --psd | --ps)
1202     ac_prev=psdir ;;
1203   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204     psdir=$ac_optarg ;;
1205
1206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207   | -silent | --silent | --silen | --sile | --sil)
1208     silent=yes ;;
1209
1210   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211     ac_prev=sbindir ;;
1212   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213   | --sbi=* | --sb=*)
1214     sbindir=$ac_optarg ;;
1215
1216   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218   | --sharedst | --shareds | --shared | --share | --shar \
1219   | --sha | --sh)
1220     ac_prev=sharedstatedir ;;
1221   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224   | --sha=* | --sh=*)
1225     sharedstatedir=$ac_optarg ;;
1226
1227   -site | --site | --sit)
1228     ac_prev=site ;;
1229   -site=* | --site=* | --sit=*)
1230     site=$ac_optarg ;;
1231
1232   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233     ac_prev=srcdir ;;
1234   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235     srcdir=$ac_optarg ;;
1236
1237   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238   | --syscon | --sysco | --sysc | --sys | --sy)
1239     ac_prev=sysconfdir ;;
1240   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242     sysconfdir=$ac_optarg ;;
1243
1244   -target | --target | --targe | --targ | --tar | --ta | --t)
1245     ac_prev=target_alias ;;
1246   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247     target_alias=$ac_optarg ;;
1248
1249   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250     verbose=yes ;;
1251
1252   -version | --version | --versio | --versi | --vers | -V)
1253     ac_init_version=: ;;
1254
1255   -with-* | --with-*)
1256     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259       { echo "$as_me: error: invalid package name: $ac_package" >&2
1260    { (exit 1); exit 1; }; }
1261     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262     eval with_$ac_package=\$ac_optarg ;;
1263
1264   -without-* | --without-*)
1265     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       { echo "$as_me: error: invalid package name: $ac_package" >&2
1269    { (exit 1); exit 1; }; }
1270     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271     eval with_$ac_package=no ;;
1272
1273   --x)
1274     # Obsolete; use --with-x.
1275     with_x=yes ;;
1276
1277   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278   | --x-incl | --x-inc | --x-in | --x-i)
1279     ac_prev=x_includes ;;
1280   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282     x_includes=$ac_optarg ;;
1283
1284   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286     ac_prev=x_libraries ;;
1287   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289     x_libraries=$ac_optarg ;;
1290
1291   -*) { echo "$as_me: error: unrecognized option: $ac_option
1292 Try \`$0 --help' for more information." >&2
1293    { (exit 1); exit 1; }; }
1294     ;;
1295
1296   *=*)
1297     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1300       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301    { (exit 1); exit 1; }; }
1302     eval $ac_envvar=\$ac_optarg
1303     export $ac_envvar ;;
1304
1305   *)
1306     # FIXME: should be removed in autoconf 3.0.
1307     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1311     ;;
1312
1313   esac
1314 done
1315
1316 if test -n "$ac_prev"; then
1317   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318   { echo "$as_me: error: missing argument to $ac_option" >&2
1319    { (exit 1); exit 1; }; }
1320 fi
1321
1322 # Be sure to have absolute directory names.
1323 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324                 datadir sysconfdir sharedstatedir localstatedir includedir \
1325                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326                 libdir localedir mandir
1327 do
1328   eval ac_val=\$$ac_var
1329   case $ac_val in
1330     [\\/$]* | ?:[\\/]* )  continue;;
1331     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332   esac
1333   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1334    { (exit 1); exit 1; }; }
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346   if test "x$build_alias" = x; then
1347     cross_compiling=maybe
1348     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349     If a cross compiler is detected then cross compile mode will be used." >&2
1350   elif test "x$build_alias" != "x$host_alias"; then
1351     cross_compiling=yes
1352   fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364   { echo "$as_me: error: Working directory cannot be determined" >&2
1365    { (exit 1); exit 1; }; }
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367   { echo "$as_me: error: pwd does not report name of working directory" >&2
1368    { (exit 1); exit 1; }; }
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373   ac_srcdir_defaulted=yes
1374   # Try the directory containing this script, then the parent directory.
1375   ac_confdir=`$as_dirname -- "$0" ||
1376 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377          X"$0" : 'X\(//\)[^/]' \| \
1378          X"$0" : 'X\(//\)$' \| \
1379          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1380 echo X"$0" |
1381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\/\)[^/].*/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)$/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\).*/{
1394             s//\1/
1395             q
1396           }
1397           s/.*/./; q'`
1398   srcdir=$ac_confdir
1399   if test ! -r "$srcdir/$ac_unique_file"; then
1400     srcdir=..
1401   fi
1402 else
1403   ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1408    { (exit 1); exit 1; }; }
1409 fi
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1413    { (exit 1); exit 1; }; }
1414         pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417   srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427   eval ac_env_${ac_var}_value=\$${ac_var}
1428   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436   # Omit some internal or obsolete options to make the list less imposing.
1437   # This message is too long to be a string in the A/UX 3.1 sh.
1438   cat <<_ACEOF
1439 \`configure' configures gc 7.2alpha3 to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE.  See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449   -h, --help              display this help and exit
1450       --help=short        display options specific to this package
1451       --help=recursive    display the short help of all the included packages
1452   -V, --version           display version information and exit
1453   -q, --quiet, --silent   do not print \`checking...' messages
1454       --cache-file=FILE   cache test results in FILE [disabled]
1455   -C, --config-cache      alias for \`--cache-file=config.cache'
1456   -n, --no-create         do not create output files
1457       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1458
1459 Installation directories:
1460   --prefix=PREFIX         install architecture-independent files in PREFIX
1461                           [$ac_default_prefix]
1462   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1463                           [PREFIX]
1464
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473   --bindir=DIR           user executables [EPREFIX/bin]
1474   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1475   --libexecdir=DIR       program executables [EPREFIX/libexec]
1476   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1477   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1478   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1479   --libdir=DIR           object code libraries [EPREFIX/lib]
1480   --includedir=DIR       C header files [PREFIX/include]
1481   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1482   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1483   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1484   --infodir=DIR          info documentation [DATAROOTDIR/info]
1485   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1486   --mandir=DIR           man documentation [DATAROOTDIR/man]
1487   --docdir=DIR           documentation root [DATAROOTDIR/doc/gc]
1488   --htmldir=DIR          html documentation [DOCDIR]
1489   --dvidir=DIR           dvi documentation [DOCDIR]
1490   --pdfdir=DIR           pdf documentation [DOCDIR]
1491   --psdir=DIR            ps documentation [DOCDIR]
1492 _ACEOF
1493
1494   cat <<\_ACEOF
1495
1496 Program names:
1497   --program-prefix=PREFIX            prepend PREFIX to installed program names
1498   --program-suffix=SUFFIX            append SUFFIX to installed program names
1499   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1500
1501 System types:
1502   --build=BUILD     configure for building on BUILD [guessed]
1503   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1504   --target=TARGET   configure for building compilers for TARGET [HOST]
1505 _ACEOF
1506 fi
1507
1508 if test -n "$ac_init_help"; then
1509   case $ac_init_help in
1510      short | recursive ) echo "Configuration of gc 7.2alpha3:";;
1511    esac
1512   cat <<\_ACEOF
1513
1514 Optional Features:
1515   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1516   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1517   --enable-maintainer-mode  enable make rules and dependencies not useful
1518                           (and sometimes confusing) to the casual installer
1519   --disable-dependency-tracking  speeds up one-time build
1520   --enable-dependency-tracking   do not reject slow dependency extractors
1521   --enable-threads=TYPE   choose threading package
1522   --enable-parallel-mark  parallelize marking and free list construction
1523   --enable-cplusplus      install C++ support
1524   --enable-shared[=PKGS]  build shared libraries [default=yes]
1525   --enable-static[=PKGS]  build static libraries [default=yes]
1526   --enable-fast-install[=PKGS]
1527                           optimize for fast installation [default=yes]
1528   --disable-libtool-lock  avoid locking (might break parallel builds)
1529   --disable-gcj-support   Disable support for gcj.
1530   --enable-gc-debug       include full support for pointer backtracing etc.
1531   --disable-java-finalization
1532                           Disable support for java finalization.
1533   --disable-atomic-uncollectible
1534                           Disable support for atomic uncollectible allocation.
1535   --enable-redirect-malloc
1536                           Redirect malloc and friends to GC routines
1537   --enable-large-config   Optimize for large (> 100 MB) heap or root set
1538   --enable-gc-assertions  collector-internal assertion checking
1539   --enable-munmap=N       return page to the os if empty for N collections
1540
1541 Optional Packages:
1542   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1543   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1544   --with-ecos             enable runtime eCos target support
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546   --with-pic              try to use only PIC/non-PIC objects [default=use
1547                           both]
1548   --with-tags[=TAGS]      include additional configurations [automatic]
1549   --with-target-subdir=SUBDIR
1550                           configuring with a cross compiler
1551   --with-cross-host=HOST  configuring with a cross compiler
1552
1553 Some influential environment variables:
1554   CC          C compiler command
1555   CFLAGS      C compiler flags
1556   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557               nonstandard directory <lib dir>
1558   LIBS        libraries to pass to the linker, e.g. -l<library>
1559   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560               you have headers in a nonstandard directory <include dir>
1561   CXX         C++ compiler command
1562   CXXFLAGS    C++ compiler flags
1563   CCAS        assembler compiler command (defaults to CC)
1564   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1565   CPP         C preprocessor
1566   CXXCPP      C++ preprocessor
1567   F77         Fortran 77 compiler command
1568   FFLAGS      Fortran 77 compiler flags
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to <Hans.Boehm@hp.com>.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" || continue
1582     ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1588   # A ".." for each directory in $ac_dir_suffix.
1589   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590   case $ac_top_builddir_sub in
1591   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593   esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601   .)  # We are building in place.
1602     ac_srcdir=.
1603     ac_top_srcdir=$ac_top_builddir_sub
1604     ac_abs_top_srcdir=$ac_pwd ;;
1605   [\\/]* | ?:[\\/]* )  # Absolute name.
1606     ac_srcdir=$srcdir$ac_dir_suffix;
1607     ac_top_srcdir=$srcdir
1608     ac_abs_top_srcdir=$srcdir ;;
1609   *) # Relative name.
1610     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611     ac_top_srcdir=$ac_top_build_prefix$srcdir
1612     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616     cd "$ac_dir" || { ac_status=$?; continue; }
1617     # Check for guested configure.
1618     if test -f "$ac_srcdir/configure.gnu"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621     elif test -f "$ac_srcdir/configure"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure" --help=recursive
1624     else
1625       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626     fi || ac_status=$?
1627     cd "$ac_pwd" || { ac_status=$?; break; }
1628   done
1629 fi
1630
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633   cat <<\_ACEOF
1634 gc configure 7.2alpha3
1635 generated by GNU Autoconf 2.61
1636
1637 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1638 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642   exit
1643 fi
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1647
1648 It was created by gc $as_me 7.2alpha3, which was
1649 generated by GNU Autoconf 2.61.  Invocation command line was
1650
1651   $ $0 $@
1652
1653 _ACEOF
1654 exec 5>>config.log
1655 {
1656 cat <<_ASUNAME
1657 ## --------- ##
1658 ## Platform. ##
1659 ## --------- ##
1660
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1666
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1669
1670 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1671 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1674 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1675 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1676 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1677
1678 _ASUNAME
1679
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1682 do
1683   IFS=$as_save_IFS
1684   test -z "$as_dir" && as_dir=.
1685   echo "PATH: $as_dir"
1686 done
1687 IFS=$as_save_IFS
1688
1689 } >&5
1690
1691 cat >&5 <<_ACEOF
1692
1693
1694 ## ----------- ##
1695 ## Core tests. ##
1696 ## ----------- ##
1697
1698 _ACEOF
1699
1700
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1706 ac_configure_args=
1707 ac_configure_args0=
1708 ac_configure_args1=
1709 ac_must_keep_next=false
1710 for ac_pass in 1 2
1711 do
1712   for ac_arg
1713   do
1714     case $ac_arg in
1715     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717     | -silent | --silent | --silen | --sile | --sil)
1718       continue ;;
1719     *\'*)
1720       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721     esac
1722     case $ac_pass in
1723     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724     2)
1725       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726       if test $ac_must_keep_next = true; then
1727         ac_must_keep_next=false # Got value, back to normal.
1728       else
1729         case $ac_arg in
1730           *=* | --config-cache | -C | -disable-* | --disable-* \
1731           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733           | -with-* | --with-* | -without-* | --without-* | --x)
1734             case "$ac_configure_args0 " in
1735               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736             esac
1737             ;;
1738           -* ) ac_must_keep_next=true ;;
1739         esac
1740       fi
1741       ac_configure_args="$ac_configure_args '$ac_arg'"
1742       ;;
1743     esac
1744   done
1745 done
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log.  We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755   # Save into config.log some information that might help in debugging.
1756   {
1757     echo
1758
1759     cat <<\_ASBOX
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1763 _ASBOX
1764     echo
1765     # The following way of writing the cache mishandles newlines in values,
1766 (
1767   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768     eval ac_val=\$$ac_var
1769     case $ac_val in #(
1770     *${as_nl}*)
1771       case $ac_var in #(
1772       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774       esac
1775       case $ac_var in #(
1776       _ | IFS | as_nl) ;; #(
1777       *) $as_unset $ac_var ;;
1778       esac ;;
1779     esac
1780   done
1781   (set) 2>&1 |
1782     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783     *${as_nl}ac_space=\ *)
1784       sed -n \
1785         "s/'\''/'\''\\\\'\'''\''/g;
1786           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787       ;; #(
1788     *)
1789       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1790       ;;
1791     esac |
1792     sort
1793 )
1794     echo
1795
1796     cat <<\_ASBOX
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1800 _ASBOX
1801     echo
1802     for ac_var in $ac_subst_vars
1803     do
1804       eval ac_val=\$$ac_var
1805       case $ac_val in
1806       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807       esac
1808       echo "$ac_var='\''$ac_val'\''"
1809     done | sort
1810     echo
1811
1812     if test -n "$ac_subst_files"; then
1813       cat <<\_ASBOX
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1817 _ASBOX
1818       echo
1819       for ac_var in $ac_subst_files
1820       do
1821         eval ac_val=\$$ac_var
1822         case $ac_val in
1823         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824         esac
1825         echo "$ac_var='\''$ac_val'\''"
1826       done | sort
1827       echo
1828     fi
1829
1830     if test -s confdefs.h; then
1831       cat <<\_ASBOX
1832 ## ----------- ##
1833 ## confdefs.h. ##
1834 ## ----------- ##
1835 _ASBOX
1836       echo
1837       cat confdefs.h
1838       echo
1839     fi
1840     test "$ac_signal" != 0 &&
1841       echo "$as_me: caught signal $ac_signal"
1842     echo "$as_me: exit $exit_status"
1843   } >&5
1844   rm -f core *.core core.conftest.* &&
1845     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846     exit $exit_status
1847 ' 0
1848 for ac_signal in 1 2 13 15; do
1849   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 done
1851 ac_signal=0
1852
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1855
1856 # Predefined preprocessor variables.
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 _ACEOF
1881
1882
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886   set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 else
1890   set x "$ac_default_prefix/share/config.site" \
1891         "$ac_default_prefix/etc/config.site"
1892 fi
1893 shift
1894 for ac_site_file
1895 do
1896   if test -r "$ac_site_file"; then
1897     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899     sed 's/^/| /' "$ac_site_file" >&5
1900     . "$ac_site_file"
1901   fi
1902 done
1903
1904 if test -r "$cache_file"; then
1905   # Some versions of bash will fail to source /dev/null (special
1906   # files actually), so we avoid doing that.
1907   if test -f "$cache_file"; then
1908     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1910     case $cache_file in
1911       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912       *)                      . "./$cache_file";;
1913     esac
1914   fi
1915 else
1916   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1918   >$cache_file
1919 fi
1920
1921 # Check that the precious variables saved in the cache have kept the same
1922 # value.
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926   eval ac_new_set=\$ac_env_${ac_var}_set
1927   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928   eval ac_new_val=\$ac_env_${ac_var}_value
1929   case $ac_old_set,$ac_new_set in
1930     set,)
1931       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933       ac_cache_corrupted=: ;;
1934     ,set)
1935       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937       ac_cache_corrupted=: ;;
1938     ,);;
1939     *)
1940       if test "x$ac_old_val" != "x$ac_new_val"; then
1941         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1944 echo "$as_me:   former value:  $ac_old_val" >&2;}
1945         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1946 echo "$as_me:   current value: $ac_new_val" >&2;}
1947         ac_cache_corrupted=:
1948       fi;;
1949   esac
1950   # Pass precious variables to config.status.
1951   if test "$ac_new_set" = set; then
1952     case $ac_new_val in
1953     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954     *) ac_arg=$ac_var=$ac_new_val ;;
1955     esac
1956     case " $ac_configure_args " in
1957       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1958       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959     esac
1960   fi
1961 done
1962 if $ac_cache_corrupted; then
1963   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999
2000
2001     ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
2002
2003 ac_aux_dir=
2004 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005   if test -f "$ac_dir/install-sh"; then
2006     ac_aux_dir=$ac_dir
2007     ac_install_sh="$ac_aux_dir/install-sh -c"
2008     break
2009   elif test -f "$ac_dir/install.sh"; then
2010     ac_aux_dir=$ac_dir
2011     ac_install_sh="$ac_aux_dir/install.sh -c"
2012     break
2013   elif test -f "$ac_dir/shtool"; then
2014     ac_aux_dir=$ac_dir
2015     ac_install_sh="$ac_aux_dir/shtool install -c"
2016     break
2017   fi
2018 done
2019 if test -z "$ac_aux_dir"; then
2020   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022    { (exit 1); exit 1; }; }
2023 fi
2024
2025 # These three variables are undocumented and unsupported,
2026 # and are intended to be withdrawn in a future Autoconf release.
2027 # They can cause serious problems if a builder's source tree is in a directory
2028 # whose full name contains unusual characters.
2029 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2030 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2031 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2032
2033
2034 # Make sure we can run config.sub.
2035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2036   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040 { echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_build+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   ac_build_alias=$build_alias
2046 test "x$ac_build_alias" = x &&
2047   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2048 test "x$ac_build_alias" = x &&
2049   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051    { (exit 1); exit 1; }; }
2052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2053   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2055    { (exit 1); exit 1; }; }
2056
2057 fi
2058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6; }
2060 case $ac_cv_build in
2061 *-*-*) ;;
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2063 echo "$as_me: error: invalid value of canonical build" >&2;}
2064    { (exit 1); exit 1; }; };;
2065 esac
2066 build=$ac_cv_build
2067 ac_save_IFS=$IFS; IFS='-'
2068 set x $ac_cv_build
2069 shift
2070 build_cpu=$1
2071 build_vendor=$2
2072 shift; shift
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2075 build_os=$*
2076 IFS=$ac_save_IFS
2077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2078
2079
2080 { echo "$as_me:$LINENO: checking host system type" >&5
2081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_host+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test "x$host_alias" = x; then
2086   ac_cv_host=$ac_cv_build
2087 else
2088   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2089     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2091    { (exit 1); exit 1; }; }
2092 fi
2093
2094 fi
2095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096 echo "${ECHO_T}$ac_cv_host" >&6; }
2097 case $ac_cv_host in
2098 *-*-*) ;;
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2100 echo "$as_me: error: invalid value of canonical host" >&2;}
2101    { (exit 1); exit 1; }; };;
2102 esac
2103 host=$ac_cv_host
2104 ac_save_IFS=$IFS; IFS='-'
2105 set x $ac_cv_host
2106 shift
2107 host_cpu=$1
2108 host_vendor=$2
2109 shift; shift
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2112 host_os=$*
2113 IFS=$ac_save_IFS
2114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2115
2116
2117 { echo "$as_me:$LINENO: checking target system type" >&5
2118 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2119 if test "${ac_cv_target+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   if test "x$target_alias" = x; then
2123   ac_cv_target=$ac_cv_host
2124 else
2125   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2126     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2128    { (exit 1); exit 1; }; }
2129 fi
2130
2131 fi
2132 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2133 echo "${ECHO_T}$ac_cv_target" >&6; }
2134 case $ac_cv_target in
2135 *-*-*) ;;
2136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2137 echo "$as_me: error: invalid value of canonical target" >&2;}
2138    { (exit 1); exit 1; }; };;
2139 esac
2140 target=$ac_cv_target
2141 ac_save_IFS=$IFS; IFS='-'
2142 set x $ac_cv_target
2143 shift
2144 target_cpu=$1
2145 target_vendor=$2
2146 shift; shift
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2149 target_os=$*
2150 IFS=$ac_save_IFS
2151 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2152
2153
2154 # The aliases save the names the user supplied, while $host etc.
2155 # will get canonicalized.
2156 test -n "$target_alias" &&
2157   test "$program_prefix$program_suffix$program_transform_name" = \
2158     NONENONEs,x,x, &&
2159   program_prefix=${target_alias}-
2160
2161
2162
2163   { echo "$as_me:$LINENO: checking GC version numbers" >&5
2164 echo $ECHO_N "checking GC version numbers... $ECHO_C" >&6; }
2165   GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
2166   GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
2167   GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
2168
2169   case "$GC_ALPHA_VERSION" in
2170     alpha*)
2171       GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
2172       | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
2173     *)  GC_ALPHA_MAJOR='' ;;
2174   esac
2175
2176   if test :$GC_VERSION_MAJOR: = :: \
2177      -o   :$GC_VERSION_MINOR: = :: ;
2178   then
2179     { echo "$as_me:$LINENO: result: invalid" >&5
2180 echo "${ECHO_T}invalid" >&6; }
2181     { { echo "$as_me:$LINENO: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&5
2182 echo "$as_me: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&2;}
2183    { (exit 1); exit 1; }; }
2184   fi
2185
2186   cat >>confdefs.h <<_ACEOF
2187 #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
2188 _ACEOF
2189
2190   cat >>confdefs.h <<_ACEOF
2191 #define GC_VERSION_MINOR $GC_VERSION_MINOR
2192 _ACEOF
2193
2194   if test :$GC_ALPHA_VERSION: != :: ; then
2195     cat >>confdefs.h <<_ACEOF
2196 #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
2197 _ACEOF
2198
2199   fi
2200   { echo "$as_me:$LINENO: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2201 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
2202 echo "${ECHO_T}major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2203 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; }
2204
2205 am__api_version="1.9"
2206 # Find a good install program.  We prefer a C program (faster),
2207 # so one script is as good as another.  But avoid the broken or
2208 # incompatible versions:
2209 # SysV /etc/install, /usr/sbin/install
2210 # SunOS /usr/etc/install
2211 # IRIX /sbin/install
2212 # AIX /bin/install
2213 # AmigaOS /C/install, which installs bootblocks on floppy discs
2214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2217 # OS/2's system install, which has a completely different semantic
2218 # ./install, which can be erroneously created by make from ./install.sh.
2219 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2221 if test -z "$INSTALL"; then
2222 if test "${ac_cv_path_install+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228   IFS=$as_save_IFS
2229   test -z "$as_dir" && as_dir=.
2230   # Account for people who put trailing slashes in PATH elements.
2231 case $as_dir/ in
2232   ./ | .// | /cC/* | \
2233   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2234   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2235   /usr/ucb/* ) ;;
2236   *)
2237     # OSF1 and SCO ODT 3.0 have their own names for install.
2238     # Don't use installbsd from OSF since it installs stuff as root
2239     # by default.
2240     for ac_prog in ginstall scoinst install; do
2241       for ac_exec_ext in '' $ac_executable_extensions; do
2242         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2243           if test $ac_prog = install &&
2244             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2245             # AIX install.  It has an incompatible calling convention.
2246             :
2247           elif test $ac_prog = install &&
2248             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249             # program-specific install script used by HP pwplus--don't use.
2250             :
2251           else
2252             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2253             break 3
2254           fi
2255         fi
2256       done
2257     done
2258     ;;
2259 esac
2260 done
2261 IFS=$as_save_IFS
2262
2263
2264 fi
2265   if test "${ac_cv_path_install+set}" = set; then
2266     INSTALL=$ac_cv_path_install
2267   else
2268     # As a last resort, use the slow shell script.  Don't cache a
2269     # value for INSTALL within a source directory, because that will
2270     # break other packages using the cache if that directory is
2271     # removed, or if the value is a relative name.
2272     INSTALL=$ac_install_sh
2273   fi
2274 fi
2275 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2276 echo "${ECHO_T}$INSTALL" >&6; }
2277
2278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2279 # It thinks the first close brace ends the variable substitution.
2280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2281
2282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2283
2284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2285
2286 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2287 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2288 # Just in case
2289 sleep 1
2290 echo timestamp > conftest.file
2291 # Do `set' in a subshell so we don't clobber the current shell's
2292 # arguments.  Must try -L first in case configure is actually a
2293 # symlink; some systems play weird games with the mod time of symlinks
2294 # (eg FreeBSD returns the mod time of the symlink's containing
2295 # directory).
2296 if (
2297    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2298    if test "$*" = "X"; then
2299       # -L didn't work.
2300       set X `ls -t $srcdir/configure conftest.file`
2301    fi
2302    rm -f conftest.file
2303    if test "$*" != "X $srcdir/configure conftest.file" \
2304       && test "$*" != "X conftest.file $srcdir/configure"; then
2305
2306       # If neither matched, then we have a broken ls.  This can happen
2307       # if, for instance, CONFIG_SHELL is bash and it inherits a
2308       # broken ls alias from the environment.  This has actually
2309       # happened.  Such a system could not be considered "sane".
2310       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2311 alias in your environment" >&5
2312 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2313 alias in your environment" >&2;}
2314    { (exit 1); exit 1; }; }
2315    fi
2316
2317    test "$2" = conftest.file
2318    )
2319 then
2320    # Ok.
2321    :
2322 else
2323    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2324 Check your system clock" >&5
2325 echo "$as_me: error: newly created file is older than distributed files!
2326 Check your system clock" >&2;}
2327    { (exit 1); exit 1; }; }
2328 fi
2329 { echo "$as_me:$LINENO: result: yes" >&5
2330 echo "${ECHO_T}yes" >&6; }
2331 test "$program_prefix" != NONE &&
2332   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333 # Use a double $ so make ignores it.
2334 test "$program_suffix" != NONE &&
2335   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 # Double any \ or $.  echo might interpret backslashes.
2337 # By default was `s,x,x', remove it if useless.
2338 cat <<\_ACEOF >conftest.sed
2339 s/[\\$]/&&/g;s/;s,x,x,$//
2340 _ACEOF
2341 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2342 rm -f conftest.sed
2343
2344 # expand $ac_aux_dir to an absolute path
2345 am_aux_dir=`cd $ac_aux_dir && pwd`
2346
2347 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2348 # Use eval to expand $SHELL
2349 if eval "$MISSING --run true"; then
2350   am_missing_run="$MISSING --run "
2351 else
2352   am_missing_run=
2353   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2354 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2355 fi
2356
2357 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2358   # We used to keeping the `.' as first argument, in order to
2359   # allow $(mkdir_p) to be used without argument.  As in
2360   #   $(mkdir_p) $(somedir)
2361   # where $(somedir) is conditionally defined.  However this is wrong
2362   # for two reasons:
2363   #  1. if the package is installed by a user who cannot write `.'
2364   #     make install will fail,
2365   #  2. the above comment should most certainly read
2366   #     $(mkdir_p) $(DESTDIR)$(somedir)
2367   #     so it does not work when $(somedir) is undefined and
2368   #     $(DESTDIR) is not.
2369   #  To support the latter case, we have to write
2370   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2371   #  so the `.' trick is pointless.
2372   mkdir_p='mkdir -p --'
2373 else
2374   # On NextStep and OpenStep, the `mkdir' command does not
2375   # recognize any option.  It will interpret all options as
2376   # directories to create, and then abort because `.' already
2377   # exists.
2378   for d in ./-p ./--version;
2379   do
2380     test -d $d && rmdir $d
2381   done
2382   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2383   if test -f "$ac_aux_dir/mkinstalldirs"; then
2384     mkdir_p='$(mkinstalldirs)'
2385   else
2386     mkdir_p='$(install_sh) -d'
2387   fi
2388 fi
2389
2390 for ac_prog in gawk mawk nawk awk
2391 do
2392   # Extract the first word of "$ac_prog", so it can be a program name with args.
2393 set dummy $ac_prog; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_AWK+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   if test -n "$AWK"; then
2400   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405   IFS=$as_save_IFS
2406   test -z "$as_dir" && as_dir=.
2407   for ac_exec_ext in '' $ac_executable_extensions; do
2408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409     ac_cv_prog_AWK="$ac_prog"
2410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411     break 2
2412   fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 AWK=$ac_cv_prog_AWK
2420 if test -n "$AWK"; then
2421   { echo "$as_me:$LINENO: result: $AWK" >&5
2422 echo "${ECHO_T}$AWK" >&6; }
2423 else
2424   { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2426 fi
2427
2428
2429   test -n "$AWK" && break
2430 done
2431
2432 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2433 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2434 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2435 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   cat >conftest.make <<\_ACEOF
2439 SHELL = /bin/sh
2440 all:
2441         @echo '@@@%%%=$(MAKE)=@@@%%%'
2442 _ACEOF
2443 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2444 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2445   *@@@%%%=?*=@@@%%%*)
2446     eval ac_cv_prog_make_${ac_make}_set=yes;;
2447   *)
2448     eval ac_cv_prog_make_${ac_make}_set=no;;
2449 esac
2450 rm -f conftest.make
2451 fi
2452 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2453   { echo "$as_me:$LINENO: result: yes" >&5
2454 echo "${ECHO_T}yes" >&6; }
2455   SET_MAKE=
2456 else
2457   { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2459   SET_MAKE="MAKE=${MAKE-make}"
2460 fi
2461
2462 rm -rf .tst 2>/dev/null
2463 mkdir .tst 2>/dev/null
2464 if test -d .tst; then
2465   am__leading_dot=.
2466 else
2467   am__leading_dot=_
2468 fi
2469 rmdir .tst 2>/dev/null
2470
2471 # test to see if srcdir already configured
2472 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2473    test -f $srcdir/config.status; then
2474   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2475 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2476    { (exit 1); exit 1; }; }
2477 fi
2478
2479 # test whether we have cygpath
2480 if test -z "$CYGPATH_W"; then
2481   if (cygpath --version) >/dev/null 2>/dev/null; then
2482     CYGPATH_W='cygpath -w'
2483   else
2484     CYGPATH_W=echo
2485   fi
2486 fi
2487
2488
2489 # Define the identity of the package.
2490  PACKAGE='gc'
2491  VERSION='7.2alpha3'
2492
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE "$PACKAGE"
2496 _ACEOF
2497
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define VERSION "$VERSION"
2501 _ACEOF
2502
2503 # Some tools Automake needs.
2504
2505 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2506
2507
2508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2509
2510
2511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2512
2513
2514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2515
2516
2517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2518
2519 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2520
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'.  However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526   if test -n "$ac_tool_prefix"; then
2527   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_STRIP+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   if test -n "$STRIP"; then
2535   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540   IFS=$as_save_IFS
2541   test -z "$as_dir" && as_dir=.
2542   for ac_exec_ext in '' $ac_executable_extensions; do
2543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546     break 2
2547   fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556   { echo "$as_me:$LINENO: result: $STRIP" >&5
2557 echo "${ECHO_T}$STRIP" >&6; }
2558 else
2559   { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2561 fi
2562
2563
2564 fi
2565 if test -z "$ac_cv_prog_STRIP"; then
2566   ac_ct_STRIP=$STRIP
2567   # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   if test -n "$ac_ct_STRIP"; then
2575   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_exec_ext in '' $ac_executable_extensions; do
2583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584     ac_cv_prog_ac_ct_STRIP="strip"
2585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2597 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2598 else
2599   { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2601 fi
2602
2603   if test "x$ac_ct_STRIP" = x; then
2604     STRIP=":"
2605   else
2606     case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet.  If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet.  If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616     STRIP=$ac_ct_STRIP
2617   fi
2618 else
2619   STRIP="$ac_cv_prog_STRIP"
2620 fi
2621
2622 fi
2623 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2624
2625 # We need awk for the "check" target.  The system "awk" is bad on
2626 # some platforms.
2627 # Always define AMTAR for backward compatibility.
2628
2629 AMTAR=${AMTAR-"${am_missing_run}tar"}
2630
2631 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2632
2633
2634
2635
2636
2637 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2638 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2639     # Check whether --enable-maintainer-mode was given.
2640 if test "${enable_maintainer_mode+set}" = set; then
2641   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2642 else
2643   USE_MAINTAINER_MODE=no
2644 fi
2645
2646   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2647 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2648
2649
2650 if test $USE_MAINTAINER_MODE = yes; then
2651   MAINTAINER_MODE_TRUE=
2652   MAINTAINER_MODE_FALSE='#'
2653 else
2654   MAINTAINER_MODE_TRUE='#'
2655   MAINTAINER_MODE_FALSE=
2656 fi
2657
2658   MAINT=$MAINTAINER_MODE_TRUE
2659
2660
2661
2662
2663
2664
2665 DEPDIR="${am__leading_dot}deps"
2666
2667 ac_config_commands="$ac_config_commands depfiles"
2668
2669
2670 am_make=${MAKE-make}
2671 cat > confinc << 'END'
2672 am__doit:
2673         @echo done
2674 .PHONY: am__doit
2675 END
2676 # If we don't find an include directive, just comment out the code.
2677 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2678 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2679 am__include="#"
2680 am__quote=
2681 _am_result=none
2682 # First try GNU make style include.
2683 echo "include confinc" > confmf
2684 # We grep out `Entering directory' and `Leaving directory'
2685 # messages which can occur if `w' ends up in MAKEFLAGS.
2686 # In particular we don't look at `^make:' because GNU make might
2687 # be invoked under some other name (usually "gmake"), in which
2688 # case it prints its new name instead of `make'.
2689 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2690    am__include=include
2691    am__quote=
2692    _am_result=GNU
2693 fi
2694 # Now try BSD make style include.
2695 if test "$am__include" = "#"; then
2696    echo '.include "confinc"' > confmf
2697    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2698       am__include=.include
2699       am__quote="\""
2700       _am_result=BSD
2701    fi
2702 fi
2703
2704
2705 { echo "$as_me:$LINENO: result: $_am_result" >&5
2706 echo "${ECHO_T}$_am_result" >&6; }
2707 rm -f confinc confmf
2708
2709 # Check whether --enable-dependency-tracking was given.
2710 if test "${enable_dependency_tracking+set}" = set; then
2711   enableval=$enable_dependency_tracking;
2712 fi
2713
2714 if test "x$enable_dependency_tracking" != xno; then
2715   am_depcomp="$ac_aux_dir/depcomp"
2716   AMDEPBACKSLASH='\'
2717 fi
2718
2719
2720 if test "x$enable_dependency_tracking" != xno; then
2721   AMDEP_TRUE=
2722   AMDEP_FALSE='#'
2723 else
2724   AMDEP_TRUE='#'
2725   AMDEP_FALSE=
2726 fi
2727
2728
2729
2730 ac_ext=c
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 if test -n "$ac_tool_prefix"; then
2736   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740 if test "${ac_cv_prog_CC+set}" = set; then
2741   echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743   if test -n "$CC"; then
2744   ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749   IFS=$as_save_IFS
2750   test -z "$as_dir" && as_dir=.
2751   for ac_exec_ext in '' $ac_executable_extensions; do
2752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755     break 2
2756   fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 CC=$ac_cv_prog_CC
2764 if test -n "$CC"; then
2765   { echo "$as_me:$LINENO: result: $CC" >&5
2766 echo "${ECHO_T}$CC" >&6; }
2767 else
2768   { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2770 fi
2771
2772
2773 fi
2774 if test -z "$ac_cv_prog_CC"; then
2775   ac_ct_CC=$CC
2776   # Extract the first word of "gcc", so it can be a program name with args.
2777 set dummy gcc; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2781   echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783   if test -n "$ac_ct_CC"; then
2784   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791   for ac_exec_ext in '' $ac_executable_extensions; do
2792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793     ac_cv_prog_ac_ct_CC="gcc"
2794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6; }
2807 else
2808   { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2810 fi
2811
2812   if test "x$ac_ct_CC" = x; then
2813     CC=""
2814   else
2815     case $cross_compiling:$ac_tool_warned in
2816 yes:)
2817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet.  If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&5
2820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet.  If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2823 ac_tool_warned=yes ;;
2824 esac
2825     CC=$ac_ct_CC
2826   fi
2827 else
2828   CC="$ac_cv_prog_CC"
2829 fi
2830
2831 if test -z "$CC"; then
2832           if test -n "$ac_tool_prefix"; then
2833     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}cc; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_CC+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$CC"; then
2841   ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850     ac_cv_prog_CC="${ac_tool_prefix}cc"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862   { echo "$as_me:$LINENO: result: $CC" >&5
2863 echo "${ECHO_T}$CC" >&6; }
2864 else
2865   { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2867 fi
2868
2869
2870   fi
2871 fi
2872 if test -z "$CC"; then
2873   # Extract the first word of "cc", so it can be a program name with args.
2874 set dummy cc; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$CC"; then
2881   ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883   ac_prog_rejected=no
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889   for ac_exec_ext in '' $ac_executable_extensions; do
2890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2892        ac_prog_rejected=yes
2893        continue
2894      fi
2895     ac_cv_prog_CC="cc"
2896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897     break 2
2898   fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 if test $ac_prog_rejected = yes; then
2904   # We found a bogon in the path, so make sure we never use it.
2905   set dummy $ac_cv_prog_CC
2906   shift
2907   if test $# != 0; then
2908     # We chose a different compiler from the bogus one.
2909     # However, it has the same basename, so the bogon will be chosen
2910     # first if we set CC to just the basename; use the full file name.
2911     shift
2912     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2913   fi
2914 fi
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919   { echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6; }
2921 else
2922   { echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6; }
2924 fi
2925
2926
2927 fi
2928 if test -z "$CC"; then
2929   if test -n "$ac_tool_prefix"; then
2930   for ac_prog in cl.exe
2931   do
2932     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947   for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6; }
2963 else
2964   { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2966 fi
2967
2968
2969     test -n "$CC" && break
2970   done
2971 fi
2972 if test -z "$CC"; then
2973   ac_ct_CC=$CC
2974   for ac_prog in cl.exe
2975 do
2976   # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   if test -n "$ac_ct_CC"; then
2984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993     ac_cv_prog_ac_ct_CC="$ac_prog"
2994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3006 echo "${ECHO_T}$ac_ct_CC" >&6; }
3007 else
3008   { echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6; }
3010 fi
3011
3012
3013   test -n "$ac_ct_CC" && break
3014 done
3015
3016   if test "x$ac_ct_CC" = x; then
3017     CC=""
3018   else
3019     case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet.  If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&5
3024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet.  If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029     CC=$ac_ct_CC
3030   fi
3031 fi
3032
3033 fi
3034
3035
3036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details." >&2;}
3040    { (exit 1); exit 1; }; }
3041
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compiler --version >&5") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compiler -v >&5") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compiler -V >&5") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }
3075
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082
3083 int
3084 main ()
3085 {
3086
3087   ;
3088   return 0;
3089 }
3090 _ACEOF
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3095 # of exeext.
3096 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3098 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099 #
3100 # List of possible output files, starting from the most likely.
3101 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3102 # only as a last resort.  b.out is created by i960 compilers.
3103 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3104 #
3105 # The IRIX 6 linker writes into existing files which may not be
3106 # executable, retaining their permissions.  Remove them first so a
3107 # subsequent execution test works.
3108 ac_rmfiles=
3109 for ac_file in $ac_files
3110 do
3111   case $ac_file in
3112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3113     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3114   esac
3115 done
3116 rm -f $ac_rmfiles
3117
3118 if { (ac_try="$ac_link_default"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_link_default") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; then
3128   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3131 # so that the user can short-circuit this test for compilers unknown to
3132 # Autoconf.
3133 for ac_file in $ac_files ''
3134 do
3135   test -f "$ac_file" || continue
3136   case $ac_file in
3137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3138         ;;
3139     [ab].out )
3140         # We found the default executable, but exeext='' is most
3141         # certainly right.
3142         break;;
3143     *.* )
3144         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3145         then :; else
3146            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147         fi
3148         # We set ac_cv_exeext here because the later test for it is not
3149         # safe: cross compilers may not add the suffix if given an `-o'
3150         # argument, so we may need to know it at that point already.
3151         # Even if this section looks crufty: it has the advantage of
3152         # actually working.
3153         break;;
3154     * )
3155         break;;
3156   esac
3157 done
3158 test "$ac_cv_exeext" = no && ac_cv_exeext=
3159
3160 else
3161   ac_file=''
3162 fi
3163
3164 { echo "$as_me:$LINENO: result: $ac_file" >&5
3165 echo "${ECHO_T}$ac_file" >&6; }
3166 if test -z "$ac_file"; then
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: C compiler cannot create executables
3173 See \`config.log' for more details." >&2;}
3174    { (exit 77); exit 77; }; }
3175 fi
3176
3177 ac_exeext=$ac_cv_exeext
3178
3179 # Check that the compiler produces executables we can run.  If not, either
3180 # the compiler is broken, or we cross compile.
3181 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3182 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3183 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3184 # If not cross compiling, check that we can run a simple program.
3185 if test "$cross_compiling" != yes; then
3186   if { ac_try='./$ac_file'
3187   { (case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_try") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; }; then
3196     cross_compiling=no
3197   else
3198     if test "$cross_compiling" = maybe; then
3199         cross_compiling=yes
3200     else
3201         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details." >&5
3204 echo "$as_me: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&2;}
3207    { (exit 1); exit 1; }; }
3208     fi
3209   fi
3210 fi
3211 { echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6; }
3213
3214 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 # Check that the compiler produces executables we can run.  If not, either
3217 # the compiler is broken, or we cross compile.
3218 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3219 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3220 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3221 echo "${ECHO_T}$cross_compiling" >&6; }
3222
3223 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3224 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3225 if { (ac_try="$ac_link"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_link") 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; then
3235   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3237 # work properly (i.e., refer to `conftest.exe'), while it won't with
3238 # `rm'.
3239 for ac_file in conftest.exe conftest conftest.*; do
3240   test -f "$ac_file" || continue
3241   case $ac_file in
3242     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3243     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244           break;;
3245     * ) break;;
3246   esac
3247 done
3248 else
3249   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3250 See \`config.log' for more details." >&5
3251 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details." >&2;}
3253    { (exit 1); exit 1; }; }
3254 fi
3255
3256 rm -f conftest$ac_cv_exeext
3257 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3258 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3259
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3262 ac_exeext=$EXEEXT
3263 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3264 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3265 if test "${ac_cv_objext+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.o conftest.obj
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_compile") 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; then
3294   for ac_file in conftest.o conftest.obj conftest.*; do
3295   test -f "$ac_file" || continue;
3296   case $ac_file in
3297     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3298     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3299        break;;
3300   esac
3301 done
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3309 See \`config.log' for more details." >&2;}
3310    { (exit 1); exit 1; }; }
3311 fi
3312
3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 fi
3315 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3316 echo "${ECHO_T}$ac_cv_objext" >&6; }
3317 OBJEXT=$ac_cv_objext
3318 ac_objext=$OBJEXT
3319 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3321 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h.  */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h.  */
3330
3331 int
3332 main ()
3333 {
3334 #ifndef __GNUC__
3335        choke me
3336 #endif
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } && {
3356          test -z "$ac_c_werror_flag" ||
3357          test ! -s conftest.err
3358        } && test -s conftest.$ac_objext; then
3359   ac_compiler_gnu=yes
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364         ac_compiler_gnu=no
3365 fi
3366
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369
3370 fi
3371 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3373 GCC=`test $ac_compiler_gnu = yes && echo yes`
3374 ac_test_CFLAGS=${CFLAGS+set}
3375 ac_save_CFLAGS=$CFLAGS
3376 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_cc_g+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   ac_save_c_werror_flag=$ac_c_werror_flag
3382    ac_c_werror_flag=yes
3383    ac_cv_prog_cc_g=no
3384    CFLAGS="-g"
3385    cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_compile") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } && {
3414          test -z "$ac_c_werror_flag" ||
3415          test ! -s conftest.err
3416        } && test -s conftest.$ac_objext; then
3417   ac_cv_prog_cc_g=yes
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422         CFLAGS=""
3423       cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && {
3452          test -z "$ac_c_werror_flag" ||
3453          test ! -s conftest.err
3454        } && test -s conftest.$ac_objext; then
3455   :
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460         ac_c_werror_flag=$ac_save_c_werror_flag
3461          CFLAGS="-g"
3462          cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484   (eval "$ac_compile") 2>conftest.er1
3485   ac_status=$?
3486   grep -v '^ *+' conftest.er1 >conftest.err
3487   rm -f conftest.er1
3488   cat conftest.err >&5
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } && {
3491          test -z "$ac_c_werror_flag" ||
3492          test ! -s conftest.err
3493        } && test -s conftest.$ac_objext; then
3494   ac_cv_prog_cc_g=yes
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499
3500 fi
3501
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509    ac_c_werror_flag=$ac_save_c_werror_flag
3510 fi
3511 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3513 if test "$ac_test_CFLAGS" = set; then
3514   CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516   if test "$GCC" = yes; then
3517     CFLAGS="-g -O2"
3518   else
3519     CFLAGS="-g"
3520   fi
3521 else
3522   if test "$GCC" = yes; then
3523     CFLAGS="-O2"
3524   else
3525     CFLAGS=
3526   fi
3527 fi
3528 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3529 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3530 if test "${ac_cv_prog_cc_c89+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   ac_cv_prog_cc_c89=no
3534 ac_save_CC=$CC
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541 #include <stdarg.h>
3542 #include <stdio.h>
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3549      char **p;
3550      int i;
3551 {
3552   return p[i];
3553 }
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3555 {
3556   char *s;
3557   va_list v;
3558   va_start (v,p);
3559   s = g (p, va_arg (v,int));
3560   va_end (v);
3561   return s;
3562 }
3563
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3565    function prototypes and stuff, but not '\xHH' hex character constants.
3566    These don't provoke an error unfortunately, instead are silently treated
3567    as 'x'.  The following induces an error, until -std is added to get
3568    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3569    array size at least.  It's necessary to write '\x00'==0 to get something
3570    that's true only with -std.  */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574    inside strings and character constants.  */
3575 #define FOO(x) 'x'
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3577
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3582 int argc;
3583 char **argv;
3584 int
3585 main ()
3586 {
3587 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3594 do
3595   CC="$ac_save_CC $ac_arg"
3596   rm -f conftest.$ac_objext
3597 if { (ac_try="$ac_compile"
3598 case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603   (eval "$ac_compile") 2>conftest.er1
3604   ac_status=$?
3605   grep -v '^ *+' conftest.er1 >conftest.err
3606   rm -f conftest.er1
3607   cat conftest.err >&5
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } && {
3610          test -z "$ac_c_werror_flag" ||
3611          test ! -s conftest.err
3612        } && test -s conftest.$ac_objext; then
3613   ac_cv_prog_cc_c89=$ac_arg
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618
3619 fi
3620
3621 rm -f core conftest.err conftest.$ac_objext
3622   test "x$ac_cv_prog_cc_c89" != "xno" && break
3623 done
3624 rm -f conftest.$ac_ext
3625 CC=$ac_save_CC
3626
3627 fi
3628 # AC_CACHE_VAL
3629 case "x$ac_cv_prog_cc_c89" in
3630   x)
3631     { echo "$as_me:$LINENO: result: none needed" >&5
3632 echo "${ECHO_T}none needed" >&6; } ;;
3633   xno)
3634     { echo "$as_me:$LINENO: result: unsupported" >&5
3635 echo "${ECHO_T}unsupported" >&6; } ;;
3636   *)
3637     CC="$CC $ac_cv_prog_cc_c89"
3638     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3640 esac
3641
3642
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648
3649 depcc="$CC"   am_compiler_list=
3650
3651 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657   # We make a subdir and do the tests there.  Otherwise we can end up
3658   # making bogus files that we don't know about and never remove.  For
3659   # instance it was reported that on HP-UX the gcc test will end up
3660   # making a dummy file named `D' -- because `-MD' means `put the output
3661   # in D'.
3662   mkdir conftest.dir
3663   # Copy depcomp to subdir because otherwise we won't find it if we're
3664   # using a relative directory.
3665   cp "$am_depcomp" conftest.dir
3666   cd conftest.dir
3667   # We will build objects and dependencies in a subdirectory because
3668   # it helps to detect inapplicable dependency modes.  For instance
3669   # both Tru64's cc and ICC support -MD to output dependencies as a
3670   # side effect of compilation, but ICC will put the dependencies in
3671   # the current directory while Tru64 will put them in the object
3672   # directory.
3673   mkdir sub
3674
3675   am_cv_CC_dependencies_compiler_type=none
3676   if test "$am_compiler_list" = ""; then
3677      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3678   fi
3679   for depmode in $am_compiler_list; do
3680     # Setup a source with many dependencies, because some compilers
3681     # like to wrap large dependency lists on column 80 (with \), and
3682     # we should not choose a depcomp mode which is confused by this.
3683     #
3684     # We need to recreate these files for each test, as the compiler may
3685     # overwrite some of them when testing with obscure command lines.
3686     # This happens at least with the AIX C compiler.
3687     : > sub/conftest.c
3688     for i in 1 2 3 4 5 6; do
3689       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3691       # Solaris 8's {/usr,}/bin/sh.
3692       touch sub/conftst$i.h
3693     done
3694     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3695
3696     case $depmode in
3697     nosideeffect)
3698       # after this tag, mechanisms are not by side-effect, so they'll
3699       # only be used when explicitly requested
3700       if test "x$enable_dependency_tracking" = xyes; then
3701         continue
3702       else
3703         break
3704       fi
3705       ;;
3706     none) break ;;
3707     esac
3708     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3709     # mode.  It turns out that the SunPro C++ compiler does not properly
3710     # handle `-M -o', and we need to detect this.
3711     if depmode=$depmode \
3712        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3713        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3714        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3715          >/dev/null 2>conftest.err &&
3716        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3718        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719       # icc doesn't choke on unknown options, it will just issue warnings
3720       # or remarks (even with -Werror).  So we grep stderr for any message
3721       # that says an option was ignored or not supported.
3722       # When given -MP, icc 7.0 and 7.1 complain thusly:
3723       #   icc: Command line warning: ignoring option '-M'; no argument required
3724       # The diagnosis changed in icc 8.0:
3725       #   icc: Command line remark: option '-MP' not supported
3726       if (grep 'ignoring option' conftest.err ||
3727           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728         am_cv_CC_dependencies_compiler_type=$depmode
3729         break
3730       fi
3731     fi
3732   done
3733
3734   cd ..
3735   rm -rf conftest.dir
3736 else
3737   am_cv_CC_dependencies_compiler_type=none
3738 fi
3739
3740 fi
3741 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3742 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3744
3745
3746
3747 if
3748   test "x$enable_dependency_tracking" != xno \
3749   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3750   am__fastdepCC_TRUE=
3751   am__fastdepCC_FALSE='#'
3752 else
3753   am__fastdepCC_TRUE='#'
3754   am__fastdepCC_FALSE=
3755 fi
3756
3757
3758 if test "x$CC" != xcc; then
3759   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3760 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3761 else
3762   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3763 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3764 fi
3765 set dummy $CC; ac_cc=`echo $2 |
3766                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3767 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 # Make sure it works both with $CC and with simple cc.
3786 # We do the test twice because some compilers refuse to overwrite an
3787 # existing .o file with -o, though they will create one.
3788 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3789 rm -f conftest2.*
3790 if { (case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795   (eval "$ac_try") 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } &&
3799    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801   *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804   (eval "$ac_try") 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); };
3808 then
3809   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3810   if test "x$CC" != xcc; then
3811     # Test first that cc exists at all.
3812     if { ac_try='cc -c conftest.$ac_ext >&5'
3813   { (case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818   (eval "$ac_try") 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3823       rm -f conftest2.*
3824       if { (case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829   (eval "$ac_try") 2>&5
3830   ac_status=$?
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); } &&
3833          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835   *) ac_try_echo=$ac_try;;
3836 esac
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838   (eval "$ac_try") 2>&5
3839   ac_status=$?
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); };
3842       then
3843         # cc works too.
3844         :
3845       else
3846         # cc exists but doesn't like -o.
3847         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3848       fi
3849     fi
3850   fi
3851 else
3852   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3853 fi
3854 rm -f core conftest*
3855
3856 fi
3857 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3858   { echo "$as_me:$LINENO: result: yes" >&5
3859 echo "${ECHO_T}yes" >&6; }
3860 else
3861   { echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6; }
3863
3864 cat >>confdefs.h <<\_ACEOF
3865 #define NO_MINUS_C_MINUS_O 1
3866 _ACEOF
3867
3868 fi
3869
3870 # FIXME: we rely on the cache variable name because
3871 # there is no other way.
3872 set dummy $CC
3873 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3874 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3875    # Losing compiler, so override with the script.
3876    # FIXME: It is wrong to rewrite CC.
3877    # But if we don't then we get into trouble of one sort or another.
3878    # A longer-term fix would be to have automake use am__CC in this case,
3879    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3880    CC="$am_aux_dir/compile $CC"
3881 fi
3882
3883 ac_ext=cpp
3884 ac_cpp='$CXXCPP $CPPFLAGS'
3885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3888 if test -z "$CXX"; then
3889   if test -n "$CCC"; then
3890     CXX=$CCC
3891   else
3892     if test -n "$ac_tool_prefix"; then
3893   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3894   do
3895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3899 if test "${ac_cv_prog_CXX+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   if test -n "$CXX"; then
3903   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908   IFS=$as_save_IFS
3909   test -z "$as_dir" && as_dir=.
3910   for ac_exec_ext in '' $ac_executable_extensions; do
3911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914     break 2
3915   fi
3916 done
3917 done
3918 IFS=$as_save_IFS
3919
3920 fi
3921 fi
3922 CXX=$ac_cv_prog_CXX
3923 if test -n "$CXX"; then
3924   { echo "$as_me:$LINENO: result: $CXX" >&5
3925 echo "${ECHO_T}$CXX" >&6; }
3926 else
3927   { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3929 fi
3930
3931
3932     test -n "$CXX" && break
3933   done
3934 fi
3935 if test -z "$CXX"; then
3936   ac_ct_CXX=$CXX
3937   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3938 do
3939   # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   if test -n "$ac_ct_CXX"; then
3947   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952   IFS=$as_save_IFS
3953   test -z "$as_dir" && as_dir=.
3954   for ac_exec_ext in '' $ac_executable_extensions; do
3955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956     ac_cv_prog_ac_ct_CXX="$ac_prog"
3957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961 done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3967 if test -n "$ac_ct_CXX"; then
3968   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3970 else
3971   { echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6; }
3973 fi
3974
3975
3976   test -n "$ac_ct_CXX" && break
3977 done
3978
3979   if test "x$ac_ct_CXX" = x; then
3980     CXX="g++"
3981   else
3982     case $cross_compiling:$ac_tool_warned in
3983 yes:)
3984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3985 whose name does not start with the host triplet.  If you think this
3986 configuration is useful to you, please write to autoconf@gnu.org." >&5
3987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3988 whose name does not start with the host triplet.  If you think this
3989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3990 ac_tool_warned=yes ;;
3991 esac
3992     CXX=$ac_ct_CXX
3993   fi
3994 fi
3995
3996   fi
3997 fi
3998 # Provide some information about the compiler.
3999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4000 ac_compiler=`set X $ac_compile; echo $2`
4001 { (ac_try="$ac_compiler --version >&5"
4002 case "(($ac_try" in
4003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004   *) ac_try_echo=$ac_try;;
4005 esac
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007   (eval "$ac_compiler --version >&5") 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }
4011 { (ac_try="$ac_compiler -v >&5"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017   (eval "$ac_compiler -v >&5") 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); }
4021 { (ac_try="$ac_compiler -V >&5"
4022 case "(($ac_try" in
4023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024   *) ac_try_echo=$ac_try;;
4025 esac
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027   (eval "$ac_compiler -V >&5") 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }
4031
4032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043
4044 int
4045 main ()
4046 {
4047 #ifndef __GNUC__
4048        choke me
4049 #endif
4050
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 rm -f conftest.$ac_objext
4056 if { (ac_try="$ac_compile"
4057 case "(($ac_try" in
4058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059   *) ac_try_echo=$ac_try;;
4060 esac
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062   (eval "$ac_compile") 2>conftest.er1
4063   ac_status=$?
4064   grep -v '^ *+' conftest.er1 >conftest.err
4065   rm -f conftest.er1
4066   cat conftest.err >&5
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); } && {
4069          test -z "$ac_cxx_werror_flag" ||
4070          test ! -s conftest.err
4071        } && test -s conftest.$ac_objext; then
4072   ac_compiler_gnu=yes
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077         ac_compiler_gnu=no
4078 fi
4079
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4082
4083 fi
4084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4086 GXX=`test $ac_compiler_gnu = yes && echo yes`
4087 ac_test_CXXFLAGS=${CXXFLAGS+set}
4088 ac_save_CXXFLAGS=$CXXFLAGS
4089 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4090 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4091 if test "${ac_cv_prog_cxx_g+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4095    ac_cxx_werror_flag=yes
4096    ac_cv_prog_cxx_g=no
4097    CXXFLAGS="-g"
4098    cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104
4105 int
4106 main ()
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120   (eval "$ac_compile") 2>conftest.er1
4121   ac_status=$?
4122   grep -v '^ *+' conftest.er1 >conftest.err
4123   rm -f conftest.er1
4124   cat conftest.err >&5
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } && {
4127          test -z "$ac_cxx_werror_flag" ||
4128          test ! -s conftest.err
4129        } && test -s conftest.$ac_objext; then
4130   ac_cv_prog_cxx_g=yes
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135         CXXFLAGS=""
4136       cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142
4143 int
4144 main ()
4145 {
4146
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (ac_try="$ac_compile"
4153 case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158   (eval "$ac_compile") 2>conftest.er1
4159   ac_status=$?
4160   grep -v '^ *+' conftest.er1 >conftest.err
4161   rm -f conftest.er1
4162   cat conftest.err >&5
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } && {
4165          test -z "$ac_cxx_werror_flag" ||
4166          test ! -s conftest.err
4167        } && test -s conftest.$ac_objext; then
4168   :
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4174          CXXFLAGS="-g"
4175          cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181
4182 int
4183 main ()
4184 {
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_compile") 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } && {
4204          test -z "$ac_cxx_werror_flag" ||
4205          test ! -s conftest.err
4206        } && test -s conftest.$ac_objext; then
4207   ac_cv_prog_cxx_g=yes
4208 else
4209   echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212
4213 fi
4214
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 fi
4217
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 fi
4220
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4223 fi
4224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4226 if test "$ac_test_CXXFLAGS" = set; then
4227   CXXFLAGS=$ac_save_CXXFLAGS
4228 elif test $ac_cv_prog_cxx_g = yes; then
4229   if test "$GXX" = yes; then
4230     CXXFLAGS="-g -O2"
4231   else
4232     CXXFLAGS="-g"
4233   fi
4234 else
4235   if test "$GXX" = yes; then
4236     CXXFLAGS="-O2"
4237   else
4238     CXXFLAGS=
4239   fi
4240 fi
4241 ac_ext=c
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
4247 depcc="$CXX"  am_compiler_list=
4248
4249 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4251 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255   # We make a subdir and do the tests there.  Otherwise we can end up
4256   # making bogus files that we don't know about and never remove.  For
4257   # instance it was reported that on HP-UX the gcc test will end up
4258   # making a dummy file named `D' -- because `-MD' means `put the output
4259   # in D'.
4260   mkdir conftest.dir
4261   # Copy depcomp to subdir because otherwise we won't find it if we're
4262   # using a relative directory.
4263   cp "$am_depcomp" conftest.dir
4264   cd conftest.dir
4265   # We will build objects and dependencies in a subdirectory because
4266   # it helps to detect inapplicable dependency modes.  For instance
4267   # both Tru64's cc and ICC support -MD to output dependencies as a
4268   # side effect of compilation, but ICC will put the dependencies in
4269   # the current directory while Tru64 will put them in the object
4270   # directory.
4271   mkdir sub
4272
4273   am_cv_CXX_dependencies_compiler_type=none
4274   if test "$am_compiler_list" = ""; then
4275      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4276   fi
4277   for depmode in $am_compiler_list; do
4278     # Setup a source with many dependencies, because some compilers
4279     # like to wrap large dependency lists on column 80 (with \), and
4280     # we should not choose a depcomp mode which is confused by this.
4281     #
4282     # We need to recreate these files for each test, as the compiler may
4283     # overwrite some of them when testing with obscure command lines.
4284     # This happens at least with the AIX C compiler.
4285     : > sub/conftest.c
4286     for i in 1 2 3 4 5 6; do
4287       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4289       # Solaris 8's {/usr,}/bin/sh.
4290       touch sub/conftst$i.h
4291     done
4292     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4293
4294     case $depmode in
4295     nosideeffect)
4296       # after this tag, mechanisms are not by side-effect, so they'll
4297       # only be used when explicitly requested
4298       if test "x$enable_dependency_tracking" = xyes; then
4299         continue
4300       else
4301         break
4302       fi
4303       ;;
4304     none) break ;;
4305     esac
4306     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4307     # mode.  It turns out that the SunPro C++ compiler does not properly
4308     # handle `-M -o', and we need to detect this.
4309     if depmode=$depmode \
4310        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4311        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4313          >/dev/null 2>conftest.err &&
4314        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4316        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317       # icc doesn't choke on unknown options, it will just issue warnings
4318       # or remarks (even with -Werror).  So we grep stderr for any message
4319       # that says an option was ignored or not supported.
4320       # When given -MP, icc 7.0 and 7.1 complain thusly:
4321       #   icc: Command line warning: ignoring option '-M'; no argument required
4322       # The diagnosis changed in icc 8.0:
4323       #   icc: Command line remark: option '-MP' not supported
4324       if (grep 'ignoring option' conftest.err ||
4325           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326         am_cv_CXX_dependencies_compiler_type=$depmode
4327         break
4328       fi
4329     fi
4330   done
4331
4332   cd ..
4333   rm -rf conftest.dir
4334 else
4335   am_cv_CXX_dependencies_compiler_type=none
4336 fi
4337
4338 fi
4339 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4340 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4341 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4342
4343
4344
4345 if
4346   test "x$enable_dependency_tracking" != xno \
4347   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4348   am__fastdepCXX_TRUE=
4349   am__fastdepCXX_FALSE='#'
4350 else
4351   am__fastdepCXX_TRUE='#'
4352   am__fastdepCXX_FALSE=
4353 fi
4354
4355
4356
4357 # By default we simply use the C compiler to build assembly code.
4358
4359 test "${CCAS+set}" = set || CCAS=$CC
4360 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4361
4362
4363
4364 ## FIXME: really needed? (AC_LIBTOOL already provides this)
4365 if test -n "$ac_tool_prefix"; then
4366   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4367 set dummy ${ac_tool_prefix}ar; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_prog_AR+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   if test -n "$AR"; then
4374   ac_cv_prog_AR="$AR" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379   IFS=$as_save_IFS
4380   test -z "$as_dir" && as_dir=.
4381   for ac_exec_ext in '' $ac_executable_extensions; do
4382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383     ac_cv_prog_AR="${ac_tool_prefix}ar"
4384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388 done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 AR=$ac_cv_prog_AR
4394 if test -n "$AR"; then
4395   { echo "$as_me:$LINENO: result: $AR" >&5
4396 echo "${ECHO_T}$AR" >&6; }
4397 else
4398   { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4400 fi
4401
4402
4403 fi
4404 if test -z "$ac_cv_prog_AR"; then
4405   ac_ct_AR=$AR
4406   # Extract the first word of "ar", so it can be a program name with args.
4407 set dummy ar; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   if test -n "$ac_ct_AR"; then
4414   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419   IFS=$as_save_IFS
4420   test -z "$as_dir" && as_dir=.
4421   for ac_exec_ext in '' $ac_executable_extensions; do
4422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423     ac_cv_prog_ac_ct_AR="ar"
4424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425     break 2
4426   fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4430
4431 fi
4432 fi
4433 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4434 if test -n "$ac_ct_AR"; then
4435   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4436 echo "${ECHO_T}$ac_ct_AR" >&6; }
4437 else
4438   { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4440 fi
4441
4442   if test "x$ac_ct_AR" = x; then
4443     AR=""
4444   else
4445     case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4448 whose name does not start with the host triplet.  If you think this
4449 configuration is useful to you, please write to autoconf@gnu.org." >&5
4450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4451 whose name does not start with the host triplet.  If you think this
4452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4453 ac_tool_warned=yes ;;
4454 esac
4455     AR=$ac_ct_AR
4456   fi
4457 else
4458   AR="$ac_cv_prog_AR"
4459 fi
4460
4461 if test -n "$ac_tool_prefix"; then
4462   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_RANLIB+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   if test -n "$RANLIB"; then
4470   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477   for ac_exec_ext in '' $ac_executable_extensions; do
4478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481     break 2
4482   fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487 fi
4488 fi
4489 RANLIB=$ac_cv_prog_RANLIB
4490 if test -n "$RANLIB"; then
4491   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4492 echo "${ECHO_T}$RANLIB" >&6; }
4493 else
4494   { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4496 fi
4497
4498
4499 fi
4500 if test -z "$ac_cv_prog_RANLIB"; then
4501   ac_ct_RANLIB=$RANLIB
4502   # Extract the first word of "ranlib", so it can be a program name with args.
4503 set dummy ranlib; ac_word=$2
4504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4506 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509   if test -n "$ac_ct_RANLIB"; then
4510   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517   for ac_exec_ext in '' $ac_executable_extensions; do
4518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519     ac_cv_prog_ac_ct_RANLIB="ranlib"
4520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521     break 2
4522   fi
4523 done
4524 done
4525 IFS=$as_save_IFS
4526
4527 fi
4528 fi
4529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4530 if test -n "$ac_ct_RANLIB"; then
4531   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4532 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4533 else
4534   { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4536 fi
4537
4538   if test "x$ac_ct_RANLIB" = x; then
4539     RANLIB=":"
4540   else
4541     case $cross_compiling:$ac_tool_warned in
4542 yes:)
4543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4544 whose name does not start with the host triplet.  If you think this
4545 configuration is useful to you, please write to autoconf@gnu.org." >&5
4546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4547 whose name does not start with the host triplet.  If you think this
4548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4549 ac_tool_warned=yes ;;
4550 esac
4551     RANLIB=$ac_ct_RANLIB
4552   fi
4553 else
4554   RANLIB="$ac_cv_prog_RANLIB"
4555 fi
4556   # :)
4557
4558 # Find a good install program.  We prefer a C program (faster),
4559 # so one script is as good as another.  But avoid the broken or
4560 # incompatible versions:
4561 # SysV /etc/install, /usr/sbin/install
4562 # SunOS /usr/etc/install
4563 # IRIX /sbin/install
4564 # AIX /bin/install
4565 # AmigaOS /C/install, which installs bootblocks on floppy discs
4566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4569 # OS/2's system install, which has a completely different semantic
4570 # ./install, which can be erroneously created by make from ./install.sh.
4571 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4572 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4573 if test -z "$INSTALL"; then
4574 if test "${ac_cv_path_install+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582   # Account for people who put trailing slashes in PATH elements.
4583 case $as_dir/ in
4584   ./ | .// | /cC/* | \
4585   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4586   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4587   /usr/ucb/* ) ;;
4588   *)
4589     # OSF1 and SCO ODT 3.0 have their own names for install.
4590     # Don't use installbsd from OSF since it installs stuff as root
4591     # by default.
4592     for ac_prog in ginstall scoinst install; do
4593       for ac_exec_ext in '' $ac_executable_extensions; do
4594         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4595           if test $ac_prog = install &&
4596             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4597             # AIX install.  It has an incompatible calling convention.
4598             :
4599           elif test $ac_prog = install &&
4600             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4601             # program-specific install script used by HP pwplus--don't use.
4602             :
4603           else
4604             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4605             break 3
4606           fi
4607         fi
4608       done
4609     done
4610     ;;
4611 esac
4612 done
4613 IFS=$as_save_IFS
4614
4615
4616 fi
4617   if test "${ac_cv_path_install+set}" = set; then
4618     INSTALL=$ac_cv_path_install
4619   else
4620     # As a last resort, use the slow shell script.  Don't cache a
4621     # value for INSTALL within a source directory, because that will
4622     # break other packages using the cache if that directory is
4623     # removed, or if the value is a relative name.
4624     INSTALL=$ac_install_sh
4625   fi
4626 fi
4627 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4628 echo "${ECHO_T}$INSTALL" >&6; }
4629
4630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4631 # It thinks the first close brace ends the variable substitution.
4632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4633
4634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4635
4636 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4637
4638
4639 . ${srcdir}/configure.host
4640
4641 GC_CFLAGS=${gc_cflags}
4642
4643
4644 # Check whether --enable-threads was given.
4645 if test "${enable_threads+set}" = set; then
4646   enableval=$enable_threads; THREADS=$enableval
4647 else
4648    { echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4649 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6; }
4650     THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4651     if test -z "$THREADS"; then
4652       THREADS=no
4653     fi
4654     { echo "$as_me:$LINENO: result: $THREADS" >&5
4655 echo "${ECHO_T}$THREADS" >&6; }
4656 fi
4657
4658
4659 # Check whether --enable-parallel-mark was given.
4660 if test "${enable_parallel_mark+set}" = set; then
4661   enableval=$enable_parallel_mark; case "$THREADS" in
4662       no | none | single)
4663         { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4664 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4665    { (exit 1); exit 1; }; }
4666         ;;
4667     esac
4668
4669 fi
4670
4671
4672 # Check whether --enable-cplusplus was given.
4673 if test "${enable_cplusplus+set}" = set; then
4674   enableval=$enable_cplusplus;
4675 fi
4676
4677
4678 INCLUDES=-I${srcdir}/include
4679 THREADDLLIBS=
4680 need_atomic_ops_asm=false
4681 ## Libraries needed to support dynamic loading and/or threads.
4682 case "$THREADS" in
4683  no | none | single)
4684     THREADS=none
4685     ;;
4686  posix | pthreads)
4687     THREADS=posix
4688     THREADDLLIBS=-lpthread
4689     case "$host" in
4690      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux* | sparc*-*-linux*)
4691         cat >>confdefs.h <<\_ACEOF
4692 #define GC_LINUX_THREADS 1
4693 _ACEOF
4694
4695         cat >>confdefs.h <<\_ACEOF
4696 #define _REENTRANT 1
4697 _ACEOF
4698
4699         if test "${enable_parallel_mark}" = yes; then
4700           cat >>confdefs.h <<\_ACEOF
4701 #define PARALLEL_MARK 1
4702 _ACEOF
4703
4704         fi
4705         cat >>confdefs.h <<\_ACEOF
4706 #define THREAD_LOCAL_ALLOC 1
4707 _ACEOF
4708
4709         { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4710 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4711         ;;
4712      *-*-linux*)
4713         cat >>confdefs.h <<\_ACEOF
4714 #define GC_LINUX_THREADS 1
4715 _ACEOF
4716
4717         cat >>confdefs.h <<\_ACEOF
4718 #define _REENTRANT 1
4719 _ACEOF
4720
4721         ;;
4722      *-*-aix*)
4723         cat >>confdefs.h <<\_ACEOF
4724 #define GC_AIX_THREADS 1
4725 _ACEOF
4726
4727         cat >>confdefs.h <<\_ACEOF
4728 #define _REENTRANT 1
4729 _ACEOF
4730
4731         ;;
4732      *-*-hpux11*)
4733         { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
4734 echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
4735         cat >>confdefs.h <<\_ACEOF
4736 #define GC_HPUX_THREADS 1
4737 _ACEOF
4738
4739         cat >>confdefs.h <<\_ACEOF
4740 #define _POSIX_C_SOURCE 199506L
4741 _ACEOF
4742
4743         if test "${enable_parallel_mark}" = yes; then
4744           cat >>confdefs.h <<\_ACEOF
4745 #define PARALLEL_MARK 1
4746 _ACEOF
4747
4748         fi
4749         cat >>confdefs.h <<\_ACEOF
4750 #define THREAD_LOCAL_ALLOC 1
4751 _ACEOF
4752
4753         { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4754 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4755         THREADDLLIBS="-lpthread -lrt"
4756         # HPUX needs REENTRANT for the _r calls.
4757
4758 cat >>confdefs.h <<\_ACEOF
4759 #define _REENTRANT 1
4760 _ACEOF
4761
4762         ;;
4763      *-*-hpux10*)
4764         { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
4765 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
4766         ;;
4767      *-*-freebsd*)
4768         { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4769 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4770         cat >>confdefs.h <<\_ACEOF
4771 #define GC_FREEBSD_THREADS 1
4772 _ACEOF
4773
4774         INCLUDES="$INCLUDES -pthread"
4775         ;;
4776      *-*-kfreebsd*-gnu)
4777         cat >>confdefs.h <<\_ACEOF
4778 #define GC_FREEBSD_THREADS 1
4779 _ACEOF
4780
4781         INCLUDES="$INCLUDES -pthread"
4782         THREADDLLIBS=-pthread
4783         cat >>confdefs.h <<\_ACEOF
4784 #define _REENTRANT 1
4785 _ACEOF
4786
4787         if test "${enable_parallel_mark}" = yes; then
4788           cat >>confdefs.h <<\_ACEOF
4789 #define PARALLEL_MARK 1
4790 _ACEOF
4791
4792         fi
4793         cat >>confdefs.h <<\_ACEOF
4794 #define THREAD_LOCAL_ALLOC 1
4795 _ACEOF
4796
4797         cat >>confdefs.h <<\_ACEOF
4798 #define USE_COMPILER_TLS 1
4799 _ACEOF
4800
4801         ;;
4802      *-*-gnu*)
4803         cat >>confdefs.h <<\_ACEOF
4804 #define GC_GNU_THREADS 1
4805 _ACEOF
4806
4807         cat >>confdefs.h <<\_ACEOF
4808 #define _REENTRANT 1
4809 _ACEOF
4810
4811         cat >>confdefs.h <<\_ACEOF
4812 #define THREAD_LOCAL_ALLOC 1
4813 _ACEOF
4814
4815         ;;
4816      *-*-netbsd*)
4817         { echo "$as_me:$LINENO: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
4818 echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
4819         cat >>confdefs.h <<\_ACEOF
4820 #define GC_NETBSD_THREADS 1
4821 _ACEOF
4822
4823         cat >>confdefs.h <<\_ACEOF
4824 #define _REENTRANT 1
4825 _ACEOF
4826
4827         cat >>confdefs.h <<\_ACEOF
4828 #define _PTHREADS 1
4829 _ACEOF
4830
4831         THREADDLLIBS="-lpthread -lrt"
4832         ;;
4833      *-*-solaris*)
4834         cat >>confdefs.h <<\_ACEOF
4835 #define GC_SOLARIS_THREADS 1
4836 _ACEOF
4837
4838         cat >>confdefs.h <<\_ACEOF
4839 #define THREAD_LOCAL_ALLOC 1
4840 _ACEOF
4841
4842         THREADDLLIBS="-lpthread -lrt"
4843         if test "$GCC" != yes; then
4844           CFLAGS="$CFLAGS -O"
4845           need_atomic_ops_asm=true
4846         fi
4847         ;;
4848      *-*-irix*)
4849         cat >>confdefs.h <<\_ACEOF
4850 #define GC_IRIX_THREADS 1
4851 _ACEOF
4852
4853         ;;
4854      *-*-cygwin*)
4855         cat >>confdefs.h <<\_ACEOF
4856 #define GC_WIN32_THREADS 1
4857 _ACEOF
4858
4859         cat >>confdefs.h <<\_ACEOF
4860 #define THREAD_LOCAL_ALLOC 1
4861 _ACEOF
4862
4863         win32_threads=true
4864         ;;
4865      *-*-darwin*)
4866         cat >>confdefs.h <<\_ACEOF
4867 #define GC_DARWIN_THREADS 1
4868 _ACEOF
4869
4870         cat >>confdefs.h <<\_ACEOF
4871 #define THREAD_LOCAL_ALLOC 1
4872 _ACEOF
4873
4874         { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4875 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4876         # Parallel-mark is currently unreliable on Darwin; ignore request
4877         # if test "${enable_parallel_mark}" = yes; then
4878         #   AC_DEFINE(PARALLEL_MARK)
4879         # fi
4880         darwin_threads=true
4881         ;;
4882      *-*-osf*)
4883         cat >>confdefs.h <<\_ACEOF
4884 #define GC_OSF1_THREADS 1
4885 _ACEOF
4886
4887         if test "${enable_parallel_mark}" = yes; then
4888           cat >>confdefs.h <<\_ACEOF
4889 #define PARALLEL_MARK 1
4890 _ACEOF
4891
4892           cat >>confdefs.h <<\_ACEOF
4893 #define THREAD_LOCAL_ALLOC 1
4894 _ACEOF
4895
4896           { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4897 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4898           # May want to enable it in other cases, too.
4899           # Measurements havent yet been done.
4900         fi
4901         INCLUDES="$INCLUDES -pthread"
4902         THREADDLLIBS="-lpthread -lrt"
4903         ;;
4904       *)
4905         { { echo "$as_me:$LINENO: error: \"Pthreads not supported by the GC on this platform.\"" >&5
4906 echo "$as_me: error: \"Pthreads not supported by the GC on this platform.\"" >&2;}
4907    { (exit 1); exit 1; }; }
4908         ;;
4909     esac
4910     ;;
4911  win32)
4912     cat >>confdefs.h <<\_ACEOF
4913 #define GC_WIN32_THREADS 1
4914 _ACEOF
4915
4916     win32_threads=true
4917         cat >>confdefs.h <<\_ACEOF
4918 #define NO_GETENV 1
4919 _ACEOF
4920
4921     ;;
4922  dgux386)
4923     THREADS=dgux386
4924     { echo "$as_me:$LINENO: result: $THREADDLLIBS" >&5
4925 echo "${ECHO_T}$THREADDLLIBS" >&6; }
4926     # Use pthread GCC  switch
4927     THREADDLLIBS=-pthread
4928     if test "${enable_parallel_mark}" = yes; then
4929         cat >>confdefs.h <<\_ACEOF
4930 #define PARALLEL_MARK 1
4931 _ACEOF
4932
4933     fi
4934     cat >>confdefs.h <<\_ACEOF
4935 #define THREAD_LOCAL_ALLOC 1
4936 _ACEOF
4937
4938     { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4939 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4940     cat >>confdefs.h <<\_ACEOF
4941 #define GC_DGUX386_THREADS 1
4942 _ACEOF
4943
4944     cat >>confdefs.h <<\_ACEOF
4945 #define DGUX_THREADS 1
4946 _ACEOF
4947
4948     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
4949     INCLUDES="-pthread $INCLUDES"
4950     ;;
4951  aix)
4952     THREADS=posix
4953     THREADDLLIBS=-lpthread
4954     cat >>confdefs.h <<\_ACEOF
4955 #define GC_AIX_THREADS 1
4956 _ACEOF
4957
4958     cat >>confdefs.h <<\_ACEOF
4959 #define _REENTRANT 1
4960 _ACEOF
4961
4962     ;;
4963  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4964     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
4965 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
4966    { (exit 1); exit 1; }; }
4967     ;;
4968  *)
4969     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
4970 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
4971    { (exit 1); exit 1; }; }
4972     ;;
4973 esac
4974
4975
4976
4977 if test x$THREADS != xnone; then
4978   THREADS_TRUE=
4979   THREADS_FALSE='#'
4980 else
4981   THREADS_TRUE='#'
4982   THREADS_FALSE=
4983 fi
4984
4985
4986
4987 if test x$THREADS = xposix; then
4988   PTHREADS_TRUE=
4989   PTHREADS_FALSE='#'
4990 else
4991   PTHREADS_TRUE='#'
4992   PTHREADS_FALSE=
4993 fi
4994
4995
4996
4997 if test x$darwin_threads = xtrue; then
4998   DARWIN_THREADS_TRUE=
4999   DARWIN_THREADS_FALSE='#'
5000 else
5001   DARWIN_THREADS_TRUE='#'
5002   DARWIN_THREADS_FALSE=
5003 fi
5004
5005
5006
5007 if test x$win32_threads = xtrue; then
5008   WIN32_THREADS_TRUE=
5009   WIN32_THREADS_FALSE='#'
5010 else
5011   WIN32_THREADS_TRUE='#'
5012   WIN32_THREADS_FALSE=
5013 fi
5014
5015
5016 case "$host" in
5017    powerpc-*-darwin*)
5018       powerpc_darwin=true
5019       ;;
5020 esac
5021
5022 # Darwin needs a few extra special tests to deal with variation in the
5023 # system headers.
5024 case "$host" in
5025   powerpc*-*-darwin*)
5026
5027 { echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
5028 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6; }
5029 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 #include <mach/thread_status.h>
5039
5040 int
5041 main ()
5042 {
5043 static ppc_thread_state_t ac_aggr;
5044 if (ac_aggr.r0)
5045 return 0;
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5052 case "(($ac_try" in
5053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054   *) ac_try_echo=$ac_try;;
5055 esac
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057   (eval "$ac_compile") 2>conftest.er1
5058   ac_status=$?
5059   grep -v '^ *+' conftest.er1 >conftest.err
5060   rm -f conftest.er1
5061   cat conftest.err >&5
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } && {
5064          test -z "$ac_c_werror_flag" ||
5065          test ! -s conftest.err
5066        } && test -s conftest.$ac_objext; then
5067   ac_cv_member_ppc_thread_state_t_r0=yes
5068 else
5069   echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072         cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078 #include <mach/thread_status.h>
5079
5080 int
5081 main ()
5082 {
5083 static ppc_thread_state_t ac_aggr;
5084 if (sizeof ac_aggr.r0)
5085 return 0;
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5092 case "(($ac_try" in
5093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094   *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097   (eval "$ac_compile") 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } && {
5104          test -z "$ac_c_werror_flag" ||
5105          test ! -s conftest.err
5106        } && test -s conftest.$ac_objext; then
5107   ac_cv_member_ppc_thread_state_t_r0=yes
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112         ac_cv_member_ppc_thread_state_t_r0=no
5113 fi
5114
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 fi
5117
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 fi
5120 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
5121 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6; }
5122 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
5123
5124 cat >>confdefs.h <<\_ACEOF
5125 #define HAS_PPC_THREAD_STATE_R0 1
5126 _ACEOF
5127
5128 fi
5129
5130     { echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
5131 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6; }
5132 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 #include <mach/thread_status.h>
5142
5143 int
5144 main ()
5145 {
5146 static ppc_thread_state_t ac_aggr;
5147 if (ac_aggr.__r0)
5148 return 0;
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5155 case "(($ac_try" in
5156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157   *) ac_try_echo=$ac_try;;
5158 esac
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160   (eval "$ac_compile") 2>conftest.er1
5161   ac_status=$?
5162   grep -v '^ *+' conftest.er1 >conftest.err
5163   rm -f conftest.er1
5164   cat conftest.err >&5
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } && {
5167          test -z "$ac_c_werror_flag" ||
5168          test ! -s conftest.err
5169        } && test -s conftest.$ac_objext; then
5170   ac_cv_member_ppc_thread_state_t___r0=yes
5171 else
5172   echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175         cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h.  */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h.  */
5181 #include <mach/thread_status.h>
5182
5183 int
5184 main ()
5185 {
5186 static ppc_thread_state_t ac_aggr;
5187 if (sizeof ac_aggr.__r0)
5188 return 0;
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5195 case "(($ac_try" in
5196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197   *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200   (eval "$ac_compile") 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } && {
5207          test -z "$ac_c_werror_flag" ||
5208          test ! -s conftest.err
5209        } && test -s conftest.$ac_objext; then
5210   ac_cv_member_ppc_thread_state_t___r0=yes
5211 else
5212   echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215         ac_cv_member_ppc_thread_state_t___r0=no
5216 fi
5217
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 fi
5220
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 fi
5223 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
5224 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6; }
5225 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
5226
5227 cat >>confdefs.h <<\_ACEOF
5228 #define HAS_PPC_THREAD_STATE___R0 1
5229 _ACEOF
5230
5231 fi
5232
5233     { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
5234 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6; }
5235 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 #include <mach/thread_status.h>
5245
5246 int
5247 main ()
5248 {
5249 static ppc_thread_state64_t ac_aggr;
5250 if (ac_aggr.r0)
5251 return 0;
5252   ;
5253   return 0;
5254 }
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5258 case "(($ac_try" in
5259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260   *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263   (eval "$ac_compile") 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } && {
5270          test -z "$ac_c_werror_flag" ||
5271          test ! -s conftest.err
5272        } && test -s conftest.$ac_objext; then
5273   ac_cv_member_ppc_thread_state64_t_r0=yes
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278         cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 #include <mach/thread_status.h>
5285
5286 int
5287 main ()
5288 {
5289 static ppc_thread_state64_t ac_aggr;
5290 if (sizeof ac_aggr.r0)
5291 return 0;
5292   ;
5293   return 0;
5294 }
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5298 case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_compile") 2>conftest.er1
5304   ac_status=$?
5305   grep -v '^ *+' conftest.er1 >conftest.err
5306   rm -f conftest.er1
5307   cat conftest.err >&5
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } && {
5310          test -z "$ac_c_werror_flag" ||
5311          test ! -s conftest.err
5312        } && test -s conftest.$ac_objext; then
5313   ac_cv_member_ppc_thread_state64_t_r0=yes
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318         ac_cv_member_ppc_thread_state64_t_r0=no
5319 fi
5320
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
5323
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 fi
5326 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
5327 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6; }
5328 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
5329
5330 cat >>confdefs.h <<\_ACEOF
5331 #define HAS_PPC_THREAD_STATE64_R0 1
5332 _ACEOF
5333
5334 fi
5335
5336     { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
5337 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6; }
5338 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h.  */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h.  */
5347 #include <mach/thread_status.h>
5348
5349 int
5350 main ()
5351 {
5352 static ppc_thread_state64_t ac_aggr;
5353 if (ac_aggr.__r0)
5354 return 0;
5355   ;
5356   return 0;
5357 }
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (ac_try="$ac_compile"
5361 case "(($ac_try" in
5362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363   *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366   (eval "$ac_compile") 2>conftest.er1
5367   ac_status=$?
5368   grep -v '^ *+' conftest.er1 >conftest.err
5369   rm -f conftest.er1
5370   cat conftest.err >&5
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } && {
5373          test -z "$ac_c_werror_flag" ||
5374          test ! -s conftest.err
5375        } && test -s conftest.$ac_objext; then
5376   ac_cv_member_ppc_thread_state64_t___r0=yes
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381         cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 #include <mach/thread_status.h>
5388
5389 int
5390 main ()
5391 {
5392 static ppc_thread_state64_t ac_aggr;
5393 if (sizeof ac_aggr.__r0)
5394 return 0;
5395   ;
5396   return 0;
5397 }
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (ac_try="$ac_compile"
5401 case "(($ac_try" in
5402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403   *) ac_try_echo=$ac_try;;
5404 esac
5405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406   (eval "$ac_compile") 2>conftest.er1
5407   ac_status=$?
5408   grep -v '^ *+' conftest.er1 >conftest.err
5409   rm -f conftest.er1
5410   cat conftest.err >&5
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); } && {
5413          test -z "$ac_c_werror_flag" ||
5414          test ! -s conftest.err
5415        } && test -s conftest.$ac_objext; then
5416   ac_cv_member_ppc_thread_state64_t___r0=yes
5417 else
5418   echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421         ac_cv_member_ppc_thread_state64_t___r0=no
5422 fi
5423
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 fi
5426
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
5430 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6; }
5431 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
5432
5433 cat >>confdefs.h <<\_ACEOF
5434 #define HAS_PPC_THREAD_STATE64___R0 1
5435 _ACEOF
5436
5437 fi
5438
5439     ;;
5440   i?86*-*-darwin*)
5441     { echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
5442 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6; }
5443 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h.  */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h.  */
5452 #include <sys/cdefs.h>
5453       #include <mach/thread_status.h>
5454
5455 int
5456 main ()
5457 {
5458 static x86_thread_state32_t ac_aggr;
5459 if (ac_aggr.eax)
5460 return 0;
5461   ;
5462   return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5467 case "(($ac_try" in
5468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469   *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472   (eval "$ac_compile") 2>conftest.er1
5473   ac_status=$?
5474   grep -v '^ *+' conftest.er1 >conftest.err
5475   rm -f conftest.er1
5476   cat conftest.err >&5
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); } && {
5479          test -z "$ac_c_werror_flag" ||
5480          test ! -s conftest.err
5481        } && test -s conftest.$ac_objext; then
5482   ac_cv_member_x86_thread_state32_t_eax=yes
5483 else
5484   echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487         cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h.  */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h.  */
5493 #include <sys/cdefs.h>
5494       #include <mach/thread_status.h>
5495
5496 int
5497 main ()
5498 {
5499 static x86_thread_state32_t ac_aggr;
5500 if (sizeof ac_aggr.eax)
5501 return 0;
5502   ;
5503   return 0;
5504 }
5505 _ACEOF
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5508 case "(($ac_try" in
5509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510   *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513   (eval "$ac_compile") 2>conftest.er1
5514   ac_status=$?
5515   grep -v '^ *+' conftest.er1 >conftest.err
5516   rm -f conftest.er1
5517   cat conftest.err >&5
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); } && {
5520          test -z "$ac_c_werror_flag" ||
5521          test ! -s conftest.err
5522        } && test -s conftest.$ac_objext; then
5523   ac_cv_member_x86_thread_state32_t_eax=yes
5524 else
5525   echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5527
5528         ac_cv_member_x86_thread_state32_t_eax=no
5529 fi
5530
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 fi
5533
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 fi
5536 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
5537 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6; }
5538 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
5539
5540 cat >>confdefs.h <<\_ACEOF
5541 #define HAS_X86_THREAD_STATE32_EAX 1
5542 _ACEOF
5543
5544 fi
5545
5546     { echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
5547 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6; }
5548 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557 #include <sys/cdefs.h>
5558       #include <mach/thread_status.h>
5559
5560 int
5561 main ()
5562 {
5563 static x86_thread_state32_t ac_aggr;
5564 if (ac_aggr.__eax)
5565 return 0;
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574   *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577   (eval "$ac_compile") 2>conftest.er1
5578   ac_status=$?
5579   grep -v '^ *+' conftest.er1 >conftest.err
5580   rm -f conftest.er1
5581   cat conftest.err >&5
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } && {
5584          test -z "$ac_c_werror_flag" ||
5585          test ! -s conftest.err
5586        } && test -s conftest.$ac_objext; then
5587   ac_cv_member_x86_thread_state32_t___eax=yes
5588 else
5589   echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592         cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h.  */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h.  */
5598 #include <sys/cdefs.h>
5599       #include <mach/thread_status.h>
5600
5601 int
5602 main ()
5603 {
5604 static x86_thread_state32_t ac_aggr;
5605 if (sizeof ac_aggr.__eax)
5606 return 0;
5607   ;
5608   return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5613 case "(($ac_try" in
5614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615   *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618   (eval "$ac_compile") 2>conftest.er1
5619   ac_status=$?
5620   grep -v '^ *+' conftest.er1 >conftest.err
5621   rm -f conftest.er1
5622   cat conftest.err >&5
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } && {
5625          test -z "$ac_c_werror_flag" ||
5626          test ! -s conftest.err
5627        } && test -s conftest.$ac_objext; then
5628   ac_cv_member_x86_thread_state32_t___eax=yes
5629 else
5630   echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633         ac_cv_member_x86_thread_state32_t___eax=no
5634 fi
5635
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 fi
5638
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 fi
5641 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
5642 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6; }
5643 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
5644
5645 cat >>confdefs.h <<\_ACEOF
5646 #define HAS_X86_THREAD_STATE32___EAX 1
5647 _ACEOF
5648
5649 fi
5650
5651     ;;
5652   x86_64-*-darwin*)
5653     { echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
5654 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6; }
5655 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 #include <sys/cdefs.h>
5665       #include <mach/thread_status.h>
5666
5667 int
5668 main ()
5669 {
5670 static x86_thread_state64_t ac_aggr;
5671 if (ac_aggr.rax)
5672 return 0;
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5679 case "(($ac_try" in
5680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681   *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684   (eval "$ac_compile") 2>conftest.er1
5685   ac_status=$?
5686   grep -v '^ *+' conftest.er1 >conftest.err
5687   rm -f conftest.er1
5688   cat conftest.err >&5
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); } && {
5691          test -z "$ac_c_werror_flag" ||
5692          test ! -s conftest.err
5693        } && test -s conftest.$ac_objext; then
5694   ac_cv_member_x86_thread_state64_t_rax=yes
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699         cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h.  */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h.  */
5705 #include <sys/cdefs.h>
5706       #include <mach/thread_status.h>
5707
5708 int
5709 main ()
5710 {
5711 static x86_thread_state64_t ac_aggr;
5712 if (sizeof ac_aggr.rax)
5713 return 0;
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5720 case "(($ac_try" in
5721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722   *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725   (eval "$ac_compile") 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } && {
5732          test -z "$ac_c_werror_flag" ||
5733          test ! -s conftest.err
5734        } && test -s conftest.$ac_objext; then
5735   ac_cv_member_x86_thread_state64_t_rax=yes
5736 else
5737   echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740         ac_cv_member_x86_thread_state64_t_rax=no
5741 fi
5742
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 fi
5748 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
5749 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6; }
5750 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
5751
5752 cat >>confdefs.h <<\_ACEOF
5753 #define HAS_X86_THREAD_STATE64_RAX 1
5754 _ACEOF
5755
5756 fi
5757
5758     { echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
5759 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6; }
5760 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 #include <sys/cdefs.h>
5770       #include <mach/thread_status.h>
5771
5772 int
5773 main ()
5774 {
5775 static x86_thread_state64_t ac_aggr;
5776 if (ac_aggr.__rax)
5777 return 0;
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5784 case "(($ac_try" in
5785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786   *) ac_try_echo=$ac_try;;
5787 esac
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789   (eval "$ac_compile") 2>conftest.er1
5790   ac_status=$?
5791   grep -v '^ *+' conftest.er1 >conftest.err
5792   rm -f conftest.er1
5793   cat conftest.err >&5
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); } && {
5796          test -z "$ac_c_werror_flag" ||
5797          test ! -s conftest.err
5798        } && test -s conftest.$ac_objext; then
5799   ac_cv_member_x86_thread_state64_t___rax=yes
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804         cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 #include <sys/cdefs.h>
5811       #include <mach/thread_status.h>
5812
5813 int
5814 main ()
5815 {
5816 static x86_thread_state64_t ac_aggr;
5817 if (sizeof ac_aggr.__rax)
5818 return 0;
5819   ;
5820   return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827   *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830   (eval "$ac_compile") 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } && {
5837          test -z "$ac_c_werror_flag" ||
5838          test ! -s conftest.err
5839        } && test -s conftest.$ac_objext; then
5840   ac_cv_member_x86_thread_state64_t___rax=yes
5841 else
5842   echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845         ac_cv_member_x86_thread_state64_t___rax=no
5846 fi
5847
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 fi
5850
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 fi
5853 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
5854 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6; }
5855 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
5856
5857 cat >>confdefs.h <<\_ACEOF
5858 #define HAS_X86_THREAD_STATE64___RAX 1
5859 _ACEOF
5860
5861 fi
5862
5863      ;;
5864   *) ;;
5865 esac
5866
5867 { echo "$as_me:$LINENO: checking for xlc" >&5
5868 echo $ECHO_N "checking for xlc... $ECHO_C" >&6; }
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h.  */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h.  */
5875
5876 int
5877 main ()
5878 {
5879
5880  #ifndef __xlC__
5881  # error
5882  #endif
5883
5884   ;
5885   return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5890 case "(($ac_try" in
5891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892   *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895   (eval "$ac_compile") 2>conftest.er1
5896   ac_status=$?
5897   grep -v '^ *+' conftest.er1 >conftest.err
5898   rm -f conftest.er1
5899   cat conftest.err >&5
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); } && {
5902          test -z "$ac_c_werror_flag" ||
5903          test ! -s conftest.err
5904        } && test -s conftest.$ac_objext; then
5905   compiler_xlc=yes
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910         compiler_xlc=no
5911 fi
5912
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 { echo "$as_me:$LINENO: result: $compiler_xlc" >&5
5915 echo "${ECHO_T}$compiler_xlc" >&6; }
5916
5917
5918 if test $compiler_xlc = yes; then
5919   COMPILER_XLC_TRUE=
5920   COMPILER_XLC_FALSE='#'
5921 else
5922   COMPILER_XLC_TRUE='#'
5923   COMPILER_XLC_FALSE=
5924 fi
5925
5926 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
5927   # the darwin stack-frame-walking code is completely broken on xlc
5928   cat >>confdefs.h <<\_ACEOF
5929 #define DARWIN_DONT_PARSE_STACK 1
5930 _ACEOF
5931
5932 fi
5933
5934 # We never want libdl on darwin. It is a fake libdl that just ends up making
5935 # dyld calls anyway
5936 case "$host" in
5937   *-*-darwin*) ;;
5938   *)
5939     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5940 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5942   echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944   ac_check_lib_save_LIBS=$LIBS
5945 LIBS="-ldl  $LIBS"
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h.  */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h.  */
5952
5953 /* Override any GCC internal prototype to avoid an error.
5954    Use char because int might match the return type of a GCC
5955    builtin and then its argument prototype would still apply.  */
5956 #ifdef __cplusplus
5957 extern "C"
5958 #endif
5959 char dlopen ();
5960 int
5961 main ()
5962 {
5963 return dlopen ();
5964   ;
5965   return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (ac_try="$ac_link"
5970 case "(($ac_try" in
5971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972   *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975   (eval "$ac_link") 2>conftest.er1
5976   ac_status=$?
5977   grep -v '^ *+' conftest.er1 >conftest.err
5978   rm -f conftest.er1
5979   cat conftest.err >&5
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } && {
5982          test -z "$ac_c_werror_flag" ||
5983          test ! -s conftest.err
5984        } && test -s conftest$ac_exeext &&
5985        $as_test_x conftest$ac_exeext; then
5986   ac_cv_lib_dl_dlopen=yes
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991         ac_cv_lib_dl_dlopen=no
5992 fi
5993
5994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5995       conftest$ac_exeext conftest.$ac_ext
5996 LIBS=$ac_check_lib_save_LIBS
5997 fi
5998 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5999 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
6000 if test $ac_cv_lib_dl_dlopen = yes; then
6001   THREADDLLIBS="$THREADDLLIBS -ldl"
6002 fi
6003
6004     ;;
6005 esac
6006
6007 case "$host" in
6008   *-*-hpux*)
6009     avoid_cpp_lib=yes;;
6010   *)
6011     avoid_cpp_lib=no;
6012     ;;
6013 esac
6014
6015
6016 if test $avoid_cpp_lib = yes; then
6017   AVOID_CPP_LIB_TRUE=
6018   AVOID_CPP_LIB_FALSE='#'
6019 else
6020   AVOID_CPP_LIB_TRUE='#'
6021   AVOID_CPP_LIB_FALSE=
6022 fi
6023
6024
6025 # extra LD Flags which are required for targets
6026 case "${host}" in
6027   *-*-darwin*)
6028     extra_ldflags_libgc=-Wl,-single_module
6029     ;;
6030 esac
6031
6032
6033
6034
6035 target_all=libgc.la
6036
6037
6038 TARGET_ECOS="no"
6039
6040 # Check whether --with-ecos was given.
6041 if test "${with_ecos+set}" = set; then
6042   withval=$with_ecos; TARGET_ECOS="$with_ecos"
6043
6044 fi
6045
6046
6047 addobjs=
6048 addlibs=
6049 CXXINCLUDES=
6050 case "$TARGET_ECOS" in
6051    no)
6052       ;;
6053    *)
6054       cat >>confdefs.h <<\_ACEOF
6055 #define ECOS 1
6056 _ACEOF
6057
6058       CXXINCLUDES="-I${TARGET_ECOS}/include"
6059       addobjs="$addobjs ecos.lo"
6060       ;;
6061 esac
6062
6063
6064
6065 if test "${enable_cplusplus}" = yes; then
6066   CPLUSPLUS_TRUE=
6067   CPLUSPLUS_FALSE='#'
6068 else
6069   CPLUSPLUS_TRUE='#'
6070   CPLUSPLUS_FALSE=
6071 fi
6072
6073
6074
6075
6076
6077
6078
6079 # Configuration of shared libraries
6080 #
6081 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6082 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
6083 # Check whether --enable-shared was given.
6084 if test "${enable_shared+set}" = set; then
6085   enableval=$enable_shared; p=${PACKAGE-default}
6086     case $enableval in
6087     yes) enable_shared=yes ;;
6088     no) enable_shared=no ;;
6089     *)
6090       enable_shared=no
6091       # Look at the argument we got.  We use all the common list separators.
6092       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6093       for pkg in $enableval; do
6094         IFS="$lt_save_ifs"
6095         if test "X$pkg" = "X$p"; then
6096           enable_shared=yes
6097         fi
6098       done
6099       IFS="$lt_save_ifs"
6100       ;;
6101     esac
6102 else
6103   enable_shared=yes
6104 fi
6105
6106
6107
6108 case "$host" in
6109  alpha-*-openbsd*)
6110      enable_shared=no
6111      ;;
6112  *)
6113      ;;
6114 esac
6115
6116 { echo "$as_me:$LINENO: result: $enable_shared" >&5
6117 echo "${ECHO_T}$enable_shared" >&6; }
6118
6119 # Configuration of machine-dependent code
6120 #
6121 { echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
6122 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6; }
6123 machdep=
6124 case "$host" in
6125  alpha-*-openbsd*)
6126     machdep="mach_dep.lo"
6127     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
6128        { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
6129 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
6130     fi
6131     ;;
6132  alpha*-*-linux*)
6133     machdep="mach_dep.lo"
6134     ;;
6135  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
6136     cat >>confdefs.h <<\_ACEOF
6137 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
6138 _ACEOF
6139
6140     ;;
6141  mipstx39-*-elf*)
6142     machdep="mach_dep.lo"
6143     cat >>confdefs.h <<\_ACEOF
6144 #define STACKBASE __stackbase
6145 _ACEOF
6146
6147     cat >>confdefs.h <<\_ACEOF
6148 #define DATASTART_IS_ETEXT 1
6149 _ACEOF
6150
6151     ;;
6152  mips-dec-ultrix*)
6153     machdep="mach-dep.lo"
6154     ;;
6155  mips-nec-sysv*|mips-unknown-sysv*)
6156     ;;
6157  mips*-*-linux*)
6158     ;;
6159  mips-*-*)
6160     machdep="mach_dep.lo"
6161                 ;;
6162  sparc*-*-linux*)
6163     machdep="mach_dep.lo sparc_mach_dep.lo"
6164     ;;
6165  sparc-*-netbsd*)
6166     machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
6167     ;;
6168  sparc64-*-netbsd*)
6169     machdep="mach_dep.lo sparc_mach_dep.lo"
6170     ;;
6171  sparc-sun-solaris2.3)
6172     machdep="mach_dep.lo sparc_mach_dep.lo"
6173     cat >>confdefs.h <<\_ACEOF
6174 #define SUNOS53_SHARED_LIB 1
6175 _ACEOF
6176
6177     ;;
6178  sparc*-sun-solaris2*)
6179     machdep="mach_dep.lo sparc_mach_dep.lo"
6180     ;;
6181  ia64-*-*)
6182     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
6183     ;;
6184 esac
6185 if test x"$machdep" = x; then
6186 { echo "$as_me:$LINENO: result: $machdep" >&5
6187 echo "${ECHO_T}$machdep" >&6; }
6188    machdep="mach_dep.lo"
6189 fi
6190 addobjs="$addobjs $machdep"
6191
6192
6193
6194 # Check whether --enable-static was given.
6195 if test "${enable_static+set}" = set; then
6196   enableval=$enable_static; p=${PACKAGE-default}
6197     case $enableval in
6198     yes) enable_static=yes ;;
6199     no) enable_static=no ;;
6200     *)
6201      enable_static=no
6202       # Look at the argument we got.  We use all the common list separators.
6203       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6204       for pkg in $enableval; do
6205         IFS="$lt_save_ifs"
6206         if test "X$pkg" = "X$p"; then
6207           enable_static=yes
6208         fi
6209       done
6210       IFS="$lt_save_ifs"
6211       ;;
6212     esac
6213 else
6214   enable_static=yes
6215 fi
6216
6217
6218 # Check whether --enable-fast-install was given.
6219 if test "${enable_fast_install+set}" = set; then
6220   enableval=$enable_fast_install; p=${PACKAGE-default}
6221     case $enableval in
6222     yes) enable_fast_install=yes ;;
6223     no) enable_fast_install=no ;;
6224     *)
6225       enable_fast_install=no
6226       # Look at the argument we got.  We use all the common list separators.
6227       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6228       for pkg in $enableval; do
6229         IFS="$lt_save_ifs"
6230         if test "X$pkg" = "X$p"; then
6231           enable_fast_install=yes
6232         fi
6233       done
6234       IFS="$lt_save_ifs"
6235       ;;
6236     esac
6237 else
6238   enable_fast_install=yes
6239 fi
6240
6241
6242 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6243 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6244 if test "${lt_cv_path_SED+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   # Loop through the user's path and test for sed and gsed.
6248 # Then use that list of sed's as ones to test for truncation.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254   for lt_ac_prog in sed gsed; do
6255     for ac_exec_ext in '' $ac_executable_extensions; do
6256       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6257         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6258       fi
6259     done
6260   done
6261 done
6262 lt_ac_max=0
6263 lt_ac_count=0
6264 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6265 # along with /bin/sed that truncates output.
6266 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6267   test ! -f $lt_ac_sed && continue
6268   cat /dev/null > conftest.in
6269   lt_ac_count=0
6270   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6271   # Check for GNU sed and select it if it is found.
6272   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6273     lt_cv_path_SED=$lt_ac_sed
6274     break
6275   fi
6276   while true; do
6277     cat conftest.in conftest.in >conftest.tmp
6278     mv conftest.tmp conftest.in
6279     cp conftest.in conftest.nl
6280     echo >>conftest.nl
6281     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6282     cmp -s conftest.out conftest.nl || break
6283     # 10000 chars as input seems more than enough
6284     test $lt_ac_count -gt 10 && break
6285     lt_ac_count=`expr $lt_ac_count + 1`
6286     if test $lt_ac_count -gt $lt_ac_max; then
6287       lt_ac_max=$lt_ac_count
6288       lt_cv_path_SED=$lt_ac_sed
6289     fi
6290   done
6291 done
6292
6293 fi
6294
6295 SED=$lt_cv_path_SED
6296 { echo "$as_me:$LINENO: result: $SED" >&5
6297 echo "${ECHO_T}$SED" >&6; }
6298
6299 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6300 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6301 if test "${ac_cv_path_GREP+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   # Extract the first word of "grep ggrep" to use in msg output
6305 if test -z "$GREP"; then
6306 set dummy grep ggrep; ac_prog_name=$2
6307 if test "${ac_cv_path_GREP+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   ac_path_GREP_found=false
6311 # Loop through the user's path and test for each of PROGNAME-LIST
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317   for ac_prog in grep ggrep; do
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6320     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6321     # Check for GNU ac_path_GREP and select it if it is found.
6322   # Check for GNU $ac_path_GREP
6323 case `"$ac_path_GREP" --version 2>&1` in
6324 *GNU*)
6325   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6326 *)
6327   ac_count=0
6328   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6329   while :
6330   do
6331     cat "conftest.in" "conftest.in" >"conftest.tmp"
6332     mv "conftest.tmp" "conftest.in"
6333     cp "conftest.in" "conftest.nl"
6334     echo 'GREP' >> "conftest.nl"
6335     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6336     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6337     ac_count=`expr $ac_count + 1`
6338     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6339       # Best one so far, save it but keep looking for a better one
6340       ac_cv_path_GREP="$ac_path_GREP"
6341       ac_path_GREP_max=$ac_count
6342     fi
6343     # 10*(2^10) chars as input seems more than enough
6344     test $ac_count -gt 10 && break
6345   done
6346   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6347 esac
6348
6349
6350     $ac_path_GREP_found && break 3
6351   done
6352 done
6353
6354 done
6355 IFS=$as_save_IFS
6356
6357
6358 fi
6359
6360 GREP="$ac_cv_path_GREP"
6361 if test -z "$GREP"; then
6362   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6363 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6364    { (exit 1); exit 1; }; }
6365 fi
6366
6367 else
6368   ac_cv_path_GREP=$GREP
6369 fi
6370
6371
6372 fi
6373 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6374 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6375  GREP="$ac_cv_path_GREP"
6376
6377
6378 { echo "$as_me:$LINENO: checking for egrep" >&5
6379 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6380 if test "${ac_cv_path_EGREP+set}" = set; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6384    then ac_cv_path_EGREP="$GREP -E"
6385    else
6386      # Extract the first word of "egrep" to use in msg output
6387 if test -z "$EGREP"; then
6388 set dummy egrep; ac_prog_name=$2
6389 if test "${ac_cv_path_EGREP+set}" = set; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   ac_path_EGREP_found=false
6393 # Loop through the user's path and test for each of PROGNAME-LIST
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399   for ac_prog in egrep; do
6400   for ac_exec_ext in '' $ac_executable_extensions; do
6401     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6402     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6403     # Check for GNU ac_path_EGREP and select it if it is found.
6404   # Check for GNU $ac_path_EGREP
6405 case `"$ac_path_EGREP" --version 2>&1` in
6406 *GNU*)
6407   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6408 *)
6409   ac_count=0
6410   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6411   while :
6412   do
6413     cat "conftest.in" "conftest.in" >"conftest.tmp"
6414     mv "conftest.tmp" "conftest.in"
6415     cp "conftest.in" "conftest.nl"
6416     echo 'EGREP' >> "conftest.nl"
6417     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6418     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6419     ac_count=`expr $ac_count + 1`
6420     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6421       # Best one so far, save it but keep looking for a better one
6422       ac_cv_path_EGREP="$ac_path_EGREP"
6423       ac_path_EGREP_max=$ac_count
6424     fi
6425     # 10*(2^10) chars as input seems more than enough
6426     test $ac_count -gt 10 && break
6427   done
6428   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6429 esac
6430
6431
6432     $ac_path_EGREP_found && break 3
6433   done
6434 done
6435
6436 done
6437 IFS=$as_save_IFS
6438
6439
6440 fi
6441
6442 EGREP="$ac_cv_path_EGREP"
6443 if test -z "$EGREP"; then
6444   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6446    { (exit 1); exit 1; }; }
6447 fi
6448
6449 else
6450   ac_cv_path_EGREP=$EGREP
6451 fi
6452
6453
6454    fi
6455 fi
6456 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6457 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6458  EGREP="$ac_cv_path_EGREP"
6459
6460
6461
6462 # Check whether --with-gnu-ld was given.
6463 if test "${with_gnu_ld+set}" = set; then
6464   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6465 else
6466   with_gnu_ld=no
6467 fi
6468
6469 ac_prog=ld
6470 if test "$GCC" = yes; then
6471   # Check if gcc -print-prog-name=ld gives a path.
6472   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6474   case $host in
6475   *-*-mingw*)
6476     # gcc leaves a trailing carriage return which upsets mingw
6477     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6478   *)
6479     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6480   esac
6481   case $ac_prog in
6482     # Accept absolute paths.
6483     [\\/]* | ?:[\\/]*)
6484       re_direlt='/[^/][^/]*/\.\./'
6485       # Canonicalize the pathname of ld
6486       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6487       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6488         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6489       done
6490       test -z "$LD" && LD="$ac_prog"
6491       ;;
6492   "")
6493     # If it fails, then pretend we aren't using GCC.
6494     ac_prog=ld
6495     ;;
6496   *)
6497     # If it is relative, then search for the first ld in PATH.
6498     with_gnu_ld=unknown
6499     ;;
6500   esac
6501 elif test "$with_gnu_ld" = yes; then
6502   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6504 else
6505   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6507 fi
6508 if test "${lt_cv_path_LD+set}" = set; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   if test -z "$LD"; then
6512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6513   for ac_dir in $PATH; do
6514     IFS="$lt_save_ifs"
6515     test -z "$ac_dir" && ac_dir=.
6516     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6517       lt_cv_path_LD="$ac_dir/$ac_prog"
6518       # Check to see if the program is GNU ld.  I'd rather use --version,
6519       # but apparently some variants of GNU ld only accept -v.
6520       # Break only if it was the GNU/non-GNU ld that we prefer.
6521       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6522       *GNU* | *'with BFD'*)
6523         test "$with_gnu_ld" != no && break
6524         ;;
6525       *)
6526         test "$with_gnu_ld" != yes && break
6527         ;;
6528       esac
6529     fi
6530   done
6531   IFS="$lt_save_ifs"
6532 else
6533   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6534 fi
6535 fi
6536
6537 LD="$lt_cv_path_LD"
6538 if test -n "$LD"; then
6539   { echo "$as_me:$LINENO: result: $LD" >&5
6540 echo "${ECHO_T}$LD" >&6; }
6541 else
6542   { echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6; }
6544 fi
6545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6547    { (exit 1); exit 1; }; }
6548 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6551   echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6554 case `$LD -v 2>&1 </dev/null` in
6555 *GNU* | *'with BFD'*)
6556   lt_cv_prog_gnu_ld=yes
6557   ;;
6558 *)
6559   lt_cv_prog_gnu_ld=no
6560   ;;
6561 esac
6562 fi
6563 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6565 with_gnu_ld=$lt_cv_prog_gnu_ld
6566
6567
6568 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6569 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6570 if test "${lt_cv_ld_reload_flag+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   lt_cv_ld_reload_flag='-r'
6574 fi
6575 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6576 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6577 reload_flag=$lt_cv_ld_reload_flag
6578 case $reload_flag in
6579 "" | " "*) ;;
6580 *) reload_flag=" $reload_flag" ;;
6581 esac
6582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6583 case $host_os in
6584   darwin*)
6585     if test "$GCC" = yes; then
6586       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6587     else
6588       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6589     fi
6590     ;;
6591 esac
6592
6593 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6594 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6595 if test "${lt_cv_path_NM+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   if test -n "$NM"; then
6599   # Let the user override the test.
6600   lt_cv_path_NM="$NM"
6601 else
6602   lt_nm_to_check="${ac_tool_prefix}nm"
6603   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6604     lt_nm_to_check="$lt_nm_to_check nm"
6605   fi
6606   for lt_tmp_nm in $lt_nm_to_check; do
6607     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6608     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6609       IFS="$lt_save_ifs"
6610       test -z "$ac_dir" && ac_dir=.
6611       tmp_nm="$ac_dir/$lt_tmp_nm"
6612       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6613         # Check to see if the nm accepts a BSD-compat flag.
6614         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6615         #   nm: unknown option "B" ignored
6616         # Tru64's nm complains that /dev/null is an invalid object file
6617         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6618         */dev/null* | *'Invalid file or object type'*)
6619           lt_cv_path_NM="$tmp_nm -B"
6620           break
6621           ;;
6622         *)
6623           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6624           */dev/null*)
6625             lt_cv_path_NM="$tmp_nm -p"
6626             break
6627             ;;
6628           *)
6629             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6630             continue # so that we can try to find one that supports BSD flags
6631             ;;
6632           esac
6633           ;;
6634         esac
6635       fi
6636     done
6637     IFS="$lt_save_ifs"
6638   done
6639   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6640 fi
6641 fi
6642 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6643 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6644 NM="$lt_cv_path_NM"
6645
6646 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6648 LN_S=$as_ln_s
6649 if test "$LN_S" = "ln -s"; then
6650   { echo "$as_me:$LINENO: result: yes" >&5
6651 echo "${ECHO_T}yes" >&6; }
6652 else
6653   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6654 echo "${ECHO_T}no, using $LN_S" >&6; }
6655 fi
6656
6657 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6658 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6659 if test "${lt_cv_deplibs_check_method+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   lt_cv_file_magic_cmd='$MAGIC_CMD'
6663 lt_cv_file_magic_test_file=
6664 lt_cv_deplibs_check_method='unknown'
6665 # Need to set the preceding variable on all platforms that support
6666 # interlibrary dependencies.
6667 # 'none' -- dependencies not supported.
6668 # `unknown' -- same as none, but documents that we really don't know.
6669 # 'pass_all' -- all dependencies passed with no checks.
6670 # 'test_compile' -- check by making test program.
6671 # 'file_magic [[regex]]' -- check by looking for files in library path
6672 # which responds to the $file_magic_cmd with a given extended regex.
6673 # If you have `file' or equivalent on your system and you're not sure
6674 # whether `pass_all' will *always* work, you probably want this one.
6675
6676 case $host_os in
6677 aix4* | aix5*)
6678   lt_cv_deplibs_check_method=pass_all
6679   ;;
6680
6681 beos*)
6682   lt_cv_deplibs_check_method=pass_all
6683   ;;
6684
6685 bsdi[45]*)
6686   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6687   lt_cv_file_magic_cmd='/usr/bin/file -L'
6688   lt_cv_file_magic_test_file=/shlib/libc.so
6689   ;;
6690
6691 cygwin*)
6692   # func_win32_libid is a shell function defined in ltmain.sh
6693   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6694   lt_cv_file_magic_cmd='func_win32_libid'
6695   ;;
6696
6697 mingw* | pw32*)
6698   # Base MSYS/MinGW do not provide the 'file' command needed by
6699   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6700   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6701   lt_cv_file_magic_cmd='$OBJDUMP -f'
6702   ;;
6703
6704 darwin* | rhapsody*)
6705   lt_cv_deplibs_check_method=pass_all
6706   ;;
6707
6708 freebsd* | kfreebsd*-gnu | dragonfly*)
6709   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6710     case $host_cpu in
6711     i*86 )
6712       # Not sure whether the presence of OpenBSD here was a mistake.
6713       # Let's accept both of them until this is cleared up.
6714       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6715       lt_cv_file_magic_cmd=/usr/bin/file
6716       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6717       ;;
6718     esac
6719   else
6720     lt_cv_deplibs_check_method=pass_all
6721   fi
6722   ;;
6723
6724 gnu*)
6725   lt_cv_deplibs_check_method=pass_all
6726   ;;
6727
6728 hpux10.20* | hpux11*)
6729   lt_cv_file_magic_cmd=/usr/bin/file
6730   case $host_cpu in
6731   ia64*)
6732     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6733     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6734     ;;
6735   hppa*64*)
6736     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]'
6737     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6738     ;;
6739   *)
6740     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6741     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6742     ;;
6743   esac
6744   ;;
6745
6746 interix3*)
6747   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6748   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6749   ;;
6750
6751 irix5* | irix6* | nonstopux*)
6752   case $LD in
6753   *-32|*"-32 ") libmagic=32-bit;;
6754   *-n32|*"-n32 ") libmagic=N32;;
6755   *-64|*"-64 ") libmagic=64-bit;;
6756   *) libmagic=never-match;;
6757   esac
6758   lt_cv_deplibs_check_method=pass_all
6759   ;;
6760
6761 # This must be Linux ELF.
6762 linux*)
6763   lt_cv_deplibs_check_method=pass_all
6764   ;;
6765
6766 netbsd*)
6767   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6768     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6769   else
6770     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6771   fi
6772   ;;
6773
6774 newos6*)
6775   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6776   lt_cv_file_magic_cmd=/usr/bin/file
6777   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6778   ;;
6779
6780 nto-qnx*)
6781   lt_cv_deplibs_check_method=unknown
6782   ;;
6783
6784 openbsd*)
6785   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6786     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6787   else
6788     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6789   fi
6790   ;;
6791
6792 osf3* | osf4* | osf5*)
6793   lt_cv_deplibs_check_method=pass_all
6794   ;;
6795
6796 solaris*)
6797   lt_cv_deplibs_check_method=pass_all
6798   ;;
6799
6800 sysv4 | sysv4.3*)
6801   case $host_vendor in
6802   motorola)
6803     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]'
6804     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6805     ;;
6806   ncr)
6807     lt_cv_deplibs_check_method=pass_all
6808     ;;
6809   sequent)
6810     lt_cv_file_magic_cmd='/bin/file'
6811     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6812     ;;
6813   sni)
6814     lt_cv_file_magic_cmd='/bin/file'
6815     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6816     lt_cv_file_magic_test_file=/lib/libc.so
6817     ;;
6818   siemens)
6819     lt_cv_deplibs_check_method=pass_all
6820     ;;
6821   pc)
6822     lt_cv_deplibs_check_method=pass_all
6823     ;;
6824   esac
6825   ;;
6826
6827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6828   lt_cv_deplibs_check_method=pass_all
6829   ;;
6830 esac
6831
6832 fi
6833 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6834 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6835 file_magic_cmd=$lt_cv_file_magic_cmd
6836 deplibs_check_method=$lt_cv_deplibs_check_method
6837 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6838
6839
6840
6841
6842 # If no C compiler was specified, use CC.
6843 LTCC=${LTCC-"$CC"}
6844
6845 # If no C compiler flags were specified, use CFLAGS.
6846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6847
6848 # Allow CC to be a program name with arguments.
6849 compiler=$CC
6850
6851 # Check whether --enable-libtool-lock was given.
6852 if test "${enable_libtool_lock+set}" = set; then
6853   enableval=$enable_libtool_lock;
6854 fi
6855
6856 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6857
6858 # Some flags need to be propagated to the compiler or linker for good
6859 # libtool support.
6860 case $host in
6861 ia64-*-hpux*)
6862   # Find out which ABI we are using.
6863   echo 'int i;' > conftest.$ac_ext
6864   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865   (eval $ac_compile) 2>&5
6866   ac_status=$?
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); }; then
6869     case `/usr/bin/file conftest.$ac_objext` in
6870     *ELF-32*)
6871       HPUX_IA64_MODE="32"
6872       ;;
6873     *ELF-64*)
6874       HPUX_IA64_MODE="64"
6875       ;;
6876     esac
6877   fi
6878   rm -rf conftest*
6879   ;;
6880 *-*-irix6*)
6881   # Find out which ABI we are using.
6882   echo '#line 6882 "configure"' > conftest.$ac_ext
6883   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884   (eval $ac_compile) 2>&5
6885   ac_status=$?
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); }; then
6888    if test "$lt_cv_prog_gnu_ld" = yes; then
6889     case `/usr/bin/file conftest.$ac_objext` in
6890     *32-bit*)
6891       LD="${LD-ld} -melf32bsmip"
6892       ;;
6893     *N32*)
6894       LD="${LD-ld} -melf32bmipn32"
6895       ;;
6896     *64-bit*)
6897       LD="${LD-ld} -melf64bmip"
6898       ;;
6899     esac
6900    else
6901     case `/usr/bin/file conftest.$ac_objext` in
6902     *32-bit*)
6903       LD="${LD-ld} -32"
6904       ;;
6905     *N32*)
6906       LD="${LD-ld} -n32"
6907       ;;
6908     *64-bit*)
6909       LD="${LD-ld} -64"
6910       ;;
6911     esac
6912    fi
6913   fi
6914   rm -rf conftest*
6915   ;;
6916
6917 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6918   # Find out which ABI we are using.
6919   echo 'int i;' > conftest.$ac_ext
6920   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921   (eval $ac_compile) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; then
6925     case `/usr/bin/file conftest.o` in
6926     *32-bit*)
6927       case $host in
6928         x86_64-*linux*)
6929           LD="${LD-ld} -m elf_i386"
6930           ;;
6931         ppc64-*linux*|powerpc64-*linux*)
6932           LD="${LD-ld} -m elf32ppclinux"
6933           ;;
6934         s390x-*linux*)
6935           LD="${LD-ld} -m elf_s390"
6936           ;;
6937         sparc64-*linux*)
6938           LD="${LD-ld} -m elf32_sparc"
6939           ;;
6940       esac
6941       ;;
6942     *64-bit*)
6943       case $host in
6944         x86_64-*linux*)
6945           LD="${LD-ld} -m elf_x86_64"
6946           ;;
6947         ppc*-*linux*|powerpc*-*linux*)
6948           LD="${LD-ld} -m elf64ppc"
6949           ;;
6950         s390*-*linux*)
6951           LD="${LD-ld} -m elf64_s390"
6952           ;;
6953         sparc*-*linux*)
6954           LD="${LD-ld} -m elf64_sparc"
6955           ;;
6956       esac
6957       ;;
6958     esac
6959   fi
6960   rm -rf conftest*
6961   ;;
6962
6963 *-*-sco3.2v5*)
6964   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6965   SAVE_CFLAGS="$CFLAGS"
6966   CFLAGS="$CFLAGS -belf"
6967   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6968 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6969 if test "${lt_cv_cc_needs_belf+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   ac_ext=c
6973 ac_cpp='$CPP $CPPFLAGS'
6974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
6978      cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984
6985 int
6986 main ()
6987 {
6988
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (ac_try="$ac_link"
6995 case "(($ac_try" in
6996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997   *) ac_try_echo=$ac_try;;
6998 esac
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000   (eval "$ac_link") 2>conftest.er1
7001   ac_status=$?
7002   grep -v '^ *+' conftest.er1 >conftest.err
7003   rm -f conftest.er1
7004   cat conftest.err >&5
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); } && {
7007          test -z "$ac_c_werror_flag" ||
7008          test ! -s conftest.err
7009        } && test -s conftest$ac_exeext &&
7010        $as_test_x conftest$ac_exeext; then
7011   lt_cv_cc_needs_belf=yes
7012 else
7013   echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016         lt_cv_cc_needs_belf=no
7017 fi
7018
7019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7020       conftest$ac_exeext conftest.$ac_ext
7021      ac_ext=c
7022 ac_cpp='$CPP $CPPFLAGS'
7023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7026
7027 fi
7028 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7029 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7030   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7031     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7032     CFLAGS="$SAVE_CFLAGS"
7033   fi
7034   ;;
7035 sparc*-*solaris*)
7036   # Find out which ABI we are using.
7037   echo 'int i;' > conftest.$ac_ext
7038   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039   (eval $ac_compile) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); }; then
7043     case `/usr/bin/file conftest.o` in
7044     *64-bit*)
7045       case $lt_cv_prog_gnu_ld in
7046       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7047       *)    LD="${LD-ld} -64" ;;
7048       esac
7049       ;;
7050     esac
7051   fi
7052   rm -rf conftest*
7053   ;;
7054
7055
7056 esac
7057
7058 need_locks="$enable_libtool_lock"
7059
7060
7061 ac_ext=c
7062 ac_cpp='$CPP $CPPFLAGS'
7063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7067 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7068 # On Suns, sometimes $CPP names a directory.
7069 if test -n "$CPP" && test -d "$CPP"; then
7070   CPP=
7071 fi
7072 if test -z "$CPP"; then
7073   if test "${ac_cv_prog_CPP+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076       # Double quotes because CPP needs to be expanded
7077     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7078     do
7079       ac_preproc_ok=false
7080 for ac_c_preproc_warn_flag in '' yes
7081 do
7082   # Use a header file that comes with gcc, so configuring glibc
7083   # with a fresh cross-compiler works.
7084   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7085   # <limits.h> exists even on freestanding compilers.
7086   # On the NeXT, cc -E runs the code through the compiler's parser,
7087   # not just through cpp. "Syntax error" is here to catch this case.
7088   cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 #ifdef __STDC__
7095 # include <limits.h>
7096 #else
7097 # include <assert.h>
7098 #endif
7099                      Syntax error
7100 _ACEOF
7101 if { (ac_try="$ac_cpp conftest.$ac_ext"
7102 case "(($ac_try" in
7103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104   *) ac_try_echo=$ac_try;;
7105 esac
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } >/dev/null && {
7114          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7115          test ! -s conftest.err
7116        }; then
7117   :
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122   # Broken: fails on valid input.
7123 continue
7124 fi
7125
7126 rm -f conftest.err conftest.$ac_ext
7127
7128   # OK, works on sane cases.  Now check whether nonexistent headers
7129   # can be detected and how.
7130   cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h.  */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h.  */
7136 #include <ac_nonexistent.h>
7137 _ACEOF
7138 if { (ac_try="$ac_cpp conftest.$ac_ext"
7139 case "(($ac_try" in
7140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141   *) ac_try_echo=$ac_try;;
7142 esac
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7145   ac_status=$?
7146   grep -v '^ *+' conftest.er1 >conftest.err
7147   rm -f conftest.er1
7148   cat conftest.err >&5
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } >/dev/null && {
7151          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7152          test ! -s conftest.err
7153        }; then
7154   # Broken: success on invalid input.
7155 continue
7156 else
7157   echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160   # Passes both tests.
7161 ac_preproc_ok=:
7162 break
7163 fi
7164
7165 rm -f conftest.err conftest.$ac_ext
7166
7167 done
7168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7169 rm -f conftest.err conftest.$ac_ext
7170 if $ac_preproc_ok; then
7171   break
7172 fi
7173
7174     done
7175     ac_cv_prog_CPP=$CPP
7176
7177 fi
7178   CPP=$ac_cv_prog_CPP
7179 else
7180   ac_cv_prog_CPP=$CPP
7181 fi
7182 { echo "$as_me:$LINENO: result: $CPP" >&5
7183 echo "${ECHO_T}$CPP" >&6; }
7184 ac_preproc_ok=false
7185 for ac_c_preproc_warn_flag in '' yes
7186 do
7187   # Use a header file that comes with gcc, so configuring glibc
7188   # with a fresh cross-compiler works.
7189   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190   # <limits.h> exists even on freestanding compilers.
7191   # On the NeXT, cc -E runs the code through the compiler's parser,
7192   # not just through cpp. "Syntax error" is here to catch this case.
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199 #ifdef __STDC__
7200 # include <limits.h>
7201 #else
7202 # include <assert.h>
7203 #endif
7204                      Syntax error
7205 _ACEOF
7206 if { (ac_try="$ac_cpp conftest.$ac_ext"
7207 case "(($ac_try" in
7208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209   *) ac_try_echo=$ac_try;;
7210 esac
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7213   ac_status=$?
7214   grep -v '^ *+' conftest.er1 >conftest.err
7215   rm -f conftest.er1
7216   cat conftest.err >&5
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); } >/dev/null && {
7219          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7220          test ! -s conftest.err
7221        }; then
7222   :
7223 else
7224   echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7226
7227   # Broken: fails on valid input.
7228 continue
7229 fi
7230
7231 rm -f conftest.err conftest.$ac_ext
7232
7233   # OK, works on sane cases.  Now check whether nonexistent headers
7234   # can be detected and how.
7235   cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <ac_nonexistent.h>
7242 _ACEOF
7243 if { (ac_try="$ac_cpp conftest.$ac_ext"
7244 case "(($ac_try" in
7245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246   *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7250   ac_status=$?
7251   grep -v '^ *+' conftest.er1 >conftest.err
7252   rm -f conftest.er1
7253   cat conftest.err >&5
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); } >/dev/null && {
7256          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7257          test ! -s conftest.err
7258        }; then
7259   # Broken: success on invalid input.
7260 continue
7261 else
7262   echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7264
7265   # Passes both tests.
7266 ac_preproc_ok=:
7267 break
7268 fi
7269
7270 rm -f conftest.err conftest.$ac_ext
7271
7272 done
7273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7274 rm -f conftest.err conftest.$ac_ext
7275 if $ac_preproc_ok; then
7276   :
7277 else
7278   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7279 See \`config.log' for more details." >&5
7280 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7281 See \`config.log' for more details." >&2;}
7282    { (exit 1); exit 1; }; }
7283 fi
7284
7285 ac_ext=c
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290
7291
7292 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7293 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7294 if test "${ac_cv_header_stdc+set}" = set; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h.  */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h.  */
7303 #include <stdlib.h>
7304 #include <stdarg.h>
7305 #include <string.h>
7306 #include <float.h>
7307
7308 int
7309 main ()
7310 {
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7318 case "(($ac_try" in
7319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320   *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323   (eval "$ac_compile") 2>conftest.er1
7324   ac_status=$?
7325   grep -v '^ *+' conftest.er1 >conftest.err
7326   rm -f conftest.er1
7327   cat conftest.err >&5
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); } && {
7330          test -z "$ac_c_werror_flag" ||
7331          test ! -s conftest.err
7332        } && test -s conftest.$ac_objext; then
7333   ac_cv_header_stdc=yes
7334 else
7335   echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338         ac_cv_header_stdc=no
7339 fi
7340
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342
7343 if test $ac_cv_header_stdc = yes; then
7344   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7345   cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h.  */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h.  */
7351 #include <string.h>
7352
7353 _ACEOF
7354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7355   $EGREP "memchr" >/dev/null 2>&1; then
7356   :
7357 else
7358   ac_cv_header_stdc=no
7359 fi
7360 rm -f conftest*
7361
7362 fi
7363
7364 if test $ac_cv_header_stdc = yes; then
7365   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7366   cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h.  */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h.  */
7372 #include <stdlib.h>
7373
7374 _ACEOF
7375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7376   $EGREP "free" >/dev/null 2>&1; then
7377   :
7378 else
7379   ac_cv_header_stdc=no
7380 fi
7381 rm -f conftest*
7382
7383 fi
7384
7385 if test $ac_cv_header_stdc = yes; then
7386   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7387   if test "$cross_compiling" = yes; then
7388   :
7389 else
7390   cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h.  */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h.  */
7396 #include <ctype.h>
7397 #include <stdlib.h>
7398 #if ((' ' & 0x0FF) == 0x020)
7399 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7400 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7401 #else
7402 # define ISLOWER(c) \
7403                    (('a' <= (c) && (c) <= 'i') \
7404                      || ('j' <= (c) && (c) <= 'r') \
7405                      || ('s' <= (c) && (c) <= 'z'))
7406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7407 #endif
7408
7409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7410 int
7411 main ()
7412 {
7413   int i;
7414   for (i = 0; i < 256; i++)
7415     if (XOR (islower (i), ISLOWER (i))
7416         || toupper (i) != TOUPPER (i))
7417       return 2;
7418   return 0;
7419 }
7420 _ACEOF
7421 rm -f conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7423 case "(($ac_try" in
7424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425   *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428   (eval "$ac_link") 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7432   { (case "(($ac_try" in
7433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434   *) ac_try_echo=$ac_try;;
7435 esac
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437   (eval "$ac_try") 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; }; then
7441   :
7442 else
7443   echo "$as_me: program exited with status $ac_status" >&5
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7446
7447 ( exit $ac_status )
7448 ac_cv_header_stdc=no
7449 fi
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7451 fi
7452
7453
7454 fi
7455 fi
7456 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7457 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7458 if test $ac_cv_header_stdc = yes; then
7459
7460 cat >>confdefs.h <<\_ACEOF
7461 #define STDC_HEADERS 1
7462 _ACEOF
7463
7464 fi
7465
7466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7477                   inttypes.h stdint.h unistd.h
7478 do
7479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485   cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h.  */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h.  */
7491 $ac_includes_default
7492
7493 #include <$ac_header>
7494 _ACEOF
7495 rm -f conftest.$ac_objext
7496 if { (ac_try="$ac_compile"
7497 case "(($ac_try" in
7498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499   *) ac_try_echo=$ac_try;;
7500 esac
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502   (eval "$ac_compile") 2>conftest.er1
7503   ac_status=$?
7504   grep -v '^ *+' conftest.er1 >conftest.err
7505   rm -f conftest.er1
7506   cat conftest.err >&5
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } && {
7509          test -z "$ac_c_werror_flag" ||
7510          test ! -s conftest.err
7511        } && test -s conftest.$ac_objext; then
7512   eval "$as_ac_Header=yes"
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7516
7517         eval "$as_ac_Header=no"
7518 fi
7519
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521 fi
7522 ac_res=`eval echo '${'$as_ac_Header'}'`
7523                { echo "$as_me:$LINENO: result: $ac_res" >&5
7524 echo "${ECHO_T}$ac_res" >&6; }
7525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7526   cat >>confdefs.h <<_ACEOF
7527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528 _ACEOF
7529
7530 fi
7531
7532 done
7533
7534
7535
7536 for ac_header in dlfcn.h
7537 do
7538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7540   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 fi
7545 ac_res=`eval echo '${'$as_ac_Header'}'`
7546                { echo "$as_me:$LINENO: result: $ac_res" >&5
7547 echo "${ECHO_T}$ac_res" >&6; }
7548 else
7549   # Is the header compilable?
7550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h.  */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h.  */
7558 $ac_includes_default
7559 #include <$ac_header>
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7563 case "(($ac_try" in
7564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565   *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568   (eval "$ac_compile") 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } && {
7575          test -z "$ac_c_werror_flag" ||
7576          test ! -s conftest.err
7577        } && test -s conftest.$ac_objext; then
7578   ac_header_compiler=yes
7579 else
7580   echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583         ac_header_compiler=no
7584 fi
7585
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7588 echo "${ECHO_T}$ac_header_compiler" >&6; }
7589
7590 # Is the header present?
7591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h.  */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h.  */
7599 #include <$ac_header>
7600 _ACEOF
7601 if { (ac_try="$ac_cpp conftest.$ac_ext"
7602 case "(($ac_try" in
7603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604   *) ac_try_echo=$ac_try;;
7605 esac
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7608   ac_status=$?
7609   grep -v '^ *+' conftest.er1 >conftest.err
7610   rm -f conftest.er1
7611   cat conftest.err >&5
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); } >/dev/null && {
7614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7615          test ! -s conftest.err
7616        }; then
7617   ac_header_preproc=yes
7618 else
7619   echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622   ac_header_preproc=no
7623 fi
7624
7625 rm -f conftest.err conftest.$ac_ext
7626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7627 echo "${ECHO_T}$ac_header_preproc" >&6; }
7628
7629 # So?  What about this header?
7630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7631   yes:no: )
7632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7636     ac_header_preproc=yes
7637     ;;
7638   no:yes:* )
7639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7651     ( cat <<\_ASBOX
7652 ## -------------------------------- ##
7653 ## Report this to Hans.Boehm@hp.com ##
7654 ## -------------------------------- ##
7655 _ASBOX
7656      ) | sed "s/^/$as_me: WARNING:     /" >&2
7657     ;;
7658 esac
7659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   eval "$as_ac_Header=\$ac_header_preproc"
7665 fi
7666 ac_res=`eval echo '${'$as_ac_Header'}'`
7667                { echo "$as_me:$LINENO: result: $ac_res" >&5
7668 echo "${ECHO_T}$ac_res" >&6; }
7669
7670 fi
7671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7672   cat >>confdefs.h <<_ACEOF
7673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7674 _ACEOF
7675
7676 fi
7677
7678 done
7679
7680
7681
7682 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7683     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7684     (test "X$CXX" != "Xg++"))) ; then
7685   ac_ext=cpp
7686 ac_cpp='$CXXCPP $CPPFLAGS'
7687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7690 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7691 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7692 if test -z "$CXXCPP"; then
7693   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696       # Double quotes because CXXCPP needs to be expanded
7697     for CXXCPP in "$CXX -E" "/lib/cpp"
7698     do
7699       ac_preproc_ok=false
7700 for ac_cxx_preproc_warn_flag in '' yes
7701 do
7702   # Use a header file that comes with gcc, so configuring glibc
7703   # with a fresh cross-compiler works.
7704   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7705   # <limits.h> exists even on freestanding compilers.
7706   # On the NeXT, cc -E runs the code through the compiler's parser,
7707   # not just through cpp. "Syntax error" is here to catch this case.
7708   cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714 #ifdef __STDC__
7715 # include <limits.h>
7716 #else
7717 # include <assert.h>
7718 #endif
7719                      Syntax error
7720 _ACEOF
7721 if { (ac_try="$ac_cpp conftest.$ac_ext"
7722 case "(($ac_try" in
7723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724   *) ac_try_echo=$ac_try;;
7725 esac
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7728   ac_status=$?
7729   grep -v '^ *+' conftest.er1 >conftest.err
7730   rm -f conftest.er1
7731   cat conftest.err >&5
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } >/dev/null && {
7734          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7735          test ! -s conftest.err
7736        }; then
7737   :
7738 else
7739   echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7741
7742   # Broken: fails on valid input.
7743 continue
7744 fi
7745
7746 rm -f conftest.err conftest.$ac_ext
7747
7748   # OK, works on sane cases.  Now check whether nonexistent headers
7749   # can be detected and how.
7750   cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756 #include <ac_nonexistent.h>
7757 _ACEOF
7758 if { (ac_try="$ac_cpp conftest.$ac_ext"
7759 case "(($ac_try" in
7760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761   *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7765   ac_status=$?
7766   grep -v '^ *+' conftest.er1 >conftest.err
7767   rm -f conftest.er1
7768   cat conftest.err >&5
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } >/dev/null && {
7771          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7772          test ! -s conftest.err
7773        }; then
7774   # Broken: success on invalid input.
7775 continue
7776 else
7777   echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7779
7780   # Passes both tests.
7781 ac_preproc_ok=:
7782 break
7783 fi
7784
7785 rm -f conftest.err conftest.$ac_ext
7786
7787 done
7788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7789 rm -f conftest.err conftest.$ac_ext
7790 if $ac_preproc_ok; then
7791   break
7792 fi
7793
7794     done
7795     ac_cv_prog_CXXCPP=$CXXCPP
7796
7797 fi
7798   CXXCPP=$ac_cv_prog_CXXCPP
7799 else
7800   ac_cv_prog_CXXCPP=$CXXCPP
7801 fi
7802 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7803 echo "${ECHO_T}$CXXCPP" >&6; }
7804 ac_preproc_ok=false
7805 for ac_cxx_preproc_warn_flag in '' yes
7806 do
7807   # Use a header file that comes with gcc, so configuring glibc
7808   # with a fresh cross-compiler works.
7809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7810   # <limits.h> exists even on freestanding compilers.
7811   # On the NeXT, cc -E runs the code through the compiler's parser,
7812   # not just through cpp. "Syntax error" is here to catch this case.
7813   cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h.  */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h.  */
7819 #ifdef __STDC__
7820 # include <limits.h>
7821 #else
7822 # include <assert.h>
7823 #endif
7824                      Syntax error
7825 _ACEOF
7826 if { (ac_try="$ac_cpp conftest.$ac_ext"
7827 case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7833   ac_status=$?
7834   grep -v '^ *+' conftest.er1 >conftest.err
7835   rm -f conftest.er1
7836   cat conftest.err >&5
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } >/dev/null && {
7839          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7840          test ! -s conftest.err
7841        }; then
7842   :
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847   # Broken: fails on valid input.
7848 continue
7849 fi
7850
7851 rm -f conftest.err conftest.$ac_ext
7852
7853   # OK, works on sane cases.  Now check whether nonexistent headers
7854   # can be detected and how.
7855   cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 #include <ac_nonexistent.h>
7862 _ACEOF
7863 if { (ac_try="$ac_cpp conftest.$ac_ext"
7864 case "(($ac_try" in
7865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866   *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7870   ac_status=$?
7871   grep -v '^ *+' conftest.er1 >conftest.err
7872   rm -f conftest.er1
7873   cat conftest.err >&5
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } >/dev/null && {
7876          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7877          test ! -s conftest.err
7878        }; then
7879   # Broken: success on invalid input.
7880 continue
7881 else
7882   echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7884
7885   # Passes both tests.
7886 ac_preproc_ok=:
7887 break
7888 fi
7889
7890 rm -f conftest.err conftest.$ac_ext
7891
7892 done
7893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7894 rm -f conftest.err conftest.$ac_ext
7895 if $ac_preproc_ok; then
7896   :
7897 else
7898   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7899 See \`config.log' for more details." >&5
7900 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7901 See \`config.log' for more details." >&2;}
7902    { (exit 1); exit 1; }; }
7903 fi
7904
7905 ac_ext=cpp
7906 ac_cpp='$CXXCPP $CPPFLAGS'
7907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7910
7911 fi
7912
7913
7914 ac_ext=f
7915 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7916 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7918 if test -n "$ac_tool_prefix"; then
7919   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
7920   do
7921     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_prog_F77+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   if test -n "$F77"; then
7929   ac_cv_prog_F77="$F77" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934   IFS=$as_save_IFS
7935   test -z "$as_dir" && as_dir=.
7936   for ac_exec_ext in '' $ac_executable_extensions; do
7937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940     break 2
7941   fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 F77=$ac_cv_prog_F77
7949 if test -n "$F77"; then
7950   { echo "$as_me:$LINENO: result: $F77" >&5
7951 echo "${ECHO_T}$F77" >&6; }
7952 else
7953   { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
7955 fi
7956
7957
7958     test -n "$F77" && break
7959   done
7960 fi
7961 if test -z "$F77"; then
7962   ac_ct_F77=$F77
7963   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
7964 do
7965   # Extract the first word of "$ac_prog", so it can be a program name with args.
7966 set dummy $ac_prog; ac_word=$2
7967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7969 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   if test -n "$ac_ct_F77"; then
7973   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7974 else
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7977 do
7978   IFS=$as_save_IFS
7979   test -z "$as_dir" && as_dir=.
7980   for ac_exec_ext in '' $ac_executable_extensions; do
7981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7982     ac_cv_prog_ac_ct_F77="$ac_prog"
7983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7984     break 2
7985   fi
7986 done
7987 done
7988 IFS=$as_save_IFS
7989
7990 fi
7991 fi
7992 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7993 if test -n "$ac_ct_F77"; then
7994   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7995 echo "${ECHO_T}$ac_ct_F77" >&6; }
7996 else
7997   { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
7999 fi
8000
8001
8002   test -n "$ac_ct_F77" && break
8003 done
8004
8005   if test "x$ac_ct_F77" = x; then
8006     F77=""
8007   else
8008     case $cross_compiling:$ac_tool_warned in
8009 yes:)
8010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8011 whose name does not start with the host triplet.  If you think this
8012 configuration is useful to you, please write to autoconf@gnu.org." >&5
8013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8014 whose name does not start with the host triplet.  If you think this
8015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8016 ac_tool_warned=yes ;;
8017 esac
8018     F77=$ac_ct_F77
8019   fi
8020 fi
8021
8022
8023 # Provide some information about the compiler.
8024 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8025 ac_compiler=`set X $ac_compile; echo $2`
8026 { (ac_try="$ac_compiler --version >&5"
8027 case "(($ac_try" in
8028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029   *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032   (eval "$ac_compiler --version >&5") 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); }
8036 { (ac_try="$ac_compiler -v >&5"
8037 case "(($ac_try" in
8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039   *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042   (eval "$ac_compiler -v >&5") 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }
8046 { (ac_try="$ac_compiler -V >&5"
8047 case "(($ac_try" in
8048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049   *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052   (eval "$ac_compiler -V >&5") 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }
8056 rm -f a.out
8057
8058 # If we don't use `.F' as extension, the preprocessor is not run on the
8059 # input file.  (Note that this only needs to work for GNU compilers.)
8060 ac_save_ext=$ac_ext
8061 ac_ext=F
8062 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8063 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8064 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   cat >conftest.$ac_ext <<_ACEOF
8068       program main
8069 #ifndef __GNUC__
8070        choke me
8071 #endif
8072
8073       end
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079   *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082   (eval "$ac_compile") 2>conftest.er1
8083   ac_status=$?
8084   grep -v '^ *+' conftest.er1 >conftest.err
8085   rm -f conftest.er1
8086   cat conftest.err >&5
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); } && {
8089          test -z "$ac_f77_werror_flag" ||
8090          test ! -s conftest.err
8091        } && test -s conftest.$ac_objext; then
8092   ac_compiler_gnu=yes
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097         ac_compiler_gnu=no
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8102
8103 fi
8104 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8105 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
8106 ac_ext=$ac_save_ext
8107 ac_test_FFLAGS=${FFLAGS+set}
8108 ac_save_FFLAGS=$FFLAGS
8109 FFLAGS=
8110 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8111 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
8112 if test "${ac_cv_prog_f77_g+set}" = set; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115   FFLAGS=-g
8116 cat >conftest.$ac_ext <<_ACEOF
8117       program main
8118
8119       end
8120 _ACEOF
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8123 case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128   (eval "$ac_compile") 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } && {
8135          test -z "$ac_f77_werror_flag" ||
8136          test ! -s conftest.err
8137        } && test -s conftest.$ac_objext; then
8138   ac_cv_prog_f77_g=yes
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143         ac_cv_prog_f77_g=no
8144 fi
8145
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147
8148 fi
8149 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8150 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
8151 if test "$ac_test_FFLAGS" = set; then
8152   FFLAGS=$ac_save_FFLAGS
8153 elif test $ac_cv_prog_f77_g = yes; then
8154   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8155     FFLAGS="-g -O2"
8156   else
8157     FFLAGS="-g"
8158   fi
8159 else
8160   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8161     FFLAGS="-O2"
8162   else
8163     FFLAGS=
8164   fi
8165 fi
8166
8167 G77=`test $ac_compiler_gnu = yes && echo yes`
8168 ac_ext=c
8169 ac_cpp='$CPP $CPPFLAGS'
8170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8173
8174
8175
8176 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8177
8178 # find the maximum length of command line arguments
8179 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8180 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8181 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184     i=0
8185   teststring="ABCD"
8186
8187   case $build_os in
8188   msdosdjgpp*)
8189     # On DJGPP, this test can blow up pretty badly due to problems in libc
8190     # (any single argument exceeding 2000 bytes causes a buffer overrun
8191     # during glob expansion).  Even if it were fixed, the result of this
8192     # check would be larger than it should be.
8193     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8194     ;;
8195
8196   gnu*)
8197     # Under GNU Hurd, this test is not required because there is
8198     # no limit to the length of command line arguments.
8199     # Libtool will interpret -1 as no limit whatsoever
8200     lt_cv_sys_max_cmd_len=-1;
8201     ;;
8202
8203   cygwin* | mingw*)
8204     # On Win9x/ME, this test blows up -- it succeeds, but takes
8205     # about 5 minutes as the teststring grows exponentially.
8206     # Worse, since 9x/ME are not pre-emptively multitasking,
8207     # you end up with a "frozen" computer, even though with patience
8208     # the test eventually succeeds (with a max line length of 256k).
8209     # Instead, let's just punt: use the minimum linelength reported by
8210     # all of the supported platforms: 8192 (on NT/2K/XP).
8211     lt_cv_sys_max_cmd_len=8192;
8212     ;;
8213
8214   amigaos*)
8215     # On AmigaOS with pdksh, this test takes hours, literally.
8216     # So we just punt and use a minimum line length of 8192.
8217     lt_cv_sys_max_cmd_len=8192;
8218     ;;
8219
8220   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8221     # This has been around since 386BSD, at least.  Likely further.
8222     if test -x /sbin/sysctl; then
8223       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8224     elif test -x /usr/sbin/sysctl; then
8225       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8226     else
8227       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8228     fi
8229     # And add a safety zone
8230     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8231     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8232     ;;
8233
8234   interix*)
8235     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8236     lt_cv_sys_max_cmd_len=196608
8237     ;;
8238
8239   osf*)
8240     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8241     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8242     # nice to cause kernel panics so lets avoid the loop below.
8243     # First set a reasonable default.
8244     lt_cv_sys_max_cmd_len=16384
8245     #
8246     if test -x /sbin/sysconfig; then
8247       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8248         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8249       esac
8250     fi
8251     ;;
8252   sco3.2v5*)
8253     lt_cv_sys_max_cmd_len=102400
8254     ;;
8255   sysv5* | sco5v6* | sysv4.2uw2*)
8256     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8257     if test -n "$kargmax"; then
8258       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8259     else
8260       lt_cv_sys_max_cmd_len=32768
8261     fi
8262     ;;
8263   *)
8264     # If test is not a shell built-in, we'll probably end up computing a
8265     # maximum length that is only half of the actual maximum length, but
8266     # we can't tell.
8267     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8268     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8269                = "XX$teststring") >/dev/null 2>&1 &&
8270             new_result=`expr "X$teststring" : ".*" 2>&1` &&
8271             lt_cv_sys_max_cmd_len=$new_result &&
8272             test $i != 17 # 1/2 MB should be enough
8273     do
8274       i=`expr $i + 1`
8275       teststring=$teststring$teststring
8276     done
8277     teststring=
8278     # Add a significant safety factor because C++ compilers can tack on massive
8279     # amounts of additional arguments before passing them to the linker.
8280     # It appears as though 1/2 is a usable value.
8281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8282     ;;
8283   esac
8284
8285 fi
8286
8287 if test -n $lt_cv_sys_max_cmd_len ; then
8288   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8290 else
8291   { echo "$as_me:$LINENO: result: none" >&5
8292 echo "${ECHO_T}none" >&6; }
8293 fi
8294
8295
8296
8297
8298 # Check for command to grab the raw symbol name followed by C symbol from nm.
8299 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304
8305 # These are sane defaults that work on at least a few old systems.
8306 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8307
8308 # Character class describing NM global symbol codes.
8309 symcode='[BCDEGRST]'
8310
8311 # Regexp to match symbols that can be accessed directly from C.
8312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8313
8314 # Transform an extracted symbol line into a proper C declaration
8315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8316
8317 # Transform an extracted symbol line into symbol name and symbol address
8318 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'"
8319
8320 # Define system-specific variables.
8321 case $host_os in
8322 aix*)
8323   symcode='[BCDT]'
8324   ;;
8325 cygwin* | mingw* | pw32*)
8326   symcode='[ABCDGISTW]'
8327   ;;
8328 hpux*) # Its linker distinguishes data from code symbols
8329   if test "$host_cpu" = ia64; then
8330     symcode='[ABCDEGRST]'
8331   fi
8332   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8333   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'"
8334   ;;
8335 linux*)
8336   if test "$host_cpu" = ia64; then
8337     symcode='[ABCDGIRSTW]'
8338     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8339     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'"
8340   fi
8341   ;;
8342 irix* | nonstopux*)
8343   symcode='[BCDEGRST]'
8344   ;;
8345 osf*)
8346   symcode='[BCDEGQRST]'
8347   ;;
8348 solaris*)
8349   symcode='[BDRT]'
8350   ;;
8351 sco3.2v5*)
8352   symcode='[DT]'
8353   ;;
8354 sysv4.2uw2*)
8355   symcode='[DT]'
8356   ;;
8357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8358   symcode='[ABDT]'
8359   ;;
8360 sysv4)
8361   symcode='[DFNSTU]'
8362   ;;
8363 esac
8364
8365 # Handle CRLF in mingw tool chain
8366 opt_cr=
8367 case $build_os in
8368 mingw*)
8369   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8370   ;;
8371 esac
8372
8373 # If we're using GNU nm, then use its standard symbol codes.
8374 case `$NM -V 2>&1` in
8375 *GNU* | *'with BFD'*)
8376   symcode='[ABCDGIRSTW]' ;;
8377 esac
8378
8379 # Try without a prefix undercore, then with it.
8380 for ac_symprfx in "" "_"; do
8381
8382   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8383   symxfrm="\\1 $ac_symprfx\\2 \\2"
8384
8385   # Write the raw and C identifiers.
8386   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8387
8388   # Check to see that the pipe works correctly.
8389   pipe_works=no
8390
8391   rm -f conftest*
8392   cat > conftest.$ac_ext <<EOF
8393 #ifdef __cplusplus
8394 extern "C" {
8395 #endif
8396 char nm_test_var;
8397 void nm_test_func(){}
8398 #ifdef __cplusplus
8399 }
8400 #endif
8401 int main(){nm_test_var='a';nm_test_func();return(0);}
8402 EOF
8403
8404   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8405   (eval $ac_compile) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; then
8409     # Now try to grab the symbols.
8410     nlist=conftest.nm
8411     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8412   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } && test -s "$nlist"; then
8416       # Try sorting and uniquifying the output.
8417       if sort "$nlist" | uniq > "$nlist"T; then
8418         mv -f "$nlist"T "$nlist"
8419       else
8420         rm -f "$nlist"T
8421       fi
8422
8423       # Make sure that we snagged all the symbols we need.
8424       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8425         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8426           cat <<EOF > conftest.$ac_ext
8427 #ifdef __cplusplus
8428 extern "C" {
8429 #endif
8430
8431 EOF
8432           # Now generate the symbol file.
8433           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8434
8435           cat <<EOF >> conftest.$ac_ext
8436 #if defined (__STDC__) && __STDC__
8437 # define lt_ptr_t void *
8438 #else
8439 # define lt_ptr_t char *
8440 # define const
8441 #endif
8442
8443 /* The mapping between symbol names and symbols. */
8444 const struct {
8445   const char *name;
8446   lt_ptr_t address;
8447 }
8448 lt_preloaded_symbols[] =
8449 {
8450 EOF
8451           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8452           cat <<\EOF >> conftest.$ac_ext
8453   {0, (lt_ptr_t) 0}
8454 };
8455
8456 #ifdef __cplusplus
8457 }
8458 #endif
8459 EOF
8460           # Now try linking the two files.
8461           mv conftest.$ac_objext conftstm.$ac_objext
8462           lt_save_LIBS="$LIBS"
8463           lt_save_CFLAGS="$CFLAGS"
8464           LIBS="conftstm.$ac_objext"
8465           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8466           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8467   (eval $ac_link) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8471             pipe_works=yes
8472           fi
8473           LIBS="$lt_save_LIBS"
8474           CFLAGS="$lt_save_CFLAGS"
8475         else
8476           echo "cannot find nm_test_func in $nlist" >&5
8477         fi
8478       else
8479         echo "cannot find nm_test_var in $nlist" >&5
8480       fi
8481     else
8482       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8483     fi
8484   else
8485     echo "$progname: failed program was:" >&5
8486     cat conftest.$ac_ext >&5
8487   fi
8488   rm -f conftest* conftst*
8489
8490   # Do not use the global_symbol_pipe unless it works.
8491   if test "$pipe_works" = yes; then
8492     break
8493   else
8494     lt_cv_sys_global_symbol_pipe=
8495   fi
8496 done
8497
8498 fi
8499
8500 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8501   lt_cv_sys_global_symbol_to_cdecl=
8502 fi
8503 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8504   { echo "$as_me:$LINENO: result: failed" >&5
8505 echo "${ECHO_T}failed" >&6; }
8506 else
8507   { echo "$as_me:$LINENO: result: ok" >&5
8508 echo "${ECHO_T}ok" >&6; }
8509 fi
8510
8511 { echo "$as_me:$LINENO: checking for objdir" >&5
8512 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8513 if test "${lt_cv_objdir+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   rm -f .libs 2>/dev/null
8517 mkdir .libs 2>/dev/null
8518 if test -d .libs; then
8519   lt_cv_objdir=.libs
8520 else
8521   # MS-DOS does not allow filenames that begin with a dot.
8522   lt_cv_objdir=_libs
8523 fi
8524 rmdir .libs 2>/dev/null
8525 fi
8526 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8527 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8528 objdir=$lt_cv_objdir
8529
8530
8531
8532
8533
8534 case $host_os in
8535 aix3*)
8536   # AIX sometimes has problems with the GCC collect2 program.  For some
8537   # reason, if we set the COLLECT_NAMES environment variable, the problems
8538   # vanish in a puff of smoke.
8539   if test "X${COLLECT_NAMES+set}" != Xset; then
8540     COLLECT_NAMES=
8541     export COLLECT_NAMES
8542   fi
8543   ;;
8544 esac
8545
8546 # Sed substitution that helps us do robust quoting.  It backslashifies
8547 # metacharacters that are still active within double-quoted strings.
8548 Xsed='sed -e 1s/^X//'
8549 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8550
8551 # Same as above, but do not quote variable references.
8552 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8553
8554 # Sed substitution to delay expansion of an escaped shell variable in a
8555 # double_quote_subst'ed string.
8556 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8557
8558 # Sed substitution to avoid accidental globbing in evaled expressions
8559 no_glob_subst='s/\*/\\\*/g'
8560
8561 # Constants:
8562 rm="rm -f"
8563
8564 # Global variables:
8565 default_ofile=libtool
8566 can_build_shared=yes
8567
8568 # All known linkers require a `.a' archive for static linking (except MSVC,
8569 # which needs '.lib').
8570 libext=a
8571 ltmain="$ac_aux_dir/ltmain.sh"
8572 ofile="$default_ofile"
8573 with_gnu_ld="$lt_cv_prog_gnu_ld"
8574
8575 if test -n "$ac_tool_prefix"; then
8576   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8577 set dummy ${ac_tool_prefix}ar; ac_word=$2
8578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8580 if test "${ac_cv_prog_AR+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   if test -n "$AR"; then
8584   ac_cv_prog_AR="$AR" # Let the user override the test.
8585 else
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8588 do
8589   IFS=$as_save_IFS
8590   test -z "$as_dir" && as_dir=.
8591   for ac_exec_ext in '' $ac_executable_extensions; do
8592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8593     ac_cv_prog_AR="${ac_tool_prefix}ar"
8594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8595     break 2
8596   fi
8597 done
8598 done
8599 IFS=$as_save_IFS
8600
8601 fi
8602 fi
8603 AR=$ac_cv_prog_AR
8604 if test -n "$AR"; then
8605   { echo "$as_me:$LINENO: result: $AR" >&5
8606 echo "${ECHO_T}$AR" >&6; }
8607 else
8608   { echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6; }
8610 fi
8611
8612
8613 fi
8614 if test -z "$ac_cv_prog_AR"; then
8615   ac_ct_AR=$AR
8616   # Extract the first word of "ar", so it can be a program name with args.
8617 set dummy ar; ac_word=$2
8618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8620 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8621   echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623   if test -n "$ac_ct_AR"; then
8624   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8625 else
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8628 do
8629   IFS=$as_save_IFS
8630   test -z "$as_dir" && as_dir=.
8631   for ac_exec_ext in '' $ac_executable_extensions; do
8632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8633     ac_cv_prog_ac_ct_AR="ar"
8634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8635     break 2
8636   fi
8637 done
8638 done
8639 IFS=$as_save_IFS
8640
8641 fi
8642 fi
8643 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8644 if test -n "$ac_ct_AR"; then
8645   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8646 echo "${ECHO_T}$ac_ct_AR" >&6; }
8647 else
8648   { echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6; }
8650 fi
8651
8652   if test "x$ac_ct_AR" = x; then
8653     AR="false"
8654   else
8655     case $cross_compiling:$ac_tool_warned in
8656 yes:)
8657 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8658 whose name does not start with the host triplet.  If you think this
8659 configuration is useful to you, please write to autoconf@gnu.org." >&5
8660 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8661 whose name does not start with the host triplet.  If you think this
8662 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8663 ac_tool_warned=yes ;;
8664 esac
8665     AR=$ac_ct_AR
8666   fi
8667 else
8668   AR="$ac_cv_prog_AR"
8669 fi
8670
8671 if test -n "$ac_tool_prefix"; then
8672   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8673 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8676 if test "${ac_cv_prog_RANLIB+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   if test -n "$RANLIB"; then
8680   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8681 else
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 for as_dir in $PATH
8684 do
8685   IFS=$as_save_IFS
8686   test -z "$as_dir" && as_dir=.
8687   for ac_exec_ext in '' $ac_executable_extensions; do
8688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8689     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8691     break 2
8692   fi
8693 done
8694 done
8695 IFS=$as_save_IFS
8696
8697 fi
8698 fi
8699 RANLIB=$ac_cv_prog_RANLIB
8700 if test -n "$RANLIB"; then
8701   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8702 echo "${ECHO_T}$RANLIB" >&6; }
8703 else
8704   { echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6; }
8706 fi
8707
8708
8709 fi
8710 if test -z "$ac_cv_prog_RANLIB"; then
8711   ac_ct_RANLIB=$RANLIB
8712   # Extract the first word of "ranlib", so it can be a program name with args.
8713 set dummy ranlib; ac_word=$2
8714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8716 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8717   echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719   if test -n "$ac_ct_RANLIB"; then
8720   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725   IFS=$as_save_IFS
8726   test -z "$as_dir" && as_dir=.
8727   for ac_exec_ext in '' $ac_executable_extensions; do
8728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729     ac_cv_prog_ac_ct_RANLIB="ranlib"
8730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731     break 2
8732   fi
8733 done
8734 done
8735 IFS=$as_save_IFS
8736
8737 fi
8738 fi
8739 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8740 if test -n "$ac_ct_RANLIB"; then
8741   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8742 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8743 else
8744   { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8746 fi
8747
8748   if test "x$ac_ct_RANLIB" = x; then
8749     RANLIB=":"
8750   else
8751     case $cross_compiling:$ac_tool_warned in
8752 yes:)
8753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8754 whose name does not start with the host triplet.  If you think this
8755 configuration is useful to you, please write to autoconf@gnu.org." >&5
8756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8757 whose name does not start with the host triplet.  If you think this
8758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8759 ac_tool_warned=yes ;;
8760 esac
8761     RANLIB=$ac_ct_RANLIB
8762   fi
8763 else
8764   RANLIB="$ac_cv_prog_RANLIB"
8765 fi
8766
8767 if test -n "$ac_tool_prefix"; then
8768   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8769 set dummy ${ac_tool_prefix}strip; ac_word=$2
8770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8772 if test "${ac_cv_prog_STRIP+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   if test -n "$STRIP"; then
8776   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8777 else
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8780 do
8781   IFS=$as_save_IFS
8782   test -z "$as_dir" && as_dir=.
8783   for ac_exec_ext in '' $ac_executable_extensions; do
8784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8785     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8787     break 2
8788   fi
8789 done
8790 done
8791 IFS=$as_save_IFS
8792
8793 fi
8794 fi
8795 STRIP=$ac_cv_prog_STRIP
8796 if test -n "$STRIP"; then
8797   { echo "$as_me:$LINENO: result: $STRIP" >&5
8798 echo "${ECHO_T}$STRIP" >&6; }
8799 else
8800   { echo "$as_me:$LINENO: result: no" >&5
8801 echo "${ECHO_T}no" >&6; }
8802 fi
8803
8804
8805 fi
8806 if test -z "$ac_cv_prog_STRIP"; then
8807   ac_ct_STRIP=$STRIP
8808   # Extract the first word of "strip", so it can be a program name with args.
8809 set dummy strip; ac_word=$2
8810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8812 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   if test -n "$ac_ct_STRIP"; then
8816   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8820 do
8821   IFS=$as_save_IFS
8822   test -z "$as_dir" && as_dir=.
8823   for ac_exec_ext in '' $ac_executable_extensions; do
8824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8825     ac_cv_prog_ac_ct_STRIP="strip"
8826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8827     break 2
8828   fi
8829 done
8830 done
8831 IFS=$as_save_IFS
8832
8833 fi
8834 fi
8835 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8836 if test -n "$ac_ct_STRIP"; then
8837   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8838 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8839 else
8840   { echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6; }
8842 fi
8843
8844   if test "x$ac_ct_STRIP" = x; then
8845     STRIP=":"
8846   else
8847     case $cross_compiling:$ac_tool_warned in
8848 yes:)
8849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8850 whose name does not start with the host triplet.  If you think this
8851 configuration is useful to you, please write to autoconf@gnu.org." >&5
8852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8853 whose name does not start with the host triplet.  If you think this
8854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8855 ac_tool_warned=yes ;;
8856 esac
8857     STRIP=$ac_ct_STRIP
8858   fi
8859 else
8860   STRIP="$ac_cv_prog_STRIP"
8861 fi
8862
8863
8864 old_CC="$CC"
8865 old_CFLAGS="$CFLAGS"
8866
8867 # Set sane defaults for various variables
8868 test -z "$AR" && AR=ar
8869 test -z "$AR_FLAGS" && AR_FLAGS=cru
8870 test -z "$AS" && AS=as
8871 test -z "$CC" && CC=cc
8872 test -z "$LTCC" && LTCC=$CC
8873 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8874 test -z "$DLLTOOL" && DLLTOOL=dlltool
8875 test -z "$LD" && LD=ld
8876 test -z "$LN_S" && LN_S="ln -s"
8877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8878 test -z "$NM" && NM=nm
8879 test -z "$SED" && SED=sed
8880 test -z "$OBJDUMP" && OBJDUMP=objdump
8881 test -z "$RANLIB" && RANLIB=:
8882 test -z "$STRIP" && STRIP=:
8883 test -z "$ac_objext" && ac_objext=o
8884
8885 # Determine commands to create old-style static archives.
8886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8887 old_postinstall_cmds='chmod 644 $oldlib'
8888 old_postuninstall_cmds=
8889
8890 if test -n "$RANLIB"; then
8891   case $host_os in
8892   openbsd*)
8893     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8894     ;;
8895   *)
8896     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8897     ;;
8898   esac
8899   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8900 fi
8901
8902 for cc_temp in $compiler""; do
8903   case $cc_temp in
8904     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8905     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8906     \-*) ;;
8907     *) break;;
8908   esac
8909 done
8910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8911
8912
8913 # Only perform the check for file, if the check method requires it
8914 case $deplibs_check_method in
8915 file_magic*)
8916   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8917     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8918 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8919 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922   case $MAGIC_CMD in
8923 [\\/*] |  ?:[\\/]*)
8924   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8925   ;;
8926 *)
8927   lt_save_MAGIC_CMD="$MAGIC_CMD"
8928   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8929   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8930   for ac_dir in $ac_dummy; do
8931     IFS="$lt_save_ifs"
8932     test -z "$ac_dir" && ac_dir=.
8933     if test -f $ac_dir/${ac_tool_prefix}file; then
8934       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8935       if test -n "$file_magic_test_file"; then
8936         case $deplibs_check_method in
8937         "file_magic "*)
8938           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8939           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8940           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8941             $EGREP "$file_magic_regex" > /dev/null; then
8942             :
8943           else
8944             cat <<EOF 1>&2
8945
8946 *** Warning: the command libtool uses to detect shared libraries,
8947 *** $file_magic_cmd, produces output that libtool cannot recognize.
8948 *** The result is that libtool may fail to recognize shared libraries
8949 *** as such.  This will affect the creation of libtool libraries that
8950 *** depend on shared libraries, but programs linked with such libtool
8951 *** libraries will work regardless of this problem.  Nevertheless, you
8952 *** may want to report the problem to your system manager and/or to
8953 *** bug-libtool@gnu.org
8954
8955 EOF
8956           fi ;;
8957         esac
8958       fi
8959       break
8960     fi
8961   done
8962   IFS="$lt_save_ifs"
8963   MAGIC_CMD="$lt_save_MAGIC_CMD"
8964   ;;
8965 esac
8966 fi
8967
8968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8969 if test -n "$MAGIC_CMD"; then
8970   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8971 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8972 else
8973   { echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6; }
8975 fi
8976
8977 if test -z "$lt_cv_path_MAGIC_CMD"; then
8978   if test -n "$ac_tool_prefix"; then
8979     { echo "$as_me:$LINENO: checking for file" >&5
8980 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8981 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8982   echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984   case $MAGIC_CMD in
8985 [\\/*] |  ?:[\\/]*)
8986   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8987   ;;
8988 *)
8989   lt_save_MAGIC_CMD="$MAGIC_CMD"
8990   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8991   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8992   for ac_dir in $ac_dummy; do
8993     IFS="$lt_save_ifs"
8994     test -z "$ac_dir" && ac_dir=.
8995     if test -f $ac_dir/file; then
8996       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8997       if test -n "$file_magic_test_file"; then
8998         case $deplibs_check_method in
8999         "file_magic "*)
9000           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9001           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9002           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9003             $EGREP "$file_magic_regex" > /dev/null; then
9004             :
9005           else
9006             cat <<EOF 1>&2
9007
9008 *** Warning: the command libtool uses to detect shared libraries,
9009 *** $file_magic_cmd, produces output that libtool cannot recognize.
9010 *** The result is that libtool may fail to recognize shared libraries
9011 *** as such.  This will affect the creation of libtool libraries that
9012 *** depend on shared libraries, but programs linked with such libtool
9013 *** libraries will work regardless of this problem.  Nevertheless, you
9014 *** may want to report the problem to your system manager and/or to
9015 *** bug-libtool@gnu.org
9016
9017 EOF
9018           fi ;;
9019         esac
9020       fi
9021       break
9022     fi
9023   done
9024   IFS="$lt_save_ifs"
9025   MAGIC_CMD="$lt_save_MAGIC_CMD"
9026   ;;
9027 esac
9028 fi
9029
9030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9031 if test -n "$MAGIC_CMD"; then
9032   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9033 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9034 else
9035   { echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6; }
9037 fi
9038
9039   else
9040     MAGIC_CMD=:
9041   fi
9042 fi
9043
9044   fi
9045   ;;
9046 esac
9047
9048 enable_dlopen=no
9049 enable_win32_dll=no
9050
9051 # Check whether --enable-libtool-lock was given.
9052 if test "${enable_libtool_lock+set}" = set; then
9053   enableval=$enable_libtool_lock;
9054 fi
9055
9056 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9057
9058
9059 # Check whether --with-pic was given.
9060 if test "${with_pic+set}" = set; then
9061   withval=$with_pic; pic_mode="$withval"
9062 else
9063   pic_mode=default
9064 fi
9065
9066 test -z "$pic_mode" && pic_mode=default
9067
9068 # Use C for the default configuration in the libtool script
9069 tagname=
9070 lt_save_CC="$CC"
9071 ac_ext=c
9072 ac_cpp='$CPP $CPPFLAGS'
9073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9076
9077
9078 # Source file extension for C test sources.
9079 ac_ext=c
9080
9081 # Object file extension for compiled C test sources.
9082 objext=o
9083 objext=$objext
9084
9085 # Code to be used in simple compile tests
9086 lt_simple_compile_test_code="int some_variable = 0;\n"
9087
9088 # Code to be used in simple link tests
9089 lt_simple_link_test_code='int main(){return(0);}\n'
9090
9091
9092 # If no C compiler was specified, use CC.
9093 LTCC=${LTCC-"$CC"}
9094
9095 # If no C compiler flags were specified, use CFLAGS.
9096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9097
9098 # Allow CC to be a program name with arguments.
9099 compiler=$CC
9100
9101
9102 # save warnings/boilerplate of simple test code
9103 ac_outfile=conftest.$ac_objext
9104 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9106 _lt_compiler_boilerplate=`cat conftest.err`
9107 $rm conftest*
9108
9109 ac_outfile=conftest.$ac_objext
9110 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9112 _lt_linker_boilerplate=`cat conftest.err`
9113 $rm conftest*
9114
9115
9116 ## CAVEAT EMPTOR:
9117 ## There is no encapsulation within the following macros, do not change
9118 ## the running order or otherwise move them around unless you know exactly
9119 ## what you are doing...
9120
9121 lt_prog_compiler_no_builtin_flag=
9122
9123 if test "$GCC" = yes; then
9124   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9125
9126
9127 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9128 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9129 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9130   echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132   lt_cv_prog_compiler_rtti_exceptions=no
9133   ac_outfile=conftest.$ac_objext
9134    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9135    lt_compiler_flag="-fno-rtti -fno-exceptions"
9136    # Insert the option either (1) after the last *FLAGS variable, or
9137    # (2) before a word containing "conftest.", or (3) at the end.
9138    # Note that $ac_compile itself does not contain backslashes and begins
9139    # with a dollar sign (not a hyphen), so the echo should work correctly.
9140    # The option is referenced via a variable to avoid confusing sed.
9141    lt_compile=`echo "$ac_compile" | $SED \
9142    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144    -e 's:$: $lt_compiler_flag:'`
9145    (eval echo "\"\$as_me:9145: $lt_compile\"" >&5)
9146    (eval "$lt_compile" 2>conftest.err)
9147    ac_status=$?
9148    cat conftest.err >&5
9149    echo "$as_me:9149: \$? = $ac_status" >&5
9150    if (exit $ac_status) && test -s "$ac_outfile"; then
9151      # The compiler can only warn and ignore the option if not recognized
9152      # So say no if there are warnings other than the usual output.
9153      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9154      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9155      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9156        lt_cv_prog_compiler_rtti_exceptions=yes
9157      fi
9158    fi
9159    $rm conftest*
9160
9161 fi
9162 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9163 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9164
9165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9166     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9167 else
9168     :
9169 fi
9170
9171 fi
9172
9173 lt_prog_compiler_wl=
9174 lt_prog_compiler_pic=
9175 lt_prog_compiler_static=
9176
9177 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9178 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9179
9180   if test "$GCC" = yes; then
9181     lt_prog_compiler_wl='-Wl,'
9182     lt_prog_compiler_static='-static'
9183
9184     case $host_os in
9185       aix*)
9186       # All AIX code is PIC.
9187       if test "$host_cpu" = ia64; then
9188         # AIX 5 now supports IA64 processor
9189         lt_prog_compiler_static='-Bstatic'
9190       fi
9191       ;;
9192
9193     amigaos*)
9194       # FIXME: we need at least 68020 code to build shared libraries, but
9195       # adding the `-m68020' flag to GCC prevents building anything better,
9196       # like `-m68040'.
9197       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9198       ;;
9199
9200     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9201       # PIC is the default for these OSes.
9202       ;;
9203
9204     mingw* | pw32* | os2*)
9205       # This hack is so that the source file can tell whether it is being
9206       # built for inclusion in a dll (and should export symbols for example).
9207       lt_prog_compiler_pic='-DDLL_EXPORT'
9208       ;;
9209
9210     darwin* | rhapsody*)
9211       # PIC is the default on this platform
9212       # Common symbols not allowed in MH_DYLIB files
9213       lt_prog_compiler_pic='-fno-common'
9214       ;;
9215
9216     interix3*)
9217       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9218       # Instead, we relocate shared libraries at runtime.
9219       ;;
9220
9221     msdosdjgpp*)
9222       # Just because we use GCC doesn't mean we suddenly get shared libraries
9223       # on systems that don't support them.
9224       lt_prog_compiler_can_build_shared=no
9225       enable_shared=no
9226       ;;
9227
9228     sysv4*MP*)
9229       if test -d /usr/nec; then
9230         lt_prog_compiler_pic=-Kconform_pic
9231       fi
9232       ;;
9233
9234     hpux*)
9235       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9236       # not for PA HP-UX.
9237       case $host_cpu in
9238       hppa*64*|ia64*)
9239         # +Z the default
9240         ;;
9241       *)
9242         lt_prog_compiler_pic='-fPIC'
9243         ;;
9244       esac
9245       ;;
9246
9247     *)
9248       lt_prog_compiler_pic='-fPIC'
9249       ;;
9250     esac
9251   else
9252     # PORTME Check for flag to pass linker flags through the system compiler.
9253     case $host_os in
9254     aix*)
9255       lt_prog_compiler_wl='-Wl,'
9256       if test "$host_cpu" = ia64; then
9257         # AIX 5 now supports IA64 processor
9258         lt_prog_compiler_static='-Bstatic'
9259       else
9260         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9261       fi
9262       ;;
9263       darwin*)
9264         # PIC is the default on this platform
9265         # Common symbols not allowed in MH_DYLIB files
9266        case $cc_basename in
9267          xlc*)
9268          lt_prog_compiler_pic='-qnocommon'
9269          lt_prog_compiler_wl='-Wl,'
9270          ;;
9271        esac
9272        ;;
9273
9274     mingw* | pw32* | os2*)
9275       # This hack is so that the source file can tell whether it is being
9276       # built for inclusion in a dll (and should export symbols for example).
9277       lt_prog_compiler_pic='-DDLL_EXPORT'
9278       ;;
9279
9280     hpux9* | hpux10* | hpux11*)
9281       lt_prog_compiler_wl='-Wl,'
9282       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9283       # not for PA HP-UX.
9284       case $host_cpu in
9285       hppa*64*|ia64*)
9286         # +Z the default
9287         ;;
9288       *)
9289         lt_prog_compiler_pic='+Z'
9290         ;;
9291       esac
9292       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9293       lt_prog_compiler_static='${wl}-a ${wl}archive'
9294       ;;
9295
9296     irix5* | irix6* | nonstopux*)
9297       lt_prog_compiler_wl='-Wl,'
9298       # PIC (with -KPIC) is the default.
9299       lt_prog_compiler_static='-non_shared'
9300       ;;
9301
9302     newsos6)
9303       lt_prog_compiler_pic='-KPIC'
9304       lt_prog_compiler_static='-Bstatic'
9305       ;;
9306
9307     linux*)
9308       case $cc_basename in
9309       icc* | ecc*)
9310         lt_prog_compiler_wl='-Wl,'
9311         lt_prog_compiler_pic='-KPIC'
9312         lt_prog_compiler_static='-static'
9313         ;;
9314       pgcc* | pgf77* | pgf90* | pgf95*)
9315         # Portland Group compilers (*not* the Pentium gcc compiler,
9316         # which looks to be a dead project)
9317         lt_prog_compiler_wl='-Wl,'
9318         lt_prog_compiler_pic='-fpic'
9319         lt_prog_compiler_static='-Bstatic'
9320         ;;
9321       ccc*)
9322         lt_prog_compiler_wl='-Wl,'
9323         # All Alpha code is PIC.
9324         lt_prog_compiler_static='-non_shared'
9325         ;;
9326       esac
9327       ;;
9328
9329     osf3* | osf4* | osf5*)
9330       lt_prog_compiler_wl='-Wl,'
9331       # All OSF/1 code is PIC.
9332       lt_prog_compiler_static='-non_shared'
9333       ;;
9334
9335     solaris*)
9336       lt_prog_compiler_pic='-KPIC'
9337       lt_prog_compiler_static='-Bstatic'
9338       case $cc_basename in
9339       f77* | f90* | f95*)
9340         lt_prog_compiler_wl='-Qoption ld ';;
9341       *)
9342         lt_prog_compiler_wl='-Wl,';;
9343       esac
9344       ;;
9345
9346     sunos4*)
9347       lt_prog_compiler_wl='-Qoption ld '
9348       lt_prog_compiler_pic='-PIC'
9349       lt_prog_compiler_static='-Bstatic'
9350       ;;
9351
9352     sysv4 | sysv4.2uw2* | sysv4.3*)
9353       lt_prog_compiler_wl='-Wl,'
9354       lt_prog_compiler_pic='-KPIC'
9355       lt_prog_compiler_static='-Bstatic'
9356       ;;
9357
9358     sysv4*MP*)
9359       if test -d /usr/nec ;then
9360         lt_prog_compiler_pic='-Kconform_pic'
9361         lt_prog_compiler_static='-Bstatic'
9362       fi
9363       ;;
9364
9365     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9366       lt_prog_compiler_wl='-Wl,'
9367       lt_prog_compiler_pic='-KPIC'
9368       lt_prog_compiler_static='-Bstatic'
9369       ;;
9370
9371     unicos*)
9372       lt_prog_compiler_wl='-Wl,'
9373       lt_prog_compiler_can_build_shared=no
9374       ;;
9375
9376     uts4*)
9377       lt_prog_compiler_pic='-pic'
9378       lt_prog_compiler_static='-Bstatic'
9379       ;;
9380
9381     *)
9382       lt_prog_compiler_can_build_shared=no
9383       ;;
9384     esac
9385   fi
9386
9387 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9388 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9389
9390 #
9391 # Check to make sure the PIC flag actually works.
9392 #
9393 if test -n "$lt_prog_compiler_pic"; then
9394
9395 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9396 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9397 if test "${lt_prog_compiler_pic_works+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   lt_prog_compiler_pic_works=no
9401   ac_outfile=conftest.$ac_objext
9402    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9403    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9404    # Insert the option either (1) after the last *FLAGS variable, or
9405    # (2) before a word containing "conftest.", or (3) at the end.
9406    # Note that $ac_compile itself does not contain backslashes and begins
9407    # with a dollar sign (not a hyphen), so the echo should work correctly.
9408    # The option is referenced via a variable to avoid confusing sed.
9409    lt_compile=`echo "$ac_compile" | $SED \
9410    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9411    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9412    -e 's:$: $lt_compiler_flag:'`
9413    (eval echo "\"\$as_me:9413: $lt_compile\"" >&5)
9414    (eval "$lt_compile" 2>conftest.err)
9415    ac_status=$?
9416    cat conftest.err >&5
9417    echo "$as_me:9417: \$? = $ac_status" >&5
9418    if (exit $ac_status) && test -s "$ac_outfile"; then
9419      # The compiler can only warn and ignore the option if not recognized
9420      # So say no if there are warnings other than the usual output.
9421      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9422      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9423      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9424        lt_prog_compiler_pic_works=yes
9425      fi
9426    fi
9427    $rm conftest*
9428
9429 fi
9430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9431 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9432
9433 if test x"$lt_prog_compiler_pic_works" = xyes; then
9434     case $lt_prog_compiler_pic in
9435      "" | " "*) ;;
9436      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9437      esac
9438 else
9439     lt_prog_compiler_pic=
9440      lt_prog_compiler_can_build_shared=no
9441 fi
9442
9443 fi
9444 case $host_os in
9445   # For platforms which do not support PIC, -DPIC is meaningless:
9446   *djgpp*)
9447     lt_prog_compiler_pic=
9448     ;;
9449   *)
9450     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9451     ;;
9452 esac
9453
9454 #
9455 # Check to make sure the static flag actually works.
9456 #
9457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9458 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9459 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9460 if test "${lt_prog_compiler_static_works+set}" = set; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   lt_prog_compiler_static_works=no
9464    save_LDFLAGS="$LDFLAGS"
9465    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9466    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9467    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468      # The linker can only warn and ignore the option if not recognized
9469      # So say no if there are warnings
9470      if test -s conftest.err; then
9471        # Append any errors to the config.log.
9472        cat conftest.err 1>&5
9473        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9474        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475        if diff conftest.exp conftest.er2 >/dev/null; then
9476          lt_prog_compiler_static_works=yes
9477        fi
9478      else
9479        lt_prog_compiler_static_works=yes
9480      fi
9481    fi
9482    $rm conftest*
9483    LDFLAGS="$save_LDFLAGS"
9484
9485 fi
9486 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9487 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9488
9489 if test x"$lt_prog_compiler_static_works" = xyes; then
9490     :
9491 else
9492     lt_prog_compiler_static=
9493 fi
9494
9495
9496 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9497 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9498 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9499   echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501   lt_cv_prog_compiler_c_o=no
9502    $rm -r conftest 2>/dev/null
9503    mkdir conftest
9504    cd conftest
9505    mkdir out
9506    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9507
9508    lt_compiler_flag="-o out/conftest2.$ac_objext"
9509    # Insert the option either (1) after the last *FLAGS variable, or
9510    # (2) before a word containing "conftest.", or (3) at the end.
9511    # Note that $ac_compile itself does not contain backslashes and begins
9512    # with a dollar sign (not a hyphen), so the echo should work correctly.
9513    lt_compile=`echo "$ac_compile" | $SED \
9514    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9516    -e 's:$: $lt_compiler_flag:'`
9517    (eval echo "\"\$as_me:9517: $lt_compile\"" >&5)
9518    (eval "$lt_compile" 2>out/conftest.err)
9519    ac_status=$?
9520    cat out/conftest.err >&5
9521    echo "$as_me:9521: \$? = $ac_status" >&5
9522    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9523    then
9524      # The compiler can only warn and ignore the option if not recognized
9525      # So say no if there are warnings
9526      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9527      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9528      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9529        lt_cv_prog_compiler_c_o=yes
9530      fi
9531    fi
9532    chmod u+w . 2>&5
9533    $rm conftest*
9534    # SGI C++ compiler will create directory out/ii_files/ for
9535    # template instantiation
9536    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9537    $rm out/* && rmdir out
9538    cd ..
9539    rmdir conftest
9540    $rm conftest*
9541
9542 fi
9543 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9544 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9545
9546
9547 hard_links="nottested"
9548 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9549   # do not overwrite the value of need_locks provided by the user
9550   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9552   hard_links=yes
9553   $rm conftest*
9554   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9555   touch conftest.a
9556   ln conftest.a conftest.b 2>&5 || hard_links=no
9557   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9558   { echo "$as_me:$LINENO: result: $hard_links" >&5
9559 echo "${ECHO_T}$hard_links" >&6; }
9560   if test "$hard_links" = no; then
9561     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9563     need_locks=warn
9564   fi
9565 else
9566   need_locks=no
9567 fi
9568
9569 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9570 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9571
9572   runpath_var=
9573   allow_undefined_flag=
9574   enable_shared_with_static_runtimes=no
9575   archive_cmds=
9576   archive_expsym_cmds=
9577   old_archive_From_new_cmds=
9578   old_archive_from_expsyms_cmds=
9579   export_dynamic_flag_spec=
9580   whole_archive_flag_spec=
9581   thread_safe_flag_spec=
9582   hardcode_libdir_flag_spec=
9583   hardcode_libdir_flag_spec_ld=
9584   hardcode_libdir_separator=
9585   hardcode_direct=no
9586   hardcode_minus_L=no
9587   hardcode_shlibpath_var=unsupported
9588   link_all_deplibs=unknown
9589   hardcode_automatic=no
9590   module_cmds=
9591   module_expsym_cmds=
9592   always_export_symbols=no
9593   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9594   # include_expsyms should be a list of space-separated symbols to be *always*
9595   # included in the symbol list
9596   include_expsyms=
9597   # exclude_expsyms can be an extended regexp of symbols to exclude
9598   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9599   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9600   # as well as any symbol that contains `d'.
9601   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9602   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9603   # platforms (ab)use it in PIC code, but their linkers get confused if
9604   # the symbol is explicitly referenced.  Since portable code cannot
9605   # rely on this symbol name, it's probably fine to never include it in
9606   # preloaded symbol tables.
9607   extract_expsyms_cmds=
9608   # Just being paranoid about ensuring that cc_basename is set.
9609   for cc_temp in $compiler""; do
9610   case $cc_temp in
9611     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9612     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9613     \-*) ;;
9614     *) break;;
9615   esac
9616 done
9617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9618
9619   case $host_os in
9620   cygwin* | mingw* | pw32*)
9621     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9622     # When not using gcc, we currently assume that we are using
9623     # Microsoft Visual C++.
9624     if test "$GCC" != yes; then
9625       with_gnu_ld=no
9626     fi
9627     ;;
9628   interix*)
9629     # we just hope/assume this is gcc and not c89 (= MSVC++)
9630     with_gnu_ld=yes
9631     ;;
9632   openbsd*)
9633     with_gnu_ld=no
9634     ;;
9635   esac
9636
9637   ld_shlibs=yes
9638   if test "$with_gnu_ld" = yes; then
9639     # If archive_cmds runs LD, not CC, wlarc should be empty
9640     wlarc='${wl}'
9641
9642     # Set some defaults for GNU ld with shared library support. These
9643     # are reset later if shared libraries are not supported. Putting them
9644     # here allows them to be overridden if necessary.
9645     runpath_var=LD_RUN_PATH
9646     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9647     export_dynamic_flag_spec='${wl}--export-dynamic'
9648     # ancient GNU ld didn't support --whole-archive et. al.
9649     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9650         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9651       else
9652         whole_archive_flag_spec=
9653     fi
9654     supports_anon_versioning=no
9655     case `$LD -v 2>/dev/null` in
9656       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9657       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9658       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9659       *\ 2.11.*) ;; # other 2.11 versions
9660       *) supports_anon_versioning=yes ;;
9661     esac
9662
9663     # See if GNU ld supports shared libraries.
9664     case $host_os in
9665     aix3* | aix4* | aix5*)
9666       # On AIX/PPC, the GNU linker is very broken
9667       if test "$host_cpu" != ia64; then
9668         ld_shlibs=no
9669         cat <<EOF 1>&2
9670
9671 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9672 *** to be unable to reliably create shared libraries on AIX.
9673 *** Therefore, libtool is disabling shared libraries support.  If you
9674 *** really care for shared libraries, you may want to modify your PATH
9675 *** so that a non-GNU linker is found, and then restart.
9676
9677 EOF
9678       fi
9679       ;;
9680
9681     amigaos*)
9682       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)'
9683       hardcode_libdir_flag_spec='-L$libdir'
9684       hardcode_minus_L=yes
9685
9686       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9687       # that the semantics of dynamic libraries on AmigaOS, at least up
9688       # to version 4, is to share data among multiple programs linked
9689       # with the same dynamic library.  Since this doesn't match the
9690       # behavior of shared libraries on other platforms, we can't use
9691       # them.
9692       ld_shlibs=no
9693       ;;
9694
9695     beos*)
9696       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9697         allow_undefined_flag=unsupported
9698         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9699         # support --undefined.  This deserves some investigation.  FIXME
9700         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701       else
9702         ld_shlibs=no
9703       fi
9704       ;;
9705
9706     cygwin* | mingw* | pw32*)
9707       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9708       # as there is no search path for DLLs.
9709       hardcode_libdir_flag_spec='-L$libdir'
9710       allow_undefined_flag=unsupported
9711       always_export_symbols=no
9712       enable_shared_with_static_runtimes=yes
9713       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9714
9715       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9716         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9717         # If the export-symbols file already is a .def file (1st line
9718         # is EXPORTS), use it as is; otherwise, prepend...
9719         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9720           cp $export_symbols $output_objdir/$soname.def;
9721         else
9722           echo EXPORTS > $output_objdir/$soname.def;
9723           cat $export_symbols >> $output_objdir/$soname.def;
9724         fi~
9725         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9726       else
9727         ld_shlibs=no
9728       fi
9729       ;;
9730
9731     interix3*)
9732       hardcode_direct=no
9733       hardcode_shlibpath_var=no
9734       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9735       export_dynamic_flag_spec='${wl}-E'
9736       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9737       # Instead, shared libraries are loaded at an image base (0x10000000 by
9738       # default) and relocated if they conflict, which is a slow very memory
9739       # consuming and fragmenting process.  To avoid this, we pick a random,
9740       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9741       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9742       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9743       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'
9744       ;;
9745
9746     linux*)
9747       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9748         tmp_addflag=
9749         case $cc_basename,$host_cpu in
9750         pgcc*)                          # Portland Group C compiler
9751           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'
9752           tmp_addflag=' $pic_flag'
9753           ;;
9754         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9755           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'
9756           tmp_addflag=' $pic_flag -Mnomain' ;;
9757         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9758           tmp_addflag=' -i_dynamic' ;;
9759         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9760           tmp_addflag=' -i_dynamic -nofor_main' ;;
9761         ifc* | ifort*)                  # Intel Fortran compiler
9762           tmp_addflag=' -nofor_main' ;;
9763         esac
9764         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9765
9766         if test $supports_anon_versioning = yes; then
9767           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9768   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9769   $echo "local: *; };" >> $output_objdir/$libname.ver~
9770           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9771         fi
9772       else
9773         ld_shlibs=no
9774       fi
9775       ;;
9776
9777     netbsd*)
9778       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9779         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9780         wlarc=
9781       else
9782         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9784       fi
9785       ;;
9786
9787     solaris*)
9788       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9789         ld_shlibs=no
9790         cat <<EOF 1>&2
9791
9792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9793 *** create shared libraries on Solaris systems.  Therefore, libtool
9794 *** is disabling shared libraries support.  We urge you to upgrade GNU
9795 *** binutils to release 2.9.1 or newer.  Another option is to modify
9796 *** your PATH or compiler configuration so that the native linker is
9797 *** used, and then restart.
9798
9799 EOF
9800       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9801         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9803       else
9804         ld_shlibs=no
9805       fi
9806       ;;
9807
9808     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9809       case `$LD -v 2>&1` in
9810         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9811         ld_shlibs=no
9812         cat <<_LT_EOF 1>&2
9813
9814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9815 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9816 *** is disabling shared libraries support.  We urge you to upgrade GNU
9817 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9818 *** your PATH or compiler configuration so that the native linker is
9819 *** used, and then restart.
9820
9821 _LT_EOF
9822         ;;
9823         *)
9824           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9825             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9826             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9827             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9828           else
9829             ld_shlibs=no
9830           fi
9831         ;;
9832       esac
9833       ;;
9834
9835     sunos4*)
9836       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9837       wlarc=
9838       hardcode_direct=yes
9839       hardcode_shlibpath_var=no
9840       ;;
9841
9842     *)
9843       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9844         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9846       else
9847         ld_shlibs=no
9848       fi
9849       ;;
9850     esac
9851
9852     if test "$ld_shlibs" = no; then
9853       runpath_var=
9854       hardcode_libdir_flag_spec=
9855       export_dynamic_flag_spec=
9856       whole_archive_flag_spec=
9857     fi
9858   else
9859     # PORTME fill in a description of your system's linker (not GNU ld)
9860     case $host_os in
9861     aix3*)
9862       allow_undefined_flag=unsupported
9863       always_export_symbols=yes
9864       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'
9865       # Note: this linker hardcodes the directories in LIBPATH if there
9866       # are no directories specified by -L.
9867       hardcode_minus_L=yes
9868       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9869         # Neither direct hardcoding nor static linking is supported with a
9870         # broken collect2.
9871         hardcode_direct=unsupported
9872       fi
9873       ;;
9874
9875     aix4* | aix5*)
9876       if test "$host_cpu" = ia64; then
9877         # On IA64, the linker does run time linking by default, so we don't
9878         # have to do anything special.
9879         aix_use_runtimelinking=no
9880         exp_sym_flag='-Bexport'
9881         no_entry_flag=""
9882       else
9883         # If we're using GNU nm, then we don't want the "-C" option.
9884         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9885         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9886           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'
9887         else
9888           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'
9889         fi
9890         aix_use_runtimelinking=no
9891
9892         # Test if we are trying to use run time linking or normal
9893         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9894         # need to do runtime linking.
9895         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9896           for ld_flag in $LDFLAGS; do
9897           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9898             aix_use_runtimelinking=yes
9899             break
9900           fi
9901           done
9902           ;;
9903         esac
9904
9905         exp_sym_flag='-bexport'
9906         no_entry_flag='-bnoentry'
9907       fi
9908
9909       # When large executables or shared objects are built, AIX ld can
9910       # have problems creating the table of contents.  If linking a library
9911       # or program results in "error TOC overflow" add -mminimal-toc to
9912       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9913       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9914
9915       archive_cmds=''
9916       hardcode_direct=yes
9917       hardcode_libdir_separator=':'
9918       link_all_deplibs=yes
9919
9920       if test "$GCC" = yes; then
9921         case $host_os in aix4.[012]|aix4.[012].*)
9922         # We only want to do this on AIX 4.2 and lower, the check
9923         # below for broken collect2 doesn't work under 4.3+
9924           collect2name=`${CC} -print-prog-name=collect2`
9925           if test -f "$collect2name" && \
9926            strings "$collect2name" | grep resolve_lib_name >/dev/null
9927           then
9928           # We have reworked collect2
9929           hardcode_direct=yes
9930           else
9931           # We have old collect2
9932           hardcode_direct=unsupported
9933           # It fails to find uninstalled libraries when the uninstalled
9934           # path is not listed in the libpath.  Setting hardcode_minus_L
9935           # to unsupported forces relinking
9936           hardcode_minus_L=yes
9937           hardcode_libdir_flag_spec='-L$libdir'
9938           hardcode_libdir_separator=
9939           fi
9940           ;;
9941         esac
9942         shared_flag='-shared'
9943         if test "$aix_use_runtimelinking" = yes; then
9944           shared_flag="$shared_flag "'${wl}-G'
9945         fi
9946       else
9947         # not using gcc
9948         if test "$host_cpu" = ia64; then
9949         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9950         # chokes on -Wl,-G. The following line is correct:
9951           shared_flag='-G'
9952         else
9953           if test "$aix_use_runtimelinking" = yes; then
9954             shared_flag='${wl}-G'
9955           else
9956             shared_flag='${wl}-bM:SRE'
9957           fi
9958         fi
9959       fi
9960
9961       # It seems that -bexpall does not export symbols beginning with
9962       # underscore (_), so it is better to generate a list of symbols to export.
9963       always_export_symbols=yes
9964       if test "$aix_use_runtimelinking" = yes; then
9965         # Warning - without using the other runtime loading flags (-brtl),
9966         # -berok will link without error, but may produce a broken library.
9967         allow_undefined_flag='-berok'
9968        # Determine the default libpath from the value encoded in an empty executable.
9969        cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h.  */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h.  */
9975
9976 int
9977 main ()
9978 {
9979
9980   ;
9981   return 0;
9982 }
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9986 case "(($ac_try" in
9987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988   *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991   (eval "$ac_link") 2>conftest.er1
9992   ac_status=$?
9993   grep -v '^ *+' conftest.er1 >conftest.err
9994   rm -f conftest.er1
9995   cat conftest.err >&5
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); } && {
9998          test -z "$ac_c_werror_flag" ||
9999          test ! -s conftest.err
10000        } && test -s conftest$ac_exeext &&
10001        $as_test_x conftest$ac_exeext; then
10002
10003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10004 }'`
10005 # Check for a 64-bit object if we didn't find anything.
10006 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10007 }'`; fi
10008 else
10009   echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10011
10012
10013 fi
10014
10015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016       conftest$ac_exeext conftest.$ac_ext
10017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10018
10019        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10020         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"
10021        else
10022         if test "$host_cpu" = ia64; then
10023           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10024           allow_undefined_flag="-z nodefs"
10025           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"
10026         else
10027          # Determine the default libpath from the value encoded in an empty executable.
10028          cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h.  */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h.  */
10034
10035 int
10036 main ()
10037 {
10038
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047   *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050   (eval "$ac_link") 2>conftest.er1
10051   ac_status=$?
10052   grep -v '^ *+' conftest.er1 >conftest.err
10053   rm -f conftest.er1
10054   cat conftest.err >&5
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } && {
10057          test -z "$ac_c_werror_flag" ||
10058          test ! -s conftest.err
10059        } && test -s conftest$ac_exeext &&
10060        $as_test_x conftest$ac_exeext; then
10061
10062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10063 }'`
10064 # Check for a 64-bit object if we didn't find anything.
10065 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10066 }'`; fi
10067 else
10068   echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071
10072 fi
10073
10074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10075       conftest$ac_exeext conftest.$ac_ext
10076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10077
10078          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10079           # Warning - without using the other run time loading flags,
10080           # -berok will link without error, but may produce a broken library.
10081           no_undefined_flag=' ${wl}-bernotok'
10082           allow_undefined_flag=' ${wl}-berok'
10083           # Exported symbols can be pulled into shared objects from archives
10084           whole_archive_flag_spec='$convenience'
10085           archive_cmds_need_lc=yes
10086           # This is similar to how AIX traditionally builds its shared libraries.
10087           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'
10088         fi
10089       fi
10090       ;;
10091
10092     amigaos*)
10093       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)'
10094       hardcode_libdir_flag_spec='-L$libdir'
10095       hardcode_minus_L=yes
10096       # see comment about different semantics on the GNU ld section
10097       ld_shlibs=no
10098       ;;
10099
10100     bsdi[45]*)
10101       export_dynamic_flag_spec=-rdynamic
10102       ;;
10103
10104     cygwin* | mingw* | pw32*)
10105       # When not using gcc, we currently assume that we are using
10106       # Microsoft Visual C++.
10107       # hardcode_libdir_flag_spec is actually meaningless, as there is
10108       # no search path for DLLs.
10109       hardcode_libdir_flag_spec=' '
10110       allow_undefined_flag=unsupported
10111       # Tell ltmain to make .lib files, not .a files.
10112       libext=lib
10113       # Tell ltmain to make .dll files, not .so files.
10114       shrext_cmds=".dll"
10115       # FIXME: Setting linknames here is a bad hack.
10116       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10117       # The linker will automatically build a .lib file if we build a DLL.
10118       old_archive_From_new_cmds='true'
10119       # FIXME: Should let the user specify the lib program.
10120       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10121       fix_srcfile_path='`cygpath -w "$srcfile"`'
10122       enable_shared_with_static_runtimes=yes
10123       ;;
10124
10125     darwin* | rhapsody*)
10126       case $host_os in
10127         rhapsody* | darwin1.[012])
10128          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10129          ;;
10130        *) # Darwin 1.3 on
10131          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10132            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10133          else
10134            case ${MACOSX_DEPLOYMENT_TARGET} in
10135              10.[012])
10136                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10137                ;;
10138              10.*)
10139                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10140                ;;
10141            esac
10142          fi
10143          ;;
10144       esac
10145       archive_cmds_need_lc=no
10146       hardcode_direct=no
10147       hardcode_automatic=yes
10148       hardcode_shlibpath_var=unsupported
10149       whole_archive_flag_spec=''
10150       link_all_deplibs=yes
10151     if test "$GCC" = yes ; then
10152         output_verbose_link_cmd='echo'
10153         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10154       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10155       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10156       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10157       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}'
10158     else
10159       case $cc_basename in
10160         xlc*)
10161          output_verbose_link_cmd='echo'
10162          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10163          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10164           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10165          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10166           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}'
10167           ;;
10168        *)
10169          ld_shlibs=no
10170           ;;
10171       esac
10172     fi
10173       ;;
10174
10175     dgux*)
10176       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177       hardcode_libdir_flag_spec='-L$libdir'
10178       hardcode_shlibpath_var=no
10179       ;;
10180
10181     freebsd1*)
10182       ld_shlibs=no
10183       ;;
10184
10185     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10186     # support.  Future versions do this automatically, but an explicit c++rt0.o
10187     # does not break anything, and helps significantly (at the cost of a little
10188     # extra space).
10189     freebsd2.2*)
10190       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10191       hardcode_libdir_flag_spec='-R$libdir'
10192       hardcode_direct=yes
10193       hardcode_shlibpath_var=no
10194       ;;
10195
10196     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10197     freebsd2*)
10198       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199       hardcode_direct=yes
10200       hardcode_minus_L=yes
10201       hardcode_shlibpath_var=no
10202       ;;
10203
10204     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10205     freebsd* | kfreebsd*-gnu | dragonfly*)
10206       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10207       hardcode_libdir_flag_spec='-R$libdir'
10208       hardcode_direct=yes
10209       hardcode_shlibpath_var=no
10210       ;;
10211
10212     hpux9*)
10213       if test "$GCC" = yes; then
10214         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'
10215       else
10216         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'
10217       fi
10218       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219       hardcode_libdir_separator=:
10220       hardcode_direct=yes
10221
10222       # hardcode_minus_L: Not really in the search PATH,
10223       # but as the default location of the library.
10224       hardcode_minus_L=yes
10225       export_dynamic_flag_spec='${wl}-E'
10226       ;;
10227
10228     hpux10*)
10229       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10230         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10231       else
10232         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10233       fi
10234       if test "$with_gnu_ld" = no; then
10235         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236         hardcode_libdir_separator=:
10237
10238         hardcode_direct=yes
10239         export_dynamic_flag_spec='${wl}-E'
10240
10241         # hardcode_minus_L: Not really in the search PATH,
10242         # but as the default location of the library.
10243         hardcode_minus_L=yes
10244       fi
10245       ;;
10246
10247     hpux11*)
10248       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10249         case $host_cpu in
10250         hppa*64*)
10251           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10252           ;;
10253         ia64*)
10254           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10255           ;;
10256         *)
10257           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10258           ;;
10259         esac
10260       else
10261         case $host_cpu in
10262         hppa*64*)
10263           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264           ;;
10265         ia64*)
10266           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10267           ;;
10268         *)
10269           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10270           ;;
10271         esac
10272       fi
10273       if test "$with_gnu_ld" = no; then
10274         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10275         hardcode_libdir_separator=:
10276
10277         case $host_cpu in
10278         hppa*64*|ia64*)
10279           hardcode_libdir_flag_spec_ld='+b $libdir'
10280           hardcode_direct=no
10281           hardcode_shlibpath_var=no
10282           ;;
10283         *)
10284           hardcode_direct=yes
10285           export_dynamic_flag_spec='${wl}-E'
10286
10287           # hardcode_minus_L: Not really in the search PATH,
10288           # but as the default location of the library.
10289           hardcode_minus_L=yes
10290           ;;
10291         esac
10292       fi
10293       ;;
10294
10295     irix5* | irix6* | nonstopux*)
10296       if test "$GCC" = yes; then
10297         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'
10298       else
10299         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'
10300         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10301       fi
10302       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10303       hardcode_libdir_separator=:
10304       link_all_deplibs=yes
10305       ;;
10306
10307     netbsd*)
10308       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10309         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10310       else
10311         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10312       fi
10313       hardcode_libdir_flag_spec='-R$libdir'
10314       hardcode_direct=yes
10315       hardcode_shlibpath_var=no
10316       ;;
10317
10318     newsos6)
10319       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320       hardcode_direct=yes
10321       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10322       hardcode_libdir_separator=:
10323       hardcode_shlibpath_var=no
10324       ;;
10325
10326     openbsd*)
10327       hardcode_direct=yes
10328       hardcode_shlibpath_var=no
10329       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10330         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10331         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10332         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10333         export_dynamic_flag_spec='${wl}-E'
10334       else
10335        case $host_os in
10336          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10337            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10338            hardcode_libdir_flag_spec='-R$libdir'
10339            ;;
10340          *)
10341            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10342            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10343            ;;
10344        esac
10345       fi
10346       ;;
10347
10348     os2*)
10349       hardcode_libdir_flag_spec='-L$libdir'
10350       hardcode_minus_L=yes
10351       allow_undefined_flag=unsupported
10352       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'
10353       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10354       ;;
10355
10356     osf3*)
10357       if test "$GCC" = yes; then
10358         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10359         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'
10360       else
10361         allow_undefined_flag=' -expect_unresolved \*'
10362         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'
10363       fi
10364       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365       hardcode_libdir_separator=:
10366       ;;
10367
10368     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10369       if test "$GCC" = yes; then
10370         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10371         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'
10372         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373       else
10374         allow_undefined_flag=' -expect_unresolved \*'
10375         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'
10376         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10377         $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'
10378
10379         # Both c and cxx compiler support -rpath directly
10380         hardcode_libdir_flag_spec='-rpath $libdir'
10381       fi
10382       hardcode_libdir_separator=:
10383       ;;
10384
10385     solaris*)
10386       no_undefined_flag=' -z text'
10387       if test "$GCC" = yes; then
10388         wlarc='${wl}'
10389         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10390         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10391           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10392       else
10393         wlarc=''
10394         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10396         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10397       fi
10398       hardcode_libdir_flag_spec='-R$libdir'
10399       hardcode_shlibpath_var=no
10400       case $host_os in
10401       solaris2.[0-5] | solaris2.[0-5].*) ;;
10402       *)
10403         # The compiler driver will combine linker options so we
10404         # cannot just pass the convience library names through
10405         # without $wl, iff we do not link with $LD.
10406         # Luckily, gcc supports the same syntax we need for Sun Studio.
10407         # Supported since Solaris 2.6 (maybe 2.5.1?)
10408         case $wlarc in
10409         '')
10410           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10411         *)
10412           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10413         esac ;;
10414       esac
10415       link_all_deplibs=yes
10416       ;;
10417
10418     sunos4*)
10419       if test "x$host_vendor" = xsequent; then
10420         # Use $CC to link under sequent, because it throws in some extra .o
10421         # files that make .init and .fini sections work.
10422         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10423       else
10424         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10425       fi
10426       hardcode_libdir_flag_spec='-L$libdir'
10427       hardcode_direct=yes
10428       hardcode_minus_L=yes
10429       hardcode_shlibpath_var=no
10430       ;;
10431
10432     sysv4)
10433       case $host_vendor in
10434         sni)
10435           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436           hardcode_direct=yes # is this really true???
10437         ;;
10438         siemens)
10439           ## LD is ld it makes a PLAMLIB
10440           ## CC just makes a GrossModule.
10441           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10442           reload_cmds='$CC -r -o $output$reload_objs'
10443           hardcode_direct=no
10444         ;;
10445         motorola)
10446           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10447           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10448         ;;
10449       esac
10450       runpath_var='LD_RUN_PATH'
10451       hardcode_shlibpath_var=no
10452       ;;
10453
10454     sysv4.3*)
10455       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456       hardcode_shlibpath_var=no
10457       export_dynamic_flag_spec='-Bexport'
10458       ;;
10459
10460     sysv4*MP*)
10461       if test -d /usr/nec; then
10462         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10463         hardcode_shlibpath_var=no
10464         runpath_var=LD_RUN_PATH
10465         hardcode_runpath_var=yes
10466         ld_shlibs=yes
10467       fi
10468       ;;
10469
10470     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10471       no_undefined_flag='${wl}-z,text'
10472       archive_cmds_need_lc=no
10473       hardcode_shlibpath_var=no
10474       runpath_var='LD_RUN_PATH'
10475
10476       if test "$GCC" = yes; then
10477         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10479       else
10480         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482       fi
10483       ;;
10484
10485     sysv5* | sco3.2v5* | sco5v6*)
10486       # Note: We can NOT use -z defs as we might desire, because we do not
10487       # link with -lc, and that would cause any symbols used from libc to
10488       # always be unresolved, which means just about no library would
10489       # ever link correctly.  If we're not using GNU ld we use -z text
10490       # though, which does catch some bad symbols but isn't as heavy-handed
10491       # as -z defs.
10492       no_undefined_flag='${wl}-z,text'
10493       allow_undefined_flag='${wl}-z,nodefs'
10494       archive_cmds_need_lc=no
10495       hardcode_shlibpath_var=no
10496       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10497       hardcode_libdir_separator=':'
10498       link_all_deplibs=yes
10499       export_dynamic_flag_spec='${wl}-Bexport'
10500       runpath_var='LD_RUN_PATH'
10501
10502       if test "$GCC" = yes; then
10503         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10504         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10505       else
10506         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10507         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10508       fi
10509       ;;
10510
10511     uts4*)
10512       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513       hardcode_libdir_flag_spec='-L$libdir'
10514       hardcode_shlibpath_var=no
10515       ;;
10516
10517     *)
10518       ld_shlibs=no
10519       ;;
10520     esac
10521   fi
10522
10523 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10524 echo "${ECHO_T}$ld_shlibs" >&6; }
10525 test "$ld_shlibs" = no && can_build_shared=no
10526
10527 #
10528 # Do we need to explicitly link libc?
10529 #
10530 case "x$archive_cmds_need_lc" in
10531 x|xyes)
10532   # Assume -lc should be added
10533   archive_cmds_need_lc=yes
10534
10535   if test "$enable_shared" = yes && test "$GCC" = yes; then
10536     case $archive_cmds in
10537     *'~'*)
10538       # FIXME: we may have to deal with multi-command sequences.
10539       ;;
10540     '$CC '*)
10541       # Test whether the compiler implicitly links with -lc since on some
10542       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10543       # to ld, don't add -lc before -lgcc.
10544       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10546       $rm conftest*
10547       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10548
10549       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550   (eval $ac_compile) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); } 2>conftest.err; then
10554         soname=conftest
10555         lib=conftest
10556         libobjs=conftest.$ac_objext
10557         deplibs=
10558         wl=$lt_prog_compiler_wl
10559         pic_flag=$lt_prog_compiler_pic
10560         compiler_flags=-v
10561         linker_flags=-v
10562         verstring=
10563         output_objdir=.
10564         libname=conftest
10565         lt_save_allow_undefined_flag=$allow_undefined_flag
10566         allow_undefined_flag=
10567         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10568   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }
10572         then
10573           archive_cmds_need_lc=no
10574         else
10575           archive_cmds_need_lc=yes
10576         fi
10577         allow_undefined_flag=$lt_save_allow_undefined_flag
10578       else
10579         cat conftest.err 1>&5
10580       fi
10581       $rm conftest*
10582       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10583 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10584       ;;
10585     esac
10586   fi
10587   ;;
10588 esac
10589
10590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10592 library_names_spec=
10593 libname_spec='lib$name'
10594 soname_spec=
10595 shrext_cmds=".so"
10596 postinstall_cmds=
10597 postuninstall_cmds=
10598 finish_cmds=
10599 finish_eval=
10600 shlibpath_var=
10601 shlibpath_overrides_runpath=unknown
10602 version_type=none
10603 dynamic_linker="$host_os ld.so"
10604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10605 if test "$GCC" = yes; then
10606   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10607   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10608     # if the path contains ";" then we assume it to be the separator
10609     # otherwise default to the standard path separator (i.e. ":") - it is
10610     # assumed that no part of a normal pathname contains ";" but that should
10611     # okay in the real world where ";" in dirpaths is itself problematic.
10612     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10613   else
10614     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10615   fi
10616 else
10617   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10618 fi
10619 need_lib_prefix=unknown
10620 hardcode_into_libs=no
10621
10622 # when you set need_version to no, make sure it does not cause -set_version
10623 # flags to be left without arguments
10624 need_version=unknown
10625
10626 case $host_os in
10627 aix3*)
10628   version_type=linux
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10630   shlibpath_var=LIBPATH
10631
10632   # AIX 3 has no versioning support, so we append a major version to the name.
10633   soname_spec='${libname}${release}${shared_ext}$major'
10634   ;;
10635
10636 aix4* | aix5*)
10637   version_type=linux
10638   need_lib_prefix=no
10639   need_version=no
10640   hardcode_into_libs=yes
10641   if test "$host_cpu" = ia64; then
10642     # AIX 5 supports IA64
10643     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10644     shlibpath_var=LD_LIBRARY_PATH
10645   else
10646     # With GCC up to 2.95.x, collect2 would create an import file
10647     # for dependence libraries.  The import file would start with
10648     # the line `#! .'.  This would cause the generated library to
10649     # depend on `.', always an invalid library.  This was fixed in
10650     # development snapshots of GCC prior to 3.0.
10651     case $host_os in
10652       aix4 | aix4.[01] | aix4.[01].*)
10653       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10654            echo ' yes '
10655            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10656         :
10657       else
10658         can_build_shared=no
10659       fi
10660       ;;
10661     esac
10662     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10663     # soname into executable. Probably we can add versioning support to
10664     # collect2, so additional links can be useful in future.
10665     if test "$aix_use_runtimelinking" = yes; then
10666       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10667       # instead of lib<name>.a to let people know that these are not
10668       # typical AIX shared libraries.
10669       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670     else
10671       # We preserve .a as extension for shared libraries through AIX4.2
10672       # and later when we are not doing run time linking.
10673       library_names_spec='${libname}${release}.a $libname.a'
10674       soname_spec='${libname}${release}${shared_ext}$major'
10675     fi
10676     shlibpath_var=LIBPATH
10677   fi
10678   ;;
10679
10680 amigaos*)
10681   library_names_spec='$libname.ixlibrary $libname.a'
10682   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683   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'
10684   ;;
10685
10686 beos*)
10687   library_names_spec='${libname}${shared_ext}'
10688   dynamic_linker="$host_os ld.so"
10689   shlibpath_var=LIBRARY_PATH
10690   ;;
10691
10692 bsdi[45]*)
10693   version_type=linux
10694   need_version=no
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696   soname_spec='${libname}${release}${shared_ext}$major'
10697   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10698   shlibpath_var=LD_LIBRARY_PATH
10699   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10700   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10701   # the default ld.so.conf also contains /usr/contrib/lib and
10702   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10703   # libtool to hard-code these into programs
10704   ;;
10705
10706 cygwin* | mingw* | pw32*)
10707   version_type=windows
10708   shrext_cmds=".dll"
10709   need_version=no
10710   need_lib_prefix=no
10711
10712   case $GCC,$host_os in
10713   yes,cygwin* | yes,mingw* | yes,pw32*)
10714     library_names_spec='$libname.dll.a'
10715     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716     postinstall_cmds='base_file=`basename \${file}`~
10717       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10718       dldir=$destdir/`dirname \$dlpath`~
10719       test -d \$dldir || mkdir -p \$dldir~
10720       $install_prog $dir/$dlname \$dldir/$dlname~
10721       chmod a+x \$dldir/$dlname'
10722     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10723       dlpath=$dir/\$dldll~
10724        $rm \$dlpath'
10725     shlibpath_overrides_runpath=yes
10726
10727     case $host_os in
10728     cygwin*)
10729       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10730       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10731       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10732       ;;
10733     mingw*)
10734       # MinGW DLLs use traditional 'lib' prefix
10735       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10737       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10738         # It is most probably a Windows format PATH printed by
10739         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10740         # path with ; separators, and with drive letters. We can handle the
10741         # drive letters (cygwin fileutils understands them), so leave them,
10742         # especially as we might pass files found there to a mingw objdump,
10743         # which wouldn't understand a cygwinified path. Ahh.
10744         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10745       else
10746         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10747       fi
10748       ;;
10749     pw32*)
10750       # pw32 DLLs use 'pw' prefix rather than 'lib'
10751       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10752       ;;
10753     esac
10754     ;;
10755
10756   *)
10757     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10758     ;;
10759   esac
10760   dynamic_linker='Win32 ld.exe'
10761   # FIXME: first we should search . and the directory the executable is in
10762   shlibpath_var=PATH
10763   ;;
10764
10765 darwin* | rhapsody*)
10766   dynamic_linker="$host_os dyld"
10767   version_type=darwin
10768   need_lib_prefix=no
10769   need_version=no
10770   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10771   soname_spec='${libname}${release}${major}$shared_ext'
10772   shlibpath_overrides_runpath=yes
10773   shlibpath_var=DYLD_LIBRARY_PATH
10774   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10775   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10776   if test "$GCC" = yes; then
10777     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10778   else
10779     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10780   fi
10781   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10782   ;;
10783
10784 dgux*)
10785   version_type=linux
10786   need_lib_prefix=no
10787   need_version=no
10788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10789   soname_spec='${libname}${release}${shared_ext}$major'
10790   shlibpath_var=LD_LIBRARY_PATH
10791   ;;
10792
10793 freebsd1*)
10794   dynamic_linker=no
10795   ;;
10796
10797 kfreebsd*-gnu)
10798   version_type=linux
10799   need_lib_prefix=no
10800   need_version=no
10801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10802   soname_spec='${libname}${release}${shared_ext}$major'
10803   shlibpath_var=LD_LIBRARY_PATH
10804   shlibpath_overrides_runpath=no
10805   hardcode_into_libs=yes
10806   dynamic_linker='GNU ld.so'
10807   ;;
10808
10809 freebsd* | dragonfly*)
10810   # DragonFly does not have aout.  When/if they implement a new
10811   # versioning mechanism, adjust this.
10812   if test -x /usr/bin/objformat; then
10813     objformat=`/usr/bin/objformat`
10814   else
10815     case $host_os in
10816     freebsd[123]*) objformat=aout ;;
10817     *) objformat=elf ;;
10818     esac
10819   fi
10820   version_type=freebsd-$objformat
10821   case $version_type in
10822     freebsd-elf*)
10823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10824       need_version=no
10825       need_lib_prefix=no
10826       ;;
10827     freebsd-*)
10828       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10829       need_version=yes
10830       ;;
10831   esac
10832   shlibpath_var=LD_LIBRARY_PATH
10833   case $host_os in
10834   freebsd2*)
10835     shlibpath_overrides_runpath=yes
10836     ;;
10837   freebsd3.[01]* | freebsdelf3.[01]*)
10838     shlibpath_overrides_runpath=yes
10839     hardcode_into_libs=yes
10840     ;;
10841   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10842   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10843     shlibpath_overrides_runpath=no
10844     hardcode_into_libs=yes
10845     ;;
10846   freebsd*) # from 4.6 on
10847     shlibpath_overrides_runpath=yes
10848     hardcode_into_libs=yes
10849     ;;
10850   esac
10851   ;;
10852
10853 gnu*)
10854   version_type=linux
10855   need_lib_prefix=no
10856   need_version=no
10857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10858   soname_spec='${libname}${release}${shared_ext}$major'
10859   shlibpath_var=LD_LIBRARY_PATH
10860   hardcode_into_libs=yes
10861   ;;
10862
10863 hpux9* | hpux10* | hpux11*)
10864   # Give a soname corresponding to the major version so that dld.sl refuses to
10865   # link against other versions.
10866   version_type=sunos
10867   need_lib_prefix=no
10868   need_version=no
10869   case $host_cpu in
10870   ia64*)
10871     shrext_cmds='.so'
10872     hardcode_into_libs=yes
10873     dynamic_linker="$host_os dld.so"
10874     shlibpath_var=LD_LIBRARY_PATH
10875     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877     soname_spec='${libname}${release}${shared_ext}$major'
10878     if test "X$HPUX_IA64_MODE" = X32; then
10879       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10880     else
10881       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10882     fi
10883     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10884     ;;
10885    hppa*64*)
10886      shrext_cmds='.sl'
10887      hardcode_into_libs=yes
10888      dynamic_linker="$host_os dld.sl"
10889      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10890      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892      soname_spec='${libname}${release}${shared_ext}$major'
10893      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10894      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10895      ;;
10896    *)
10897     shrext_cmds='.sl'
10898     dynamic_linker="$host_os dld.sl"
10899     shlibpath_var=SHLIB_PATH
10900     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902     soname_spec='${libname}${release}${shared_ext}$major'
10903     ;;
10904   esac
10905   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10906   postinstall_cmds='chmod 555 $lib'
10907   ;;
10908
10909 interix3*)
10910   version_type=linux
10911   need_lib_prefix=no
10912   need_version=no
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10914   soname_spec='${libname}${release}${shared_ext}$major'
10915   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   shlibpath_overrides_runpath=no
10918   hardcode_into_libs=yes
10919   ;;
10920
10921 irix5* | irix6* | nonstopux*)
10922   case $host_os in
10923     nonstopux*) version_type=nonstopux ;;
10924     *)
10925         if test "$lt_cv_prog_gnu_ld" = yes; then
10926                 version_type=linux
10927         else
10928                 version_type=irix
10929         fi ;;
10930   esac
10931   need_lib_prefix=no
10932   need_version=no
10933   soname_spec='${libname}${release}${shared_ext}$major'
10934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10935   case $host_os in
10936   irix5* | nonstopux*)
10937     libsuff= shlibsuff=
10938     ;;
10939   *)
10940     case $LD in # libtool.m4 will add one of these switches to LD
10941     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10942       libsuff= shlibsuff= libmagic=32-bit;;
10943     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10944       libsuff=32 shlibsuff=N32 libmagic=N32;;
10945     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10946       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10947     *) libsuff= shlibsuff= libmagic=never-match;;
10948     esac
10949     ;;
10950   esac
10951   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10952   shlibpath_overrides_runpath=no
10953   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10954   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10955   hardcode_into_libs=yes
10956   ;;
10957
10958 # No shared lib support for Linux oldld, aout, or coff.
10959 linux*oldld* | linux*aout* | linux*coff*)
10960   dynamic_linker=no
10961   ;;
10962
10963 # This must be Linux ELF.
10964 linux*)
10965   version_type=linux
10966   need_lib_prefix=no
10967   need_version=no
10968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969   soname_spec='${libname}${release}${shared_ext}$major'
10970   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10971   shlibpath_var=LD_LIBRARY_PATH
10972   shlibpath_overrides_runpath=no
10973   # This implies no fast_install, which is unacceptable.
10974   # Some rework will be needed to allow for fast_install
10975   # before this can be enabled.
10976   hardcode_into_libs=yes
10977
10978   # Append ld.so.conf contents to the search path
10979   if test -f /etc/ld.so.conf; then
10980     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10981     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10982   fi
10983
10984   # We used to test for /lib/ld.so.1 and disable shared libraries on
10985   # powerpc, because MkLinux only supported shared libraries with the
10986   # GNU dynamic linker.  Since this was broken with cross compilers,
10987   # most powerpc-linux boxes support dynamic linking these days and
10988   # people can always --disable-shared, the test was removed, and we
10989   # assume the GNU/Linux dynamic linker is in use.
10990   dynamic_linker='GNU/Linux ld.so'
10991   ;;
10992
10993 knetbsd*-gnu)
10994   version_type=linux
10995   need_lib_prefix=no
10996   need_version=no
10997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10998   soname_spec='${libname}${release}${shared_ext}$major'
10999   shlibpath_var=LD_LIBRARY_PATH
11000   shlibpath_overrides_runpath=no
11001   hardcode_into_libs=yes
11002   dynamic_linker='GNU ld.so'
11003   ;;
11004
11005 netbsd*)
11006   version_type=sunos
11007   need_lib_prefix=no
11008   need_version=no
11009   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11011     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11012     dynamic_linker='NetBSD (a.out) ld.so'
11013   else
11014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11015     soname_spec='${libname}${release}${shared_ext}$major'
11016     dynamic_linker='NetBSD ld.elf_so'
11017   fi
11018   shlibpath_var=LD_LIBRARY_PATH
11019   shlibpath_overrides_runpath=yes
11020   hardcode_into_libs=yes
11021   ;;
11022
11023 newsos6)
11024   version_type=linux
11025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026   shlibpath_var=LD_LIBRARY_PATH
11027   shlibpath_overrides_runpath=yes
11028   ;;
11029
11030 nto-qnx*)
11031   version_type=linux
11032   need_lib_prefix=no
11033   need_version=no
11034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035   soname_spec='${libname}${release}${shared_ext}$major'
11036   shlibpath_var=LD_LIBRARY_PATH
11037   shlibpath_overrides_runpath=yes
11038   ;;
11039
11040 openbsd*)
11041   version_type=sunos
11042   sys_lib_dlsearch_path_spec="/usr/lib"
11043   need_lib_prefix=no
11044   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11045   case $host_os in
11046     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11047     *)                         need_version=no  ;;
11048   esac
11049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11050   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11051   shlibpath_var=LD_LIBRARY_PATH
11052   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11053     case $host_os in
11054       openbsd2.[89] | openbsd2.[89].*)
11055         shlibpath_overrides_runpath=no
11056         ;;
11057       *)
11058         shlibpath_overrides_runpath=yes
11059         ;;
11060       esac
11061   else
11062     shlibpath_overrides_runpath=yes
11063   fi
11064   ;;
11065
11066 os2*)
11067   libname_spec='$name'
11068   shrext_cmds=".dll"
11069   need_lib_prefix=no
11070   library_names_spec='$libname${shared_ext} $libname.a'
11071   dynamic_linker='OS/2 ld.exe'
11072   shlibpath_var=LIBPATH
11073   ;;
11074
11075 osf3* | osf4* | osf5*)
11076   version_type=osf
11077   need_lib_prefix=no
11078   need_version=no
11079   soname_spec='${libname}${release}${shared_ext}$major'
11080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081   shlibpath_var=LD_LIBRARY_PATH
11082   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11083   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11084   ;;
11085
11086 solaris*)
11087   version_type=linux
11088   need_lib_prefix=no
11089   need_version=no
11090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091   soname_spec='${libname}${release}${shared_ext}$major'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   shlibpath_overrides_runpath=yes
11094   hardcode_into_libs=yes
11095   # ldd complains unless libraries are executable
11096   postinstall_cmds='chmod +x $lib'
11097   ;;
11098
11099 sunos4*)
11100   version_type=sunos
11101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11102   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11103   shlibpath_var=LD_LIBRARY_PATH
11104   shlibpath_overrides_runpath=yes
11105   if test "$with_gnu_ld" = yes; then
11106     need_lib_prefix=no
11107   fi
11108   need_version=yes
11109   ;;
11110
11111 sysv4 | sysv4.3*)
11112   version_type=linux
11113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114   soname_spec='${libname}${release}${shared_ext}$major'
11115   shlibpath_var=LD_LIBRARY_PATH
11116   case $host_vendor in
11117     sni)
11118       shlibpath_overrides_runpath=no
11119       need_lib_prefix=no
11120       export_dynamic_flag_spec='${wl}-Blargedynsym'
11121       runpath_var=LD_RUN_PATH
11122       ;;
11123     siemens)
11124       need_lib_prefix=no
11125       ;;
11126     motorola)
11127       need_lib_prefix=no
11128       need_version=no
11129       shlibpath_overrides_runpath=no
11130       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11131       ;;
11132   esac
11133   ;;
11134
11135 sysv4*MP*)
11136   if test -d /usr/nec ;then
11137     version_type=linux
11138     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11139     soname_spec='$libname${shared_ext}.$major'
11140     shlibpath_var=LD_LIBRARY_PATH
11141   fi
11142   ;;
11143
11144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11145   version_type=freebsd-elf
11146   need_lib_prefix=no
11147   need_version=no
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11149   soname_spec='${libname}${release}${shared_ext}$major'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   hardcode_into_libs=yes
11152   if test "$with_gnu_ld" = yes; then
11153     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11154     shlibpath_overrides_runpath=no
11155   else
11156     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11157     shlibpath_overrides_runpath=yes
11158     case $host_os in
11159       sco3.2v5*)
11160         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11161         ;;
11162     esac
11163   fi
11164   sys_lib_dlsearch_path_spec='/usr/lib'
11165   ;;
11166
11167 uts4*)
11168   version_type=linux
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170   soname_spec='${libname}${release}${shared_ext}$major'
11171   shlibpath_var=LD_LIBRARY_PATH
11172   ;;
11173
11174 *)
11175   dynamic_linker=no
11176   ;;
11177 esac
11178 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11179 echo "${ECHO_T}$dynamic_linker" >&6; }
11180 test "$dynamic_linker" = no && can_build_shared=no
11181
11182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11183 if test "$GCC" = yes; then
11184   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11185 fi
11186
11187 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11188 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11189 hardcode_action=
11190 if test -n "$hardcode_libdir_flag_spec" || \
11191    test -n "$runpath_var" || \
11192    test "X$hardcode_automatic" = "Xyes" ; then
11193
11194   # We can hardcode non-existant directories.
11195   if test "$hardcode_direct" != no &&
11196      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11197      # have to relink, otherwise we might link with an installed library
11198      # when we should be linking with a yet-to-be-installed one
11199      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11200      test "$hardcode_minus_L" != no; then
11201     # Linking always hardcodes the temporary library directory.
11202     hardcode_action=relink
11203   else
11204     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11205     hardcode_action=immediate
11206   fi
11207 else
11208   # We cannot hardcode anything, or else we can only hardcode existing
11209   # directories.
11210   hardcode_action=unsupported
11211 fi
11212 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11213 echo "${ECHO_T}$hardcode_action" >&6; }
11214
11215 if test "$hardcode_action" = relink; then
11216   # Fast installation is not supported
11217   enable_fast_install=no
11218 elif test "$shlibpath_overrides_runpath" = yes ||
11219      test "$enable_shared" = no; then
11220   # Fast installation is not necessary
11221   enable_fast_install=needless
11222 fi
11223
11224 striplib=
11225 old_striplib=
11226 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11227 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11228 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11229   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11230   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11231   { echo "$as_me:$LINENO: result: yes" >&5
11232 echo "${ECHO_T}yes" >&6; }
11233 else
11234 # FIXME - insert some real tests, host_os isn't really good enough
11235   case $host_os in
11236    darwin*)
11237        if test -n "$STRIP" ; then
11238          striplib="$STRIP -x"
11239          { echo "$as_me:$LINENO: result: yes" >&5
11240 echo "${ECHO_T}yes" >&6; }
11241        else
11242   { echo "$as_me:$LINENO: result: no" >&5
11243 echo "${ECHO_T}no" >&6; }
11244 fi
11245        ;;
11246    *)
11247   { echo "$as_me:$LINENO: result: no" >&5
11248 echo "${ECHO_T}no" >&6; }
11249     ;;
11250   esac
11251 fi
11252
11253 if test "x$enable_dlopen" != xyes; then
11254   enable_dlopen=unknown
11255   enable_dlopen_self=unknown
11256   enable_dlopen_self_static=unknown
11257 else
11258   lt_cv_dlopen=no
11259   lt_cv_dlopen_libs=
11260
11261   case $host_os in
11262   beos*)
11263     lt_cv_dlopen="load_add_on"
11264     lt_cv_dlopen_libs=
11265     lt_cv_dlopen_self=yes
11266     ;;
11267
11268   mingw* | pw32*)
11269     lt_cv_dlopen="LoadLibrary"
11270     lt_cv_dlopen_libs=
11271    ;;
11272
11273   cygwin*)
11274     lt_cv_dlopen="dlopen"
11275     lt_cv_dlopen_libs=
11276    ;;
11277
11278   darwin*)
11279   # if libdl is installed we need to link against it
11280     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11281 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11283   echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285   ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-ldl  $LIBS"
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295    Use char because int might match the return type of a GCC
11296    builtin and then its argument prototype would still apply.  */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char dlopen ();
11301 int
11302 main ()
11303 {
11304 return dlopen ();
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 rm -f conftest.$ac_objext conftest$ac_exeext
11310 if { (ac_try="$ac_link"
11311 case "(($ac_try" in
11312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313   *) ac_try_echo=$ac_try;;
11314 esac
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316   (eval "$ac_link") 2>conftest.er1
11317   ac_status=$?
11318   grep -v '^ *+' conftest.er1 >conftest.err
11319   rm -f conftest.er1
11320   cat conftest.err >&5
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } && {
11323          test -z "$ac_c_werror_flag" ||
11324          test ! -s conftest.err
11325        } && test -s conftest$ac_exeext &&
11326        $as_test_x conftest$ac_exeext; then
11327   ac_cv_lib_dl_dlopen=yes
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332         ac_cv_lib_dl_dlopen=no
11333 fi
11334
11335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11336       conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11338 fi
11339 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11341 if test $ac_cv_lib_dl_dlopen = yes; then
11342   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11343 else
11344
11345     lt_cv_dlopen="dyld"
11346     lt_cv_dlopen_libs=
11347     lt_cv_dlopen_self=yes
11348
11349 fi
11350
11351    ;;
11352
11353   *)
11354     { echo "$as_me:$LINENO: checking for shl_load" >&5
11355 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11356 if test "${ac_cv_func_shl_load+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359   cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h.  */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h.  */
11365 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11367 #define shl_load innocuous_shl_load
11368
11369 /* System header to define __stub macros and hopefully few prototypes,
11370     which can conflict with char shl_load (); below.
11371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11372     <limits.h> exists even on freestanding compilers.  */
11373
11374 #ifdef __STDC__
11375 # include <limits.h>
11376 #else
11377 # include <assert.h>
11378 #endif
11379
11380 #undef shl_load
11381
11382 /* Override any GCC internal prototype to avoid an error.
11383    Use char because int might match the return type of a GCC
11384    builtin and then its argument prototype would still apply.  */
11385 #ifdef __cplusplus
11386 extern "C"
11387 #endif
11388 char shl_load ();
11389 /* The GNU C library defines this for functions which it implements
11390     to always fail with ENOSYS.  Some functions are actually named
11391     something starting with __ and the normal name is an alias.  */
11392 #if defined __stub_shl_load || defined __stub___shl_load
11393 choke me
11394 #endif
11395
11396 int
11397 main ()
11398 {
11399 return shl_load ();
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (ac_try="$ac_link"
11406 case "(($ac_try" in
11407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408   *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411   (eval "$ac_link") 2>conftest.er1
11412   ac_status=$?
11413   grep -v '^ *+' conftest.er1 >conftest.err
11414   rm -f conftest.er1
11415   cat conftest.err >&5
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } && {
11418          test -z "$ac_c_werror_flag" ||
11419          test ! -s conftest.err
11420        } && test -s conftest$ac_exeext &&
11421        $as_test_x conftest$ac_exeext; then
11422   ac_cv_func_shl_load=yes
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427         ac_cv_func_shl_load=no
11428 fi
11429
11430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11431       conftest$ac_exeext conftest.$ac_ext
11432 fi
11433 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11434 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11435 if test $ac_cv_func_shl_load = yes; then
11436   lt_cv_dlopen="shl_load"
11437 else
11438   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11439 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11440 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   ac_check_lib_save_LIBS=$LIBS
11444 LIBS="-ldld  $LIBS"
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451
11452 /* Override any GCC internal prototype to avoid an error.
11453    Use char because int might match the return type of a GCC
11454    builtin and then its argument prototype would still apply.  */
11455 #ifdef __cplusplus
11456 extern "C"
11457 #endif
11458 char shl_load ();
11459 int
11460 main ()
11461 {
11462 return shl_load ();
11463   ;
11464   return 0;
11465 }
11466 _ACEOF
11467 rm -f conftest.$ac_objext conftest$ac_exeext
11468 if { (ac_try="$ac_link"
11469 case "(($ac_try" in
11470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471   *) ac_try_echo=$ac_try;;
11472 esac
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474   (eval "$ac_link") 2>conftest.er1
11475   ac_status=$?
11476   grep -v '^ *+' conftest.er1 >conftest.err
11477   rm -f conftest.er1
11478   cat conftest.err >&5
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } && {
11481          test -z "$ac_c_werror_flag" ||
11482          test ! -s conftest.err
11483        } && test -s conftest$ac_exeext &&
11484        $as_test_x conftest$ac_exeext; then
11485   ac_cv_lib_dld_shl_load=yes
11486 else
11487   echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11489
11490         ac_cv_lib_dld_shl_load=no
11491 fi
11492
11493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11494       conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11496 fi
11497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11498 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11499 if test $ac_cv_lib_dld_shl_load = yes; then
11500   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11501 else
11502   { echo "$as_me:$LINENO: checking for dlopen" >&5
11503 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11504 if test "${ac_cv_func_dlopen+set}" = set; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11515 #define dlopen innocuous_dlopen
11516
11517 /* System header to define __stub macros and hopefully few prototypes,
11518     which can conflict with char dlopen (); below.
11519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520     <limits.h> exists even on freestanding compilers.  */
11521
11522 #ifdef __STDC__
11523 # include <limits.h>
11524 #else
11525 # include <assert.h>
11526 #endif
11527
11528 #undef dlopen
11529
11530 /* Override any GCC internal prototype to avoid an error.
11531    Use char because int might match the return type of a GCC
11532    builtin and then its argument prototype would still apply.  */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 char dlopen ();
11537 /* The GNU C library defines this for functions which it implements
11538     to always fail with ENOSYS.  Some functions are actually named
11539     something starting with __ and the normal name is an alias.  */
11540 #if defined __stub_dlopen || defined __stub___dlopen
11541 choke me
11542 #endif
11543
11544 int
11545 main ()
11546 {
11547 return dlopen ();
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_link") 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } && {
11566          test -z "$ac_c_werror_flag" ||
11567          test ! -s conftest.err
11568        } && test -s conftest$ac_exeext &&
11569        $as_test_x conftest$ac_exeext; then
11570   ac_cv_func_dlopen=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575         ac_cv_func_dlopen=no
11576 fi
11577
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579       conftest$ac_exeext conftest.$ac_ext
11580 fi
11581 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11582 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11583 if test $ac_cv_func_dlopen = yes; then
11584   lt_cv_dlopen="dlopen"
11585 else
11586   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11587 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11588 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   ac_check_lib_save_LIBS=$LIBS
11592 LIBS="-ldl  $LIBS"
11593 cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h.  */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h.  */
11599
11600 /* Override any GCC internal prototype to avoid an error.
11601    Use char because int might match the return type of a GCC
11602    builtin and then its argument prototype would still apply.  */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char dlopen ();
11607 int
11608 main ()
11609 {
11610 return dlopen ();
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622   (eval "$ac_link") 2>conftest.er1
11623   ac_status=$?
11624   grep -v '^ *+' conftest.er1 >conftest.err
11625   rm -f conftest.er1
11626   cat conftest.err >&5
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); } && {
11629          test -z "$ac_c_werror_flag" ||
11630          test ! -s conftest.err
11631        } && test -s conftest$ac_exeext &&
11632        $as_test_x conftest$ac_exeext; then
11633   ac_cv_lib_dl_dlopen=yes
11634 else
11635   echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638         ac_cv_lib_dl_dlopen=no
11639 fi
11640
11641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11642       conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11644 fi
11645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11647 if test $ac_cv_lib_dl_dlopen = yes; then
11648   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11649 else
11650   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11651 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11652 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655   ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-lsvld  $LIBS"
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char dlopen ();
11671 int
11672 main ()
11673 {
11674 return dlopen ();
11675   ;
11676   return 0;
11677 }
11678 _ACEOF
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (ac_try="$ac_link"
11681 case "(($ac_try" in
11682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683   *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686   (eval "$ac_link") 2>conftest.er1
11687   ac_status=$?
11688   grep -v '^ *+' conftest.er1 >conftest.err
11689   rm -f conftest.er1
11690   cat conftest.err >&5
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } && {
11693          test -z "$ac_c_werror_flag" ||
11694          test ! -s conftest.err
11695        } && test -s conftest$ac_exeext &&
11696        $as_test_x conftest$ac_exeext; then
11697   ac_cv_lib_svld_dlopen=yes
11698 else
11699   echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702         ac_cv_lib_svld_dlopen=no
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706       conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11708 fi
11709 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11710 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11711 if test $ac_cv_lib_svld_dlopen = yes; then
11712   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11713 else
11714   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11715 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   ac_check_lib_save_LIBS=$LIBS
11720 LIBS="-ldld  $LIBS"
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727
11728 /* Override any GCC internal prototype to avoid an error.
11729    Use char because int might match the return type of a GCC
11730    builtin and then its argument prototype would still apply.  */
11731 #ifdef __cplusplus
11732 extern "C"
11733 #endif
11734 char dld_link ();
11735 int
11736 main ()
11737 {
11738 return dld_link ();
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (ac_try="$ac_link"
11745 case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750   (eval "$ac_link") 2>conftest.er1
11751   ac_status=$?
11752   grep -v '^ *+' conftest.er1 >conftest.err
11753   rm -f conftest.er1
11754   cat conftest.err >&5
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); } && {
11757          test -z "$ac_c_werror_flag" ||
11758          test ! -s conftest.err
11759        } && test -s conftest$ac_exeext &&
11760        $as_test_x conftest$ac_exeext; then
11761   ac_cv_lib_dld_dld_link=yes
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766         ac_cv_lib_dld_dld_link=no
11767 fi
11768
11769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11770       conftest$ac_exeext conftest.$ac_ext
11771 LIBS=$ac_check_lib_save_LIBS
11772 fi
11773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11774 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11775 if test $ac_cv_lib_dld_dld_link = yes; then
11776   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11777 fi
11778
11779
11780 fi
11781
11782
11783 fi
11784
11785
11786 fi
11787
11788
11789 fi
11790
11791
11792 fi
11793
11794     ;;
11795   esac
11796
11797   if test "x$lt_cv_dlopen" != xno; then
11798     enable_dlopen=yes
11799   else
11800     enable_dlopen=no
11801   fi
11802
11803   case $lt_cv_dlopen in
11804   dlopen)
11805     save_CPPFLAGS="$CPPFLAGS"
11806     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11807
11808     save_LDFLAGS="$LDFLAGS"
11809     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11810
11811     save_LIBS="$LIBS"
11812     LIBS="$lt_cv_dlopen_libs $LIBS"
11813
11814     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11815 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11816 if test "${lt_cv_dlopen_self+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819           if test "$cross_compiling" = yes; then :
11820   lt_cv_dlopen_self=cross
11821 else
11822   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823   lt_status=$lt_dlunknown
11824   cat > conftest.$ac_ext <<EOF
11825 #line 11825 "configure"
11826 #include "confdefs.h"
11827
11828 #if HAVE_DLFCN_H
11829 #include <dlfcn.h>
11830 #endif
11831
11832 #include <stdio.h>
11833
11834 #ifdef RTLD_GLOBAL
11835 #  define LT_DLGLOBAL           RTLD_GLOBAL
11836 #else
11837 #  ifdef DL_GLOBAL
11838 #    define LT_DLGLOBAL         DL_GLOBAL
11839 #  else
11840 #    define LT_DLGLOBAL         0
11841 #  endif
11842 #endif
11843
11844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845    find out it does not work in some platform. */
11846 #ifndef LT_DLLAZY_OR_NOW
11847 #  ifdef RTLD_LAZY
11848 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11849 #  else
11850 #    ifdef DL_LAZY
11851 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11852 #    else
11853 #      ifdef RTLD_NOW
11854 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11855 #      else
11856 #        ifdef DL_NOW
11857 #          define LT_DLLAZY_OR_NOW      DL_NOW
11858 #        else
11859 #          define LT_DLLAZY_OR_NOW      0
11860 #        endif
11861 #      endif
11862 #    endif
11863 #  endif
11864 #endif
11865
11866 #ifdef __cplusplus
11867 extern "C" void exit (int);
11868 #endif
11869
11870 void fnord() { int i=42;}
11871 int main ()
11872 {
11873   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11874   int status = $lt_dlunknown;
11875
11876   if (self)
11877     {
11878       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11879       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880       /* dlclose (self); */
11881     }
11882   else
11883     puts (dlerror ());
11884
11885     exit (status);
11886 }
11887 EOF
11888   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889   (eval $ac_link) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11893     (./conftest; exit; ) >&5 2>/dev/null
11894     lt_status=$?
11895     case x$lt_status in
11896       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11897       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11898       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11899     esac
11900   else :
11901     # compilation failed
11902     lt_cv_dlopen_self=no
11903   fi
11904 fi
11905 rm -fr conftest*
11906
11907
11908 fi
11909 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11910 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11911
11912     if test "x$lt_cv_dlopen_self" = xyes; then
11913       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11914       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11915 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11916 if test "${lt_cv_dlopen_self_static+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919           if test "$cross_compiling" = yes; then :
11920   lt_cv_dlopen_self_static=cross
11921 else
11922   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11923   lt_status=$lt_dlunknown
11924   cat > conftest.$ac_ext <<EOF
11925 #line 11925 "configure"
11926 #include "confdefs.h"
11927
11928 #if HAVE_DLFCN_H
11929 #include <dlfcn.h>
11930 #endif
11931
11932 #include <stdio.h>
11933
11934 #ifdef RTLD_GLOBAL
11935 #  define LT_DLGLOBAL           RTLD_GLOBAL
11936 #else
11937 #  ifdef DL_GLOBAL
11938 #    define LT_DLGLOBAL         DL_GLOBAL
11939 #  else
11940 #    define LT_DLGLOBAL         0
11941 #  endif
11942 #endif
11943
11944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11945    find out it does not work in some platform. */
11946 #ifndef LT_DLLAZY_OR_NOW
11947 #  ifdef RTLD_LAZY
11948 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11949 #  else
11950 #    ifdef DL_LAZY
11951 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11952 #    else
11953 #      ifdef RTLD_NOW
11954 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11955 #      else
11956 #        ifdef DL_NOW
11957 #          define LT_DLLAZY_OR_NOW      DL_NOW
11958 #        else
11959 #          define LT_DLLAZY_OR_NOW      0
11960 #        endif
11961 #      endif
11962 #    endif
11963 #  endif
11964 #endif
11965
11966 #ifdef __cplusplus
11967 extern "C" void exit (int);
11968 #endif
11969
11970 void fnord() { int i=42;}
11971 int main ()
11972 {
11973   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11974   int status = $lt_dlunknown;
11975
11976   if (self)
11977     {
11978       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11979       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11980       /* dlclose (self); */
11981     }
11982   else
11983     puts (dlerror ());
11984
11985     exit (status);
11986 }
11987 EOF
11988   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989   (eval $ac_link) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11993     (./conftest; exit; ) >&5 2>/dev/null
11994     lt_status=$?
11995     case x$lt_status in
11996       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11997       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11998       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11999     esac
12000   else :
12001     # compilation failed
12002     lt_cv_dlopen_self_static=no
12003   fi
12004 fi
12005 rm -fr conftest*
12006
12007
12008 fi
12009 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12010 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12011     fi
12012
12013     CPPFLAGS="$save_CPPFLAGS"
12014     LDFLAGS="$save_LDFLAGS"
12015     LIBS="$save_LIBS"
12016     ;;
12017   esac
12018
12019   case $lt_cv_dlopen_self in
12020   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12021   *) enable_dlopen_self=unknown ;;
12022   esac
12023
12024   case $lt_cv_dlopen_self_static in
12025   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12026   *) enable_dlopen_self_static=unknown ;;
12027   esac
12028 fi
12029
12030
12031 # Report which library types will actually be built
12032 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12033 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12034 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12035 echo "${ECHO_T}$can_build_shared" >&6; }
12036
12037 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12038 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12039 test "$can_build_shared" = "no" && enable_shared=no
12040
12041 # On AIX, shared libraries and static libraries use the same namespace, and
12042 # are all built from PIC.
12043 case $host_os in
12044 aix3*)
12045   test "$enable_shared" = yes && enable_static=no
12046   if test -n "$RANLIB"; then
12047     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12048     postinstall_cmds='$RANLIB $lib'
12049   fi
12050   ;;
12051
12052 aix4* | aix5*)
12053   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12054     test "$enable_shared" = yes && enable_static=no
12055   fi
12056     ;;
12057 esac
12058 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12059 echo "${ECHO_T}$enable_shared" >&6; }
12060
12061 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12062 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12063 # Make sure either enable_shared or enable_static is yes.
12064 test "$enable_shared" = yes || enable_static=yes
12065 { echo "$as_me:$LINENO: result: $enable_static" >&5
12066 echo "${ECHO_T}$enable_static" >&6; }
12067
12068 # The else clause should only fire when bootstrapping the
12069 # libtool distribution, otherwise you forgot to ship ltmain.sh
12070 # with your package, and you will get complaints that there are
12071 # no rules to generate ltmain.sh.
12072 if test -f "$ltmain"; then
12073   # See if we are running on zsh, and set the options which allow our commands through
12074   # without removal of \ escapes.
12075   if test -n "${ZSH_VERSION+set}" ; then
12076     setopt NO_GLOB_SUBST
12077   fi
12078   # Now quote all the things that may contain metacharacters while being
12079   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12080   # variables and quote the copies for generation of the libtool script.
12081   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12082     SED SHELL STRIP \
12083     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12084     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12085     deplibs_check_method reload_flag reload_cmds need_locks \
12086     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12087     lt_cv_sys_global_symbol_to_c_name_address \
12088     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12089     old_postinstall_cmds old_postuninstall_cmds \
12090     compiler \
12091     CC \
12092     LD \
12093     lt_prog_compiler_wl \
12094     lt_prog_compiler_pic \
12095     lt_prog_compiler_static \
12096     lt_prog_compiler_no_builtin_flag \
12097     export_dynamic_flag_spec \
12098     thread_safe_flag_spec \
12099     whole_archive_flag_spec \
12100     enable_shared_with_static_runtimes \
12101     old_archive_cmds \
12102     old_archive_from_new_cmds \
12103     predep_objects \
12104     postdep_objects \
12105     predeps \
12106     postdeps \
12107     compiler_lib_search_path \
12108     archive_cmds \
12109     archive_expsym_cmds \
12110     postinstall_cmds \
12111     postuninstall_cmds \
12112     old_archive_from_expsyms_cmds \
12113     allow_undefined_flag \
12114     no_undefined_flag \
12115     export_symbols_cmds \
12116     hardcode_libdir_flag_spec \
12117     hardcode_libdir_flag_spec_ld \
12118     hardcode_libdir_separator \
12119     hardcode_automatic \
12120     module_cmds \
12121     module_expsym_cmds \
12122     lt_cv_prog_compiler_c_o \
12123     exclude_expsyms \
12124     include_expsyms; do
12125
12126     case $var in
12127     old_archive_cmds | \
12128     old_archive_from_new_cmds | \
12129     archive_cmds | \
12130     archive_expsym_cmds | \
12131     module_cmds | \
12132     module_expsym_cmds | \
12133     old_archive_from_expsyms_cmds | \
12134     export_symbols_cmds | \
12135     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12136     postinstall_cmds | postuninstall_cmds | \
12137     old_postinstall_cmds | old_postuninstall_cmds | \
12138     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12139       # Double-quote double-evaled strings.
12140       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12141       ;;
12142     *)
12143       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12144       ;;
12145     esac
12146   done
12147
12148   case $lt_echo in
12149   *'\$0 --fallback-echo"')
12150     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12151     ;;
12152   esac
12153
12154 cfgfile="${ofile}T"
12155   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12156   $rm -f "$cfgfile"
12157   { echo "$as_me:$LINENO: creating $ofile" >&5
12158 echo "$as_me: creating $ofile" >&6;}
12159
12160   cat <<__EOF__ >> "$cfgfile"
12161 #! $SHELL
12162
12163 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12164 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12165 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12166 #
12167 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12168 # Free Software Foundation, Inc.
12169 #
12170 # This file is part of GNU Libtool:
12171 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12172 #
12173 # This program is free software; you can redistribute it and/or modify
12174 # it under the terms of the GNU General Public License as published by
12175 # the Free Software Foundation; either version 2 of the License, or
12176 # (at your option) any later version.
12177 #
12178 # This program is distributed in the hope that it will be useful, but
12179 # WITHOUT ANY WARRANTY; without even the implied warranty of
12180 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12181 # General Public License for more details.
12182 #
12183 # You should have received a copy of the GNU General Public License
12184 # along with this program; if not, write to the Free Software
12185 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12186 #
12187 # As a special exception to the GNU General Public License, if you
12188 # distribute this file as part of a program that contains a
12189 # configuration script generated by Autoconf, you may include it under
12190 # the same distribution terms that you use for the rest of that program.
12191
12192 # A sed program that does not truncate output.
12193 SED=$lt_SED
12194
12195 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12196 Xsed="$SED -e 1s/^X//"
12197
12198 # The HP-UX ksh and POSIX shell print the target directory to stdout
12199 # if CDPATH is set.
12200 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12201
12202 # The names of the tagged configurations supported by this script.
12203 available_tags=
12204
12205 # ### BEGIN LIBTOOL CONFIG
12206
12207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12208
12209 # Shell to use when invoking shell scripts.
12210 SHELL=$lt_SHELL
12211
12212 # Whether or not to build shared libraries.
12213 build_libtool_libs=$enable_shared
12214
12215 # Whether or not to build static libraries.
12216 build_old_libs=$enable_static
12217
12218 # Whether or not to add -lc for building shared libraries.
12219 build_libtool_need_lc=$archive_cmds_need_lc
12220
12221 # Whether or not to disallow shared libs when runtime libs are static
12222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12223
12224 # Whether or not to optimize for fast installation.
12225 fast_install=$enable_fast_install
12226
12227 # The host system.
12228 host_alias=$host_alias
12229 host=$host
12230 host_os=$host_os
12231
12232 # The build system.
12233 build_alias=$build_alias
12234 build=$build
12235 build_os=$build_os
12236
12237 # An echo program that does not interpret backslashes.
12238 echo=$lt_echo
12239
12240 # The archiver.
12241 AR=$lt_AR
12242 AR_FLAGS=$lt_AR_FLAGS
12243
12244 # A C compiler.
12245 LTCC=$lt_LTCC
12246
12247 # LTCC compiler flags.
12248 LTCFLAGS=$lt_LTCFLAGS
12249
12250 # A language-specific compiler.
12251 CC=$lt_compiler
12252
12253 # Is the compiler the GNU C compiler?
12254 with_gcc=$GCC
12255
12256 # An ERE matcher.
12257 EGREP=$lt_EGREP
12258
12259 # The linker used to build libraries.
12260 LD=$lt_LD
12261
12262 # Whether we need hard or soft links.
12263 LN_S=$lt_LN_S
12264
12265 # A BSD-compatible nm program.
12266 NM=$lt_NM
12267
12268 # A symbol stripping program
12269 STRIP=$lt_STRIP
12270
12271 # Used to examine libraries when file_magic_cmd begins "file"
12272 MAGIC_CMD=$MAGIC_CMD
12273
12274 # Used on cygwin: DLL creation program.
12275 DLLTOOL="$DLLTOOL"
12276
12277 # Used on cygwin: object dumper.
12278 OBJDUMP="$OBJDUMP"
12279
12280 # Used on cygwin: assembler.
12281 AS="$AS"
12282
12283 # The name of the directory that contains temporary libtool files.
12284 objdir=$objdir
12285
12286 # How to create reloadable object files.
12287 reload_flag=$lt_reload_flag
12288 reload_cmds=$lt_reload_cmds
12289
12290 # How to pass a linker flag through the compiler.
12291 wl=$lt_lt_prog_compiler_wl
12292
12293 # Object file suffix (normally "o").
12294 objext="$ac_objext"
12295
12296 # Old archive suffix (normally "a").
12297 libext="$libext"
12298
12299 # Shared library suffix (normally ".so").
12300 shrext_cmds='$shrext_cmds'
12301
12302 # Executable file suffix (normally "").
12303 exeext="$exeext"
12304
12305 # Additional compiler flags for building library objects.
12306 pic_flag=$lt_lt_prog_compiler_pic
12307 pic_mode=$pic_mode
12308
12309 # What is the maximum length of a command?
12310 max_cmd_len=$lt_cv_sys_max_cmd_len
12311
12312 # Does compiler simultaneously support -c and -o options?
12313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12314
12315 # Must we lock files when doing compilation?
12316 need_locks=$lt_need_locks
12317
12318 # Do we need the lib prefix for modules?
12319 need_lib_prefix=$need_lib_prefix
12320
12321 # Do we need a version for libraries?
12322 need_version=$need_version
12323
12324 # Whether dlopen is supported.
12325 dlopen_support=$enable_dlopen
12326
12327 # Whether dlopen of programs is supported.
12328 dlopen_self=$enable_dlopen_self
12329
12330 # Whether dlopen of statically linked programs is supported.
12331 dlopen_self_static=$enable_dlopen_self_static
12332
12333 # Compiler flag to prevent dynamic linking.
12334 link_static_flag=$lt_lt_prog_compiler_static
12335
12336 # Compiler flag to turn off builtin functions.
12337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12338
12339 # Compiler flag to allow reflexive dlopens.
12340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12341
12342 # Compiler flag to generate shared objects directly from archives.
12343 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12344
12345 # Compiler flag to generate thread-safe objects.
12346 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12347
12348 # Library versioning type.
12349 version_type=$version_type
12350
12351 # Format of library name prefix.
12352 libname_spec=$lt_libname_spec
12353
12354 # List of archive names.  First name is the real one, the rest are links.
12355 # The last name is the one that the linker finds with -lNAME.
12356 library_names_spec=$lt_library_names_spec
12357
12358 # The coded name of the library, if different from the real name.
12359 soname_spec=$lt_soname_spec
12360
12361 # Commands used to build and install an old-style archive.
12362 RANLIB=$lt_RANLIB
12363 old_archive_cmds=$lt_old_archive_cmds
12364 old_postinstall_cmds=$lt_old_postinstall_cmds
12365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12366
12367 # Create an old-style archive from a shared archive.
12368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12369
12370 # Create a temporary old-style archive to link instead of a shared archive.
12371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12372
12373 # Commands used to build and install a shared archive.
12374 archive_cmds=$lt_archive_cmds
12375 archive_expsym_cmds=$lt_archive_expsym_cmds
12376 postinstall_cmds=$lt_postinstall_cmds
12377 postuninstall_cmds=$lt_postuninstall_cmds
12378
12379 # Commands used to build a loadable module (assumed same as above if empty)
12380 module_cmds=$lt_module_cmds
12381 module_expsym_cmds=$lt_module_expsym_cmds
12382
12383 # Commands to strip libraries.
12384 old_striplib=$lt_old_striplib
12385 striplib=$lt_striplib
12386
12387 # Dependencies to place before the objects being linked to create a
12388 # shared library.
12389 predep_objects=$lt_predep_objects
12390
12391 # Dependencies to place after the objects being linked to create a
12392 # shared library.
12393 postdep_objects=$lt_postdep_objects
12394
12395 # Dependencies to place before the objects being linked to create a
12396 # shared library.
12397 predeps=$lt_predeps
12398
12399 # Dependencies to place after the objects being linked to create a
12400 # shared library.
12401 postdeps=$lt_postdeps
12402
12403 # The library search path used internally by the compiler when linking
12404 # a shared library.
12405 compiler_lib_search_path=$lt_compiler_lib_search_path
12406
12407 # Method to check whether dependent libraries are shared objects.
12408 deplibs_check_method=$lt_deplibs_check_method
12409
12410 # Command to use when deplibs_check_method == file_magic.
12411 file_magic_cmd=$lt_file_magic_cmd
12412
12413 # Flag that allows shared libraries with undefined symbols to be built.
12414 allow_undefined_flag=$lt_allow_undefined_flag
12415
12416 # Flag that forces no undefined symbols.
12417 no_undefined_flag=$lt_no_undefined_flag
12418
12419 # Commands used to finish a libtool library installation in a directory.
12420 finish_cmds=$lt_finish_cmds
12421
12422 # Same as above, but a single script fragment to be evaled but not shown.
12423 finish_eval=$lt_finish_eval
12424
12425 # Take the output of nm and produce a listing of raw symbols and C names.
12426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12427
12428 # Transform the output of nm in a proper C declaration
12429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12430
12431 # Transform the output of nm in a C name address pair
12432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12433
12434 # This is the shared library runtime path variable.
12435 runpath_var=$runpath_var
12436
12437 # This is the shared library path variable.
12438 shlibpath_var=$shlibpath_var
12439
12440 # Is shlibpath searched before the hard-coded library search path?
12441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12442
12443 # How to hardcode a shared library path into an executable.
12444 hardcode_action=$hardcode_action
12445
12446 # Whether we should hardcode library paths into libraries.
12447 hardcode_into_libs=$hardcode_into_libs
12448
12449 # Flag to hardcode \$libdir into a binary during linking.
12450 # This must work even if \$libdir does not exist.
12451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12452
12453 # If ld is used when linking, flag to hardcode \$libdir into
12454 # a binary during linking. This must work even if \$libdir does
12455 # not exist.
12456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12457
12458 # Whether we need a single -rpath flag with a separated argument.
12459 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12460
12461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12462 # resulting binary.
12463 hardcode_direct=$hardcode_direct
12464
12465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12466 # resulting binary.
12467 hardcode_minus_L=$hardcode_minus_L
12468
12469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12470 # the resulting binary.
12471 hardcode_shlibpath_var=$hardcode_shlibpath_var
12472
12473 # Set to yes if building a shared library automatically hardcodes DIR into the library
12474 # and all subsequent libraries and executables linked against it.
12475 hardcode_automatic=$hardcode_automatic
12476
12477 # Variables whose values should be saved in libtool wrapper scripts and
12478 # restored at relink time.
12479 variables_saved_for_relink="$variables_saved_for_relink"
12480
12481 # Whether libtool must link a program against all its dependency libraries.
12482 link_all_deplibs=$link_all_deplibs
12483
12484 # Compile-time system search path for libraries
12485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12486
12487 # Run-time system search path for libraries
12488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12489
12490 # Fix the shell variable \$srcfile for the compiler.
12491 fix_srcfile_path="$fix_srcfile_path"
12492
12493 # Set to yes if exported symbols are required.
12494 always_export_symbols=$always_export_symbols
12495
12496 # The commands to list exported symbols.
12497 export_symbols_cmds=$lt_export_symbols_cmds
12498
12499 # The commands to extract the exported symbol list from a shared archive.
12500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12501
12502 # Symbols that should not be listed in the preloaded symbols.
12503 exclude_expsyms=$lt_exclude_expsyms
12504
12505 # Symbols that must always be exported.
12506 include_expsyms=$lt_include_expsyms
12507
12508 # ### END LIBTOOL CONFIG
12509
12510 __EOF__
12511
12512
12513   case $host_os in
12514   aix3*)
12515     cat <<\EOF >> "$cfgfile"
12516
12517 # AIX sometimes has problems with the GCC collect2 program.  For some
12518 # reason, if we set the COLLECT_NAMES environment variable, the problems
12519 # vanish in a puff of smoke.
12520 if test "X${COLLECT_NAMES+set}" != Xset; then
12521   COLLECT_NAMES=
12522   export COLLECT_NAMES
12523 fi
12524 EOF
12525     ;;
12526   esac
12527
12528   # We use sed instead of cat because bash on DJGPP gets confused if
12529   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12530   # text mode, it properly converts lines to CR/LF.  This bash problem
12531   # is reportedly fixed, but why not run on old versions too?
12532   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12533
12534   mv -f "$cfgfile" "$ofile" || \
12535     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12536   chmod +x "$ofile"
12537
12538 else
12539   # If there is no Makefile yet, we rely on a make rule to execute
12540   # `config.status --recheck' to rerun these tests and create the
12541   # libtool script then.
12542   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12543   if test -f "$ltmain_in"; then
12544     test -f Makefile && make "$ltmain"
12545   fi
12546 fi
12547
12548
12549 ac_ext=c
12550 ac_cpp='$CPP $CPPFLAGS'
12551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12554
12555 CC="$lt_save_CC"
12556
12557
12558 # Check whether --with-tags was given.
12559 if test "${with_tags+set}" = set; then
12560   withval=$with_tags; tagnames="$withval"
12561 fi
12562
12563
12564 if test -f "$ltmain" && test -n "$tagnames"; then
12565   if test ! -f "${ofile}"; then
12566     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12567 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12568   fi
12569
12570   if test -z "$LTCC"; then
12571     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12572     if test -z "$LTCC"; then
12573       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12574 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12575     else
12576       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12577 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12578     fi
12579   fi
12580   if test -z "$LTCFLAGS"; then
12581     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12582   fi
12583
12584   # Extract list of available tagged configurations in $ofile.
12585   # Note that this assumes the entire list is on one line.
12586   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12587
12588   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12589   for tagname in $tagnames; do
12590     IFS="$lt_save_ifs"
12591     # Check whether tagname contains only valid characters
12592     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12593     "") ;;
12594     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12595 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12596    { (exit 1); exit 1; }; }
12597         ;;
12598     esac
12599
12600     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12601     then
12602       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12603 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12604    { (exit 1); exit 1; }; }
12605     fi
12606
12607     # Update the list of available tags.
12608     if test -n "$tagname"; then
12609       echo appending configuration tag \"$tagname\" to $ofile
12610
12611       case $tagname in
12612       CXX)
12613         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12614             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12615             (test "X$CXX" != "Xg++"))) ; then
12616           ac_ext=cpp
12617 ac_cpp='$CXXCPP $CPPFLAGS'
12618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12621
12622
12623
12624
12625 archive_cmds_need_lc_CXX=no
12626 allow_undefined_flag_CXX=
12627 always_export_symbols_CXX=no
12628 archive_expsym_cmds_CXX=
12629 export_dynamic_flag_spec_CXX=
12630 hardcode_direct_CXX=no
12631 hardcode_libdir_flag_spec_CXX=
12632 hardcode_libdir_flag_spec_ld_CXX=
12633 hardcode_libdir_separator_CXX=
12634 hardcode_minus_L_CXX=no
12635 hardcode_shlibpath_var_CXX=unsupported
12636 hardcode_automatic_CXX=no
12637 module_cmds_CXX=
12638 module_expsym_cmds_CXX=
12639 link_all_deplibs_CXX=unknown
12640 old_archive_cmds_CXX=$old_archive_cmds
12641 no_undefined_flag_CXX=
12642 whole_archive_flag_spec_CXX=
12643 enable_shared_with_static_runtimes_CXX=no
12644
12645 # Dependencies to place before and after the object being linked:
12646 predep_objects_CXX=
12647 postdep_objects_CXX=
12648 predeps_CXX=
12649 postdeps_CXX=
12650 compiler_lib_search_path_CXX=
12651
12652 # Source file extension for C++ test sources.
12653 ac_ext=cpp
12654
12655 # Object file extension for compiled C++ test sources.
12656 objext=o
12657 objext_CXX=$objext
12658
12659 # Code to be used in simple compile tests
12660 lt_simple_compile_test_code="int some_variable = 0;\n"
12661
12662 # Code to be used in simple link tests
12663 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12664
12665 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12666
12667 # If no C compiler was specified, use CC.
12668 LTCC=${LTCC-"$CC"}
12669
12670 # If no C compiler flags were specified, use CFLAGS.
12671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12672
12673 # Allow CC to be a program name with arguments.
12674 compiler=$CC
12675
12676
12677 # save warnings/boilerplate of simple test code
12678 ac_outfile=conftest.$ac_objext
12679 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12680 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12681 _lt_compiler_boilerplate=`cat conftest.err`
12682 $rm conftest*
12683
12684 ac_outfile=conftest.$ac_objext
12685 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12686 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12687 _lt_linker_boilerplate=`cat conftest.err`
12688 $rm conftest*
12689
12690
12691 # Allow CC to be a program name with arguments.
12692 lt_save_CC=$CC
12693 lt_save_LD=$LD
12694 lt_save_GCC=$GCC
12695 GCC=$GXX
12696 lt_save_with_gnu_ld=$with_gnu_ld
12697 lt_save_path_LD=$lt_cv_path_LD
12698 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12699   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12700 else
12701   $as_unset lt_cv_prog_gnu_ld
12702 fi
12703 if test -n "${lt_cv_path_LDCXX+set}"; then
12704   lt_cv_path_LD=$lt_cv_path_LDCXX
12705 else
12706   $as_unset lt_cv_path_LD
12707 fi
12708 test -z "${LDCXX+set}" || LD=$LDCXX
12709 CC=${CXX-"c++"}
12710 compiler=$CC
12711 compiler_CXX=$CC
12712 for cc_temp in $compiler""; do
12713   case $cc_temp in
12714     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12715     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12716     \-*) ;;
12717     *) break;;
12718   esac
12719 done
12720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12721
12722
12723 # We don't want -fno-exception wen compiling C++ code, so set the
12724 # no_builtin_flag separately
12725 if test "$GXX" = yes; then
12726   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12727 else
12728   lt_prog_compiler_no_builtin_flag_CXX=
12729 fi
12730
12731 if test "$GXX" = yes; then
12732   # Set up default GNU C++ configuration
12733
12734
12735 # Check whether --with-gnu-ld was given.
12736 if test "${with_gnu_ld+set}" = set; then
12737   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12738 else
12739   with_gnu_ld=no
12740 fi
12741
12742 ac_prog=ld
12743 if test "$GCC" = yes; then
12744   # Check if gcc -print-prog-name=ld gives a path.
12745   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12746 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12747   case $host in
12748   *-*-mingw*)
12749     # gcc leaves a trailing carriage return which upsets mingw
12750     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12751   *)
12752     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12753   esac
12754   case $ac_prog in
12755     # Accept absolute paths.
12756     [\\/]* | ?:[\\/]*)
12757       re_direlt='/[^/][^/]*/\.\./'
12758       # Canonicalize the pathname of ld
12759       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12760       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12761         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12762       done
12763       test -z "$LD" && LD="$ac_prog"
12764       ;;
12765   "")
12766     # If it fails, then pretend we aren't using GCC.
12767     ac_prog=ld
12768     ;;
12769   *)
12770     # If it is relative, then search for the first ld in PATH.
12771     with_gnu_ld=unknown
12772     ;;
12773   esac
12774 elif test "$with_gnu_ld" = yes; then
12775   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12776 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12777 else
12778   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12779 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12780 fi
12781 if test "${lt_cv_path_LD+set}" = set; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784   if test -z "$LD"; then
12785   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12786   for ac_dir in $PATH; do
12787     IFS="$lt_save_ifs"
12788     test -z "$ac_dir" && ac_dir=.
12789     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12790       lt_cv_path_LD="$ac_dir/$ac_prog"
12791       # Check to see if the program is GNU ld.  I'd rather use --version,
12792       # but apparently some variants of GNU ld only accept -v.
12793       # Break only if it was the GNU/non-GNU ld that we prefer.
12794       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12795       *GNU* | *'with BFD'*)
12796         test "$with_gnu_ld" != no && break
12797         ;;
12798       *)
12799         test "$with_gnu_ld" != yes && break
12800         ;;
12801       esac
12802     fi
12803   done
12804   IFS="$lt_save_ifs"
12805 else
12806   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12807 fi
12808 fi
12809
12810 LD="$lt_cv_path_LD"
12811 if test -n "$LD"; then
12812   { echo "$as_me:$LINENO: result: $LD" >&5
12813 echo "${ECHO_T}$LD" >&6; }
12814 else
12815   { echo "$as_me:$LINENO: result: no" >&5
12816 echo "${ECHO_T}no" >&6; }
12817 fi
12818 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12819 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12820    { (exit 1); exit 1; }; }
12821 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12822 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12823 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12827 case `$LD -v 2>&1 </dev/null` in
12828 *GNU* | *'with BFD'*)
12829   lt_cv_prog_gnu_ld=yes
12830   ;;
12831 *)
12832   lt_cv_prog_gnu_ld=no
12833   ;;
12834 esac
12835 fi
12836 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12837 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12838 with_gnu_ld=$lt_cv_prog_gnu_ld
12839
12840
12841
12842   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12843   # archiving commands below assume that GNU ld is being used.
12844   if test "$with_gnu_ld" = yes; then
12845     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846     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'
12847
12848     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12849     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12850
12851     # If archive_cmds runs LD, not CC, wlarc should be empty
12852     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12853     #     investigate it a little bit more. (MM)
12854     wlarc='${wl}'
12855
12856     # ancient GNU ld didn't support --whole-archive et. al.
12857     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12858         grep 'no-whole-archive' > /dev/null; then
12859       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12860     else
12861       whole_archive_flag_spec_CXX=
12862     fi
12863   else
12864     with_gnu_ld=no
12865     wlarc=
12866
12867     # A generic and very simple default shared library creation
12868     # command for GNU C++ for the case where it uses the native
12869     # linker, instead of GNU ld.  If possible, this setting should
12870     # overridden to take advantage of the native linker features on
12871     # the platform it is being used on.
12872     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12873   fi
12874
12875   # Commands to make compiler produce verbose output that lists
12876   # what "hidden" libraries, object files and flags are used when
12877   # linking a shared library.
12878   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12879
12880 else
12881   GXX=no
12882   with_gnu_ld=no
12883   wlarc=
12884 fi
12885
12886 # PORTME: fill in a description of your system's C++ link characteristics
12887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12889 ld_shlibs_CXX=yes
12890 case $host_os in
12891   aix3*)
12892     # FIXME: insert proper C++ library support
12893     ld_shlibs_CXX=no
12894     ;;
12895   aix4* | aix5*)
12896     if test "$host_cpu" = ia64; then
12897       # On IA64, the linker does run time linking by default, so we don't
12898       # have to do anything special.
12899       aix_use_runtimelinking=no
12900       exp_sym_flag='-Bexport'
12901       no_entry_flag=""
12902     else
12903       aix_use_runtimelinking=no
12904
12905       # Test if we are trying to use run time linking or normal
12906       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12907       # need to do runtime linking.
12908       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12909         for ld_flag in $LDFLAGS; do
12910           case $ld_flag in
12911           *-brtl*)
12912             aix_use_runtimelinking=yes
12913             break
12914             ;;
12915           esac
12916         done
12917         ;;
12918       esac
12919
12920       exp_sym_flag='-bexport'
12921       no_entry_flag='-bnoentry'
12922     fi
12923
12924     # When large executables or shared objects are built, AIX ld can
12925     # have problems creating the table of contents.  If linking a library
12926     # or program results in "error TOC overflow" add -mminimal-toc to
12927     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12928     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12929
12930     archive_cmds_CXX=''
12931     hardcode_direct_CXX=yes
12932     hardcode_libdir_separator_CXX=':'
12933     link_all_deplibs_CXX=yes
12934
12935     if test "$GXX" = yes; then
12936       case $host_os in aix4.[012]|aix4.[012].*)
12937       # We only want to do this on AIX 4.2 and lower, the check
12938       # below for broken collect2 doesn't work under 4.3+
12939         collect2name=`${CC} -print-prog-name=collect2`
12940         if test -f "$collect2name" && \
12941            strings "$collect2name" | grep resolve_lib_name >/dev/null
12942         then
12943           # We have reworked collect2
12944           hardcode_direct_CXX=yes
12945         else
12946           # We have old collect2
12947           hardcode_direct_CXX=unsupported
12948           # It fails to find uninstalled libraries when the uninstalled
12949           # path is not listed in the libpath.  Setting hardcode_minus_L
12950           # to unsupported forces relinking
12951           hardcode_minus_L_CXX=yes
12952           hardcode_libdir_flag_spec_CXX='-L$libdir'
12953           hardcode_libdir_separator_CXX=
12954         fi
12955         ;;
12956       esac
12957       shared_flag='-shared'
12958       if test "$aix_use_runtimelinking" = yes; then
12959         shared_flag="$shared_flag "'${wl}-G'
12960       fi
12961     else
12962       # not using gcc
12963       if test "$host_cpu" = ia64; then
12964         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12965         # chokes on -Wl,-G. The following line is correct:
12966         shared_flag='-G'
12967       else
12968         if test "$aix_use_runtimelinking" = yes; then
12969           shared_flag='${wl}-G'
12970         else
12971           shared_flag='${wl}-bM:SRE'
12972         fi
12973       fi
12974     fi
12975
12976     # It seems that -bexpall does not export symbols beginning with
12977     # underscore (_), so it is better to generate a list of symbols to export.
12978     always_export_symbols_CXX=yes
12979     if test "$aix_use_runtimelinking" = yes; then
12980       # Warning - without using the other runtime loading flags (-brtl),
12981       # -berok will link without error, but may produce a broken library.
12982       allow_undefined_flag_CXX='-berok'
12983       # Determine the default libpath from the value encoded in an empty executable.
12984       cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h.  */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h.  */
12990
12991 int
12992 main ()
12993 {
12994
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003   *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006   (eval "$ac_link") 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } && {
13013          test -z "$ac_cxx_werror_flag" ||
13014          test ! -s conftest.err
13015        } && test -s conftest$ac_exeext &&
13016        $as_test_x conftest$ac_exeext; then
13017
13018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13019 }'`
13020 # Check for a 64-bit object if we didn't find anything.
13021 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13022 }'`; fi
13023 else
13024   echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027
13028 fi
13029
13030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13031       conftest$ac_exeext conftest.$ac_ext
13032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13033
13034       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13035
13036       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"
13037      else
13038       if test "$host_cpu" = ia64; then
13039         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13040         allow_undefined_flag_CXX="-z nodefs"
13041         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"
13042       else
13043         # Determine the default libpath from the value encoded in an empty executable.
13044         cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050
13051 int
13052 main ()
13053 {
13054
13055   ;
13056   return 0;
13057 }
13058 _ACEOF
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (ac_try="$ac_link"
13061 case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_link") 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } && {
13073          test -z "$ac_cxx_werror_flag" ||
13074          test ! -s conftest.err
13075        } && test -s conftest$ac_exeext &&
13076        $as_test_x conftest$ac_exeext; then
13077
13078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13079 }'`
13080 # Check for a 64-bit object if we didn't find anything.
13081 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13082 }'`; fi
13083 else
13084   echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087
13088 fi
13089
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091       conftest$ac_exeext conftest.$ac_ext
13092 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13093
13094         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13095         # Warning - without using the other run time loading flags,
13096         # -berok will link without error, but may produce a broken library.
13097         no_undefined_flag_CXX=' ${wl}-bernotok'
13098         allow_undefined_flag_CXX=' ${wl}-berok'
13099         # Exported symbols can be pulled into shared objects from archives
13100         whole_archive_flag_spec_CXX='$convenience'
13101         archive_cmds_need_lc_CXX=yes
13102         # This is similar to how AIX traditionally builds its shared libraries.
13103         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'
13104       fi
13105     fi
13106     ;;
13107
13108   beos*)
13109     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13110       allow_undefined_flag_CXX=unsupported
13111       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13112       # support --undefined.  This deserves some investigation.  FIXME
13113       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114     else
13115       ld_shlibs_CXX=no
13116     fi
13117     ;;
13118
13119   chorus*)
13120     case $cc_basename in
13121       *)
13122         # FIXME: insert proper C++ library support
13123         ld_shlibs_CXX=no
13124         ;;
13125     esac
13126     ;;
13127
13128   cygwin* | mingw* | pw32*)
13129     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13130     # as there is no search path for DLLs.
13131     hardcode_libdir_flag_spec_CXX='-L$libdir'
13132     allow_undefined_flag_CXX=unsupported
13133     always_export_symbols_CXX=no
13134     enable_shared_with_static_runtimes_CXX=yes
13135
13136     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13137       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'
13138       # If the export-symbols file already is a .def file (1st line
13139       # is EXPORTS), use it as is; otherwise, prepend...
13140       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13141         cp $export_symbols $output_objdir/$soname.def;
13142       else
13143         echo EXPORTS > $output_objdir/$soname.def;
13144         cat $export_symbols >> $output_objdir/$soname.def;
13145       fi~
13146       $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'
13147     else
13148       ld_shlibs_CXX=no
13149     fi
13150   ;;
13151       darwin* | rhapsody*)
13152         case $host_os in
13153         rhapsody* | darwin1.[012])
13154          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13155          ;;
13156        *) # Darwin 1.3 on
13157          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13158            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13159          else
13160            case ${MACOSX_DEPLOYMENT_TARGET} in
13161              10.[012])
13162                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13163                ;;
13164              10.*)
13165                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13166                ;;
13167            esac
13168          fi
13169          ;;
13170         esac
13171       archive_cmds_need_lc_CXX=no
13172       hardcode_direct_CXX=no
13173       hardcode_automatic_CXX=yes
13174       hardcode_shlibpath_var_CXX=unsupported
13175       whole_archive_flag_spec_CXX=''
13176       link_all_deplibs_CXX=yes
13177
13178     if test "$GXX" = yes ; then
13179       lt_int_apple_cc_single_mod=no
13180       output_verbose_link_cmd='echo'
13181       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13182        lt_int_apple_cc_single_mod=yes
13183       fi
13184       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13185        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13186       else
13187           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'
13188         fi
13189         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13190         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13191           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13192             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13193           else
13194             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13195           fi
13196             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}'
13197       else
13198       case $cc_basename in
13199         xlc*)
13200          output_verbose_link_cmd='echo'
13201           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13202           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13203           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13204           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13205           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}'
13206           ;;
13207        *)
13208          ld_shlibs_CXX=no
13209           ;;
13210       esac
13211       fi
13212         ;;
13213
13214   dgux*)
13215     case $cc_basename in
13216       ec++*)
13217         # FIXME: insert proper C++ library support
13218         ld_shlibs_CXX=no
13219         ;;
13220       ghcx*)
13221         # Green Hills C++ Compiler
13222         # FIXME: insert proper C++ library support
13223         ld_shlibs_CXX=no
13224         ;;
13225       *)
13226         # FIXME: insert proper C++ library support
13227         ld_shlibs_CXX=no
13228         ;;
13229     esac
13230     ;;
13231   freebsd[12]*)
13232     # C++ shared libraries reported to be fairly broken before switch to ELF
13233     ld_shlibs_CXX=no
13234     ;;
13235   freebsd-elf*)
13236     archive_cmds_need_lc_CXX=no
13237     ;;
13238   freebsd* | kfreebsd*-gnu | dragonfly*)
13239     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13240     # conventions
13241     ld_shlibs_CXX=yes
13242     ;;
13243   gnu*)
13244     ;;
13245   hpux9*)
13246     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13247     hardcode_libdir_separator_CXX=:
13248     export_dynamic_flag_spec_CXX='${wl}-E'
13249     hardcode_direct_CXX=yes
13250     hardcode_minus_L_CXX=yes # Not in the search PATH,
13251                                 # but as the default
13252                                 # location of the library.
13253
13254     case $cc_basename in
13255     CC*)
13256       # FIXME: insert proper C++ library support
13257       ld_shlibs_CXX=no
13258       ;;
13259     aCC*)
13260       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'
13261       # Commands to make compiler produce verbose output that lists
13262       # what "hidden" libraries, object files and flags are used when
13263       # linking a shared library.
13264       #
13265       # There doesn't appear to be a way to prevent this compiler from
13266       # explicitly linking system object files so we need to strip them
13267       # from the output so that they don't get included in the library
13268       # dependencies.
13269       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'
13270       ;;
13271     *)
13272       if test "$GXX" = yes; then
13273         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'
13274       else
13275         # FIXME: insert proper C++ library support
13276         ld_shlibs_CXX=no
13277       fi
13278       ;;
13279     esac
13280     ;;
13281   hpux10*|hpux11*)
13282     if test $with_gnu_ld = no; then
13283       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13284       hardcode_libdir_separator_CXX=:
13285
13286       case $host_cpu in
13287       hppa*64*|ia64*)
13288         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13289         ;;
13290       *)
13291         export_dynamic_flag_spec_CXX='${wl}-E'
13292         ;;
13293       esac
13294     fi
13295     case $host_cpu in
13296     hppa*64*|ia64*)
13297       hardcode_direct_CXX=no
13298       hardcode_shlibpath_var_CXX=no
13299       ;;
13300     *)
13301       hardcode_direct_CXX=yes
13302       hardcode_minus_L_CXX=yes # Not in the search PATH,
13303                                               # but as the default
13304                                               # location of the library.
13305       ;;
13306     esac
13307
13308     case $cc_basename in
13309       CC*)
13310         # FIXME: insert proper C++ library support
13311         ld_shlibs_CXX=no
13312         ;;
13313       aCC*)
13314         case $host_cpu in
13315         hppa*64*)
13316           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13317           ;;
13318         ia64*)
13319           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13320           ;;
13321         *)
13322           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323           ;;
13324         esac
13325         # Commands to make compiler produce verbose output that lists
13326         # what "hidden" libraries, object files and flags are used when
13327         # linking a shared library.
13328         #
13329         # There doesn't appear to be a way to prevent this compiler from
13330         # explicitly linking system object files so we need to strip them
13331         # from the output so that they don't get included in the library
13332         # dependencies.
13333         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'
13334         ;;
13335       *)
13336         if test "$GXX" = yes; then
13337           if test $with_gnu_ld = no; then
13338             case $host_cpu in
13339             hppa*64*)
13340               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13341               ;;
13342             ia64*)
13343               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13344               ;;
13345             *)
13346               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'
13347               ;;
13348             esac
13349           fi
13350         else
13351           # FIXME: insert proper C++ library support
13352           ld_shlibs_CXX=no
13353         fi
13354         ;;
13355     esac
13356     ;;
13357   interix3*)
13358     hardcode_direct_CXX=no
13359     hardcode_shlibpath_var_CXX=no
13360     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13361     export_dynamic_flag_spec_CXX='${wl}-E'
13362     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13363     # Instead, shared libraries are loaded at an image base (0x10000000 by
13364     # default) and relocated if they conflict, which is a slow very memory
13365     # consuming and fragmenting process.  To avoid this, we pick a random,
13366     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13367     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13368     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'
13369     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'
13370     ;;
13371   irix5* | irix6*)
13372     case $cc_basename in
13373       CC*)
13374         # SGI C++
13375         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'
13376
13377         # Archives containing C++ object files must be created using
13378         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13379         # necessary to make sure instantiated templates are included
13380         # in the archive.
13381         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13382         ;;
13383       *)
13384         if test "$GXX" = yes; then
13385           if test "$with_gnu_ld" = no; then
13386             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'
13387           else
13388             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'
13389           fi
13390         fi
13391         link_all_deplibs_CXX=yes
13392         ;;
13393     esac
13394     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13395     hardcode_libdir_separator_CXX=:
13396     ;;
13397   linux*)
13398     case $cc_basename in
13399       KCC*)
13400         # Kuck and Associates, Inc. (KAI) C++ Compiler
13401
13402         # KCC will only create a shared library if the output file
13403         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13404         # to its proper name (with version) after linking.
13405         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'
13406         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'
13407         # Commands to make compiler produce verbose output that lists
13408         # what "hidden" libraries, object files and flags are used when
13409         # linking a shared library.
13410         #
13411         # There doesn't appear to be a way to prevent this compiler from
13412         # explicitly linking system object files so we need to strip them
13413         # from the output so that they don't get included in the library
13414         # dependencies.
13415         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'
13416
13417         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13418         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13419
13420         # Archives containing C++ object files must be created using
13421         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13422         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13423         ;;
13424       icpc*)
13425         # Intel C++
13426         with_gnu_ld=yes
13427         # version 8.0 and above of icpc choke on multiply defined symbols
13428         # if we add $predep_objects and $postdep_objects, however 7.1 and
13429         # earlier do not add the objects themselves.
13430         case `$CC -V 2>&1` in
13431         *"Version 7."*)
13432           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433           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'
13434           ;;
13435         *)  # Version 8.0 or newer
13436           tmp_idyn=
13437           case $host_cpu in
13438             ia64*) tmp_idyn=' -i_dynamic';;
13439           esac
13440           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13441           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'
13442           ;;
13443         esac
13444         archive_cmds_need_lc_CXX=no
13445         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13446         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13448         ;;
13449       pgCC*)
13450         # Portland Group C++ compiler
13451         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13452         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'
13453
13454         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13455         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13456         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'
13457         ;;
13458       cxx*)
13459         # Compaq C++
13460         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461         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'
13462
13463         runpath_var=LD_RUN_PATH
13464         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13465         hardcode_libdir_separator_CXX=:
13466
13467         # Commands to make compiler produce verbose output that lists
13468         # what "hidden" libraries, object files and flags are used when
13469         # linking a shared library.
13470         #
13471         # There doesn't appear to be a way to prevent this compiler from
13472         # explicitly linking system object files so we need to strip them
13473         # from the output so that they don't get included in the library
13474         # dependencies.
13475         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'
13476         ;;
13477     esac
13478     ;;
13479   lynxos*)
13480     # FIXME: insert proper C++ library support
13481     ld_shlibs_CXX=no
13482     ;;
13483   m88k*)
13484     # FIXME: insert proper C++ library support
13485     ld_shlibs_CXX=no
13486     ;;
13487   mvs*)
13488     case $cc_basename in
13489       cxx*)
13490         # FIXME: insert proper C++ library support
13491         ld_shlibs_CXX=no
13492         ;;
13493       *)
13494         # FIXME: insert proper C++ library support
13495         ld_shlibs_CXX=no
13496         ;;
13497     esac
13498     ;;
13499   netbsd*)
13500     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13501       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13502       wlarc=
13503       hardcode_libdir_flag_spec_CXX='-R$libdir'
13504       hardcode_direct_CXX=yes
13505       hardcode_shlibpath_var_CXX=no
13506     fi
13507     # Workaround some broken pre-1.5 toolchains
13508     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13509     ;;
13510   openbsd2*)
13511     # C++ shared libraries are fairly broken
13512     ld_shlibs_CXX=no
13513     ;;
13514   openbsd*)
13515     hardcode_direct_CXX=yes
13516     hardcode_shlibpath_var_CXX=no
13517     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13518     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13519     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13520       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13521       export_dynamic_flag_spec_CXX='${wl}-E'
13522       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13523     fi
13524     output_verbose_link_cmd='echo'
13525     ;;
13526   osf3*)
13527     case $cc_basename in
13528       KCC*)
13529         # Kuck and Associates, Inc. (KAI) C++ Compiler
13530
13531         # KCC will only create a shared library if the output file
13532         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13533         # to its proper name (with version) after linking.
13534         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'
13535
13536         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537         hardcode_libdir_separator_CXX=:
13538
13539         # Archives containing C++ object files must be created using
13540         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13541         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13542
13543         ;;
13544       RCC*)
13545         # Rational C++ 2.4.1
13546         # FIXME: insert proper C++ library support
13547         ld_shlibs_CXX=no
13548         ;;
13549       cxx*)
13550         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13551         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'
13552
13553         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13554         hardcode_libdir_separator_CXX=:
13555
13556         # Commands to make compiler produce verbose output that lists
13557         # what "hidden" libraries, object files and flags are used when
13558         # linking a shared library.
13559         #
13560         # There doesn't appear to be a way to prevent this compiler from
13561         # explicitly linking system object files so we need to strip them
13562         # from the output so that they don't get included in the library
13563         # dependencies.
13564         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'
13565         ;;
13566       *)
13567         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13568           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13569           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'
13570
13571           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13572           hardcode_libdir_separator_CXX=:
13573
13574           # Commands to make compiler produce verbose output that lists
13575           # what "hidden" libraries, object files and flags are used when
13576           # linking a shared library.
13577           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13578
13579         else
13580           # FIXME: insert proper C++ library support
13581           ld_shlibs_CXX=no
13582         fi
13583         ;;
13584     esac
13585     ;;
13586   osf4* | osf5*)
13587     case $cc_basename in
13588       KCC*)
13589         # Kuck and Associates, Inc. (KAI) C++ Compiler
13590
13591         # KCC will only create a shared library if the output file
13592         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13593         # to its proper name (with version) after linking.
13594         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'
13595
13596         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13597         hardcode_libdir_separator_CXX=:
13598
13599         # Archives containing C++ object files must be created using
13600         # the KAI C++ compiler.
13601         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13602         ;;
13603       RCC*)
13604         # Rational C++ 2.4.1
13605         # FIXME: insert proper C++ library support
13606         ld_shlibs_CXX=no
13607         ;;
13608       cxx*)
13609         allow_undefined_flag_CXX=' -expect_unresolved \*'
13610         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'
13611         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13612           echo "-hidden">> $lib.exp~
13613           $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~
13614           $rm $lib.exp'
13615
13616         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13617         hardcode_libdir_separator_CXX=:
13618
13619         # Commands to make compiler produce verbose output that lists
13620         # what "hidden" libraries, object files and flags are used when
13621         # linking a shared library.
13622         #
13623         # There doesn't appear to be a way to prevent this compiler from
13624         # explicitly linking system object files so we need to strip them
13625         # from the output so that they don't get included in the library
13626         # dependencies.
13627         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'
13628         ;;
13629       *)
13630         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13631           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13632          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'
13633
13634           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13635           hardcode_libdir_separator_CXX=:
13636
13637           # Commands to make compiler produce verbose output that lists
13638           # what "hidden" libraries, object files and flags are used when
13639           # linking a shared library.
13640           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13641
13642         else
13643           # FIXME: insert proper C++ library support
13644           ld_shlibs_CXX=no
13645         fi
13646         ;;
13647     esac
13648     ;;
13649   psos*)
13650     # FIXME: insert proper C++ library support
13651     ld_shlibs_CXX=no
13652     ;;
13653   sunos4*)
13654     case $cc_basename in
13655       CC*)
13656         # Sun C++ 4.x
13657         # FIXME: insert proper C++ library support
13658         ld_shlibs_CXX=no
13659         ;;
13660       lcc*)
13661         # Lucid
13662         # FIXME: insert proper C++ library support
13663         ld_shlibs_CXX=no
13664         ;;
13665       *)
13666         # FIXME: insert proper C++ library support
13667         ld_shlibs_CXX=no
13668         ;;
13669     esac
13670     ;;
13671   solaris*)
13672     case $cc_basename in
13673       CC*)
13674         # Sun C++ 4.2, 5.x and Centerline C++
13675         archive_cmds_need_lc_CXX=yes
13676         no_undefined_flag_CXX=' -zdefs'
13677         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13678         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13679         $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'
13680
13681         hardcode_libdir_flag_spec_CXX='-R$libdir'
13682         hardcode_shlibpath_var_CXX=no
13683         case $host_os in
13684           solaris2.[0-5] | solaris2.[0-5].*) ;;
13685           *)
13686             # The C++ compiler is used as linker so we must use $wl
13687             # flag to pass the commands to the underlying system
13688             # linker. We must also pass each convience library through
13689             # to the system linker between allextract/defaultextract.
13690             # The C++ compiler will combine linker options so we
13691             # cannot just pass the convience library names through
13692             # without $wl.
13693             # Supported since Solaris 2.6 (maybe 2.5.1?)
13694             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13695             ;;
13696         esac
13697         link_all_deplibs_CXX=yes
13698
13699         output_verbose_link_cmd='echo'
13700
13701         # Archives containing C++ object files must be created using
13702         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13703         # necessary to make sure instantiated templates are included
13704         # in the archive.
13705         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13706         ;;
13707       gcx*)
13708         # Green Hills C++ Compiler
13709         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13710
13711         # The C++ compiler must be used to create the archive.
13712         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13713         ;;
13714       *)
13715         # GNU C++ compiler with Solaris linker
13716         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13717           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13718           if $CC --version | grep -v '^2\.7' > /dev/null; then
13719             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13720             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13721                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13722
13723             # Commands to make compiler produce verbose output that lists
13724             # what "hidden" libraries, object files and flags are used when
13725             # linking a shared library.
13726             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13727           else
13728             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13729             # platform.
13730             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13731             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13732                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13733
13734             # Commands to make compiler produce verbose output that lists
13735             # what "hidden" libraries, object files and flags are used when
13736             # linking a shared library.
13737             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13738           fi
13739
13740           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13741         fi
13742         ;;
13743     esac
13744     ;;
13745   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13746     no_undefined_flag_CXX='${wl}-z,text'
13747     archive_cmds_need_lc_CXX=no
13748     hardcode_shlibpath_var_CXX=no
13749     runpath_var='LD_RUN_PATH'
13750
13751     case $cc_basename in
13752       CC*)
13753         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13754         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13755         ;;
13756       *)
13757         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13758         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13759         ;;
13760     esac
13761     ;;
13762   sysv5* | sco3.2v5* | sco5v6*)
13763     # Note: We can NOT use -z defs as we might desire, because we do not
13764     # link with -lc, and that would cause any symbols used from libc to
13765     # always be unresolved, which means just about no library would
13766     # ever link correctly.  If we're not using GNU ld we use -z text
13767     # though, which does catch some bad symbols but isn't as heavy-handed
13768     # as -z defs.
13769     # For security reasons, it is highly recommended that you always
13770     # use absolute paths for naming shared libraries, and exclude the
13771     # DT_RUNPATH tag from executables and libraries.  But doing so
13772     # requires that you compile everything twice, which is a pain.
13773     # So that behaviour is only enabled if SCOABSPATH is set to a
13774     # non-empty value in the environment.  Most likely only useful for
13775     # creating official distributions of packages.
13776     # This is a hack until libtool officially supports absolute path
13777     # names for shared libraries.
13778     no_undefined_flag_CXX='${wl}-z,text'
13779     allow_undefined_flag_CXX='${wl}-z,nodefs'
13780     archive_cmds_need_lc_CXX=no
13781     hardcode_shlibpath_var_CXX=no
13782     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13783     hardcode_libdir_separator_CXX=':'
13784     link_all_deplibs_CXX=yes
13785     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13786     runpath_var='LD_RUN_PATH'
13787
13788     case $cc_basename in
13789       CC*)
13790         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13791         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13792         ;;
13793       *)
13794         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13795         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13796         ;;
13797     esac
13798     ;;
13799   tandem*)
13800     case $cc_basename in
13801       NCC*)
13802         # NonStop-UX NCC 3.20
13803         # FIXME: insert proper C++ library support
13804         ld_shlibs_CXX=no
13805         ;;
13806       *)
13807         # FIXME: insert proper C++ library support
13808         ld_shlibs_CXX=no
13809         ;;
13810     esac
13811     ;;
13812   vxworks*)
13813     # FIXME: insert proper C++ library support
13814     ld_shlibs_CXX=no
13815     ;;
13816   *)
13817     # FIXME: insert proper C++ library support
13818     ld_shlibs_CXX=no
13819     ;;
13820 esac
13821 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13822 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13823 test "$ld_shlibs_CXX" = no && can_build_shared=no
13824
13825 GCC_CXX="$GXX"
13826 LD_CXX="$LD"
13827
13828 ## CAVEAT EMPTOR:
13829 ## There is no encapsulation within the following macros, do not change
13830 ## the running order or otherwise move them around unless you know exactly
13831 ## what you are doing...
13832
13833 cat > conftest.$ac_ext <<EOF
13834 class Foo
13835 {
13836 public:
13837   Foo (void) { a = 0; }
13838 private:
13839   int a;
13840 };
13841 EOF
13842
13843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844   (eval $ac_compile) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; then
13848   # Parse the compiler output and extract the necessary
13849   # objects, libraries and library flags.
13850
13851   # Sentinel used to keep track of whether or not we are before
13852   # the conftest object file.
13853   pre_test_object_deps_done=no
13854
13855   # The `*' in the case matches for architectures that use `case' in
13856   # $output_verbose_cmd can trigger glob expansion during the loop
13857   # eval without this substitution.
13858   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13859
13860   for p in `eval $output_verbose_link_cmd`; do
13861     case $p in
13862
13863     -L* | -R* | -l*)
13864        # Some compilers place space between "-{L,R}" and the path.
13865        # Remove the space.
13866        if test $p = "-L" \
13867           || test $p = "-R"; then
13868          prev=$p
13869          continue
13870        else
13871          prev=
13872        fi
13873
13874        if test "$pre_test_object_deps_done" = no; then
13875          case $p in
13876          -L* | -R*)
13877            # Internal compiler library paths should come after those
13878            # provided the user.  The postdeps already come after the
13879            # user supplied libs so there is no need to process them.
13880            if test -z "$compiler_lib_search_path_CXX"; then
13881              compiler_lib_search_path_CXX="${prev}${p}"
13882            else
13883              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13884            fi
13885            ;;
13886          # The "-l" case would never come before the object being
13887          # linked, so don't bother handling this case.
13888          esac
13889        else
13890          if test -z "$postdeps_CXX"; then
13891            postdeps_CXX="${prev}${p}"
13892          else
13893            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13894          fi
13895        fi
13896        ;;
13897
13898     *.$objext)
13899        # This assumes that the test object file only shows up
13900        # once in the compiler output.
13901        if test "$p" = "conftest.$objext"; then
13902          pre_test_object_deps_done=yes
13903          continue
13904        fi
13905
13906        if test "$pre_test_object_deps_done" = no; then
13907          if test -z "$predep_objects_CXX"; then
13908            predep_objects_CXX="$p"
13909          else
13910            predep_objects_CXX="$predep_objects_CXX $p"
13911          fi
13912        else
13913          if test -z "$postdep_objects_CXX"; then
13914            postdep_objects_CXX="$p"
13915          else
13916            postdep_objects_CXX="$postdep_objects_CXX $p"
13917          fi
13918        fi
13919        ;;
13920
13921     *) ;; # Ignore the rest.
13922
13923     esac
13924   done
13925
13926   # Clean up.
13927   rm -f a.out a.exe
13928 else
13929   echo "libtool.m4: error: problem compiling CXX test program"
13930 fi
13931
13932 $rm -f confest.$objext
13933
13934 # PORTME: override above test on systems where it is broken
13935 case $host_os in
13936 interix3*)
13937   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13938   # hack all around it, let's just trust "g++" to DTRT.
13939   predep_objects_CXX=
13940   postdep_objects_CXX=
13941   postdeps_CXX=
13942   ;;
13943
13944 solaris*)
13945   case $cc_basename in
13946   CC*)
13947     # Adding this requires a known-good setup of shared libraries for
13948     # Sun compiler versions before 5.6, else PIC objects from an old
13949     # archive will be linked into the output, leading to subtle bugs.
13950     postdeps_CXX='-lCstd -lCrun'
13951     ;;
13952   esac
13953   ;;
13954 esac
13955
13956
13957 case " $postdeps_CXX " in
13958 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13959 esac
13960
13961 lt_prog_compiler_wl_CXX=
13962 lt_prog_compiler_pic_CXX=
13963 lt_prog_compiler_static_CXX=
13964
13965 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13966 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13967
13968   # C++ specific cases for pic, static, wl, etc.
13969   if test "$GXX" = yes; then
13970     lt_prog_compiler_wl_CXX='-Wl,'
13971     lt_prog_compiler_static_CXX='-static'
13972
13973     case $host_os in
13974     aix*)
13975       # All AIX code is PIC.
13976       if test "$host_cpu" = ia64; then
13977         # AIX 5 now supports IA64 processor
13978         lt_prog_compiler_static_CXX='-Bstatic'
13979       fi
13980       ;;
13981     amigaos*)
13982       # FIXME: we need at least 68020 code to build shared libraries, but
13983       # adding the `-m68020' flag to GCC prevents building anything better,
13984       # like `-m68040'.
13985       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13986       ;;
13987     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13988       # PIC is the default for these OSes.
13989       ;;
13990     mingw* | os2* | pw32*)
13991       # This hack is so that the source file can tell whether it is being
13992       # built for inclusion in a dll (and should export symbols for example).
13993       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13994       ;;
13995     darwin* | rhapsody*)
13996       # PIC is the default on this platform
13997       # Common symbols not allowed in MH_DYLIB files
13998       lt_prog_compiler_pic_CXX='-fno-common'
13999       ;;
14000     *djgpp*)
14001       # DJGPP does not support shared libraries at all
14002       lt_prog_compiler_pic_CXX=
14003       ;;
14004     interix3*)
14005       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14006       # Instead, we relocate shared libraries at runtime.
14007       ;;
14008     sysv4*MP*)
14009       if test -d /usr/nec; then
14010         lt_prog_compiler_pic_CXX=-Kconform_pic
14011       fi
14012       ;;
14013     hpux*)
14014       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14015       # not for PA HP-UX.
14016       case $host_cpu in
14017       hppa*64*|ia64*)
14018         ;;
14019       *)
14020         lt_prog_compiler_pic_CXX='-fPIC'
14021         ;;
14022       esac
14023       ;;
14024     *)
14025       lt_prog_compiler_pic_CXX='-fPIC'
14026       ;;
14027     esac
14028   else
14029     case $host_os in
14030       aix4* | aix5*)
14031         # All AIX code is PIC.
14032         if test "$host_cpu" = ia64; then
14033           # AIX 5 now supports IA64 processor
14034           lt_prog_compiler_static_CXX='-Bstatic'
14035         else
14036           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14037         fi
14038         ;;
14039       chorus*)
14040         case $cc_basename in
14041         cxch68*)
14042           # Green Hills C++ Compiler
14043           # _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"
14044           ;;
14045         esac
14046         ;;
14047        darwin*)
14048          # PIC is the default on this platform
14049          # Common symbols not allowed in MH_DYLIB files
14050          case $cc_basename in
14051            xlc*)
14052            lt_prog_compiler_pic_CXX='-qnocommon'
14053            lt_prog_compiler_wl_CXX='-Wl,'
14054            ;;
14055          esac
14056        ;;
14057       dgux*)
14058         case $cc_basename in
14059           ec++*)
14060             lt_prog_compiler_pic_CXX='-KPIC'
14061             ;;
14062           ghcx*)
14063             # Green Hills C++ Compiler
14064             lt_prog_compiler_pic_CXX='-pic'
14065             ;;
14066           *)
14067             ;;
14068         esac
14069         ;;
14070       freebsd* | kfreebsd*-gnu | dragonfly*)
14071         # FreeBSD uses GNU C++
14072         ;;
14073       hpux9* | hpux10* | hpux11*)
14074         case $cc_basename in
14075           CC*)
14076             lt_prog_compiler_wl_CXX='-Wl,'
14077             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14078             if test "$host_cpu" != ia64; then
14079               lt_prog_compiler_pic_CXX='+Z'
14080             fi
14081             ;;
14082           aCC*)
14083             lt_prog_compiler_wl_CXX='-Wl,'
14084             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14085             case $host_cpu in
14086             hppa*64*|ia64*)
14087               # +Z the default
14088               ;;
14089             *)
14090               lt_prog_compiler_pic_CXX='+Z'
14091               ;;
14092             esac
14093             ;;
14094           *)
14095             ;;
14096         esac
14097         ;;
14098       interix*)
14099         # This is c89, which is MS Visual C++ (no shared libs)
14100         # Anyone wants to do a port?
14101         ;;
14102       irix5* | irix6* | nonstopux*)
14103         case $cc_basename in
14104           CC*)
14105             lt_prog_compiler_wl_CXX='-Wl,'
14106             lt_prog_compiler_static_CXX='-non_shared'
14107             # CC pic flag -KPIC is the default.
14108             ;;
14109           *)
14110             ;;
14111         esac
14112         ;;
14113       linux*)
14114         case $cc_basename in
14115           KCC*)
14116             # KAI C++ Compiler
14117             lt_prog_compiler_wl_CXX='--backend -Wl,'
14118             lt_prog_compiler_pic_CXX='-fPIC'
14119             ;;
14120           icpc* | ecpc*)
14121             # Intel C++
14122             lt_prog_compiler_wl_CXX='-Wl,'
14123             lt_prog_compiler_pic_CXX='-KPIC'
14124             lt_prog_compiler_static_CXX='-static'
14125             ;;
14126           pgCC*)
14127             # Portland Group C++ compiler.
14128             lt_prog_compiler_wl_CXX='-Wl,'
14129             lt_prog_compiler_pic_CXX='-fpic'
14130             lt_prog_compiler_static_CXX='-Bstatic'
14131             ;;
14132           cxx*)
14133             # Compaq C++
14134             # Make sure the PIC flag is empty.  It appears that all Alpha
14135             # Linux and Compaq Tru64 Unix objects are PIC.
14136             lt_prog_compiler_pic_CXX=
14137             lt_prog_compiler_static_CXX='-non_shared'
14138             ;;
14139           *)
14140             ;;
14141         esac
14142         ;;
14143       lynxos*)
14144         ;;
14145       m88k*)
14146         ;;
14147       mvs*)
14148         case $cc_basename in
14149           cxx*)
14150             lt_prog_compiler_pic_CXX='-W c,exportall'
14151             ;;
14152           *)
14153             ;;
14154         esac
14155         ;;
14156       netbsd*)
14157         ;;
14158       osf3* | osf4* | osf5*)
14159         case $cc_basename in
14160           KCC*)
14161             lt_prog_compiler_wl_CXX='--backend -Wl,'
14162             ;;
14163           RCC*)
14164             # Rational C++ 2.4.1
14165             lt_prog_compiler_pic_CXX='-pic'
14166             ;;
14167           cxx*)
14168             # Digital/Compaq C++
14169             lt_prog_compiler_wl_CXX='-Wl,'
14170             # Make sure the PIC flag is empty.  It appears that all Alpha
14171             # Linux and Compaq Tru64 Unix objects are PIC.
14172             lt_prog_compiler_pic_CXX=
14173             lt_prog_compiler_static_CXX='-non_shared'
14174             ;;
14175           *)
14176             ;;
14177         esac
14178         ;;
14179       psos*)
14180         ;;
14181       solaris*)
14182         case $cc_basename in
14183           CC*)
14184             # Sun C++ 4.2, 5.x and Centerline C++
14185             lt_prog_compiler_pic_CXX='-KPIC'
14186             lt_prog_compiler_static_CXX='-Bstatic'
14187             lt_prog_compiler_wl_CXX='-Qoption ld '
14188             ;;
14189           gcx*)
14190             # Green Hills C++ Compiler
14191             lt_prog_compiler_pic_CXX='-PIC'
14192             ;;
14193           *)
14194             ;;
14195         esac
14196         ;;
14197       sunos4*)
14198         case $cc_basename in
14199           CC*)
14200             # Sun C++ 4.x
14201             lt_prog_compiler_pic_CXX='-pic'
14202             lt_prog_compiler_static_CXX='-Bstatic'
14203             ;;
14204           lcc*)
14205             # Lucid
14206             lt_prog_compiler_pic_CXX='-pic'
14207             ;;
14208           *)
14209             ;;
14210         esac
14211         ;;
14212       tandem*)
14213         case $cc_basename in
14214           NCC*)
14215             # NonStop-UX NCC 3.20
14216             lt_prog_compiler_pic_CXX='-KPIC'
14217             ;;
14218           *)
14219             ;;
14220         esac
14221         ;;
14222       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14223         case $cc_basename in
14224           CC*)
14225             lt_prog_compiler_wl_CXX='-Wl,'
14226             lt_prog_compiler_pic_CXX='-KPIC'
14227             lt_prog_compiler_static_CXX='-Bstatic'
14228             ;;
14229         esac
14230         ;;
14231       vxworks*)
14232         ;;
14233       *)
14234         lt_prog_compiler_can_build_shared_CXX=no
14235         ;;
14236     esac
14237   fi
14238
14239 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14240 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14241
14242 #
14243 # Check to make sure the PIC flag actually works.
14244 #
14245 if test -n "$lt_prog_compiler_pic_CXX"; then
14246
14247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14249 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14250   echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252   lt_prog_compiler_pic_works_CXX=no
14253   ac_outfile=conftest.$ac_objext
14254    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14255    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14256    # Insert the option either (1) after the last *FLAGS variable, or
14257    # (2) before a word containing "conftest.", or (3) at the end.
14258    # Note that $ac_compile itself does not contain backslashes and begins
14259    # with a dollar sign (not a hyphen), so the echo should work correctly.
14260    # The option is referenced via a variable to avoid confusing sed.
14261    lt_compile=`echo "$ac_compile" | $SED \
14262    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14263    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14264    -e 's:$: $lt_compiler_flag:'`
14265    (eval echo "\"\$as_me:14265: $lt_compile\"" >&5)
14266    (eval "$lt_compile" 2>conftest.err)
14267    ac_status=$?
14268    cat conftest.err >&5
14269    echo "$as_me:14269: \$? = $ac_status" >&5
14270    if (exit $ac_status) && test -s "$ac_outfile"; then
14271      # The compiler can only warn and ignore the option if not recognized
14272      # So say no if there are warnings other than the usual output.
14273      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14274      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14275      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14276        lt_prog_compiler_pic_works_CXX=yes
14277      fi
14278    fi
14279    $rm conftest*
14280
14281 fi
14282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14283 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14284
14285 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14286     case $lt_prog_compiler_pic_CXX in
14287      "" | " "*) ;;
14288      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14289      esac
14290 else
14291     lt_prog_compiler_pic_CXX=
14292      lt_prog_compiler_can_build_shared_CXX=no
14293 fi
14294
14295 fi
14296 case $host_os in
14297   # For platforms which do not support PIC, -DPIC is meaningless:
14298   *djgpp*)
14299     lt_prog_compiler_pic_CXX=
14300     ;;
14301   *)
14302     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14303     ;;
14304 esac
14305
14306 #
14307 # Check to make sure the static flag actually works.
14308 #
14309 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14310 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14311 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14312 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14313   echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315   lt_prog_compiler_static_works_CXX=no
14316    save_LDFLAGS="$LDFLAGS"
14317    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14318    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14319    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14320      # The linker can only warn and ignore the option if not recognized
14321      # So say no if there are warnings
14322      if test -s conftest.err; then
14323        # Append any errors to the config.log.
14324        cat conftest.err 1>&5
14325        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14326        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14327        if diff conftest.exp conftest.er2 >/dev/null; then
14328          lt_prog_compiler_static_works_CXX=yes
14329        fi
14330      else
14331        lt_prog_compiler_static_works_CXX=yes
14332      fi
14333    fi
14334    $rm conftest*
14335    LDFLAGS="$save_LDFLAGS"
14336
14337 fi
14338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14339 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14340
14341 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14342     :
14343 else
14344     lt_prog_compiler_static_CXX=
14345 fi
14346
14347
14348 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14350 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14351   echo $ECHO_N "(cached) $ECHO_C" >&6
14352 else
14353   lt_cv_prog_compiler_c_o_CXX=no
14354    $rm -r conftest 2>/dev/null
14355    mkdir conftest
14356    cd conftest
14357    mkdir out
14358    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14359
14360    lt_compiler_flag="-o out/conftest2.$ac_objext"
14361    # Insert the option either (1) after the last *FLAGS variable, or
14362    # (2) before a word containing "conftest.", or (3) at the end.
14363    # Note that $ac_compile itself does not contain backslashes and begins
14364    # with a dollar sign (not a hyphen), so the echo should work correctly.
14365    lt_compile=`echo "$ac_compile" | $SED \
14366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368    -e 's:$: $lt_compiler_flag:'`
14369    (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
14370    (eval "$lt_compile" 2>out/conftest.err)
14371    ac_status=$?
14372    cat out/conftest.err >&5
14373    echo "$as_me:14373: \$? = $ac_status" >&5
14374    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14375    then
14376      # The compiler can only warn and ignore the option if not recognized
14377      # So say no if there are warnings
14378      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14379      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14380      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14381        lt_cv_prog_compiler_c_o_CXX=yes
14382      fi
14383    fi
14384    chmod u+w . 2>&5
14385    $rm conftest*
14386    # SGI C++ compiler will create directory out/ii_files/ for
14387    # template instantiation
14388    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14389    $rm out/* && rmdir out
14390    cd ..
14391    rmdir conftest
14392    $rm conftest*
14393
14394 fi
14395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14397
14398
14399 hard_links="nottested"
14400 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14401   # do not overwrite the value of need_locks provided by the user
14402   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14403 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14404   hard_links=yes
14405   $rm conftest*
14406   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14407   touch conftest.a
14408   ln conftest.a conftest.b 2>&5 || hard_links=no
14409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14410   { echo "$as_me:$LINENO: result: $hard_links" >&5
14411 echo "${ECHO_T}$hard_links" >&6; }
14412   if test "$hard_links" = no; then
14413     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14414 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14415     need_locks=warn
14416   fi
14417 else
14418   need_locks=no
14419 fi
14420
14421 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14423
14424   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14425   case $host_os in
14426   aix4* | aix5*)
14427     # If we're using GNU nm, then we don't want the "-C" option.
14428     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14429     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14430       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'
14431     else
14432       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'
14433     fi
14434     ;;
14435   pw32*)
14436     export_symbols_cmds_CXX="$ltdll_cmds"
14437   ;;
14438   cygwin* | mingw*)
14439     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'
14440   ;;
14441   *)
14442     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14443   ;;
14444   esac
14445
14446 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14447 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14448 test "$ld_shlibs_CXX" = no && can_build_shared=no
14449
14450 #
14451 # Do we need to explicitly link libc?
14452 #
14453 case "x$archive_cmds_need_lc_CXX" in
14454 x|xyes)
14455   # Assume -lc should be added
14456   archive_cmds_need_lc_CXX=yes
14457
14458   if test "$enable_shared" = yes && test "$GCC" = yes; then
14459     case $archive_cmds_CXX in
14460     *'~'*)
14461       # FIXME: we may have to deal with multi-command sequences.
14462       ;;
14463     '$CC '*)
14464       # Test whether the compiler implicitly links with -lc since on some
14465       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14466       # to ld, don't add -lc before -lgcc.
14467       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14468 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14469       $rm conftest*
14470       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14471
14472       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473   (eval $ac_compile) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); } 2>conftest.err; then
14477         soname=conftest
14478         lib=conftest
14479         libobjs=conftest.$ac_objext
14480         deplibs=
14481         wl=$lt_prog_compiler_wl_CXX
14482         pic_flag=$lt_prog_compiler_pic_CXX
14483         compiler_flags=-v
14484         linker_flags=-v
14485         verstring=
14486         output_objdir=.
14487         libname=conftest
14488         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14489         allow_undefined_flag_CXX=
14490         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14491   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14492   ac_status=$?
14493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); }
14495         then
14496           archive_cmds_need_lc_CXX=no
14497         else
14498           archive_cmds_need_lc_CXX=yes
14499         fi
14500         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14501       else
14502         cat conftest.err 1>&5
14503       fi
14504       $rm conftest*
14505       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14506 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14507       ;;
14508     esac
14509   fi
14510   ;;
14511 esac
14512
14513 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14515 library_names_spec=
14516 libname_spec='lib$name'
14517 soname_spec=
14518 shrext_cmds=".so"
14519 postinstall_cmds=
14520 postuninstall_cmds=
14521 finish_cmds=
14522 finish_eval=
14523 shlibpath_var=
14524 shlibpath_overrides_runpath=unknown
14525 version_type=none
14526 dynamic_linker="$host_os ld.so"
14527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14528 if test "$GCC" = yes; then
14529   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14530   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14531     # if the path contains ";" then we assume it to be the separator
14532     # otherwise default to the standard path separator (i.e. ":") - it is
14533     # assumed that no part of a normal pathname contains ";" but that should
14534     # okay in the real world where ";" in dirpaths is itself problematic.
14535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14536   else
14537     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14538   fi
14539 else
14540   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14541 fi
14542 need_lib_prefix=unknown
14543 hardcode_into_libs=no
14544
14545 # when you set need_version to no, make sure it does not cause -set_version
14546 # flags to be left without arguments
14547 need_version=unknown
14548
14549 case $host_os in
14550 aix3*)
14551   version_type=linux
14552   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14553   shlibpath_var=LIBPATH
14554
14555   # AIX 3 has no versioning support, so we append a major version to the name.
14556   soname_spec='${libname}${release}${shared_ext}$major'
14557   ;;
14558
14559 aix4* | aix5*)
14560   version_type=linux
14561   need_lib_prefix=no
14562   need_version=no
14563   hardcode_into_libs=yes
14564   if test "$host_cpu" = ia64; then
14565     # AIX 5 supports IA64
14566     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14567     shlibpath_var=LD_LIBRARY_PATH
14568   else
14569     # With GCC up to 2.95.x, collect2 would create an import file
14570     # for dependence libraries.  The import file would start with
14571     # the line `#! .'.  This would cause the generated library to
14572     # depend on `.', always an invalid library.  This was fixed in
14573     # development snapshots of GCC prior to 3.0.
14574     case $host_os in
14575       aix4 | aix4.[01] | aix4.[01].*)
14576       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14577            echo ' yes '
14578            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14579         :
14580       else
14581         can_build_shared=no
14582       fi
14583       ;;
14584     esac
14585     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14586     # soname into executable. Probably we can add versioning support to
14587     # collect2, so additional links can be useful in future.
14588     if test "$aix_use_runtimelinking" = yes; then
14589       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14590       # instead of lib<name>.a to let people know that these are not
14591       # typical AIX shared libraries.
14592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593     else
14594       # We preserve .a as extension for shared libraries through AIX4.2
14595       # and later when we are not doing run time linking.
14596       library_names_spec='${libname}${release}.a $libname.a'
14597       soname_spec='${libname}${release}${shared_ext}$major'
14598     fi
14599     shlibpath_var=LIBPATH
14600   fi
14601   ;;
14602
14603 amigaos*)
14604   library_names_spec='$libname.ixlibrary $libname.a'
14605   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14606   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'
14607   ;;
14608
14609 beos*)
14610   library_names_spec='${libname}${shared_ext}'
14611   dynamic_linker="$host_os ld.so"
14612   shlibpath_var=LIBRARY_PATH
14613   ;;
14614
14615 bsdi[45]*)
14616   version_type=linux
14617   need_version=no
14618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619   soname_spec='${libname}${release}${shared_ext}$major'
14620   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14621   shlibpath_var=LD_LIBRARY_PATH
14622   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14623   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14624   # the default ld.so.conf also contains /usr/contrib/lib and
14625   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14626   # libtool to hard-code these into programs
14627   ;;
14628
14629 cygwin* | mingw* | pw32*)
14630   version_type=windows
14631   shrext_cmds=".dll"
14632   need_version=no
14633   need_lib_prefix=no
14634
14635   case $GCC,$host_os in
14636   yes,cygwin* | yes,mingw* | yes,pw32*)
14637     library_names_spec='$libname.dll.a'
14638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14639     postinstall_cmds='base_file=`basename \${file}`~
14640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14641       dldir=$destdir/`dirname \$dlpath`~
14642       test -d \$dldir || mkdir -p \$dldir~
14643       $install_prog $dir/$dlname \$dldir/$dlname~
14644       chmod a+x \$dldir/$dlname'
14645     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14646       dlpath=$dir/\$dldll~
14647        $rm \$dlpath'
14648     shlibpath_overrides_runpath=yes
14649
14650     case $host_os in
14651     cygwin*)
14652       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14653       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14654       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14655       ;;
14656     mingw*)
14657       # MinGW DLLs use traditional 'lib' prefix
14658       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14659       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14660       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14661         # It is most probably a Windows format PATH printed by
14662         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14663         # path with ; separators, and with drive letters. We can handle the
14664         # drive letters (cygwin fileutils understands them), so leave them,
14665         # especially as we might pass files found there to a mingw objdump,
14666         # which wouldn't understand a cygwinified path. Ahh.
14667         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14668       else
14669         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14670       fi
14671       ;;
14672     pw32*)
14673       # pw32 DLLs use 'pw' prefix rather than 'lib'
14674       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14675       ;;
14676     esac
14677     ;;
14678
14679   *)
14680     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14681     ;;
14682   esac
14683   dynamic_linker='Win32 ld.exe'
14684   # FIXME: first we should search . and the directory the executable is in
14685   shlibpath_var=PATH
14686   ;;
14687
14688 darwin* | rhapsody*)
14689   dynamic_linker="$host_os dyld"
14690   version_type=darwin
14691   need_lib_prefix=no
14692   need_version=no
14693   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14694   soname_spec='${libname}${release}${major}$shared_ext'
14695   shlibpath_overrides_runpath=yes
14696   shlibpath_var=DYLD_LIBRARY_PATH
14697   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14698   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14699   if test "$GCC" = yes; then
14700     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14701   else
14702     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14703   fi
14704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14705   ;;
14706
14707 dgux*)
14708   version_type=linux
14709   need_lib_prefix=no
14710   need_version=no
14711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14712   soname_spec='${libname}${release}${shared_ext}$major'
14713   shlibpath_var=LD_LIBRARY_PATH
14714   ;;
14715
14716 freebsd1*)
14717   dynamic_linker=no
14718   ;;
14719
14720 kfreebsd*-gnu)
14721   version_type=linux
14722   need_lib_prefix=no
14723   need_version=no
14724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725   soname_spec='${libname}${release}${shared_ext}$major'
14726   shlibpath_var=LD_LIBRARY_PATH
14727   shlibpath_overrides_runpath=no
14728   hardcode_into_libs=yes
14729   dynamic_linker='GNU ld.so'
14730   ;;
14731
14732 freebsd* | dragonfly*)
14733   # DragonFly does not have aout.  When/if they implement a new
14734   # versioning mechanism, adjust this.
14735   if test -x /usr/bin/objformat; then
14736     objformat=`/usr/bin/objformat`
14737   else
14738     case $host_os in
14739     freebsd[123]*) objformat=aout ;;
14740     *) objformat=elf ;;
14741     esac
14742   fi
14743   version_type=freebsd-$objformat
14744   case $version_type in
14745     freebsd-elf*)
14746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14747       need_version=no
14748       need_lib_prefix=no
14749       ;;
14750     freebsd-*)
14751       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14752       need_version=yes
14753       ;;
14754   esac
14755   shlibpath_var=LD_LIBRARY_PATH
14756   case $host_os in
14757   freebsd2*)
14758     shlibpath_overrides_runpath=yes
14759     ;;
14760   freebsd3.[01]* | freebsdelf3.[01]*)
14761     shlibpath_overrides_runpath=yes
14762     hardcode_into_libs=yes
14763     ;;
14764   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14765   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14766     shlibpath_overrides_runpath=no
14767     hardcode_into_libs=yes
14768     ;;
14769   freebsd*) # from 4.6 on
14770     shlibpath_overrides_runpath=yes
14771     hardcode_into_libs=yes
14772     ;;
14773   esac
14774   ;;
14775
14776 gnu*)
14777   version_type=linux
14778   need_lib_prefix=no
14779   need_version=no
14780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14781   soname_spec='${libname}${release}${shared_ext}$major'
14782   shlibpath_var=LD_LIBRARY_PATH
14783   hardcode_into_libs=yes
14784   ;;
14785
14786 hpux9* | hpux10* | hpux11*)
14787   # Give a soname corresponding to the major version so that dld.sl refuses to
14788   # link against other versions.
14789   version_type=sunos
14790   need_lib_prefix=no
14791   need_version=no
14792   case $host_cpu in
14793   ia64*)
14794     shrext_cmds='.so'
14795     hardcode_into_libs=yes
14796     dynamic_linker="$host_os dld.so"
14797     shlibpath_var=LD_LIBRARY_PATH
14798     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800     soname_spec='${libname}${release}${shared_ext}$major'
14801     if test "X$HPUX_IA64_MODE" = X32; then
14802       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14803     else
14804       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14805     fi
14806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14807     ;;
14808    hppa*64*)
14809      shrext_cmds='.sl'
14810      hardcode_into_libs=yes
14811      dynamic_linker="$host_os dld.sl"
14812      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14813      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14814      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815      soname_spec='${libname}${release}${shared_ext}$major'
14816      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14817      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14818      ;;
14819    *)
14820     shrext_cmds='.sl'
14821     dynamic_linker="$host_os dld.sl"
14822     shlibpath_var=SHLIB_PATH
14823     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825     soname_spec='${libname}${release}${shared_ext}$major'
14826     ;;
14827   esac
14828   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14829   postinstall_cmds='chmod 555 $lib'
14830   ;;
14831
14832 interix3*)
14833   version_type=linux
14834   need_lib_prefix=no
14835   need_version=no
14836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14837   soname_spec='${libname}${release}${shared_ext}$major'
14838   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14839   shlibpath_var=LD_LIBRARY_PATH
14840   shlibpath_overrides_runpath=no
14841   hardcode_into_libs=yes
14842   ;;
14843
14844 irix5* | irix6* | nonstopux*)
14845   case $host_os in
14846     nonstopux*) version_type=nonstopux ;;
14847     *)
14848         if test "$lt_cv_prog_gnu_ld" = yes; then
14849                 version_type=linux
14850         else
14851                 version_type=irix
14852         fi ;;
14853   esac
14854   need_lib_prefix=no
14855   need_version=no
14856   soname_spec='${libname}${release}${shared_ext}$major'
14857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14858   case $host_os in
14859   irix5* | nonstopux*)
14860     libsuff= shlibsuff=
14861     ;;
14862   *)
14863     case $LD in # libtool.m4 will add one of these switches to LD
14864     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14865       libsuff= shlibsuff= libmagic=32-bit;;
14866     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14867       libsuff=32 shlibsuff=N32 libmagic=N32;;
14868     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14869       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14870     *) libsuff= shlibsuff= libmagic=never-match;;
14871     esac
14872     ;;
14873   esac
14874   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14875   shlibpath_overrides_runpath=no
14876   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14877   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14878   hardcode_into_libs=yes
14879   ;;
14880
14881 # No shared lib support for Linux oldld, aout, or coff.
14882 linux*oldld* | linux*aout* | linux*coff*)
14883   dynamic_linker=no
14884   ;;
14885
14886 # This must be Linux ELF.
14887 linux*)
14888   version_type=linux
14889   need_lib_prefix=no
14890   need_version=no
14891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892   soname_spec='${libname}${release}${shared_ext}$major'
14893   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14894   shlibpath_var=LD_LIBRARY_PATH
14895   shlibpath_overrides_runpath=no
14896   # This implies no fast_install, which is unacceptable.
14897   # Some rework will be needed to allow for fast_install
14898   # before this can be enabled.
14899   hardcode_into_libs=yes
14900
14901   # Append ld.so.conf contents to the search path
14902   if test -f /etc/ld.so.conf; then
14903     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14904     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14905   fi
14906
14907   # We used to test for /lib/ld.so.1 and disable shared libraries on
14908   # powerpc, because MkLinux only supported shared libraries with the
14909   # GNU dynamic linker.  Since this was broken with cross compilers,
14910   # most powerpc-linux boxes support dynamic linking these days and
14911   # people can always --disable-shared, the test was removed, and we
14912   # assume the GNU/Linux dynamic linker is in use.
14913   dynamic_linker='GNU/Linux ld.so'
14914   ;;
14915
14916 knetbsd*-gnu)
14917   version_type=linux
14918   need_lib_prefix=no
14919   need_version=no
14920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14921   soname_spec='${libname}${release}${shared_ext}$major'
14922   shlibpath_var=LD_LIBRARY_PATH
14923   shlibpath_overrides_runpath=no
14924   hardcode_into_libs=yes
14925   dynamic_linker='GNU ld.so'
14926   ;;
14927
14928 netbsd*)
14929   version_type=sunos
14930   need_lib_prefix=no
14931   need_version=no
14932   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14934     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14935     dynamic_linker='NetBSD (a.out) ld.so'
14936   else
14937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14938     soname_spec='${libname}${release}${shared_ext}$major'
14939     dynamic_linker='NetBSD ld.elf_so'
14940   fi
14941   shlibpath_var=LD_LIBRARY_PATH
14942   shlibpath_overrides_runpath=yes
14943   hardcode_into_libs=yes
14944   ;;
14945
14946 newsos6)
14947   version_type=linux
14948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949   shlibpath_var=LD_LIBRARY_PATH
14950   shlibpath_overrides_runpath=yes
14951   ;;
14952
14953 nto-qnx*)
14954   version_type=linux
14955   need_lib_prefix=no
14956   need_version=no
14957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958   soname_spec='${libname}${release}${shared_ext}$major'
14959   shlibpath_var=LD_LIBRARY_PATH
14960   shlibpath_overrides_runpath=yes
14961   ;;
14962
14963 openbsd*)
14964   version_type=sunos
14965   sys_lib_dlsearch_path_spec="/usr/lib"
14966   need_lib_prefix=no
14967   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14968   case $host_os in
14969     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14970     *)                         need_version=no  ;;
14971   esac
14972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14974   shlibpath_var=LD_LIBRARY_PATH
14975   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14976     case $host_os in
14977       openbsd2.[89] | openbsd2.[89].*)
14978         shlibpath_overrides_runpath=no
14979         ;;
14980       *)
14981         shlibpath_overrides_runpath=yes
14982         ;;
14983       esac
14984   else
14985     shlibpath_overrides_runpath=yes
14986   fi
14987   ;;
14988
14989 os2*)
14990   libname_spec='$name'
14991   shrext_cmds=".dll"
14992   need_lib_prefix=no
14993   library_names_spec='$libname${shared_ext} $libname.a'
14994   dynamic_linker='OS/2 ld.exe'
14995   shlibpath_var=LIBPATH
14996   ;;
14997
14998 osf3* | osf4* | osf5*)
14999   version_type=osf
15000   need_lib_prefix=no
15001   need_version=no
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004   shlibpath_var=LD_LIBRARY_PATH
15005   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15006   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15007   ;;
15008
15009 solaris*)
15010   version_type=linux
15011   need_lib_prefix=no
15012   need_version=no
15013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014   soname_spec='${libname}${release}${shared_ext}$major'
15015   shlibpath_var=LD_LIBRARY_PATH
15016   shlibpath_overrides_runpath=yes
15017   hardcode_into_libs=yes
15018   # ldd complains unless libraries are executable
15019   postinstall_cmds='chmod +x $lib'
15020   ;;
15021
15022 sunos4*)
15023   version_type=sunos
15024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15025   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15026   shlibpath_var=LD_LIBRARY_PATH
15027   shlibpath_overrides_runpath=yes
15028   if test "$with_gnu_ld" = yes; then
15029     need_lib_prefix=no
15030   fi
15031   need_version=yes
15032   ;;
15033
15034 sysv4 | sysv4.3*)
15035   version_type=linux
15036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037   soname_spec='${libname}${release}${shared_ext}$major'
15038   shlibpath_var=LD_LIBRARY_PATH
15039   case $host_vendor in
15040     sni)
15041       shlibpath_overrides_runpath=no
15042       need_lib_prefix=no
15043       export_dynamic_flag_spec='${wl}-Blargedynsym'
15044       runpath_var=LD_RUN_PATH
15045       ;;
15046     siemens)
15047       need_lib_prefix=no
15048       ;;
15049     motorola)
15050       need_lib_prefix=no
15051       need_version=no
15052       shlibpath_overrides_runpath=no
15053       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15054       ;;
15055   esac
15056   ;;
15057
15058 sysv4*MP*)
15059   if test -d /usr/nec ;then
15060     version_type=linux
15061     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15062     soname_spec='$libname${shared_ext}.$major'
15063     shlibpath_var=LD_LIBRARY_PATH
15064   fi
15065   ;;
15066
15067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15068   version_type=freebsd-elf
15069   need_lib_prefix=no
15070   need_version=no
15071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15072   soname_spec='${libname}${release}${shared_ext}$major'
15073   shlibpath_var=LD_LIBRARY_PATH
15074   hardcode_into_libs=yes
15075   if test "$with_gnu_ld" = yes; then
15076     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15077     shlibpath_overrides_runpath=no
15078   else
15079     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15080     shlibpath_overrides_runpath=yes
15081     case $host_os in
15082       sco3.2v5*)
15083         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15084         ;;
15085     esac
15086   fi
15087   sys_lib_dlsearch_path_spec='/usr/lib'
15088   ;;
15089
15090 uts4*)
15091   version_type=linux
15092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093   soname_spec='${libname}${release}${shared_ext}$major'
15094   shlibpath_var=LD_LIBRARY_PATH
15095   ;;
15096
15097 *)
15098   dynamic_linker=no
15099   ;;
15100 esac
15101 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15102 echo "${ECHO_T}$dynamic_linker" >&6; }
15103 test "$dynamic_linker" = no && can_build_shared=no
15104
15105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15106 if test "$GCC" = yes; then
15107   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15108 fi
15109
15110 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15111 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15112 hardcode_action_CXX=
15113 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15114    test -n "$runpath_var_CXX" || \
15115    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15116
15117   # We can hardcode non-existant directories.
15118   if test "$hardcode_direct_CXX" != no &&
15119      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15120      # have to relink, otherwise we might link with an installed library
15121      # when we should be linking with a yet-to-be-installed one
15122      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15123      test "$hardcode_minus_L_CXX" != no; then
15124     # Linking always hardcodes the temporary library directory.
15125     hardcode_action_CXX=relink
15126   else
15127     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15128     hardcode_action_CXX=immediate
15129   fi
15130 else
15131   # We cannot hardcode anything, or else we can only hardcode existing
15132   # directories.
15133   hardcode_action_CXX=unsupported
15134 fi
15135 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15136 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15137
15138 if test "$hardcode_action_CXX" = relink; then
15139   # Fast installation is not supported
15140   enable_fast_install=no
15141 elif test "$shlibpath_overrides_runpath" = yes ||
15142      test "$enable_shared" = no; then
15143   # Fast installation is not necessary
15144   enable_fast_install=needless
15145 fi
15146
15147
15148 # The else clause should only fire when bootstrapping the
15149 # libtool distribution, otherwise you forgot to ship ltmain.sh
15150 # with your package, and you will get complaints that there are
15151 # no rules to generate ltmain.sh.
15152 if test -f "$ltmain"; then
15153   # See if we are running on zsh, and set the options which allow our commands through
15154   # without removal of \ escapes.
15155   if test -n "${ZSH_VERSION+set}" ; then
15156     setopt NO_GLOB_SUBST
15157   fi
15158   # Now quote all the things that may contain metacharacters while being
15159   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15160   # variables and quote the copies for generation of the libtool script.
15161   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15162     SED SHELL STRIP \
15163     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15164     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15165     deplibs_check_method reload_flag reload_cmds need_locks \
15166     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15167     lt_cv_sys_global_symbol_to_c_name_address \
15168     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15169     old_postinstall_cmds old_postuninstall_cmds \
15170     compiler_CXX \
15171     CC_CXX \
15172     LD_CXX \
15173     lt_prog_compiler_wl_CXX \
15174     lt_prog_compiler_pic_CXX \
15175     lt_prog_compiler_static_CXX \
15176     lt_prog_compiler_no_builtin_flag_CXX \
15177     export_dynamic_flag_spec_CXX \
15178     thread_safe_flag_spec_CXX \
15179     whole_archive_flag_spec_CXX \
15180     enable_shared_with_static_runtimes_CXX \
15181     old_archive_cmds_CXX \
15182     old_archive_from_new_cmds_CXX \
15183     predep_objects_CXX \
15184     postdep_objects_CXX \
15185     predeps_CXX \
15186     postdeps_CXX \
15187     compiler_lib_search_path_CXX \
15188     archive_cmds_CXX \
15189     archive_expsym_cmds_CXX \
15190     postinstall_cmds_CXX \
15191     postuninstall_cmds_CXX \
15192     old_archive_from_expsyms_cmds_CXX \
15193     allow_undefined_flag_CXX \
15194     no_undefined_flag_CXX \
15195     export_symbols_cmds_CXX \
15196     hardcode_libdir_flag_spec_CXX \
15197     hardcode_libdir_flag_spec_ld_CXX \
15198     hardcode_libdir_separator_CXX \
15199     hardcode_automatic_CXX \
15200     module_cmds_CXX \
15201     module_expsym_cmds_CXX \
15202     lt_cv_prog_compiler_c_o_CXX \
15203     exclude_expsyms_CXX \
15204     include_expsyms_CXX; do
15205
15206     case $var in
15207     old_archive_cmds_CXX | \
15208     old_archive_from_new_cmds_CXX | \
15209     archive_cmds_CXX | \
15210     archive_expsym_cmds_CXX | \
15211     module_cmds_CXX | \
15212     module_expsym_cmds_CXX | \
15213     old_archive_from_expsyms_cmds_CXX | \
15214     export_symbols_cmds_CXX | \
15215     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15216     postinstall_cmds | postuninstall_cmds | \
15217     old_postinstall_cmds | old_postuninstall_cmds | \
15218     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15219       # Double-quote double-evaled strings.
15220       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15221       ;;
15222     *)
15223       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15224       ;;
15225     esac
15226   done
15227
15228   case $lt_echo in
15229   *'\$0 --fallback-echo"')
15230     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15231     ;;
15232   esac
15233
15234 cfgfile="$ofile"
15235
15236   cat <<__EOF__ >> "$cfgfile"
15237 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15238
15239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15240
15241 # Shell to use when invoking shell scripts.
15242 SHELL=$lt_SHELL
15243
15244 # Whether or not to build shared libraries.
15245 build_libtool_libs=$enable_shared
15246
15247 # Whether or not to build static libraries.
15248 build_old_libs=$enable_static
15249
15250 # Whether or not to add -lc for building shared libraries.
15251 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15252
15253 # Whether or not to disallow shared libs when runtime libs are static
15254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15255
15256 # Whether or not to optimize for fast installation.
15257 fast_install=$enable_fast_install
15258
15259 # The host system.
15260 host_alias=$host_alias
15261 host=$host
15262 host_os=$host_os
15263
15264 # The build system.
15265 build_alias=$build_alias
15266 build=$build
15267 build_os=$build_os
15268
15269 # An echo program that does not interpret backslashes.
15270 echo=$lt_echo
15271
15272 # The archiver.
15273 AR=$lt_AR
15274 AR_FLAGS=$lt_AR_FLAGS
15275
15276 # A C compiler.
15277 LTCC=$lt_LTCC
15278
15279 # LTCC compiler flags.
15280 LTCFLAGS=$lt_LTCFLAGS
15281
15282 # A language-specific compiler.
15283 CC=$lt_compiler_CXX
15284
15285 # Is the compiler the GNU C compiler?
15286 with_gcc=$GCC_CXX
15287
15288 # An ERE matcher.
15289 EGREP=$lt_EGREP
15290
15291 # The linker used to build libraries.
15292 LD=$lt_LD_CXX
15293
15294 # Whether we need hard or soft links.
15295 LN_S=$lt_LN_S
15296
15297 # A BSD-compatible nm program.
15298 NM=$lt_NM
15299
15300 # A symbol stripping program
15301 STRIP=$lt_STRIP
15302
15303 # Used to examine libraries when file_magic_cmd begins "file"
15304 MAGIC_CMD=$MAGIC_CMD
15305
15306 # Used on cygwin: DLL creation program.
15307 DLLTOOL="$DLLTOOL"
15308
15309 # Used on cygwin: object dumper.
15310 OBJDUMP="$OBJDUMP"
15311
15312 # Used on cygwin: assembler.
15313 AS="$AS"
15314
15315 # The name of the directory that contains temporary libtool files.
15316 objdir=$objdir
15317
15318 # How to create reloadable object files.
15319 reload_flag=$lt_reload_flag
15320 reload_cmds=$lt_reload_cmds
15321
15322 # How to pass a linker flag through the compiler.
15323 wl=$lt_lt_prog_compiler_wl_CXX
15324
15325 # Object file suffix (normally "o").
15326 objext="$ac_objext"
15327
15328 # Old archive suffix (normally "a").
15329 libext="$libext"
15330
15331 # Shared library suffix (normally ".so").
15332 shrext_cmds='$shrext_cmds'
15333
15334 # Executable file suffix (normally "").
15335 exeext="$exeext"
15336
15337 # Additional compiler flags for building library objects.
15338 pic_flag=$lt_lt_prog_compiler_pic_CXX
15339 pic_mode=$pic_mode
15340
15341 # What is the maximum length of a command?
15342 max_cmd_len=$lt_cv_sys_max_cmd_len
15343
15344 # Does compiler simultaneously support -c and -o options?
15345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15346
15347 # Must we lock files when doing compilation?
15348 need_locks=$lt_need_locks
15349
15350 # Do we need the lib prefix for modules?
15351 need_lib_prefix=$need_lib_prefix
15352
15353 # Do we need a version for libraries?
15354 need_version=$need_version
15355
15356 # Whether dlopen is supported.
15357 dlopen_support=$enable_dlopen
15358
15359 # Whether dlopen of programs is supported.
15360 dlopen_self=$enable_dlopen_self
15361
15362 # Whether dlopen of statically linked programs is supported.
15363 dlopen_self_static=$enable_dlopen_self_static
15364
15365 # Compiler flag to prevent dynamic linking.
15366 link_static_flag=$lt_lt_prog_compiler_static_CXX
15367
15368 # Compiler flag to turn off builtin functions.
15369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15370
15371 # Compiler flag to allow reflexive dlopens.
15372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15373
15374 # Compiler flag to generate shared objects directly from archives.
15375 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15376
15377 # Compiler flag to generate thread-safe objects.
15378 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15379
15380 # Library versioning type.
15381 version_type=$version_type
15382
15383 # Format of library name prefix.
15384 libname_spec=$lt_libname_spec
15385
15386 # List of archive names.  First name is the real one, the rest are links.
15387 # The last name is the one that the linker finds with -lNAME.
15388 library_names_spec=$lt_library_names_spec
15389
15390 # The coded name of the library, if different from the real name.
15391 soname_spec=$lt_soname_spec
15392
15393 # Commands used to build and install an old-style archive.
15394 RANLIB=$lt_RANLIB
15395 old_archive_cmds=$lt_old_archive_cmds_CXX
15396 old_postinstall_cmds=$lt_old_postinstall_cmds
15397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15398
15399 # Create an old-style archive from a shared archive.
15400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15401
15402 # Create a temporary old-style archive to link instead of a shared archive.
15403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15404
15405 # Commands used to build and install a shared archive.
15406 archive_cmds=$lt_archive_cmds_CXX
15407 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15408 postinstall_cmds=$lt_postinstall_cmds
15409 postuninstall_cmds=$lt_postuninstall_cmds
15410
15411 # Commands used to build a loadable module (assumed same as above if empty)
15412 module_cmds=$lt_module_cmds_CXX
15413 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15414
15415 # Commands to strip libraries.
15416 old_striplib=$lt_old_striplib
15417 striplib=$lt_striplib
15418
15419 # Dependencies to place before the objects being linked to create a
15420 # shared library.
15421 predep_objects=$lt_predep_objects_CXX
15422
15423 # Dependencies to place after the objects being linked to create a
15424 # shared library.
15425 postdep_objects=$lt_postdep_objects_CXX
15426
15427 # Dependencies to place before the objects being linked to create a
15428 # shared library.
15429 predeps=$lt_predeps_CXX
15430
15431 # Dependencies to place after the objects being linked to create a
15432 # shared library.
15433 postdeps=$lt_postdeps_CXX
15434
15435 # The library search path used internally by the compiler when linking
15436 # a shared library.
15437 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15438
15439 # Method to check whether dependent libraries are shared objects.
15440 deplibs_check_method=$lt_deplibs_check_method
15441
15442 # Command to use when deplibs_check_method == file_magic.
15443 file_magic_cmd=$lt_file_magic_cmd
15444
15445 # Flag that allows shared libraries with undefined symbols to be built.
15446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15447
15448 # Flag that forces no undefined symbols.
15449 no_undefined_flag=$lt_no_undefined_flag_CXX
15450
15451 # Commands used to finish a libtool library installation in a directory.
15452 finish_cmds=$lt_finish_cmds
15453
15454 # Same as above, but a single script fragment to be evaled but not shown.
15455 finish_eval=$lt_finish_eval
15456
15457 # Take the output of nm and produce a listing of raw symbols and C names.
15458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15459
15460 # Transform the output of nm in a proper C declaration
15461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15462
15463 # Transform the output of nm in a C name address pair
15464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15465
15466 # This is the shared library runtime path variable.
15467 runpath_var=$runpath_var
15468
15469 # This is the shared library path variable.
15470 shlibpath_var=$shlibpath_var
15471
15472 # Is shlibpath searched before the hard-coded library search path?
15473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15474
15475 # How to hardcode a shared library path into an executable.
15476 hardcode_action=$hardcode_action_CXX
15477
15478 # Whether we should hardcode library paths into libraries.
15479 hardcode_into_libs=$hardcode_into_libs
15480
15481 # Flag to hardcode \$libdir into a binary during linking.
15482 # This must work even if \$libdir does not exist.
15483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15484
15485 # If ld is used when linking, flag to hardcode \$libdir into
15486 # a binary during linking. This must work even if \$libdir does
15487 # not exist.
15488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15489
15490 # Whether we need a single -rpath flag with a separated argument.
15491 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15492
15493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15494 # resulting binary.
15495 hardcode_direct=$hardcode_direct_CXX
15496
15497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15498 # resulting binary.
15499 hardcode_minus_L=$hardcode_minus_L_CXX
15500
15501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15502 # the resulting binary.
15503 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15504
15505 # Set to yes if building a shared library automatically hardcodes DIR into the library
15506 # and all subsequent libraries and executables linked against it.
15507 hardcode_automatic=$hardcode_automatic_CXX
15508
15509 # Variables whose values should be saved in libtool wrapper scripts and
15510 # restored at relink time.
15511 variables_saved_for_relink="$variables_saved_for_relink"
15512
15513 # Whether libtool must link a program against all its dependency libraries.
15514 link_all_deplibs=$link_all_deplibs_CXX
15515
15516 # Compile-time system search path for libraries
15517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15518
15519 # Run-time system search path for libraries
15520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15521
15522 # Fix the shell variable \$srcfile for the compiler.
15523 fix_srcfile_path="$fix_srcfile_path_CXX"
15524
15525 # Set to yes if exported symbols are required.
15526 always_export_symbols=$always_export_symbols_CXX
15527
15528 # The commands to list exported symbols.
15529 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15530
15531 # The commands to extract the exported symbol list from a shared archive.
15532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15533
15534 # Symbols that should not be listed in the preloaded symbols.
15535 exclude_expsyms=$lt_exclude_expsyms_CXX
15536
15537 # Symbols that must always be exported.
15538 include_expsyms=$lt_include_expsyms_CXX
15539
15540 # ### END LIBTOOL TAG CONFIG: $tagname
15541
15542 __EOF__
15543
15544
15545 else
15546   # If there is no Makefile yet, we rely on a make rule to execute
15547   # `config.status --recheck' to rerun these tests and create the
15548   # libtool script then.
15549   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15550   if test -f "$ltmain_in"; then
15551     test -f Makefile && make "$ltmain"
15552   fi
15553 fi
15554
15555
15556 ac_ext=c
15557 ac_cpp='$CPP $CPPFLAGS'
15558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15561
15562 CC=$lt_save_CC
15563 LDCXX=$LD
15564 LD=$lt_save_LD
15565 GCC=$lt_save_GCC
15566 with_gnu_ldcxx=$with_gnu_ld
15567 with_gnu_ld=$lt_save_with_gnu_ld
15568 lt_cv_path_LDCXX=$lt_cv_path_LD
15569 lt_cv_path_LD=$lt_save_path_LD
15570 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15571 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15572
15573         else
15574           tagname=""
15575         fi
15576         ;;
15577
15578       F77)
15579         if test -n "$F77" && test "X$F77" != "Xno"; then
15580
15581 ac_ext=f
15582 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15583 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15585
15586
15587 archive_cmds_need_lc_F77=no
15588 allow_undefined_flag_F77=
15589 always_export_symbols_F77=no
15590 archive_expsym_cmds_F77=
15591 export_dynamic_flag_spec_F77=
15592 hardcode_direct_F77=no
15593 hardcode_libdir_flag_spec_F77=
15594 hardcode_libdir_flag_spec_ld_F77=
15595 hardcode_libdir_separator_F77=
15596 hardcode_minus_L_F77=no
15597 hardcode_automatic_F77=no
15598 module_cmds_F77=
15599 module_expsym_cmds_F77=
15600 link_all_deplibs_F77=unknown
15601 old_archive_cmds_F77=$old_archive_cmds
15602 no_undefined_flag_F77=
15603 whole_archive_flag_spec_F77=
15604 enable_shared_with_static_runtimes_F77=no
15605
15606 # Source file extension for f77 test sources.
15607 ac_ext=f
15608
15609 # Object file extension for compiled f77 test sources.
15610 objext=o
15611 objext_F77=$objext
15612
15613 # Code to be used in simple compile tests
15614 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15615
15616 # Code to be used in simple link tests
15617 lt_simple_link_test_code="      program t\n      end\n"
15618
15619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15620
15621 # If no C compiler was specified, use CC.
15622 LTCC=${LTCC-"$CC"}
15623
15624 # If no C compiler flags were specified, use CFLAGS.
15625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15626
15627 # Allow CC to be a program name with arguments.
15628 compiler=$CC
15629
15630
15631 # save warnings/boilerplate of simple test code
15632 ac_outfile=conftest.$ac_objext
15633 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15635 _lt_compiler_boilerplate=`cat conftest.err`
15636 $rm conftest*
15637
15638 ac_outfile=conftest.$ac_objext
15639 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15641 _lt_linker_boilerplate=`cat conftest.err`
15642 $rm conftest*
15643
15644
15645 # Allow CC to be a program name with arguments.
15646 lt_save_CC="$CC"
15647 CC=${F77-"f77"}
15648 compiler=$CC
15649 compiler_F77=$CC
15650 for cc_temp in $compiler""; do
15651   case $cc_temp in
15652     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15653     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15654     \-*) ;;
15655     *) break;;
15656   esac
15657 done
15658 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15659
15660
15661 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15662 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15663 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15664 echo "${ECHO_T}$can_build_shared" >&6; }
15665
15666 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15667 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15668 test "$can_build_shared" = "no" && enable_shared=no
15669
15670 # On AIX, shared libraries and static libraries use the same namespace, and
15671 # are all built from PIC.
15672 case $host_os in
15673 aix3*)
15674   test "$enable_shared" = yes && enable_static=no
15675   if test -n "$RANLIB"; then
15676     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15677     postinstall_cmds='$RANLIB $lib'
15678   fi
15679   ;;
15680 aix4* | aix5*)
15681   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15682     test "$enable_shared" = yes && enable_static=no
15683   fi
15684   ;;
15685 esac
15686 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15687 echo "${ECHO_T}$enable_shared" >&6; }
15688
15689 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15690 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15691 # Make sure either enable_shared or enable_static is yes.
15692 test "$enable_shared" = yes || enable_static=yes
15693 { echo "$as_me:$LINENO: result: $enable_static" >&5
15694 echo "${ECHO_T}$enable_static" >&6; }
15695
15696 GCC_F77="$G77"
15697 LD_F77="$LD"
15698
15699 lt_prog_compiler_wl_F77=
15700 lt_prog_compiler_pic_F77=
15701 lt_prog_compiler_static_F77=
15702
15703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15705
15706   if test "$GCC" = yes; then
15707     lt_prog_compiler_wl_F77='-Wl,'
15708     lt_prog_compiler_static_F77='-static'
15709
15710     case $host_os in
15711       aix*)
15712       # All AIX code is PIC.
15713       if test "$host_cpu" = ia64; then
15714         # AIX 5 now supports IA64 processor
15715         lt_prog_compiler_static_F77='-Bstatic'
15716       fi
15717       ;;
15718
15719     amigaos*)
15720       # FIXME: we need at least 68020 code to build shared libraries, but
15721       # adding the `-m68020' flag to GCC prevents building anything better,
15722       # like `-m68040'.
15723       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15724       ;;
15725
15726     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15727       # PIC is the default for these OSes.
15728       ;;
15729
15730     mingw* | pw32* | os2*)
15731       # This hack is so that the source file can tell whether it is being
15732       # built for inclusion in a dll (and should export symbols for example).
15733       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15734       ;;
15735
15736     darwin* | rhapsody*)
15737       # PIC is the default on this platform
15738       # Common symbols not allowed in MH_DYLIB files
15739       lt_prog_compiler_pic_F77='-fno-common'
15740       ;;
15741
15742     interix3*)
15743       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15744       # Instead, we relocate shared libraries at runtime.
15745       ;;
15746
15747     msdosdjgpp*)
15748       # Just because we use GCC doesn't mean we suddenly get shared libraries
15749       # on systems that don't support them.
15750       lt_prog_compiler_can_build_shared_F77=no
15751       enable_shared=no
15752       ;;
15753
15754     sysv4*MP*)
15755       if test -d /usr/nec; then
15756         lt_prog_compiler_pic_F77=-Kconform_pic
15757       fi
15758       ;;
15759
15760     hpux*)
15761       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15762       # not for PA HP-UX.
15763       case $host_cpu in
15764       hppa*64*|ia64*)
15765         # +Z the default
15766         ;;
15767       *)
15768         lt_prog_compiler_pic_F77='-fPIC'
15769         ;;
15770       esac
15771       ;;
15772
15773     *)
15774       lt_prog_compiler_pic_F77='-fPIC'
15775       ;;
15776     esac
15777   else
15778     # PORTME Check for flag to pass linker flags through the system compiler.
15779     case $host_os in
15780     aix*)
15781       lt_prog_compiler_wl_F77='-Wl,'
15782       if test "$host_cpu" = ia64; then
15783         # AIX 5 now supports IA64 processor
15784         lt_prog_compiler_static_F77='-Bstatic'
15785       else
15786         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15787       fi
15788       ;;
15789       darwin*)
15790         # PIC is the default on this platform
15791         # Common symbols not allowed in MH_DYLIB files
15792        case $cc_basename in
15793          xlc*)
15794          lt_prog_compiler_pic_F77='-qnocommon'
15795          lt_prog_compiler_wl_F77='-Wl,'
15796          ;;
15797        esac
15798        ;;
15799
15800     mingw* | pw32* | os2*)
15801       # This hack is so that the source file can tell whether it is being
15802       # built for inclusion in a dll (and should export symbols for example).
15803       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15804       ;;
15805
15806     hpux9* | hpux10* | hpux11*)
15807       lt_prog_compiler_wl_F77='-Wl,'
15808       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15809       # not for PA HP-UX.
15810       case $host_cpu in
15811       hppa*64*|ia64*)
15812         # +Z the default
15813         ;;
15814       *)
15815         lt_prog_compiler_pic_F77='+Z'
15816         ;;
15817       esac
15818       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15819       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15820       ;;
15821
15822     irix5* | irix6* | nonstopux*)
15823       lt_prog_compiler_wl_F77='-Wl,'
15824       # PIC (with -KPIC) is the default.
15825       lt_prog_compiler_static_F77='-non_shared'
15826       ;;
15827
15828     newsos6)
15829       lt_prog_compiler_pic_F77='-KPIC'
15830       lt_prog_compiler_static_F77='-Bstatic'
15831       ;;
15832
15833     linux*)
15834       case $cc_basename in
15835       icc* | ecc*)
15836         lt_prog_compiler_wl_F77='-Wl,'
15837         lt_prog_compiler_pic_F77='-KPIC'
15838         lt_prog_compiler_static_F77='-static'
15839         ;;
15840       pgcc* | pgf77* | pgf90* | pgf95*)
15841         # Portland Group compilers (*not* the Pentium gcc compiler,
15842         # which looks to be a dead project)
15843         lt_prog_compiler_wl_F77='-Wl,'
15844         lt_prog_compiler_pic_F77='-fpic'
15845         lt_prog_compiler_static_F77='-Bstatic'
15846         ;;
15847       ccc*)
15848         lt_prog_compiler_wl_F77='-Wl,'
15849         # All Alpha code is PIC.
15850         lt_prog_compiler_static_F77='-non_shared'
15851         ;;
15852       esac
15853       ;;
15854
15855     osf3* | osf4* | osf5*)
15856       lt_prog_compiler_wl_F77='-Wl,'
15857       # All OSF/1 code is PIC.
15858       lt_prog_compiler_static_F77='-non_shared'
15859       ;;
15860
15861     solaris*)
15862       lt_prog_compiler_pic_F77='-KPIC'
15863       lt_prog_compiler_static_F77='-Bstatic'
15864       case $cc_basename in
15865       f77* | f90* | f95*)
15866         lt_prog_compiler_wl_F77='-Qoption ld ';;
15867       *)
15868         lt_prog_compiler_wl_F77='-Wl,';;
15869       esac
15870       ;;
15871
15872     sunos4*)
15873       lt_prog_compiler_wl_F77='-Qoption ld '
15874       lt_prog_compiler_pic_F77='-PIC'
15875       lt_prog_compiler_static_F77='-Bstatic'
15876       ;;
15877
15878     sysv4 | sysv4.2uw2* | sysv4.3*)
15879       lt_prog_compiler_wl_F77='-Wl,'
15880       lt_prog_compiler_pic_F77='-KPIC'
15881       lt_prog_compiler_static_F77='-Bstatic'
15882       ;;
15883
15884     sysv4*MP*)
15885       if test -d /usr/nec ;then
15886         lt_prog_compiler_pic_F77='-Kconform_pic'
15887         lt_prog_compiler_static_F77='-Bstatic'
15888       fi
15889       ;;
15890
15891     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15892       lt_prog_compiler_wl_F77='-Wl,'
15893       lt_prog_compiler_pic_F77='-KPIC'
15894       lt_prog_compiler_static_F77='-Bstatic'
15895       ;;
15896
15897     unicos*)
15898       lt_prog_compiler_wl_F77='-Wl,'
15899       lt_prog_compiler_can_build_shared_F77=no
15900       ;;
15901
15902     uts4*)
15903       lt_prog_compiler_pic_F77='-pic'
15904       lt_prog_compiler_static_F77='-Bstatic'
15905       ;;
15906
15907     *)
15908       lt_prog_compiler_can_build_shared_F77=no
15909       ;;
15910     esac
15911   fi
15912
15913 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15914 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15915
15916 #
15917 # Check to make sure the PIC flag actually works.
15918 #
15919 if test -n "$lt_prog_compiler_pic_F77"; then
15920
15921 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15922 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15923 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15924   echo $ECHO_N "(cached) $ECHO_C" >&6
15925 else
15926   lt_prog_compiler_pic_works_F77=no
15927   ac_outfile=conftest.$ac_objext
15928    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15929    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15930    # Insert the option either (1) after the last *FLAGS variable, or
15931    # (2) before a word containing "conftest.", or (3) at the end.
15932    # Note that $ac_compile itself does not contain backslashes and begins
15933    # with a dollar sign (not a hyphen), so the echo should work correctly.
15934    # The option is referenced via a variable to avoid confusing sed.
15935    lt_compile=`echo "$ac_compile" | $SED \
15936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15938    -e 's:$: $lt_compiler_flag:'`
15939    (eval echo "\"\$as_me:15939: $lt_compile\"" >&5)
15940    (eval "$lt_compile" 2>conftest.err)
15941    ac_status=$?
15942    cat conftest.err >&5
15943    echo "$as_me:15943: \$? = $ac_status" >&5
15944    if (exit $ac_status) && test -s "$ac_outfile"; then
15945      # The compiler can only warn and ignore the option if not recognized
15946      # So say no if there are warnings other than the usual output.
15947      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15948      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15949      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15950        lt_prog_compiler_pic_works_F77=yes
15951      fi
15952    fi
15953    $rm conftest*
15954
15955 fi
15956 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15957 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15958
15959 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15960     case $lt_prog_compiler_pic_F77 in
15961      "" | " "*) ;;
15962      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15963      esac
15964 else
15965     lt_prog_compiler_pic_F77=
15966      lt_prog_compiler_can_build_shared_F77=no
15967 fi
15968
15969 fi
15970 case $host_os in
15971   # For platforms which do not support PIC, -DPIC is meaningless:
15972   *djgpp*)
15973     lt_prog_compiler_pic_F77=
15974     ;;
15975   *)
15976     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15977     ;;
15978 esac
15979
15980 #
15981 # Check to make sure the static flag actually works.
15982 #
15983 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15984 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15985 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15986 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989   lt_prog_compiler_static_works_F77=no
15990    save_LDFLAGS="$LDFLAGS"
15991    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15992    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15993    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15994      # The linker can only warn and ignore the option if not recognized
15995      # So say no if there are warnings
15996      if test -s conftest.err; then
15997        # Append any errors to the config.log.
15998        cat conftest.err 1>&5
15999        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16000        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16001        if diff conftest.exp conftest.er2 >/dev/null; then
16002          lt_prog_compiler_static_works_F77=yes
16003        fi
16004      else
16005        lt_prog_compiler_static_works_F77=yes
16006      fi
16007    fi
16008    $rm conftest*
16009    LDFLAGS="$save_LDFLAGS"
16010
16011 fi
16012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16013 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
16014
16015 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16016     :
16017 else
16018     lt_prog_compiler_static_F77=
16019 fi
16020
16021
16022 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16023 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16024 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16025   echo $ECHO_N "(cached) $ECHO_C" >&6
16026 else
16027   lt_cv_prog_compiler_c_o_F77=no
16028    $rm -r conftest 2>/dev/null
16029    mkdir conftest
16030    cd conftest
16031    mkdir out
16032    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16033
16034    lt_compiler_flag="-o out/conftest2.$ac_objext"
16035    # Insert the option either (1) after the last *FLAGS variable, or
16036    # (2) before a word containing "conftest.", or (3) at the end.
16037    # Note that $ac_compile itself does not contain backslashes and begins
16038    # with a dollar sign (not a hyphen), so the echo should work correctly.
16039    lt_compile=`echo "$ac_compile" | $SED \
16040    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16042    -e 's:$: $lt_compiler_flag:'`
16043    (eval echo "\"\$as_me:16043: $lt_compile\"" >&5)
16044    (eval "$lt_compile" 2>out/conftest.err)
16045    ac_status=$?
16046    cat out/conftest.err >&5
16047    echo "$as_me:16047: \$? = $ac_status" >&5
16048    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16049    then
16050      # The compiler can only warn and ignore the option if not recognized
16051      # So say no if there are warnings
16052      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16053      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16054      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16055        lt_cv_prog_compiler_c_o_F77=yes
16056      fi
16057    fi
16058    chmod u+w . 2>&5
16059    $rm conftest*
16060    # SGI C++ compiler will create directory out/ii_files/ for
16061    # template instantiation
16062    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16063    $rm out/* && rmdir out
16064    cd ..
16065    rmdir conftest
16066    $rm conftest*
16067
16068 fi
16069 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16070 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16071
16072
16073 hard_links="nottested"
16074 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16075   # do not overwrite the value of need_locks provided by the user
16076   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16077 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16078   hard_links=yes
16079   $rm conftest*
16080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16081   touch conftest.a
16082   ln conftest.a conftest.b 2>&5 || hard_links=no
16083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16084   { echo "$as_me:$LINENO: result: $hard_links" >&5
16085 echo "${ECHO_T}$hard_links" >&6; }
16086   if test "$hard_links" = no; then
16087     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16088 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16089     need_locks=warn
16090   fi
16091 else
16092   need_locks=no
16093 fi
16094
16095 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16096 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16097
16098   runpath_var=
16099   allow_undefined_flag_F77=
16100   enable_shared_with_static_runtimes_F77=no
16101   archive_cmds_F77=
16102   archive_expsym_cmds_F77=
16103   old_archive_From_new_cmds_F77=
16104   old_archive_from_expsyms_cmds_F77=
16105   export_dynamic_flag_spec_F77=
16106   whole_archive_flag_spec_F77=
16107   thread_safe_flag_spec_F77=
16108   hardcode_libdir_flag_spec_F77=
16109   hardcode_libdir_flag_spec_ld_F77=
16110   hardcode_libdir_separator_F77=
16111   hardcode_direct_F77=no
16112   hardcode_minus_L_F77=no
16113   hardcode_shlibpath_var_F77=unsupported
16114   link_all_deplibs_F77=unknown
16115   hardcode_automatic_F77=no
16116   module_cmds_F77=
16117   module_expsym_cmds_F77=
16118   always_export_symbols_F77=no
16119   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16120   # include_expsyms should be a list of space-separated symbols to be *always*
16121   # included in the symbol list
16122   include_expsyms_F77=
16123   # exclude_expsyms can be an extended regexp of symbols to exclude
16124   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16125   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16126   # as well as any symbol that contains `d'.
16127   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16128   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16129   # platforms (ab)use it in PIC code, but their linkers get confused if
16130   # the symbol is explicitly referenced.  Since portable code cannot
16131   # rely on this symbol name, it's probably fine to never include it in
16132   # preloaded symbol tables.
16133   extract_expsyms_cmds=
16134   # Just being paranoid about ensuring that cc_basename is set.
16135   for cc_temp in $compiler""; do
16136   case $cc_temp in
16137     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16138     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16139     \-*) ;;
16140     *) break;;
16141   esac
16142 done
16143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16144
16145   case $host_os in
16146   cygwin* | mingw* | pw32*)
16147     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16148     # When not using gcc, we currently assume that we are using
16149     # Microsoft Visual C++.
16150     if test "$GCC" != yes; then
16151       with_gnu_ld=no
16152     fi
16153     ;;
16154   interix*)
16155     # we just hope/assume this is gcc and not c89 (= MSVC++)
16156     with_gnu_ld=yes
16157     ;;
16158   openbsd*)
16159     with_gnu_ld=no
16160     ;;
16161   esac
16162
16163   ld_shlibs_F77=yes
16164   if test "$with_gnu_ld" = yes; then
16165     # If archive_cmds runs LD, not CC, wlarc should be empty
16166     wlarc='${wl}'
16167
16168     # Set some defaults for GNU ld with shared library support. These
16169     # are reset later if shared libraries are not supported. Putting them
16170     # here allows them to be overridden if necessary.
16171     runpath_var=LD_RUN_PATH
16172     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16173     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16174     # ancient GNU ld didn't support --whole-archive et. al.
16175     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16176         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16177       else
16178         whole_archive_flag_spec_F77=
16179     fi
16180     supports_anon_versioning=no
16181     case `$LD -v 2>/dev/null` in
16182       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16183       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16184       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16185       *\ 2.11.*) ;; # other 2.11 versions
16186       *) supports_anon_versioning=yes ;;
16187     esac
16188
16189     # See if GNU ld supports shared libraries.
16190     case $host_os in
16191     aix3* | aix4* | aix5*)
16192       # On AIX/PPC, the GNU linker is very broken
16193       if test "$host_cpu" != ia64; then
16194         ld_shlibs_F77=no
16195         cat <<EOF 1>&2
16196
16197 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16198 *** to be unable to reliably create shared libraries on AIX.
16199 *** Therefore, libtool is disabling shared libraries support.  If you
16200 *** really care for shared libraries, you may want to modify your PATH
16201 *** so that a non-GNU linker is found, and then restart.
16202
16203 EOF
16204       fi
16205       ;;
16206
16207     amigaos*)
16208       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)'
16209       hardcode_libdir_flag_spec_F77='-L$libdir'
16210       hardcode_minus_L_F77=yes
16211
16212       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16213       # that the semantics of dynamic libraries on AmigaOS, at least up
16214       # to version 4, is to share data among multiple programs linked
16215       # with the same dynamic library.  Since this doesn't match the
16216       # behavior of shared libraries on other platforms, we can't use
16217       # them.
16218       ld_shlibs_F77=no
16219       ;;
16220
16221     beos*)
16222       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16223         allow_undefined_flag_F77=unsupported
16224         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16225         # support --undefined.  This deserves some investigation.  FIXME
16226         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227       else
16228         ld_shlibs_F77=no
16229       fi
16230       ;;
16231
16232     cygwin* | mingw* | pw32*)
16233       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16234       # as there is no search path for DLLs.
16235       hardcode_libdir_flag_spec_F77='-L$libdir'
16236       allow_undefined_flag_F77=unsupported
16237       always_export_symbols_F77=no
16238       enable_shared_with_static_runtimes_F77=yes
16239       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16240
16241       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16242         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16243         # If the export-symbols file already is a .def file (1st line
16244         # is EXPORTS), use it as is; otherwise, prepend...
16245         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16246           cp $export_symbols $output_objdir/$soname.def;
16247         else
16248           echo EXPORTS > $output_objdir/$soname.def;
16249           cat $export_symbols >> $output_objdir/$soname.def;
16250         fi~
16251         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16252       else
16253         ld_shlibs_F77=no
16254       fi
16255       ;;
16256
16257     interix3*)
16258       hardcode_direct_F77=no
16259       hardcode_shlibpath_var_F77=no
16260       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16261       export_dynamic_flag_spec_F77='${wl}-E'
16262       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16263       # Instead, shared libraries are loaded at an image base (0x10000000 by
16264       # default) and relocated if they conflict, which is a slow very memory
16265       # consuming and fragmenting process.  To avoid this, we pick a random,
16266       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16267       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16268       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'
16269       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'
16270       ;;
16271
16272     linux*)
16273       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16274         tmp_addflag=
16275         case $cc_basename,$host_cpu in
16276         pgcc*)                          # Portland Group C compiler
16277           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'
16278           tmp_addflag=' $pic_flag'
16279           ;;
16280         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16281           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'
16282           tmp_addflag=' $pic_flag -Mnomain' ;;
16283         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16284           tmp_addflag=' -i_dynamic' ;;
16285         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16286           tmp_addflag=' -i_dynamic -nofor_main' ;;
16287         ifc* | ifort*)                  # Intel Fortran compiler
16288           tmp_addflag=' -nofor_main' ;;
16289         esac
16290         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16291
16292         if test $supports_anon_versioning = yes; then
16293           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16294   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16295   $echo "local: *; };" >> $output_objdir/$libname.ver~
16296           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16297         fi
16298       else
16299         ld_shlibs_F77=no
16300       fi
16301       ;;
16302
16303     netbsd*)
16304       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16305         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16306         wlarc=
16307       else
16308         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16309         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16310       fi
16311       ;;
16312
16313     solaris*)
16314       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16315         ld_shlibs_F77=no
16316         cat <<EOF 1>&2
16317
16318 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16319 *** create shared libraries on Solaris systems.  Therefore, libtool
16320 *** is disabling shared libraries support.  We urge you to upgrade GNU
16321 *** binutils to release 2.9.1 or newer.  Another option is to modify
16322 *** your PATH or compiler configuration so that the native linker is
16323 *** used, and then restart.
16324
16325 EOF
16326       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16327         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16328         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16329       else
16330         ld_shlibs_F77=no
16331       fi
16332       ;;
16333
16334     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16335       case `$LD -v 2>&1` in
16336         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16337         ld_shlibs_F77=no
16338         cat <<_LT_EOF 1>&2
16339
16340 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16341 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16342 *** is disabling shared libraries support.  We urge you to upgrade GNU
16343 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16344 *** your PATH or compiler configuration so that the native linker is
16345 *** used, and then restart.
16346
16347 _LT_EOF
16348         ;;
16349         *)
16350           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16351             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16352             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16353             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16354           else
16355             ld_shlibs_F77=no
16356           fi
16357         ;;
16358       esac
16359       ;;
16360
16361     sunos4*)
16362       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16363       wlarc=
16364       hardcode_direct_F77=yes
16365       hardcode_shlibpath_var_F77=no
16366       ;;
16367
16368     *)
16369       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16370         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16371         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16372       else
16373         ld_shlibs_F77=no
16374       fi
16375       ;;
16376     esac
16377
16378     if test "$ld_shlibs_F77" = no; then
16379       runpath_var=
16380       hardcode_libdir_flag_spec_F77=
16381       export_dynamic_flag_spec_F77=
16382       whole_archive_flag_spec_F77=
16383     fi
16384   else
16385     # PORTME fill in a description of your system's linker (not GNU ld)
16386     case $host_os in
16387     aix3*)
16388       allow_undefined_flag_F77=unsupported
16389       always_export_symbols_F77=yes
16390       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'
16391       # Note: this linker hardcodes the directories in LIBPATH if there
16392       # are no directories specified by -L.
16393       hardcode_minus_L_F77=yes
16394       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16395         # Neither direct hardcoding nor static linking is supported with a
16396         # broken collect2.
16397         hardcode_direct_F77=unsupported
16398       fi
16399       ;;
16400
16401     aix4* | aix5*)
16402       if test "$host_cpu" = ia64; then
16403         # On IA64, the linker does run time linking by default, so we don't
16404         # have to do anything special.
16405         aix_use_runtimelinking=no
16406         exp_sym_flag='-Bexport'
16407         no_entry_flag=""
16408       else
16409         # If we're using GNU nm, then we don't want the "-C" option.
16410         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16411         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16412           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'
16413         else
16414           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'
16415         fi
16416         aix_use_runtimelinking=no
16417
16418         # Test if we are trying to use run time linking or normal
16419         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16420         # need to do runtime linking.
16421         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16422           for ld_flag in $LDFLAGS; do
16423           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16424             aix_use_runtimelinking=yes
16425             break
16426           fi
16427           done
16428           ;;
16429         esac
16430
16431         exp_sym_flag='-bexport'
16432         no_entry_flag='-bnoentry'
16433       fi
16434
16435       # When large executables or shared objects are built, AIX ld can
16436       # have problems creating the table of contents.  If linking a library
16437       # or program results in "error TOC overflow" add -mminimal-toc to
16438       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16439       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16440
16441       archive_cmds_F77=''
16442       hardcode_direct_F77=yes
16443       hardcode_libdir_separator_F77=':'
16444       link_all_deplibs_F77=yes
16445
16446       if test "$GCC" = yes; then
16447         case $host_os in aix4.[012]|aix4.[012].*)
16448         # We only want to do this on AIX 4.2 and lower, the check
16449         # below for broken collect2 doesn't work under 4.3+
16450           collect2name=`${CC} -print-prog-name=collect2`
16451           if test -f "$collect2name" && \
16452            strings "$collect2name" | grep resolve_lib_name >/dev/null
16453           then
16454           # We have reworked collect2
16455           hardcode_direct_F77=yes
16456           else
16457           # We have old collect2
16458           hardcode_direct_F77=unsupported
16459           # It fails to find uninstalled libraries when the uninstalled
16460           # path is not listed in the libpath.  Setting hardcode_minus_L
16461           # to unsupported forces relinking
16462           hardcode_minus_L_F77=yes
16463           hardcode_libdir_flag_spec_F77='-L$libdir'
16464           hardcode_libdir_separator_F77=
16465           fi
16466           ;;
16467         esac
16468         shared_flag='-shared'
16469         if test "$aix_use_runtimelinking" = yes; then
16470           shared_flag="$shared_flag "'${wl}-G'
16471         fi
16472       else
16473         # not using gcc
16474         if test "$host_cpu" = ia64; then
16475         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16476         # chokes on -Wl,-G. The following line is correct:
16477           shared_flag='-G'
16478         else
16479           if test "$aix_use_runtimelinking" = yes; then
16480             shared_flag='${wl}-G'
16481           else
16482             shared_flag='${wl}-bM:SRE'
16483           fi
16484         fi
16485       fi
16486
16487       # It seems that -bexpall does not export symbols beginning with
16488       # underscore (_), so it is better to generate a list of symbols to export.
16489       always_export_symbols_F77=yes
16490       if test "$aix_use_runtimelinking" = yes; then
16491         # Warning - without using the other runtime loading flags (-brtl),
16492         # -berok will link without error, but may produce a broken library.
16493         allow_undefined_flag_F77='-berok'
16494        # Determine the default libpath from the value encoded in an empty executable.
16495        cat >conftest.$ac_ext <<_ACEOF
16496       program main
16497
16498       end
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507   (eval "$ac_link") 2>conftest.er1
16508   ac_status=$?
16509   grep -v '^ *+' conftest.er1 >conftest.err
16510   rm -f conftest.er1
16511   cat conftest.err >&5
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); } && {
16514          test -z "$ac_f77_werror_flag" ||
16515          test ! -s conftest.err
16516        } && test -s conftest$ac_exeext &&
16517        $as_test_x conftest$ac_exeext; then
16518
16519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16520 }'`
16521 # Check for a 64-bit object if we didn't find anything.
16522 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16523 }'`; fi
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528
16529 fi
16530
16531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16532       conftest$ac_exeext conftest.$ac_ext
16533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16534
16535        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16536         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"
16537        else
16538         if test "$host_cpu" = ia64; then
16539           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16540           allow_undefined_flag_F77="-z nodefs"
16541           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"
16542         else
16543          # Determine the default libpath from the value encoded in an empty executable.
16544          cat >conftest.$ac_ext <<_ACEOF
16545       program main
16546
16547       end
16548 _ACEOF
16549 rm -f conftest.$ac_objext conftest$ac_exeext
16550 if { (ac_try="$ac_link"
16551 case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556   (eval "$ac_link") 2>conftest.er1
16557   ac_status=$?
16558   grep -v '^ *+' conftest.er1 >conftest.err
16559   rm -f conftest.er1
16560   cat conftest.err >&5
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } && {
16563          test -z "$ac_f77_werror_flag" ||
16564          test ! -s conftest.err
16565        } && test -s conftest$ac_exeext &&
16566        $as_test_x conftest$ac_exeext; then
16567
16568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16569 }'`
16570 # Check for a 64-bit object if we didn't find anything.
16571 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16572 }'`; fi
16573 else
16574   echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577
16578 fi
16579
16580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16581       conftest$ac_exeext conftest.$ac_ext
16582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16583
16584          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16585           # Warning - without using the other run time loading flags,
16586           # -berok will link without error, but may produce a broken library.
16587           no_undefined_flag_F77=' ${wl}-bernotok'
16588           allow_undefined_flag_F77=' ${wl}-berok'
16589           # Exported symbols can be pulled into shared objects from archives
16590           whole_archive_flag_spec_F77='$convenience'
16591           archive_cmds_need_lc_F77=yes
16592           # This is similar to how AIX traditionally builds its shared libraries.
16593           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'
16594         fi
16595       fi
16596       ;;
16597
16598     amigaos*)
16599       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)'
16600       hardcode_libdir_flag_spec_F77='-L$libdir'
16601       hardcode_minus_L_F77=yes
16602       # see comment about different semantics on the GNU ld section
16603       ld_shlibs_F77=no
16604       ;;
16605
16606     bsdi[45]*)
16607       export_dynamic_flag_spec_F77=-rdynamic
16608       ;;
16609
16610     cygwin* | mingw* | pw32*)
16611       # When not using gcc, we currently assume that we are using
16612       # Microsoft Visual C++.
16613       # hardcode_libdir_flag_spec is actually meaningless, as there is
16614       # no search path for DLLs.
16615       hardcode_libdir_flag_spec_F77=' '
16616       allow_undefined_flag_F77=unsupported
16617       # Tell ltmain to make .lib files, not .a files.
16618       libext=lib
16619       # Tell ltmain to make .dll files, not .so files.
16620       shrext_cmds=".dll"
16621       # FIXME: Setting linknames here is a bad hack.
16622       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16623       # The linker will automatically build a .lib file if we build a DLL.
16624       old_archive_From_new_cmds_F77='true'
16625       # FIXME: Should let the user specify the lib program.
16626       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16627       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16628       enable_shared_with_static_runtimes_F77=yes
16629       ;;
16630
16631     darwin* | rhapsody*)
16632       case $host_os in
16633         rhapsody* | darwin1.[012])
16634          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16635          ;;
16636        *) # Darwin 1.3 on
16637          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16638            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16639          else
16640            case ${MACOSX_DEPLOYMENT_TARGET} in
16641              10.[012])
16642                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16643                ;;
16644              10.*)
16645                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16646                ;;
16647            esac
16648          fi
16649          ;;
16650       esac
16651       archive_cmds_need_lc_F77=no
16652       hardcode_direct_F77=no
16653       hardcode_automatic_F77=yes
16654       hardcode_shlibpath_var_F77=unsupported
16655       whole_archive_flag_spec_F77=''
16656       link_all_deplibs_F77=yes
16657     if test "$GCC" = yes ; then
16658         output_verbose_link_cmd='echo'
16659         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16660       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16661       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16662       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16663       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}'
16664     else
16665       case $cc_basename in
16666         xlc*)
16667          output_verbose_link_cmd='echo'
16668          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16669          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16670           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16671          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16672           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}'
16673           ;;
16674        *)
16675          ld_shlibs_F77=no
16676           ;;
16677       esac
16678     fi
16679       ;;
16680
16681     dgux*)
16682       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16683       hardcode_libdir_flag_spec_F77='-L$libdir'
16684       hardcode_shlibpath_var_F77=no
16685       ;;
16686
16687     freebsd1*)
16688       ld_shlibs_F77=no
16689       ;;
16690
16691     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16692     # support.  Future versions do this automatically, but an explicit c++rt0.o
16693     # does not break anything, and helps significantly (at the cost of a little
16694     # extra space).
16695     freebsd2.2*)
16696       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16697       hardcode_libdir_flag_spec_F77='-R$libdir'
16698       hardcode_direct_F77=yes
16699       hardcode_shlibpath_var_F77=no
16700       ;;
16701
16702     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16703     freebsd2*)
16704       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16705       hardcode_direct_F77=yes
16706       hardcode_minus_L_F77=yes
16707       hardcode_shlibpath_var_F77=no
16708       ;;
16709
16710     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16711     freebsd* | kfreebsd*-gnu | dragonfly*)
16712       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16713       hardcode_libdir_flag_spec_F77='-R$libdir'
16714       hardcode_direct_F77=yes
16715       hardcode_shlibpath_var_F77=no
16716       ;;
16717
16718     hpux9*)
16719       if test "$GCC" = yes; then
16720         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'
16721       else
16722         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'
16723       fi
16724       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16725       hardcode_libdir_separator_F77=:
16726       hardcode_direct_F77=yes
16727
16728       # hardcode_minus_L: Not really in the search PATH,
16729       # but as the default location of the library.
16730       hardcode_minus_L_F77=yes
16731       export_dynamic_flag_spec_F77='${wl}-E'
16732       ;;
16733
16734     hpux10*)
16735       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16736         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16737       else
16738         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16739       fi
16740       if test "$with_gnu_ld" = no; then
16741         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16742         hardcode_libdir_separator_F77=:
16743
16744         hardcode_direct_F77=yes
16745         export_dynamic_flag_spec_F77='${wl}-E'
16746
16747         # hardcode_minus_L: Not really in the search PATH,
16748         # but as the default location of the library.
16749         hardcode_minus_L_F77=yes
16750       fi
16751       ;;
16752
16753     hpux11*)
16754       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16755         case $host_cpu in
16756         hppa*64*)
16757           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758           ;;
16759         ia64*)
16760           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16761           ;;
16762         *)
16763           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16764           ;;
16765         esac
16766       else
16767         case $host_cpu in
16768         hppa*64*)
16769           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16770           ;;
16771         ia64*)
16772           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16773           ;;
16774         *)
16775           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16776           ;;
16777         esac
16778       fi
16779       if test "$with_gnu_ld" = no; then
16780         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16781         hardcode_libdir_separator_F77=:
16782
16783         case $host_cpu in
16784         hppa*64*|ia64*)
16785           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16786           hardcode_direct_F77=no
16787           hardcode_shlibpath_var_F77=no
16788           ;;
16789         *)
16790           hardcode_direct_F77=yes
16791           export_dynamic_flag_spec_F77='${wl}-E'
16792
16793           # hardcode_minus_L: Not really in the search PATH,
16794           # but as the default location of the library.
16795           hardcode_minus_L_F77=yes
16796           ;;
16797         esac
16798       fi
16799       ;;
16800
16801     irix5* | irix6* | nonstopux*)
16802       if test "$GCC" = yes; then
16803         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'
16804       else
16805         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'
16806         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16807       fi
16808       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16809       hardcode_libdir_separator_F77=:
16810       link_all_deplibs_F77=yes
16811       ;;
16812
16813     netbsd*)
16814       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16815         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16816       else
16817         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16818       fi
16819       hardcode_libdir_flag_spec_F77='-R$libdir'
16820       hardcode_direct_F77=yes
16821       hardcode_shlibpath_var_F77=no
16822       ;;
16823
16824     newsos6)
16825       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826       hardcode_direct_F77=yes
16827       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16828       hardcode_libdir_separator_F77=:
16829       hardcode_shlibpath_var_F77=no
16830       ;;
16831
16832     openbsd*)
16833       hardcode_direct_F77=yes
16834       hardcode_shlibpath_var_F77=no
16835       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16836         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16837         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16838         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16839         export_dynamic_flag_spec_F77='${wl}-E'
16840       else
16841        case $host_os in
16842          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16843            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16844            hardcode_libdir_flag_spec_F77='-R$libdir'
16845            ;;
16846          *)
16847            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16848            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16849            ;;
16850        esac
16851       fi
16852       ;;
16853
16854     os2*)
16855       hardcode_libdir_flag_spec_F77='-L$libdir'
16856       hardcode_minus_L_F77=yes
16857       allow_undefined_flag_F77=unsupported
16858       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'
16859       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16860       ;;
16861
16862     osf3*)
16863       if test "$GCC" = yes; then
16864         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16865         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'
16866       else
16867         allow_undefined_flag_F77=' -expect_unresolved \*'
16868         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'
16869       fi
16870       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16871       hardcode_libdir_separator_F77=:
16872       ;;
16873
16874     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16875       if test "$GCC" = yes; then
16876         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16877         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'
16878         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16879       else
16880         allow_undefined_flag_F77=' -expect_unresolved \*'
16881         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'
16882         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~
16883         $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'
16884
16885         # Both c and cxx compiler support -rpath directly
16886         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16887       fi
16888       hardcode_libdir_separator_F77=:
16889       ;;
16890
16891     solaris*)
16892       no_undefined_flag_F77=' -z text'
16893       if test "$GCC" = yes; then
16894         wlarc='${wl}'
16895         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16896         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16897           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16898       else
16899         wlarc=''
16900         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16901         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16902         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16903       fi
16904       hardcode_libdir_flag_spec_F77='-R$libdir'
16905       hardcode_shlibpath_var_F77=no
16906       case $host_os in
16907       solaris2.[0-5] | solaris2.[0-5].*) ;;
16908       *)
16909         # The compiler driver will combine linker options so we
16910         # cannot just pass the convience library names through
16911         # without $wl, iff we do not link with $LD.
16912         # Luckily, gcc supports the same syntax we need for Sun Studio.
16913         # Supported since Solaris 2.6 (maybe 2.5.1?)
16914         case $wlarc in
16915         '')
16916           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16917         *)
16918           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16919         esac ;;
16920       esac
16921       link_all_deplibs_F77=yes
16922       ;;
16923
16924     sunos4*)
16925       if test "x$host_vendor" = xsequent; then
16926         # Use $CC to link under sequent, because it throws in some extra .o
16927         # files that make .init and .fini sections work.
16928         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16929       else
16930         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16931       fi
16932       hardcode_libdir_flag_spec_F77='-L$libdir'
16933       hardcode_direct_F77=yes
16934       hardcode_minus_L_F77=yes
16935       hardcode_shlibpath_var_F77=no
16936       ;;
16937
16938     sysv4)
16939       case $host_vendor in
16940         sni)
16941           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16942           hardcode_direct_F77=yes # is this really true???
16943         ;;
16944         siemens)
16945           ## LD is ld it makes a PLAMLIB
16946           ## CC just makes a GrossModule.
16947           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16948           reload_cmds_F77='$CC -r -o $output$reload_objs'
16949           hardcode_direct_F77=no
16950         ;;
16951         motorola)
16952           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16954         ;;
16955       esac
16956       runpath_var='LD_RUN_PATH'
16957       hardcode_shlibpath_var_F77=no
16958       ;;
16959
16960     sysv4.3*)
16961       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16962       hardcode_shlibpath_var_F77=no
16963       export_dynamic_flag_spec_F77='-Bexport'
16964       ;;
16965
16966     sysv4*MP*)
16967       if test -d /usr/nec; then
16968         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16969         hardcode_shlibpath_var_F77=no
16970         runpath_var=LD_RUN_PATH
16971         hardcode_runpath_var=yes
16972         ld_shlibs_F77=yes
16973       fi
16974       ;;
16975
16976     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16977       no_undefined_flag_F77='${wl}-z,text'
16978       archive_cmds_need_lc_F77=no
16979       hardcode_shlibpath_var_F77=no
16980       runpath_var='LD_RUN_PATH'
16981
16982       if test "$GCC" = yes; then
16983         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16984         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16985       else
16986         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16987         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16988       fi
16989       ;;
16990
16991     sysv5* | sco3.2v5* | sco5v6*)
16992       # Note: We can NOT use -z defs as we might desire, because we do not
16993       # link with -lc, and that would cause any symbols used from libc to
16994       # always be unresolved, which means just about no library would
16995       # ever link correctly.  If we're not using GNU ld we use -z text
16996       # though, which does catch some bad symbols but isn't as heavy-handed
16997       # as -z defs.
16998       no_undefined_flag_F77='${wl}-z,text'
16999       allow_undefined_flag_F77='${wl}-z,nodefs'
17000       archive_cmds_need_lc_F77=no
17001       hardcode_shlibpath_var_F77=no
17002       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17003       hardcode_libdir_separator_F77=':'
17004       link_all_deplibs_F77=yes
17005       export_dynamic_flag_spec_F77='${wl}-Bexport'
17006       runpath_var='LD_RUN_PATH'
17007
17008       if test "$GCC" = yes; then
17009         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17010         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17011       else
17012         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17013         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17014       fi
17015       ;;
17016
17017     uts4*)
17018       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17019       hardcode_libdir_flag_spec_F77='-L$libdir'
17020       hardcode_shlibpath_var_F77=no
17021       ;;
17022
17023     *)
17024       ld_shlibs_F77=no
17025       ;;
17026     esac
17027   fi
17028
17029 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17030 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17031 test "$ld_shlibs_F77" = no && can_build_shared=no
17032
17033 #
17034 # Do we need to explicitly link libc?
17035 #
17036 case "x$archive_cmds_need_lc_F77" in
17037 x|xyes)
17038   # Assume -lc should be added
17039   archive_cmds_need_lc_F77=yes
17040
17041   if test "$enable_shared" = yes && test "$GCC" = yes; then
17042     case $archive_cmds_F77 in
17043     *'~'*)
17044       # FIXME: we may have to deal with multi-command sequences.
17045       ;;
17046     '$CC '*)
17047       # Test whether the compiler implicitly links with -lc since on some
17048       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17049       # to ld, don't add -lc before -lgcc.
17050       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17051 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17052       $rm conftest*
17053       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17054
17055       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17056   (eval $ac_compile) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } 2>conftest.err; then
17060         soname=conftest
17061         lib=conftest
17062         libobjs=conftest.$ac_objext
17063         deplibs=
17064         wl=$lt_prog_compiler_wl_F77
17065         pic_flag=$lt_prog_compiler_pic_F77
17066         compiler_flags=-v
17067         linker_flags=-v
17068         verstring=
17069         output_objdir=.
17070         libname=conftest
17071         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17072         allow_undefined_flag_F77=
17073         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17074   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); }
17078         then
17079           archive_cmds_need_lc_F77=no
17080         else
17081           archive_cmds_need_lc_F77=yes
17082         fi
17083         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17084       else
17085         cat conftest.err 1>&5
17086       fi
17087       $rm conftest*
17088       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17089 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17090       ;;
17091     esac
17092   fi
17093   ;;
17094 esac
17095
17096 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17097 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17098 library_names_spec=
17099 libname_spec='lib$name'
17100 soname_spec=
17101 shrext_cmds=".so"
17102 postinstall_cmds=
17103 postuninstall_cmds=
17104 finish_cmds=
17105 finish_eval=
17106 shlibpath_var=
17107 shlibpath_overrides_runpath=unknown
17108 version_type=none
17109 dynamic_linker="$host_os ld.so"
17110 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17111 if test "$GCC" = yes; then
17112   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17113   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17114     # if the path contains ";" then we assume it to be the separator
17115     # otherwise default to the standard path separator (i.e. ":") - it is
17116     # assumed that no part of a normal pathname contains ";" but that should
17117     # okay in the real world where ";" in dirpaths is itself problematic.
17118     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17119   else
17120     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17121   fi
17122 else
17123   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17124 fi
17125 need_lib_prefix=unknown
17126 hardcode_into_libs=no
17127
17128 # when you set need_version to no, make sure it does not cause -set_version
17129 # flags to be left without arguments
17130 need_version=unknown
17131
17132 case $host_os in
17133 aix3*)
17134   version_type=linux
17135   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17136   shlibpath_var=LIBPATH
17137
17138   # AIX 3 has no versioning support, so we append a major version to the name.
17139   soname_spec='${libname}${release}${shared_ext}$major'
17140   ;;
17141
17142 aix4* | aix5*)
17143   version_type=linux
17144   need_lib_prefix=no
17145   need_version=no
17146   hardcode_into_libs=yes
17147   if test "$host_cpu" = ia64; then
17148     # AIX 5 supports IA64
17149     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17150     shlibpath_var=LD_LIBRARY_PATH
17151   else
17152     # With GCC up to 2.95.x, collect2 would create an import file
17153     # for dependence libraries.  The import file would start with
17154     # the line `#! .'.  This would cause the generated library to
17155     # depend on `.', always an invalid library.  This was fixed in
17156     # development snapshots of GCC prior to 3.0.
17157     case $host_os in
17158       aix4 | aix4.[01] | aix4.[01].*)
17159       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17160            echo ' yes '
17161            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17162         :
17163       else
17164         can_build_shared=no
17165       fi
17166       ;;
17167     esac
17168     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17169     # soname into executable. Probably we can add versioning support to
17170     # collect2, so additional links can be useful in future.
17171     if test "$aix_use_runtimelinking" = yes; then
17172       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17173       # instead of lib<name>.a to let people know that these are not
17174       # typical AIX shared libraries.
17175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176     else
17177       # We preserve .a as extension for shared libraries through AIX4.2
17178       # and later when we are not doing run time linking.
17179       library_names_spec='${libname}${release}.a $libname.a'
17180       soname_spec='${libname}${release}${shared_ext}$major'
17181     fi
17182     shlibpath_var=LIBPATH
17183   fi
17184   ;;
17185
17186 amigaos*)
17187   library_names_spec='$libname.ixlibrary $libname.a'
17188   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17189   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'
17190   ;;
17191
17192 beos*)
17193   library_names_spec='${libname}${shared_ext}'
17194   dynamic_linker="$host_os ld.so"
17195   shlibpath_var=LIBRARY_PATH
17196   ;;
17197
17198 bsdi[45]*)
17199   version_type=linux
17200   need_version=no
17201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202   soname_spec='${libname}${release}${shared_ext}$major'
17203   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17204   shlibpath_var=LD_LIBRARY_PATH
17205   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17206   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17207   # the default ld.so.conf also contains /usr/contrib/lib and
17208   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17209   # libtool to hard-code these into programs
17210   ;;
17211
17212 cygwin* | mingw* | pw32*)
17213   version_type=windows
17214   shrext_cmds=".dll"
17215   need_version=no
17216   need_lib_prefix=no
17217
17218   case $GCC,$host_os in
17219   yes,cygwin* | yes,mingw* | yes,pw32*)
17220     library_names_spec='$libname.dll.a'
17221     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17222     postinstall_cmds='base_file=`basename \${file}`~
17223       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17224       dldir=$destdir/`dirname \$dlpath`~
17225       test -d \$dldir || mkdir -p \$dldir~
17226       $install_prog $dir/$dlname \$dldir/$dlname~
17227       chmod a+x \$dldir/$dlname'
17228     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17229       dlpath=$dir/\$dldll~
17230        $rm \$dlpath'
17231     shlibpath_overrides_runpath=yes
17232
17233     case $host_os in
17234     cygwin*)
17235       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17236       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17237       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17238       ;;
17239     mingw*)
17240       # MinGW DLLs use traditional 'lib' prefix
17241       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17242       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17243       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17244         # It is most probably a Windows format PATH printed by
17245         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17246         # path with ; separators, and with drive letters. We can handle the
17247         # drive letters (cygwin fileutils understands them), so leave them,
17248         # especially as we might pass files found there to a mingw objdump,
17249         # which wouldn't understand a cygwinified path. Ahh.
17250         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17251       else
17252         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17253       fi
17254       ;;
17255     pw32*)
17256       # pw32 DLLs use 'pw' prefix rather than 'lib'
17257       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17258       ;;
17259     esac
17260     ;;
17261
17262   *)
17263     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17264     ;;
17265   esac
17266   dynamic_linker='Win32 ld.exe'
17267   # FIXME: first we should search . and the directory the executable is in
17268   shlibpath_var=PATH
17269   ;;
17270
17271 darwin* | rhapsody*)
17272   dynamic_linker="$host_os dyld"
17273   version_type=darwin
17274   need_lib_prefix=no
17275   need_version=no
17276   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17277   soname_spec='${libname}${release}${major}$shared_ext'
17278   shlibpath_overrides_runpath=yes
17279   shlibpath_var=DYLD_LIBRARY_PATH
17280   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17281   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17282   if test "$GCC" = yes; then
17283     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17284   else
17285     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17286   fi
17287   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17288   ;;
17289
17290 dgux*)
17291   version_type=linux
17292   need_lib_prefix=no
17293   need_version=no
17294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17295   soname_spec='${libname}${release}${shared_ext}$major'
17296   shlibpath_var=LD_LIBRARY_PATH
17297   ;;
17298
17299 freebsd1*)
17300   dynamic_linker=no
17301   ;;
17302
17303 kfreebsd*-gnu)
17304   version_type=linux
17305   need_lib_prefix=no
17306   need_version=no
17307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17308   soname_spec='${libname}${release}${shared_ext}$major'
17309   shlibpath_var=LD_LIBRARY_PATH
17310   shlibpath_overrides_runpath=no
17311   hardcode_into_libs=yes
17312   dynamic_linker='GNU ld.so'
17313   ;;
17314
17315 freebsd* | dragonfly*)
17316   # DragonFly does not have aout.  When/if they implement a new
17317   # versioning mechanism, adjust this.
17318   if test -x /usr/bin/objformat; then
17319     objformat=`/usr/bin/objformat`
17320   else
17321     case $host_os in
17322     freebsd[123]*) objformat=aout ;;
17323     *) objformat=elf ;;
17324     esac
17325   fi
17326   version_type=freebsd-$objformat
17327   case $version_type in
17328     freebsd-elf*)
17329       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17330       need_version=no
17331       need_lib_prefix=no
17332       ;;
17333     freebsd-*)
17334       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17335       need_version=yes
17336       ;;
17337   esac
17338   shlibpath_var=LD_LIBRARY_PATH
17339   case $host_os in
17340   freebsd2*)
17341     shlibpath_overrides_runpath=yes
17342     ;;
17343   freebsd3.[01]* | freebsdelf3.[01]*)
17344     shlibpath_overrides_runpath=yes
17345     hardcode_into_libs=yes
17346     ;;
17347   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17348   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17349     shlibpath_overrides_runpath=no
17350     hardcode_into_libs=yes
17351     ;;
17352   freebsd*) # from 4.6 on
17353     shlibpath_overrides_runpath=yes
17354     hardcode_into_libs=yes
17355     ;;
17356   esac
17357   ;;
17358
17359 gnu*)
17360   version_type=linux
17361   need_lib_prefix=no
17362   need_version=no
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17364   soname_spec='${libname}${release}${shared_ext}$major'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   hardcode_into_libs=yes
17367   ;;
17368
17369 hpux9* | hpux10* | hpux11*)
17370   # Give a soname corresponding to the major version so that dld.sl refuses to
17371   # link against other versions.
17372   version_type=sunos
17373   need_lib_prefix=no
17374   need_version=no
17375   case $host_cpu in
17376   ia64*)
17377     shrext_cmds='.so'
17378     hardcode_into_libs=yes
17379     dynamic_linker="$host_os dld.so"
17380     shlibpath_var=LD_LIBRARY_PATH
17381     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383     soname_spec='${libname}${release}${shared_ext}$major'
17384     if test "X$HPUX_IA64_MODE" = X32; then
17385       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17386     else
17387       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17388     fi
17389     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17390     ;;
17391    hppa*64*)
17392      shrext_cmds='.sl'
17393      hardcode_into_libs=yes
17394      dynamic_linker="$host_os dld.sl"
17395      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17396      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17397      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398      soname_spec='${libname}${release}${shared_ext}$major'
17399      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17400      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17401      ;;
17402    *)
17403     shrext_cmds='.sl'
17404     dynamic_linker="$host_os dld.sl"
17405     shlibpath_var=SHLIB_PATH
17406     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408     soname_spec='${libname}${release}${shared_ext}$major'
17409     ;;
17410   esac
17411   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17412   postinstall_cmds='chmod 555 $lib'
17413   ;;
17414
17415 interix3*)
17416   version_type=linux
17417   need_lib_prefix=no
17418   need_version=no
17419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17420   soname_spec='${libname}${release}${shared_ext}$major'
17421   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17422   shlibpath_var=LD_LIBRARY_PATH
17423   shlibpath_overrides_runpath=no
17424   hardcode_into_libs=yes
17425   ;;
17426
17427 irix5* | irix6* | nonstopux*)
17428   case $host_os in
17429     nonstopux*) version_type=nonstopux ;;
17430     *)
17431         if test "$lt_cv_prog_gnu_ld" = yes; then
17432                 version_type=linux
17433         else
17434                 version_type=irix
17435         fi ;;
17436   esac
17437   need_lib_prefix=no
17438   need_version=no
17439   soname_spec='${libname}${release}${shared_ext}$major'
17440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17441   case $host_os in
17442   irix5* | nonstopux*)
17443     libsuff= shlibsuff=
17444     ;;
17445   *)
17446     case $LD in # libtool.m4 will add one of these switches to LD
17447     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17448       libsuff= shlibsuff= libmagic=32-bit;;
17449     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17450       libsuff=32 shlibsuff=N32 libmagic=N32;;
17451     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17452       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17453     *) libsuff= shlibsuff= libmagic=never-match;;
17454     esac
17455     ;;
17456   esac
17457   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17458   shlibpath_overrides_runpath=no
17459   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17460   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17461   hardcode_into_libs=yes
17462   ;;
17463
17464 # No shared lib support for Linux oldld, aout, or coff.
17465 linux*oldld* | linux*aout* | linux*coff*)
17466   dynamic_linker=no
17467   ;;
17468
17469 # This must be Linux ELF.
17470 linux*)
17471   version_type=linux
17472   need_lib_prefix=no
17473   need_version=no
17474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475   soname_spec='${libname}${release}${shared_ext}$major'
17476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17477   shlibpath_var=LD_LIBRARY_PATH
17478   shlibpath_overrides_runpath=no
17479   # This implies no fast_install, which is unacceptable.
17480   # Some rework will be needed to allow for fast_install
17481   # before this can be enabled.
17482   hardcode_into_libs=yes
17483
17484   # Append ld.so.conf contents to the search path
17485   if test -f /etc/ld.so.conf; then
17486     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17487     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17488   fi
17489
17490   # We used to test for /lib/ld.so.1 and disable shared libraries on
17491   # powerpc, because MkLinux only supported shared libraries with the
17492   # GNU dynamic linker.  Since this was broken with cross compilers,
17493   # most powerpc-linux boxes support dynamic linking these days and
17494   # people can always --disable-shared, the test was removed, and we
17495   # assume the GNU/Linux dynamic linker is in use.
17496   dynamic_linker='GNU/Linux ld.so'
17497   ;;
17498
17499 knetbsd*-gnu)
17500   version_type=linux
17501   need_lib_prefix=no
17502   need_version=no
17503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17504   soname_spec='${libname}${release}${shared_ext}$major'
17505   shlibpath_var=LD_LIBRARY_PATH
17506   shlibpath_overrides_runpath=no
17507   hardcode_into_libs=yes
17508   dynamic_linker='GNU ld.so'
17509   ;;
17510
17511 netbsd*)
17512   version_type=sunos
17513   need_lib_prefix=no
17514   need_version=no
17515   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17517     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17518     dynamic_linker='NetBSD (a.out) ld.so'
17519   else
17520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17521     soname_spec='${libname}${release}${shared_ext}$major'
17522     dynamic_linker='NetBSD ld.elf_so'
17523   fi
17524   shlibpath_var=LD_LIBRARY_PATH
17525   shlibpath_overrides_runpath=yes
17526   hardcode_into_libs=yes
17527   ;;
17528
17529 newsos6)
17530   version_type=linux
17531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532   shlibpath_var=LD_LIBRARY_PATH
17533   shlibpath_overrides_runpath=yes
17534   ;;
17535
17536 nto-qnx*)
17537   version_type=linux
17538   need_lib_prefix=no
17539   need_version=no
17540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541   soname_spec='${libname}${release}${shared_ext}$major'
17542   shlibpath_var=LD_LIBRARY_PATH
17543   shlibpath_overrides_runpath=yes
17544   ;;
17545
17546 openbsd*)
17547   version_type=sunos
17548   sys_lib_dlsearch_path_spec="/usr/lib"
17549   need_lib_prefix=no
17550   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17551   case $host_os in
17552     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17553     *)                         need_version=no  ;;
17554   esac
17555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17556   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17557   shlibpath_var=LD_LIBRARY_PATH
17558   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17559     case $host_os in
17560       openbsd2.[89] | openbsd2.[89].*)
17561         shlibpath_overrides_runpath=no
17562         ;;
17563       *)
17564         shlibpath_overrides_runpath=yes
17565         ;;
17566       esac
17567   else
17568     shlibpath_overrides_runpath=yes
17569   fi
17570   ;;
17571
17572 os2*)
17573   libname_spec='$name'
17574   shrext_cmds=".dll"
17575   need_lib_prefix=no
17576   library_names_spec='$libname${shared_ext} $libname.a'
17577   dynamic_linker='OS/2 ld.exe'
17578   shlibpath_var=LIBPATH
17579   ;;
17580
17581 osf3* | osf4* | osf5*)
17582   version_type=osf
17583   need_lib_prefix=no
17584   need_version=no
17585   soname_spec='${libname}${release}${shared_ext}$major'
17586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587   shlibpath_var=LD_LIBRARY_PATH
17588   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17589   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17590   ;;
17591
17592 solaris*)
17593   version_type=linux
17594   need_lib_prefix=no
17595   need_version=no
17596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597   soname_spec='${libname}${release}${shared_ext}$major'
17598   shlibpath_var=LD_LIBRARY_PATH
17599   shlibpath_overrides_runpath=yes
17600   hardcode_into_libs=yes
17601   # ldd complains unless libraries are executable
17602   postinstall_cmds='chmod +x $lib'
17603   ;;
17604
17605 sunos4*)
17606   version_type=sunos
17607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17608   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17609   shlibpath_var=LD_LIBRARY_PATH
17610   shlibpath_overrides_runpath=yes
17611   if test "$with_gnu_ld" = yes; then
17612     need_lib_prefix=no
17613   fi
17614   need_version=yes
17615   ;;
17616
17617 sysv4 | sysv4.3*)
17618   version_type=linux
17619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620   soname_spec='${libname}${release}${shared_ext}$major'
17621   shlibpath_var=LD_LIBRARY_PATH
17622   case $host_vendor in
17623     sni)
17624       shlibpath_overrides_runpath=no
17625       need_lib_prefix=no
17626       export_dynamic_flag_spec='${wl}-Blargedynsym'
17627       runpath_var=LD_RUN_PATH
17628       ;;
17629     siemens)
17630       need_lib_prefix=no
17631       ;;
17632     motorola)
17633       need_lib_prefix=no
17634       need_version=no
17635       shlibpath_overrides_runpath=no
17636       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17637       ;;
17638   esac
17639   ;;
17640
17641 sysv4*MP*)
17642   if test -d /usr/nec ;then
17643     version_type=linux
17644     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17645     soname_spec='$libname${shared_ext}.$major'
17646     shlibpath_var=LD_LIBRARY_PATH
17647   fi
17648   ;;
17649
17650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17651   version_type=freebsd-elf
17652   need_lib_prefix=no
17653   need_version=no
17654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17655   soname_spec='${libname}${release}${shared_ext}$major'
17656   shlibpath_var=LD_LIBRARY_PATH
17657   hardcode_into_libs=yes
17658   if test "$with_gnu_ld" = yes; then
17659     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17660     shlibpath_overrides_runpath=no
17661   else
17662     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17663     shlibpath_overrides_runpath=yes
17664     case $host_os in
17665       sco3.2v5*)
17666         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17667         ;;
17668     esac
17669   fi
17670   sys_lib_dlsearch_path_spec='/usr/lib'
17671   ;;
17672
17673 uts4*)
17674   version_type=linux
17675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676   soname_spec='${libname}${release}${shared_ext}$major'
17677   shlibpath_var=LD_LIBRARY_PATH
17678   ;;
17679
17680 *)
17681   dynamic_linker=no
17682   ;;
17683 esac
17684 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17685 echo "${ECHO_T}$dynamic_linker" >&6; }
17686 test "$dynamic_linker" = no && can_build_shared=no
17687
17688 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17689 if test "$GCC" = yes; then
17690   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17691 fi
17692
17693 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17694 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17695 hardcode_action_F77=
17696 if test -n "$hardcode_libdir_flag_spec_F77" || \
17697    test -n "$runpath_var_F77" || \
17698    test "X$hardcode_automatic_F77" = "Xyes" ; then
17699
17700   # We can hardcode non-existant directories.
17701   if test "$hardcode_direct_F77" != no &&
17702      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17703      # have to relink, otherwise we might link with an installed library
17704      # when we should be linking with a yet-to-be-installed one
17705      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17706      test "$hardcode_minus_L_F77" != no; then
17707     # Linking always hardcodes the temporary library directory.
17708     hardcode_action_F77=relink
17709   else
17710     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17711     hardcode_action_F77=immediate
17712   fi
17713 else
17714   # We cannot hardcode anything, or else we can only hardcode existing
17715   # directories.
17716   hardcode_action_F77=unsupported
17717 fi
17718 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17719 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17720
17721 if test "$hardcode_action_F77" = relink; then
17722   # Fast installation is not supported
17723   enable_fast_install=no
17724 elif test "$shlibpath_overrides_runpath" = yes ||
17725      test "$enable_shared" = no; then
17726   # Fast installation is not necessary
17727   enable_fast_install=needless
17728 fi
17729
17730
17731 # The else clause should only fire when bootstrapping the
17732 # libtool distribution, otherwise you forgot to ship ltmain.sh
17733 # with your package, and you will get complaints that there are
17734 # no rules to generate ltmain.sh.
17735 if test -f "$ltmain"; then
17736   # See if we are running on zsh, and set the options which allow our commands through
17737   # without removal of \ escapes.
17738   if test -n "${ZSH_VERSION+set}" ; then
17739     setopt NO_GLOB_SUBST
17740   fi
17741   # Now quote all the things that may contain metacharacters while being
17742   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17743   # variables and quote the copies for generation of the libtool script.
17744   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17745     SED SHELL STRIP \
17746     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17747     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17748     deplibs_check_method reload_flag reload_cmds need_locks \
17749     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17750     lt_cv_sys_global_symbol_to_c_name_address \
17751     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17752     old_postinstall_cmds old_postuninstall_cmds \
17753     compiler_F77 \
17754     CC_F77 \
17755     LD_F77 \
17756     lt_prog_compiler_wl_F77 \
17757     lt_prog_compiler_pic_F77 \
17758     lt_prog_compiler_static_F77 \
17759     lt_prog_compiler_no_builtin_flag_F77 \
17760     export_dynamic_flag_spec_F77 \
17761     thread_safe_flag_spec_F77 \
17762     whole_archive_flag_spec_F77 \
17763     enable_shared_with_static_runtimes_F77 \
17764     old_archive_cmds_F77 \
17765     old_archive_from_new_cmds_F77 \
17766     predep_objects_F77 \
17767     postdep_objects_F77 \
17768     predeps_F77 \
17769     postdeps_F77 \
17770     compiler_lib_search_path_F77 \
17771     archive_cmds_F77 \
17772     archive_expsym_cmds_F77 \
17773     postinstall_cmds_F77 \
17774     postuninstall_cmds_F77 \
17775     old_archive_from_expsyms_cmds_F77 \
17776     allow_undefined_flag_F77 \
17777     no_undefined_flag_F77 \
17778     export_symbols_cmds_F77 \
17779     hardcode_libdir_flag_spec_F77 \
17780     hardcode_libdir_flag_spec_ld_F77 \
17781     hardcode_libdir_separator_F77 \
17782     hardcode_automatic_F77 \
17783     module_cmds_F77 \
17784     module_expsym_cmds_F77 \
17785     lt_cv_prog_compiler_c_o_F77 \
17786     exclude_expsyms_F77 \
17787     include_expsyms_F77; do
17788
17789     case $var in
17790     old_archive_cmds_F77 | \
17791     old_archive_from_new_cmds_F77 | \
17792     archive_cmds_F77 | \
17793     archive_expsym_cmds_F77 | \
17794     module_cmds_F77 | \
17795     module_expsym_cmds_F77 | \
17796     old_archive_from_expsyms_cmds_F77 | \
17797     export_symbols_cmds_F77 | \
17798     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17799     postinstall_cmds | postuninstall_cmds | \
17800     old_postinstall_cmds | old_postuninstall_cmds | \
17801     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17802       # Double-quote double-evaled strings.
17803       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17804       ;;
17805     *)
17806       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17807       ;;
17808     esac
17809   done
17810
17811   case $lt_echo in
17812   *'\$0 --fallback-echo"')
17813     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17814     ;;
17815   esac
17816
17817 cfgfile="$ofile"
17818
17819   cat <<__EOF__ >> "$cfgfile"
17820 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17821
17822 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17823
17824 # Shell to use when invoking shell scripts.
17825 SHELL=$lt_SHELL
17826
17827 # Whether or not to build shared libraries.
17828 build_libtool_libs=$enable_shared
17829
17830 # Whether or not to build static libraries.
17831 build_old_libs=$enable_static
17832
17833 # Whether or not to add -lc for building shared libraries.
17834 build_libtool_need_lc=$archive_cmds_need_lc_F77
17835
17836 # Whether or not to disallow shared libs when runtime libs are static
17837 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17838
17839 # Whether or not to optimize for fast installation.
17840 fast_install=$enable_fast_install
17841
17842 # The host system.
17843 host_alias=$host_alias
17844 host=$host
17845 host_os=$host_os
17846
17847 # The build system.
17848 build_alias=$build_alias
17849 build=$build
17850 build_os=$build_os
17851
17852 # An echo program that does not interpret backslashes.
17853 echo=$lt_echo
17854
17855 # The archiver.
17856 AR=$lt_AR
17857 AR_FLAGS=$lt_AR_FLAGS
17858
17859 # A C compiler.
17860 LTCC=$lt_LTCC
17861
17862 # LTCC compiler flags.
17863 LTCFLAGS=$lt_LTCFLAGS
17864
17865 # A language-specific compiler.
17866 CC=$lt_compiler_F77
17867
17868 # Is the compiler the GNU C compiler?
17869 with_gcc=$GCC_F77
17870
17871 # An ERE matcher.
17872 EGREP=$lt_EGREP
17873
17874 # The linker used to build libraries.
17875 LD=$lt_LD_F77
17876
17877 # Whether we need hard or soft links.
17878 LN_S=$lt_LN_S
17879
17880 # A BSD-compatible nm program.
17881 NM=$lt_NM
17882
17883 # A symbol stripping program
17884 STRIP=$lt_STRIP
17885
17886 # Used to examine libraries when file_magic_cmd begins "file"
17887 MAGIC_CMD=$MAGIC_CMD
17888
17889 # Used on cygwin: DLL creation program.
17890 DLLTOOL="$DLLTOOL"
17891
17892 # Used on cygwin: object dumper.
17893 OBJDUMP="$OBJDUMP"
17894
17895 # Used on cygwin: assembler.
17896 AS="$AS"
17897
17898 # The name of the directory that contains temporary libtool files.
17899 objdir=$objdir
17900
17901 # How to create reloadable object files.
17902 reload_flag=$lt_reload_flag
17903 reload_cmds=$lt_reload_cmds
17904
17905 # How to pass a linker flag through the compiler.
17906 wl=$lt_lt_prog_compiler_wl_F77
17907
17908 # Object file suffix (normally "o").
17909 objext="$ac_objext"
17910
17911 # Old archive suffix (normally "a").
17912 libext="$libext"
17913
17914 # Shared library suffix (normally ".so").
17915 shrext_cmds='$shrext_cmds'
17916
17917 # Executable file suffix (normally "").
17918 exeext="$exeext"
17919
17920 # Additional compiler flags for building library objects.
17921 pic_flag=$lt_lt_prog_compiler_pic_F77
17922 pic_mode=$pic_mode
17923
17924 # What is the maximum length of a command?
17925 max_cmd_len=$lt_cv_sys_max_cmd_len
17926
17927 # Does compiler simultaneously support -c and -o options?
17928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17929
17930 # Must we lock files when doing compilation?
17931 need_locks=$lt_need_locks
17932
17933 # Do we need the lib prefix for modules?
17934 need_lib_prefix=$need_lib_prefix
17935
17936 # Do we need a version for libraries?
17937 need_version=$need_version
17938
17939 # Whether dlopen is supported.
17940 dlopen_support=$enable_dlopen
17941
17942 # Whether dlopen of programs is supported.
17943 dlopen_self=$enable_dlopen_self
17944
17945 # Whether dlopen of statically linked programs is supported.
17946 dlopen_self_static=$enable_dlopen_self_static
17947
17948 # Compiler flag to prevent dynamic linking.
17949 link_static_flag=$lt_lt_prog_compiler_static_F77
17950
17951 # Compiler flag to turn off builtin functions.
17952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17953
17954 # Compiler flag to allow reflexive dlopens.
17955 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17956
17957 # Compiler flag to generate shared objects directly from archives.
17958 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17959
17960 # Compiler flag to generate thread-safe objects.
17961 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17962
17963 # Library versioning type.
17964 version_type=$version_type
17965
17966 # Format of library name prefix.
17967 libname_spec=$lt_libname_spec
17968
17969 # List of archive names.  First name is the real one, the rest are links.
17970 # The last name is the one that the linker finds with -lNAME.
17971 library_names_spec=$lt_library_names_spec
17972
17973 # The coded name of the library, if different from the real name.
17974 soname_spec=$lt_soname_spec
17975
17976 # Commands used to build and install an old-style archive.
17977 RANLIB=$lt_RANLIB
17978 old_archive_cmds=$lt_old_archive_cmds_F77
17979 old_postinstall_cmds=$lt_old_postinstall_cmds
17980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17981
17982 # Create an old-style archive from a shared archive.
17983 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17984
17985 # Create a temporary old-style archive to link instead of a shared archive.
17986 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17987
17988 # Commands used to build and install a shared archive.
17989 archive_cmds=$lt_archive_cmds_F77
17990 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17991 postinstall_cmds=$lt_postinstall_cmds
17992 postuninstall_cmds=$lt_postuninstall_cmds
17993
17994 # Commands used to build a loadable module (assumed same as above if empty)
17995 module_cmds=$lt_module_cmds_F77
17996 module_expsym_cmds=$lt_module_expsym_cmds_F77
17997
17998 # Commands to strip libraries.
17999 old_striplib=$lt_old_striplib
18000 striplib=$lt_striplib
18001
18002 # Dependencies to place before the objects being linked to create a
18003 # shared library.
18004 predep_objects=$lt_predep_objects_F77
18005
18006 # Dependencies to place after the objects being linked to create a
18007 # shared library.
18008 postdep_objects=$lt_postdep_objects_F77
18009
18010 # Dependencies to place before the objects being linked to create a
18011 # shared library.
18012 predeps=$lt_predeps_F77
18013
18014 # Dependencies to place after the objects being linked to create a
18015 # shared library.
18016 postdeps=$lt_postdeps_F77
18017
18018 # The library search path used internally by the compiler when linking
18019 # a shared library.
18020 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18021
18022 # Method to check whether dependent libraries are shared objects.
18023 deplibs_check_method=$lt_deplibs_check_method
18024
18025 # Command to use when deplibs_check_method == file_magic.
18026 file_magic_cmd=$lt_file_magic_cmd
18027
18028 # Flag that allows shared libraries with undefined symbols to be built.
18029 allow_undefined_flag=$lt_allow_undefined_flag_F77
18030
18031 # Flag that forces no undefined symbols.
18032 no_undefined_flag=$lt_no_undefined_flag_F77
18033
18034 # Commands used to finish a libtool library installation in a directory.
18035 finish_cmds=$lt_finish_cmds
18036
18037 # Same as above, but a single script fragment to be evaled but not shown.
18038 finish_eval=$lt_finish_eval
18039
18040 # Take the output of nm and produce a listing of raw symbols and C names.
18041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18042
18043 # Transform the output of nm in a proper C declaration
18044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18045
18046 # Transform the output of nm in a C name address pair
18047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18048
18049 # This is the shared library runtime path variable.
18050 runpath_var=$runpath_var
18051
18052 # This is the shared library path variable.
18053 shlibpath_var=$shlibpath_var
18054
18055 # Is shlibpath searched before the hard-coded library search path?
18056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18057
18058 # How to hardcode a shared library path into an executable.
18059 hardcode_action=$hardcode_action_F77
18060
18061 # Whether we should hardcode library paths into libraries.
18062 hardcode_into_libs=$hardcode_into_libs
18063
18064 # Flag to hardcode \$libdir into a binary during linking.
18065 # This must work even if \$libdir does not exist.
18066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18067
18068 # If ld is used when linking, flag to hardcode \$libdir into
18069 # a binary during linking. This must work even if \$libdir does
18070 # not exist.
18071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18072
18073 # Whether we need a single -rpath flag with a separated argument.
18074 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18075
18076 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18077 # resulting binary.
18078 hardcode_direct=$hardcode_direct_F77
18079
18080 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18081 # resulting binary.
18082 hardcode_minus_L=$hardcode_minus_L_F77
18083
18084 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18085 # the resulting binary.
18086 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18087
18088 # Set to yes if building a shared library automatically hardcodes DIR into the library
18089 # and all subsequent libraries and executables linked against it.
18090 hardcode_automatic=$hardcode_automatic_F77
18091
18092 # Variables whose values should be saved in libtool wrapper scripts and
18093 # restored at relink time.
18094 variables_saved_for_relink="$variables_saved_for_relink"
18095
18096 # Whether libtool must link a program against all its dependency libraries.
18097 link_all_deplibs=$link_all_deplibs_F77
18098
18099 # Compile-time system search path for libraries
18100 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18101
18102 # Run-time system search path for libraries
18103 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18104
18105 # Fix the shell variable \$srcfile for the compiler.
18106 fix_srcfile_path="$fix_srcfile_path_F77"
18107
18108 # Set to yes if exported symbols are required.
18109 always_export_symbols=$always_export_symbols_F77
18110
18111 # The commands to list exported symbols.
18112 export_symbols_cmds=$lt_export_symbols_cmds_F77
18113
18114 # The commands to extract the exported symbol list from a shared archive.
18115 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18116
18117 # Symbols that should not be listed in the preloaded symbols.
18118 exclude_expsyms=$lt_exclude_expsyms_F77
18119
18120 # Symbols that must always be exported.
18121 include_expsyms=$lt_include_expsyms_F77
18122
18123 # ### END LIBTOOL TAG CONFIG: $tagname
18124
18125 __EOF__
18126
18127
18128 else
18129   # If there is no Makefile yet, we rely on a make rule to execute
18130   # `config.status --recheck' to rerun these tests and create the
18131   # libtool script then.
18132   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18133   if test -f "$ltmain_in"; then
18134     test -f Makefile && make "$ltmain"
18135   fi
18136 fi
18137
18138
18139 ac_ext=c
18140 ac_cpp='$CPP $CPPFLAGS'
18141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18144
18145 CC="$lt_save_CC"
18146
18147         else
18148           tagname=""
18149         fi
18150         ;;
18151
18152       GCJ)
18153         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18154
18155
18156 # Source file extension for Java test sources.
18157 ac_ext=java
18158
18159 # Object file extension for compiled Java test sources.
18160 objext=o
18161 objext_GCJ=$objext
18162
18163 # Code to be used in simple compile tests
18164 lt_simple_compile_test_code="class foo {}\n"
18165
18166 # Code to be used in simple link tests
18167 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18168
18169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18170
18171 # If no C compiler was specified, use CC.
18172 LTCC=${LTCC-"$CC"}
18173
18174 # If no C compiler flags were specified, use CFLAGS.
18175 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18176
18177 # Allow CC to be a program name with arguments.
18178 compiler=$CC
18179
18180
18181 # save warnings/boilerplate of simple test code
18182 ac_outfile=conftest.$ac_objext
18183 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18184 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18185 _lt_compiler_boilerplate=`cat conftest.err`
18186 $rm conftest*
18187
18188 ac_outfile=conftest.$ac_objext
18189 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18191 _lt_linker_boilerplate=`cat conftest.err`
18192 $rm conftest*
18193
18194
18195 # Allow CC to be a program name with arguments.
18196 lt_save_CC="$CC"
18197 CC=${GCJ-"gcj"}
18198 compiler=$CC
18199 compiler_GCJ=$CC
18200 for cc_temp in $compiler""; do
18201   case $cc_temp in
18202     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18203     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18204     \-*) ;;
18205     *) break;;
18206   esac
18207 done
18208 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18209
18210
18211 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18212 archive_cmds_need_lc_GCJ=no
18213
18214 old_archive_cmds_GCJ=$old_archive_cmds
18215
18216 ## CAVEAT EMPTOR:
18217 ## There is no encapsulation within the following macros, do not change
18218 ## the running order or otherwise move them around unless you know exactly
18219 ## what you are doing...
18220
18221 lt_prog_compiler_no_builtin_flag_GCJ=
18222
18223 if test "$GCC" = yes; then
18224   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18225
18226
18227 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18228 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18229 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18230   echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232   lt_cv_prog_compiler_rtti_exceptions=no
18233   ac_outfile=conftest.$ac_objext
18234    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18235    lt_compiler_flag="-fno-rtti -fno-exceptions"
18236    # Insert the option either (1) after the last *FLAGS variable, or
18237    # (2) before a word containing "conftest.", or (3) at the end.
18238    # Note that $ac_compile itself does not contain backslashes and begins
18239    # with a dollar sign (not a hyphen), so the echo should work correctly.
18240    # The option is referenced via a variable to avoid confusing sed.
18241    lt_compile=`echo "$ac_compile" | $SED \
18242    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18244    -e 's:$: $lt_compiler_flag:'`
18245    (eval echo "\"\$as_me:18245: $lt_compile\"" >&5)
18246    (eval "$lt_compile" 2>conftest.err)
18247    ac_status=$?
18248    cat conftest.err >&5
18249    echo "$as_me:18249: \$? = $ac_status" >&5
18250    if (exit $ac_status) && test -s "$ac_outfile"; then
18251      # The compiler can only warn and ignore the option if not recognized
18252      # So say no if there are warnings other than the usual output.
18253      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18254      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18255      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18256        lt_cv_prog_compiler_rtti_exceptions=yes
18257      fi
18258    fi
18259    $rm conftest*
18260
18261 fi
18262 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18264
18265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18266     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18267 else
18268     :
18269 fi
18270
18271 fi
18272
18273 lt_prog_compiler_wl_GCJ=
18274 lt_prog_compiler_pic_GCJ=
18275 lt_prog_compiler_static_GCJ=
18276
18277 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18279
18280   if test "$GCC" = yes; then
18281     lt_prog_compiler_wl_GCJ='-Wl,'
18282     lt_prog_compiler_static_GCJ='-static'
18283
18284     case $host_os in
18285       aix*)
18286       # All AIX code is PIC.
18287       if test "$host_cpu" = ia64; then
18288         # AIX 5 now supports IA64 processor
18289         lt_prog_compiler_static_GCJ='-Bstatic'
18290       fi
18291       ;;
18292
18293     amigaos*)
18294       # FIXME: we need at least 68020 code to build shared libraries, but
18295       # adding the `-m68020' flag to GCC prevents building anything better,
18296       # like `-m68040'.
18297       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18298       ;;
18299
18300     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18301       # PIC is the default for these OSes.
18302       ;;
18303
18304     mingw* | pw32* | os2*)
18305       # This hack is so that the source file can tell whether it is being
18306       # built for inclusion in a dll (and should export symbols for example).
18307       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18308       ;;
18309
18310     darwin* | rhapsody*)
18311       # PIC is the default on this platform
18312       # Common symbols not allowed in MH_DYLIB files
18313       lt_prog_compiler_pic_GCJ='-fno-common'
18314       ;;
18315
18316     interix3*)
18317       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18318       # Instead, we relocate shared libraries at runtime.
18319       ;;
18320
18321     msdosdjgpp*)
18322       # Just because we use GCC doesn't mean we suddenly get shared libraries
18323       # on systems that don't support them.
18324       lt_prog_compiler_can_build_shared_GCJ=no
18325       enable_shared=no
18326       ;;
18327
18328     sysv4*MP*)
18329       if test -d /usr/nec; then
18330         lt_prog_compiler_pic_GCJ=-Kconform_pic
18331       fi
18332       ;;
18333
18334     hpux*)
18335       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18336       # not for PA HP-UX.
18337       case $host_cpu in
18338       hppa*64*|ia64*)
18339         # +Z the default
18340         ;;
18341       *)
18342         lt_prog_compiler_pic_GCJ='-fPIC'
18343         ;;
18344       esac
18345       ;;
18346
18347     *)
18348       lt_prog_compiler_pic_GCJ='-fPIC'
18349       ;;
18350     esac
18351   else
18352     # PORTME Check for flag to pass linker flags through the system compiler.
18353     case $host_os in
18354     aix*)
18355       lt_prog_compiler_wl_GCJ='-Wl,'
18356       if test "$host_cpu" = ia64; then
18357         # AIX 5 now supports IA64 processor
18358         lt_prog_compiler_static_GCJ='-Bstatic'
18359       else
18360         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18361       fi
18362       ;;
18363       darwin*)
18364         # PIC is the default on this platform
18365         # Common symbols not allowed in MH_DYLIB files
18366        case $cc_basename in
18367          xlc*)
18368          lt_prog_compiler_pic_GCJ='-qnocommon'
18369          lt_prog_compiler_wl_GCJ='-Wl,'
18370          ;;
18371        esac
18372        ;;
18373
18374     mingw* | pw32* | os2*)
18375       # This hack is so that the source file can tell whether it is being
18376       # built for inclusion in a dll (and should export symbols for example).
18377       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18378       ;;
18379
18380     hpux9* | hpux10* | hpux11*)
18381       lt_prog_compiler_wl_GCJ='-Wl,'
18382       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18383       # not for PA HP-UX.
18384       case $host_cpu in
18385       hppa*64*|ia64*)
18386         # +Z the default
18387         ;;
18388       *)
18389         lt_prog_compiler_pic_GCJ='+Z'
18390         ;;
18391       esac
18392       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18393       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18394       ;;
18395
18396     irix5* | irix6* | nonstopux*)
18397       lt_prog_compiler_wl_GCJ='-Wl,'
18398       # PIC (with -KPIC) is the default.
18399       lt_prog_compiler_static_GCJ='-non_shared'
18400       ;;
18401
18402     newsos6)
18403       lt_prog_compiler_pic_GCJ='-KPIC'
18404       lt_prog_compiler_static_GCJ='-Bstatic'
18405       ;;
18406
18407     linux*)
18408       case $cc_basename in
18409       icc* | ecc*)
18410         lt_prog_compiler_wl_GCJ='-Wl,'
18411         lt_prog_compiler_pic_GCJ='-KPIC'
18412         lt_prog_compiler_static_GCJ='-static'
18413         ;;
18414       pgcc* | pgf77* | pgf90* | pgf95*)
18415         # Portland Group compilers (*not* the Pentium gcc compiler,
18416         # which looks to be a dead project)
18417         lt_prog_compiler_wl_GCJ='-Wl,'
18418         lt_prog_compiler_pic_GCJ='-fpic'
18419         lt_prog_compiler_static_GCJ='-Bstatic'
18420         ;;
18421       ccc*)
18422         lt_prog_compiler_wl_GCJ='-Wl,'
18423         # All Alpha code is PIC.
18424         lt_prog_compiler_static_GCJ='-non_shared'
18425         ;;
18426       esac
18427       ;;
18428
18429     osf3* | osf4* | osf5*)
18430       lt_prog_compiler_wl_GCJ='-Wl,'
18431       # All OSF/1 code is PIC.
18432       lt_prog_compiler_static_GCJ='-non_shared'
18433       ;;
18434
18435     solaris*)
18436       lt_prog_compiler_pic_GCJ='-KPIC'
18437       lt_prog_compiler_static_GCJ='-Bstatic'
18438       case $cc_basename in
18439       f77* | f90* | f95*)
18440         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18441       *)
18442         lt_prog_compiler_wl_GCJ='-Wl,';;
18443       esac
18444       ;;
18445
18446     sunos4*)
18447       lt_prog_compiler_wl_GCJ='-Qoption ld '
18448       lt_prog_compiler_pic_GCJ='-PIC'
18449       lt_prog_compiler_static_GCJ='-Bstatic'
18450       ;;
18451
18452     sysv4 | sysv4.2uw2* | sysv4.3*)
18453       lt_prog_compiler_wl_GCJ='-Wl,'
18454       lt_prog_compiler_pic_GCJ='-KPIC'
18455       lt_prog_compiler_static_GCJ='-Bstatic'
18456       ;;
18457
18458     sysv4*MP*)
18459       if test -d /usr/nec ;then
18460         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18461         lt_prog_compiler_static_GCJ='-Bstatic'
18462       fi
18463       ;;
18464
18465     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18466       lt_prog_compiler_wl_GCJ='-Wl,'
18467       lt_prog_compiler_pic_GCJ='-KPIC'
18468       lt_prog_compiler_static_GCJ='-Bstatic'
18469       ;;
18470
18471     unicos*)
18472       lt_prog_compiler_wl_GCJ='-Wl,'
18473       lt_prog_compiler_can_build_shared_GCJ=no
18474       ;;
18475
18476     uts4*)
18477       lt_prog_compiler_pic_GCJ='-pic'
18478       lt_prog_compiler_static_GCJ='-Bstatic'
18479       ;;
18480
18481     *)
18482       lt_prog_compiler_can_build_shared_GCJ=no
18483       ;;
18484     esac
18485   fi
18486
18487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18488 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18489
18490 #
18491 # Check to make sure the PIC flag actually works.
18492 #
18493 if test -n "$lt_prog_compiler_pic_GCJ"; then
18494
18495 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18496 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18497 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18498   echo $ECHO_N "(cached) $ECHO_C" >&6
18499 else
18500   lt_prog_compiler_pic_works_GCJ=no
18501   ac_outfile=conftest.$ac_objext
18502    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18503    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18504    # Insert the option either (1) after the last *FLAGS variable, or
18505    # (2) before a word containing "conftest.", or (3) at the end.
18506    # Note that $ac_compile itself does not contain backslashes and begins
18507    # with a dollar sign (not a hyphen), so the echo should work correctly.
18508    # The option is referenced via a variable to avoid confusing sed.
18509    lt_compile=`echo "$ac_compile" | $SED \
18510    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18511    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18512    -e 's:$: $lt_compiler_flag:'`
18513    (eval echo "\"\$as_me:18513: $lt_compile\"" >&5)
18514    (eval "$lt_compile" 2>conftest.err)
18515    ac_status=$?
18516    cat conftest.err >&5
18517    echo "$as_me:18517: \$? = $ac_status" >&5
18518    if (exit $ac_status) && test -s "$ac_outfile"; then
18519      # The compiler can only warn and ignore the option if not recognized
18520      # So say no if there are warnings other than the usual output.
18521      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18522      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18523      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18524        lt_prog_compiler_pic_works_GCJ=yes
18525      fi
18526    fi
18527    $rm conftest*
18528
18529 fi
18530 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18531 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18532
18533 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18534     case $lt_prog_compiler_pic_GCJ in
18535      "" | " "*) ;;
18536      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18537      esac
18538 else
18539     lt_prog_compiler_pic_GCJ=
18540      lt_prog_compiler_can_build_shared_GCJ=no
18541 fi
18542
18543 fi
18544 case $host_os in
18545   # For platforms which do not support PIC, -DPIC is meaningless:
18546   *djgpp*)
18547     lt_prog_compiler_pic_GCJ=
18548     ;;
18549   *)
18550     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18551     ;;
18552 esac
18553
18554 #
18555 # Check to make sure the static flag actually works.
18556 #
18557 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18558 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18559 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18560 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18561   echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563   lt_prog_compiler_static_works_GCJ=no
18564    save_LDFLAGS="$LDFLAGS"
18565    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18566    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18567    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18568      # The linker can only warn and ignore the option if not recognized
18569      # So say no if there are warnings
18570      if test -s conftest.err; then
18571        # Append any errors to the config.log.
18572        cat conftest.err 1>&5
18573        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18574        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18575        if diff conftest.exp conftest.er2 >/dev/null; then
18576          lt_prog_compiler_static_works_GCJ=yes
18577        fi
18578      else
18579        lt_prog_compiler_static_works_GCJ=yes
18580      fi
18581    fi
18582    $rm conftest*
18583    LDFLAGS="$save_LDFLAGS"
18584
18585 fi
18586 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18587 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18588
18589 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18590     :
18591 else
18592     lt_prog_compiler_static_GCJ=
18593 fi
18594
18595
18596 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18597 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18598 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   lt_cv_prog_compiler_c_o_GCJ=no
18602    $rm -r conftest 2>/dev/null
18603    mkdir conftest
18604    cd conftest
18605    mkdir out
18606    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18607
18608    lt_compiler_flag="-o out/conftest2.$ac_objext"
18609    # Insert the option either (1) after the last *FLAGS variable, or
18610    # (2) before a word containing "conftest.", or (3) at the end.
18611    # Note that $ac_compile itself does not contain backslashes and begins
18612    # with a dollar sign (not a hyphen), so the echo should work correctly.
18613    lt_compile=`echo "$ac_compile" | $SED \
18614    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18616    -e 's:$: $lt_compiler_flag:'`
18617    (eval echo "\"\$as_me:18617: $lt_compile\"" >&5)
18618    (eval "$lt_compile" 2>out/conftest.err)
18619    ac_status=$?
18620    cat out/conftest.err >&5
18621    echo "$as_me:18621: \$? = $ac_status" >&5
18622    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18623    then
18624      # The compiler can only warn and ignore the option if not recognized
18625      # So say no if there are warnings
18626      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18627      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18628      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18629        lt_cv_prog_compiler_c_o_GCJ=yes
18630      fi
18631    fi
18632    chmod u+w . 2>&5
18633    $rm conftest*
18634    # SGI C++ compiler will create directory out/ii_files/ for
18635    # template instantiation
18636    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18637    $rm out/* && rmdir out
18638    cd ..
18639    rmdir conftest
18640    $rm conftest*
18641
18642 fi
18643 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18644 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18645
18646
18647 hard_links="nottested"
18648 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18649   # do not overwrite the value of need_locks provided by the user
18650   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18651 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18652   hard_links=yes
18653   $rm conftest*
18654   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18655   touch conftest.a
18656   ln conftest.a conftest.b 2>&5 || hard_links=no
18657   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18658   { echo "$as_me:$LINENO: result: $hard_links" >&5
18659 echo "${ECHO_T}$hard_links" >&6; }
18660   if test "$hard_links" = no; then
18661     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18662 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18663     need_locks=warn
18664   fi
18665 else
18666   need_locks=no
18667 fi
18668
18669 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18670 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18671
18672   runpath_var=
18673   allow_undefined_flag_GCJ=
18674   enable_shared_with_static_runtimes_GCJ=no
18675   archive_cmds_GCJ=
18676   archive_expsym_cmds_GCJ=
18677   old_archive_From_new_cmds_GCJ=
18678   old_archive_from_expsyms_cmds_GCJ=
18679   export_dynamic_flag_spec_GCJ=
18680   whole_archive_flag_spec_GCJ=
18681   thread_safe_flag_spec_GCJ=
18682   hardcode_libdir_flag_spec_GCJ=
18683   hardcode_libdir_flag_spec_ld_GCJ=
18684   hardcode_libdir_separator_GCJ=
18685   hardcode_direct_GCJ=no
18686   hardcode_minus_L_GCJ=no
18687   hardcode_shlibpath_var_GCJ=unsupported
18688   link_all_deplibs_GCJ=unknown
18689   hardcode_automatic_GCJ=no
18690   module_cmds_GCJ=
18691   module_expsym_cmds_GCJ=
18692   always_export_symbols_GCJ=no
18693   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18694   # include_expsyms should be a list of space-separated symbols to be *always*
18695   # included in the symbol list
18696   include_expsyms_GCJ=
18697   # exclude_expsyms can be an extended regexp of symbols to exclude
18698   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18699   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18700   # as well as any symbol that contains `d'.
18701   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18702   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18703   # platforms (ab)use it in PIC code, but their linkers get confused if
18704   # the symbol is explicitly referenced.  Since portable code cannot
18705   # rely on this symbol name, it's probably fine to never include it in
18706   # preloaded symbol tables.
18707   extract_expsyms_cmds=
18708   # Just being paranoid about ensuring that cc_basename is set.
18709   for cc_temp in $compiler""; do
18710   case $cc_temp in
18711     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18712     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18713     \-*) ;;
18714     *) break;;
18715   esac
18716 done
18717 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18718
18719   case $host_os in
18720   cygwin* | mingw* | pw32*)
18721     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18722     # When not using gcc, we currently assume that we are using
18723     # Microsoft Visual C++.
18724     if test "$GCC" != yes; then
18725       with_gnu_ld=no
18726     fi
18727     ;;
18728   interix*)
18729     # we just hope/assume this is gcc and not c89 (= MSVC++)
18730     with_gnu_ld=yes
18731     ;;
18732   openbsd*)
18733     with_gnu_ld=no
18734     ;;
18735   esac
18736
18737   ld_shlibs_GCJ=yes
18738   if test "$with_gnu_ld" = yes; then
18739     # If archive_cmds runs LD, not CC, wlarc should be empty
18740     wlarc='${wl}'
18741
18742     # Set some defaults for GNU ld with shared library support. These
18743     # are reset later if shared libraries are not supported. Putting them
18744     # here allows them to be overridden if necessary.
18745     runpath_var=LD_RUN_PATH
18746     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18747     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18748     # ancient GNU ld didn't support --whole-archive et. al.
18749     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18750         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18751       else
18752         whole_archive_flag_spec_GCJ=
18753     fi
18754     supports_anon_versioning=no
18755     case `$LD -v 2>/dev/null` in
18756       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18757       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18758       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18759       *\ 2.11.*) ;; # other 2.11 versions
18760       *) supports_anon_versioning=yes ;;
18761     esac
18762
18763     # See if GNU ld supports shared libraries.
18764     case $host_os in
18765     aix3* | aix4* | aix5*)
18766       # On AIX/PPC, the GNU linker is very broken
18767       if test "$host_cpu" != ia64; then
18768         ld_shlibs_GCJ=no
18769         cat <<EOF 1>&2
18770
18771 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18772 *** to be unable to reliably create shared libraries on AIX.
18773 *** Therefore, libtool is disabling shared libraries support.  If you
18774 *** really care for shared libraries, you may want to modify your PATH
18775 *** so that a non-GNU linker is found, and then restart.
18776
18777 EOF
18778       fi
18779       ;;
18780
18781     amigaos*)
18782       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)'
18783       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18784       hardcode_minus_L_GCJ=yes
18785
18786       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18787       # that the semantics of dynamic libraries on AmigaOS, at least up
18788       # to version 4, is to share data among multiple programs linked
18789       # with the same dynamic library.  Since this doesn't match the
18790       # behavior of shared libraries on other platforms, we can't use
18791       # them.
18792       ld_shlibs_GCJ=no
18793       ;;
18794
18795     beos*)
18796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18797         allow_undefined_flag_GCJ=unsupported
18798         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18799         # support --undefined.  This deserves some investigation.  FIXME
18800         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18801       else
18802         ld_shlibs_GCJ=no
18803       fi
18804       ;;
18805
18806     cygwin* | mingw* | pw32*)
18807       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18808       # as there is no search path for DLLs.
18809       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18810       allow_undefined_flag_GCJ=unsupported
18811       always_export_symbols_GCJ=no
18812       enable_shared_with_static_runtimes_GCJ=yes
18813       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18814
18815       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18816         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18817         # If the export-symbols file already is a .def file (1st line
18818         # is EXPORTS), use it as is; otherwise, prepend...
18819         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18820           cp $export_symbols $output_objdir/$soname.def;
18821         else
18822           echo EXPORTS > $output_objdir/$soname.def;
18823           cat $export_symbols >> $output_objdir/$soname.def;
18824         fi~
18825         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18826       else
18827         ld_shlibs_GCJ=no
18828       fi
18829       ;;
18830
18831     interix3*)
18832       hardcode_direct_GCJ=no
18833       hardcode_shlibpath_var_GCJ=no
18834       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18835       export_dynamic_flag_spec_GCJ='${wl}-E'
18836       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18837       # Instead, shared libraries are loaded at an image base (0x10000000 by
18838       # default) and relocated if they conflict, which is a slow very memory
18839       # consuming and fragmenting process.  To avoid this, we pick a random,
18840       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18841       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18842       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'
18843       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'
18844       ;;
18845
18846     linux*)
18847       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18848         tmp_addflag=
18849         case $cc_basename,$host_cpu in
18850         pgcc*)                          # Portland Group C compiler
18851           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'
18852           tmp_addflag=' $pic_flag'
18853           ;;
18854         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18855           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'
18856           tmp_addflag=' $pic_flag -Mnomain' ;;
18857         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18858           tmp_addflag=' -i_dynamic' ;;
18859         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18860           tmp_addflag=' -i_dynamic -nofor_main' ;;
18861         ifc* | ifort*)                  # Intel Fortran compiler
18862           tmp_addflag=' -nofor_main' ;;
18863         esac
18864         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18865
18866         if test $supports_anon_versioning = yes; then
18867           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18868   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18869   $echo "local: *; };" >> $output_objdir/$libname.ver~
18870           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18871         fi
18872       else
18873         ld_shlibs_GCJ=no
18874       fi
18875       ;;
18876
18877     netbsd*)
18878       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18879         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18880         wlarc=
18881       else
18882         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18883         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18884       fi
18885       ;;
18886
18887     solaris*)
18888       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18889         ld_shlibs_GCJ=no
18890         cat <<EOF 1>&2
18891
18892 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18893 *** create shared libraries on Solaris systems.  Therefore, libtool
18894 *** is disabling shared libraries support.  We urge you to upgrade GNU
18895 *** binutils to release 2.9.1 or newer.  Another option is to modify
18896 *** your PATH or compiler configuration so that the native linker is
18897 *** used, and then restart.
18898
18899 EOF
18900       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18901         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18902         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18903       else
18904         ld_shlibs_GCJ=no
18905       fi
18906       ;;
18907
18908     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18909       case `$LD -v 2>&1` in
18910         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18911         ld_shlibs_GCJ=no
18912         cat <<_LT_EOF 1>&2
18913
18914 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18915 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18916 *** is disabling shared libraries support.  We urge you to upgrade GNU
18917 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18918 *** your PATH or compiler configuration so that the native linker is
18919 *** used, and then restart.
18920
18921 _LT_EOF
18922         ;;
18923         *)
18924           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18925             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18926             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18927             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18928           else
18929             ld_shlibs_GCJ=no
18930           fi
18931         ;;
18932       esac
18933       ;;
18934
18935     sunos4*)
18936       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18937       wlarc=
18938       hardcode_direct_GCJ=yes
18939       hardcode_shlibpath_var_GCJ=no
18940       ;;
18941
18942     *)
18943       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18944         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18945         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18946       else
18947         ld_shlibs_GCJ=no
18948       fi
18949       ;;
18950     esac
18951
18952     if test "$ld_shlibs_GCJ" = no; then
18953       runpath_var=
18954       hardcode_libdir_flag_spec_GCJ=
18955       export_dynamic_flag_spec_GCJ=
18956       whole_archive_flag_spec_GCJ=
18957     fi
18958   else
18959     # PORTME fill in a description of your system's linker (not GNU ld)
18960     case $host_os in
18961     aix3*)
18962       allow_undefined_flag_GCJ=unsupported
18963       always_export_symbols_GCJ=yes
18964       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'
18965       # Note: this linker hardcodes the directories in LIBPATH if there
18966       # are no directories specified by -L.
18967       hardcode_minus_L_GCJ=yes
18968       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18969         # Neither direct hardcoding nor static linking is supported with a
18970         # broken collect2.
18971         hardcode_direct_GCJ=unsupported
18972       fi
18973       ;;
18974
18975     aix4* | aix5*)
18976       if test "$host_cpu" = ia64; then
18977         # On IA64, the linker does run time linking by default, so we don't
18978         # have to do anything special.
18979         aix_use_runtimelinking=no
18980         exp_sym_flag='-Bexport'
18981         no_entry_flag=""
18982       else
18983         # If we're using GNU nm, then we don't want the "-C" option.
18984         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18985         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18986           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'
18987         else
18988           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'
18989         fi
18990         aix_use_runtimelinking=no
18991
18992         # Test if we are trying to use run time linking or normal
18993         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18994         # need to do runtime linking.
18995         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18996           for ld_flag in $LDFLAGS; do
18997           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18998             aix_use_runtimelinking=yes
18999             break
19000           fi
19001           done
19002           ;;
19003         esac
19004
19005         exp_sym_flag='-bexport'
19006         no_entry_flag='-bnoentry'
19007       fi
19008
19009       # When large executables or shared objects are built, AIX ld can
19010       # have problems creating the table of contents.  If linking a library
19011       # or program results in "error TOC overflow" add -mminimal-toc to
19012       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19013       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19014
19015       archive_cmds_GCJ=''
19016       hardcode_direct_GCJ=yes
19017       hardcode_libdir_separator_GCJ=':'
19018       link_all_deplibs_GCJ=yes
19019
19020       if test "$GCC" = yes; then
19021         case $host_os in aix4.[012]|aix4.[012].*)
19022         # We only want to do this on AIX 4.2 and lower, the check
19023         # below for broken collect2 doesn't work under 4.3+
19024           collect2name=`${CC} -print-prog-name=collect2`
19025           if test -f "$collect2name" && \
19026            strings "$collect2name" | grep resolve_lib_name >/dev/null
19027           then
19028           # We have reworked collect2
19029           hardcode_direct_GCJ=yes
19030           else
19031           # We have old collect2
19032           hardcode_direct_GCJ=unsupported
19033           # It fails to find uninstalled libraries when the uninstalled
19034           # path is not listed in the libpath.  Setting hardcode_minus_L
19035           # to unsupported forces relinking
19036           hardcode_minus_L_GCJ=yes
19037           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19038           hardcode_libdir_separator_GCJ=
19039           fi
19040           ;;
19041         esac
19042         shared_flag='-shared'
19043         if test "$aix_use_runtimelinking" = yes; then
19044           shared_flag="$shared_flag "'${wl}-G'
19045         fi
19046       else
19047         # not using gcc
19048         if test "$host_cpu" = ia64; then
19049         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19050         # chokes on -Wl,-G. The following line is correct:
19051           shared_flag='-G'
19052         else
19053           if test "$aix_use_runtimelinking" = yes; then
19054             shared_flag='${wl}-G'
19055           else
19056             shared_flag='${wl}-bM:SRE'
19057           fi
19058         fi
19059       fi
19060
19061       # It seems that -bexpall does not export symbols beginning with
19062       # underscore (_), so it is better to generate a list of symbols to export.
19063       always_export_symbols_GCJ=yes
19064       if test "$aix_use_runtimelinking" = yes; then
19065         # Warning - without using the other runtime loading flags (-brtl),
19066         # -berok will link without error, but may produce a broken library.
19067         allow_undefined_flag_GCJ='-berok'
19068        # Determine the default libpath from the value encoded in an empty executable.
19069        cat >conftest.$ac_ext <<_ACEOF
19070 /* confdefs.h.  */
19071 _ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h.  */
19075
19076 int
19077 main ()
19078 {
19079
19080   ;
19081   return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (ac_try="$ac_link"
19086 case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_link") 2>conftest.er1
19092   ac_status=$?
19093   grep -v '^ *+' conftest.er1 >conftest.err
19094   rm -f conftest.er1
19095   cat conftest.err >&5
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); } && {
19098          test -z "$ac_c_werror_flag" ||
19099          test ! -s conftest.err
19100        } && test -s conftest$ac_exeext &&
19101        $as_test_x conftest$ac_exeext; then
19102
19103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19104 }'`
19105 # Check for a 64-bit object if we didn't find anything.
19106 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19107 }'`; fi
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116       conftest$ac_exeext conftest.$ac_ext
19117 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19118
19119        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19120         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"
19121        else
19122         if test "$host_cpu" = ia64; then
19123           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19124           allow_undefined_flag_GCJ="-z nodefs"
19125           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"
19126         else
19127          # Determine the default libpath from the value encoded in an empty executable.
19128          cat >conftest.$ac_ext <<_ACEOF
19129 /* confdefs.h.  */
19130 _ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h.  */
19134
19135 int
19136 main ()
19137 {
19138
19139   ;
19140   return 0;
19141 }
19142 _ACEOF
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (ac_try="$ac_link"
19145 case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150   (eval "$ac_link") 2>conftest.er1
19151   ac_status=$?
19152   grep -v '^ *+' conftest.er1 >conftest.err
19153   rm -f conftest.er1
19154   cat conftest.err >&5
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); } && {
19157          test -z "$ac_c_werror_flag" ||
19158          test ! -s conftest.err
19159        } && test -s conftest$ac_exeext &&
19160        $as_test_x conftest$ac_exeext; then
19161
19162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19163 }'`
19164 # Check for a 64-bit object if we didn't find anything.
19165 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19166 }'`; fi
19167 else
19168   echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171
19172 fi
19173
19174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19175       conftest$ac_exeext conftest.$ac_ext
19176 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19177
19178          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19179           # Warning - without using the other run time loading flags,
19180           # -berok will link without error, but may produce a broken library.
19181           no_undefined_flag_GCJ=' ${wl}-bernotok'
19182           allow_undefined_flag_GCJ=' ${wl}-berok'
19183           # Exported symbols can be pulled into shared objects from archives
19184           whole_archive_flag_spec_GCJ='$convenience'
19185           archive_cmds_need_lc_GCJ=yes
19186           # This is similar to how AIX traditionally builds its shared libraries.
19187           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'
19188         fi
19189       fi
19190       ;;
19191
19192     amigaos*)
19193       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)'
19194       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19195       hardcode_minus_L_GCJ=yes
19196       # see comment about different semantics on the GNU ld section
19197       ld_shlibs_GCJ=no
19198       ;;
19199
19200     bsdi[45]*)
19201       export_dynamic_flag_spec_GCJ=-rdynamic
19202       ;;
19203
19204     cygwin* | mingw* | pw32*)
19205       # When not using gcc, we currently assume that we are using
19206       # Microsoft Visual C++.
19207       # hardcode_libdir_flag_spec is actually meaningless, as there is
19208       # no search path for DLLs.
19209       hardcode_libdir_flag_spec_GCJ=' '
19210       allow_undefined_flag_GCJ=unsupported
19211       # Tell ltmain to make .lib files, not .a files.
19212       libext=lib
19213       # Tell ltmain to make .dll files, not .so files.
19214       shrext_cmds=".dll"
19215       # FIXME: Setting linknames here is a bad hack.
19216       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19217       # The linker will automatically build a .lib file if we build a DLL.
19218       old_archive_From_new_cmds_GCJ='true'
19219       # FIXME: Should let the user specify the lib program.
19220       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19221       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19222       enable_shared_with_static_runtimes_GCJ=yes
19223       ;;
19224
19225     darwin* | rhapsody*)
19226       case $host_os in
19227         rhapsody* | darwin1.[012])
19228          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19229          ;;
19230        *) # Darwin 1.3 on
19231          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19232            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19233          else
19234            case ${MACOSX_DEPLOYMENT_TARGET} in
19235              10.[012])
19236                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19237                ;;
19238              10.*)
19239                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19240                ;;
19241            esac
19242          fi
19243          ;;
19244       esac
19245       archive_cmds_need_lc_GCJ=no
19246       hardcode_direct_GCJ=no
19247       hardcode_automatic_GCJ=yes
19248       hardcode_shlibpath_var_GCJ=unsupported
19249       whole_archive_flag_spec_GCJ=''
19250       link_all_deplibs_GCJ=yes
19251     if test "$GCC" = yes ; then
19252         output_verbose_link_cmd='echo'
19253         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19254       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19255       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19256       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19257       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}'
19258     else
19259       case $cc_basename in
19260         xlc*)
19261          output_verbose_link_cmd='echo'
19262          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19263          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19264           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19265          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19266           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}'
19267           ;;
19268        *)
19269          ld_shlibs_GCJ=no
19270           ;;
19271       esac
19272     fi
19273       ;;
19274
19275     dgux*)
19276       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19277       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19278       hardcode_shlibpath_var_GCJ=no
19279       ;;
19280
19281     freebsd1*)
19282       ld_shlibs_GCJ=no
19283       ;;
19284
19285     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19286     # support.  Future versions do this automatically, but an explicit c++rt0.o
19287     # does not break anything, and helps significantly (at the cost of a little
19288     # extra space).
19289     freebsd2.2*)
19290       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19291       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19292       hardcode_direct_GCJ=yes
19293       hardcode_shlibpath_var_GCJ=no
19294       ;;
19295
19296     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19297     freebsd2*)
19298       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19299       hardcode_direct_GCJ=yes
19300       hardcode_minus_L_GCJ=yes
19301       hardcode_shlibpath_var_GCJ=no
19302       ;;
19303
19304     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19305     freebsd* | kfreebsd*-gnu | dragonfly*)
19306       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19307       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19308       hardcode_direct_GCJ=yes
19309       hardcode_shlibpath_var_GCJ=no
19310       ;;
19311
19312     hpux9*)
19313       if test "$GCC" = yes; then
19314         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'
19315       else
19316         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'
19317       fi
19318       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19319       hardcode_libdir_separator_GCJ=:
19320       hardcode_direct_GCJ=yes
19321
19322       # hardcode_minus_L: Not really in the search PATH,
19323       # but as the default location of the library.
19324       hardcode_minus_L_GCJ=yes
19325       export_dynamic_flag_spec_GCJ='${wl}-E'
19326       ;;
19327
19328     hpux10*)
19329       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19330         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19331       else
19332         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19333       fi
19334       if test "$with_gnu_ld" = no; then
19335         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19336         hardcode_libdir_separator_GCJ=:
19337
19338         hardcode_direct_GCJ=yes
19339         export_dynamic_flag_spec_GCJ='${wl}-E'
19340
19341         # hardcode_minus_L: Not really in the search PATH,
19342         # but as the default location of the library.
19343         hardcode_minus_L_GCJ=yes
19344       fi
19345       ;;
19346
19347     hpux11*)
19348       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19349         case $host_cpu in
19350         hppa*64*)
19351           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19352           ;;
19353         ia64*)
19354           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19355           ;;
19356         *)
19357           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19358           ;;
19359         esac
19360       else
19361         case $host_cpu in
19362         hppa*64*)
19363           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19364           ;;
19365         ia64*)
19366           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19367           ;;
19368         *)
19369           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19370           ;;
19371         esac
19372       fi
19373       if test "$with_gnu_ld" = no; then
19374         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19375         hardcode_libdir_separator_GCJ=:
19376
19377         case $host_cpu in
19378         hppa*64*|ia64*)
19379           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19380           hardcode_direct_GCJ=no
19381           hardcode_shlibpath_var_GCJ=no
19382           ;;
19383         *)
19384           hardcode_direct_GCJ=yes
19385           export_dynamic_flag_spec_GCJ='${wl}-E'
19386
19387           # hardcode_minus_L: Not really in the search PATH,
19388           # but as the default location of the library.
19389           hardcode_minus_L_GCJ=yes
19390           ;;
19391         esac
19392       fi
19393       ;;
19394
19395     irix5* | irix6* | nonstopux*)
19396       if test "$GCC" = yes; then
19397         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'
19398       else
19399         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'
19400         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19401       fi
19402       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19403       hardcode_libdir_separator_GCJ=:
19404       link_all_deplibs_GCJ=yes
19405       ;;
19406
19407     netbsd*)
19408       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19409         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19410       else
19411         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19412       fi
19413       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19414       hardcode_direct_GCJ=yes
19415       hardcode_shlibpath_var_GCJ=no
19416       ;;
19417
19418     newsos6)
19419       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19420       hardcode_direct_GCJ=yes
19421       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19422       hardcode_libdir_separator_GCJ=:
19423       hardcode_shlibpath_var_GCJ=no
19424       ;;
19425
19426     openbsd*)
19427       hardcode_direct_GCJ=yes
19428       hardcode_shlibpath_var_GCJ=no
19429       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19430         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19431         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19432         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19433         export_dynamic_flag_spec_GCJ='${wl}-E'
19434       else
19435        case $host_os in
19436          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19437            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19438            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19439            ;;
19440          *)
19441            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19442            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19443            ;;
19444        esac
19445       fi
19446       ;;
19447
19448     os2*)
19449       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19450       hardcode_minus_L_GCJ=yes
19451       allow_undefined_flag_GCJ=unsupported
19452       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'
19453       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19454       ;;
19455
19456     osf3*)
19457       if test "$GCC" = yes; then
19458         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19459         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'
19460       else
19461         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19462         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'
19463       fi
19464       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19465       hardcode_libdir_separator_GCJ=:
19466       ;;
19467
19468     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19469       if test "$GCC" = yes; then
19470         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19471         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'
19472         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19473       else
19474         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19475         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'
19476         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~
19477         $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'
19478
19479         # Both c and cxx compiler support -rpath directly
19480         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19481       fi
19482       hardcode_libdir_separator_GCJ=:
19483       ;;
19484
19485     solaris*)
19486       no_undefined_flag_GCJ=' -z text'
19487       if test "$GCC" = yes; then
19488         wlarc='${wl}'
19489         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19490         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19491           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19492       else
19493         wlarc=''
19494         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19495         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19496         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19497       fi
19498       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19499       hardcode_shlibpath_var_GCJ=no
19500       case $host_os in
19501       solaris2.[0-5] | solaris2.[0-5].*) ;;
19502       *)
19503         # The compiler driver will combine linker options so we
19504         # cannot just pass the convience library names through
19505         # without $wl, iff we do not link with $LD.
19506         # Luckily, gcc supports the same syntax we need for Sun Studio.
19507         # Supported since Solaris 2.6 (maybe 2.5.1?)
19508         case $wlarc in
19509         '')
19510           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19511         *)
19512           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19513         esac ;;
19514       esac
19515       link_all_deplibs_GCJ=yes
19516       ;;
19517
19518     sunos4*)
19519       if test "x$host_vendor" = xsequent; then
19520         # Use $CC to link under sequent, because it throws in some extra .o
19521         # files that make .init and .fini sections work.
19522         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19523       else
19524         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19525       fi
19526       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19527       hardcode_direct_GCJ=yes
19528       hardcode_minus_L_GCJ=yes
19529       hardcode_shlibpath_var_GCJ=no
19530       ;;
19531
19532     sysv4)
19533       case $host_vendor in
19534         sni)
19535           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19536           hardcode_direct_GCJ=yes # is this really true???
19537         ;;
19538         siemens)
19539           ## LD is ld it makes a PLAMLIB
19540           ## CC just makes a GrossModule.
19541           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19542           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19543           hardcode_direct_GCJ=no
19544         ;;
19545         motorola)
19546           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19547           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19548         ;;
19549       esac
19550       runpath_var='LD_RUN_PATH'
19551       hardcode_shlibpath_var_GCJ=no
19552       ;;
19553
19554     sysv4.3*)
19555       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19556       hardcode_shlibpath_var_GCJ=no
19557       export_dynamic_flag_spec_GCJ='-Bexport'
19558       ;;
19559
19560     sysv4*MP*)
19561       if test -d /usr/nec; then
19562         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19563         hardcode_shlibpath_var_GCJ=no
19564         runpath_var=LD_RUN_PATH
19565         hardcode_runpath_var=yes
19566         ld_shlibs_GCJ=yes
19567       fi
19568       ;;
19569
19570     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19571       no_undefined_flag_GCJ='${wl}-z,text'
19572       archive_cmds_need_lc_GCJ=no
19573       hardcode_shlibpath_var_GCJ=no
19574       runpath_var='LD_RUN_PATH'
19575
19576       if test "$GCC" = yes; then
19577         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19578         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19579       else
19580         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19581         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19582       fi
19583       ;;
19584
19585     sysv5* | sco3.2v5* | sco5v6*)
19586       # Note: We can NOT use -z defs as we might desire, because we do not
19587       # link with -lc, and that would cause any symbols used from libc to
19588       # always be unresolved, which means just about no library would
19589       # ever link correctly.  If we're not using GNU ld we use -z text
19590       # though, which does catch some bad symbols but isn't as heavy-handed
19591       # as -z defs.
19592       no_undefined_flag_GCJ='${wl}-z,text'
19593       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19594       archive_cmds_need_lc_GCJ=no
19595       hardcode_shlibpath_var_GCJ=no
19596       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19597       hardcode_libdir_separator_GCJ=':'
19598       link_all_deplibs_GCJ=yes
19599       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19600       runpath_var='LD_RUN_PATH'
19601
19602       if test "$GCC" = yes; then
19603         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19604         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19605       else
19606         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19607         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19608       fi
19609       ;;
19610
19611     uts4*)
19612       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19613       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19614       hardcode_shlibpath_var_GCJ=no
19615       ;;
19616
19617     *)
19618       ld_shlibs_GCJ=no
19619       ;;
19620     esac
19621   fi
19622
19623 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19624 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19625 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19626
19627 #
19628 # Do we need to explicitly link libc?
19629 #
19630 case "x$archive_cmds_need_lc_GCJ" in
19631 x|xyes)
19632   # Assume -lc should be added
19633   archive_cmds_need_lc_GCJ=yes
19634
19635   if test "$enable_shared" = yes && test "$GCC" = yes; then
19636     case $archive_cmds_GCJ in
19637     *'~'*)
19638       # FIXME: we may have to deal with multi-command sequences.
19639       ;;
19640     '$CC '*)
19641       # Test whether the compiler implicitly links with -lc since on some
19642       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19643       # to ld, don't add -lc before -lgcc.
19644       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19645 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19646       $rm conftest*
19647       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19648
19649       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650   (eval $ac_compile) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); } 2>conftest.err; then
19654         soname=conftest
19655         lib=conftest
19656         libobjs=conftest.$ac_objext
19657         deplibs=
19658         wl=$lt_prog_compiler_wl_GCJ
19659         pic_flag=$lt_prog_compiler_pic_GCJ
19660         compiler_flags=-v
19661         linker_flags=-v
19662         verstring=
19663         output_objdir=.
19664         libname=conftest
19665         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19666         allow_undefined_flag_GCJ=
19667         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19668   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }
19672         then
19673           archive_cmds_need_lc_GCJ=no
19674         else
19675           archive_cmds_need_lc_GCJ=yes
19676         fi
19677         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19678       else
19679         cat conftest.err 1>&5
19680       fi
19681       $rm conftest*
19682       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19683 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19684       ;;
19685     esac
19686   fi
19687   ;;
19688 esac
19689
19690 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19691 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19692 library_names_spec=
19693 libname_spec='lib$name'
19694 soname_spec=
19695 shrext_cmds=".so"
19696 postinstall_cmds=
19697 postuninstall_cmds=
19698 finish_cmds=
19699 finish_eval=
19700 shlibpath_var=
19701 shlibpath_overrides_runpath=unknown
19702 version_type=none
19703 dynamic_linker="$host_os ld.so"
19704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19705 if test "$GCC" = yes; then
19706   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19707   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19708     # if the path contains ";" then we assume it to be the separator
19709     # otherwise default to the standard path separator (i.e. ":") - it is
19710     # assumed that no part of a normal pathname contains ";" but that should
19711     # okay in the real world where ";" in dirpaths is itself problematic.
19712     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19713   else
19714     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19715   fi
19716 else
19717   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19718 fi
19719 need_lib_prefix=unknown
19720 hardcode_into_libs=no
19721
19722 # when you set need_version to no, make sure it does not cause -set_version
19723 # flags to be left without arguments
19724 need_version=unknown
19725
19726 case $host_os in
19727 aix3*)
19728   version_type=linux
19729   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19730   shlibpath_var=LIBPATH
19731
19732   # AIX 3 has no versioning support, so we append a major version to the name.
19733   soname_spec='${libname}${release}${shared_ext}$major'
19734   ;;
19735
19736 aix4* | aix5*)
19737   version_type=linux
19738   need_lib_prefix=no
19739   need_version=no
19740   hardcode_into_libs=yes
19741   if test "$host_cpu" = ia64; then
19742     # AIX 5 supports IA64
19743     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19744     shlibpath_var=LD_LIBRARY_PATH
19745   else
19746     # With GCC up to 2.95.x, collect2 would create an import file
19747     # for dependence libraries.  The import file would start with
19748     # the line `#! .'.  This would cause the generated library to
19749     # depend on `.', always an invalid library.  This was fixed in
19750     # development snapshots of GCC prior to 3.0.
19751     case $host_os in
19752       aix4 | aix4.[01] | aix4.[01].*)
19753       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19754            echo ' yes '
19755            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19756         :
19757       else
19758         can_build_shared=no
19759       fi
19760       ;;
19761     esac
19762     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19763     # soname into executable. Probably we can add versioning support to
19764     # collect2, so additional links can be useful in future.
19765     if test "$aix_use_runtimelinking" = yes; then
19766       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19767       # instead of lib<name>.a to let people know that these are not
19768       # typical AIX shared libraries.
19769       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19770     else
19771       # We preserve .a as extension for shared libraries through AIX4.2
19772       # and later when we are not doing run time linking.
19773       library_names_spec='${libname}${release}.a $libname.a'
19774       soname_spec='${libname}${release}${shared_ext}$major'
19775     fi
19776     shlibpath_var=LIBPATH
19777   fi
19778   ;;
19779
19780 amigaos*)
19781   library_names_spec='$libname.ixlibrary $libname.a'
19782   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19783   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'
19784   ;;
19785
19786 beos*)
19787   library_names_spec='${libname}${shared_ext}'
19788   dynamic_linker="$host_os ld.so"
19789   shlibpath_var=LIBRARY_PATH
19790   ;;
19791
19792 bsdi[45]*)
19793   version_type=linux
19794   need_version=no
19795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19796   soname_spec='${libname}${release}${shared_ext}$major'
19797   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19798   shlibpath_var=LD_LIBRARY_PATH
19799   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19800   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19801   # the default ld.so.conf also contains /usr/contrib/lib and
19802   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19803   # libtool to hard-code these into programs
19804   ;;
19805
19806 cygwin* | mingw* | pw32*)
19807   version_type=windows
19808   shrext_cmds=".dll"
19809   need_version=no
19810   need_lib_prefix=no
19811
19812   case $GCC,$host_os in
19813   yes,cygwin* | yes,mingw* | yes,pw32*)
19814     library_names_spec='$libname.dll.a'
19815     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19816     postinstall_cmds='base_file=`basename \${file}`~
19817       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19818       dldir=$destdir/`dirname \$dlpath`~
19819       test -d \$dldir || mkdir -p \$dldir~
19820       $install_prog $dir/$dlname \$dldir/$dlname~
19821       chmod a+x \$dldir/$dlname'
19822     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19823       dlpath=$dir/\$dldll~
19824        $rm \$dlpath'
19825     shlibpath_overrides_runpath=yes
19826
19827     case $host_os in
19828     cygwin*)
19829       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19830       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19831       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19832       ;;
19833     mingw*)
19834       # MinGW DLLs use traditional 'lib' prefix
19835       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19836       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19837       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19838         # It is most probably a Windows format PATH printed by
19839         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19840         # path with ; separators, and with drive letters. We can handle the
19841         # drive letters (cygwin fileutils understands them), so leave them,
19842         # especially as we might pass files found there to a mingw objdump,
19843         # which wouldn't understand a cygwinified path. Ahh.
19844         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19845       else
19846         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19847       fi
19848       ;;
19849     pw32*)
19850       # pw32 DLLs use 'pw' prefix rather than 'lib'
19851       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19852       ;;
19853     esac
19854     ;;
19855
19856   *)
19857     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19858     ;;
19859   esac
19860   dynamic_linker='Win32 ld.exe'
19861   # FIXME: first we should search . and the directory the executable is in
19862   shlibpath_var=PATH
19863   ;;
19864
19865 darwin* | rhapsody*)
19866   dynamic_linker="$host_os dyld"
19867   version_type=darwin
19868   need_lib_prefix=no
19869   need_version=no
19870   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19871   soname_spec='${libname}${release}${major}$shared_ext'
19872   shlibpath_overrides_runpath=yes
19873   shlibpath_var=DYLD_LIBRARY_PATH
19874   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19875   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19876   if test "$GCC" = yes; then
19877     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19878   else
19879     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19880   fi
19881   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19882   ;;
19883
19884 dgux*)
19885   version_type=linux
19886   need_lib_prefix=no
19887   need_version=no
19888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19889   soname_spec='${libname}${release}${shared_ext}$major'
19890   shlibpath_var=LD_LIBRARY_PATH
19891   ;;
19892
19893 freebsd1*)
19894   dynamic_linker=no
19895   ;;
19896
19897 kfreebsd*-gnu)
19898   version_type=linux
19899   need_lib_prefix=no
19900   need_version=no
19901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19902   soname_spec='${libname}${release}${shared_ext}$major'
19903   shlibpath_var=LD_LIBRARY_PATH
19904   shlibpath_overrides_runpath=no
19905   hardcode_into_libs=yes
19906   dynamic_linker='GNU ld.so'
19907   ;;
19908
19909 freebsd* | dragonfly*)
19910   # DragonFly does not have aout.  When/if they implement a new
19911   # versioning mechanism, adjust this.
19912   if test -x /usr/bin/objformat; then
19913     objformat=`/usr/bin/objformat`
19914   else
19915     case $host_os in
19916     freebsd[123]*) objformat=aout ;;
19917     *) objformat=elf ;;
19918     esac
19919   fi
19920   version_type=freebsd-$objformat
19921   case $version_type in
19922     freebsd-elf*)
19923       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19924       need_version=no
19925       need_lib_prefix=no
19926       ;;
19927     freebsd-*)
19928       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19929       need_version=yes
19930       ;;
19931   esac
19932   shlibpath_var=LD_LIBRARY_PATH
19933   case $host_os in
19934   freebsd2*)
19935     shlibpath_overrides_runpath=yes
19936     ;;
19937   freebsd3.[01]* | freebsdelf3.[01]*)
19938     shlibpath_overrides_runpath=yes
19939     hardcode_into_libs=yes
19940     ;;
19941   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19942   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19943     shlibpath_overrides_runpath=no
19944     hardcode_into_libs=yes
19945     ;;
19946   freebsd*) # from 4.6 on
19947     shlibpath_overrides_runpath=yes
19948     hardcode_into_libs=yes
19949     ;;
19950   esac
19951   ;;
19952
19953 gnu*)
19954   version_type=linux
19955   need_lib_prefix=no
19956   need_version=no
19957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19958   soname_spec='${libname}${release}${shared_ext}$major'
19959   shlibpath_var=LD_LIBRARY_PATH
19960   hardcode_into_libs=yes
19961   ;;
19962
19963 hpux9* | hpux10* | hpux11*)
19964   # Give a soname corresponding to the major version so that dld.sl refuses to
19965   # link against other versions.
19966   version_type=sunos
19967   need_lib_prefix=no
19968   need_version=no
19969   case $host_cpu in
19970   ia64*)
19971     shrext_cmds='.so'
19972     hardcode_into_libs=yes
19973     dynamic_linker="$host_os dld.so"
19974     shlibpath_var=LD_LIBRARY_PATH
19975     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19977     soname_spec='${libname}${release}${shared_ext}$major'
19978     if test "X$HPUX_IA64_MODE" = X32; then
19979       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19980     else
19981       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19982     fi
19983     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19984     ;;
19985    hppa*64*)
19986      shrext_cmds='.sl'
19987      hardcode_into_libs=yes
19988      dynamic_linker="$host_os dld.sl"
19989      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19990      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19991      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19992      soname_spec='${libname}${release}${shared_ext}$major'
19993      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19994      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19995      ;;
19996    *)
19997     shrext_cmds='.sl'
19998     dynamic_linker="$host_os dld.sl"
19999     shlibpath_var=SHLIB_PATH
20000     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20002     soname_spec='${libname}${release}${shared_ext}$major'
20003     ;;
20004   esac
20005   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20006   postinstall_cmds='chmod 555 $lib'
20007   ;;
20008
20009 interix3*)
20010   version_type=linux
20011   need_lib_prefix=no
20012   need_version=no
20013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20014   soname_spec='${libname}${release}${shared_ext}$major'
20015   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20016   shlibpath_var=LD_LIBRARY_PATH
20017   shlibpath_overrides_runpath=no
20018   hardcode_into_libs=yes
20019   ;;
20020
20021 irix5* | irix6* | nonstopux*)
20022   case $host_os in
20023     nonstopux*) version_type=nonstopux ;;
20024     *)
20025         if test "$lt_cv_prog_gnu_ld" = yes; then
20026                 version_type=linux
20027         else
20028                 version_type=irix
20029         fi ;;
20030   esac
20031   need_lib_prefix=no
20032   need_version=no
20033   soname_spec='${libname}${release}${shared_ext}$major'
20034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20035   case $host_os in
20036   irix5* | nonstopux*)
20037     libsuff= shlibsuff=
20038     ;;
20039   *)
20040     case $LD in # libtool.m4 will add one of these switches to LD
20041     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20042       libsuff= shlibsuff= libmagic=32-bit;;
20043     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20044       libsuff=32 shlibsuff=N32 libmagic=N32;;
20045     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20046       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20047     *) libsuff= shlibsuff= libmagic=never-match;;
20048     esac
20049     ;;
20050   esac
20051   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20052   shlibpath_overrides_runpath=no
20053   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20054   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20055   hardcode_into_libs=yes
20056   ;;
20057
20058 # No shared lib support for Linux oldld, aout, or coff.
20059 linux*oldld* | linux*aout* | linux*coff*)
20060   dynamic_linker=no
20061   ;;
20062
20063 # This must be Linux ELF.
20064 linux*)
20065   version_type=linux
20066   need_lib_prefix=no
20067   need_version=no
20068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20069   soname_spec='${libname}${release}${shared_ext}$major'
20070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20071   shlibpath_var=LD_LIBRARY_PATH
20072   shlibpath_overrides_runpath=no
20073   # This implies no fast_install, which is unacceptable.
20074   # Some rework will be needed to allow for fast_install
20075   # before this can be enabled.
20076   hardcode_into_libs=yes
20077
20078   # Append ld.so.conf contents to the search path
20079   if test -f /etc/ld.so.conf; then
20080     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20081     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20082   fi
20083
20084   # We used to test for /lib/ld.so.1 and disable shared libraries on
20085   # powerpc, because MkLinux only supported shared libraries with the
20086   # GNU dynamic linker.  Since this was broken with cross compilers,
20087   # most powerpc-linux boxes support dynamic linking these days and
20088   # people can always --disable-shared, the test was removed, and we
20089   # assume the GNU/Linux dynamic linker is in use.
20090   dynamic_linker='GNU/Linux ld.so'
20091   ;;
20092
20093 knetbsd*-gnu)
20094   version_type=linux
20095   need_lib_prefix=no
20096   need_version=no
20097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20098   soname_spec='${libname}${release}${shared_ext}$major'
20099   shlibpath_var=LD_LIBRARY_PATH
20100   shlibpath_overrides_runpath=no
20101   hardcode_into_libs=yes
20102   dynamic_linker='GNU ld.so'
20103   ;;
20104
20105 netbsd*)
20106   version_type=sunos
20107   need_lib_prefix=no
20108   need_version=no
20109   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20111     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20112     dynamic_linker='NetBSD (a.out) ld.so'
20113   else
20114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20115     soname_spec='${libname}${release}${shared_ext}$major'
20116     dynamic_linker='NetBSD ld.elf_so'
20117   fi
20118   shlibpath_var=LD_LIBRARY_PATH
20119   shlibpath_overrides_runpath=yes
20120   hardcode_into_libs=yes
20121   ;;
20122
20123 newsos6)
20124   version_type=linux
20125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20126   shlibpath_var=LD_LIBRARY_PATH
20127   shlibpath_overrides_runpath=yes
20128   ;;
20129
20130 nto-qnx*)
20131   version_type=linux
20132   need_lib_prefix=no
20133   need_version=no
20134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20135   soname_spec='${libname}${release}${shared_ext}$major'
20136   shlibpath_var=LD_LIBRARY_PATH
20137   shlibpath_overrides_runpath=yes
20138   ;;
20139
20140 openbsd*)
20141   version_type=sunos
20142   sys_lib_dlsearch_path_spec="/usr/lib"
20143   need_lib_prefix=no
20144   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20145   case $host_os in
20146     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20147     *)                         need_version=no  ;;
20148   esac
20149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20151   shlibpath_var=LD_LIBRARY_PATH
20152   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20153     case $host_os in
20154       openbsd2.[89] | openbsd2.[89].*)
20155         shlibpath_overrides_runpath=no
20156         ;;
20157       *)
20158         shlibpath_overrides_runpath=yes
20159         ;;
20160       esac
20161   else
20162     shlibpath_overrides_runpath=yes
20163   fi
20164   ;;
20165
20166 os2*)
20167   libname_spec='$name'
20168   shrext_cmds=".dll"
20169   need_lib_prefix=no
20170   library_names_spec='$libname${shared_ext} $libname.a'
20171   dynamic_linker='OS/2 ld.exe'
20172   shlibpath_var=LIBPATH
20173   ;;
20174
20175 osf3* | osf4* | osf5*)
20176   version_type=osf
20177   need_lib_prefix=no
20178   need_version=no
20179   soname_spec='${libname}${release}${shared_ext}$major'
20180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20181   shlibpath_var=LD_LIBRARY_PATH
20182   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20183   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20184   ;;
20185
20186 solaris*)
20187   version_type=linux
20188   need_lib_prefix=no
20189   need_version=no
20190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20191   soname_spec='${libname}${release}${shared_ext}$major'
20192   shlibpath_var=LD_LIBRARY_PATH
20193   shlibpath_overrides_runpath=yes
20194   hardcode_into_libs=yes
20195   # ldd complains unless libraries are executable
20196   postinstall_cmds='chmod +x $lib'
20197   ;;
20198
20199 sunos4*)
20200   version_type=sunos
20201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20202   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20203   shlibpath_var=LD_LIBRARY_PATH
20204   shlibpath_overrides_runpath=yes
20205   if test "$with_gnu_ld" = yes; then
20206     need_lib_prefix=no
20207   fi
20208   need_version=yes
20209   ;;
20210
20211 sysv4 | sysv4.3*)
20212   version_type=linux
20213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20214   soname_spec='${libname}${release}${shared_ext}$major'
20215   shlibpath_var=LD_LIBRARY_PATH
20216   case $host_vendor in
20217     sni)
20218       shlibpath_overrides_runpath=no
20219       need_lib_prefix=no
20220       export_dynamic_flag_spec='${wl}-Blargedynsym'
20221       runpath_var=LD_RUN_PATH
20222       ;;
20223     siemens)
20224       need_lib_prefix=no
20225       ;;
20226     motorola)
20227       need_lib_prefix=no
20228       need_version=no
20229       shlibpath_overrides_runpath=no
20230       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20231       ;;
20232   esac
20233   ;;
20234
20235 sysv4*MP*)
20236   if test -d /usr/nec ;then
20237     version_type=linux
20238     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20239     soname_spec='$libname${shared_ext}.$major'
20240     shlibpath_var=LD_LIBRARY_PATH
20241   fi
20242   ;;
20243
20244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20245   version_type=freebsd-elf
20246   need_lib_prefix=no
20247   need_version=no
20248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20249   soname_spec='${libname}${release}${shared_ext}$major'
20250   shlibpath_var=LD_LIBRARY_PATH
20251   hardcode_into_libs=yes
20252   if test "$with_gnu_ld" = yes; then
20253     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20254     shlibpath_overrides_runpath=no
20255   else
20256     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20257     shlibpath_overrides_runpath=yes
20258     case $host_os in
20259       sco3.2v5*)
20260         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20261         ;;
20262     esac
20263   fi
20264   sys_lib_dlsearch_path_spec='/usr/lib'
20265   ;;
20266
20267 uts4*)
20268   version_type=linux
20269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270   soname_spec='${libname}${release}${shared_ext}$major'
20271   shlibpath_var=LD_LIBRARY_PATH
20272   ;;
20273
20274 *)
20275   dynamic_linker=no
20276   ;;
20277 esac
20278 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20279 echo "${ECHO_T}$dynamic_linker" >&6; }
20280 test "$dynamic_linker" = no && can_build_shared=no
20281
20282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20283 if test "$GCC" = yes; then
20284   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20285 fi
20286
20287 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20288 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20289 hardcode_action_GCJ=
20290 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20291    test -n "$runpath_var_GCJ" || \
20292    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20293
20294   # We can hardcode non-existant directories.
20295   if test "$hardcode_direct_GCJ" != no &&
20296      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20297      # have to relink, otherwise we might link with an installed library
20298      # when we should be linking with a yet-to-be-installed one
20299      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20300      test "$hardcode_minus_L_GCJ" != no; then
20301     # Linking always hardcodes the temporary library directory.
20302     hardcode_action_GCJ=relink
20303   else
20304     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20305     hardcode_action_GCJ=immediate
20306   fi
20307 else
20308   # We cannot hardcode anything, or else we can only hardcode existing
20309   # directories.
20310   hardcode_action_GCJ=unsupported
20311 fi
20312 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20313 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20314
20315 if test "$hardcode_action_GCJ" = relink; then
20316   # Fast installation is not supported
20317   enable_fast_install=no
20318 elif test "$shlibpath_overrides_runpath" = yes ||
20319      test "$enable_shared" = no; then
20320   # Fast installation is not necessary
20321   enable_fast_install=needless
20322 fi
20323
20324
20325 # The else clause should only fire when bootstrapping the
20326 # libtool distribution, otherwise you forgot to ship ltmain.sh
20327 # with your package, and you will get complaints that there are
20328 # no rules to generate ltmain.sh.
20329 if test -f "$ltmain"; then
20330   # See if we are running on zsh, and set the options which allow our commands through
20331   # without removal of \ escapes.
20332   if test -n "${ZSH_VERSION+set}" ; then
20333     setopt NO_GLOB_SUBST
20334   fi
20335   # Now quote all the things that may contain metacharacters while being
20336   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20337   # variables and quote the copies for generation of the libtool script.
20338   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20339     SED SHELL STRIP \
20340     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20341     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20342     deplibs_check_method reload_flag reload_cmds need_locks \
20343     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20344     lt_cv_sys_global_symbol_to_c_name_address \
20345     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20346     old_postinstall_cmds old_postuninstall_cmds \
20347     compiler_GCJ \
20348     CC_GCJ \
20349     LD_GCJ \
20350     lt_prog_compiler_wl_GCJ \
20351     lt_prog_compiler_pic_GCJ \
20352     lt_prog_compiler_static_GCJ \
20353     lt_prog_compiler_no_builtin_flag_GCJ \
20354     export_dynamic_flag_spec_GCJ \
20355     thread_safe_flag_spec_GCJ \
20356     whole_archive_flag_spec_GCJ \
20357     enable_shared_with_static_runtimes_GCJ \
20358     old_archive_cmds_GCJ \
20359     old_archive_from_new_cmds_GCJ \
20360     predep_objects_GCJ \
20361     postdep_objects_GCJ \
20362     predeps_GCJ \
20363     postdeps_GCJ \
20364     compiler_lib_search_path_GCJ \
20365     archive_cmds_GCJ \
20366     archive_expsym_cmds_GCJ \
20367     postinstall_cmds_GCJ \
20368     postuninstall_cmds_GCJ \
20369     old_archive_from_expsyms_cmds_GCJ \
20370     allow_undefined_flag_GCJ \
20371     no_undefined_flag_GCJ \
20372     export_symbols_cmds_GCJ \
20373     hardcode_libdir_flag_spec_GCJ \
20374     hardcode_libdir_flag_spec_ld_GCJ \
20375     hardcode_libdir_separator_GCJ \
20376     hardcode_automatic_GCJ \
20377     module_cmds_GCJ \
20378     module_expsym_cmds_GCJ \
20379     lt_cv_prog_compiler_c_o_GCJ \
20380     exclude_expsyms_GCJ \
20381     include_expsyms_GCJ; do
20382
20383     case $var in
20384     old_archive_cmds_GCJ | \
20385     old_archive_from_new_cmds_GCJ | \
20386     archive_cmds_GCJ | \
20387     archive_expsym_cmds_GCJ | \
20388     module_cmds_GCJ | \
20389     module_expsym_cmds_GCJ | \
20390     old_archive_from_expsyms_cmds_GCJ | \
20391     export_symbols_cmds_GCJ | \
20392     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20393     postinstall_cmds | postuninstall_cmds | \
20394     old_postinstall_cmds | old_postuninstall_cmds | \
20395     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20396       # Double-quote double-evaled strings.
20397       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20398       ;;
20399     *)
20400       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20401       ;;
20402     esac
20403   done
20404
20405   case $lt_echo in
20406   *'\$0 --fallback-echo"')
20407     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20408     ;;
20409   esac
20410
20411 cfgfile="$ofile"
20412
20413   cat <<__EOF__ >> "$cfgfile"
20414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20415
20416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20417
20418 # Shell to use when invoking shell scripts.
20419 SHELL=$lt_SHELL
20420
20421 # Whether or not to build shared libraries.
20422 build_libtool_libs=$enable_shared
20423
20424 # Whether or not to build static libraries.
20425 build_old_libs=$enable_static
20426
20427 # Whether or not to add -lc for building shared libraries.
20428 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20429
20430 # Whether or not to disallow shared libs when runtime libs are static
20431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20432
20433 # Whether or not to optimize for fast installation.
20434 fast_install=$enable_fast_install
20435
20436 # The host system.
20437 host_alias=$host_alias
20438 host=$host
20439 host_os=$host_os
20440
20441 # The build system.
20442 build_alias=$build_alias
20443 build=$build
20444 build_os=$build_os
20445
20446 # An echo program that does not interpret backslashes.
20447 echo=$lt_echo
20448
20449 # The archiver.
20450 AR=$lt_AR
20451 AR_FLAGS=$lt_AR_FLAGS
20452
20453 # A C compiler.
20454 LTCC=$lt_LTCC
20455
20456 # LTCC compiler flags.
20457 LTCFLAGS=$lt_LTCFLAGS
20458
20459 # A language-specific compiler.
20460 CC=$lt_compiler_GCJ
20461
20462 # Is the compiler the GNU C compiler?
20463 with_gcc=$GCC_GCJ
20464
20465 # An ERE matcher.
20466 EGREP=$lt_EGREP
20467
20468 # The linker used to build libraries.
20469 LD=$lt_LD_GCJ
20470
20471 # Whether we need hard or soft links.
20472 LN_S=$lt_LN_S
20473
20474 # A BSD-compatible nm program.
20475 NM=$lt_NM
20476
20477 # A symbol stripping program
20478 STRIP=$lt_STRIP
20479
20480 # Used to examine libraries when file_magic_cmd begins "file"
20481 MAGIC_CMD=$MAGIC_CMD
20482
20483 # Used on cygwin: DLL creation program.
20484 DLLTOOL="$DLLTOOL"
20485
20486 # Used on cygwin: object dumper.
20487 OBJDUMP="$OBJDUMP"
20488
20489 # Used on cygwin: assembler.
20490 AS="$AS"
20491
20492 # The name of the directory that contains temporary libtool files.
20493 objdir=$objdir
20494
20495 # How to create reloadable object files.
20496 reload_flag=$lt_reload_flag
20497 reload_cmds=$lt_reload_cmds
20498
20499 # How to pass a linker flag through the compiler.
20500 wl=$lt_lt_prog_compiler_wl_GCJ
20501
20502 # Object file suffix (normally "o").
20503 objext="$ac_objext"
20504
20505 # Old archive suffix (normally "a").
20506 libext="$libext"
20507
20508 # Shared library suffix (normally ".so").
20509 shrext_cmds='$shrext_cmds'
20510
20511 # Executable file suffix (normally "").
20512 exeext="$exeext"
20513
20514 # Additional compiler flags for building library objects.
20515 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20516 pic_mode=$pic_mode
20517
20518 # What is the maximum length of a command?
20519 max_cmd_len=$lt_cv_sys_max_cmd_len
20520
20521 # Does compiler simultaneously support -c and -o options?
20522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20523
20524 # Must we lock files when doing compilation?
20525 need_locks=$lt_need_locks
20526
20527 # Do we need the lib prefix for modules?
20528 need_lib_prefix=$need_lib_prefix
20529
20530 # Do we need a version for libraries?
20531 need_version=$need_version
20532
20533 # Whether dlopen is supported.
20534 dlopen_support=$enable_dlopen
20535
20536 # Whether dlopen of programs is supported.
20537 dlopen_self=$enable_dlopen_self
20538
20539 # Whether dlopen of statically linked programs is supported.
20540 dlopen_self_static=$enable_dlopen_self_static
20541
20542 # Compiler flag to prevent dynamic linking.
20543 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20544
20545 # Compiler flag to turn off builtin functions.
20546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20547
20548 # Compiler flag to allow reflexive dlopens.
20549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20550
20551 # Compiler flag to generate shared objects directly from archives.
20552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20553
20554 # Compiler flag to generate thread-safe objects.
20555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20556
20557 # Library versioning type.
20558 version_type=$version_type
20559
20560 # Format of library name prefix.
20561 libname_spec=$lt_libname_spec
20562
20563 # List of archive names.  First name is the real one, the rest are links.
20564 # The last name is the one that the linker finds with -lNAME.
20565 library_names_spec=$lt_library_names_spec
20566
20567 # The coded name of the library, if different from the real name.
20568 soname_spec=$lt_soname_spec
20569
20570 # Commands used to build and install an old-style archive.
20571 RANLIB=$lt_RANLIB
20572 old_archive_cmds=$lt_old_archive_cmds_GCJ
20573 old_postinstall_cmds=$lt_old_postinstall_cmds
20574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20575
20576 # Create an old-style archive from a shared archive.
20577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20578
20579 # Create a temporary old-style archive to link instead of a shared archive.
20580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20581
20582 # Commands used to build and install a shared archive.
20583 archive_cmds=$lt_archive_cmds_GCJ
20584 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20585 postinstall_cmds=$lt_postinstall_cmds
20586 postuninstall_cmds=$lt_postuninstall_cmds
20587
20588 # Commands used to build a loadable module (assumed same as above if empty)
20589 module_cmds=$lt_module_cmds_GCJ
20590 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20591
20592 # Commands to strip libraries.
20593 old_striplib=$lt_old_striplib
20594 striplib=$lt_striplib
20595
20596 # Dependencies to place before the objects being linked to create a
20597 # shared library.
20598 predep_objects=$lt_predep_objects_GCJ
20599
20600 # Dependencies to place after the objects being linked to create a
20601 # shared library.
20602 postdep_objects=$lt_postdep_objects_GCJ
20603
20604 # Dependencies to place before the objects being linked to create a
20605 # shared library.
20606 predeps=$lt_predeps_GCJ
20607
20608 # Dependencies to place after the objects being linked to create a
20609 # shared library.
20610 postdeps=$lt_postdeps_GCJ
20611
20612 # The library search path used internally by the compiler when linking
20613 # a shared library.
20614 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20615
20616 # Method to check whether dependent libraries are shared objects.
20617 deplibs_check_method=$lt_deplibs_check_method
20618
20619 # Command to use when deplibs_check_method == file_magic.
20620 file_magic_cmd=$lt_file_magic_cmd
20621
20622 # Flag that allows shared libraries with undefined symbols to be built.
20623 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20624
20625 # Flag that forces no undefined symbols.
20626 no_undefined_flag=$lt_no_undefined_flag_GCJ
20627
20628 # Commands used to finish a libtool library installation in a directory.
20629 finish_cmds=$lt_finish_cmds
20630
20631 # Same as above, but a single script fragment to be evaled but not shown.
20632 finish_eval=$lt_finish_eval
20633
20634 # Take the output of nm and produce a listing of raw symbols and C names.
20635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20636
20637 # Transform the output of nm in a proper C declaration
20638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20639
20640 # Transform the output of nm in a C name address pair
20641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20642
20643 # This is the shared library runtime path variable.
20644 runpath_var=$runpath_var
20645
20646 # This is the shared library path variable.
20647 shlibpath_var=$shlibpath_var
20648
20649 # Is shlibpath searched before the hard-coded library search path?
20650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20651
20652 # How to hardcode a shared library path into an executable.
20653 hardcode_action=$hardcode_action_GCJ
20654
20655 # Whether we should hardcode library paths into libraries.
20656 hardcode_into_libs=$hardcode_into_libs
20657
20658 # Flag to hardcode \$libdir into a binary during linking.
20659 # This must work even if \$libdir does not exist.
20660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20661
20662 # If ld is used when linking, flag to hardcode \$libdir into
20663 # a binary during linking. This must work even if \$libdir does
20664 # not exist.
20665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20666
20667 # Whether we need a single -rpath flag with a separated argument.
20668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20669
20670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20671 # resulting binary.
20672 hardcode_direct=$hardcode_direct_GCJ
20673
20674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20675 # resulting binary.
20676 hardcode_minus_L=$hardcode_minus_L_GCJ
20677
20678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20679 # the resulting binary.
20680 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20681
20682 # Set to yes if building a shared library automatically hardcodes DIR into the library
20683 # and all subsequent libraries and executables linked against it.
20684 hardcode_automatic=$hardcode_automatic_GCJ
20685
20686 # Variables whose values should be saved in libtool wrapper scripts and
20687 # restored at relink time.
20688 variables_saved_for_relink="$variables_saved_for_relink"
20689
20690 # Whether libtool must link a program against all its dependency libraries.
20691 link_all_deplibs=$link_all_deplibs_GCJ
20692
20693 # Compile-time system search path for libraries
20694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20695
20696 # Run-time system search path for libraries
20697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20698
20699 # Fix the shell variable \$srcfile for the compiler.
20700 fix_srcfile_path="$fix_srcfile_path_GCJ"
20701
20702 # Set to yes if exported symbols are required.
20703 always_export_symbols=$always_export_symbols_GCJ
20704
20705 # The commands to list exported symbols.
20706 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20707
20708 # The commands to extract the exported symbol list from a shared archive.
20709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20710
20711 # Symbols that should not be listed in the preloaded symbols.
20712 exclude_expsyms=$lt_exclude_expsyms_GCJ
20713
20714 # Symbols that must always be exported.
20715 include_expsyms=$lt_include_expsyms_GCJ
20716
20717 # ### END LIBTOOL TAG CONFIG: $tagname
20718
20719 __EOF__
20720
20721
20722 else
20723   # If there is no Makefile yet, we rely on a make rule to execute
20724   # `config.status --recheck' to rerun these tests and create the
20725   # libtool script then.
20726   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20727   if test -f "$ltmain_in"; then
20728     test -f Makefile && make "$ltmain"
20729   fi
20730 fi
20731
20732
20733 ac_ext=c
20734 ac_cpp='$CPP $CPPFLAGS'
20735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20738
20739 CC="$lt_save_CC"
20740
20741         else
20742           tagname=""
20743         fi
20744         ;;
20745
20746       RC)
20747
20748
20749 # Source file extension for RC test sources.
20750 ac_ext=rc
20751
20752 # Object file extension for compiled RC test sources.
20753 objext=o
20754 objext_RC=$objext
20755
20756 # Code to be used in simple compile tests
20757 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20758
20759 # Code to be used in simple link tests
20760 lt_simple_link_test_code="$lt_simple_compile_test_code"
20761
20762 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20763
20764 # If no C compiler was specified, use CC.
20765 LTCC=${LTCC-"$CC"}
20766
20767 # If no C compiler flags were specified, use CFLAGS.
20768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20769
20770 # Allow CC to be a program name with arguments.
20771 compiler=$CC
20772
20773
20774 # save warnings/boilerplate of simple test code
20775 ac_outfile=conftest.$ac_objext
20776 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20778 _lt_compiler_boilerplate=`cat conftest.err`
20779 $rm conftest*
20780
20781 ac_outfile=conftest.$ac_objext
20782 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20784 _lt_linker_boilerplate=`cat conftest.err`
20785 $rm conftest*
20786
20787
20788 # Allow CC to be a program name with arguments.
20789 lt_save_CC="$CC"
20790 CC=${RC-"windres"}
20791 compiler=$CC
20792 compiler_RC=$CC
20793 for cc_temp in $compiler""; do
20794   case $cc_temp in
20795     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20796     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20797     \-*) ;;
20798     *) break;;
20799   esac
20800 done
20801 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20802
20803 lt_cv_prog_compiler_c_o_RC=yes
20804
20805 # The else clause should only fire when bootstrapping the
20806 # libtool distribution, otherwise you forgot to ship ltmain.sh
20807 # with your package, and you will get complaints that there are
20808 # no rules to generate ltmain.sh.
20809 if test -f "$ltmain"; then
20810   # See if we are running on zsh, and set the options which allow our commands through
20811   # without removal of \ escapes.
20812   if test -n "${ZSH_VERSION+set}" ; then
20813     setopt NO_GLOB_SUBST
20814   fi
20815   # Now quote all the things that may contain metacharacters while being
20816   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20817   # variables and quote the copies for generation of the libtool script.
20818   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20819     SED SHELL STRIP \
20820     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20821     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20822     deplibs_check_method reload_flag reload_cmds need_locks \
20823     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20824     lt_cv_sys_global_symbol_to_c_name_address \
20825     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20826     old_postinstall_cmds old_postuninstall_cmds \
20827     compiler_RC \
20828     CC_RC \
20829     LD_RC \
20830     lt_prog_compiler_wl_RC \
20831     lt_prog_compiler_pic_RC \
20832     lt_prog_compiler_static_RC \
20833     lt_prog_compiler_no_builtin_flag_RC \
20834     export_dynamic_flag_spec_RC \
20835     thread_safe_flag_spec_RC \
20836     whole_archive_flag_spec_RC \
20837     enable_shared_with_static_runtimes_RC \
20838     old_archive_cmds_RC \
20839     old_archive_from_new_cmds_RC \
20840     predep_objects_RC \
20841     postdep_objects_RC \
20842     predeps_RC \
20843     postdeps_RC \
20844     compiler_lib_search_path_RC \
20845     archive_cmds_RC \
20846     archive_expsym_cmds_RC \
20847     postinstall_cmds_RC \
20848     postuninstall_cmds_RC \
20849     old_archive_from_expsyms_cmds_RC \
20850     allow_undefined_flag_RC \
20851     no_undefined_flag_RC \
20852     export_symbols_cmds_RC \
20853     hardcode_libdir_flag_spec_RC \
20854     hardcode_libdir_flag_spec_ld_RC \
20855     hardcode_libdir_separator_RC \
20856     hardcode_automatic_RC \
20857     module_cmds_RC \
20858     module_expsym_cmds_RC \
20859     lt_cv_prog_compiler_c_o_RC \
20860     exclude_expsyms_RC \
20861     include_expsyms_RC; do
20862
20863     case $var in
20864     old_archive_cmds_RC | \
20865     old_archive_from_new_cmds_RC | \
20866     archive_cmds_RC | \
20867     archive_expsym_cmds_RC | \
20868     module_cmds_RC | \
20869     module_expsym_cmds_RC | \
20870     old_archive_from_expsyms_cmds_RC | \
20871     export_symbols_cmds_RC | \
20872     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20873     postinstall_cmds | postuninstall_cmds | \
20874     old_postinstall_cmds | old_postuninstall_cmds | \
20875     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20876       # Double-quote double-evaled strings.
20877       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20878       ;;
20879     *)
20880       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20881       ;;
20882     esac
20883   done
20884
20885   case $lt_echo in
20886   *'\$0 --fallback-echo"')
20887     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20888     ;;
20889   esac
20890
20891 cfgfile="$ofile"
20892
20893   cat <<__EOF__ >> "$cfgfile"
20894 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20895
20896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20897
20898 # Shell to use when invoking shell scripts.
20899 SHELL=$lt_SHELL
20900
20901 # Whether or not to build shared libraries.
20902 build_libtool_libs=$enable_shared
20903
20904 # Whether or not to build static libraries.
20905 build_old_libs=$enable_static
20906
20907 # Whether or not to add -lc for building shared libraries.
20908 build_libtool_need_lc=$archive_cmds_need_lc_RC
20909
20910 # Whether or not to disallow shared libs when runtime libs are static
20911 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20912
20913 # Whether or not to optimize for fast installation.
20914 fast_install=$enable_fast_install
20915
20916 # The host system.
20917 host_alias=$host_alias
20918 host=$host
20919 host_os=$host_os
20920
20921 # The build system.
20922 build_alias=$build_alias
20923 build=$build
20924 build_os=$build_os
20925
20926 # An echo program that does not interpret backslashes.
20927 echo=$lt_echo
20928
20929 # The archiver.
20930 AR=$lt_AR
20931 AR_FLAGS=$lt_AR_FLAGS
20932
20933 # A C compiler.
20934 LTCC=$lt_LTCC
20935
20936 # LTCC compiler flags.
20937 LTCFLAGS=$lt_LTCFLAGS
20938
20939 # A language-specific compiler.
20940 CC=$lt_compiler_RC
20941
20942 # Is the compiler the GNU C compiler?
20943 with_gcc=$GCC_RC
20944
20945 # An ERE matcher.
20946 EGREP=$lt_EGREP
20947
20948 # The linker used to build libraries.
20949 LD=$lt_LD_RC
20950
20951 # Whether we need hard or soft links.
20952 LN_S=$lt_LN_S
20953
20954 # A BSD-compatible nm program.
20955 NM=$lt_NM
20956
20957 # A symbol stripping program
20958 STRIP=$lt_STRIP
20959
20960 # Used to examine libraries when file_magic_cmd begins "file"
20961 MAGIC_CMD=$MAGIC_CMD
20962
20963 # Used on cygwin: DLL creation program.
20964 DLLTOOL="$DLLTOOL"
20965
20966 # Used on cygwin: object dumper.
20967 OBJDUMP="$OBJDUMP"
20968
20969 # Used on cygwin: assembler.
20970 AS="$AS"
20971
20972 # The name of the directory that contains temporary libtool files.
20973 objdir=$objdir
20974
20975 # How to create reloadable object files.
20976 reload_flag=$lt_reload_flag
20977 reload_cmds=$lt_reload_cmds
20978
20979 # How to pass a linker flag through the compiler.
20980 wl=$lt_lt_prog_compiler_wl_RC
20981
20982 # Object file suffix (normally "o").
20983 objext="$ac_objext"
20984
20985 # Old archive suffix (normally "a").
20986 libext="$libext"
20987
20988 # Shared library suffix (normally ".so").
20989 shrext_cmds='$shrext_cmds'
20990
20991 # Executable file suffix (normally "").
20992 exeext="$exeext"
20993
20994 # Additional compiler flags for building library objects.
20995 pic_flag=$lt_lt_prog_compiler_pic_RC
20996 pic_mode=$pic_mode
20997
20998 # What is the maximum length of a command?
20999 max_cmd_len=$lt_cv_sys_max_cmd_len
21000
21001 # Does compiler simultaneously support -c and -o options?
21002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21003
21004 # Must we lock files when doing compilation?
21005 need_locks=$lt_need_locks
21006
21007 # Do we need the lib prefix for modules?
21008 need_lib_prefix=$need_lib_prefix
21009
21010 # Do we need a version for libraries?
21011 need_version=$need_version
21012
21013 # Whether dlopen is supported.
21014 dlopen_support=$enable_dlopen
21015
21016 # Whether dlopen of programs is supported.
21017 dlopen_self=$enable_dlopen_self
21018
21019 # Whether dlopen of statically linked programs is supported.
21020 dlopen_self_static=$enable_dlopen_self_static
21021
21022 # Compiler flag to prevent dynamic linking.
21023 link_static_flag=$lt_lt_prog_compiler_static_RC
21024
21025 # Compiler flag to turn off builtin functions.
21026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21027
21028 # Compiler flag to allow reflexive dlopens.
21029 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21030
21031 # Compiler flag to generate shared objects directly from archives.
21032 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21033
21034 # Compiler flag to generate thread-safe objects.
21035 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21036
21037 # Library versioning type.
21038 version_type=$version_type
21039
21040 # Format of library name prefix.
21041 libname_spec=$lt_libname_spec
21042
21043 # List of archive names.  First name is the real one, the rest are links.
21044 # The last name is the one that the linker finds with -lNAME.
21045 library_names_spec=$lt_library_names_spec
21046
21047 # The coded name of the library, if different from the real name.
21048 soname_spec=$lt_soname_spec
21049
21050 # Commands used to build and install an old-style archive.
21051 RANLIB=$lt_RANLIB
21052 old_archive_cmds=$lt_old_archive_cmds_RC
21053 old_postinstall_cmds=$lt_old_postinstall_cmds
21054 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21055
21056 # Create an old-style archive from a shared archive.
21057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21058
21059 # Create a temporary old-style archive to link instead of a shared archive.
21060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21061
21062 # Commands used to build and install a shared archive.
21063 archive_cmds=$lt_archive_cmds_RC
21064 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21065 postinstall_cmds=$lt_postinstall_cmds
21066 postuninstall_cmds=$lt_postuninstall_cmds
21067
21068 # Commands used to build a loadable module (assumed same as above if empty)
21069 module_cmds=$lt_module_cmds_RC
21070 module_expsym_cmds=$lt_module_expsym_cmds_RC
21071
21072 # Commands to strip libraries.
21073 old_striplib=$lt_old_striplib
21074 striplib=$lt_striplib
21075
21076 # Dependencies to place before the objects being linked to create a
21077 # shared library.
21078 predep_objects=$lt_predep_objects_RC
21079
21080 # Dependencies to place after the objects being linked to create a
21081 # shared library.
21082 postdep_objects=$lt_postdep_objects_RC
21083
21084 # Dependencies to place before the objects being linked to create a
21085 # shared library.
21086 predeps=$lt_predeps_RC
21087
21088 # Dependencies to place after the objects being linked to create a
21089 # shared library.
21090 postdeps=$lt_postdeps_RC
21091
21092 # The library search path used internally by the compiler when linking
21093 # a shared library.
21094 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21095
21096 # Method to check whether dependent libraries are shared objects.
21097 deplibs_check_method=$lt_deplibs_check_method
21098
21099 # Command to use when deplibs_check_method == file_magic.
21100 file_magic_cmd=$lt_file_magic_cmd
21101
21102 # Flag that allows shared libraries with undefined symbols to be built.
21103 allow_undefined_flag=$lt_allow_undefined_flag_RC
21104
21105 # Flag that forces no undefined symbols.
21106 no_undefined_flag=$lt_no_undefined_flag_RC
21107
21108 # Commands used to finish a libtool library installation in a directory.
21109 finish_cmds=$lt_finish_cmds
21110
21111 # Same as above, but a single script fragment to be evaled but not shown.
21112 finish_eval=$lt_finish_eval
21113
21114 # Take the output of nm and produce a listing of raw symbols and C names.
21115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21116
21117 # Transform the output of nm in a proper C declaration
21118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21119
21120 # Transform the output of nm in a C name address pair
21121 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21122
21123 # This is the shared library runtime path variable.
21124 runpath_var=$runpath_var
21125
21126 # This is the shared library path variable.
21127 shlibpath_var=$shlibpath_var
21128
21129 # Is shlibpath searched before the hard-coded library search path?
21130 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21131
21132 # How to hardcode a shared library path into an executable.
21133 hardcode_action=$hardcode_action_RC
21134
21135 # Whether we should hardcode library paths into libraries.
21136 hardcode_into_libs=$hardcode_into_libs
21137
21138 # Flag to hardcode \$libdir into a binary during linking.
21139 # This must work even if \$libdir does not exist.
21140 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21141
21142 # If ld is used when linking, flag to hardcode \$libdir into
21143 # a binary during linking. This must work even if \$libdir does
21144 # not exist.
21145 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21146
21147 # Whether we need a single -rpath flag with a separated argument.
21148 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21149
21150 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21151 # resulting binary.
21152 hardcode_direct=$hardcode_direct_RC
21153
21154 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21155 # resulting binary.
21156 hardcode_minus_L=$hardcode_minus_L_RC
21157
21158 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21159 # the resulting binary.
21160 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21161
21162 # Set to yes if building a shared library automatically hardcodes DIR into the library
21163 # and all subsequent libraries and executables linked against it.
21164 hardcode_automatic=$hardcode_automatic_RC
21165
21166 # Variables whose values should be saved in libtool wrapper scripts and
21167 # restored at relink time.
21168 variables_saved_for_relink="$variables_saved_for_relink"
21169
21170 # Whether libtool must link a program against all its dependency libraries.
21171 link_all_deplibs=$link_all_deplibs_RC
21172
21173 # Compile-time system search path for libraries
21174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21175
21176 # Run-time system search path for libraries
21177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21178
21179 # Fix the shell variable \$srcfile for the compiler.
21180 fix_srcfile_path="$fix_srcfile_path_RC"
21181
21182 # Set to yes if exported symbols are required.
21183 always_export_symbols=$always_export_symbols_RC
21184
21185 # The commands to list exported symbols.
21186 export_symbols_cmds=$lt_export_symbols_cmds_RC
21187
21188 # The commands to extract the exported symbol list from a shared archive.
21189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21190
21191 # Symbols that should not be listed in the preloaded symbols.
21192 exclude_expsyms=$lt_exclude_expsyms_RC
21193
21194 # Symbols that must always be exported.
21195 include_expsyms=$lt_include_expsyms_RC
21196
21197 # ### END LIBTOOL TAG CONFIG: $tagname
21198
21199 __EOF__
21200
21201
21202 else
21203   # If there is no Makefile yet, we rely on a make rule to execute
21204   # `config.status --recheck' to rerun these tests and create the
21205   # libtool script then.
21206   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21207   if test -f "$ltmain_in"; then
21208     test -f Makefile && make "$ltmain"
21209   fi
21210 fi
21211
21212
21213 ac_ext=c
21214 ac_cpp='$CPP $CPPFLAGS'
21215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21218
21219 CC="$lt_save_CC"
21220
21221         ;;
21222
21223       *)
21224         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21225 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21226    { (exit 1); exit 1; }; }
21227         ;;
21228       esac
21229
21230       # Append the new tag name to the list of available tags.
21231       if test -n "$tagname" ; then
21232       available_tags="$available_tags $tagname"
21233     fi
21234     fi
21235   done
21236   IFS="$lt_save_ifs"
21237
21238   # Now substitute the updated list of available tags.
21239   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21240     mv "${ofile}T" "$ofile"
21241     chmod +x "$ofile"
21242   else
21243     rm -f "${ofile}T"
21244     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21245 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21246    { (exit 1); exit 1; }; }
21247   fi
21248 fi
21249
21250
21251
21252 # This can be used to rebuild libtool when needed
21253 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21254
21255 # Always use our own libtool.
21256 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21257
21258 # Prevent multiple expansion
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280 #
21281 # Check for AViiON Machines running DGUX
21282 # FIXME: Should this be moved down to below the gc-debug processing?
21283 #
21284 ac_is_dgux=no
21285 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21286   { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21287 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
21288 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21289   echo $ECHO_N "(cached) $ECHO_C" >&6
21290 fi
21291 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21292 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
21293 else
21294   # Is the header compilable?
21295 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
21296 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
21297 cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303 $ac_includes_default
21304 #include <sys/dg_sys_info.h>
21305 _ACEOF
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_compile") 2>conftest.er1
21314   ac_status=$?
21315   grep -v '^ *+' conftest.er1 >conftest.err
21316   rm -f conftest.er1
21317   cat conftest.err >&5
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } && {
21320          test -z "$ac_c_werror_flag" ||
21321          test ! -s conftest.err
21322        } && test -s conftest.$ac_objext; then
21323   ac_header_compiler=yes
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328         ac_header_compiler=no
21329 fi
21330
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21333 echo "${ECHO_T}$ac_header_compiler" >&6; }
21334
21335 # Is the header present?
21336 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
21337 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 #include <sys/dg_sys_info.h>
21345 _ACEOF
21346 if { (ac_try="$ac_cpp conftest.$ac_ext"
21347 case "(($ac_try" in
21348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349   *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21353   ac_status=$?
21354   grep -v '^ *+' conftest.er1 >conftest.err
21355   rm -f conftest.er1
21356   cat conftest.err >&5
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); } >/dev/null && {
21359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21360          test ! -s conftest.err
21361        }; then
21362   ac_header_preproc=yes
21363 else
21364   echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21366
21367   ac_header_preproc=no
21368 fi
21369
21370 rm -f conftest.err conftest.$ac_ext
21371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21372 echo "${ECHO_T}$ac_header_preproc" >&6; }
21373
21374 # So?  What about this header?
21375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21376   yes:no: )
21377     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
21378 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21379     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
21380 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
21381     ac_header_preproc=yes
21382     ;;
21383   no:yes:* )
21384     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
21385 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
21386     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
21387 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
21388     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
21389 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
21390     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
21391 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21392     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
21393 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
21394     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
21395 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
21396     ( cat <<\_ASBOX
21397 ## -------------------------------- ##
21398 ## Report this to Hans.Boehm@hp.com ##
21399 ## -------------------------------- ##
21400 _ASBOX
21401      ) | sed "s/^/$as_me: WARNING:     /" >&2
21402     ;;
21403 esac
21404 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21405 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
21406 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21407   echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
21410 fi
21411 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21412 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
21413
21414 fi
21415 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
21416   ac_is_dgux=yes;
21417 fi
21418
21419
21420
21421     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
21422 if test $ac_is_dgux = yes; then
21423     if test "$enable_gc_debug" = "yes"; then
21424       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21425       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21426     else
21427       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21428       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21429     fi
21430
21431
21432 fi
21433
21434
21435 # Check whether --with-target-subdir was given.
21436 if test "${with_target_subdir+set}" = set; then
21437   withval=$with_target_subdir;
21438 fi
21439
21440
21441 # Check whether --with-cross-host was given.
21442 if test "${with_cross_host+set}" = set; then
21443   withval=$with_cross_host;
21444 fi
21445
21446
21447 # automake wants to see AC_EXEEXT.  But we don't need it.  And having
21448 # it is actually a problem, because the compiler we're passed can't
21449 # necessarily do a full link.  So we fool automake here.
21450 if false; then
21451   # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
21452   # to nothing, so nothing would remain between `then' and `fi' if it
21453   # were not for the `:' below.
21454   :
21455
21456 fi
21457
21458 { echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
21459 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6; }
21460 case "$host" in
21461  *aix*)
21462     if test "$GCC" = yes; then
21463        { echo "$as_me:$LINENO: result: yes" >&5
21464 echo "${ECHO_T}yes" >&6; }
21465        new_CFLAGS=
21466        for i in $CFLAGS; do
21467           case "$i" in
21468            -O*)
21469               ;;
21470            *)
21471               new_CFLAGS="$new_CFLAGS $i"
21472               ;;
21473           esac
21474        done
21475        CFLAGS="$new_CFLAGS"
21476     else
21477        { echo "$as_me:$LINENO: result: no" >&5
21478 echo "${ECHO_T}no" >&6; }
21479     fi
21480     ;;
21481  *) { echo "$as_me:$LINENO: result: no" >&5
21482 echo "${ECHO_T}no" >&6; } ;;
21483 esac
21484
21485 cat >>confdefs.h <<\_ACEOF
21486 #define NO_EXECUTE_PERMISSION 1
21487 _ACEOF
21488
21489 cat >>confdefs.h <<\_ACEOF
21490 #define ALL_INTERIOR_POINTERS 1
21491 _ACEOF
21492
21493
21494
21495 # Check whether --enable-gcj-support was given.
21496 if test "${enable_gcj_support+set}" = set; then
21497   enableval=$enable_gcj_support;
21498 fi
21499
21500
21501
21502 if test x"$enable_gcj_support" != xno; then
21503   ENABLE_GCJ_SUPPORT_TRUE=
21504   ENABLE_GCJ_SUPPORT_FALSE='#'
21505 else
21506   ENABLE_GCJ_SUPPORT_TRUE='#'
21507   ENABLE_GCJ_SUPPORT_FALSE=
21508 fi
21509
21510 if test x"$enable_gcj_support" != xno; then
21511
21512 cat >>confdefs.h <<\_ACEOF
21513 #define GC_GCJ_SUPPORT 1
21514 _ACEOF
21515
21516 fi
21517
21518
21519 UNWINDLIBS=
21520 # Check whether --enable-gc-debug was given.
21521 if test "${enable_gc_debug+set}" = set; then
21522   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
21523     { echo "$as_me:$LINENO: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
21524 echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
21525     cat >>confdefs.h <<\_ACEOF
21526 #define KEEP_BACK_PTRS 1
21527 _ACEOF
21528
21529     cat >>confdefs.h <<\_ACEOF
21530 #define DBG_HDRS_ALL 1
21531 _ACEOF
21532
21533     case $host in
21534       ia64-*-linux* )
21535         cat >>confdefs.h <<\_ACEOF
21536 #define MAKE_BACK_GRAPH 1
21537 _ACEOF
21538
21539         cat >>confdefs.h <<\_ACEOF
21540 #define SAVE_CALL_COUNT 8
21541 _ACEOF
21542
21543         { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
21544 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
21545 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
21546   echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548   ac_check_lib_save_LIBS=$LIBS
21549 LIBS="-lunwind  $LIBS"
21550 cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h.  */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h.  */
21556
21557 /* Override any GCC internal prototype to avoid an error.
21558    Use char because int might match the return type of a GCC
21559    builtin and then its argument prototype would still apply.  */
21560 #ifdef __cplusplus
21561 extern "C"
21562 #endif
21563 char backtrace ();
21564 int
21565 main ()
21566 {
21567 return backtrace ();
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579   (eval "$ac_link") 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } && {
21586          test -z "$ac_c_werror_flag" ||
21587          test ! -s conftest.err
21588        } && test -s conftest$ac_exeext &&
21589        $as_test_x conftest$ac_exeext; then
21590   ac_cv_lib_unwind_backtrace=yes
21591 else
21592   echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21594
21595         ac_cv_lib_unwind_backtrace=no
21596 fi
21597
21598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21599       conftest$ac_exeext conftest.$ac_ext
21600 LIBS=$ac_check_lib_save_LIBS
21601 fi
21602 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
21603 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
21604 if test $ac_cv_lib_unwind_backtrace = yes; then
21605
21606           cat >>confdefs.h <<\_ACEOF
21607 #define GC_HAVE_BUILTIN_BACKTRACE 1
21608 _ACEOF
21609
21610           UNWINDLIBS=-lunwind
21611           { echo "$as_me:$LINENO: WARNING: \"Client code may need to link against libunwind.\"" >&5
21612 echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
21613
21614 fi
21615
21616       ;;
21617       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
21618         cat >>confdefs.h <<\_ACEOF
21619 #define MAKE_BACK_GRAPH 1
21620 _ACEOF
21621
21622         { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
21623 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
21624         cat >>confdefs.h <<\_ACEOF
21625 #define SAVE_CALL_COUNT 8
21626 _ACEOF
21627
21628       ;;
21629       i345686-*-dgux*)
21630         cat >>confdefs.h <<\_ACEOF
21631 #define MAKE_BACK_GRAPH 1
21632 _ACEOF
21633
21634       ;;
21635     esac
21636   fi
21637 fi
21638
21639
21640 # Check whether --enable-java-finalization was given.
21641 if test "${enable_java_finalization+set}" = set; then
21642   enableval=$enable_java_finalization;
21643 fi
21644
21645 if test x"$enable_java_finalization" != xno; then
21646     cat >>confdefs.h <<\_ACEOF
21647 #define JAVA_FINALIZATION 1
21648 _ACEOF
21649
21650 fi
21651
21652 # Check whether --enable-atomic-uncollectable was given.
21653 if test "${enable_atomic_uncollectable+set}" = set; then
21654   enableval=$enable_atomic_uncollectable;
21655 fi
21656
21657 if test x"$enable_atomic_uncollectible" != x"no"; then
21658
21659 cat >>confdefs.h <<\_ACEOF
21660 #define ATOMIC_UNCOLLECTABLE 1
21661 _ACEOF
21662
21663 fi
21664
21665 # Check whether --enable-redirect-malloc was given.
21666 if test "${enable_redirect_malloc+set}" = set; then
21667   enableval=$enable_redirect_malloc;
21668 fi
21669
21670
21671 if test "${enable_redirect_malloc}" = yes; then
21672     if test "${enable_gc_debug}" = yes; then
21673         cat >>confdefs.h <<\_ACEOF
21674 #define REDIRECT_MALLOC GC_debug_malloc_replacement
21675 _ACEOF
21676
21677         cat >>confdefs.h <<\_ACEOF
21678 #define REDIRECT_REALLOC GC_debug_realloc_replacement
21679 _ACEOF
21680
21681         cat >>confdefs.h <<\_ACEOF
21682 #define REDIRECT_FREE GC_debug_free
21683 _ACEOF
21684
21685     else
21686         cat >>confdefs.h <<\_ACEOF
21687 #define REDIRECT_MALLOC GC_malloc
21688 _ACEOF
21689
21690     fi
21691     cat >>confdefs.h <<\_ACEOF
21692 #define GC_USE_DLOPEN_WRAP 1
21693 _ACEOF
21694
21695 fi
21696
21697 # Check whether --enable-large-config was given.
21698 if test "${enable_large_config+set}" = set; then
21699   enableval=$enable_large_config;
21700 fi
21701
21702
21703 if test "${enable_large_config}" = yes; then
21704
21705 cat >>confdefs.h <<\_ACEOF
21706 #define LARGE_CONFIG 1
21707 _ACEOF
21708
21709 fi
21710
21711 if test -n "${with_cross_host}"; then
21712    cat >>confdefs.h <<\_ACEOF
21713 #define NO_CLOCK 1
21714 _ACEOF
21715
21716    cat >>confdefs.h <<\_ACEOF
21717 #define SMALL_CONFIG 1
21718 _ACEOF
21719
21720    cat >>confdefs.h <<\_ACEOF
21721 #define NO_DEBUGGING 1
21722 _ACEOF
21723
21724 fi
21725
21726
21727
21728
21729 # Check whether --enable-gc-assertions was given.
21730 if test "${enable_gc_assertions+set}" = set; then
21731   enableval=$enable_gc_assertions;
21732 fi
21733
21734 if test "${enable_gc_assertions}" = yes; then
21735     cat >>confdefs.h <<\_ACEOF
21736 #define GC_ASSERTIONS 1
21737 _ACEOF
21738
21739 fi
21740
21741 # Check whether --enable-munmap was given.
21742 if test "${enable_munmap+set}" = set; then
21743   enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
21744    case "$MMAP" in
21745       no)
21746         { { echo "$as_me:$LINENO: error: --enable-munmap requires --enable-mmap" >&5
21747 echo "$as_me: error: --enable-munmap requires --enable-mmap" >&2;}
21748    { (exit 1); exit 1; }; }
21749         ;;
21750     esac
21751
21752 fi
21753
21754 if test "${enable_munmap}" != ""; then
21755     cat >>confdefs.h <<\_ACEOF
21756 #define USE_MMAP 1
21757 _ACEOF
21758
21759     cat >>confdefs.h <<\_ACEOF
21760 #define USE_MUNMAP 1
21761 _ACEOF
21762
21763     if test "${MUNMAP_THRESHOLD}" = "yes"; then
21764       MUNMAP_THRESHOLD=6
21765     fi
21766     cat >>confdefs.h <<_ACEOF
21767 #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
21768 _ACEOF
21769
21770 fi
21771
21772
21773
21774 if test -z "$with_cross_host"; then
21775   USE_LIBDIR_TRUE=
21776   USE_LIBDIR_FALSE='#'
21777 else
21778   USE_LIBDIR_TRUE='#'
21779   USE_LIBDIR_FALSE=
21780 fi
21781
21782
21783
21784
21785 atomic_ops_libs=-latomic_ops
21786 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21787   { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21788 echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21789 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21790   echo $ECHO_N "(cached) $ECHO_C" >&6
21791 fi
21792 { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21793 echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21794 else
21795   # Is the header compilable?
21796 { echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
21797 echo $ECHO_N "checking atomic_ops.h usability... $ECHO_C" >&6; }
21798 cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804 $ac_includes_default
21805 #include <atomic_ops.h>
21806 _ACEOF
21807 rm -f conftest.$ac_objext
21808 if { (ac_try="$ac_compile"
21809 case "(($ac_try" in
21810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811   *) ac_try_echo=$ac_try;;
21812 esac
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814   (eval "$ac_compile") 2>conftest.er1
21815   ac_status=$?
21816   grep -v '^ *+' conftest.er1 >conftest.err
21817   rm -f conftest.er1
21818   cat conftest.err >&5
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } && {
21821          test -z "$ac_c_werror_flag" ||
21822          test ! -s conftest.err
21823        } && test -s conftest.$ac_objext; then
21824   ac_header_compiler=yes
21825 else
21826   echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21828
21829         ac_header_compiler=no
21830 fi
21831
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21834 echo "${ECHO_T}$ac_header_compiler" >&6; }
21835
21836 # Is the header present?
21837 { echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
21838 echo $ECHO_N "checking atomic_ops.h presence... $ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 #include <atomic_ops.h>
21846 _ACEOF
21847 if { (ac_try="$ac_cpp conftest.$ac_ext"
21848 case "(($ac_try" in
21849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850   *) ac_try_echo=$ac_try;;
21851 esac
21852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21854   ac_status=$?
21855   grep -v '^ *+' conftest.er1 >conftest.err
21856   rm -f conftest.er1
21857   cat conftest.err >&5
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); } >/dev/null && {
21860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21861          test ! -s conftest.err
21862        }; then
21863   ac_header_preproc=yes
21864 else
21865   echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21867
21868   ac_header_preproc=no
21869 fi
21870
21871 rm -f conftest.err conftest.$ac_ext
21872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21873 echo "${ECHO_T}$ac_header_preproc" >&6; }
21874
21875 # So?  What about this header?
21876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21877   yes:no: )
21878     { echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
21879 echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21880     { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
21881 echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
21882     ac_header_preproc=yes
21883     ;;
21884   no:yes:* )
21885     { echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
21886 echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
21887     { echo "$as_me:$LINENO: WARNING: atomic_ops.h:     check for missing prerequisite headers?" >&5
21888 echo "$as_me: WARNING: atomic_ops.h:     check for missing prerequisite headers?" >&2;}
21889     { echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
21890 echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
21891     { echo "$as_me:$LINENO: WARNING: atomic_ops.h:     section \"Present But Cannot Be Compiled\"" >&5
21892 echo "$as_me: WARNING: atomic_ops.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21893     { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
21894 echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
21895     { echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
21896 echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
21897     ( cat <<\_ASBOX
21898 ## -------------------------------- ##
21899 ## Report this to Hans.Boehm@hp.com ##
21900 ## -------------------------------- ##
21901 _ASBOX
21902      ) | sed "s/^/$as_me: WARNING:     /" >&2
21903     ;;
21904 esac
21905 { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21906 echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21907 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21908   echo $ECHO_N "(cached) $ECHO_C" >&6
21909 else
21910   ac_cv_header_atomic_ops_h=$ac_header_preproc
21911 fi
21912 { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21913 echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21914
21915 fi
21916 if test $ac_cv_header_atomic_ops_h = yes; then
21917    { echo "$as_me:$LINENO: Using pre-installed libatomic_ops" >&5
21918 echo "$as_me: Using pre-installed libatomic_ops" >&6;}
21919 else
21920    ao_dir=
21921     for candidate in ${srcdir}/libatomic_ops*; do
21922         case $candidate in
21923             *.tar.gz)
21924                 ;;
21925             *install)
21926                                 ;;
21927             *)
21928                 if test -e "$candidate"; then
21929                     ao_dir="$candidate"
21930                 fi
21931                 ;;
21932         esac
21933     done
21934     if test -z "$ao_dir"; then
21935         { { echo "$as_me:$LINENO: error: Missig libatomic_ops." >&5
21936 echo "$as_me: error: Missig libatomic_ops." >&2;}
21937    { (exit 1); exit 1; }; }
21938     fi
21939     ao_version="${ao_dir#*libatomic_ops-}"
21940     { echo "$as_me:$LINENO: Using internal version of libatomic_ops" >&5
21941 echo "$as_me: Using internal version of libatomic_ops" >&6;}
21942
21943         test -e libatomic_ops \
21944         || ln -s ${ao_dir} libatomic_ops
21945     subdirs="$subdirs libatomic_ops"
21946
21947
21948         test -e atomic_ops.c \
21949         || ln -s libatomic_ops/src/atomic_ops.c \
21950                  atomic_ops.c
21951
21952     test -e atomic_ops_sysdeps.S \
21953         || ln -s libatomic_ops/src/atomic_ops_sysdeps.S \
21954                  atomic_ops_sysdeps.S
21955
21956             GC_CFLAGS="${GC_CFLAGS} -I libatomic_ops/src"
21957     maybe_libatomic_ops="libatomic_ops"
21958
21959 fi
21960
21961
21962
21963
21964
21965 if test -n "$maybe_libatomic_ops" -a "$THREADS" != "none"; then
21966   USE_INTERNAL_LIBATOMIC_OPS_TRUE=
21967   USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
21968 else
21969   USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
21970   USE_INTERNAL_LIBATOMIC_OPS_FALSE=
21971 fi
21972
21973
21974
21975 if test -n "$maybe_libatomic_ops" -a x$need_atomic_ops_asm = xtrue; then
21976   NEED_ATOMIC_OPS_ASM_TRUE=
21977   NEED_ATOMIC_OPS_ASM_FALSE='#'
21978 else
21979   NEED_ATOMIC_OPS_ASM_TRUE='#'
21980   NEED_ATOMIC_OPS_ASM_FALSE=
21981 fi
21982
21983
21984
21985
21986 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
21987
21988
21989 ac_config_commands="$ac_config_commands default"
21990
21991
21992 cat >confcache <<\_ACEOF
21993 # This file is a shell script that caches the results of configure
21994 # tests run on this system so they can be shared between configure
21995 # scripts and configure runs, see configure's option --config-cache.
21996 # It is not useful on other systems.  If it contains results you don't
21997 # want to keep, you may remove or edit it.
21998 #
21999 # config.status only pays attention to the cache file if you give it
22000 # the --recheck option to rerun configure.
22001 #
22002 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22003 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22004 # following values.
22005
22006 _ACEOF
22007
22008 # The following way of writing the cache mishandles newlines in values,
22009 # but we know of no workaround that is simple, portable, and efficient.
22010 # So, we kill variables containing newlines.
22011 # Ultrix sh set writes to stderr and can't be redirected directly,
22012 # and sets the high bit in the cache file unless we assign to the vars.
22013 (
22014   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22015     eval ac_val=\$$ac_var
22016     case $ac_val in #(
22017     *${as_nl}*)
22018       case $ac_var in #(
22019       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22020 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22021       esac
22022       case $ac_var in #(
22023       _ | IFS | as_nl) ;; #(
22024       *) $as_unset $ac_var ;;
22025       esac ;;
22026     esac
22027   done
22028
22029   (set) 2>&1 |
22030     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22031     *${as_nl}ac_space=\ *)
22032       # `set' does not quote correctly, so add quotes (double-quote
22033       # substitution turns \\\\ into \\, and sed turns \\ into \).
22034       sed -n \
22035         "s/'/'\\\\''/g;
22036           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22037       ;; #(
22038     *)
22039       # `set' quotes correctly as required by POSIX, so do not add quotes.
22040       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22041       ;;
22042     esac |
22043     sort
22044 ) |
22045   sed '
22046      /^ac_cv_env_/b end
22047      t clear
22048      :clear
22049      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22050      t end
22051      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22052      :end' >>confcache
22053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22054   if test -w "$cache_file"; then
22055     test "x$cache_file" != "x/dev/null" &&
22056       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22057 echo "$as_me: updating cache $cache_file" >&6;}
22058     cat confcache >$cache_file
22059   else
22060     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22061 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22062   fi
22063 fi
22064 rm -f confcache
22065
22066 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22067 # Let make expand exec_prefix.
22068 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22069
22070 # Transform confdefs.h into DEFS.
22071 # Protect against shell expansion while executing Makefile rules.
22072 # Protect against Makefile macro expansion.
22073 #
22074 # If the first sed substitution is executed (which looks for macros that
22075 # take arguments), then branch to the quote section.  Otherwise,
22076 # look for a macro that doesn't take arguments.
22077 ac_script='
22078 t clear
22079 :clear
22080 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
22081 t quote
22082 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
22083 t quote
22084 b any
22085 :quote
22086 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22087 s/\[/\\&/g
22088 s/\]/\\&/g
22089 s/\$/$$/g
22090 H
22091 :any
22092 ${
22093         g
22094         s/^\n//
22095         s/\n/ /g
22096         p
22097 }
22098 '
22099 DEFS=`sed -n "$ac_script" confdefs.h`
22100
22101
22102 ac_libobjs=
22103 ac_ltlibobjs=
22104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22105   # 1. Remove the extension, and $U if already installed.
22106   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22107   ac_i=`echo "$ac_i" | sed "$ac_script"`
22108   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22109   #    will be set to the directory where LIBOBJS objects are built.
22110   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22111   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22112 done
22113 LIBOBJS=$ac_libobjs
22114
22115 LTLIBOBJS=$ac_ltlibobjs
22116
22117
22118 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22119   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22120 Usually this means the macro was only invoked conditionally." >&5
22121 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22122 Usually this means the macro was only invoked conditionally." >&2;}
22123    { (exit 1); exit 1; }; }
22124 fi
22125 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22126   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22127 Usually this means the macro was only invoked conditionally." >&5
22128 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22129 Usually this means the macro was only invoked conditionally." >&2;}
22130    { (exit 1); exit 1; }; }
22131 fi
22132 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22133   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22134 Usually this means the macro was only invoked conditionally." >&5
22135 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22136 Usually this means the macro was only invoked conditionally." >&2;}
22137    { (exit 1); exit 1; }; }
22138 fi
22139 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22140   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22141 Usually this means the macro was only invoked conditionally." >&5
22142 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22143 Usually this means the macro was only invoked conditionally." >&2;}
22144    { (exit 1); exit 1; }; }
22145 fi
22146 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
22147   { { echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
22148 Usually this means the macro was only invoked conditionally." >&5
22149 echo "$as_me: error: conditional \"THREADS\" was never defined.
22150 Usually this means the macro was only invoked conditionally." >&2;}
22151    { (exit 1); exit 1; }; }
22152 fi
22153 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
22154   { { echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined.
22155 Usually this means the macro was only invoked conditionally." >&5
22156 echo "$as_me: error: conditional \"PTHREADS\" was never defined.
22157 Usually this means the macro was only invoked conditionally." >&2;}
22158    { (exit 1); exit 1; }; }
22159 fi
22160 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
22161   { { echo "$as_me:$LINENO: error: conditional \"DARWIN_THREADS\" was never defined.
22162 Usually this means the macro was only invoked conditionally." >&5
22163 echo "$as_me: error: conditional \"DARWIN_THREADS\" was never defined.
22164 Usually this means the macro was only invoked conditionally." >&2;}
22165    { (exit 1); exit 1; }; }
22166 fi
22167 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
22168   { { echo "$as_me:$LINENO: error: conditional \"WIN32_THREADS\" was never defined.
22169 Usually this means the macro was only invoked conditionally." >&5
22170 echo "$as_me: error: conditional \"WIN32_THREADS\" was never defined.
22171 Usually this means the macro was only invoked conditionally." >&2;}
22172    { (exit 1); exit 1; }; }
22173 fi
22174 if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
22175   { { echo "$as_me:$LINENO: error: conditional \"COMPILER_XLC\" was never defined.
22176 Usually this means the macro was only invoked conditionally." >&5
22177 echo "$as_me: error: conditional \"COMPILER_XLC\" was never defined.
22178 Usually this means the macro was only invoked conditionally." >&2;}
22179    { (exit 1); exit 1; }; }
22180 fi
22181 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
22182   { { echo "$as_me:$LINENO: error: conditional \"AVOID_CPP_LIB\" was never defined.
22183 Usually this means the macro was only invoked conditionally." >&5
22184 echo "$as_me: error: conditional \"AVOID_CPP_LIB\" was never defined.
22185 Usually this means the macro was only invoked conditionally." >&2;}
22186    { (exit 1); exit 1; }; }
22187 fi
22188 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
22189   { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
22190 Usually this means the macro was only invoked conditionally." >&5
22191 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
22192 Usually this means the macro was only invoked conditionally." >&2;}
22193    { (exit 1); exit 1; }; }
22194 fi
22195 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
22196   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
22197 Usually this means the macro was only invoked conditionally." >&5
22198 echo "$as_me: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
22199 Usually this means the macro was only invoked conditionally." >&2;}
22200    { (exit 1); exit 1; }; }
22201 fi
22202 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
22203   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined.
22204 Usually this means the macro was only invoked conditionally." >&5
22205 echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined.
22206 Usually this means the macro was only invoked conditionally." >&2;}
22207    { (exit 1); exit 1; }; }
22208 fi
22209 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
22210   { { echo "$as_me:$LINENO: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
22211 Usually this means the macro was only invoked conditionally." >&5
22212 echo "$as_me: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
22213 Usually this means the macro was only invoked conditionally." >&2;}
22214    { (exit 1); exit 1; }; }
22215 fi
22216 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
22217   { { echo "$as_me:$LINENO: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
22218 Usually this means the macro was only invoked conditionally." >&5
22219 echo "$as_me: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
22220 Usually this means the macro was only invoked conditionally." >&2;}
22221    { (exit 1); exit 1; }; }
22222 fi
22223
22224 : ${CONFIG_STATUS=./config.status}
22225 ac_clean_files_save=$ac_clean_files
22226 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22227 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22228 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22229 cat >$CONFIG_STATUS <<_ACEOF
22230 #! $SHELL
22231 # Generated by $as_me.
22232 # Run this file to recreate the current configuration.
22233 # Compiler output produced by configure, useful for debugging
22234 # configure, is in config.log if it exists.
22235
22236 debug=false
22237 ac_cs_recheck=false
22238 ac_cs_silent=false
22239 SHELL=\${CONFIG_SHELL-$SHELL}
22240 _ACEOF
22241
22242 cat >>$CONFIG_STATUS <<\_ACEOF
22243 ## --------------------- ##
22244 ## M4sh Initialization.  ##
22245 ## --------------------- ##
22246
22247 # Be more Bourne compatible
22248 DUALCASE=1; export DUALCASE # for MKS sh
22249 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22250   emulate sh
22251   NULLCMD=:
22252   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22253   # is contrary to our usage.  Disable this feature.
22254   alias -g '${1+"$@"}'='"$@"'
22255   setopt NO_GLOB_SUBST
22256 else
22257   case `(set -o) 2>/dev/null` in
22258   *posix*) set -o posix ;;
22259 esac
22260
22261 fi
22262
22263
22264
22265
22266 # PATH needs CR
22267 # Avoid depending upon Character Ranges.
22268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22271 as_cr_digits='0123456789'
22272 as_cr_alnum=$as_cr_Letters$as_cr_digits
22273
22274 # The user is always right.
22275 if test "${PATH_SEPARATOR+set}" != set; then
22276   echo "#! /bin/sh" >conf$$.sh
22277   echo  "exit 0"   >>conf$$.sh
22278   chmod +x conf$$.sh
22279   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22280     PATH_SEPARATOR=';'
22281   else
22282     PATH_SEPARATOR=:
22283   fi
22284   rm -f conf$$.sh
22285 fi
22286
22287 # Support unset when possible.
22288 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22289   as_unset=unset
22290 else
22291   as_unset=false
22292 fi
22293
22294
22295 # IFS
22296 # We need space, tab and new line, in precisely that order.  Quoting is
22297 # there to prevent editors from complaining about space-tab.
22298 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22299 # splitting by setting IFS to empty value.)
22300 as_nl='
22301 '
22302 IFS=" ""        $as_nl"
22303
22304 # Find who we are.  Look in the path if we contain no directory separator.
22305 case $0 in
22306   *[\\/]* ) as_myself=$0 ;;
22307   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22308 for as_dir in $PATH
22309 do
22310   IFS=$as_save_IFS
22311   test -z "$as_dir" && as_dir=.
22312   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22313 done
22314 IFS=$as_save_IFS
22315
22316      ;;
22317 esac
22318 # We did not find ourselves, most probably we were run as `sh COMMAND'
22319 # in which case we are not to be found in the path.
22320 if test "x$as_myself" = x; then
22321   as_myself=$0
22322 fi
22323 if test ! -f "$as_myself"; then
22324   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22325   { (exit 1); exit 1; }
22326 fi
22327
22328 # Work around bugs in pre-3.0 UWIN ksh.
22329 for as_var in ENV MAIL MAILPATH
22330 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22331 done
22332 PS1='$ '
22333 PS2='> '
22334 PS4='+ '
22335
22336 # NLS nuisances.
22337 for as_var in \
22338   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22339   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22340   LC_TELEPHONE LC_TIME
22341 do
22342   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22343     eval $as_var=C; export $as_var
22344   else
22345     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22346   fi
22347 done
22348
22349 # Required to use basename.
22350 if expr a : '\(a\)' >/dev/null 2>&1 &&
22351    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22352   as_expr=expr
22353 else
22354   as_expr=false
22355 fi
22356
22357 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22358   as_basename=basename
22359 else
22360   as_basename=false
22361 fi
22362
22363
22364 # Name of the executable.
22365 as_me=`$as_basename -- "$0" ||
22366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22367          X"$0" : 'X\(//\)$' \| \
22368          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22369 echo X/"$0" |
22370     sed '/^.*\/\([^/][^/]*\)\/*$/{
22371             s//\1/
22372             q
22373           }
22374           /^X\/\(\/\/\)$/{
22375             s//\1/
22376             q
22377           }
22378           /^X\/\(\/\).*/{
22379             s//\1/
22380             q
22381           }
22382           s/.*/./; q'`
22383
22384 # CDPATH.
22385 $as_unset CDPATH
22386
22387
22388
22389   as_lineno_1=$LINENO
22390   as_lineno_2=$LINENO
22391   test "x$as_lineno_1" != "x$as_lineno_2" &&
22392   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22393
22394   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22395   # uniformly replaced by the line number.  The first 'sed' inserts a
22396   # line-number line after each line using $LINENO; the second 'sed'
22397   # does the real work.  The second script uses 'N' to pair each
22398   # line-number line with the line containing $LINENO, and appends
22399   # trailing '-' during substitution so that $LINENO is not a special
22400   # case at line end.
22401   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22402   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22403   # E. McMahon (1931-1989) for sed's syntax.  :-)
22404   sed -n '
22405     p
22406     /[$]LINENO/=
22407   ' <$as_myself |
22408     sed '
22409       s/[$]LINENO.*/&-/
22410       t lineno
22411       b
22412       :lineno
22413       N
22414       :loop
22415       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22416       t loop
22417       s/-\n.*//
22418     ' >$as_me.lineno &&
22419   chmod +x "$as_me.lineno" ||
22420     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22421    { (exit 1); exit 1; }; }
22422
22423   # Don't try to exec as it changes $[0], causing all sort of problems
22424   # (the dirname of $[0] is not the place where we might find the
22425   # original and so on.  Autoconf is especially sensitive to this).
22426   . "./$as_me.lineno"
22427   # Exit status is that of the last command.
22428   exit
22429 }
22430
22431
22432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22433   as_dirname=dirname
22434 else
22435   as_dirname=false
22436 fi
22437
22438 ECHO_C= ECHO_N= ECHO_T=
22439 case `echo -n x` in
22440 -n*)
22441   case `echo 'x\c'` in
22442   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22443   *)   ECHO_C='\c';;
22444   esac;;
22445 *)
22446   ECHO_N='-n';;
22447 esac
22448
22449 if expr a : '\(a\)' >/dev/null 2>&1 &&
22450    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22451   as_expr=expr
22452 else
22453   as_expr=false
22454 fi
22455
22456 rm -f conf$$ conf$$.exe conf$$.file
22457 if test -d conf$$.dir; then
22458   rm -f conf$$.dir/conf$$.file
22459 else
22460   rm -f conf$$.dir
22461   mkdir conf$$.dir
22462 fi
22463 echo >conf$$.file
22464 if ln -s conf$$.file conf$$ 2>/dev/null; then
22465   as_ln_s='ln -s'
22466   # ... but there are two gotchas:
22467   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22468   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22469   # In both cases, we have to default to `cp -p'.
22470   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22471     as_ln_s='cp -p'
22472 elif ln conf$$.file conf$$ 2>/dev/null; then
22473   as_ln_s=ln
22474 else
22475   as_ln_s='cp -p'
22476 fi
22477 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22478 rmdir conf$$.dir 2>/dev/null
22479
22480 if mkdir -p . 2>/dev/null; then
22481   as_mkdir_p=:
22482 else
22483   test -d ./-p && rmdir ./-p
22484   as_mkdir_p=false
22485 fi
22486
22487 if test -x / >/dev/null 2>&1; then
22488   as_test_x='test -x'
22489 else
22490   if ls -dL / >/dev/null 2>&1; then
22491     as_ls_L_option=L
22492   else
22493     as_ls_L_option=
22494   fi
22495   as_test_x='
22496     eval sh -c '\''
22497       if test -d "$1"; then
22498         test -d "$1/.";
22499       else
22500         case $1 in
22501         -*)set "./$1";;
22502         esac;
22503         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22504         ???[sx]*):;;*)false;;esac;fi
22505     '\'' sh
22506   '
22507 fi
22508 as_executable_p=$as_test_x
22509
22510 # Sed expression to map a string onto a valid CPP name.
22511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22512
22513 # Sed expression to map a string onto a valid variable name.
22514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22515
22516
22517 exec 6>&1
22518
22519 # Save the log message, to keep $[0] and so on meaningful, and to
22520 # report actual input values of CONFIG_FILES etc. instead of their
22521 # values after options handling.
22522 ac_log="
22523 This file was extended by gc $as_me 7.2alpha3, which was
22524 generated by GNU Autoconf 2.61.  Invocation command line was
22525
22526   CONFIG_FILES    = $CONFIG_FILES
22527   CONFIG_HEADERS  = $CONFIG_HEADERS
22528   CONFIG_LINKS    = $CONFIG_LINKS
22529   CONFIG_COMMANDS = $CONFIG_COMMANDS
22530   $ $0 $@
22531
22532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22533 "
22534
22535 _ACEOF
22536
22537 cat >>$CONFIG_STATUS <<_ACEOF
22538 # Files that config.status was made for.
22539 config_files="$ac_config_files"
22540 config_commands="$ac_config_commands"
22541
22542 _ACEOF
22543
22544 cat >>$CONFIG_STATUS <<\_ACEOF
22545 ac_cs_usage="\
22546 \`$as_me' instantiates files from templates according to the
22547 current configuration.
22548
22549 Usage: $0 [OPTIONS] [FILE]...
22550
22551   -h, --help       print this help, then exit
22552   -V, --version    print version number and configuration settings, then exit
22553   -q, --quiet      do not print progress messages
22554   -d, --debug      don't remove temporary files
22555       --recheck    update $as_me by reconfiguring in the same conditions
22556   --file=FILE[:TEMPLATE]
22557                    instantiate the configuration file FILE
22558
22559 Configuration files:
22560 $config_files
22561
22562 Configuration commands:
22563 $config_commands
22564
22565 Report bugs to <bug-autoconf@gnu.org>."
22566
22567 _ACEOF
22568 cat >>$CONFIG_STATUS <<_ACEOF
22569 ac_cs_version="\\
22570 gc config.status 7.2alpha3
22571 configured by $0, generated by GNU Autoconf 2.61,
22572   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22573
22574 Copyright (C) 2006 Free Software Foundation, Inc.
22575 This config.status script is free software; the Free Software Foundation
22576 gives unlimited permission to copy, distribute and modify it."
22577
22578 ac_pwd='$ac_pwd'
22579 srcdir='$srcdir'
22580 INSTALL='$INSTALL'
22581 _ACEOF
22582
22583 cat >>$CONFIG_STATUS <<\_ACEOF
22584 # If no file are specified by the user, then we need to provide default
22585 # value.  By we need to know if files were specified by the user.
22586 ac_need_defaults=:
22587 while test $# != 0
22588 do
22589   case $1 in
22590   --*=*)
22591     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22592     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22593     ac_shift=:
22594     ;;
22595   *)
22596     ac_option=$1
22597     ac_optarg=$2
22598     ac_shift=shift
22599     ;;
22600   esac
22601
22602   case $ac_option in
22603   # Handling of the options.
22604   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22605     ac_cs_recheck=: ;;
22606   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22607     echo "$ac_cs_version"; exit ;;
22608   --debug | --debu | --deb | --de | --d | -d )
22609     debug=: ;;
22610   --file | --fil | --fi | --f )
22611     $ac_shift
22612     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22613     ac_need_defaults=false;;
22614   --he | --h |  --help | --hel | -h )
22615     echo "$ac_cs_usage"; exit ;;
22616   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22617   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22618     ac_cs_silent=: ;;
22619
22620   # This is an error.
22621   -*) { echo "$as_me: error: unrecognized option: $1
22622 Try \`$0 --help' for more information." >&2
22623    { (exit 1); exit 1; }; } ;;
22624
22625   *) ac_config_targets="$ac_config_targets $1"
22626      ac_need_defaults=false ;;
22627
22628   esac
22629   shift
22630 done
22631
22632 ac_configure_extra_args=
22633
22634 if $ac_cs_silent; then
22635   exec 6>/dev/null
22636   ac_configure_extra_args="$ac_configure_extra_args --silent"
22637 fi
22638
22639 _ACEOF
22640 cat >>$CONFIG_STATUS <<_ACEOF
22641 if \$ac_cs_recheck; then
22642   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22643   CONFIG_SHELL=$SHELL
22644   export CONFIG_SHELL
22645   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22646 fi
22647
22648 _ACEOF
22649 cat >>$CONFIG_STATUS <<\_ACEOF
22650 exec 5>>config.log
22651 {
22652   echo
22653   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22654 ## Running $as_me. ##
22655 _ASBOX
22656   echo "$ac_log"
22657 } >&5
22658
22659 _ACEOF
22660 cat >>$CONFIG_STATUS <<_ACEOF
22661 #
22662 # INIT-COMMANDS
22663 #
22664 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22665  srcdir=${srcdir}
22666     host=${host}
22667     CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22668     CC="${CC}"
22669     DEFS="$DEFS"
22670
22671 _ACEOF
22672
22673 cat >>$CONFIG_STATUS <<\_ACEOF
22674
22675 # Handling of arguments.
22676 for ac_config_target in $ac_config_targets
22677 do
22678   case $ac_config_target in
22679     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22680     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22681     "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
22682     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22683
22684   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22685 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22686    { (exit 1); exit 1; }; };;
22687   esac
22688 done
22689
22690
22691 # If the user did not use the arguments to specify the items to instantiate,
22692 # then the envvar interface is used.  Set only those that are not.
22693 # We use the long form for the default assignment because of an extremely
22694 # bizarre bug on SunOS 4.1.3.
22695 if $ac_need_defaults; then
22696   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22697   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22698 fi
22699
22700 # Have a temporary directory for convenience.  Make it in the build tree
22701 # simply because there is no reason against having it here, and in addition,
22702 # creating and moving files from /tmp can sometimes cause problems.
22703 # Hook for its removal unless debugging.
22704 # Note that there is a small window in which the directory will not be cleaned:
22705 # after its creation but before its name has been assigned to `$tmp'.
22706 $debug ||
22707 {
22708   tmp=
22709   trap 'exit_status=$?
22710   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22711 ' 0
22712   trap '{ (exit 1); exit 1; }' 1 2 13 15
22713 }
22714 # Create a (secure) tmp directory for tmp files.
22715
22716 {
22717   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22718   test -n "$tmp" && test -d "$tmp"
22719 }  ||
22720 {
22721   tmp=./conf$$-$RANDOM
22722   (umask 077 && mkdir "$tmp")
22723 } ||
22724 {
22725    echo "$me: cannot create a temporary directory in ." >&2
22726    { (exit 1); exit 1; }
22727 }
22728
22729 #
22730 # Set up the sed scripts for CONFIG_FILES section.
22731 #
22732
22733 # No need to generate the scripts if there are no CONFIG_FILES.
22734 # This happens for instance when ./config.status config.h
22735 if test -n "$CONFIG_FILES"; then
22736
22737 _ACEOF
22738
22739
22740
22741 ac_delim='%!_!# '
22742 for ac_last_try in false false false false false :; do
22743   cat >conf$$subs.sed <<_ACEOF
22744 SHELL!$SHELL$ac_delim
22745 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22746 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22747 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22748 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22749 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22750 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22751 exec_prefix!$exec_prefix$ac_delim
22752 prefix!$prefix$ac_delim
22753 program_transform_name!$program_transform_name$ac_delim
22754 bindir!$bindir$ac_delim
22755 sbindir!$sbindir$ac_delim
22756 libexecdir!$libexecdir$ac_delim
22757 datarootdir!$datarootdir$ac_delim
22758 datadir!$datadir$ac_delim
22759 sysconfdir!$sysconfdir$ac_delim
22760 sharedstatedir!$sharedstatedir$ac_delim
22761 localstatedir!$localstatedir$ac_delim
22762 includedir!$includedir$ac_delim
22763 oldincludedir!$oldincludedir$ac_delim
22764 docdir!$docdir$ac_delim
22765 infodir!$infodir$ac_delim
22766 htmldir!$htmldir$ac_delim
22767 dvidir!$dvidir$ac_delim
22768 pdfdir!$pdfdir$ac_delim
22769 psdir!$psdir$ac_delim
22770 libdir!$libdir$ac_delim
22771 localedir!$localedir$ac_delim
22772 mandir!$mandir$ac_delim
22773 DEFS!$DEFS$ac_delim
22774 ECHO_C!$ECHO_C$ac_delim
22775 ECHO_N!$ECHO_N$ac_delim
22776 ECHO_T!$ECHO_T$ac_delim
22777 LIBS!$LIBS$ac_delim
22778 build_alias!$build_alias$ac_delim
22779 host_alias!$host_alias$ac_delim
22780 target_alias!$target_alias$ac_delim
22781 build!$build$ac_delim
22782 build_cpu!$build_cpu$ac_delim
22783 build_vendor!$build_vendor$ac_delim
22784 build_os!$build_os$ac_delim
22785 host!$host$ac_delim
22786 host_cpu!$host_cpu$ac_delim
22787 host_vendor!$host_vendor$ac_delim
22788 host_os!$host_os$ac_delim
22789 target!$target$ac_delim
22790 target_cpu!$target_cpu$ac_delim
22791 target_vendor!$target_vendor$ac_delim
22792 target_os!$target_os$ac_delim
22793 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22794 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22795 INSTALL_DATA!$INSTALL_DATA$ac_delim
22796 CYGPATH_W!$CYGPATH_W$ac_delim
22797 PACKAGE!$PACKAGE$ac_delim
22798 VERSION!$VERSION$ac_delim
22799 ACLOCAL!$ACLOCAL$ac_delim
22800 AUTOCONF!$AUTOCONF$ac_delim
22801 AUTOMAKE!$AUTOMAKE$ac_delim
22802 AUTOHEADER!$AUTOHEADER$ac_delim
22803 MAKEINFO!$MAKEINFO$ac_delim
22804 install_sh!$install_sh$ac_delim
22805 STRIP!$STRIP$ac_delim
22806 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22807 mkdir_p!$mkdir_p$ac_delim
22808 AWK!$AWK$ac_delim
22809 SET_MAKE!$SET_MAKE$ac_delim
22810 am__leading_dot!$am__leading_dot$ac_delim
22811 AMTAR!$AMTAR$ac_delim
22812 am__tar!$am__tar$ac_delim
22813 am__untar!$am__untar$ac_delim
22814 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22815 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22816 MAINT!$MAINT$ac_delim
22817 GC_VERSION!$GC_VERSION$ac_delim
22818 CC!$CC$ac_delim
22819 CFLAGS!$CFLAGS$ac_delim
22820 LDFLAGS!$LDFLAGS$ac_delim
22821 CPPFLAGS!$CPPFLAGS$ac_delim
22822 ac_ct_CC!$ac_ct_CC$ac_delim
22823 EXEEXT!$EXEEXT$ac_delim
22824 OBJEXT!$OBJEXT$ac_delim
22825 DEPDIR!$DEPDIR$ac_delim
22826 am__include!$am__include$ac_delim
22827 am__quote!$am__quote$ac_delim
22828 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22829 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22830 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22831 CCDEPMODE!$CCDEPMODE$ac_delim
22832 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22833 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22834 CXX!$CXX$ac_delim
22835 CXXFLAGS!$CXXFLAGS$ac_delim
22836 ac_ct_CXX!$ac_ct_CXX$ac_delim
22837 CXXDEPMODE!$CXXDEPMODE$ac_delim
22838 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22839 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22840 CCAS!$CCAS$ac_delim
22841 _ACEOF
22842
22843   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22844     break
22845   elif $ac_last_try; then
22846     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22847 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22848    { (exit 1); exit 1; }; }
22849   else
22850     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22851   fi
22852 done
22853
22854 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22855 if test -n "$ac_eof"; then
22856   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22857   ac_eof=`expr $ac_eof + 1`
22858 fi
22859
22860 cat >>$CONFIG_STATUS <<_ACEOF
22861 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22863 _ACEOF
22864 sed '
22865 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22866 s/^/s,@/; s/!/@,|#_!!_#|/
22867 :n
22868 t n
22869 s/'"$ac_delim"'$/,g/; t
22870 s/$/\\/; p
22871 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22872 ' >>$CONFIG_STATUS <conf$$subs.sed
22873 rm -f conf$$subs.sed
22874 cat >>$CONFIG_STATUS <<_ACEOF
22875 CEOF$ac_eof
22876 _ACEOF
22877
22878
22879 ac_delim='%!_!# '
22880 for ac_last_try in false false false false false :; do
22881   cat >conf$$subs.sed <<_ACEOF
22882 CCASFLAGS!$CCASFLAGS$ac_delim
22883 AR!$AR$ac_delim
22884 RANLIB!$RANLIB$ac_delim
22885 GC_CFLAGS!$GC_CFLAGS$ac_delim
22886 THREADDLLIBS!$THREADDLLIBS$ac_delim
22887 THREADS_TRUE!$THREADS_TRUE$ac_delim
22888 THREADS_FALSE!$THREADS_FALSE$ac_delim
22889 PTHREADS_TRUE!$PTHREADS_TRUE$ac_delim
22890 PTHREADS_FALSE!$PTHREADS_FALSE$ac_delim
22891 DARWIN_THREADS_TRUE!$DARWIN_THREADS_TRUE$ac_delim
22892 DARWIN_THREADS_FALSE!$DARWIN_THREADS_FALSE$ac_delim
22893 WIN32_THREADS_TRUE!$WIN32_THREADS_TRUE$ac_delim
22894 WIN32_THREADS_FALSE!$WIN32_THREADS_FALSE$ac_delim
22895 COMPILER_XLC_TRUE!$COMPILER_XLC_TRUE$ac_delim
22896 COMPILER_XLC_FALSE!$COMPILER_XLC_FALSE$ac_delim
22897 AVOID_CPP_LIB_TRUE!$AVOID_CPP_LIB_TRUE$ac_delim
22898 AVOID_CPP_LIB_FALSE!$AVOID_CPP_LIB_FALSE$ac_delim
22899 extra_ldflags_libgc!$extra_ldflags_libgc$ac_delim
22900 EXTRA_TEST_LIBS!$EXTRA_TEST_LIBS$ac_delim
22901 target_all!$target_all$ac_delim
22902 CPLUSPLUS_TRUE!$CPLUSPLUS_TRUE$ac_delim
22903 CPLUSPLUS_FALSE!$CPLUSPLUS_FALSE$ac_delim
22904 INCLUDES!$INCLUDES$ac_delim
22905 CXXINCLUDES!$CXXINCLUDES$ac_delim
22906 addobjs!$addobjs$ac_delim
22907 addlibs!$addlibs$ac_delim
22908 GREP!$GREP$ac_delim
22909 EGREP!$EGREP$ac_delim
22910 LN_S!$LN_S$ac_delim
22911 ECHO!$ECHO$ac_delim
22912 CPP!$CPP$ac_delim
22913 CXXCPP!$CXXCPP$ac_delim
22914 F77!$F77$ac_delim
22915 FFLAGS!$FFLAGS$ac_delim
22916 ac_ct_F77!$ac_ct_F77$ac_delim
22917 LIBTOOL!$LIBTOOL$ac_delim
22918 ENABLE_GCJ_SUPPORT_TRUE!$ENABLE_GCJ_SUPPORT_TRUE$ac_delim
22919 ENABLE_GCJ_SUPPORT_FALSE!$ENABLE_GCJ_SUPPORT_FALSE$ac_delim
22920 UNWINDLIBS!$UNWINDLIBS$ac_delim
22921 USE_LIBDIR_TRUE!$USE_LIBDIR_TRUE$ac_delim
22922 USE_LIBDIR_FALSE!$USE_LIBDIR_FALSE$ac_delim
22923 subdirs!$subdirs$ac_delim
22924 USE_INTERNAL_LIBATOMIC_OPS_TRUE!$USE_INTERNAL_LIBATOMIC_OPS_TRUE$ac_delim
22925 USE_INTERNAL_LIBATOMIC_OPS_FALSE!$USE_INTERNAL_LIBATOMIC_OPS_FALSE$ac_delim
22926 NEED_ATOMIC_OPS_ASM_TRUE!$NEED_ATOMIC_OPS_ASM_TRUE$ac_delim
22927 NEED_ATOMIC_OPS_ASM_FALSE!$NEED_ATOMIC_OPS_ASM_FALSE$ac_delim
22928 atomic_ops_libs!$atomic_ops_libs$ac_delim
22929 LIBOBJS!$LIBOBJS$ac_delim
22930 LTLIBOBJS!$LTLIBOBJS$ac_delim
22931 _ACEOF
22932
22933   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
22934     break
22935   elif $ac_last_try; then
22936     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22938    { (exit 1); exit 1; }; }
22939   else
22940     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22941   fi
22942 done
22943
22944 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22945 if test -n "$ac_eof"; then
22946   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22947   ac_eof=`expr $ac_eof + 1`
22948 fi
22949
22950 cat >>$CONFIG_STATUS <<_ACEOF
22951 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22953 _ACEOF
22954 sed '
22955 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22956 s/^/s,@/; s/!/@,|#_!!_#|/
22957 :n
22958 t n
22959 s/'"$ac_delim"'$/,g/; t
22960 s/$/\\/; p
22961 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22962 ' >>$CONFIG_STATUS <conf$$subs.sed
22963 rm -f conf$$subs.sed
22964 cat >>$CONFIG_STATUS <<_ACEOF
22965 :end
22966 s/|#_!!_#|//g
22967 CEOF$ac_eof
22968 _ACEOF
22969
22970
22971 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22972 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22973 # trailing colons and then remove the whole line if VPATH becomes empty
22974 # (actually we leave an empty line to preserve line numbers).
22975 if test "x$srcdir" = x.; then
22976   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22977 s/:*\$(srcdir):*/:/
22978 s/:*\${srcdir}:*/:/
22979 s/:*@srcdir@:*/:/
22980 s/^\([^=]*=[     ]*\):*/\1/
22981 s/:*$//
22982 s/^[^=]*=[       ]*$//
22983 }'
22984 fi
22985
22986 cat >>$CONFIG_STATUS <<\_ACEOF
22987 fi # test -n "$CONFIG_FILES"
22988
22989
22990 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
22991 do
22992   case $ac_tag in
22993   :[FHLC]) ac_mode=$ac_tag; continue;;
22994   esac
22995   case $ac_mode$ac_tag in
22996   :[FHL]*:*);;
22997   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22998 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22999    { (exit 1); exit 1; }; };;
23000   :[FH]-) ac_tag=-:-;;
23001   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23002   esac
23003   ac_save_IFS=$IFS
23004   IFS=:
23005   set x $ac_tag
23006   IFS=$ac_save_IFS
23007   shift
23008   ac_file=$1
23009   shift
23010
23011   case $ac_mode in
23012   :L) ac_source=$1;;
23013   :[FH])
23014     ac_file_inputs=
23015     for ac_f
23016     do
23017       case $ac_f in
23018       -) ac_f="$tmp/stdin";;
23019       *) # Look for the file first in the build tree, then in the source tree
23020          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23021          # because $ac_f cannot contain `:'.
23022          test -f "$ac_f" ||
23023            case $ac_f in
23024            [\\/$]*) false;;
23025            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23026            esac ||
23027            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23028 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23029    { (exit 1); exit 1; }; };;
23030       esac
23031       ac_file_inputs="$ac_file_inputs $ac_f"
23032     done
23033
23034     # Let's still pretend it is `configure' which instantiates (i.e., don't
23035     # use $as_me), people would be surprised to read:
23036     #    /* config.h.  Generated by config.status.  */
23037     configure_input="Generated from "`IFS=:
23038           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23039     if test x"$ac_file" != x-; then
23040       configure_input="$ac_file.  $configure_input"
23041       { echo "$as_me:$LINENO: creating $ac_file" >&5
23042 echo "$as_me: creating $ac_file" >&6;}
23043     fi
23044
23045     case $ac_tag in
23046     *:-:* | *:-) cat >"$tmp/stdin";;
23047     esac
23048     ;;
23049   esac
23050
23051   ac_dir=`$as_dirname -- "$ac_file" ||
23052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23053          X"$ac_file" : 'X\(//\)[^/]' \| \
23054          X"$ac_file" : 'X\(//\)$' \| \
23055          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23056 echo X"$ac_file" |
23057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23058             s//\1/
23059             q
23060           }
23061           /^X\(\/\/\)[^/].*/{
23062             s//\1/
23063             q
23064           }
23065           /^X\(\/\/\)$/{
23066             s//\1/
23067             q
23068           }
23069           /^X\(\/\).*/{
23070             s//\1/
23071             q
23072           }
23073           s/.*/./; q'`
23074   { as_dir="$ac_dir"
23075   case $as_dir in #(
23076   -*) as_dir=./$as_dir;;
23077   esac
23078   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23079     as_dirs=
23080     while :; do
23081       case $as_dir in #(
23082       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23083       *) as_qdir=$as_dir;;
23084       esac
23085       as_dirs="'$as_qdir' $as_dirs"
23086       as_dir=`$as_dirname -- "$as_dir" ||
23087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23088          X"$as_dir" : 'X\(//\)[^/]' \| \
23089          X"$as_dir" : 'X\(//\)$' \| \
23090          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23091 echo X"$as_dir" |
23092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23093             s//\1/
23094             q
23095           }
23096           /^X\(\/\/\)[^/].*/{
23097             s//\1/
23098             q
23099           }
23100           /^X\(\/\/\)$/{
23101             s//\1/
23102             q
23103           }
23104           /^X\(\/\).*/{
23105             s//\1/
23106             q
23107           }
23108           s/.*/./; q'`
23109       test -d "$as_dir" && break
23110     done
23111     test -z "$as_dirs" || eval "mkdir $as_dirs"
23112   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23113 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23114    { (exit 1); exit 1; }; }; }
23115   ac_builddir=.
23116
23117 case "$ac_dir" in
23118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23119 *)
23120   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23121   # A ".." for each directory in $ac_dir_suffix.
23122   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23123   case $ac_top_builddir_sub in
23124   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23125   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23126   esac ;;
23127 esac
23128 ac_abs_top_builddir=$ac_pwd
23129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23130 # for backward compatibility:
23131 ac_top_builddir=$ac_top_build_prefix
23132
23133 case $srcdir in
23134   .)  # We are building in place.
23135     ac_srcdir=.
23136     ac_top_srcdir=$ac_top_builddir_sub
23137     ac_abs_top_srcdir=$ac_pwd ;;
23138   [\\/]* | ?:[\\/]* )  # Absolute name.
23139     ac_srcdir=$srcdir$ac_dir_suffix;
23140     ac_top_srcdir=$srcdir
23141     ac_abs_top_srcdir=$srcdir ;;
23142   *) # Relative name.
23143     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23144     ac_top_srcdir=$ac_top_build_prefix$srcdir
23145     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23146 esac
23147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23148
23149
23150   case $ac_mode in
23151   :F)
23152   #
23153   # CONFIG_FILE
23154   #
23155
23156   case $INSTALL in
23157   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23158   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23159   esac
23160 _ACEOF
23161
23162 cat >>$CONFIG_STATUS <<\_ACEOF
23163 # If the template does not know about datarootdir, expand it.
23164 # FIXME: This hack should be removed a few years after 2.60.
23165 ac_datarootdir_hack=; ac_datarootdir_seen=
23166
23167 case `sed -n '/datarootdir/ {
23168   p
23169   q
23170 }
23171 /@datadir@/p
23172 /@docdir@/p
23173 /@infodir@/p
23174 /@localedir@/p
23175 /@mandir@/p
23176 ' $ac_file_inputs` in
23177 *datarootdir*) ac_datarootdir_seen=yes;;
23178 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23179   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23180 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23181 _ACEOF
23182 cat >>$CONFIG_STATUS <<_ACEOF
23183   ac_datarootdir_hack='
23184   s&@datadir@&$datadir&g
23185   s&@docdir@&$docdir&g
23186   s&@infodir@&$infodir&g
23187   s&@localedir@&$localedir&g
23188   s&@mandir@&$mandir&g
23189     s&\\\${datarootdir}&$datarootdir&g' ;;
23190 esac
23191 _ACEOF
23192
23193 # Neutralize VPATH when `$srcdir' = `.'.
23194 # Shell code in configure.ac might set extrasub.
23195 # FIXME: do we really want to maintain this feature?
23196 cat >>$CONFIG_STATUS <<_ACEOF
23197   sed "$ac_vpsub
23198 $extrasub
23199 _ACEOF
23200 cat >>$CONFIG_STATUS <<\_ACEOF
23201 :t
23202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23203 s&@configure_input@&$configure_input&;t t
23204 s&@top_builddir@&$ac_top_builddir_sub&;t t
23205 s&@srcdir@&$ac_srcdir&;t t
23206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23207 s&@top_srcdir@&$ac_top_srcdir&;t t
23208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23209 s&@builddir@&$ac_builddir&;t t
23210 s&@abs_builddir@&$ac_abs_builddir&;t t
23211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23212 s&@INSTALL@&$ac_INSTALL&;t t
23213 $ac_datarootdir_hack
23214 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23215
23216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23217   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23218   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23219   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23220 which seems to be undefined.  Please make sure it is defined." >&5
23221 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23222 which seems to be undefined.  Please make sure it is defined." >&2;}
23223
23224   rm -f "$tmp/stdin"
23225   case $ac_file in
23226   -) cat "$tmp/out"; rm -f "$tmp/out";;
23227   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23228   esac
23229  ;;
23230
23231
23232   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23233 echo "$as_me: executing $ac_file commands" >&6;}
23234  ;;
23235   esac
23236
23237
23238   case $ac_file$ac_mode in
23239     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23240   # Strip MF so we end up with the name of the file.
23241   mf=`echo "$mf" | sed -e 's/:.*$//'`
23242   # Check whether this is an Automake generated Makefile or not.
23243   # We used to match only the files named `Makefile.in', but
23244   # some people rename them; so instead we look at the file content.
23245   # Grep'ing the first line is not enough: some people post-process
23246   # each Makefile.in and add a new line on top of each file to say so.
23247   # So let's grep whole file.
23248   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23249     dirpart=`$as_dirname -- "$mf" ||
23250 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23251          X"$mf" : 'X\(//\)[^/]' \| \
23252          X"$mf" : 'X\(//\)$' \| \
23253          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23254 echo X"$mf" |
23255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23256             s//\1/
23257             q
23258           }
23259           /^X\(\/\/\)[^/].*/{
23260             s//\1/
23261             q
23262           }
23263           /^X\(\/\/\)$/{
23264             s//\1/
23265             q
23266           }
23267           /^X\(\/\).*/{
23268             s//\1/
23269             q
23270           }
23271           s/.*/./; q'`
23272   else
23273     continue
23274   fi
23275   # Extract the definition of DEPDIR, am__include, and am__quote
23276   # from the Makefile without running `make'.
23277   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23278   test -z "$DEPDIR" && continue
23279   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23280   test -z "am__include" && continue
23281   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23282   # When using ansi2knr, U may be empty or an underscore; expand it
23283   U=`sed -n 's/^U = //p' < "$mf"`
23284   # Find all dependency output files, they are included files with
23285   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23286   # simplest approach to changing $(DEPDIR) to its actual value in the
23287   # expansion.
23288   for file in `sed -n "
23289     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23290        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23291     # Make sure the directory exists.
23292     test -f "$dirpart/$file" && continue
23293     fdir=`$as_dirname -- "$file" ||
23294 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23295          X"$file" : 'X\(//\)[^/]' \| \
23296          X"$file" : 'X\(//\)$' \| \
23297          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23298 echo X"$file" |
23299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23300             s//\1/
23301             q
23302           }
23303           /^X\(\/\/\)[^/].*/{
23304             s//\1/
23305             q
23306           }
23307           /^X\(\/\/\)$/{
23308             s//\1/
23309             q
23310           }
23311           /^X\(\/\).*/{
23312             s//\1/
23313             q
23314           }
23315           s/.*/./; q'`
23316     { as_dir=$dirpart/$fdir
23317   case $as_dir in #(
23318   -*) as_dir=./$as_dir;;
23319   esac
23320   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23321     as_dirs=
23322     while :; do
23323       case $as_dir in #(
23324       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23325       *) as_qdir=$as_dir;;
23326       esac
23327       as_dirs="'$as_qdir' $as_dirs"
23328       as_dir=`$as_dirname -- "$as_dir" ||
23329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23330          X"$as_dir" : 'X\(//\)[^/]' \| \
23331          X"$as_dir" : 'X\(//\)$' \| \
23332          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23333 echo X"$as_dir" |
23334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23335             s//\1/
23336             q
23337           }
23338           /^X\(\/\/\)[^/].*/{
23339             s//\1/
23340             q
23341           }
23342           /^X\(\/\/\)$/{
23343             s//\1/
23344             q
23345           }
23346           /^X\(\/\).*/{
23347             s//\1/
23348             q
23349           }
23350           s/.*/./; q'`
23351       test -d "$as_dir" && break
23352     done
23353     test -z "$as_dirs" || eval "mkdir $as_dirs"
23354   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23355 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23356    { (exit 1); exit 1; }; }; }
23357     # echo "creating $dirpart/$file"
23358     echo '# dummy' > "$dirpart/$file"
23359   done
23360 done
23361  ;;
23362
23363   esac
23364 done # for ac_tag
23365
23366
23367 { (exit 0); exit 0; }
23368 _ACEOF
23369 chmod +x $CONFIG_STATUS
23370 ac_clean_files=$ac_clean_files_save
23371
23372
23373 # configure is writing to config.log, and then calls config.status.
23374 # config.status does its own redirection, appending to config.log.
23375 # Unfortunately, on DOS this fails, as config.log is still kept open
23376 # by configure, so config.status won't be able to write to it; its
23377 # output is simply discarded.  So we exec the FD to /dev/null,
23378 # effectively closing config.log, so it can be properly (re)opened and
23379 # appended to by config.status.  When coming back to configure, we
23380 # need to make the FD available again.
23381 if test "$no_create" != yes; then
23382   ac_cs_success=:
23383   ac_config_status_args=
23384   test "$silent" = yes &&
23385     ac_config_status_args="$ac_config_status_args --quiet"
23386   exec 5>/dev/null
23387   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23388   exec 5>>config.log
23389   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23390   # would make configure fail if this is the last instruction.
23391   $ac_cs_success || { (exit 1); exit 1; }
23392 fi
23393
23394 #
23395 # CONFIG_SUBDIRS section.
23396 #
23397 if test "$no_recursion" != yes; then
23398
23399   # Remove --cache-file and --srcdir arguments so they do not pile up.
23400   ac_sub_configure_args=
23401   ac_prev=
23402   eval "set x $ac_configure_args"
23403   shift
23404   for ac_arg
23405   do
23406     if test -n "$ac_prev"; then
23407       ac_prev=
23408       continue
23409     fi
23410     case $ac_arg in
23411     -cache-file | --cache-file | --cache-fil | --cache-fi \
23412     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23413       ac_prev=cache_file ;;
23414     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23415     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23416     | --c=*)
23417       ;;
23418     --config-cache | -C)
23419       ;;
23420     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23421       ac_prev=srcdir ;;
23422     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23423       ;;
23424     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23425       ac_prev=prefix ;;
23426     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23427       ;;
23428     *)
23429       case $ac_arg in
23430       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23431       esac
23432       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23433     esac
23434   done
23435
23436   # Always prepend --prefix to ensure using the same prefix
23437   # in subdir configurations.
23438   ac_arg="--prefix=$prefix"
23439   case $ac_arg in
23440   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23441   esac
23442   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23443
23444   # Pass --silent
23445   if test "$silent" = yes; then
23446     ac_sub_configure_args="--silent $ac_sub_configure_args"
23447   fi
23448
23449   ac_popdir=`pwd`
23450   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23451
23452     # Do not complain, so a configure script can configure whichever
23453     # parts of a large source tree are present.
23454     test -d "$srcdir/$ac_dir" || continue
23455
23456     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23457     echo "$as_me:$LINENO: $ac_msg" >&5
23458     echo "$ac_msg" >&6
23459     { as_dir="$ac_dir"
23460   case $as_dir in #(
23461   -*) as_dir=./$as_dir;;
23462   esac
23463   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23464     as_dirs=
23465     while :; do
23466       case $as_dir in #(
23467       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23468       *) as_qdir=$as_dir;;
23469       esac
23470       as_dirs="'$as_qdir' $as_dirs"
23471       as_dir=`$as_dirname -- "$as_dir" ||
23472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23473          X"$as_dir" : 'X\(//\)[^/]' \| \
23474          X"$as_dir" : 'X\(//\)$' \| \
23475          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23476 echo X"$as_dir" |
23477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23478             s//\1/
23479             q
23480           }
23481           /^X\(\/\/\)[^/].*/{
23482             s//\1/
23483             q
23484           }
23485           /^X\(\/\/\)$/{
23486             s//\1/
23487             q
23488           }
23489           /^X\(\/\).*/{
23490             s//\1/
23491             q
23492           }
23493           s/.*/./; q'`
23494       test -d "$as_dir" && break
23495     done
23496     test -z "$as_dirs" || eval "mkdir $as_dirs"
23497   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23498 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23499    { (exit 1); exit 1; }; }; }
23500     ac_builddir=.
23501
23502 case "$ac_dir" in
23503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23504 *)
23505   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23506   # A ".." for each directory in $ac_dir_suffix.
23507   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23508   case $ac_top_builddir_sub in
23509   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23510   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23511   esac ;;
23512 esac
23513 ac_abs_top_builddir=$ac_pwd
23514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23515 # for backward compatibility:
23516 ac_top_builddir=$ac_top_build_prefix
23517
23518 case $srcdir in
23519   .)  # We are building in place.
23520     ac_srcdir=.
23521     ac_top_srcdir=$ac_top_builddir_sub
23522     ac_abs_top_srcdir=$ac_pwd ;;
23523   [\\/]* | ?:[\\/]* )  # Absolute name.
23524     ac_srcdir=$srcdir$ac_dir_suffix;
23525     ac_top_srcdir=$srcdir
23526     ac_abs_top_srcdir=$srcdir ;;
23527   *) # Relative name.
23528     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23529     ac_top_srcdir=$ac_top_build_prefix$srcdir
23530     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23531 esac
23532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23533
23534
23535     cd "$ac_dir"
23536
23537     # Check for guested configure; otherwise get Cygnus style configure.
23538     if test -f "$ac_srcdir/configure.gnu"; then
23539       ac_sub_configure=$ac_srcdir/configure.gnu
23540     elif test -f "$ac_srcdir/configure"; then
23541       ac_sub_configure=$ac_srcdir/configure
23542     elif test -f "$ac_srcdir/configure.in"; then
23543       # This should be Cygnus configure.
23544       ac_sub_configure=$ac_aux_dir/configure
23545     else
23546       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23548       ac_sub_configure=
23549     fi
23550
23551     # The recursion is here.
23552     if test -n "$ac_sub_configure"; then
23553       # Make the cache file name correct relative to the subdirectory.
23554       case $cache_file in
23555       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23556       *) # Relative name.
23557         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23558       esac
23559
23560       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23561 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23562       # The eval makes quoting arguments work.
23563       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23564            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23565         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23566 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23567    { (exit 1); exit 1; }; }
23568     fi
23569
23570     cd "$ac_popdir"
23571   done
23572 fi
23573