v0.2.2 release
[yandexfotkisp] / autom4te.cache / output.1
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for yandex-fotki-sharing-plugin 0.1.
4 @%:@ 
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359     
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIB@&t@OBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='yandex-fotki-sharing-plugin'
728 PACKAGE_TARNAME='yandex-fotki-sharing-plugin'
729 PACKAGE_VERSION='0.1'
730 PACKAGE_STRING='yandex-fotki-sharing-plugin 0.1'
731 PACKAGE_BUGREPORT=''
732
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 AMTAR
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 MAINTAINER_MODE_TRUE
826 MAINTAINER_MODE_FALSE
827 MAINT
828 CC
829 CFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 CXXDEPMODE
848 am__fastdepCXX_TRUE
849 am__fastdepCXX_FALSE
850 CPP
851 GREP
852 EGREP
853 LN_S
854 build
855 build_cpu
856 build_vendor
857 build_os
858 host
859 host_cpu
860 host_vendor
861 host_os
862 SED
863 ECHO
864 AR
865 RANLIB
866 DSYMUTIL
867 NMEDIT
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 PKG_CONFIG
874 PACKAGE_CFLAGS
875 PACKAGE_LIBS
876 SHARING_CFLAGS
877 SHARING_LIBS
878 XML_CFLAGS
879 XML_LIBS
880 CURL_CFLAGS
881 CURL_LIBS
882 currentdir
883 pluginsdir
884 servicesdir
885 DEBUG_CFLAGS
886 PACKAGE_LOCALE_DIR
887 LIB@&t@OBJS
888 LTLIBOBJS'
889 ac_subst_files=''
890       ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CXX
899 CXXFLAGS
900 CCC
901 CPP
902 CXXCPP
903 F77
904 FFLAGS
905 PKG_CONFIG
906 PACKAGE_CFLAGS
907 PACKAGE_LIBS
908 SHARING_CFLAGS
909 SHARING_LIBS
910 XML_CFLAGS
911 XML_LIBS
912 CURL_CFLAGS
913 CURL_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
935
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
961
962 ac_prev=
963 ac_dashdash=
964 for ac_option
965 do
966   # If the previous option needs an argument, assign it.
967   if test -n "$ac_prev"; then
968     eval $ac_prev=\$ac_option
969     ac_prev=
970     continue
971   fi
972
973   case $ac_option in
974   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975   *)    ac_optarg=yes ;;
976   esac
977
978   # Accept the important Cygnus configure options, so we can diagnose typos.
979
980   case $ac_dashdash$ac_option in
981   --)
982     ac_dashdash=yes ;;
983
984   -bindir | --bindir | --bindi | --bind | --bin | --bi)
985     ac_prev=bindir ;;
986   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987     bindir=$ac_optarg ;;
988
989   -build | --build | --buil | --bui | --bu)
990     ac_prev=build_alias ;;
991   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992     build_alias=$ac_optarg ;;
993
994   -cache-file | --cache-file | --cache-fil | --cache-fi \
995   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996     ac_prev=cache_file ;;
997   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999     cache_file=$ac_optarg ;;
1000
1001   --config-cache | -C)
1002     cache_file=config.cache ;;
1003
1004   -datadir | --datadir | --datadi | --datad)
1005     ac_prev=datadir ;;
1006   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007     datadir=$ac_optarg ;;
1008
1009   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010   | --dataroo | --dataro | --datar)
1011     ac_prev=datarootdir ;;
1012   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014     datarootdir=$ac_optarg ;;
1015
1016   -disable-* | --disable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=no ;;
1024
1025   -docdir | --docdir | --docdi | --doc | --do)
1026     ac_prev=docdir ;;
1027   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028     docdir=$ac_optarg ;;
1029
1030   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031     ac_prev=dvidir ;;
1032   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033     dvidir=$ac_optarg ;;
1034
1035   -enable-* | --enable-*)
1036     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037     # Reject names that are not valid shell variable names.
1038     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040    { (exit 1); exit 1; }; }
1041     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042     eval enable_$ac_feature=\$ac_optarg ;;
1043
1044   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046   | --exec | --exe | --ex)
1047     ac_prev=exec_prefix ;;
1048   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050   | --exec=* | --exe=* | --ex=*)
1051     exec_prefix=$ac_optarg ;;
1052
1053   -gas | --gas | --ga | --g)
1054     # Obsolete; use --with-gas.
1055     with_gas=yes ;;
1056
1057   -help | --help | --hel | --he | -h)
1058     ac_init_help=long ;;
1059   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060     ac_init_help=recursive ;;
1061   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062     ac_init_help=short ;;
1063
1064   -host | --host | --hos | --ho)
1065     ac_prev=host_alias ;;
1066   -host=* | --host=* | --hos=* | --ho=*)
1067     host_alias=$ac_optarg ;;
1068
1069   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070     ac_prev=htmldir ;;
1071   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072   | --ht=*)
1073     htmldir=$ac_optarg ;;
1074
1075   -includedir | --includedir | --includedi | --included | --include \
1076   | --includ | --inclu | --incl | --inc)
1077     ac_prev=includedir ;;
1078   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079   | --includ=* | --inclu=* | --incl=* | --inc=*)
1080     includedir=$ac_optarg ;;
1081
1082   -infodir | --infodir | --infodi | --infod | --info | --inf)
1083     ac_prev=infodir ;;
1084   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085     infodir=$ac_optarg ;;
1086
1087   -libdir | --libdir | --libdi | --libd)
1088     ac_prev=libdir ;;
1089   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090     libdir=$ac_optarg ;;
1091
1092   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093   | --libexe | --libex | --libe)
1094     ac_prev=libexecdir ;;
1095   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096   | --libexe=* | --libex=* | --libe=*)
1097     libexecdir=$ac_optarg ;;
1098
1099   -localedir | --localedir | --localedi | --localed | --locale)
1100     ac_prev=localedir ;;
1101   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102     localedir=$ac_optarg ;;
1103
1104   -localstatedir | --localstatedir | --localstatedi | --localstated \
1105   | --localstate | --localstat | --localsta | --localst | --locals)
1106     ac_prev=localstatedir ;;
1107   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109     localstatedir=$ac_optarg ;;
1110
1111   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112     ac_prev=mandir ;;
1113   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114     mandir=$ac_optarg ;;
1115
1116   -nfp | --nfp | --nf)
1117     # Obsolete; use --without-fp.
1118     with_fp=no ;;
1119
1120   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121   | --no-cr | --no-c | -n)
1122     no_create=yes ;;
1123
1124   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126     no_recursion=yes ;;
1127
1128   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130   | --oldin | --oldi | --old | --ol | --o)
1131     ac_prev=oldincludedir ;;
1132   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135     oldincludedir=$ac_optarg ;;
1136
1137   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138     ac_prev=prefix ;;
1139   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140     prefix=$ac_optarg ;;
1141
1142   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143   | --program-pre | --program-pr | --program-p)
1144     ac_prev=program_prefix ;;
1145   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147     program_prefix=$ac_optarg ;;
1148
1149   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150   | --program-suf | --program-su | --program-s)
1151     ac_prev=program_suffix ;;
1152   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154     program_suffix=$ac_optarg ;;
1155
1156   -program-transform-name | --program-transform-name \
1157   | --program-transform-nam | --program-transform-na \
1158   | --program-transform-n | --program-transform- \
1159   | --program-transform | --program-transfor \
1160   | --program-transfo | --program-transf \
1161   | --program-trans | --program-tran \
1162   | --progr-tra | --program-tr | --program-t)
1163     ac_prev=program_transform_name ;;
1164   -program-transform-name=* | --program-transform-name=* \
1165   | --program-transform-nam=* | --program-transform-na=* \
1166   | --program-transform-n=* | --program-transform-=* \
1167   | --program-transform=* | --program-transfor=* \
1168   | --program-transfo=* | --program-transf=* \
1169   | --program-trans=* | --program-tran=* \
1170   | --progr-tra=* | --program-tr=* | --program-t=*)
1171     program_transform_name=$ac_optarg ;;
1172
1173   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174     ac_prev=pdfdir ;;
1175   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176     pdfdir=$ac_optarg ;;
1177
1178   -psdir | --psdir | --psdi | --psd | --ps)
1179     ac_prev=psdir ;;
1180   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181     psdir=$ac_optarg ;;
1182
1183   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184   | -silent | --silent | --silen | --sile | --sil)
1185     silent=yes ;;
1186
1187   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188     ac_prev=sbindir ;;
1189   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190   | --sbi=* | --sb=*)
1191     sbindir=$ac_optarg ;;
1192
1193   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195   | --sharedst | --shareds | --shared | --share | --shar \
1196   | --sha | --sh)
1197     ac_prev=sharedstatedir ;;
1198   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201   | --sha=* | --sh=*)
1202     sharedstatedir=$ac_optarg ;;
1203
1204   -site | --site | --sit)
1205     ac_prev=site ;;
1206   -site=* | --site=* | --sit=*)
1207     site=$ac_optarg ;;
1208
1209   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210     ac_prev=srcdir ;;
1211   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212     srcdir=$ac_optarg ;;
1213
1214   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215   | --syscon | --sysco | --sysc | --sys | --sy)
1216     ac_prev=sysconfdir ;;
1217   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219     sysconfdir=$ac_optarg ;;
1220
1221   -target | --target | --targe | --targ | --tar | --ta | --t)
1222     ac_prev=target_alias ;;
1223   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224     target_alias=$ac_optarg ;;
1225
1226   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227     verbose=yes ;;
1228
1229   -version | --version | --versio | --versi | --vers | -V)
1230     ac_init_version=: ;;
1231
1232   -with-* | --with-*)
1233     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236       { echo "$as_me: error: invalid package name: $ac_package" >&2
1237    { (exit 1); exit 1; }; }
1238     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239     eval with_$ac_package=\$ac_optarg ;;
1240
1241   -without-* | --without-*)
1242     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245       { echo "$as_me: error: invalid package name: $ac_package" >&2
1246    { (exit 1); exit 1; }; }
1247     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248     eval with_$ac_package=no ;;
1249
1250   --x)
1251     # Obsolete; use --with-x.
1252     with_x=yes ;;
1253
1254   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255   | --x-incl | --x-inc | --x-in | --x-i)
1256     ac_prev=x_includes ;;
1257   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259     x_includes=$ac_optarg ;;
1260
1261   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263     ac_prev=x_libraries ;;
1264   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266     x_libraries=$ac_optarg ;;
1267
1268   -*) { echo "$as_me: error: unrecognized option: $ac_option
1269 Try \`$0 --help' for more information." >&2
1270    { (exit 1); exit 1; }; }
1271     ;;
1272
1273   *=*)
1274     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278    { (exit 1); exit 1; }; }
1279     eval $ac_envvar=\$ac_optarg
1280     export $ac_envvar ;;
1281
1282   *)
1283     # FIXME: should be removed in autoconf 3.0.
1284     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288     ;;
1289
1290   esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295   { echo "$as_me: error: missing argument to $ac_option" >&2
1296    { (exit 1); exit 1; }; }
1297 fi
1298
1299 # Be sure to have absolute directory names.
1300 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301                 datadir sysconfdir sharedstatedir localstatedir includedir \
1302                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303                 libdir localedir mandir
1304 do
1305   eval ac_val=\$$ac_var
1306   case $ac_val in
1307     [\\/$]* | ?:[\\/]* )  continue;;
1308     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309   esac
1310   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311    { (exit 1); exit 1; }; }
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323   if test "x$build_alias" = x; then
1324     cross_compiling=maybe
1325     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326     If a cross compiler is detected then cross compile mode will be used." >&2
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   { echo "$as_me: error: Working directory cannot be determined" >&2
1342    { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   { echo "$as_me: error: pwd does not report name of working directory" >&2
1345    { (exit 1); exit 1; }; }
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$0" ||
1353 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$0" : 'X\(//\)[^/]' \| \
1355          X"$0" : 'X\(//\)$' \| \
1356          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357 echo X"$0" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390    { (exit 1); exit 1; }; }
1391         pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394   srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_env_${ac_var}_value=\$${ac_var}
1405   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413   # Omit some internal or obsolete options to make the list less imposing.
1414   # This message is too long to be a string in the A/UX 3.1 sh.
1415   cat <<_ACEOF
1416 \`configure' configures yandex-fotki-sharing-plugin 0.1 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426   -h, --help              display this help and exit
1427       --help=short        display options specific to this package
1428       --help=recursive    display the short help of all the included packages
1429   -V, --version           display version information and exit
1430   -q, --quiet, --silent   do not print \`checking...' messages
1431       --cache-file=FILE   cache test results in FILE [disabled]
1432   -C, --config-cache      alias for \`--cache-file=config.cache'
1433   -n, --no-create         do not create output files
1434       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437   --prefix=PREFIX         install architecture-independent files in PREFIX
1438                           [$ac_default_prefix]
1439   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                           [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450   --bindir=DIR           user executables [EPREFIX/bin]
1451   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1452   --libexecdir=DIR       program executables [EPREFIX/libexec]
1453   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1454   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1455   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1456   --libdir=DIR           object code libraries [EPREFIX/lib]
1457   --includedir=DIR       C header files [PREFIX/include]
1458   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1459   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1460   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1461   --infodir=DIR          info documentation [DATAROOTDIR/info]
1462   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1463   --mandir=DIR           man documentation [DATAROOTDIR/man]
1464   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/yandex-fotki-sharing-plugin@:>@
1465   --htmldir=DIR          html documentation [DOCDIR]
1466   --dvidir=DIR           dvi documentation [DOCDIR]
1467   --pdfdir=DIR           pdf documentation [DOCDIR]
1468   --psdir=DIR            ps documentation [DOCDIR]
1469 _ACEOF
1470
1471   cat <<\_ACEOF
1472
1473 Program names:
1474   --program-prefix=PREFIX            prepend PREFIX to installed program names
1475   --program-suffix=SUFFIX            append SUFFIX to installed program names
1476   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
1478 System types:
1479   --build=BUILD     configure for building on BUILD [guessed]
1480   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485   case $ac_init_help in
1486      short | recursive ) echo "Configuration of yandex-fotki-sharing-plugin 0.1:";;
1487    esac
1488   cat <<\_ACEOF
1489
1490 Optional Features:
1491   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493   --enable-maintainer-mode  enable make rules and dependencies not useful
1494                           (and sometimes confusing) to the casual installer
1495   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1496   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
1497   --disable-dependency-tracking  speeds up one-time build
1498   --enable-dependency-tracking   do not reject slow dependency extractors
1499   --enable-fast-install@<:@=PKGS@:>@ 
1500                           optimize for fast installation @<:@default=yes@:>@
1501   --disable-libtool-lock  avoid locking (might break parallel builds)
1502   --enable-debug          Turn on debug messages
1503
1504 Optional Packages:
1505   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1508   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1509                           both@:>@
1510   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1511
1512 Some influential environment variables:
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516               nonstandard directory <lib dir>
1517   LIBS        libraries to pass to the linker, e.g. -l<library>
1518   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519               you have headers in a nonstandard directory <include dir>
1520   CXX         C++ compiler command
1521   CXXFLAGS    C++ compiler flags
1522   CPP         C preprocessor
1523   CXXCPP      C++ preprocessor
1524   F77         Fortran 77 compiler command
1525   FFLAGS      Fortran 77 compiler flags
1526   PKG_CONFIG  path to pkg-config utility
1527   PACKAGE_CFLAGS 
1528               C compiler flags for PACKAGE, overriding pkg-config
1529   PACKAGE_LIBS 
1530               linker flags for PACKAGE, overriding pkg-config
1531   SHARING_CFLAGS 
1532               C compiler flags for SHARING, overriding pkg-config
1533   SHARING_LIBS 
1534               linker flags for SHARING, overriding pkg-config
1535   XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1536   XML_LIBS    linker flags for XML, overriding pkg-config
1537   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1538   CURL_LIBS   linker flags for CURL, overriding pkg-config
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548   # If there are subdirs, report their specific --help.
1549   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550     test -d "$ac_dir" || continue
1551     ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557   # A ".." for each directory in $ac_dir_suffix.
1558   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559   case $ac_top_builddir_sub in
1560   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562   esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570   .)  # We are building in place.
1571     ac_srcdir=.
1572     ac_top_srcdir=$ac_top_builddir_sub
1573     ac_abs_top_srcdir=$ac_pwd ;;
1574   [\\/]* | ?:[\\/]* )  # Absolute name.
1575     ac_srcdir=$srcdir$ac_dir_suffix;
1576     ac_top_srcdir=$srcdir
1577     ac_abs_top_srcdir=$srcdir ;;
1578   *) # Relative name.
1579     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580     ac_top_srcdir=$ac_top_build_prefix$srcdir
1581     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585     cd "$ac_dir" || { ac_status=$?; continue; }
1586     # Check for guested configure.
1587     if test -f "$ac_srcdir/configure.gnu"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590     elif test -f "$ac_srcdir/configure"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure" --help=recursive
1593     else
1594       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595     fi || ac_status=$?
1596     cd "$ac_pwd" || { ac_status=$?; break; }
1597   done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602   cat <<\_ACEOF
1603 yandex-fotki-sharing-plugin configure 0.1
1604 generated by GNU Autoconf 2.61
1605
1606 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611   exit
1612 fi
1613 cat >config.log <<_ACEOF
1614 This file contains any messages produced by compilers while
1615 running configure, to aid debugging if configure makes a mistake.
1616
1617 It was created by yandex-fotki-sharing-plugin $as_me 0.1, which was
1618 generated by GNU Autoconf 2.61.  Invocation command line was
1619
1620   $ $0 $@
1621
1622 _ACEOF
1623 exec 5>>config.log
1624 {
1625 cat <<_ASUNAME
1626 @%:@@%:@ --------- @%:@@%:@
1627 @%:@@%:@ Platform. @%:@@%:@
1628 @%:@@%:@ --------- @%:@@%:@
1629
1630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635
1636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1638
1639 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1640 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1643 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1644 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1645 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1646
1647 _ASUNAME
1648
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   echo "PATH: $as_dir"
1655 done
1656 IFS=$as_save_IFS
1657
1658 } >&5
1659
1660 cat >&5 <<_ACEOF
1661
1662
1663 @%:@@%:@ ----------- @%:@@%:@
1664 @%:@@%:@ Core tests. @%:@@%:@
1665 @%:@@%:@ ----------- @%:@@%:@
1666
1667 _ACEOF
1668
1669
1670 # Keep a trace of the command line.
1671 # Strip out --no-create and --no-recursion so they do not pile up.
1672 # Strip out --silent because we don't want to record it for future runs.
1673 # Also quote any args containing shell meta-characters.
1674 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_configure_args=
1676 ac_configure_args0=
1677 ac_configure_args1=
1678 ac_must_keep_next=false
1679 for ac_pass in 1 2
1680 do
1681   for ac_arg
1682   do
1683     case $ac_arg in
1684     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686     | -silent | --silent | --silen | --sile | --sil)
1687       continue ;;
1688     *\'*)
1689       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1690     esac
1691     case $ac_pass in
1692     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693     2)
1694       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695       if test $ac_must_keep_next = true; then
1696         ac_must_keep_next=false # Got value, back to normal.
1697       else
1698         case $ac_arg in
1699           *=* | --config-cache | -C | -disable-* | --disable-* \
1700           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702           | -with-* | --with-* | -without-* | --without-* | --x)
1703             case "$ac_configure_args0 " in
1704               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1705             esac
1706             ;;
1707           -* ) ac_must_keep_next=true ;;
1708         esac
1709       fi
1710       ac_configure_args="$ac_configure_args '$ac_arg'"
1711       ;;
1712     esac
1713   done
1714 done
1715 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717
1718 # When interrupted or exit'd, cleanup temporary files, and complete
1719 # config.log.  We remove comments because anyway the quotes in there
1720 # would cause problems or look ugly.
1721 # WARNING: Use '\'' to represent an apostrophe within the trap.
1722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723 trap 'exit_status=$?
1724   # Save into config.log some information that might help in debugging.
1725   {
1726     echo
1727
1728     cat <<\_ASBOX
1729 @%:@@%:@ ---------------- @%:@@%:@
1730 @%:@@%:@ Cache variables. @%:@@%:@
1731 @%:@@%:@ ---------------- @%:@@%:@
1732 _ASBOX
1733     echo
1734     # The following way of writing the cache mishandles newlines in values,
1735 (
1736   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737     eval ac_val=\$$ac_var
1738     case $ac_val in #(
1739     *${as_nl}*)
1740       case $ac_var in #(
1741       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1743       esac
1744       case $ac_var in #(
1745       _ | IFS | as_nl) ;; #(
1746       *) $as_unset $ac_var ;;
1747       esac ;;
1748     esac
1749   done
1750   (set) 2>&1 |
1751     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752     *${as_nl}ac_space=\ *)
1753       sed -n \
1754         "s/'\''/'\''\\\\'\'''\''/g;
1755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756       ;; #(
1757     *)
1758       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759       ;;
1760     esac |
1761     sort
1762 )
1763     echo
1764
1765     cat <<\_ASBOX
1766 @%:@@%:@ ----------------- @%:@@%:@
1767 @%:@@%:@ Output variables. @%:@@%:@
1768 @%:@@%:@ ----------------- @%:@@%:@
1769 _ASBOX
1770     echo
1771     for ac_var in $ac_subst_vars
1772     do
1773       eval ac_val=\$$ac_var
1774       case $ac_val in
1775       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776       esac
1777       echo "$ac_var='\''$ac_val'\''"
1778     done | sort
1779     echo
1780
1781     if test -n "$ac_subst_files"; then
1782       cat <<\_ASBOX
1783 @%:@@%:@ ------------------- @%:@@%:@
1784 @%:@@%:@ File substitutions. @%:@@%:@
1785 @%:@@%:@ ------------------- @%:@@%:@
1786 _ASBOX
1787       echo
1788       for ac_var in $ac_subst_files
1789       do
1790         eval ac_val=\$$ac_var
1791         case $ac_val in
1792         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793         esac
1794         echo "$ac_var='\''$ac_val'\''"
1795       done | sort
1796       echo
1797     fi
1798
1799     if test -s confdefs.h; then
1800       cat <<\_ASBOX
1801 @%:@@%:@ ----------- @%:@@%:@
1802 @%:@@%:@ confdefs.h. @%:@@%:@
1803 @%:@@%:@ ----------- @%:@@%:@
1804 _ASBOX
1805       echo
1806       cat confdefs.h
1807       echo
1808     fi
1809     test "$ac_signal" != 0 &&
1810       echo "$as_me: caught signal $ac_signal"
1811     echo "$as_me: exit $exit_status"
1812   } >&5
1813   rm -f core *.core core.conftest.* &&
1814     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815     exit $exit_status
1816 ' 0
1817 for ac_signal in 1 2 13 15; do
1818   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 done
1820 ac_signal=0
1821
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1824
1825 # Predefined preprocessor variables.
1826
1827 cat >>confdefs.h <<_ACEOF
1828 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 _ACEOF
1850
1851
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855   set x "$CONFIG_SITE"
1856 elif test "x$prefix" != xNONE; then
1857   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 else
1859   set x "$ac_default_prefix/share/config.site" \
1860         "$ac_default_prefix/etc/config.site"
1861 fi
1862 shift
1863 for ac_site_file
1864 do
1865   if test -r "$ac_site_file"; then
1866     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 echo "$as_me: loading site script $ac_site_file" >&6;}
1868     sed 's/^/| /' "$ac_site_file" >&5
1869     . "$ac_site_file"
1870   fi
1871 done
1872
1873 if test -r "$cache_file"; then
1874   # Some versions of bash will fail to source /dev/null (special
1875   # files actually), so we avoid doing that.
1876   if test -f "$cache_file"; then
1877     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 echo "$as_me: loading cache $cache_file" >&6;}
1879     case $cache_file in
1880       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881       *)                      . "./$cache_file";;
1882     esac
1883   fi
1884 else
1885   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 echo "$as_me: creating cache $cache_file" >&6;}
1887   >$cache_file
1888 fi
1889
1890 # Check that the precious variables saved in the cache have kept the same
1891 # value.
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895   eval ac_new_set=\$ac_env_${ac_var}_set
1896   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897   eval ac_new_val=\$ac_env_${ac_var}_value
1898   case $ac_old_set,$ac_new_set in
1899     set,)
1900       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902       ac_cache_corrupted=: ;;
1903     ,set)
1904       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906       ac_cache_corrupted=: ;;
1907     ,);;
1908     *)
1909       if test "x$ac_old_val" != "x$ac_new_val"; then
1910         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1913 echo "$as_me:   former value:  $ac_old_val" >&2;}
1914         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1915 echo "$as_me:   current value: $ac_new_val" >&2;}
1916         ac_cache_corrupted=:
1917       fi;;
1918   esac
1919   # Pass precious variables to config.status.
1920   if test "$ac_new_set" = set; then
1921     case $ac_new_val in
1922     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923     *) ac_arg=$ac_var=$ac_new_val ;;
1924     esac
1925     case " $ac_configure_args " in
1926       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1927       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928     esac
1929   fi
1930 done
1931 if $ac_cache_corrupted; then
1932   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936    { (exit 1); exit 1; }; }
1937 fi
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970 am__api_version="1.8"
1971 ac_aux_dir=
1972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1973   if test -f "$ac_dir/install-sh"; then
1974     ac_aux_dir=$ac_dir
1975     ac_install_sh="$ac_aux_dir/install-sh -c"
1976     break
1977   elif test -f "$ac_dir/install.sh"; then
1978     ac_aux_dir=$ac_dir
1979     ac_install_sh="$ac_aux_dir/install.sh -c"
1980     break
1981   elif test -f "$ac_dir/shtool"; then
1982     ac_aux_dir=$ac_dir
1983     ac_install_sh="$ac_aux_dir/shtool install -c"
1984     break
1985   fi
1986 done
1987 if test -z "$ac_aux_dir"; then
1988   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1989 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1990    { (exit 1); exit 1; }; }
1991 fi
1992
1993 # These three variables are undocumented and unsupported,
1994 # and are intended to be withdrawn in a future Autoconf release.
1995 # They can cause serious problems if a builder's source tree is in a directory
1996 # whose full name contains unusual characters.
1997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1999 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2000
2001
2002 # Find a good install program.  We prefer a C program (faster),
2003 # so one script is as good as another.  But avoid the broken or
2004 # incompatible versions:
2005 # SysV /etc/install, /usr/sbin/install
2006 # SunOS /usr/etc/install
2007 # IRIX /sbin/install
2008 # AIX /bin/install
2009 # AmigaOS /C/install, which installs bootblocks on floppy discs
2010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2013 # OS/2's system install, which has a completely different semantic
2014 # ./install, which can be erroneously created by make from ./install.sh.
2015 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2017 if test -z "$INSTALL"; then
2018 if test "${ac_cv_path_install+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   # Account for people who put trailing slashes in PATH elements.
2027 case $as_dir/ in
2028   ./ | .// | /cC/* | \
2029   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2030   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2031   /usr/ucb/* ) ;;
2032   *)
2033     # OSF1 and SCO ODT 3.0 have their own names for install.
2034     # Don't use installbsd from OSF since it installs stuff as root
2035     # by default.
2036     for ac_prog in ginstall scoinst install; do
2037       for ac_exec_ext in '' $ac_executable_extensions; do
2038         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2039           if test $ac_prog = install &&
2040             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2041             # AIX install.  It has an incompatible calling convention.
2042             :
2043           elif test $ac_prog = install &&
2044             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2045             # program-specific install script used by HP pwplus--don't use.
2046             :
2047           else
2048             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2049             break 3
2050           fi
2051         fi
2052       done
2053     done
2054     ;;
2055 esac
2056 done
2057 IFS=$as_save_IFS
2058
2059
2060 fi
2061   if test "${ac_cv_path_install+set}" = set; then
2062     INSTALL=$ac_cv_path_install
2063   else
2064     # As a last resort, use the slow shell script.  Don't cache a
2065     # value for INSTALL within a source directory, because that will
2066     # break other packages using the cache if that directory is
2067     # removed, or if the value is a relative name.
2068     INSTALL=$ac_install_sh
2069   fi
2070 fi
2071 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2072 echo "${ECHO_T}$INSTALL" >&6; }
2073
2074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2075 # It thinks the first close brace ends the variable substitution.
2076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2077
2078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2079
2080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2081
2082 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2083 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2084 # Just in case
2085 sleep 1
2086 echo timestamp > conftest.file
2087 # Do `set' in a subshell so we don't clobber the current shell's
2088 # arguments.  Must try -L first in case configure is actually a
2089 # symlink; some systems play weird games with the mod time of symlinks
2090 # (eg FreeBSD returns the mod time of the symlink's containing
2091 # directory).
2092 if (
2093    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2094    if test "$*" = "X"; then
2095       # -L didn't work.
2096       set X `ls -t $srcdir/configure conftest.file`
2097    fi
2098    rm -f conftest.file
2099    if test "$*" != "X $srcdir/configure conftest.file" \
2100       && test "$*" != "X conftest.file $srcdir/configure"; then
2101
2102       # If neither matched, then we have a broken ls.  This can happen
2103       # if, for instance, CONFIG_SHELL is bash and it inherits a
2104       # broken ls alias from the environment.  This has actually
2105       # happened.  Such a system could not be considered "sane".
2106       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2107 alias in your environment" >&5
2108 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2109 alias in your environment" >&2;}
2110    { (exit 1); exit 1; }; }
2111    fi
2112
2113    test "$2" = conftest.file
2114    )
2115 then
2116    # Ok.
2117    :
2118 else
2119    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2120 Check your system clock" >&5
2121 echo "$as_me: error: newly created file is older than distributed files!
2122 Check your system clock" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2125 { echo "$as_me:$LINENO: result: yes" >&5
2126 echo "${ECHO_T}yes" >&6; }
2127 test "$program_prefix" != NONE &&
2128   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2129 # Use a double $ so make ignores it.
2130 test "$program_suffix" != NONE &&
2131   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2132 # Double any \ or $.  echo might interpret backslashes.
2133 # By default was `s,x,x', remove it if useless.
2134 cat <<\_ACEOF >conftest.sed
2135 s/[\\$]/&&/g;s/;s,x,x,$//
2136 _ACEOF
2137 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2138 rm -f conftest.sed
2139
2140 # expand $ac_aux_dir to an absolute path
2141 am_aux_dir=`cd $ac_aux_dir && pwd`
2142
2143 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2144 # Use eval to expand $SHELL
2145 if eval "$MISSING --run true"; then
2146   am_missing_run="$MISSING --run "
2147 else
2148   am_missing_run=
2149   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2150 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2151 fi
2152
2153 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2154   # Keeping the `.' argument allows $(mkdir_p) to be used without
2155   # argument.  Indeed, we sometimes output rules like
2156   #   $(mkdir_p) $(somedir)
2157   # where $(somedir) is conditionally defined.
2158   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2159   # expensive solution, as it forces Make to start a sub-shell.)
2160   mkdir_p='mkdir -p -- .'
2161 else
2162   # On NextStep and OpenStep, the `mkdir' command does not
2163   # recognize any option.  It will interpret all options as
2164   # directories to create, and then abort because `.' already
2165   # exists.
2166   for d in ./-p ./--version;
2167   do
2168     test -d $d && rmdir $d
2169   done
2170   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2171   if test -f "$ac_aux_dir/mkinstalldirs"; then
2172     mkdir_p='$(mkinstalldirs)'
2173   else
2174     mkdir_p='$(install_sh) -d'
2175   fi
2176 fi
2177
2178 for ac_prog in gawk mawk nawk awk
2179 do
2180   # Extract the first word of "$ac_prog", so it can be a program name with args.
2181 set dummy $ac_prog; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_AWK+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$AWK"; then
2188   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197     ac_cv_prog_AWK="$ac_prog"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203 IFS=$as_save_IFS
2204
2205 fi
2206 fi
2207 AWK=$ac_cv_prog_AWK
2208 if test -n "$AWK"; then
2209   { echo "$as_me:$LINENO: result: $AWK" >&5
2210 echo "${ECHO_T}$AWK" >&6; }
2211 else
2212   { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 fi
2215
2216
2217   test -n "$AWK" && break
2218 done
2219
2220 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2221 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2222 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2223 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   cat >conftest.make <<\_ACEOF
2227 SHELL = /bin/sh
2228 all:
2229         @echo '@@@%%%=$(MAKE)=@@@%%%'
2230 _ACEOF
2231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2233   *@@@%%%=?*=@@@%%%*)
2234     eval ac_cv_prog_make_${ac_make}_set=yes;;
2235   *)
2236     eval ac_cv_prog_make_${ac_make}_set=no;;
2237 esac
2238 rm -f conftest.make
2239 fi
2240 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2241   { echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6; }
2243   SET_MAKE=
2244 else
2245   { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2247   SET_MAKE="MAKE=${MAKE-make}"
2248 fi
2249
2250 rm -rf .tst 2>/dev/null
2251 mkdir .tst 2>/dev/null
2252 if test -d .tst; then
2253   am__leading_dot=.
2254 else
2255   am__leading_dot=_
2256 fi
2257 rmdir .tst 2>/dev/null
2258
2259 # test to see if srcdir already configured
2260 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2261    test -f $srcdir/config.status; then
2262   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2263 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264    { (exit 1); exit 1; }; }
2265 fi
2266
2267 # test whether we have cygpath
2268 if test -z "$CYGPATH_W"; then
2269   if (cygpath --version) >/dev/null 2>/dev/null; then
2270     CYGPATH_W='cygpath -w'
2271   else
2272     CYGPATH_W=echo
2273   fi
2274 fi
2275
2276
2277 # Define the identity of the package.
2278  PACKAGE='yandex-fotki-sharing-plugin'
2279  VERSION='0.1'
2280
2281
2282 cat >>confdefs.h <<_ACEOF
2283 @%:@define PACKAGE "$PACKAGE"
2284 _ACEOF
2285
2286  
2287 cat >>confdefs.h <<_ACEOF
2288 @%:@define VERSION "$VERSION"
2289 _ACEOF
2290
2291 # Some tools Automake needs.
2292
2293 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2294
2295
2296 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2297
2298
2299 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2300
2301
2302 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2303
2304
2305 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2306
2307
2308 AMTAR=${AMTAR-"${am_missing_run}tar"}
2309
2310 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2311
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'.  However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317   if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   if test -n "$STRIP"; then
2326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347   { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2349 else
2350   { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 fi
2353
2354
2355 fi
2356 if test -z "$ac_cv_prog_STRIP"; then
2357   ac_ct_STRIP=$STRIP
2358   # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$ac_ct_STRIP"; then
2366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_ac_ct_STRIP="strip"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2389 else
2390   { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2392 fi
2393
2394   if test "x$ac_ct_STRIP" = x; then
2395     STRIP=":"
2396   else
2397     case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet.  If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet.  If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407     STRIP=$ac_ct_STRIP
2408   fi
2409 else
2410   STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2415
2416 # We need awk for the "check" target.  The system "awk" is bad on
2417 # some platforms.
2418
2419
2420
2421
2422 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2423 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2424     # Check whether --enable-maintainer-mode was given.
2425 if test "${enable_maintainer_mode+set}" = set; then
2426   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2427 else
2428   USE_MAINTAINER_MODE=no
2429 fi
2430
2431   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2432 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2433    
2434
2435 if test $USE_MAINTAINER_MODE = yes; then
2436   MAINTAINER_MODE_TRUE=
2437   MAINTAINER_MODE_FALSE='#'
2438 else
2439   MAINTAINER_MODE_TRUE='#'
2440   MAINTAINER_MODE_FALSE=
2441 fi
2442
2443   MAINT=$MAINTAINER_MODE_TRUE
2444   
2445
2446 ac_config_headers="$ac_config_headers config.h"
2447
2448
2449
2450
2451 # Check whether --enable-shared was given.
2452 if test "${enable_shared+set}" = set; then
2453   enableval=$enable_shared; p=${PACKAGE-default}
2454     case $enableval in
2455     yes) enable_shared=yes ;;
2456     no) enable_shared=no ;;
2457     *)
2458       enable_shared=no
2459       # Look at the argument we got.  We use all the common list separators.
2460       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2461       for pkg in $enableval; do
2462         IFS="$lt_save_ifs"
2463         if test "X$pkg" = "X$p"; then
2464           enable_shared=yes
2465         fi
2466       done
2467       IFS="$lt_save_ifs"
2468       ;;
2469     esac
2470 else
2471   enable_shared=yes
2472 fi
2473
2474
2475 # Check whether --enable-static was given.
2476 if test "${enable_static+set}" = set; then
2477   enableval=$enable_static; p=${PACKAGE-default}
2478     case $enableval in
2479     yes) enable_static=yes ;;
2480     no) enable_static=no ;;
2481     *)
2482      enable_static=no
2483       # Look at the argument we got.  We use all the common list separators.
2484       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2485       for pkg in $enableval; do
2486         IFS="$lt_save_ifs"
2487         if test "X$pkg" = "X$p"; then
2488           enable_static=yes
2489         fi
2490       done
2491       IFS="$lt_save_ifs"
2492       ;;
2493     esac
2494 else
2495   enable_static=no
2496 fi
2497
2498
2499 DEPDIR="${am__leading_dot}deps"
2500
2501 ac_config_commands="$ac_config_commands depfiles"
2502
2503
2504 am_make=${MAKE-make}
2505 cat > confinc << 'END'
2506 am__doit:
2507         @echo done
2508 .PHONY: am__doit
2509 END
2510 # If we don't find an include directive, just comment out the code.
2511 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2512 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2513 am__include="#"
2514 am__quote=
2515 _am_result=none
2516 # First try GNU make style include.
2517 echo "include confinc" > confmf
2518 # We grep out `Entering directory' and `Leaving directory'
2519 # messages which can occur if `w' ends up in MAKEFLAGS.
2520 # In particular we don't look at `^make:' because GNU make might
2521 # be invoked under some other name (usually "gmake"), in which
2522 # case it prints its new name instead of `make'.
2523 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2524    am__include=include
2525    am__quote=
2526    _am_result=GNU
2527 fi
2528 # Now try BSD make style include.
2529 if test "$am__include" = "#"; then
2530    echo '.include "confinc"' > confmf
2531    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2532       am__include=.include
2533       am__quote="\""
2534       _am_result=BSD
2535    fi
2536 fi
2537
2538
2539 { echo "$as_me:$LINENO: result: $_am_result" >&5
2540 echo "${ECHO_T}$_am_result" >&6; }
2541 rm -f confinc confmf
2542
2543 # Check whether --enable-dependency-tracking was given.
2544 if test "${enable_dependency_tracking+set}" = set; then
2545   enableval=$enable_dependency_tracking; 
2546 fi
2547
2548 if test "x$enable_dependency_tracking" != xno; then
2549   am_depcomp="$ac_aux_dir/depcomp"
2550   AMDEPBACKSLASH='\'
2551 fi
2552  
2553
2554 if test "x$enable_dependency_tracking" != xno; then
2555   AMDEP_TRUE=
2556   AMDEP_FALSE='#'
2557 else
2558   AMDEP_TRUE='#'
2559   AMDEP_FALSE=
2560 fi
2561
2562
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   if test -n "$CC"; then
2578   ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585   for ac_exec_ext in '' $ac_executable_extensions; do
2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599   { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2601 else
2602   { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2604 fi
2605
2606
2607 fi
2608 if test -z "$ac_cv_prog_CC"; then
2609   ac_ct_CC=$CC
2610   # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$ac_ct_CC"; then
2618   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623   IFS=$as_save_IFS
2624   test -z "$as_dir" && as_dir=.
2625   for ac_exec_ext in '' $ac_executable_extensions; do
2626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627     ac_cv_prog_ac_ct_CC="gcc"
2628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629     break 2
2630   fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640 echo "${ECHO_T}$ac_ct_CC" >&6; }
2641 else
2642   { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2644 fi
2645
2646   if test "x$ac_ct_CC" = x; then
2647     CC=""
2648   else
2649     case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet.  If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&5
2654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet.  If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657 ac_tool_warned=yes ;;
2658 esac
2659     CC=$ac_ct_CC
2660   fi
2661 else
2662   CC="$ac_cv_prog_CC"
2663 fi
2664
2665 if test -z "$CC"; then
2666           if test -n "$ac_tool_prefix"; then
2667     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}cc; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   if test -n "$CC"; then
2675   ac_cv_prog_CC="$CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682   for ac_exec_ext in '' $ac_executable_extensions; do
2683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684     ac_cv_prog_CC="${ac_tool_prefix}cc"
2685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 CC=$ac_cv_prog_CC
2695 if test -n "$CC"; then
2696   { echo "$as_me:$LINENO: result: $CC" >&5
2697 echo "${ECHO_T}$CC" >&6; }
2698 else
2699   { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2701 fi
2702
2703
2704   fi
2705 fi
2706 if test -z "$CC"; then
2707   # Extract the first word of "cc", so it can be a program name with args.
2708 set dummy cc; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   if test -n "$CC"; then
2715   ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717   ac_prog_rejected=no
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721   IFS=$as_save_IFS
2722   test -z "$as_dir" && as_dir=.
2723   for ac_exec_ext in '' $ac_executable_extensions; do
2724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2726        ac_prog_rejected=yes
2727        continue
2728      fi
2729     ac_cv_prog_CC="cc"
2730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 if test $ac_prog_rejected = yes; then
2738   # We found a bogon in the path, so make sure we never use it.
2739   set dummy $ac_cv_prog_CC
2740   shift
2741   if test $@%:@ != 0; then
2742     # We chose a different compiler from the bogus one.
2743     # However, it has the same basename, so the bogon will be chosen
2744     # first if we set CC to just the basename; use the full file name.
2745     shift
2746     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2747   fi
2748 fi
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753   { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756   { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$CC"; then
2763   if test -n "$ac_tool_prefix"; then
2764   for ac_prog in cl.exe
2765   do
2766     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_CC+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   if test -n "$CC"; then
2774   ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781   for ac_exec_ext in '' $ac_executable_extensions; do
2782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795   { echo "$as_me:$LINENO: result: $CC" >&5
2796 echo "${ECHO_T}$CC" >&6; }
2797 else
2798   { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2800 fi
2801
2802
2803     test -n "$CC" && break
2804   done
2805 fi
2806 if test -z "$CC"; then
2807   ac_ct_CC=$CC
2808   for ac_prog in cl.exe
2809 do
2810   # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$ac_ct_CC"; then
2818   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827     ac_cv_prog_ac_ct_CC="$ac_prog"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838 if test -n "$ac_ct_CC"; then
2839   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2840 echo "${ECHO_T}$ac_ct_CC" >&6; }
2841 else
2842   { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847   test -n "$ac_ct_CC" && break
2848 done
2849
2850   if test "x$ac_ct_CC" = x; then
2851     CC=""
2852   else
2853     case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet.  If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&5
2858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet.  If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863     CC=$ac_ct_CC
2864   fi
2865 fi
2866
2867 fi
2868
2869
2870 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: no acceptable C compiler found in \$PATH
2873 See \`config.log' for more details." >&2;}
2874    { (exit 1); exit 1; }; }
2875
2876 # Provide some information about the compiler.
2877 echo "$as_me:$LINENO: checking for C compiler version" >&5
2878 ac_compiler=`set X $ac_compile; echo $2`
2879 { (ac_try="$ac_compiler --version >&5"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885   (eval "$ac_compiler --version >&5") 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }
2889 { (ac_try="$ac_compiler -v >&5"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_compiler -v >&5") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }
2899 { (ac_try="$ac_compiler -V >&5"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_compiler -V >&5") 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }
2909
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916
2917 int
2918 main ()
2919 {
2920
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 ac_clean_files_save=$ac_clean_files
2926 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2927 # Try to create an executable without -o first, disregard a.out.
2928 # It will help us diagnose broken compilers, and finding out an intuition
2929 # of exeext.
2930 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2931 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2932 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933 #
2934 # List of possible output files, starting from the most likely.
2935 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2936 # only as a last resort.  b.out is created by i960 compilers.
2937 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2938 #
2939 # The IRIX 6 linker writes into existing files which may not be
2940 # executable, retaining their permissions.  Remove them first so a
2941 # subsequent execution test works.
2942 ac_rmfiles=
2943 for ac_file in $ac_files
2944 do
2945   case $ac_file in
2946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2947     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2948   esac
2949 done
2950 rm -f $ac_rmfiles
2951
2952 if { (ac_try="$ac_link_default"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_link_default") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; then
2962   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2963 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2964 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2965 # so that the user can short-circuit this test for compilers unknown to
2966 # Autoconf.
2967 for ac_file in $ac_files ''
2968 do
2969   test -f "$ac_file" || continue
2970   case $ac_file in
2971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2972         ;;
2973     [ab].out )
2974         # We found the default executable, but exeext='' is most
2975         # certainly right.
2976         break;;
2977     *.* )
2978         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2979         then :; else
2980            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981         fi
2982         # We set ac_cv_exeext here because the later test for it is not
2983         # safe: cross compilers may not add the suffix if given an `-o'
2984         # argument, so we may need to know it at that point already.
2985         # Even if this section looks crufty: it has the advantage of
2986         # actually working.
2987         break;;
2988     * )
2989         break;;
2990   esac
2991 done
2992 test "$ac_cv_exeext" = no && ac_cv_exeext=
2993
2994 else
2995   ac_file=''
2996 fi
2997
2998 { echo "$as_me:$LINENO: result: $ac_file" >&5
2999 echo "${ECHO_T}$ac_file" >&6; }
3000 if test -z "$ac_file"; then
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: C compiler cannot create executables
3007 See \`config.log' for more details." >&2;}
3008    { (exit 77); exit 77; }; }
3009 fi
3010
3011 ac_exeext=$ac_cv_exeext
3012
3013 # Check that the compiler produces executables we can run.  If not, either
3014 # the compiler is broken, or we cross compile.
3015 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018 # If not cross compiling, check that we can run a simple program.
3019 if test "$cross_compiling" != yes; then
3020   if { ac_try='./$ac_file'
3021   { (case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_try") 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; }; then
3030     cross_compiling=no
3031   else
3032     if test "$cross_compiling" = maybe; then
3033         cross_compiling=yes
3034     else
3035         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: cannot run C compiled programs.
3039 If you meant to cross compile, use \`--host'.
3040 See \`config.log' for more details." >&2;}
3041    { (exit 1); exit 1; }; }
3042     fi
3043   fi
3044 fi
3045 { echo "$as_me:$LINENO: result: yes" >&5
3046 echo "${ECHO_T}yes" >&6; }
3047
3048 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049 ac_clean_files=$ac_clean_files_save
3050 # Check that the compiler produces executables we can run.  If not, either
3051 # the compiler is broken, or we cross compile.
3052 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3054 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055 echo "${ECHO_T}$cross_compiling" >&6; }
3056
3057 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3059 if { (ac_try="$ac_link"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_link") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; then
3069   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3070 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3071 # work properly (i.e., refer to `conftest.exe'), while it won't with
3072 # `rm'.
3073 for ac_file in conftest.exe conftest conftest.*; do
3074   test -f "$ac_file" || continue
3075   case $ac_file in
3076     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3077     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078           break;;
3079     * ) break;;
3080   esac
3081 done
3082 else
3083   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3086 See \`config.log' for more details." >&2;}
3087    { (exit 1); exit 1; }; }
3088 fi
3089
3090 rm -f conftest$ac_cv_exeext
3091 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3092 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3093
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3096 ac_exeext=$EXEEXT
3097 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3098 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3099 if test "${ac_cv_objext+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108
3109 int
3110 main ()
3111 {
3112
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.o conftest.obj
3118 if { (ac_try="$ac_compile"
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_compile") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; then
3128   for ac_file in conftest.o conftest.obj conftest.*; do
3129   test -f "$ac_file" || continue;
3130   case $ac_file in
3131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3132     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133        break;;
3134   esac
3135 done
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details." >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3148 fi
3149 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3150 echo "${ECHO_T}$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3152 ac_objext=$OBJEXT
3153 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164
3165 int
3166 main ()
3167 {
3168 #ifndef __GNUC__
3169        choke me
3170 #endif
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_compiler_gnu=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198         ac_compiler_gnu=no
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3207 GCC=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_cc_g+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   ac_save_c_werror_flag=$ac_c_werror_flag
3216    ac_c_werror_flag=yes
3217    ac_cv_prog_cc_g=no
3218    CFLAGS="-g"
3219    cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_compile") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } && {
3248          test -z "$ac_c_werror_flag" ||
3249          test ! -s conftest.err
3250        } && test -s conftest.$ac_objext; then
3251   ac_cv_prog_cc_g=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256         CFLAGS=""
3257       cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_compile") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } && {
3286          test -z "$ac_c_werror_flag" ||
3287          test ! -s conftest.err
3288        } && test -s conftest.$ac_objext; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294         ac_c_werror_flag=$ac_save_c_werror_flag
3295          CFLAGS="-g"
3296          cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318   (eval "$ac_compile") 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } && {
3325          test -z "$ac_c_werror_flag" ||
3326          test ! -s conftest.err
3327        } && test -s conftest.$ac_objext; then
3328   ac_cv_prog_cc_g=yes
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333         
3334 fi
3335
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343    ac_c_werror_flag=$ac_save_c_werror_flag
3344 fi
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3347 if test "$ac_test_CFLAGS" = set; then
3348   CFLAGS=$ac_save_CFLAGS
3349 elif test $ac_cv_prog_cc_g = yes; then
3350   if test "$GCC" = yes; then
3351     CFLAGS="-g -O2"
3352   else
3353     CFLAGS="-g"
3354   fi
3355 else
3356   if test "$GCC" = yes; then
3357     CFLAGS="-O2"
3358   else
3359     CFLAGS=
3360   fi
3361 fi
3362 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3363 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_c89+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   ac_cv_prog_cc_c89=no
3368 ac_save_CC=$CC
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #include <stdarg.h>
3376 #include <stdio.h>
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3383      char **p;
3384      int i;
3385 {
3386   return p[i];
3387 }
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3389 {
3390   char *s;
3391   va_list v;
3392   va_start (v,p);
3393   s = g (p, va_arg (v,int));
3394   va_end (v);
3395   return s;
3396 }
3397
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3399    function prototypes and stuff, but not '\xHH' hex character constants.
3400    These don't provoke an error unfortunately, instead are silently treated
3401    as 'x'.  The following induces an error, until -std is added to get
3402    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3403    array size at least.  It's necessary to write '\x00'==0 to get something
3404    that's true only with -std.  */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408    inside strings and character constants.  */
3409 #define FOO(x) 'x'
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416 int argc;
3417 char **argv;
3418 int
3419 main ()
3420 {
3421 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 do
3429   CC="$ac_save_CC $ac_arg"
3430   rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437   (eval "$ac_compile") 2>conftest.er1
3438   ac_status=$?
3439   grep -v '^ *+' conftest.er1 >conftest.err
3440   rm -f conftest.er1
3441   cat conftest.err >&5
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } && {
3444          test -z "$ac_c_werror_flag" ||
3445          test ! -s conftest.err
3446        } && test -s conftest.$ac_objext; then
3447   ac_cv_prog_cc_c89=$ac_arg
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452         
3453 fi
3454
3455 rm -f core conftest.err conftest.$ac_objext 
3456   test "x$ac_cv_prog_cc_c89" != "xno" && break
3457 done
3458 rm -f conftest.$ac_ext
3459 CC=$ac_save_CC
3460
3461 fi
3462 # AC_CACHE_VAL
3463 case "x$ac_cv_prog_cc_c89" in
3464   x)
3465     { echo "$as_me:$LINENO: result: none needed" >&5
3466 echo "${ECHO_T}none needed" >&6; } ;;
3467   xno)
3468     { echo "$as_me:$LINENO: result: unsupported" >&5
3469 echo "${ECHO_T}unsupported" >&6; } ;;
3470   *)
3471     CC="$CC $ac_cv_prog_cc_c89"
3472     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3474 esac
3475
3476
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483 depcc="$CC"   am_compiler_list=
3484
3485 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3486 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3487 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3491   # We make a subdir and do the tests there.  Otherwise we can end up
3492   # making bogus files that we don't know about and never remove.  For
3493   # instance it was reported that on HP-UX the gcc test will end up
3494   # making a dummy file named `D' -- because `-MD' means `put the output
3495   # in D'.
3496   mkdir conftest.dir
3497   # Copy depcomp to subdir because otherwise we won't find it if we're
3498   # using a relative directory.
3499   cp "$am_depcomp" conftest.dir
3500   cd conftest.dir
3501   # We will build objects and dependencies in a subdirectory because
3502   # it helps to detect inapplicable dependency modes.  For instance
3503   # both Tru64's cc and ICC support -MD to output dependencies as a
3504   # side effect of compilation, but ICC will put the dependencies in
3505   # the current directory while Tru64 will put them in the object
3506   # directory.
3507   mkdir sub
3508
3509   am_cv_CC_dependencies_compiler_type=none
3510   if test "$am_compiler_list" = ""; then
3511      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3512   fi
3513   for depmode in $am_compiler_list; do
3514     # Setup a source with many dependencies, because some compilers
3515     # like to wrap large dependency lists on column 80 (with \), and
3516     # we should not choose a depcomp mode which is confused by this.
3517     #
3518     # We need to recreate these files for each test, as the compiler may
3519     # overwrite some of them when testing with obscure command lines.
3520     # This happens at least with the AIX C compiler.
3521     : > sub/conftest.c
3522     for i in 1 2 3 4 5 6; do
3523       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3524       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3525       # Solaris 8's {/usr,}/bin/sh.
3526       touch sub/conftst$i.h
3527     done
3528     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3529
3530     case $depmode in
3531     nosideeffect)
3532       # after this tag, mechanisms are not by side-effect, so they'll
3533       # only be used when explicitly requested
3534       if test "x$enable_dependency_tracking" = xyes; then
3535         continue
3536       else
3537         break
3538       fi
3539       ;;
3540     none) break ;;
3541     esac
3542     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3543     # mode.  It turns out that the SunPro C++ compiler does not properly
3544     # handle `-M -o', and we need to detect this.
3545     if depmode=$depmode \
3546        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3547        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3548        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3549          >/dev/null 2>conftest.err &&
3550        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3551        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3552        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3553       # icc doesn't choke on unknown options, it will just issue warnings
3554       # or remarks (even with -Werror).  So we grep stderr for any message
3555       # that says an option was ignored or not supported.
3556       # When given -MP, icc 7.0 and 7.1 complain thusly:
3557       #   icc: Command line warning: ignoring option '-M'; no argument required
3558       # The diagnosis changed in icc 8.0:
3559       #   icc: Command line remark: option '-MP' not supported
3560       if (grep 'ignoring option' conftest.err ||
3561           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3562         am_cv_CC_dependencies_compiler_type=$depmode
3563         break
3564       fi
3565     fi
3566   done
3567
3568   cd ..
3569   rm -rf conftest.dir
3570 else
3571   am_cv_CC_dependencies_compiler_type=none
3572 fi
3573
3574 fi
3575 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3576 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3578
3579  
3580
3581 if 
3582   test "x$enable_dependency_tracking" != xno \
3583   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3584   am__fastdepCC_TRUE=
3585   am__fastdepCC_FALSE='#'
3586 else
3587   am__fastdepCC_TRUE='#'
3588   am__fastdepCC_FALSE=
3589 fi
3590
3591
3592
3593 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3594 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3595 if test "${ac_cv_search_strerror+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   ac_func_search_save_LIBS=$LIBS
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605
3606 /* Override any GCC internal prototype to avoid an error.
3607    Use char because int might match the return type of a GCC
3608    builtin and then its argument prototype would still apply.  */
3609 #ifdef __cplusplus
3610 extern "C"
3611 #endif
3612 char strerror ();
3613 int
3614 main ()
3615 {
3616 return strerror ();
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 for ac_lib in '' cposix; do
3622   if test -z "$ac_lib"; then
3623     ac_res="none required"
3624   else
3625     ac_res=-l$ac_lib
3626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3627   fi
3628   rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (ac_try="$ac_link"
3630 case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635   (eval "$ac_link") 2>conftest.er1
3636   ac_status=$?
3637   grep -v '^ *+' conftest.er1 >conftest.err
3638   rm -f conftest.er1
3639   cat conftest.err >&5
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); } && {
3642          test -z "$ac_c_werror_flag" ||
3643          test ! -s conftest.err
3644        } && test -s conftest$ac_exeext &&
3645        $as_test_x conftest$ac_exeext; then
3646   ac_cv_search_strerror=$ac_res
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651         
3652 fi
3653
3654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3655       conftest$ac_exeext 
3656   if test "${ac_cv_search_strerror+set}" = set; then
3657   break
3658 fi
3659 done
3660 if test "${ac_cv_search_strerror+set}" = set; then
3661   :
3662 else
3663   ac_cv_search_strerror=no
3664 fi
3665 rm conftest.$ac_ext
3666 LIBS=$ac_func_search_save_LIBS
3667 fi
3668 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3669 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3670 ac_res=$ac_cv_search_strerror
3671 if test "$ac_res" != no; then
3672   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3673   
3674 fi
3675
3676 ac_ext=cpp
3677 ac_cpp='$CXXCPP $CPPFLAGS'
3678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3681 if test -z "$CXX"; then
3682   if test -n "$CCC"; then
3683     CXX=$CCC
3684   else
3685     if test -n "$ac_tool_prefix"; then
3686   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3687   do
3688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3692 if test "${ac_cv_prog_CXX+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   if test -n "$CXX"; then
3696   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703   for ac_exec_ext in '' $ac_executable_extensions; do
3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707     break 2
3708   fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 CXX=$ac_cv_prog_CXX
3716 if test -n "$CXX"; then
3717   { echo "$as_me:$LINENO: result: $CXX" >&5
3718 echo "${ECHO_T}$CXX" >&6; }
3719 else
3720   { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3722 fi
3723
3724
3725     test -n "$CXX" && break
3726   done
3727 fi
3728 if test -z "$CXX"; then
3729   ac_ct_CXX=$CXX
3730   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3731 do
3732   # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3736 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   if test -n "$ac_ct_CXX"; then
3740   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749     ac_cv_prog_ac_ct_CXX="$ac_prog"
3750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754 done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3760 if test -n "$ac_ct_CXX"; then
3761   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3762 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3763 else
3764   { echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6; }
3766 fi
3767
3768
3769   test -n "$ac_ct_CXX" && break
3770 done
3771
3772   if test "x$ac_ct_CXX" = x; then
3773     CXX="g++"
3774   else
3775     case $cross_compiling:$ac_tool_warned in
3776 yes:)
3777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3778 whose name does not start with the host triplet.  If you think this
3779 configuration is useful to you, please write to autoconf@gnu.org." >&5
3780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3781 whose name does not start with the host triplet.  If you think this
3782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3783 ac_tool_warned=yes ;;
3784 esac
3785     CXX=$ac_ct_CXX
3786   fi
3787 fi
3788
3789   fi
3790 fi
3791 # Provide some information about the compiler.
3792 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3793 ac_compiler=`set X $ac_compile; echo $2`
3794 { (ac_try="$ac_compiler --version >&5"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_compiler --version >&5") 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }
3804 { (ac_try="$ac_compiler -v >&5"
3805 case "(($ac_try" in
3806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807   *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810   (eval "$ac_compiler -v >&5") 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); }
3814 { (ac_try="$ac_compiler -V >&5"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820   (eval "$ac_compiler -V >&5") 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); }
3824
3825 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3826 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3827 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840 #ifndef __GNUC__
3841        choke me
3842 #endif
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855   (eval "$ac_compile") 2>conftest.er1
3856   ac_status=$?
3857   grep -v '^ *+' conftest.er1 >conftest.err
3858   rm -f conftest.er1
3859   cat conftest.err >&5
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); } && {
3862          test -z "$ac_cxx_werror_flag" ||
3863          test ! -s conftest.err
3864        } && test -s conftest.$ac_objext; then
3865   ac_compiler_gnu=yes
3866 else
3867   echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870         ac_compiler_gnu=no
3871 fi
3872
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3875
3876 fi
3877 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3878 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3879 GXX=`test $ac_compiler_gnu = yes && echo yes`
3880 ac_test_CXXFLAGS=${CXXFLAGS+set}
3881 ac_save_CXXFLAGS=$CXXFLAGS
3882 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3883 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3884 if test "${ac_cv_prog_cxx_g+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3888    ac_cxx_werror_flag=yes
3889    ac_cv_prog_cxx_g=no
3890    CXXFLAGS="-g"
3891    cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897
3898 int
3899 main ()
3900 {
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913   (eval "$ac_compile") 2>conftest.er1
3914   ac_status=$?
3915   grep -v '^ *+' conftest.er1 >conftest.err
3916   rm -f conftest.er1
3917   cat conftest.err >&5
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } && {
3920          test -z "$ac_cxx_werror_flag" ||
3921          test ! -s conftest.err
3922        } && test -s conftest.$ac_objext; then
3923   ac_cv_prog_cxx_g=yes
3924 else
3925   echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928         CXXFLAGS=""
3929       cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3946 case "(($ac_try" in
3947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948   *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951   (eval "$ac_compile") 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } && {
3958          test -z "$ac_cxx_werror_flag" ||
3959          test ! -s conftest.err
3960        } && test -s conftest.$ac_objext; then
3961   :
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3967          CXXFLAGS="-g"
3968          cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3974
3975 int
3976 main ()
3977 {
3978
3979   ;
3980   return 0;
3981 }
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3985 case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990   (eval "$ac_compile") 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } && {
3997          test -z "$ac_cxx_werror_flag" ||
3998          test ! -s conftest.err
3999        } && test -s conftest.$ac_objext; then
4000   ac_cv_prog_cxx_g=yes
4001 else
4002   echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005         
4006 fi
4007
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 fi
4010
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 fi
4013
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4016 fi
4017 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4018 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4019 if test "$ac_test_CXXFLAGS" = set; then
4020   CXXFLAGS=$ac_save_CXXFLAGS
4021 elif test $ac_cv_prog_cxx_g = yes; then
4022   if test "$GXX" = yes; then
4023     CXXFLAGS="-g -O2"
4024   else
4025     CXXFLAGS="-g"
4026   fi
4027 else
4028   if test "$GXX" = yes; then
4029     CXXFLAGS="-O2"
4030   else
4031     CXXFLAGS=
4032   fi
4033 fi
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040 depcc="$CXX"  am_compiler_list=
4041
4042 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4043 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4044 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048   # We make a subdir and do the tests there.  Otherwise we can end up
4049   # making bogus files that we don't know about and never remove.  For
4050   # instance it was reported that on HP-UX the gcc test will end up
4051   # making a dummy file named `D' -- because `-MD' means `put the output
4052   # in D'.
4053   mkdir conftest.dir
4054   # Copy depcomp to subdir because otherwise we won't find it if we're
4055   # using a relative directory.
4056   cp "$am_depcomp" conftest.dir
4057   cd conftest.dir
4058   # We will build objects and dependencies in a subdirectory because
4059   # it helps to detect inapplicable dependency modes.  For instance
4060   # both Tru64's cc and ICC support -MD to output dependencies as a
4061   # side effect of compilation, but ICC will put the dependencies in
4062   # the current directory while Tru64 will put them in the object
4063   # directory.
4064   mkdir sub
4065
4066   am_cv_CXX_dependencies_compiler_type=none
4067   if test "$am_compiler_list" = ""; then
4068      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069   fi
4070   for depmode in $am_compiler_list; do
4071     # Setup a source with many dependencies, because some compilers
4072     # like to wrap large dependency lists on column 80 (with \), and
4073     # we should not choose a depcomp mode which is confused by this.
4074     #
4075     # We need to recreate these files for each test, as the compiler may
4076     # overwrite some of them when testing with obscure command lines.
4077     # This happens at least with the AIX C compiler.
4078     : > sub/conftest.c
4079     for i in 1 2 3 4 5 6; do
4080       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4081       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4082       # Solaris 8's {/usr,}/bin/sh.
4083       touch sub/conftst$i.h
4084     done
4085     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4086
4087     case $depmode in
4088     nosideeffect)
4089       # after this tag, mechanisms are not by side-effect, so they'll
4090       # only be used when explicitly requested
4091       if test "x$enable_dependency_tracking" = xyes; then
4092         continue
4093       else
4094         break
4095       fi
4096       ;;
4097     none) break ;;
4098     esac
4099     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4100     # mode.  It turns out that the SunPro C++ compiler does not properly
4101     # handle `-M -o', and we need to detect this.
4102     if depmode=$depmode \
4103        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4104        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4105        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4106          >/dev/null 2>conftest.err &&
4107        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4109        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110       # icc doesn't choke on unknown options, it will just issue warnings
4111       # or remarks (even with -Werror).  So we grep stderr for any message
4112       # that says an option was ignored or not supported.
4113       # When given -MP, icc 7.0 and 7.1 complain thusly:
4114       #   icc: Command line warning: ignoring option '-M'; no argument required
4115       # The diagnosis changed in icc 8.0:
4116       #   icc: Command line remark: option '-MP' not supported
4117       if (grep 'ignoring option' conftest.err ||
4118           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119         am_cv_CXX_dependencies_compiler_type=$depmode
4120         break
4121       fi
4122     fi
4123   done
4124
4125   cd ..
4126   rm -rf conftest.dir
4127 else
4128   am_cv_CXX_dependencies_compiler_type=none
4129 fi
4130
4131 fi
4132 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4133 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4134 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4135
4136  
4137
4138 if 
4139   test "x$enable_dependency_tracking" != xno \
4140   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4141   am__fastdepCXX_TRUE=
4142   am__fastdepCXX_FALSE='#'
4143 else
4144   am__fastdepCXX_TRUE='#'
4145   am__fastdepCXX_FALSE=
4146 fi
4147
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4155 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4156 # On Suns, sometimes $CPP names a directory.
4157 if test -n "$CPP" && test -d "$CPP"; then
4158   CPP=
4159 fi
4160 if test -z "$CPP"; then
4161   if test "${ac_cv_prog_CPP+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164       # Double quotes because CPP needs to be expanded
4165     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4166     do
4167       ac_preproc_ok=false
4168 for ac_c_preproc_warn_flag in '' yes
4169 do
4170   # Use a header file that comes with gcc, so configuring glibc
4171   # with a fresh cross-compiler works.
4172   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4173   # <limits.h> exists even on freestanding compilers.
4174   # On the NeXT, cc -E runs the code through the compiler's parser,
4175   # not just through cpp. "Syntax error" is here to catch this case.
4176   cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 @%:@ifdef __STDC__
4183 @%:@ include <limits.h>
4184 @%:@else
4185 @%:@ include <assert.h>
4186 @%:@endif
4187                      Syntax error
4188 _ACEOF
4189 if { (ac_try="$ac_cpp conftest.$ac_ext"
4190 case "(($ac_try" in
4191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192   *) ac_try_echo=$ac_try;;
4193 esac
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } >/dev/null && {
4202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4203          test ! -s conftest.err
4204        }; then
4205   :
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210   # Broken: fails on valid input.
4211 continue
4212 fi
4213
4214 rm -f conftest.err conftest.$ac_ext
4215
4216   # OK, works on sane cases.  Now check whether nonexistent headers
4217   # can be detected and how.
4218   cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 @%:@include <ac_nonexistent.h>
4225 _ACEOF
4226 if { (ac_try="$ac_cpp conftest.$ac_ext"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } >/dev/null && {
4239          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240          test ! -s conftest.err
4241        }; then
4242   # Broken: success on invalid input.
4243 continue
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248   # Passes both tests.
4249 ac_preproc_ok=:
4250 break
4251 fi
4252
4253 rm -f conftest.err conftest.$ac_ext
4254
4255 done
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.$ac_ext
4258 if $ac_preproc_ok; then
4259   break
4260 fi
4261
4262     done
4263     ac_cv_prog_CPP=$CPP
4264   
4265 fi
4266   CPP=$ac_cv_prog_CPP
4267 else
4268   ac_cv_prog_CPP=$CPP
4269 fi
4270 { echo "$as_me:$LINENO: result: $CPP" >&5
4271 echo "${ECHO_T}$CPP" >&6; }
4272 ac_preproc_ok=false
4273 for ac_c_preproc_warn_flag in '' yes
4274 do
4275   # Use a header file that comes with gcc, so configuring glibc
4276   # with a fresh cross-compiler works.
4277   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278   # <limits.h> exists even on freestanding compilers.
4279   # On the NeXT, cc -E runs the code through the compiler's parser,
4280   # not just through cpp. "Syntax error" is here to catch this case.
4281   cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h.  */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h.  */
4287 @%:@ifdef __STDC__
4288 @%:@ include <limits.h>
4289 @%:@else
4290 @%:@ include <assert.h>
4291 @%:@endif
4292                      Syntax error
4293 _ACEOF
4294 if { (ac_try="$ac_cpp conftest.$ac_ext"
4295 case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4301   ac_status=$?
4302   grep -v '^ *+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } >/dev/null && {
4307          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4308          test ! -s conftest.err
4309        }; then
4310   :
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315   # Broken: fails on valid input.
4316 continue
4317 fi
4318
4319 rm -f conftest.err conftest.$ac_ext
4320
4321   # OK, works on sane cases.  Now check whether nonexistent headers
4322   # can be detected and how.
4323   cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329 @%:@include <ac_nonexistent.h>
4330 _ACEOF
4331 if { (ac_try="$ac_cpp conftest.$ac_ext"
4332 case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } >/dev/null && {
4344          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4345          test ! -s conftest.err
4346        }; then
4347   # Broken: success on invalid input.
4348 continue
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353   # Passes both tests.
4354 ac_preproc_ok=:
4355 break
4356 fi
4357
4358 rm -f conftest.err conftest.$ac_ext
4359
4360 done
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.err conftest.$ac_ext
4363 if $ac_preproc_ok; then
4364   :
4365 else
4366   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4367 See \`config.log' for more details." >&5
4368 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4369 See \`config.log' for more details." >&2;}
4370    { (exit 1); exit 1; }; }
4371 fi
4372
4373 ac_ext=c
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384 if test -n "$ac_tool_prefix"; then
4385   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_CC+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   if test -n "$CC"; then
4393   ac_cv_prog_CC="$CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400   for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 CC=$ac_cv_prog_CC
4413 if test -n "$CC"; then
4414   { echo "$as_me:$LINENO: result: $CC" >&5
4415 echo "${ECHO_T}$CC" >&6; }
4416 else
4417   { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 fi
4420
4421
4422 fi
4423 if test -z "$ac_cv_prog_CC"; then
4424   ac_ct_CC=$CC
4425   # Extract the first word of "gcc", so it can be a program name with args.
4426 set dummy gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$ac_ct_CC"; then
4433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_prog_ac_ct_CC="gcc"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4453 if test -n "$ac_ct_CC"; then
4454   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4455 echo "${ECHO_T}$ac_ct_CC" >&6; }
4456 else
4457   { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4460
4461   if test "x$ac_ct_CC" = x; then
4462     CC=""
4463   else
4464     case $cross_compiling:$ac_tool_warned in
4465 yes:)
4466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4467 whose name does not start with the host triplet.  If you think this
4468 configuration is useful to you, please write to autoconf@gnu.org." >&5
4469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4470 whose name does not start with the host triplet.  If you think this
4471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474     CC=$ac_ct_CC
4475   fi
4476 else
4477   CC="$ac_cv_prog_CC"
4478 fi
4479
4480 if test -z "$CC"; then
4481           if test -n "$ac_tool_prefix"; then
4482     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4483 set dummy ${ac_tool_prefix}cc; ac_word=$2
4484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486 if test "${ac_cv_prog_CC+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   if test -n "$CC"; then
4490   ac_cv_prog_CC="$CC" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497   for ac_exec_ext in '' $ac_executable_extensions; do
4498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499     ac_cv_prog_CC="${ac_tool_prefix}cc"
4500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504 done
4505 IFS=$as_save_IFS
4506
4507 fi
4508 fi
4509 CC=$ac_cv_prog_CC
4510 if test -n "$CC"; then
4511   { echo "$as_me:$LINENO: result: $CC" >&5
4512 echo "${ECHO_T}$CC" >&6; }
4513 else
4514   { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4516 fi
4517
4518
4519   fi
4520 fi
4521 if test -z "$CC"; then
4522   # Extract the first word of "cc", so it can be a program name with args.
4523 set dummy cc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   if test -n "$CC"; then
4530   ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532   ac_prog_rejected=no
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538   for ac_exec_ext in '' $ac_executable_extensions; do
4539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4541        ac_prog_rejected=yes
4542        continue
4543      fi
4544     ac_cv_prog_CC="cc"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 if test $ac_prog_rejected = yes; then
4553   # We found a bogon in the path, so make sure we never use it.
4554   set dummy $ac_cv_prog_CC
4555   shift
4556   if test $@%:@ != 0; then
4557     # We chose a different compiler from the bogus one.
4558     # However, it has the same basename, so the bogon will be chosen
4559     # first if we set CC to just the basename; use the full file name.
4560     shift
4561     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4562   fi
4563 fi
4564 fi
4565 fi
4566 CC=$ac_cv_prog_CC
4567 if test -n "$CC"; then
4568   { echo "$as_me:$LINENO: result: $CC" >&5
4569 echo "${ECHO_T}$CC" >&6; }
4570 else
4571   { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4573 fi
4574
4575
4576 fi
4577 if test -z "$CC"; then
4578   if test -n "$ac_tool_prefix"; then
4579   for ac_prog in cl.exe
4580   do
4581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_prog_CC+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   if test -n "$CC"; then
4589   ac_cv_prog_CC="$CC" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596   for ac_exec_ext in '' $ac_executable_extensions; do
4597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 fi
4607 fi
4608 CC=$ac_cv_prog_CC
4609 if test -n "$CC"; then
4610   { echo "$as_me:$LINENO: result: $CC" >&5
4611 echo "${ECHO_T}$CC" >&6; }
4612 else
4613   { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615 fi
4616
4617
4618     test -n "$CC" && break
4619   done
4620 fi
4621 if test -z "$CC"; then
4622   ac_ct_CC=$CC
4623   for ac_prog in cl.exe
4624 do
4625   # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   if test -n "$ac_ct_CC"; then
4633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_prog_ac_ct_CC="$ac_prog"
4643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4653 if test -n "$ac_ct_CC"; then
4654   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4655 echo "${ECHO_T}$ac_ct_CC" >&6; }
4656 else
4657   { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4659 fi
4660
4661
4662   test -n "$ac_ct_CC" && break
4663 done
4664
4665   if test "x$ac_ct_CC" = x; then
4666     CC=""
4667   else
4668     case $cross_compiling:$ac_tool_warned in
4669 yes:)
4670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4671 whose name does not start with the host triplet.  If you think this
4672 configuration is useful to you, please write to autoconf@gnu.org." >&5
4673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4674 whose name does not start with the host triplet.  If you think this
4675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678     CC=$ac_ct_CC
4679   fi
4680 fi
4681
4682 fi
4683
4684
4685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: no acceptable C compiler found in \$PATH
4688 See \`config.log' for more details." >&2;}
4689    { (exit 1); exit 1; }; }
4690
4691 # Provide some information about the compiler.
4692 echo "$as_me:$LINENO: checking for C compiler version" >&5
4693 ac_compiler=`set X $ac_compile; echo $2`
4694 { (ac_try="$ac_compiler --version >&5"
4695 case "(($ac_try" in
4696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697   *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700   (eval "$ac_compiler --version >&5") 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }
4704 { (ac_try="$ac_compiler -v >&5"
4705 case "(($ac_try" in
4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707   *) ac_try_echo=$ac_try;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710   (eval "$ac_compiler -v >&5") 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }
4714 { (ac_try="$ac_compiler -V >&5"
4715 case "(($ac_try" in
4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717   *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720   (eval "$ac_compiler -V >&5") 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); }
4724
4725 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4726 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4727 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730   cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h.  */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h.  */
4736
4737 int
4738 main ()
4739 {
4740 #ifndef __GNUC__
4741        choke me
4742 #endif
4743
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (ac_try="$ac_compile"
4750 case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_compile") 2>conftest.er1
4756   ac_status=$?
4757   grep -v '^ *+' conftest.er1 >conftest.err
4758   rm -f conftest.er1
4759   cat conftest.err >&5
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } && {
4762          test -z "$ac_c_werror_flag" ||
4763          test ! -s conftest.err
4764        } && test -s conftest.$ac_objext; then
4765   ac_compiler_gnu=yes
4766 else
4767   echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770         ac_compiler_gnu=no
4771 fi
4772
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4775
4776 fi
4777 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4779 GCC=`test $ac_compiler_gnu = yes && echo yes`
4780 ac_test_CFLAGS=${CFLAGS+set}
4781 ac_save_CFLAGS=$CFLAGS
4782 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4783 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_cc_g+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   ac_save_c_werror_flag=$ac_c_werror_flag
4788    ac_c_werror_flag=yes
4789    ac_cv_prog_cc_g=no
4790    CFLAGS="-g"
4791    cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4808 case "(($ac_try" in
4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810   *) ac_try_echo=$ac_try;;
4811 esac
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813   (eval "$ac_compile") 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } && {
4820          test -z "$ac_c_werror_flag" ||
4821          test ! -s conftest.err
4822        } && test -s conftest.$ac_objext; then
4823   ac_cv_prog_cc_g=yes
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828         CFLAGS=""
4829       cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h.  */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h.  */
4835
4836 int
4837 main ()
4838 {
4839
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (ac_try="$ac_compile"
4846 case "(($ac_try" in
4847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848   *) ac_try_echo=$ac_try;;
4849 esac
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851   (eval "$ac_compile") 2>conftest.er1
4852   ac_status=$?
4853   grep -v '^ *+' conftest.er1 >conftest.err
4854   rm -f conftest.er1
4855   cat conftest.err >&5
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } && {
4858          test -z "$ac_c_werror_flag" ||
4859          test ! -s conftest.err
4860        } && test -s conftest.$ac_objext; then
4861   :
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866         ac_c_werror_flag=$ac_save_c_werror_flag
4867          CFLAGS="-g"
4868          cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874
4875 int
4876 main ()
4877 {
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (ac_try="$ac_compile"
4885 case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890   (eval "$ac_compile") 2>conftest.er1
4891   ac_status=$?
4892   grep -v '^ *+' conftest.er1 >conftest.err
4893   rm -f conftest.er1
4894   cat conftest.err >&5
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } && {
4897          test -z "$ac_c_werror_flag" ||
4898          test ! -s conftest.err
4899        } && test -s conftest.$ac_objext; then
4900   ac_cv_prog_cc_g=yes
4901 else
4902   echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905         
4906 fi
4907
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 fi
4910
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 fi
4913
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915    ac_c_werror_flag=$ac_save_c_werror_flag
4916 fi
4917 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4918 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4919 if test "$ac_test_CFLAGS" = set; then
4920   CFLAGS=$ac_save_CFLAGS
4921 elif test $ac_cv_prog_cc_g = yes; then
4922   if test "$GCC" = yes; then
4923     CFLAGS="-g -O2"
4924   else
4925     CFLAGS="-g"
4926   fi
4927 else
4928   if test "$GCC" = yes; then
4929     CFLAGS="-O2"
4930   else
4931     CFLAGS=
4932   fi
4933 fi
4934 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4935 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4936 if test "${ac_cv_prog_cc_c89+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   ac_cv_prog_cc_c89=no
4940 ac_save_CC=$CC
4941 cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 #include <stdarg.h>
4948 #include <stdio.h>
4949 #include <sys/types.h>
4950 #include <sys/stat.h>
4951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4952 struct buf { int x; };
4953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4954 static char *e (p, i)
4955      char **p;
4956      int i;
4957 {
4958   return p[i];
4959 }
4960 static char *f (char * (*g) (char **, int), char **p, ...)
4961 {
4962   char *s;
4963   va_list v;
4964   va_start (v,p);
4965   s = g (p, va_arg (v,int));
4966   va_end (v);
4967   return s;
4968 }
4969
4970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4971    function prototypes and stuff, but not '\xHH' hex character constants.
4972    These don't provoke an error unfortunately, instead are silently treated
4973    as 'x'.  The following induces an error, until -std is added to get
4974    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4975    array size at least.  It's necessary to write '\x00'==0 to get something
4976    that's true only with -std.  */
4977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4978
4979 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4980    inside strings and character constants.  */
4981 #define FOO(x) 'x'
4982 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4983
4984 int test (int i, double x);
4985 struct s1 {int (*f) (int a);};
4986 struct s2 {int (*f) (double a);};
4987 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4988 int argc;
4989 char **argv;
4990 int
4991 main ()
4992 {
4993 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4994   ;
4995   return 0;
4996 }
4997 _ACEOF
4998 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4999         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5000 do
5001   CC="$ac_save_CC $ac_arg"
5002   rm -f conftest.$ac_objext
5003 if { (ac_try="$ac_compile"
5004 case "(($ac_try" in
5005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006   *) ac_try_echo=$ac_try;;
5007 esac
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009   (eval "$ac_compile") 2>conftest.er1
5010   ac_status=$?
5011   grep -v '^ *+' conftest.er1 >conftest.err
5012   rm -f conftest.er1
5013   cat conftest.err >&5
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } && {
5016          test -z "$ac_c_werror_flag" ||
5017          test ! -s conftest.err
5018        } && test -s conftest.$ac_objext; then
5019   ac_cv_prog_cc_c89=$ac_arg
5020 else
5021   echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024         
5025 fi
5026
5027 rm -f core conftest.err conftest.$ac_objext 
5028   test "x$ac_cv_prog_cc_c89" != "xno" && break
5029 done
5030 rm -f conftest.$ac_ext
5031 CC=$ac_save_CC
5032
5033 fi
5034 # AC_CACHE_VAL
5035 case "x$ac_cv_prog_cc_c89" in
5036   x)
5037     { echo "$as_me:$LINENO: result: none needed" >&5
5038 echo "${ECHO_T}none needed" >&6; } ;;
5039   xno)
5040     { echo "$as_me:$LINENO: result: unsupported" >&5
5041 echo "${ECHO_T}unsupported" >&6; } ;;
5042   *)
5043     CC="$CC $ac_cv_prog_cc_c89"
5044     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5045 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5046 esac
5047
5048
5049 ac_ext=c
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
5055 depcc="$CC"   am_compiler_list=
5056
5057 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5058 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5059 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5063   # We make a subdir and do the tests there.  Otherwise we can end up
5064   # making bogus files that we don't know about and never remove.  For
5065   # instance it was reported that on HP-UX the gcc test will end up
5066   # making a dummy file named `D' -- because `-MD' means `put the output
5067   # in D'.
5068   mkdir conftest.dir
5069   # Copy depcomp to subdir because otherwise we won't find it if we're
5070   # using a relative directory.
5071   cp "$am_depcomp" conftest.dir
5072   cd conftest.dir
5073   # We will build objects and dependencies in a subdirectory because
5074   # it helps to detect inapplicable dependency modes.  For instance
5075   # both Tru64's cc and ICC support -MD to output dependencies as a
5076   # side effect of compilation, but ICC will put the dependencies in
5077   # the current directory while Tru64 will put them in the object
5078   # directory.
5079   mkdir sub
5080
5081   am_cv_CC_dependencies_compiler_type=none
5082   if test "$am_compiler_list" = ""; then
5083      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5084   fi
5085   for depmode in $am_compiler_list; do
5086     # Setup a source with many dependencies, because some compilers
5087     # like to wrap large dependency lists on column 80 (with \), and
5088     # we should not choose a depcomp mode which is confused by this.
5089     #
5090     # We need to recreate these files for each test, as the compiler may
5091     # overwrite some of them when testing with obscure command lines.
5092     # This happens at least with the AIX C compiler.
5093     : > sub/conftest.c
5094     for i in 1 2 3 4 5 6; do
5095       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097       # Solaris 8's {/usr,}/bin/sh.
5098       touch sub/conftst$i.h
5099     done
5100     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5101
5102     case $depmode in
5103     nosideeffect)
5104       # after this tag, mechanisms are not by side-effect, so they'll
5105       # only be used when explicitly requested
5106       if test "x$enable_dependency_tracking" = xyes; then
5107         continue
5108       else
5109         break
5110       fi
5111       ;;
5112     none) break ;;
5113     esac
5114     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5115     # mode.  It turns out that the SunPro C++ compiler does not properly
5116     # handle `-M -o', and we need to detect this.
5117     if depmode=$depmode \
5118        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5119        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5120        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5121          >/dev/null 2>conftest.err &&
5122        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5123        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5124        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5125       # icc doesn't choke on unknown options, it will just issue warnings
5126       # or remarks (even with -Werror).  So we grep stderr for any message
5127       # that says an option was ignored or not supported.
5128       # When given -MP, icc 7.0 and 7.1 complain thusly:
5129       #   icc: Command line warning: ignoring option '-M'; no argument required
5130       # The diagnosis changed in icc 8.0:
5131       #   icc: Command line remark: option '-MP' not supported
5132       if (grep 'ignoring option' conftest.err ||
5133           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5134         am_cv_CC_dependencies_compiler_type=$depmode
5135         break
5136       fi
5137     fi
5138   done
5139
5140   cd ..
5141   rm -rf conftest.dir
5142 else
5143   am_cv_CC_dependencies_compiler_type=none
5144 fi
5145
5146 fi
5147 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5148 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5149 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5150
5151  
5152
5153 if 
5154   test "x$enable_dependency_tracking" != xno \
5155   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5156   am__fastdepCC_TRUE=
5157   am__fastdepCC_FALSE='#'
5158 else
5159   am__fastdepCC_TRUE='#'
5160   am__fastdepCC_FALSE=
5161 fi
5162
5163
5164 ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 if test -n "$ac_tool_prefix"; then
5170   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_CC+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if test -n "$CC"; then
5178   ac_cv_prog_CC="$CC" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_exec_ext in '' $ac_executable_extensions; do
5186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 CC=$ac_cv_prog_CC
5198 if test -n "$CC"; then
5199   { echo "$as_me:$LINENO: result: $CC" >&5
5200 echo "${ECHO_T}$CC" >&6; }
5201 else
5202   { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_prog_CC"; then
5209   ac_ct_CC=$CC
5210   # Extract the first word of "gcc", so it can be a program name with args.
5211 set dummy gcc; ac_word=$2
5212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   if test -n "$ac_ct_CC"; then
5218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225   for ac_exec_ext in '' $ac_executable_extensions; do
5226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227     ac_cv_prog_ac_ct_CC="gcc"
5228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5238 if test -n "$ac_ct_CC"; then
5239   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5240 echo "${ECHO_T}$ac_ct_CC" >&6; }
5241 else
5242   { echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6; }
5244 fi
5245
5246   if test "x$ac_ct_CC" = x; then
5247     CC=""
5248   else
5249     case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5252 whose name does not start with the host triplet.  If you think this
5253 configuration is useful to you, please write to autoconf@gnu.org." >&5
5254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5255 whose name does not start with the host triplet.  If you think this
5256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259     CC=$ac_ct_CC
5260   fi
5261 else
5262   CC="$ac_cv_prog_CC"
5263 fi
5264
5265 if test -z "$CC"; then
5266           if test -n "$ac_tool_prefix"; then
5267     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5268 set dummy ${ac_tool_prefix}cc; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_CC+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test -n "$CC"; then
5275   ac_cv_prog_CC="$CC" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282   for ac_exec_ext in '' $ac_executable_extensions; do
5283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284     ac_cv_prog_CC="${ac_tool_prefix}cc"
5285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 CC=$ac_cv_prog_CC
5295 if test -n "$CC"; then
5296   { echo "$as_me:$LINENO: result: $CC" >&5
5297 echo "${ECHO_T}$CC" >&6; }
5298 else
5299   { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5301 fi
5302
5303
5304   fi
5305 fi
5306 if test -z "$CC"; then
5307   # Extract the first word of "cc", so it can be a program name with args.
5308 set dummy cc; ac_word=$2
5309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_CC+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   if test -n "$CC"; then
5315   ac_cv_prog_CC="$CC" # Let the user override the test.
5316 else
5317   ac_prog_rejected=no
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323   for ac_exec_ext in '' $ac_executable_extensions; do
5324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5326        ac_prog_rejected=yes
5327        continue
5328      fi
5329     ac_cv_prog_CC="cc"
5330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 if test $ac_prog_rejected = yes; then
5338   # We found a bogon in the path, so make sure we never use it.
5339   set dummy $ac_cv_prog_CC
5340   shift
5341   if test $@%:@ != 0; then
5342     # We chose a different compiler from the bogus one.
5343     # However, it has the same basename, so the bogon will be chosen
5344     # first if we set CC to just the basename; use the full file name.
5345     shift
5346     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5347   fi
5348 fi
5349 fi
5350 fi
5351 CC=$ac_cv_prog_CC
5352 if test -n "$CC"; then
5353   { echo "$as_me:$LINENO: result: $CC" >&5
5354 echo "${ECHO_T}$CC" >&6; }
5355 else
5356   { echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6; }
5358 fi
5359
5360
5361 fi
5362 if test -z "$CC"; then
5363   if test -n "$ac_tool_prefix"; then
5364   for ac_prog in cl.exe
5365   do
5366     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5370 if test "${ac_cv_prog_CC+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   if test -n "$CC"; then
5374   ac_cv_prog_CC="$CC" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381   for ac_exec_ext in '' $ac_executable_extensions; do
5382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385     break 2
5386   fi
5387 done
5388 done
5389 IFS=$as_save_IFS
5390
5391 fi
5392 fi
5393 CC=$ac_cv_prog_CC
5394 if test -n "$CC"; then
5395   { echo "$as_me:$LINENO: result: $CC" >&5
5396 echo "${ECHO_T}$CC" >&6; }
5397 else
5398   { echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6; }
5400 fi
5401
5402
5403     test -n "$CC" && break
5404   done
5405 fi
5406 if test -z "$CC"; then
5407   ac_ct_CC=$CC
5408   for ac_prog in cl.exe
5409 do
5410   # Extract the first word of "$ac_prog", so it can be a program name with args.
5411 set dummy $ac_prog; ac_word=$2
5412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   if test -n "$ac_ct_CC"; then
5418   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425   for ac_exec_ext in '' $ac_executable_extensions; do
5426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427     ac_cv_prog_ac_ct_CC="$ac_prog"
5428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432 done
5433 IFS=$as_save_IFS
5434
5435 fi
5436 fi
5437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5438 if test -n "$ac_ct_CC"; then
5439   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5440 echo "${ECHO_T}$ac_ct_CC" >&6; }
5441 else
5442   { echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6; }
5444 fi
5445
5446
5447   test -n "$ac_ct_CC" && break
5448 done
5449
5450   if test "x$ac_ct_CC" = x; then
5451     CC=""
5452   else
5453     case $cross_compiling:$ac_tool_warned in
5454 yes:)
5455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5456 whose name does not start with the host triplet.  If you think this
5457 configuration is useful to you, please write to autoconf@gnu.org." >&5
5458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5459 whose name does not start with the host triplet.  If you think this
5460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463     CC=$ac_ct_CC
5464   fi
5465 fi
5466
5467 fi
5468
5469
5470 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5471 See \`config.log' for more details." >&5
5472 echo "$as_me: error: no acceptable C compiler found in \$PATH
5473 See \`config.log' for more details." >&2;}
5474    { (exit 1); exit 1; }; }
5475
5476 # Provide some information about the compiler.
5477 echo "$as_me:$LINENO: checking for C compiler version" >&5
5478 ac_compiler=`set X $ac_compile; echo $2`
5479 { (ac_try="$ac_compiler --version >&5"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485   (eval "$ac_compiler --version >&5") 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); }
5489 { (ac_try="$ac_compiler -v >&5"
5490 case "(($ac_try" in
5491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492   *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495   (eval "$ac_compiler -v >&5") 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }
5499 { (ac_try="$ac_compiler -V >&5"
5500 case "(($ac_try" in
5501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502   *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505   (eval "$ac_compiler -V >&5") 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); }
5509
5510 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5511 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h.  */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h.  */
5521
5522 int
5523 main ()
5524 {
5525 #ifndef __GNUC__
5526        choke me
5527 #endif
5528
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537   *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540   (eval "$ac_compile") 2>conftest.er1
5541   ac_status=$?
5542   grep -v '^ *+' conftest.er1 >conftest.err
5543   rm -f conftest.er1
5544   cat conftest.err >&5
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } && {
5547          test -z "$ac_c_werror_flag" ||
5548          test ! -s conftest.err
5549        } && test -s conftest.$ac_objext; then
5550   ac_compiler_gnu=yes
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555         ac_compiler_gnu=no
5556 fi
5557
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5560
5561 fi
5562 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5563 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5564 GCC=`test $ac_compiler_gnu = yes && echo yes`
5565 ac_test_CFLAGS=${CFLAGS+set}
5566 ac_save_CFLAGS=$CFLAGS
5567 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5568 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5569 if test "${ac_cv_prog_cc_g+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   ac_save_c_werror_flag=$ac_c_werror_flag
5573    ac_c_werror_flag=yes
5574    ac_cv_prog_cc_g=no
5575    CFLAGS="-g"
5576    cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h.  */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h.  */
5582
5583 int
5584 main ()
5585 {
5586
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5593 case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598   (eval "$ac_compile") 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } && {
5605          test -z "$ac_c_werror_flag" ||
5606          test ! -s conftest.err
5607        } && test -s conftest.$ac_objext; then
5608   ac_cv_prog_cc_g=yes
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613         CFLAGS=""
5614       cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620
5621 int
5622 main ()
5623 {
5624
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_compile") 2>conftest.er1
5637   ac_status=$?
5638   grep -v '^ *+' conftest.er1 >conftest.err
5639   rm -f conftest.er1
5640   cat conftest.err >&5
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } && {
5643          test -z "$ac_c_werror_flag" ||
5644          test ! -s conftest.err
5645        } && test -s conftest.$ac_objext; then
5646   :
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651         ac_c_werror_flag=$ac_save_c_werror_flag
5652          CFLAGS="-g"
5653          cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659
5660 int
5661 main ()
5662 {
5663
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (ac_try="$ac_compile"
5670 case "(($ac_try" in
5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672   *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675   (eval "$ac_compile") 2>conftest.er1
5676   ac_status=$?
5677   grep -v '^ *+' conftest.er1 >conftest.err
5678   rm -f conftest.er1
5679   cat conftest.err >&5
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } && {
5682          test -z "$ac_c_werror_flag" ||
5683          test ! -s conftest.err
5684        } && test -s conftest.$ac_objext; then
5685   ac_cv_prog_cc_g=yes
5686 else
5687   echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690         
5691 fi
5692
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700    ac_c_werror_flag=$ac_save_c_werror_flag
5701 fi
5702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5704 if test "$ac_test_CFLAGS" = set; then
5705   CFLAGS=$ac_save_CFLAGS
5706 elif test $ac_cv_prog_cc_g = yes; then
5707   if test "$GCC" = yes; then
5708     CFLAGS="-g -O2"
5709   else
5710     CFLAGS="-g"
5711   fi
5712 else
5713   if test "$GCC" = yes; then
5714     CFLAGS="-O2"
5715   else
5716     CFLAGS=
5717   fi
5718 fi
5719 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5720 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5721 if test "${ac_cv_prog_cc_c89+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   ac_cv_prog_cc_c89=no
5725 ac_save_CC=$CC
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 #include <stdarg.h>
5733 #include <stdio.h>
5734 #include <sys/types.h>
5735 #include <sys/stat.h>
5736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5737 struct buf { int x; };
5738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5739 static char *e (p, i)
5740      char **p;
5741      int i;
5742 {
5743   return p[i];
5744 }
5745 static char *f (char * (*g) (char **, int), char **p, ...)
5746 {
5747   char *s;
5748   va_list v;
5749   va_start (v,p);
5750   s = g (p, va_arg (v,int));
5751   va_end (v);
5752   return s;
5753 }
5754
5755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5756    function prototypes and stuff, but not '\xHH' hex character constants.
5757    These don't provoke an error unfortunately, instead are silently treated
5758    as 'x'.  The following induces an error, until -std is added to get
5759    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5760    array size at least.  It's necessary to write '\x00'==0 to get something
5761    that's true only with -std.  */
5762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5763
5764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5765    inside strings and character constants.  */
5766 #define FOO(x) 'x'
5767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5768
5769 int test (int i, double x);
5770 struct s1 {int (*f) (int a);};
5771 struct s2 {int (*f) (double a);};
5772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5773 int argc;
5774 char **argv;
5775 int
5776 main ()
5777 {
5778 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5784         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5785 do
5786   CC="$ac_save_CC $ac_arg"
5787   rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_compile") 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } && {
5801          test -z "$ac_c_werror_flag" ||
5802          test ! -s conftest.err
5803        } && test -s conftest.$ac_objext; then
5804   ac_cv_prog_cc_c89=$ac_arg
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809         
5810 fi
5811
5812 rm -f core conftest.err conftest.$ac_objext 
5813   test "x$ac_cv_prog_cc_c89" != "xno" && break
5814 done
5815 rm -f conftest.$ac_ext
5816 CC=$ac_save_CC
5817
5818 fi
5819 # AC_CACHE_VAL
5820 case "x$ac_cv_prog_cc_c89" in
5821   x)
5822     { echo "$as_me:$LINENO: result: none needed" >&5
5823 echo "${ECHO_T}none needed" >&6; } ;;
5824   xno)
5825     { echo "$as_me:$LINENO: result: unsupported" >&5
5826 echo "${ECHO_T}unsupported" >&6; } ;;
5827   *)
5828     CC="$CC $ac_cv_prog_cc_c89"
5829     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5830 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5831 esac
5832
5833
5834 ac_ext=c
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840 depcc="$CC"   am_compiler_list=
5841
5842 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5843 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5848   # We make a subdir and do the tests there.  Otherwise we can end up
5849   # making bogus files that we don't know about and never remove.  For
5850   # instance it was reported that on HP-UX the gcc test will end up
5851   # making a dummy file named `D' -- because `-MD' means `put the output
5852   # in D'.
5853   mkdir conftest.dir
5854   # Copy depcomp to subdir because otherwise we won't find it if we're
5855   # using a relative directory.
5856   cp "$am_depcomp" conftest.dir
5857   cd conftest.dir
5858   # We will build objects and dependencies in a subdirectory because
5859   # it helps to detect inapplicable dependency modes.  For instance
5860   # both Tru64's cc and ICC support -MD to output dependencies as a
5861   # side effect of compilation, but ICC will put the dependencies in
5862   # the current directory while Tru64 will put them in the object
5863   # directory.
5864   mkdir sub
5865
5866   am_cv_CC_dependencies_compiler_type=none
5867   if test "$am_compiler_list" = ""; then
5868      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5869   fi
5870   for depmode in $am_compiler_list; do
5871     # Setup a source with many dependencies, because some compilers
5872     # like to wrap large dependency lists on column 80 (with \), and
5873     # we should not choose a depcomp mode which is confused by this.
5874     #
5875     # We need to recreate these files for each test, as the compiler may
5876     # overwrite some of them when testing with obscure command lines.
5877     # This happens at least with the AIX C compiler.
5878     : > sub/conftest.c
5879     for i in 1 2 3 4 5 6; do
5880       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5881       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5882       # Solaris 8's {/usr,}/bin/sh.
5883       touch sub/conftst$i.h
5884     done
5885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5886
5887     case $depmode in
5888     nosideeffect)
5889       # after this tag, mechanisms are not by side-effect, so they'll
5890       # only be used when explicitly requested
5891       if test "x$enable_dependency_tracking" = xyes; then
5892         continue
5893       else
5894         break
5895       fi
5896       ;;
5897     none) break ;;
5898     esac
5899     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5900     # mode.  It turns out that the SunPro C++ compiler does not properly
5901     # handle `-M -o', and we need to detect this.
5902     if depmode=$depmode \
5903        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5904        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5905        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5906          >/dev/null 2>conftest.err &&
5907        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5908        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5909        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5910       # icc doesn't choke on unknown options, it will just issue warnings
5911       # or remarks (even with -Werror).  So we grep stderr for any message
5912       # that says an option was ignored or not supported.
5913       # When given -MP, icc 7.0 and 7.1 complain thusly:
5914       #   icc: Command line warning: ignoring option '-M'; no argument required
5915       # The diagnosis changed in icc 8.0:
5916       #   icc: Command line remark: option '-MP' not supported
5917       if (grep 'ignoring option' conftest.err ||
5918           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5919         am_cv_CC_dependencies_compiler_type=$depmode
5920         break
5921       fi
5922     fi
5923   done
5924
5925   cd ..
5926   rm -rf conftest.dir
5927 else
5928   am_cv_CC_dependencies_compiler_type=none
5929 fi
5930
5931 fi
5932 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5933 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5935
5936  
5937
5938 if 
5939   test "x$enable_dependency_tracking" != xno \
5940   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5941   am__fastdepCC_TRUE=
5942   am__fastdepCC_FALSE='#'
5943 else
5944   am__fastdepCC_TRUE='#'
5945   am__fastdepCC_FALSE=
5946 fi
5947
5948
5949
5950 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5951
5952
5953 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5954 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_GREP+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   # Extract the first word of "grep ggrep" to use in msg output
5959 if test -z "$GREP"; then
5960 set dummy grep ggrep; ac_prog_name=$2
5961 if test "${ac_cv_path_GREP+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   ac_path_GREP_found=false
5965 # Loop through the user's path and test for each of PROGNAME-LIST
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971   for ac_prog in grep ggrep; do
5972   for ac_exec_ext in '' $ac_executable_extensions; do
5973     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5974     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5975     # Check for GNU ac_path_GREP and select it if it is found.
5976   # Check for GNU $ac_path_GREP
5977 case `"$ac_path_GREP" --version 2>&1` in
5978 *GNU*)
5979   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5980 *)
5981   ac_count=0
5982   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5983   while :
5984   do
5985     cat "conftest.in" "conftest.in" >"conftest.tmp"
5986     mv "conftest.tmp" "conftest.in"
5987     cp "conftest.in" "conftest.nl"
5988     echo 'GREP' >> "conftest.nl"
5989     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5990     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5991     ac_count=`expr $ac_count + 1`
5992     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5993       # Best one so far, save it but keep looking for a better one
5994       ac_cv_path_GREP="$ac_path_GREP"
5995       ac_path_GREP_max=$ac_count
5996     fi
5997     # 10*(2^10) chars as input seems more than enough
5998     test $ac_count -gt 10 && break
5999   done
6000   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6001 esac
6002
6003
6004     $ac_path_GREP_found && break 3
6005   done
6006 done
6007
6008 done
6009 IFS=$as_save_IFS
6010
6011
6012 fi
6013
6014 GREP="$ac_cv_path_GREP"
6015 if test -z "$GREP"; then
6016   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6017 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6018    { (exit 1); exit 1; }; }
6019 fi
6020
6021 else
6022   ac_cv_path_GREP=$GREP
6023 fi
6024
6025
6026 fi
6027 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6028 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6029  GREP="$ac_cv_path_GREP"
6030  
6031
6032 { echo "$as_me:$LINENO: checking for egrep" >&5
6033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6034 if test "${ac_cv_path_EGREP+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6038    then ac_cv_path_EGREP="$GREP -E"
6039    else
6040      # Extract the first word of "egrep" to use in msg output
6041 if test -z "$EGREP"; then
6042 set dummy egrep; ac_prog_name=$2
6043 if test "${ac_cv_path_EGREP+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   ac_path_EGREP_found=false
6047 # Loop through the user's path and test for each of PROGNAME-LIST
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_prog in egrep; do
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6056     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6057     # Check for GNU ac_path_EGREP and select it if it is found.
6058   # Check for GNU $ac_path_EGREP
6059 case `"$ac_path_EGREP" --version 2>&1` in
6060 *GNU*)
6061   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6062 *)
6063   ac_count=0
6064   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6065   while :
6066   do
6067     cat "conftest.in" "conftest.in" >"conftest.tmp"
6068     mv "conftest.tmp" "conftest.in"
6069     cp "conftest.in" "conftest.nl"
6070     echo 'EGREP' >> "conftest.nl"
6071     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6072     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6073     ac_count=`expr $ac_count + 1`
6074     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6075       # Best one so far, save it but keep looking for a better one
6076       ac_cv_path_EGREP="$ac_path_EGREP"
6077       ac_path_EGREP_max=$ac_count
6078     fi
6079     # 10*(2^10) chars as input seems more than enough
6080     test $ac_count -gt 10 && break
6081   done
6082   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6083 esac
6084
6085
6086     $ac_path_EGREP_found && break 3
6087   done
6088 done
6089
6090 done
6091 IFS=$as_save_IFS
6092
6093
6094 fi
6095
6096 EGREP="$ac_cv_path_EGREP"
6097 if test -z "$EGREP"; then
6098   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6099 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6100    { (exit 1); exit 1; }; }
6101 fi
6102
6103 else
6104   ac_cv_path_EGREP=$EGREP
6105 fi
6106
6107
6108    fi
6109 fi
6110 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6111 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6112  EGREP="$ac_cv_path_EGREP"
6113  
6114
6115 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6116 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6117 if test "${ac_cv_header_stdc+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #include <stdlib.h>
6127 #include <stdarg.h>
6128 #include <string.h>
6129 #include <float.h>
6130
6131 int
6132 main ()
6133 {
6134
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6141 case "(($ac_try" in
6142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143   *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146   (eval "$ac_compile") 2>conftest.er1
6147   ac_status=$?
6148   grep -v '^ *+' conftest.er1 >conftest.err
6149   rm -f conftest.er1
6150   cat conftest.err >&5
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } && {
6153          test -z "$ac_c_werror_flag" ||
6154          test ! -s conftest.err
6155        } && test -s conftest.$ac_objext; then
6156   ac_cv_header_stdc=yes
6157 else
6158   echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161         ac_cv_header_stdc=no
6162 fi
6163
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165
6166 if test $ac_cv_header_stdc = yes; then
6167   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6168   cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 #include <string.h>
6175
6176 _ACEOF
6177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6178   $EGREP "memchr" >/dev/null 2>&1; then
6179   :
6180 else
6181   ac_cv_header_stdc=no
6182 fi
6183 rm -f conftest*
6184
6185 fi
6186
6187 if test $ac_cv_header_stdc = yes; then
6188   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6189   cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195 #include <stdlib.h>
6196
6197 _ACEOF
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199   $EGREP "free" >/dev/null 2>&1; then
6200   :
6201 else
6202   ac_cv_header_stdc=no
6203 fi
6204 rm -f conftest*
6205
6206 fi
6207
6208 if test $ac_cv_header_stdc = yes; then
6209   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6210   if test "$cross_compiling" = yes; then
6211   :
6212 else
6213   cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 #include <ctype.h>
6220 #include <stdlib.h>
6221 #if ((' ' & 0x0FF) == 0x020)
6222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6224 #else
6225 # define ISLOWER(c) \
6226                    (('a' <= (c) && (c) <= 'i') \
6227                      || ('j' <= (c) && (c) <= 'r') \
6228                      || ('s' <= (c) && (c) <= 'z'))
6229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6230 #endif
6231
6232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6233 int
6234 main ()
6235 {
6236   int i;
6237   for (i = 0; i < 256; i++)
6238     if (XOR (islower (i), ISLOWER (i))
6239         || toupper (i) != TOUPPER (i))
6240       return 2;
6241   return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest$ac_exeext
6245 if { (ac_try="$ac_link"
6246 case "(($ac_try" in
6247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248   *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251   (eval "$ac_link") 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6255   { (case "(($ac_try" in
6256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257   *) ac_try_echo=$ac_try;;
6258 esac
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260   (eval "$ac_try") 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; }; then
6264   :
6265 else
6266   echo "$as_me: program exited with status $ac_status" >&5
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ( exit $ac_status )
6271 ac_cv_header_stdc=no
6272 fi
6273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6274 fi
6275
6276
6277 fi
6278 fi
6279 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6280 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6281 if test $ac_cv_header_stdc = yes; then
6282   
6283 cat >>confdefs.h <<\_ACEOF
6284 @%:@define STDC_HEADERS 1
6285 _ACEOF
6286
6287 fi
6288
6289 # Find a good install program.  We prefer a C program (faster),
6290 # so one script is as good as another.  But avoid the broken or
6291 # incompatible versions:
6292 # SysV /etc/install, /usr/sbin/install
6293 # SunOS /usr/etc/install
6294 # IRIX /sbin/install
6295 # AIX /bin/install
6296 # AmigaOS /C/install, which installs bootblocks on floppy discs
6297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6300 # OS/2's system install, which has a completely different semantic
6301 # ./install, which can be erroneously created by make from ./install.sh.
6302 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6303 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6304 if test -z "$INSTALL"; then
6305 if test "${ac_cv_path_install+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313   # Account for people who put trailing slashes in PATH elements.
6314 case $as_dir/ in
6315   ./ | .// | /cC/* | \
6316   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6317   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6318   /usr/ucb/* ) ;;
6319   *)
6320     # OSF1 and SCO ODT 3.0 have their own names for install.
6321     # Don't use installbsd from OSF since it installs stuff as root
6322     # by default.
6323     for ac_prog in ginstall scoinst install; do
6324       for ac_exec_ext in '' $ac_executable_extensions; do
6325         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6326           if test $ac_prog = install &&
6327             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6328             # AIX install.  It has an incompatible calling convention.
6329             :
6330           elif test $ac_prog = install &&
6331             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6332             # program-specific install script used by HP pwplus--don't use.
6333             :
6334           else
6335             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6336             break 3
6337           fi
6338         fi
6339       done
6340     done
6341     ;;
6342 esac
6343 done
6344 IFS=$as_save_IFS
6345
6346
6347 fi
6348   if test "${ac_cv_path_install+set}" = set; then
6349     INSTALL=$ac_cv_path_install
6350   else
6351     # As a last resort, use the slow shell script.  Don't cache a
6352     # value for INSTALL within a source directory, because that will
6353     # break other packages using the cache if that directory is
6354     # removed, or if the value is a relative name.
6355     INSTALL=$ac_install_sh
6356   fi
6357 fi
6358 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6359 echo "${ECHO_T}$INSTALL" >&6; }
6360
6361 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6362 # It thinks the first close brace ends the variable substitution.
6363 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6364
6365 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6366
6367 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6368
6369 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6370 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6371 LN_S=$as_ln_s
6372 if test "$LN_S" = "ln -s"; then
6373   { echo "$as_me:$LINENO: result: yes" >&5
6374 echo "${ECHO_T}yes" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6377 echo "${ECHO_T}no, using $LN_S" >&6; }
6378 fi
6379
6380 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6381 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6382 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   cat >conftest.make <<\_ACEOF
6387 SHELL = /bin/sh
6388 all:
6389         @echo '@@@%%%=$(MAKE)=@@@%%%'
6390 _ACEOF
6391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6393   *@@@%%%=?*=@@@%%%*)
6394     eval ac_cv_prog_make_${ac_make}_set=yes;;
6395   *)
6396     eval ac_cv_prog_make_${ac_make}_set=no;;
6397 esac
6398 rm -f conftest.make
6399 fi
6400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6401   { echo "$as_me:$LINENO: result: yes" >&5
6402 echo "${ECHO_T}yes" >&6; }
6403   SET_MAKE=
6404 else
6405   { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407   SET_MAKE="MAKE=${MAKE-make}"
6408 fi
6409
6410 # Check whether --enable-fast-install was given.
6411 if test "${enable_fast_install+set}" = set; then
6412   enableval=$enable_fast_install; p=${PACKAGE-default}
6413     case $enableval in
6414     yes) enable_fast_install=yes ;;
6415     no) enable_fast_install=no ;;
6416     *)
6417       enable_fast_install=no
6418       # Look at the argument we got.  We use all the common list separators.
6419       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6420       for pkg in $enableval; do
6421         IFS="$lt_save_ifs"
6422         if test "X$pkg" = "X$p"; then
6423           enable_fast_install=yes
6424         fi
6425       done
6426       IFS="$lt_save_ifs"
6427       ;;
6428     esac
6429 else
6430   enable_fast_install=yes
6431 fi
6432
6433
6434 # Make sure we can run config.sub.
6435 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6436   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6437 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6438    { (exit 1); exit 1; }; }
6439
6440 { echo "$as_me:$LINENO: checking build system type" >&5
6441 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6442 if test "${ac_cv_build+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   ac_build_alias=$build_alias
6446 test "x$ac_build_alias" = x &&
6447   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6448 test "x$ac_build_alias" = x &&
6449   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6450 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6451    { (exit 1); exit 1; }; }
6452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6453   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6454 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6455    { (exit 1); exit 1; }; }
6456
6457 fi
6458 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6459 echo "${ECHO_T}$ac_cv_build" >&6; }
6460 case $ac_cv_build in
6461 *-*-*) ;;
6462 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6463 echo "$as_me: error: invalid value of canonical build" >&2;}
6464    { (exit 1); exit 1; }; };;
6465 esac
6466 build=$ac_cv_build
6467 ac_save_IFS=$IFS; IFS='-'
6468 set x $ac_cv_build
6469 shift
6470 build_cpu=$1
6471 build_vendor=$2
6472 shift; shift
6473 # Remember, the first character of IFS is used to create $*,
6474 # except with old shells:
6475 build_os=$*
6476 IFS=$ac_save_IFS
6477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6478
6479
6480 { echo "$as_me:$LINENO: checking host system type" >&5
6481 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6482 if test "${ac_cv_host+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   if test "x$host_alias" = x; then
6486   ac_cv_host=$ac_cv_build
6487 else
6488   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6489     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6490 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6491    { (exit 1); exit 1; }; }
6492 fi
6493
6494 fi
6495 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6496 echo "${ECHO_T}$ac_cv_host" >&6; }
6497 case $ac_cv_host in
6498 *-*-*) ;;
6499 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6500 echo "$as_me: error: invalid value of canonical host" >&2;}
6501    { (exit 1); exit 1; }; };;
6502 esac
6503 host=$ac_cv_host
6504 ac_save_IFS=$IFS; IFS='-'
6505 set x $ac_cv_host
6506 shift
6507 host_cpu=$1
6508 host_vendor=$2
6509 shift; shift
6510 # Remember, the first character of IFS is used to create $*,
6511 # except with old shells:
6512 host_os=$*
6513 IFS=$ac_save_IFS
6514 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6515
6516
6517 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6518 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6519 if test "${lt_cv_path_SED+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   # Loop through the user's path and test for sed and gsed.
6523 # Then use that list of sed's as ones to test for truncation.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529   for lt_ac_prog in sed gsed; do
6530     for ac_exec_ext in '' $ac_executable_extensions; do
6531       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6532         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6533       fi
6534     done
6535   done
6536 done
6537 IFS=$as_save_IFS
6538 lt_ac_max=0
6539 lt_ac_count=0
6540 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6541 # along with /bin/sed that truncates output.
6542 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6543   test ! -f $lt_ac_sed && continue
6544   cat /dev/null > conftest.in
6545   lt_ac_count=0
6546   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6547   # Check for GNU sed and select it if it is found.
6548   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6549     lt_cv_path_SED=$lt_ac_sed
6550     break
6551   fi
6552   while true; do
6553     cat conftest.in conftest.in >conftest.tmp
6554     mv conftest.tmp conftest.in
6555     cp conftest.in conftest.nl
6556     echo >>conftest.nl
6557     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6558     cmp -s conftest.out conftest.nl || break
6559     # 10000 chars as input seems more than enough
6560     test $lt_ac_count -gt 10 && break
6561     lt_ac_count=`expr $lt_ac_count + 1`
6562     if test $lt_ac_count -gt $lt_ac_max; then
6563       lt_ac_max=$lt_ac_count
6564       lt_cv_path_SED=$lt_ac_sed
6565     fi
6566   done
6567 done
6568
6569 fi
6570
6571 SED=$lt_cv_path_SED
6572
6573 { echo "$as_me:$LINENO: result: $SED" >&5
6574 echo "${ECHO_T}$SED" >&6; }
6575
6576
6577 # Check whether --with-gnu-ld was given.
6578 if test "${with_gnu_ld+set}" = set; then
6579   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6580 else
6581   with_gnu_ld=no
6582 fi
6583
6584 ac_prog=ld
6585 if test "$GCC" = yes; then
6586   # Check if gcc -print-prog-name=ld gives a path.
6587   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6588 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6589   case $host in
6590   *-*-mingw*)
6591     # gcc leaves a trailing carriage return which upsets mingw
6592     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6593   *)
6594     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6595   esac
6596   case $ac_prog in
6597     # Accept absolute paths.
6598     [\\/]* | ?:[\\/]*)
6599       re_direlt='/[^/][^/]*/\.\./'
6600       # Canonicalize the pathname of ld
6601       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6602       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6603         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6604       done
6605       test -z "$LD" && LD="$ac_prog"
6606       ;;
6607   "")
6608     # If it fails, then pretend we aren't using GCC.
6609     ac_prog=ld
6610     ;;
6611   *)
6612     # If it is relative, then search for the first ld in PATH.
6613     with_gnu_ld=unknown
6614     ;;
6615   esac
6616 elif test "$with_gnu_ld" = yes; then
6617   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6618 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6619 else
6620   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6621 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6622 fi
6623 if test "${lt_cv_path_LD+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   if test -z "$LD"; then
6627   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6628   for ac_dir in $PATH; do
6629     IFS="$lt_save_ifs"
6630     test -z "$ac_dir" && ac_dir=.
6631     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6632       lt_cv_path_LD="$ac_dir/$ac_prog"
6633       # Check to see if the program is GNU ld.  I'd rather use --version,
6634       # but apparently some variants of GNU ld only accept -v.
6635       # Break only if it was the GNU/non-GNU ld that we prefer.
6636       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6637       *GNU* | *'with BFD'*)
6638         test "$with_gnu_ld" != no && break
6639         ;;
6640       *)
6641         test "$with_gnu_ld" != yes && break
6642         ;;
6643       esac
6644     fi
6645   done
6646   IFS="$lt_save_ifs"
6647 else
6648   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6649 fi
6650 fi
6651
6652 LD="$lt_cv_path_LD"
6653 if test -n "$LD"; then
6654   { echo "$as_me:$LINENO: result: $LD" >&5
6655 echo "${ECHO_T}$LD" >&6; }
6656 else
6657   { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6659 fi
6660 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6661 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6662    { (exit 1); exit 1; }; }
6663 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6664 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6665 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6669 case `$LD -v 2>&1 </dev/null` in
6670 *GNU* | *'with BFD'*)
6671   lt_cv_prog_gnu_ld=yes
6672   ;;
6673 *)
6674   lt_cv_prog_gnu_ld=no
6675   ;;
6676 esac
6677 fi
6678 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6679 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6680 with_gnu_ld=$lt_cv_prog_gnu_ld
6681
6682
6683 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6684 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6685 if test "${lt_cv_ld_reload_flag+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   lt_cv_ld_reload_flag='-r'
6689 fi
6690 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6691 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6692 reload_flag=$lt_cv_ld_reload_flag
6693 case $reload_flag in
6694 "" | " "*) ;;
6695 *) reload_flag=" $reload_flag" ;;
6696 esac
6697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6698 case $host_os in
6699   darwin*)
6700     if test "$GCC" = yes; then
6701       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6702     else
6703       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6704     fi
6705     ;;
6706 esac
6707
6708 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6709 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6710 if test "${lt_cv_path_NM+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   if test -n "$NM"; then
6714   # Let the user override the test.
6715   lt_cv_path_NM="$NM"
6716 else
6717   lt_nm_to_check="${ac_tool_prefix}nm"
6718   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6719     lt_nm_to_check="$lt_nm_to_check nm"
6720   fi
6721   for lt_tmp_nm in $lt_nm_to_check; do
6722     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6723     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6724       IFS="$lt_save_ifs"
6725       test -z "$ac_dir" && ac_dir=.
6726       tmp_nm="$ac_dir/$lt_tmp_nm"
6727       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6728         # Check to see if the nm accepts a BSD-compat flag.
6729         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6730         #   nm: unknown option "B" ignored
6731         # Tru64's nm complains that /dev/null is an invalid object file
6732         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6733         */dev/null* | *'Invalid file or object type'*)
6734           lt_cv_path_NM="$tmp_nm -B"
6735           break
6736           ;;
6737         *)
6738           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6739           */dev/null*)
6740             lt_cv_path_NM="$tmp_nm -p"
6741             break
6742             ;;
6743           *)
6744             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6745             continue # so that we can try to find one that supports BSD flags
6746             ;;
6747           esac
6748           ;;
6749         esac
6750       fi
6751     done
6752     IFS="$lt_save_ifs"
6753   done
6754   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6755 fi
6756 fi
6757 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6758 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6759 NM="$lt_cv_path_NM"
6760
6761 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6762 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6763 if test "${lt_cv_deplibs_check_method+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   lt_cv_file_magic_cmd='$MAGIC_CMD'
6767 lt_cv_file_magic_test_file=
6768 lt_cv_deplibs_check_method='unknown'
6769 # Need to set the preceding variable on all platforms that support
6770 # interlibrary dependencies.
6771 # 'none' -- dependencies not supported.
6772 # `unknown' -- same as none, but documents that we really don't know.
6773 # 'pass_all' -- all dependencies passed with no checks.
6774 # 'test_compile' -- check by making test program.
6775 # 'file_magic [[regex]]' -- check by looking for files in library path
6776 # which responds to the $file_magic_cmd with a given extended regex.
6777 # If you have `file' or equivalent on your system and you're not sure
6778 # whether `pass_all' will *always* work, you probably want this one.
6779
6780 case $host_os in
6781 aix[4-9]*)
6782   lt_cv_deplibs_check_method=pass_all
6783   ;;
6784
6785 beos*)
6786   lt_cv_deplibs_check_method=pass_all
6787   ;;
6788
6789 bsdi[45]*)
6790   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6791   lt_cv_file_magic_cmd='/usr/bin/file -L'
6792   lt_cv_file_magic_test_file=/shlib/libc.so
6793   ;;
6794
6795 cygwin*)
6796   # func_win32_libid is a shell function defined in ltmain.sh
6797   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6798   lt_cv_file_magic_cmd='func_win32_libid'
6799   ;;
6800
6801 mingw* | pw32*)
6802   # Base MSYS/MinGW do not provide the 'file' command needed by
6803   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6804   # unless we find 'file', for example because we are cross-compiling.
6805   if ( file / ) >/dev/null 2>&1; then
6806     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6807     lt_cv_file_magic_cmd='func_win32_libid'
6808   else
6809     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6810     lt_cv_file_magic_cmd='$OBJDUMP -f'
6811   fi
6812   ;;
6813
6814 darwin* | rhapsody*)
6815   lt_cv_deplibs_check_method=pass_all
6816   ;;
6817
6818 freebsd* | dragonfly*)
6819   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6820     case $host_cpu in
6821     i*86 )
6822       # Not sure whether the presence of OpenBSD here was a mistake.
6823       # Let's accept both of them until this is cleared up.
6824       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6825       lt_cv_file_magic_cmd=/usr/bin/file
6826       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6827       ;;
6828     esac
6829   else
6830     lt_cv_deplibs_check_method=pass_all
6831   fi
6832   ;;
6833
6834 gnu*)
6835   lt_cv_deplibs_check_method=pass_all
6836   ;;
6837
6838 hpux10.20* | hpux11*)
6839   lt_cv_file_magic_cmd=/usr/bin/file
6840   case $host_cpu in
6841   ia64*)
6842     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6843     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6844     ;;
6845   hppa*64*)
6846     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]'
6847     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6848     ;;
6849   *)
6850     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6851     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6852     ;;
6853   esac
6854   ;;
6855
6856 interix[3-9]*)
6857   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6858   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6859   ;;
6860
6861 irix5* | irix6* | nonstopux*)
6862   case $LD in
6863   *-32|*"-32 ") libmagic=32-bit;;
6864   *-n32|*"-n32 ") libmagic=N32;;
6865   *-64|*"-64 ") libmagic=64-bit;;
6866   *) libmagic=never-match;;
6867   esac
6868   lt_cv_deplibs_check_method=pass_all
6869   ;;
6870
6871 # This must be Linux ELF.
6872 linux* | k*bsd*-gnu)
6873   lt_cv_deplibs_check_method=pass_all
6874   ;;
6875
6876 netbsd*)
6877   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6878     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6879   else
6880     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6881   fi
6882   ;;
6883
6884 newos6*)
6885   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6886   lt_cv_file_magic_cmd=/usr/bin/file
6887   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6888   ;;
6889
6890 nto-qnx*)
6891   lt_cv_deplibs_check_method=unknown
6892   ;;
6893
6894 openbsd*)
6895   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6896     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6897   else
6898     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6899   fi
6900   ;;
6901
6902 osf3* | osf4* | osf5*)
6903   lt_cv_deplibs_check_method=pass_all
6904   ;;
6905
6906 rdos*)
6907   lt_cv_deplibs_check_method=pass_all
6908   ;;
6909
6910 solaris*)
6911   lt_cv_deplibs_check_method=pass_all
6912   ;;
6913
6914 sysv4 | sysv4.3*)
6915   case $host_vendor in
6916   motorola)
6917     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]'
6918     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6919     ;;
6920   ncr)
6921     lt_cv_deplibs_check_method=pass_all
6922     ;;
6923   sequent)
6924     lt_cv_file_magic_cmd='/bin/file'
6925     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6926     ;;
6927   sni)
6928     lt_cv_file_magic_cmd='/bin/file'
6929     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6930     lt_cv_file_magic_test_file=/lib/libc.so
6931     ;;
6932   siemens)
6933     lt_cv_deplibs_check_method=pass_all
6934     ;;
6935   pc)
6936     lt_cv_deplibs_check_method=pass_all
6937     ;;
6938   esac
6939   ;;
6940
6941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6942   lt_cv_deplibs_check_method=pass_all
6943   ;;
6944 esac
6945
6946 fi
6947 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6948 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6949 file_magic_cmd=$lt_cv_file_magic_cmd
6950 deplibs_check_method=$lt_cv_deplibs_check_method
6951 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6952
6953
6954
6955
6956 # If no C compiler was specified, use CC.
6957 LTCC=${LTCC-"$CC"}
6958
6959 # If no C compiler flags were specified, use CFLAGS.
6960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6961
6962 # Allow CC to be a program name with arguments.
6963 compiler=$CC
6964
6965 # Check whether --enable-libtool-lock was given.
6966 if test "${enable_libtool_lock+set}" = set; then
6967   enableval=$enable_libtool_lock; 
6968 fi
6969
6970 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6971
6972 # Some flags need to be propagated to the compiler or linker for good
6973 # libtool support.
6974 case $host in
6975 ia64-*-hpux*)
6976   # Find out which ABI we are using.
6977   echo 'int i;' > conftest.$ac_ext
6978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979   (eval $ac_compile) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; then
6983     case `/usr/bin/file conftest.$ac_objext` in
6984     *ELF-32*)
6985       HPUX_IA64_MODE="32"
6986       ;;
6987     *ELF-64*)
6988       HPUX_IA64_MODE="64"
6989       ;;
6990     esac
6991   fi
6992   rm -rf conftest*
6993   ;;
6994 *-*-irix6*)
6995   # Find out which ABI we are using.
6996   echo '#line __oline__ "configure"' > conftest.$ac_ext
6997   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; then
7002    if test "$lt_cv_prog_gnu_ld" = yes; then
7003     case `/usr/bin/file conftest.$ac_objext` in
7004     *32-bit*)
7005       LD="${LD-ld} -melf32bsmip"
7006       ;;
7007     *N32*)
7008       LD="${LD-ld} -melf32bmipn32"
7009       ;;
7010     *64-bit*)
7011       LD="${LD-ld} -melf64bmip"
7012       ;;
7013     esac
7014    else
7015     case `/usr/bin/file conftest.$ac_objext` in
7016     *32-bit*)
7017       LD="${LD-ld} -32"
7018       ;;
7019     *N32*)
7020       LD="${LD-ld} -n32"
7021       ;;
7022     *64-bit*)
7023       LD="${LD-ld} -64"
7024       ;;
7025     esac
7026    fi
7027   fi
7028   rm -rf conftest*
7029   ;;
7030
7031 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7032 s390*-*linux*|sparc*-*linux*)
7033   # Find out which ABI we are using.
7034   echo 'int i;' > conftest.$ac_ext
7035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036   (eval $ac_compile) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; then
7040     case `/usr/bin/file conftest.o` in
7041     *32-bit*)
7042       case $host in
7043         x86_64-*kfreebsd*-gnu)
7044           LD="${LD-ld} -m elf_i386_fbsd"
7045           ;;
7046         x86_64-*linux*)
7047           LD="${LD-ld} -m elf_i386"
7048           ;;
7049         ppc64-*linux*|powerpc64-*linux*)
7050           LD="${LD-ld} -m elf32ppclinux"
7051           ;;
7052         s390x-*linux*)
7053           LD="${LD-ld} -m elf_s390"
7054           ;;
7055         sparc64-*linux*)
7056           LD="${LD-ld} -m elf32_sparc"
7057           ;;
7058       esac
7059       ;;
7060     *64-bit*)
7061       case $host in
7062         x86_64-*kfreebsd*-gnu)
7063           LD="${LD-ld} -m elf_x86_64_fbsd"
7064           ;;
7065         x86_64-*linux*)
7066           LD="${LD-ld} -m elf_x86_64"
7067           ;;
7068         ppc*-*linux*|powerpc*-*linux*)
7069           LD="${LD-ld} -m elf64ppc"
7070           ;;
7071         s390*-*linux*)
7072           LD="${LD-ld} -m elf64_s390"
7073           ;;
7074         sparc*-*linux*)
7075           LD="${LD-ld} -m elf64_sparc"
7076           ;;
7077       esac
7078       ;;
7079     esac
7080   fi
7081   rm -rf conftest*
7082   ;;
7083
7084 *-*-sco3.2v5*)
7085   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7086   SAVE_CFLAGS="$CFLAGS"
7087   CFLAGS="$CFLAGS -belf"
7088   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7089 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7090 if test "${lt_cv_cc_needs_belf+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   ac_ext=c
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098
7099      cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105
7106 int
7107 main ()
7108 {
7109
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (ac_try="$ac_link"
7116 case "(($ac_try" in
7117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118   *) ac_try_echo=$ac_try;;
7119 esac
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121   (eval "$ac_link") 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } && {
7128          test -z "$ac_c_werror_flag" ||
7129          test ! -s conftest.err
7130        } && test -s conftest$ac_exeext &&
7131        $as_test_x conftest$ac_exeext; then
7132   lt_cv_cc_needs_belf=yes
7133 else
7134   echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137         lt_cv_cc_needs_belf=no
7138 fi
7139
7140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7141       conftest$ac_exeext conftest.$ac_ext
7142      ac_ext=c
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148 fi
7149 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7150 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7151   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7152     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7153     CFLAGS="$SAVE_CFLAGS"
7154   fi
7155   ;;
7156 sparc*-*solaris*)
7157   # Find out which ABI we are using.
7158   echo 'int i;' > conftest.$ac_ext
7159   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160   (eval $ac_compile) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; then
7164     case `/usr/bin/file conftest.o` in
7165     *64-bit*)
7166       case $lt_cv_prog_gnu_ld in
7167       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7168       *)
7169         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7170           LD="${LD-ld} -64"
7171         fi
7172         ;;
7173       esac
7174       ;;
7175     esac
7176   fi
7177   rm -rf conftest*
7178   ;;
7179
7180
7181 esac
7182
7183 need_locks="$enable_libtool_lock"
7184
7185
7186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7197                   inttypes.h stdint.h unistd.h
7198 do
7199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211 $ac_includes_default
7212
7213 @%:@include <$ac_header>
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7217 case "(($ac_try" in
7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219   *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222   (eval "$ac_compile") 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } && {
7229          test -z "$ac_c_werror_flag" ||
7230          test ! -s conftest.err
7231        } && test -s conftest.$ac_objext; then
7232   eval "$as_ac_Header=yes"
7233 else
7234   echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237         eval "$as_ac_Header=no"
7238 fi
7239
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 fi
7242 ac_res=`eval echo '${'$as_ac_Header'}'`
7243                { echo "$as_me:$LINENO: result: $ac_res" >&5
7244 echo "${ECHO_T}$ac_res" >&6; }
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246   cat >>confdefs.h <<_ACEOF
7247 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248 _ACEOF
7249  
7250 fi
7251
7252 done
7253
7254
7255
7256 for ac_header in dlfcn.h
7257 do
7258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7260   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 fi
7265 ac_res=`eval echo '${'$as_ac_Header'}'`
7266                { echo "$as_me:$LINENO: result: $ac_res" >&5
7267 echo "${ECHO_T}$ac_res" >&6; }
7268 else
7269   # Is the header compilable?
7270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h.  */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h.  */
7278 $ac_includes_default
7279 @%:@include <$ac_header>
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (ac_try="$ac_compile"
7283 case "(($ac_try" in
7284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285   *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288   (eval "$ac_compile") 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } && {
7295          test -z "$ac_c_werror_flag" ||
7296          test ! -s conftest.err
7297        } && test -s conftest.$ac_objext; then
7298   ac_header_compiler=yes
7299 else
7300   echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7302
7303         ac_header_compiler=no
7304 fi
7305
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7308 echo "${ECHO_T}$ac_header_compiler" >&6; }
7309
7310 # Is the header present?
7311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319 @%:@include <$ac_header>
7320 _ACEOF
7321 if { (ac_try="$ac_cpp conftest.$ac_ext"
7322 case "(($ac_try" in
7323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324   *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7328   ac_status=$?
7329   grep -v '^ *+' conftest.er1 >conftest.err
7330   rm -f conftest.er1
7331   cat conftest.err >&5
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); } >/dev/null && {
7334          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7335          test ! -s conftest.err
7336        }; then
7337   ac_header_preproc=yes
7338 else
7339   echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342   ac_header_preproc=no
7343 fi
7344
7345 rm -f conftest.err conftest.$ac_ext
7346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7347 echo "${ECHO_T}$ac_header_preproc" >&6; }
7348
7349 # So?  What about this header?
7350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7351   yes:no: )
7352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7356     ac_header_preproc=yes
7357     ;;
7358   no:yes:* )
7359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7371     
7372     ;;
7373 esac
7374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   eval "$as_ac_Header=\$ac_header_preproc"
7380 fi
7381 ac_res=`eval echo '${'$as_ac_Header'}'`
7382                { echo "$as_me:$LINENO: result: $ac_res" >&5
7383 echo "${ECHO_T}$ac_res" >&6; }
7384
7385 fi
7386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7387   cat >>confdefs.h <<_ACEOF
7388 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7389 _ACEOF
7390  
7391 fi
7392
7393 done
7394
7395
7396
7397 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7398     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7399     (test "X$CXX" != "Xg++"))) ; then
7400   ac_ext=cpp
7401 ac_cpp='$CXXCPP $CPPFLAGS'
7402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7405 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7406 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7407 if test -z "$CXXCPP"; then
7408   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411       # Double quotes because CXXCPP needs to be expanded
7412     for CXXCPP in "$CXX -E" "/lib/cpp"
7413     do
7414       ac_preproc_ok=false
7415 for ac_cxx_preproc_warn_flag in '' yes
7416 do
7417   # Use a header file that comes with gcc, so configuring glibc
7418   # with a fresh cross-compiler works.
7419   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7420   # <limits.h> exists even on freestanding compilers.
7421   # On the NeXT, cc -E runs the code through the compiler's parser,
7422   # not just through cpp. "Syntax error" is here to catch this case.
7423   cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 @%:@ifdef __STDC__
7430 @%:@ include <limits.h>
7431 @%:@else
7432 @%:@ include <assert.h>
7433 @%:@endif
7434                      Syntax error
7435 _ACEOF
7436 if { (ac_try="$ac_cpp conftest.$ac_ext"
7437 case "(($ac_try" in
7438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439   *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } >/dev/null && {
7449          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7450          test ! -s conftest.err
7451        }; then
7452   :
7453 else
7454   echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457   # Broken: fails on valid input.
7458 continue
7459 fi
7460
7461 rm -f conftest.err conftest.$ac_ext
7462
7463   # OK, works on sane cases.  Now check whether nonexistent headers
7464   # can be detected and how.
7465   cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471 @%:@include <ac_nonexistent.h>
7472 _ACEOF
7473 if { (ac_try="$ac_cpp conftest.$ac_ext"
7474 case "(($ac_try" in
7475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476   *) ac_try_echo=$ac_try;;
7477 esac
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7480   ac_status=$?
7481   grep -v '^ *+' conftest.er1 >conftest.err
7482   rm -f conftest.er1
7483   cat conftest.err >&5
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } >/dev/null && {
7486          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7487          test ! -s conftest.err
7488        }; then
7489   # Broken: success on invalid input.
7490 continue
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495   # Passes both tests.
7496 ac_preproc_ok=:
7497 break
7498 fi
7499
7500 rm -f conftest.err conftest.$ac_ext
7501
7502 done
7503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7504 rm -f conftest.err conftest.$ac_ext
7505 if $ac_preproc_ok; then
7506   break
7507 fi
7508
7509     done
7510     ac_cv_prog_CXXCPP=$CXXCPP
7511   
7512 fi
7513   CXXCPP=$ac_cv_prog_CXXCPP
7514 else
7515   ac_cv_prog_CXXCPP=$CXXCPP
7516 fi
7517 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7518 echo "${ECHO_T}$CXXCPP" >&6; }
7519 ac_preproc_ok=false
7520 for ac_cxx_preproc_warn_flag in '' yes
7521 do
7522   # Use a header file that comes with gcc, so configuring glibc
7523   # with a fresh cross-compiler works.
7524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525   # <limits.h> exists even on freestanding compilers.
7526   # On the NeXT, cc -E runs the code through the compiler's parser,
7527   # not just through cpp. "Syntax error" is here to catch this case.
7528   cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h.  */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h.  */
7534 @%:@ifdef __STDC__
7535 @%:@ include <limits.h>
7536 @%:@else
7537 @%:@ include <assert.h>
7538 @%:@endif
7539                      Syntax error
7540 _ACEOF
7541 if { (ac_try="$ac_cpp conftest.$ac_ext"
7542 case "(($ac_try" in
7543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544   *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7548   ac_status=$?
7549   grep -v '^ *+' conftest.er1 >conftest.err
7550   rm -f conftest.er1
7551   cat conftest.err >&5
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } >/dev/null && {
7554          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7555          test ! -s conftest.err
7556        }; then
7557   :
7558 else
7559   echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562   # Broken: fails on valid input.
7563 continue
7564 fi
7565
7566 rm -f conftest.err conftest.$ac_ext
7567
7568   # OK, works on sane cases.  Now check whether nonexistent headers
7569   # can be detected and how.
7570   cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576 @%:@include <ac_nonexistent.h>
7577 _ACEOF
7578 if { (ac_try="$ac_cpp conftest.$ac_ext"
7579 case "(($ac_try" in
7580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581   *) ac_try_echo=$ac_try;;
7582 esac
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7585   ac_status=$?
7586   grep -v '^ *+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } >/dev/null && {
7591          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7592          test ! -s conftest.err
7593        }; then
7594   # Broken: success on invalid input.
7595 continue
7596 else
7597   echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7599
7600   # Passes both tests.
7601 ac_preproc_ok=:
7602 break
7603 fi
7604
7605 rm -f conftest.err conftest.$ac_ext
7606
7607 done
7608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7609 rm -f conftest.err conftest.$ac_ext
7610 if $ac_preproc_ok; then
7611   :
7612 else
7613   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7614 See \`config.log' for more details." >&5
7615 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7616 See \`config.log' for more details." >&2;}
7617    { (exit 1); exit 1; }; }
7618 fi
7619
7620 ac_ext=cpp
7621 ac_cpp='$CXXCPP $CPPFLAGS'
7622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7625
7626 fi
7627
7628
7629 ac_ext=f
7630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7633 if test -n "$ac_tool_prefix"; then
7634   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
7635   do
7636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640 if test "${ac_cv_prog_F77+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   if test -n "$F77"; then
7644   ac_cv_prog_F77="$F77" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651   for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 F77=$ac_cv_prog_F77
7664 if test -n "$F77"; then
7665   { echo "$as_me:$LINENO: result: $F77" >&5
7666 echo "${ECHO_T}$F77" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672
7673     test -n "$F77" && break
7674   done
7675 fi
7676 if test -z "$F77"; then
7677   ac_ct_F77=$F77
7678   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
7679 do
7680   # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   if test -n "$ac_ct_F77"; then
7688   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_prog_ac_ct_F77="$ac_prog"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7708 if test -n "$ac_ct_F77"; then
7709   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7710 echo "${ECHO_T}$ac_ct_F77" >&6; }
7711 else
7712   { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7714 fi
7715
7716
7717   test -n "$ac_ct_F77" && break
7718 done
7719
7720   if test "x$ac_ct_F77" = x; then
7721     F77=""
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7726 whose name does not start with the host triplet.  If you think this
7727 configuration is useful to you, please write to autoconf@gnu.org." >&5
7728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7729 whose name does not start with the host triplet.  If you think this
7730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733     F77=$ac_ct_F77
7734   fi
7735 fi
7736
7737
7738 # Provide some information about the compiler.
7739 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7740 ac_compiler=`set X $ac_compile; echo $2`
7741 { (ac_try="$ac_compiler --version >&5"
7742 case "(($ac_try" in
7743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744   *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747   (eval "$ac_compiler --version >&5") 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }
7751 { (ac_try="$ac_compiler -v >&5"
7752 case "(($ac_try" in
7753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754   *) ac_try_echo=$ac_try;;
7755 esac
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757   (eval "$ac_compiler -v >&5") 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }
7761 { (ac_try="$ac_compiler -V >&5"
7762 case "(($ac_try" in
7763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764   *) ac_try_echo=$ac_try;;
7765 esac
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767   (eval "$ac_compiler -V >&5") 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }
7771 rm -f a.out
7772
7773 # If we don't use `.F' as extension, the preprocessor is not run on the
7774 # input file.  (Note that this only needs to work for GNU compilers.)
7775 ac_save_ext=$ac_ext
7776 ac_ext=F
7777 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7778 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7779 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783       program main
7784 #ifndef __GNUC__
7785        choke me
7786 #endif
7787
7788       end
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7792 case "(($ac_try" in
7793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794   *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797   (eval "$ac_compile") 2>conftest.er1
7798   ac_status=$?
7799   grep -v '^ *+' conftest.er1 >conftest.err
7800   rm -f conftest.er1
7801   cat conftest.err >&5
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); } && {
7804          test -z "$ac_f77_werror_flag" ||
7805          test ! -s conftest.err
7806        } && test -s conftest.$ac_objext; then
7807   ac_compiler_gnu=yes
7808 else
7809   echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812         ac_compiler_gnu=no
7813 fi
7814
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7817
7818 fi
7819 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7820 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7821 ac_ext=$ac_save_ext
7822 ac_test_FFLAGS=${FFLAGS+set}
7823 ac_save_FFLAGS=$FFLAGS
7824 FFLAGS=
7825 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7826 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7827 if test "${ac_cv_prog_f77_g+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   FFLAGS=-g
7831 cat >conftest.$ac_ext <<_ACEOF
7832       program main
7833
7834       end
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7838 case "(($ac_try" in
7839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840   *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843   (eval "$ac_compile") 2>conftest.er1
7844   ac_status=$?
7845   grep -v '^ *+' conftest.er1 >conftest.err
7846   rm -f conftest.er1
7847   cat conftest.err >&5
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); } && {
7850          test -z "$ac_f77_werror_flag" ||
7851          test ! -s conftest.err
7852        } && test -s conftest.$ac_objext; then
7853   ac_cv_prog_f77_g=yes
7854 else
7855   echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858         ac_cv_prog_f77_g=no
7859 fi
7860
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862
7863 fi
7864 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7865 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7866 if test "$ac_test_FFLAGS" = set; then
7867   FFLAGS=$ac_save_FFLAGS
7868 elif test $ac_cv_prog_f77_g = yes; then
7869   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7870     FFLAGS="-g -O2"
7871   else
7872     FFLAGS="-g"
7873   fi
7874 else
7875   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7876     FFLAGS="-O2"
7877   else
7878     FFLAGS=
7879   fi
7880 fi
7881
7882 G77=`test $ac_compiler_gnu = yes && echo yes`
7883 ac_ext=c
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888
7889
7890
7891 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7892 # find the maximum length of command line arguments
7893 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7894 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7895 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898     i=0
7899   teststring="ABCD"
7900
7901   case $build_os in
7902   msdosdjgpp*)
7903     # On DJGPP, this test can blow up pretty badly due to problems in libc
7904     # (any single argument exceeding 2000 bytes causes a buffer overrun
7905     # during glob expansion).  Even if it were fixed, the result of this
7906     # check would be larger than it should be.
7907     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7908     ;;
7909
7910   gnu*)
7911     # Under GNU Hurd, this test is not required because there is
7912     # no limit to the length of command line arguments.
7913     # Libtool will interpret -1 as no limit whatsoever
7914     lt_cv_sys_max_cmd_len=-1;
7915     ;;
7916
7917   cygwin* | mingw*)
7918     # On Win9x/ME, this test blows up -- it succeeds, but takes
7919     # about 5 minutes as the teststring grows exponentially.
7920     # Worse, since 9x/ME are not pre-emptively multitasking,
7921     # you end up with a "frozen" computer, even though with patience
7922     # the test eventually succeeds (with a max line length of 256k).
7923     # Instead, let's just punt: use the minimum linelength reported by
7924     # all of the supported platforms: 8192 (on NT/2K/XP).
7925     lt_cv_sys_max_cmd_len=8192;
7926     ;;
7927
7928   amigaos*)
7929     # On AmigaOS with pdksh, this test takes hours, literally.
7930     # So we just punt and use a minimum line length of 8192.
7931     lt_cv_sys_max_cmd_len=8192;
7932     ;;
7933
7934   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7935     # This has been around since 386BSD, at least.  Likely further.
7936     if test -x /sbin/sysctl; then
7937       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7938     elif test -x /usr/sbin/sysctl; then
7939       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7940     else
7941       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7942     fi
7943     # And add a safety zone
7944     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7945     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7946     ;;
7947
7948   interix*)
7949     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7950     lt_cv_sys_max_cmd_len=196608
7951     ;;
7952
7953   osf*)
7954     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7955     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7956     # nice to cause kernel panics so lets avoid the loop below.
7957     # First set a reasonable default.
7958     lt_cv_sys_max_cmd_len=16384
7959     #
7960     if test -x /sbin/sysconfig; then
7961       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7962         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7963       esac
7964     fi
7965     ;;
7966   sco3.2v5*)
7967     lt_cv_sys_max_cmd_len=102400
7968     ;;
7969   sysv5* | sco5v6* | sysv4.2uw2*)
7970     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7971     if test -n "$kargmax"; then
7972       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7973     else
7974       lt_cv_sys_max_cmd_len=32768
7975     fi
7976     ;;
7977   *)
7978     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7979     if test -n "$lt_cv_sys_max_cmd_len"; then
7980       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7981       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7982     else
7983       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7984       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7985                = "XX$teststring") >/dev/null 2>&1 &&
7986               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7987               lt_cv_sys_max_cmd_len=$new_result &&
7988               test $i != 17 # 1/2 MB should be enough
7989       do
7990         i=`expr $i + 1`
7991         teststring=$teststring$teststring
7992       done
7993       teststring=
7994       # Add a significant safety factor because C++ compilers can tack on massive
7995       # amounts of additional arguments before passing them to the linker.
7996       # It appears as though 1/2 is a usable value.
7997       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7998     fi
7999     ;;
8000   esac
8001
8002 fi
8003
8004 if test -n $lt_cv_sys_max_cmd_len ; then
8005   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8006 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8007 else
8008   { echo "$as_me:$LINENO: result: none" >&5
8009 echo "${ECHO_T}none" >&6; }
8010 fi
8011
8012
8013
8014
8015
8016 # Check for command to grab the raw symbol name followed by C symbol from nm.
8017 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8018 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8019 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   
8023 # These are sane defaults that work on at least a few old systems.
8024 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8025
8026 # Character class describing NM global symbol codes.
8027 symcode='[BCDEGRST]'
8028
8029 # Regexp to match symbols that can be accessed directly from C.
8030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8031
8032 # Transform an extracted symbol line into a proper C declaration
8033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8034
8035 # Transform an extracted symbol line into symbol name and symbol address
8036 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'"
8037
8038 # Define system-specific variables.
8039 case $host_os in
8040 aix*)
8041   symcode='[BCDT]'
8042   ;;
8043 cygwin* | mingw* | pw32*)
8044   symcode='[ABCDGISTW]'
8045   ;;
8046 hpux*) # Its linker distinguishes data from code symbols
8047   if test "$host_cpu" = ia64; then
8048     symcode='[ABCDEGRST]'
8049   fi
8050   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8051   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'"
8052   ;;
8053 linux* | k*bsd*-gnu)
8054   if test "$host_cpu" = ia64; then
8055     symcode='[ABCDGIRSTW]'
8056     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8057     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'"
8058   fi
8059   ;;
8060 irix* | nonstopux*)
8061   symcode='[BCDEGRST]'
8062   ;;
8063 osf*)
8064   symcode='[BCDEGQRST]'
8065   ;;
8066 solaris*)
8067   symcode='[BDRT]'
8068   ;;
8069 sco3.2v5*)
8070   symcode='[DT]'
8071   ;;
8072 sysv4.2uw2*)
8073   symcode='[DT]'
8074   ;;
8075 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8076   symcode='[ABDT]'
8077   ;;
8078 sysv4)
8079   symcode='[DFNSTU]'
8080   ;;
8081 esac
8082
8083 # Handle CRLF in mingw tool chain
8084 opt_cr=
8085 case $build_os in
8086 mingw*)
8087   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8088   ;;
8089 esac
8090
8091 # If we're using GNU nm, then use its standard symbol codes.
8092 case `$NM -V 2>&1` in
8093 *GNU* | *'with BFD'*)
8094   symcode='[ABCDGIRSTW]' ;;
8095 esac
8096
8097 # Try without a prefix undercore, then with it.
8098 for ac_symprfx in "" "_"; do
8099
8100   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8101   symxfrm="\\1 $ac_symprfx\\2 \\2"
8102
8103   # Write the raw and C identifiers.
8104   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8105
8106   # Check to see that the pipe works correctly.
8107   pipe_works=no
8108
8109   rm -f conftest*
8110   cat > conftest.$ac_ext <<EOF
8111 #ifdef __cplusplus
8112 extern "C" {
8113 #endif
8114 char nm_test_var;
8115 void nm_test_func(){}
8116 #ifdef __cplusplus
8117 }
8118 #endif
8119 int main(){nm_test_var='a';nm_test_func();return(0);}
8120 EOF
8121
8122   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8123   (eval $ac_compile) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; then
8127     # Now try to grab the symbols.
8128     nlist=conftest.nm
8129     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8130   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } && test -s "$nlist"; then
8134       # Try sorting and uniquifying the output.
8135       if sort "$nlist" | uniq > "$nlist"T; then
8136         mv -f "$nlist"T "$nlist"
8137       else
8138         rm -f "$nlist"T
8139       fi
8140
8141       # Make sure that we snagged all the symbols we need.
8142       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8143         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8144           cat <<EOF > conftest.$ac_ext
8145 #ifdef __cplusplus
8146 extern "C" {
8147 #endif
8148
8149 EOF
8150           # Now generate the symbol file.
8151           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8152
8153           cat <<EOF >> conftest.$ac_ext
8154 #if defined (__STDC__) && __STDC__
8155 # define lt_ptr_t void *
8156 #else
8157 # define lt_ptr_t char *
8158 # define const
8159 #endif
8160
8161 /* The mapping between symbol names and symbols. */
8162 const struct {
8163   const char *name;
8164   lt_ptr_t address;
8165 }
8166 lt_preloaded_symbols[] =
8167 {
8168 EOF
8169           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8170           cat <<\EOF >> conftest.$ac_ext
8171   {0, (lt_ptr_t) 0}
8172 };
8173
8174 #ifdef __cplusplus
8175 }
8176 #endif
8177 EOF
8178           # Now try linking the two files.
8179           mv conftest.$ac_objext conftstm.$ac_objext
8180           lt_save_LIBS="$LIBS"
8181           lt_save_CFLAGS="$CFLAGS"
8182           LIBS="conftstm.$ac_objext"
8183           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8184           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185   (eval $ac_link) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8189             pipe_works=yes
8190           fi
8191           LIBS="$lt_save_LIBS"
8192           CFLAGS="$lt_save_CFLAGS"
8193         else
8194           echo "cannot find nm_test_func in $nlist" >&5
8195         fi
8196       else
8197         echo "cannot find nm_test_var in $nlist" >&5
8198       fi
8199     else
8200       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8201     fi
8202   else
8203     echo "$progname: failed program was:" >&5
8204     cat conftest.$ac_ext >&5
8205   fi
8206   rm -rf conftest* conftst*
8207
8208   # Do not use the global_symbol_pipe unless it works.
8209   if test "$pipe_works" = yes; then
8210     break
8211   else
8212     lt_cv_sys_global_symbol_pipe=
8213   fi
8214 done
8215
8216 fi
8217
8218 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8219   lt_cv_sys_global_symbol_to_cdecl=
8220 fi
8221 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8222   { echo "$as_me:$LINENO: result: failed" >&5
8223 echo "${ECHO_T}failed" >&6; }
8224 else
8225   { echo "$as_me:$LINENO: result: ok" >&5
8226 echo "${ECHO_T}ok" >&6; }
8227 fi
8228
8229 { echo "$as_me:$LINENO: checking for objdir" >&5
8230 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8231 if test "${lt_cv_objdir+set}" = set; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   rm -f .libs 2>/dev/null
8235 mkdir .libs 2>/dev/null
8236 if test -d .libs; then
8237   lt_cv_objdir=.libs
8238 else
8239   # MS-DOS does not allow filenames that begin with a dot.
8240   lt_cv_objdir=_libs
8241 fi
8242 rmdir .libs 2>/dev/null
8243 fi
8244 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8245 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8246 objdir=$lt_cv_objdir
8247
8248
8249
8250
8251
8252 case $host_os in
8253 aix3*)
8254   # AIX sometimes has problems with the GCC collect2 program.  For some
8255   # reason, if we set the COLLECT_NAMES environment variable, the problems
8256   # vanish in a puff of smoke.
8257   if test "X${COLLECT_NAMES+set}" != Xset; then
8258     COLLECT_NAMES=
8259     export COLLECT_NAMES
8260   fi
8261   ;;
8262 esac
8263
8264 # Sed substitution that helps us do robust quoting.  It backslashifies
8265 # metacharacters that are still active within double-quoted strings.
8266 Xsed='sed -e 1s/^X//'
8267 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8268
8269 # Same as above, but do not quote variable references.
8270 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8271
8272 # Sed substitution to delay expansion of an escaped shell variable in a
8273 # double_quote_subst'ed string.
8274 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8275
8276 # Sed substitution to avoid accidental globbing in evaled expressions
8277 no_glob_subst='s/\*/\\\*/g'
8278
8279 # Constants:
8280 rm="rm -f"
8281
8282 # Global variables:
8283 default_ofile=libtool
8284 can_build_shared=yes
8285
8286 # All known linkers require a `.a' archive for static linking (except MSVC,
8287 # which needs '.lib').
8288 libext=a
8289 ltmain="$ac_aux_dir/ltmain.sh"
8290 ofile="$default_ofile"
8291 with_gnu_ld="$lt_cv_prog_gnu_ld"
8292
8293 if test -n "$ac_tool_prefix"; then
8294   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}ar; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_prog_AR+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   if test -n "$AR"; then
8302   ac_cv_prog_AR="$AR" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309   for ac_exec_ext in '' $ac_executable_extensions; do
8310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311     ac_cv_prog_AR="${ac_tool_prefix}ar"
8312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 AR=$ac_cv_prog_AR
8322 if test -n "$AR"; then
8323   { echo "$as_me:$LINENO: result: $AR" >&5
8324 echo "${ECHO_T}$AR" >&6; }
8325 else
8326   { echo "$as_me:$LINENO: result: no" >&5
8327 echo "${ECHO_T}no" >&6; }
8328 fi
8329
8330
8331 fi
8332 if test -z "$ac_cv_prog_AR"; then
8333   ac_ct_AR=$AR
8334   # Extract the first word of "ar", so it can be a program name with args.
8335 set dummy ar; ac_word=$2
8336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   if test -n "$ac_ct_AR"; then
8342   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8346 do
8347   IFS=$as_save_IFS
8348   test -z "$as_dir" && as_dir=.
8349   for ac_exec_ext in '' $ac_executable_extensions; do
8350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351     ac_cv_prog_ac_ct_AR="ar"
8352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353     break 2
8354   fi
8355 done
8356 done
8357 IFS=$as_save_IFS
8358
8359 fi
8360 fi
8361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8362 if test -n "$ac_ct_AR"; then
8363   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8364 echo "${ECHO_T}$ac_ct_AR" >&6; }
8365 else
8366   { echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6; }
8368 fi
8369
8370   if test "x$ac_ct_AR" = x; then
8371     AR="false"
8372   else
8373     case $cross_compiling:$ac_tool_warned in
8374 yes:)
8375 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8376 whose name does not start with the host triplet.  If you think this
8377 configuration is useful to you, please write to autoconf@gnu.org." >&5
8378 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8379 whose name does not start with the host triplet.  If you think this
8380 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8381 ac_tool_warned=yes ;;
8382 esac
8383     AR=$ac_ct_AR
8384   fi
8385 else
8386   AR="$ac_cv_prog_AR"
8387 fi
8388
8389 if test -n "$ac_tool_prefix"; then
8390   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8394 if test "${ac_cv_prog_RANLIB+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   if test -n "$RANLIB"; then
8398   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8399 else
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8402 do
8403   IFS=$as_save_IFS
8404   test -z "$as_dir" && as_dir=.
8405   for ac_exec_ext in '' $ac_executable_extensions; do
8406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8409     break 2
8410   fi
8411 done
8412 done
8413 IFS=$as_save_IFS
8414
8415 fi
8416 fi
8417 RANLIB=$ac_cv_prog_RANLIB
8418 if test -n "$RANLIB"; then
8419   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8420 echo "${ECHO_T}$RANLIB" >&6; }
8421 else
8422   { echo "$as_me:$LINENO: result: no" >&5
8423 echo "${ECHO_T}no" >&6; }
8424 fi
8425
8426
8427 fi
8428 if test -z "$ac_cv_prog_RANLIB"; then
8429   ac_ct_RANLIB=$RANLIB
8430   # Extract the first word of "ranlib", so it can be a program name with args.
8431 set dummy ranlib; ac_word=$2
8432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   if test -n "$ac_ct_RANLIB"; then
8438   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443   IFS=$as_save_IFS
8444   test -z "$as_dir" && as_dir=.
8445   for ac_exec_ext in '' $ac_executable_extensions; do
8446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447     ac_cv_prog_ac_ct_RANLIB="ranlib"
8448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8449     break 2
8450   fi
8451 done
8452 done
8453 IFS=$as_save_IFS
8454
8455 fi
8456 fi
8457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8458 if test -n "$ac_ct_RANLIB"; then
8459   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8460 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8461 else
8462   { echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6; }
8464 fi
8465
8466   if test "x$ac_ct_RANLIB" = x; then
8467     RANLIB=":"
8468   else
8469     case $cross_compiling:$ac_tool_warned in
8470 yes:)
8471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8472 whose name does not start with the host triplet.  If you think this
8473 configuration is useful to you, please write to autoconf@gnu.org." >&5
8474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8475 whose name does not start with the host triplet.  If you think this
8476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8477 ac_tool_warned=yes ;;
8478 esac
8479     RANLIB=$ac_ct_RANLIB
8480   fi
8481 else
8482   RANLIB="$ac_cv_prog_RANLIB"
8483 fi
8484
8485 if test -n "$ac_tool_prefix"; then
8486   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8487 set dummy ${ac_tool_prefix}strip; ac_word=$2
8488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8490 if test "${ac_cv_prog_STRIP+set}" = set; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493   if test -n "$STRIP"; then
8494   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499   IFS=$as_save_IFS
8500   test -z "$as_dir" && as_dir=.
8501   for ac_exec_ext in '' $ac_executable_extensions; do
8502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505     break 2
8506   fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 fi
8512 fi
8513 STRIP=$ac_cv_prog_STRIP
8514 if test -n "$STRIP"; then
8515   { echo "$as_me:$LINENO: result: $STRIP" >&5
8516 echo "${ECHO_T}$STRIP" >&6; }
8517 else
8518   { echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6; }
8520 fi
8521
8522
8523 fi
8524 if test -z "$ac_cv_prog_STRIP"; then
8525   ac_ct_STRIP=$STRIP
8526   # Extract the first word of "strip", so it can be a program name with args.
8527 set dummy strip; ac_word=$2
8528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   if test -n "$ac_ct_STRIP"; then
8534   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539   IFS=$as_save_IFS
8540   test -z "$as_dir" && as_dir=.
8541   for ac_exec_ext in '' $ac_executable_extensions; do
8542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8543     ac_cv_prog_ac_ct_STRIP="strip"
8544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545     break 2
8546   fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi
8552 fi
8553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8554 if test -n "$ac_ct_STRIP"; then
8555   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8556 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8557 else
8558   { echo "$as_me:$LINENO: result: no" >&5
8559 echo "${ECHO_T}no" >&6; }
8560 fi
8561
8562   if test "x$ac_ct_STRIP" = x; then
8563     STRIP=":"
8564   else
8565     case $cross_compiling:$ac_tool_warned in
8566 yes:)
8567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8568 whose name does not start with the host triplet.  If you think this
8569 configuration is useful to you, please write to autoconf@gnu.org." >&5
8570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8571 whose name does not start with the host triplet.  If you think this
8572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575     STRIP=$ac_ct_STRIP
8576   fi
8577 else
8578   STRIP="$ac_cv_prog_STRIP"
8579 fi
8580
8581
8582 old_CC="$CC"
8583 old_CFLAGS="$CFLAGS"
8584
8585 # Set sane defaults for various variables
8586 test -z "$AR" && AR=ar
8587 test -z "$AR_FLAGS" && AR_FLAGS=cru
8588 test -z "$AS" && AS=as
8589 test -z "$CC" && CC=cc
8590 test -z "$LTCC" && LTCC=$CC
8591 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8592 test -z "$DLLTOOL" && DLLTOOL=dlltool
8593 test -z "$LD" && LD=ld
8594 test -z "$LN_S" && LN_S="ln -s"
8595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8596 test -z "$NM" && NM=nm
8597 test -z "$SED" && SED=sed
8598 test -z "$OBJDUMP" && OBJDUMP=objdump
8599 test -z "$RANLIB" && RANLIB=:
8600 test -z "$STRIP" && STRIP=:
8601 test -z "$ac_objext" && ac_objext=o
8602
8603 # Determine commands to create old-style static archives.
8604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8605 old_postinstall_cmds='chmod 644 $oldlib'
8606 old_postuninstall_cmds=
8607
8608 if test -n "$RANLIB"; then
8609   case $host_os in
8610   openbsd*)
8611     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8612     ;;
8613   *)
8614     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8615     ;;
8616   esac
8617   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8618 fi
8619
8620 for cc_temp in $compiler""; do
8621   case $cc_temp in
8622     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8623     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8624     \-*) ;;
8625     *) break;;
8626   esac
8627 done
8628 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8629
8630
8631 # Only perform the check for file, if the check method requires it
8632 case $deplibs_check_method in
8633 file_magic*)
8634   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8635     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8636 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8637 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   case $MAGIC_CMD in
8641 [\\/*] |  ?:[\\/]*)
8642   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8643   ;;
8644 *)
8645   lt_save_MAGIC_CMD="$MAGIC_CMD"
8646   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648   for ac_dir in $ac_dummy; do
8649     IFS="$lt_save_ifs"
8650     test -z "$ac_dir" && ac_dir=.
8651     if test -f $ac_dir/${ac_tool_prefix}file; then
8652       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8653       if test -n "$file_magic_test_file"; then
8654         case $deplibs_check_method in
8655         "file_magic "*)
8656           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659             $EGREP "$file_magic_regex" > /dev/null; then
8660             :
8661           else
8662             cat <<EOF 1>&2
8663
8664 *** Warning: the command libtool uses to detect shared libraries,
8665 *** $file_magic_cmd, produces output that libtool cannot recognize.
8666 *** The result is that libtool may fail to recognize shared libraries
8667 *** as such.  This will affect the creation of libtool libraries that
8668 *** depend on shared libraries, but programs linked with such libtool
8669 *** libraries will work regardless of this problem.  Nevertheless, you
8670 *** may want to report the problem to your system manager and/or to
8671 *** bug-libtool@gnu.org
8672
8673 EOF
8674           fi ;;
8675         esac
8676       fi
8677       break
8678     fi
8679   done
8680   IFS="$lt_save_ifs"
8681   MAGIC_CMD="$lt_save_MAGIC_CMD"
8682   ;;
8683 esac
8684 fi
8685
8686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687 if test -n "$MAGIC_CMD"; then
8688   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8689 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8690 else
8691   { echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6; }
8693 fi
8694
8695 if test -z "$lt_cv_path_MAGIC_CMD"; then
8696   if test -n "$ac_tool_prefix"; then
8697     { echo "$as_me:$LINENO: checking for file" >&5
8698 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   case $MAGIC_CMD in
8703 [\\/*] |  ?:[\\/]*)
8704   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8705   ;;
8706 *)
8707   lt_save_MAGIC_CMD="$MAGIC_CMD"
8708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8709   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8710   for ac_dir in $ac_dummy; do
8711     IFS="$lt_save_ifs"
8712     test -z "$ac_dir" && ac_dir=.
8713     if test -f $ac_dir/file; then
8714       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8715       if test -n "$file_magic_test_file"; then
8716         case $deplibs_check_method in
8717         "file_magic "*)
8718           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8719           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8720           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8721             $EGREP "$file_magic_regex" > /dev/null; then
8722             :
8723           else
8724             cat <<EOF 1>&2
8725
8726 *** Warning: the command libtool uses to detect shared libraries,
8727 *** $file_magic_cmd, produces output that libtool cannot recognize.
8728 *** The result is that libtool may fail to recognize shared libraries
8729 *** as such.  This will affect the creation of libtool libraries that
8730 *** depend on shared libraries, but programs linked with such libtool
8731 *** libraries will work regardless of this problem.  Nevertheless, you
8732 *** may want to report the problem to your system manager and/or to
8733 *** bug-libtool@gnu.org
8734
8735 EOF
8736           fi ;;
8737         esac
8738       fi
8739       break
8740     fi
8741   done
8742   IFS="$lt_save_ifs"
8743   MAGIC_CMD="$lt_save_MAGIC_CMD"
8744   ;;
8745 esac
8746 fi
8747
8748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8749 if test -n "$MAGIC_CMD"; then
8750   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8751 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8752 else
8753   { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8755 fi
8756
8757   else
8758     MAGIC_CMD=:
8759   fi
8760 fi
8761
8762   fi
8763   ;;
8764 esac
8765
8766
8767   case $host_os in
8768     rhapsody* | darwin*)
8769     if test -n "$ac_tool_prefix"; then
8770   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8771 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8774 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   if test -n "$DSYMUTIL"; then
8778   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783   IFS=$as_save_IFS
8784   test -z "$as_dir" && as_dir=.
8785   for ac_exec_ext in '' $ac_executable_extensions; do
8786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8789     break 2
8790   fi
8791 done
8792 done
8793 IFS=$as_save_IFS
8794
8795 fi
8796 fi
8797 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8798 if test -n "$DSYMUTIL"; then
8799   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8800 echo "${ECHO_T}$DSYMUTIL" >&6; }
8801 else
8802   { echo "$as_me:$LINENO: result: no" >&5
8803 echo "${ECHO_T}no" >&6; }
8804 fi
8805
8806
8807 fi
8808 if test -z "$ac_cv_prog_DSYMUTIL"; then
8809   ac_ct_DSYMUTIL=$DSYMUTIL
8810   # Extract the first word of "dsymutil", so it can be a program name with args.
8811 set dummy dsymutil; ac_word=$2
8812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8814 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817   if test -n "$ac_ct_DSYMUTIL"; then
8818   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8819 else
8820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821 for as_dir in $PATH
8822 do
8823   IFS=$as_save_IFS
8824   test -z "$as_dir" && as_dir=.
8825   for ac_exec_ext in '' $ac_executable_extensions; do
8826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8827     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8829     break 2
8830   fi
8831 done
8832 done
8833 IFS=$as_save_IFS
8834
8835 fi
8836 fi
8837 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8838 if test -n "$ac_ct_DSYMUTIL"; then
8839   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8840 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8841 else
8842   { echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6; }
8844 fi
8845
8846   if test "x$ac_ct_DSYMUTIL" = x; then
8847     DSYMUTIL=":"
8848   else
8849     case $cross_compiling:$ac_tool_warned in
8850 yes:)
8851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8852 whose name does not start with the host triplet.  If you think this
8853 configuration is useful to you, please write to autoconf@gnu.org." >&5
8854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8855 whose name does not start with the host triplet.  If you think this
8856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8857 ac_tool_warned=yes ;;
8858 esac
8859     DSYMUTIL=$ac_ct_DSYMUTIL
8860   fi
8861 else
8862   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8863 fi
8864
8865     if test -n "$ac_tool_prefix"; then
8866   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8867 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8870 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   if test -n "$NMEDIT"; then
8874   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879   IFS=$as_save_IFS
8880   test -z "$as_dir" && as_dir=.
8881   for ac_exec_ext in '' $ac_executable_extensions; do
8882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885     break 2
8886   fi
8887 done
8888 done
8889 IFS=$as_save_IFS
8890
8891 fi
8892 fi
8893 NMEDIT=$ac_cv_prog_NMEDIT
8894 if test -n "$NMEDIT"; then
8895   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8896 echo "${ECHO_T}$NMEDIT" >&6; }
8897 else
8898   { echo "$as_me:$LINENO: result: no" >&5
8899 echo "${ECHO_T}no" >&6; }
8900 fi
8901
8902
8903 fi
8904 if test -z "$ac_cv_prog_NMEDIT"; then
8905   ac_ct_NMEDIT=$NMEDIT
8906   # Extract the first word of "nmedit", so it can be a program name with args.
8907 set dummy nmedit; ac_word=$2
8908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8910 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8911   echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913   if test -n "$ac_ct_NMEDIT"; then
8914   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919   IFS=$as_save_IFS
8920   test -z "$as_dir" && as_dir=.
8921   for ac_exec_ext in '' $ac_executable_extensions; do
8922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925     break 2
8926   fi
8927 done
8928 done
8929 IFS=$as_save_IFS
8930
8931 fi
8932 fi
8933 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8934 if test -n "$ac_ct_NMEDIT"; then
8935   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8936 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8937 else
8938   { echo "$as_me:$LINENO: result: no" >&5
8939 echo "${ECHO_T}no" >&6; }
8940 fi
8941
8942   if test "x$ac_ct_NMEDIT" = x; then
8943     NMEDIT=":"
8944   else
8945     case $cross_compiling:$ac_tool_warned in
8946 yes:)
8947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8948 whose name does not start with the host triplet.  If you think this
8949 configuration is useful to you, please write to autoconf@gnu.org." >&5
8950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8951 whose name does not start with the host triplet.  If you think this
8952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8953 ac_tool_warned=yes ;;
8954 esac
8955     NMEDIT=$ac_ct_NMEDIT
8956   fi
8957 else
8958   NMEDIT="$ac_cv_prog_NMEDIT"
8959 fi
8960
8961
8962     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8963 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8964 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967   lt_cv_apple_cc_single_mod=no
8968       if test -z "${LT_MULTI_MODULE}"; then
8969    # By default we will add the -single_module flag. You can override
8970    # by either setting the environment variable LT_MULTI_MODULE
8971    # non-empty at configure time, or by adding -multi_module to the
8972    # link flags.
8973    echo "int foo(void){return 1;}" > conftest.c
8974    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8975      -dynamiclib ${wl}-single_module conftest.c
8976    if test -f libconftest.dylib; then
8977      lt_cv_apple_cc_single_mod=yes
8978      rm -rf libconftest.dylib*
8979    fi
8980    rm conftest.c
8981       fi
8982 fi
8983 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8984 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8985     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8986 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8987 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   lt_cv_ld_exported_symbols_list=no
8991       save_LDFLAGS=$LDFLAGS
8992       echo "_main" > conftest.sym
8993       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8994       cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000
9001 int
9002 main ()
9003 {
9004
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (ac_try="$ac_link"
9011 case "(($ac_try" in
9012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013   *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016   (eval "$ac_link") 2>conftest.er1
9017   ac_status=$?
9018   grep -v '^ *+' conftest.er1 >conftest.err
9019   rm -f conftest.er1
9020   cat conftest.err >&5
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); } && {
9023          test -z "$ac_c_werror_flag" ||
9024          test ! -s conftest.err
9025        } && test -s conftest$ac_exeext &&
9026        $as_test_x conftest$ac_exeext; then
9027   lt_cv_ld_exported_symbols_list=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032         lt_cv_ld_exported_symbols_list=no
9033 fi
9034
9035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036       conftest$ac_exeext conftest.$ac_ext
9037    LDFLAGS="$save_LDFLAGS"
9038     
9039 fi
9040 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9041 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
9042     case $host_os in
9043     rhapsody* | darwin1.[0123])
9044       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9045     darwin1.*)
9046      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9047     darwin*)
9048       # if running on 10.5 or later, the deployment target defaults
9049       # to the OS version, if on x86, and 10.4, the deployment
9050       # target defaults to 10.4. Don't you love it?
9051       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9052    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9053      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9054    10.[012]*)
9055      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9056    10.*)
9057      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9058       esac
9059     ;;
9060   esac
9061     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9062       _lt_dar_single_mod='$single_module'
9063     fi
9064     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9065       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9066     else
9067       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9068     fi
9069     if test "$DSYMUTIL" != ":"; then
9070       _lt_dsymutil="~$DSYMUTIL \$lib || :"
9071     else
9072       _lt_dsymutil=
9073     fi
9074     ;;
9075   esac
9076
9077
9078 enable_dlopen=no
9079 enable_win32_dll=no
9080
9081 # Check whether --enable-libtool-lock was given.
9082 if test "${enable_libtool_lock+set}" = set; then
9083   enableval=$enable_libtool_lock; 
9084 fi
9085
9086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9087
9088
9089 # Check whether --with-pic was given.
9090 if test "${with_pic+set}" = set; then
9091   withval=$with_pic; pic_mode="$withval"
9092 else
9093   pic_mode=default
9094 fi
9095
9096 test -z "$pic_mode" && pic_mode=default
9097
9098 # Use C for the default configuration in the libtool script
9099 tagname=
9100 lt_save_CC="$CC"
9101 ac_ext=c
9102 ac_cpp='$CPP $CPPFLAGS'
9103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9106
9107
9108 # Source file extension for C test sources.
9109 ac_ext=c
9110
9111 # Object file extension for compiled C test sources.
9112 objext=o
9113 objext=$objext
9114
9115 # Code to be used in simple compile tests
9116 lt_simple_compile_test_code="int some_variable = 0;"
9117
9118 # Code to be used in simple link tests
9119 lt_simple_link_test_code='int main(){return(0);}'
9120
9121
9122 # If no C compiler was specified, use CC.
9123 LTCC=${LTCC-"$CC"}
9124
9125 # If no C compiler flags were specified, use CFLAGS.
9126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9127
9128 # Allow CC to be a program name with arguments.
9129 compiler=$CC
9130
9131
9132 # save warnings/boilerplate of simple test code
9133 ac_outfile=conftest.$ac_objext
9134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9136 _lt_compiler_boilerplate=`cat conftest.err`
9137 $rm conftest*
9138
9139 ac_outfile=conftest.$ac_objext
9140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9142 _lt_linker_boilerplate=`cat conftest.err`
9143 $rm -r conftest*
9144
9145
9146
9147 lt_prog_compiler_no_builtin_flag=
9148
9149 if test "$GCC" = yes; then
9150   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9151
9152   
9153 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9154 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9155 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   lt_cv_prog_compiler_rtti_exceptions=no
9159   ac_outfile=conftest.$ac_objext
9160    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9161    lt_compiler_flag="-fno-rtti -fno-exceptions"
9162    # Insert the option either (1) after the last *FLAGS variable, or
9163    # (2) before a word containing "conftest.", or (3) at the end.
9164    # Note that $ac_compile itself does not contain backslashes and begins
9165    # with a dollar sign (not a hyphen), so the echo should work correctly.
9166    # The option is referenced via a variable to avoid confusing sed.
9167    lt_compile=`echo "$ac_compile" | $SED \
9168    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9169    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9170    -e 's:$: $lt_compiler_flag:'`
9171    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9172    (eval "$lt_compile" 2>conftest.err)
9173    ac_status=$?
9174    cat conftest.err >&5
9175    echo "$as_me:__oline__: \$? = $ac_status" >&5
9176    if (exit $ac_status) && test -s "$ac_outfile"; then
9177      # The compiler can only warn and ignore the option if not recognized
9178      # So say no if there are warnings other than the usual output.
9179      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9180      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9181      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9182        lt_cv_prog_compiler_rtti_exceptions=yes
9183      fi
9184    fi
9185    $rm conftest*
9186
9187 fi
9188 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9189 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9190
9191 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9192     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9193 else
9194     :
9195 fi
9196
9197 fi
9198
9199 lt_prog_compiler_wl=
9200 lt_prog_compiler_pic=
9201 lt_prog_compiler_static=
9202
9203 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9205  
9206   if test "$GCC" = yes; then
9207     lt_prog_compiler_wl='-Wl,'
9208     lt_prog_compiler_static='-static'
9209
9210     case $host_os in
9211       aix*)
9212       # All AIX code is PIC.
9213       if test "$host_cpu" = ia64; then
9214         # AIX 5 now supports IA64 processor
9215         lt_prog_compiler_static='-Bstatic'
9216       fi
9217       ;;
9218
9219     amigaos*)
9220       # FIXME: we need at least 68020 code to build shared libraries, but
9221       # adding the `-m68020' flag to GCC prevents building anything better,
9222       # like `-m68040'.
9223       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9224       ;;
9225
9226     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9227       # PIC is the default for these OSes.
9228       ;;
9229
9230     mingw* | cygwin* | pw32* | os2*)
9231       # This hack is so that the source file can tell whether it is being
9232       # built for inclusion in a dll (and should export symbols for example).
9233       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9234       # (--disable-auto-import) libraries
9235       lt_prog_compiler_pic='-DDLL_EXPORT'
9236       ;;
9237
9238     darwin* | rhapsody*)
9239       # PIC is the default on this platform
9240       # Common symbols not allowed in MH_DYLIB files
9241       lt_prog_compiler_pic='-fno-common'
9242       ;;
9243
9244     interix[3-9]*)
9245       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9246       # Instead, we relocate shared libraries at runtime.
9247       ;;
9248
9249     msdosdjgpp*)
9250       # Just because we use GCC doesn't mean we suddenly get shared libraries
9251       # on systems that don't support them.
9252       lt_prog_compiler_can_build_shared=no
9253       enable_shared=no
9254       ;;
9255
9256     sysv4*MP*)
9257       if test -d /usr/nec; then
9258         lt_prog_compiler_pic=-Kconform_pic
9259       fi
9260       ;;
9261
9262     hpux*)
9263       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9264       # not for PA HP-UX.
9265       case $host_cpu in
9266       hppa*64*|ia64*)
9267         # +Z the default
9268         ;;
9269       *)
9270         lt_prog_compiler_pic='-fPIC'
9271         ;;
9272       esac
9273       ;;
9274
9275     *)
9276       lt_prog_compiler_pic='-fPIC'
9277       ;;
9278     esac
9279   else
9280     # PORTME Check for flag to pass linker flags through the system compiler.
9281     case $host_os in
9282     aix*)
9283       lt_prog_compiler_wl='-Wl,'
9284       if test "$host_cpu" = ia64; then
9285         # AIX 5 now supports IA64 processor
9286         lt_prog_compiler_static='-Bstatic'
9287       else
9288         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9289       fi
9290       ;;
9291       darwin*)
9292         # PIC is the default on this platform
9293         # Common symbols not allowed in MH_DYLIB files
9294        case $cc_basename in
9295          xlc*)
9296          lt_prog_compiler_pic='-qnocommon'
9297          lt_prog_compiler_wl='-Wl,'
9298          ;;
9299        esac
9300        ;;
9301
9302     mingw* | cygwin* | pw32* | os2*)
9303       # This hack is so that the source file can tell whether it is being
9304       # built for inclusion in a dll (and should export symbols for example).
9305       lt_prog_compiler_pic='-DDLL_EXPORT'
9306       ;;
9307
9308     hpux9* | hpux10* | hpux11*)
9309       lt_prog_compiler_wl='-Wl,'
9310       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9311       # not for PA HP-UX.
9312       case $host_cpu in
9313       hppa*64*|ia64*)
9314         # +Z the default
9315         ;;
9316       *)
9317         lt_prog_compiler_pic='+Z'
9318         ;;
9319       esac
9320       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9321       lt_prog_compiler_static='${wl}-a ${wl}archive'
9322       ;;
9323
9324     irix5* | irix6* | nonstopux*)
9325       lt_prog_compiler_wl='-Wl,'
9326       # PIC (with -KPIC) is the default.
9327       lt_prog_compiler_static='-non_shared'
9328       ;;
9329
9330     newsos6)
9331       lt_prog_compiler_pic='-KPIC'
9332       lt_prog_compiler_static='-Bstatic'
9333       ;;
9334
9335     linux* | k*bsd*-gnu)
9336       case $cc_basename in
9337       icc* | ecc*)
9338         lt_prog_compiler_wl='-Wl,'
9339         lt_prog_compiler_pic='-KPIC'
9340         lt_prog_compiler_static='-static'
9341         ;;
9342       pgcc* | pgf77* | pgf90* | pgf95*)
9343         # Portland Group compilers (*not* the Pentium gcc compiler,
9344         # which looks to be a dead project)
9345         lt_prog_compiler_wl='-Wl,'
9346         lt_prog_compiler_pic='-fpic'
9347         lt_prog_compiler_static='-Bstatic'
9348         ;;
9349       ccc*)
9350         lt_prog_compiler_wl='-Wl,'
9351         # All Alpha code is PIC.
9352         lt_prog_compiler_static='-non_shared'
9353         ;;
9354       *)
9355         case `$CC -V 2>&1 | sed 5q` in
9356         *Sun\ C*)
9357           # Sun C 5.9
9358           lt_prog_compiler_pic='-KPIC'
9359           lt_prog_compiler_static='-Bstatic'
9360           lt_prog_compiler_wl='-Wl,'
9361           ;;
9362         *Sun\ F*)
9363           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9364           lt_prog_compiler_pic='-KPIC'
9365           lt_prog_compiler_static='-Bstatic'
9366           lt_prog_compiler_wl=''
9367           ;;
9368         esac
9369         ;;
9370       esac
9371       ;;
9372
9373     osf3* | osf4* | osf5*)
9374       lt_prog_compiler_wl='-Wl,'
9375       # All OSF/1 code is PIC.
9376       lt_prog_compiler_static='-non_shared'
9377       ;;
9378
9379     rdos*)
9380       lt_prog_compiler_static='-non_shared'
9381       ;;
9382
9383     solaris*)
9384       lt_prog_compiler_pic='-KPIC'
9385       lt_prog_compiler_static='-Bstatic'
9386       case $cc_basename in
9387       f77* | f90* | f95*)
9388         lt_prog_compiler_wl='-Qoption ld ';;
9389       *)
9390         lt_prog_compiler_wl='-Wl,';;
9391       esac
9392       ;;
9393
9394     sunos4*)
9395       lt_prog_compiler_wl='-Qoption ld '
9396       lt_prog_compiler_pic='-PIC'
9397       lt_prog_compiler_static='-Bstatic'
9398       ;;
9399
9400     sysv4 | sysv4.2uw2* | sysv4.3*)
9401       lt_prog_compiler_wl='-Wl,'
9402       lt_prog_compiler_pic='-KPIC'
9403       lt_prog_compiler_static='-Bstatic'
9404       ;;
9405
9406     sysv4*MP*)
9407       if test -d /usr/nec ;then
9408         lt_prog_compiler_pic='-Kconform_pic'
9409         lt_prog_compiler_static='-Bstatic'
9410       fi
9411       ;;
9412
9413     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9414       lt_prog_compiler_wl='-Wl,'
9415       lt_prog_compiler_pic='-KPIC'
9416       lt_prog_compiler_static='-Bstatic'
9417       ;;
9418
9419     unicos*)
9420       lt_prog_compiler_wl='-Wl,'
9421       lt_prog_compiler_can_build_shared=no
9422       ;;
9423
9424     uts4*)
9425       lt_prog_compiler_pic='-pic'
9426       lt_prog_compiler_static='-Bstatic'
9427       ;;
9428
9429     *)
9430       lt_prog_compiler_can_build_shared=no
9431       ;;
9432     esac
9433   fi
9434
9435 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9436 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9437
9438 #
9439 # Check to make sure the PIC flag actually works.
9440 #
9441 if test -n "$lt_prog_compiler_pic"; then
9442   
9443 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9444 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9445 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   lt_cv_prog_compiler_pic_works=no
9449   ac_outfile=conftest.$ac_objext
9450    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9451    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9452    # Insert the option either (1) after the last *FLAGS variable, or
9453    # (2) before a word containing "conftest.", or (3) at the end.
9454    # Note that $ac_compile itself does not contain backslashes and begins
9455    # with a dollar sign (not a hyphen), so the echo should work correctly.
9456    # The option is referenced via a variable to avoid confusing sed.
9457    lt_compile=`echo "$ac_compile" | $SED \
9458    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9459    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9460    -e 's:$: $lt_compiler_flag:'`
9461    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9462    (eval "$lt_compile" 2>conftest.err)
9463    ac_status=$?
9464    cat conftest.err >&5
9465    echo "$as_me:__oline__: \$? = $ac_status" >&5
9466    if (exit $ac_status) && test -s "$ac_outfile"; then
9467      # The compiler can only warn and ignore the option if not recognized
9468      # So say no if there are warnings other than the usual output.
9469      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9470      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9471      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9472        lt_cv_prog_compiler_pic_works=yes
9473      fi
9474    fi
9475    $rm conftest*
9476
9477 fi
9478 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9479 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9480
9481 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9482     case $lt_prog_compiler_pic in
9483      "" | " "*) ;;
9484      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9485      esac
9486 else
9487     lt_prog_compiler_pic=
9488      lt_prog_compiler_can_build_shared=no
9489 fi
9490
9491 fi
9492 case $host_os in
9493   # For platforms which do not support PIC, -DPIC is meaningless:
9494   *djgpp*)
9495     lt_prog_compiler_pic=
9496     ;;
9497   *)
9498     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9499     ;;
9500 esac
9501
9502 #
9503 # Check to make sure the static flag actually works.
9504 #
9505 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9506 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9507 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9508 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   lt_cv_prog_compiler_static_works=no
9512    save_LDFLAGS="$LDFLAGS"
9513    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9514    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9515    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9516      # The linker can only warn and ignore the option if not recognized
9517      # So say no if there are warnings
9518      if test -s conftest.err; then
9519        # Append any errors to the config.log.
9520        cat conftest.err 1>&5
9521        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9522        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9523        if diff conftest.exp conftest.er2 >/dev/null; then
9524          lt_cv_prog_compiler_static_works=yes
9525        fi
9526      else
9527        lt_cv_prog_compiler_static_works=yes
9528      fi
9529    fi
9530    $rm -r conftest*
9531    LDFLAGS="$save_LDFLAGS"
9532
9533 fi
9534 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9535 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9536
9537 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9538     :
9539 else
9540     lt_prog_compiler_static=
9541 fi
9542
9543
9544 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9546 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   lt_cv_prog_compiler_c_o=no
9550    $rm -r conftest 2>/dev/null
9551    mkdir conftest
9552    cd conftest
9553    mkdir out
9554    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9555
9556    lt_compiler_flag="-o out/conftest2.$ac_objext"
9557    # Insert the option either (1) after the last *FLAGS variable, or
9558    # (2) before a word containing "conftest.", or (3) at the end.
9559    # Note that $ac_compile itself does not contain backslashes and begins
9560    # with a dollar sign (not a hyphen), so the echo should work correctly.
9561    lt_compile=`echo "$ac_compile" | $SED \
9562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9564    -e 's:$: $lt_compiler_flag:'`
9565    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9566    (eval "$lt_compile" 2>out/conftest.err)
9567    ac_status=$?
9568    cat out/conftest.err >&5
9569    echo "$as_me:__oline__: \$? = $ac_status" >&5
9570    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9571    then
9572      # The compiler can only warn and ignore the option if not recognized
9573      # So say no if there are warnings
9574      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9575      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9576      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9577        lt_cv_prog_compiler_c_o=yes
9578      fi
9579    fi
9580    chmod u+w . 2>&5
9581    $rm conftest*
9582    # SGI C++ compiler will create directory out/ii_files/ for
9583    # template instantiation
9584    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9585    $rm out/* && rmdir out
9586    cd ..
9587    rmdir conftest
9588    $rm conftest*
9589
9590 fi
9591 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9592 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9593
9594
9595 hard_links="nottested"
9596 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9597   # do not overwrite the value of need_locks provided by the user
9598   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9599 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9600   hard_links=yes
9601   $rm conftest*
9602   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9603   touch conftest.a
9604   ln conftest.a conftest.b 2>&5 || hard_links=no
9605   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9606   { echo "$as_me:$LINENO: result: $hard_links" >&5
9607 echo "${ECHO_T}$hard_links" >&6; }
9608   if test "$hard_links" = no; then
9609     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9610 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9611     need_locks=warn
9612   fi
9613 else
9614   need_locks=no
9615 fi
9616
9617 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9618 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9619
9620   runpath_var=
9621   allow_undefined_flag=
9622   enable_shared_with_static_runtimes=no
9623   archive_cmds=
9624   archive_expsym_cmds=
9625   old_archive_From_new_cmds=
9626   old_archive_from_expsyms_cmds=
9627   export_dynamic_flag_spec=
9628   whole_archive_flag_spec=
9629   thread_safe_flag_spec=
9630   hardcode_libdir_flag_spec=
9631   hardcode_libdir_flag_spec_ld=
9632   hardcode_libdir_separator=
9633   hardcode_direct=no
9634   hardcode_minus_L=no
9635   hardcode_shlibpath_var=unsupported
9636   link_all_deplibs=unknown
9637   hardcode_automatic=no
9638   module_cmds=
9639   module_expsym_cmds=
9640   always_export_symbols=no
9641   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9642   # include_expsyms should be a list of space-separated symbols to be *always*
9643   # included in the symbol list
9644   include_expsyms=
9645   # exclude_expsyms can be an extended regexp of symbols to exclude
9646   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9647   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9648   # as well as any symbol that contains `d'.
9649   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9650   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9651   # platforms (ab)use it in PIC code, but their linkers get confused if
9652   # the symbol is explicitly referenced.  Since portable code cannot
9653   # rely on this symbol name, it's probably fine to never include it in
9654   # preloaded symbol tables.
9655   # Exclude shared library initialization/finalization symbols.
9656   extract_expsyms_cmds=
9657   # Just being paranoid about ensuring that cc_basename is set.
9658   for cc_temp in $compiler""; do
9659   case $cc_temp in
9660     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9661     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9662     \-*) ;;
9663     *) break;;
9664   esac
9665 done
9666 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9667
9668   case $host_os in
9669   cygwin* | mingw* | pw32*)
9670     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9671     # When not using gcc, we currently assume that we are using
9672     # Microsoft Visual C++.
9673     if test "$GCC" != yes; then
9674       with_gnu_ld=no
9675     fi
9676     ;;
9677   interix*)
9678     # we just hope/assume this is gcc and not c89 (= MSVC++)
9679     with_gnu_ld=yes
9680     ;;
9681   openbsd*)
9682     with_gnu_ld=no
9683     ;;
9684   esac
9685
9686   ld_shlibs=yes
9687   if test "$with_gnu_ld" = yes; then
9688     # If archive_cmds runs LD, not CC, wlarc should be empty
9689     wlarc='${wl}'
9690
9691     # Set some defaults for GNU ld with shared library support. These
9692     # are reset later if shared libraries are not supported. Putting them
9693     # here allows them to be overridden if necessary.
9694     runpath_var=LD_RUN_PATH
9695     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9696     export_dynamic_flag_spec='${wl}--export-dynamic'
9697     # ancient GNU ld didn't support --whole-archive et. al.
9698     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9699         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9700       else
9701         whole_archive_flag_spec=
9702     fi
9703     supports_anon_versioning=no
9704     case `$LD -v 2>/dev/null` in
9705       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9706       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9707       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9708       *\ 2.11.*) ;; # other 2.11 versions
9709       *) supports_anon_versioning=yes ;;
9710     esac
9711
9712     # See if GNU ld supports shared libraries.
9713     case $host_os in
9714     aix[3-9]*)
9715       # On AIX/PPC, the GNU linker is very broken
9716       if test "$host_cpu" != ia64; then
9717         ld_shlibs=no
9718         cat <<EOF 1>&2
9719
9720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9721 *** to be unable to reliably create shared libraries on AIX.
9722 *** Therefore, libtool is disabling shared libraries support.  If you
9723 *** really care for shared libraries, you may want to modify your PATH
9724 *** so that a non-GNU linker is found, and then restart.
9725
9726 EOF
9727       fi
9728       ;;
9729
9730     amigaos*)
9731       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)'
9732       hardcode_libdir_flag_spec='-L$libdir'
9733       hardcode_minus_L=yes
9734
9735       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9736       # that the semantics of dynamic libraries on AmigaOS, at least up
9737       # to version 4, is to share data among multiple programs linked
9738       # with the same dynamic library.  Since this doesn't match the
9739       # behavior of shared libraries on other platforms, we can't use
9740       # them.
9741       ld_shlibs=no
9742       ;;
9743
9744     beos*)
9745       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9746         allow_undefined_flag=unsupported
9747         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9748         # support --undefined.  This deserves some investigation.  FIXME
9749         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750       else
9751         ld_shlibs=no
9752       fi
9753       ;;
9754
9755     cygwin* | mingw* | pw32*)
9756       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9757       # as there is no search path for DLLs.
9758       hardcode_libdir_flag_spec='-L$libdir'
9759       allow_undefined_flag=unsupported
9760       always_export_symbols=no
9761       enable_shared_with_static_runtimes=yes
9762       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9763
9764       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9765         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9766         # If the export-symbols file already is a .def file (1st line
9767         # is EXPORTS), use it as is; otherwise, prepend...
9768         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9769           cp $export_symbols $output_objdir/$soname.def;
9770         else
9771           echo EXPORTS > $output_objdir/$soname.def;
9772           cat $export_symbols >> $output_objdir/$soname.def;
9773         fi~
9774         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9775       else
9776         ld_shlibs=no
9777       fi
9778       ;;
9779
9780     interix[3-9]*)
9781       hardcode_direct=no
9782       hardcode_shlibpath_var=no
9783       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9784       export_dynamic_flag_spec='${wl}-E'
9785       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9786       # Instead, shared libraries are loaded at an image base (0x10000000 by
9787       # default) and relocated if they conflict, which is a slow very memory
9788       # consuming and fragmenting process.  To avoid this, we pick a random,
9789       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9790       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9791       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9792       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'
9793       ;;
9794
9795     gnu* | linux* | k*bsd*-gnu)
9796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9797         tmp_addflag=
9798         case $cc_basename,$host_cpu in
9799         pgcc*)                          # Portland Group C compiler
9800           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'
9801           tmp_addflag=' $pic_flag'
9802           ;;
9803         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9804           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'
9805           tmp_addflag=' $pic_flag -Mnomain' ;;
9806         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9807           tmp_addflag=' -i_dynamic' ;;
9808         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9809           tmp_addflag=' -i_dynamic -nofor_main' ;;
9810         ifc* | ifort*)                  # Intel Fortran compiler
9811           tmp_addflag=' -nofor_main' ;;
9812         esac
9813         case `$CC -V 2>&1 | sed 5q` in
9814         *Sun\ C*)                       # Sun C 5.9
9815           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9816           tmp_sharedflag='-G' ;;
9817         *Sun\ F*)                       # Sun Fortran 8.3
9818           tmp_sharedflag='-G' ;;
9819         *)
9820           tmp_sharedflag='-shared' ;;
9821         esac
9822         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823
9824         if test $supports_anon_versioning = yes; then
9825           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9826   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9827   $echo "local: *; };" >> $output_objdir/$libname.ver~
9828           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9829         fi
9830       else
9831         ld_shlibs=no
9832       fi
9833       ;;
9834
9835     netbsd*)
9836       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9837         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9838         wlarc=
9839       else
9840         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9841         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9842       fi
9843       ;;
9844
9845     solaris*)
9846       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9847         ld_shlibs=no
9848         cat <<EOF 1>&2
9849
9850 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9851 *** create shared libraries on Solaris systems.  Therefore, libtool
9852 *** is disabling shared libraries support.  We urge you to upgrade GNU
9853 *** binutils to release 2.9.1 or newer.  Another option is to modify
9854 *** your PATH or compiler configuration so that the native linker is
9855 *** used, and then restart.
9856
9857 EOF
9858       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9859         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9860         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9861       else
9862         ld_shlibs=no
9863       fi
9864       ;;
9865
9866     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9867       case `$LD -v 2>&1` in
9868         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9869         ld_shlibs=no
9870         cat <<_LT_EOF 1>&2
9871
9872 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9873 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9874 *** is disabling shared libraries support.  We urge you to upgrade GNU
9875 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9876 *** your PATH or compiler configuration so that the native linker is
9877 *** used, and then restart.
9878
9879 _LT_EOF
9880         ;;
9881         *)
9882           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9883             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9884             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9885             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9886           else
9887             ld_shlibs=no
9888           fi
9889         ;;
9890       esac
9891       ;;
9892
9893     sunos4*)
9894       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9895       wlarc=
9896       hardcode_direct=yes
9897       hardcode_shlibpath_var=no
9898       ;;
9899
9900     *)
9901       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9902         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9904       else
9905         ld_shlibs=no
9906       fi
9907       ;;
9908     esac
9909
9910     if test "$ld_shlibs" = no; then
9911       runpath_var=
9912       hardcode_libdir_flag_spec=
9913       export_dynamic_flag_spec=
9914       whole_archive_flag_spec=
9915     fi
9916   else
9917     # PORTME fill in a description of your system's linker (not GNU ld)
9918     case $host_os in
9919     aix3*)
9920       allow_undefined_flag=unsupported
9921       always_export_symbols=yes
9922       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'
9923       # Note: this linker hardcodes the directories in LIBPATH if there
9924       # are no directories specified by -L.
9925       hardcode_minus_L=yes
9926       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9927         # Neither direct hardcoding nor static linking is supported with a
9928         # broken collect2.
9929         hardcode_direct=unsupported
9930       fi
9931       ;;
9932
9933     aix[4-9]*)
9934       if test "$host_cpu" = ia64; then
9935         # On IA64, the linker does run time linking by default, so we don't
9936         # have to do anything special.
9937         aix_use_runtimelinking=no
9938         exp_sym_flag='-Bexport'
9939         no_entry_flag=""
9940       else
9941         # If we're using GNU nm, then we don't want the "-C" option.
9942         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9943         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9944           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'
9945         else
9946           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'
9947         fi
9948         aix_use_runtimelinking=no
9949
9950         # Test if we are trying to use run time linking or normal
9951         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9952         # need to do runtime linking.
9953         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9954           for ld_flag in $LDFLAGS; do
9955           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9956             aix_use_runtimelinking=yes
9957             break
9958           fi
9959           done
9960           ;;
9961         esac
9962
9963         exp_sym_flag='-bexport'
9964         no_entry_flag='-bnoentry'
9965       fi
9966
9967       # When large executables or shared objects are built, AIX ld can
9968       # have problems creating the table of contents.  If linking a library
9969       # or program results in "error TOC overflow" add -mminimal-toc to
9970       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9971       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9972
9973       archive_cmds=''
9974       hardcode_direct=yes
9975       hardcode_libdir_separator=':'
9976       link_all_deplibs=yes
9977
9978       if test "$GCC" = yes; then
9979         case $host_os in aix4.[012]|aix4.[012].*)
9980         # We only want to do this on AIX 4.2 and lower, the check
9981         # below for broken collect2 doesn't work under 4.3+
9982           collect2name=`${CC} -print-prog-name=collect2`
9983           if test -f "$collect2name" && \
9984            strings "$collect2name" | grep resolve_lib_name >/dev/null
9985           then
9986           # We have reworked collect2
9987           :
9988           else
9989           # We have old collect2
9990           hardcode_direct=unsupported
9991           # It fails to find uninstalled libraries when the uninstalled
9992           # path is not listed in the libpath.  Setting hardcode_minus_L
9993           # to unsupported forces relinking
9994           hardcode_minus_L=yes
9995           hardcode_libdir_flag_spec='-L$libdir'
9996           hardcode_libdir_separator=
9997           fi
9998           ;;
9999         esac
10000         shared_flag='-shared'
10001         if test "$aix_use_runtimelinking" = yes; then
10002           shared_flag="$shared_flag "'${wl}-G'
10003         fi
10004       else
10005         # not using gcc
10006         if test "$host_cpu" = ia64; then
10007         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10008         # chokes on -Wl,-G. The following line is correct:
10009           shared_flag='-G'
10010         else
10011           if test "$aix_use_runtimelinking" = yes; then
10012             shared_flag='${wl}-G'
10013           else
10014             shared_flag='${wl}-bM:SRE'
10015           fi
10016         fi
10017       fi
10018
10019       # It seems that -bexpall does not export symbols beginning with
10020       # underscore (_), so it is better to generate a list of symbols to export.
10021       always_export_symbols=yes
10022       if test "$aix_use_runtimelinking" = yes; then
10023         # Warning - without using the other runtime loading flags (-brtl),
10024         # -berok will link without error, but may produce a broken library.
10025         allow_undefined_flag='-berok'
10026        # Determine the default libpath from the value encoded in an empty executable.
10027        cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034 int
10035 main ()
10036 {
10037
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_link") 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } && {
10056          test -z "$ac_c_werror_flag" ||
10057          test ! -s conftest.err
10058        } && test -s conftest$ac_exeext &&
10059        $as_test_x conftest$ac_exeext; then
10060   
10061 lt_aix_libpath_sed='
10062     /Import File Strings/,/^$/ {
10063         /^0/ {
10064             s/^0  *\(.*\)$/\1/
10065             p
10066         }
10067     }'
10068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10069 # Check for a 64-bit object if we didn't find anything.
10070 if test -z "$aix_libpath"; then
10071   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10072 fi
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077         
10078 fi
10079
10080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10081       conftest$ac_exeext conftest.$ac_ext
10082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10083
10084        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10085         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"
10086        else
10087         if test "$host_cpu" = ia64; then
10088           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10089           allow_undefined_flag="-z nodefs"
10090           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"
10091         else
10092          # Determine the default libpath from the value encoded in an empty executable.
10093          cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h.  */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h.  */
10099
10100 int
10101 main ()
10102 {
10103
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (ac_try="$ac_link"
10110 case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_link") 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } && {
10122          test -z "$ac_c_werror_flag" ||
10123          test ! -s conftest.err
10124        } && test -s conftest$ac_exeext &&
10125        $as_test_x conftest$ac_exeext; then
10126   
10127 lt_aix_libpath_sed='
10128     /Import File Strings/,/^$/ {
10129         /^0/ {
10130             s/^0  *\(.*\)$/\1/
10131             p
10132         }
10133     }'
10134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10135 # Check for a 64-bit object if we didn't find anything.
10136 if test -z "$aix_libpath"; then
10137   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10138 fi
10139 else
10140   echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143         
10144 fi
10145
10146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10147       conftest$ac_exeext conftest.$ac_ext
10148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10149
10150          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10151           # Warning - without using the other run time loading flags,
10152           # -berok will link without error, but may produce a broken library.
10153           no_undefined_flag=' ${wl}-bernotok'
10154           allow_undefined_flag=' ${wl}-berok'
10155           # Exported symbols can be pulled into shared objects from archives
10156           whole_archive_flag_spec='$convenience'
10157           archive_cmds_need_lc=yes
10158           # This is similar to how AIX traditionally builds its shared libraries.
10159           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'
10160         fi
10161       fi
10162       ;;
10163
10164     amigaos*)
10165       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)'
10166       hardcode_libdir_flag_spec='-L$libdir'
10167       hardcode_minus_L=yes
10168       # see comment about different semantics on the GNU ld section
10169       ld_shlibs=no
10170       ;;
10171
10172     bsdi[45]*)
10173       export_dynamic_flag_spec=-rdynamic
10174       ;;
10175
10176     cygwin* | mingw* | pw32*)
10177       # When not using gcc, we currently assume that we are using
10178       # Microsoft Visual C++.
10179       # hardcode_libdir_flag_spec is actually meaningless, as there is
10180       # no search path for DLLs.
10181       hardcode_libdir_flag_spec=' '
10182       allow_undefined_flag=unsupported
10183       # Tell ltmain to make .lib files, not .a files.
10184       libext=lib
10185       # Tell ltmain to make .dll files, not .so files.
10186       shrext_cmds=".dll"
10187       # FIXME: Setting linknames here is a bad hack.
10188       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10189       # The linker will automatically build a .lib file if we build a DLL.
10190       old_archive_From_new_cmds='true'
10191       # FIXME: Should let the user specify the lib program.
10192       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10193       fix_srcfile_path='`cygpath -w "$srcfile"`'
10194       enable_shared_with_static_runtimes=yes
10195       ;;
10196
10197     darwin* | rhapsody*)
10198       case $host_os in
10199         rhapsody* | darwin1.[012])
10200          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10201          ;;
10202        *) # Darwin 1.3 on
10203          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10204            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10205          else
10206            case ${MACOSX_DEPLOYMENT_TARGET} in
10207              10.[012])
10208                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10209                ;;
10210              10.*)
10211                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10212                ;;
10213            esac
10214          fi
10215          ;;
10216       esac
10217       archive_cmds_need_lc=no
10218       hardcode_direct=no
10219       hardcode_automatic=yes
10220       hardcode_shlibpath_var=unsupported
10221       whole_archive_flag_spec=''
10222       link_all_deplibs=yes
10223     if test "$GCC" = yes ; then
10224         output_verbose_link_cmd='echo'
10225         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10226         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10227         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10228         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10229     else
10230       case $cc_basename in
10231         xlc*)
10232          output_verbose_link_cmd='echo'
10233          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10234          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10235           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10236          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10237           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}'
10238           ;;
10239        *)
10240          ld_shlibs=no
10241           ;;
10242       esac
10243     fi
10244       ;;
10245
10246     dgux*)
10247       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248       hardcode_libdir_flag_spec='-L$libdir'
10249       hardcode_shlibpath_var=no
10250       ;;
10251
10252     freebsd1*)
10253       ld_shlibs=no
10254       ;;
10255
10256     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10257     # support.  Future versions do this automatically, but an explicit c++rt0.o
10258     # does not break anything, and helps significantly (at the cost of a little
10259     # extra space).
10260     freebsd2.2*)
10261       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10262       hardcode_libdir_flag_spec='-R$libdir'
10263       hardcode_direct=yes
10264       hardcode_shlibpath_var=no
10265       ;;
10266
10267     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10268     freebsd2*)
10269       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10270       hardcode_direct=yes
10271       hardcode_minus_L=yes
10272       hardcode_shlibpath_var=no
10273       ;;
10274
10275     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10276     freebsd* | dragonfly*)
10277       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10278       hardcode_libdir_flag_spec='-R$libdir'
10279       hardcode_direct=yes
10280       hardcode_shlibpath_var=no
10281       ;;
10282
10283     hpux9*)
10284       if test "$GCC" = yes; then
10285         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'
10286       else
10287         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'
10288       fi
10289       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10290       hardcode_libdir_separator=:
10291       hardcode_direct=yes
10292
10293       # hardcode_minus_L: Not really in the search PATH,
10294       # but as the default location of the library.
10295       hardcode_minus_L=yes
10296       export_dynamic_flag_spec='${wl}-E'
10297       ;;
10298
10299     hpux10*)
10300       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10301         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10302       else
10303         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10304       fi
10305       if test "$with_gnu_ld" = no; then
10306         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10307         hardcode_libdir_separator=:
10308
10309         hardcode_direct=yes
10310         export_dynamic_flag_spec='${wl}-E'
10311
10312         # hardcode_minus_L: Not really in the search PATH,
10313         # but as the default location of the library.
10314         hardcode_minus_L=yes
10315       fi
10316       ;;
10317
10318     hpux11*)
10319       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10320         case $host_cpu in
10321         hppa*64*)
10322           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10323           ;;
10324         ia64*)
10325           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10326           ;;
10327         *)
10328           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10329           ;;
10330         esac
10331       else
10332         case $host_cpu in
10333         hppa*64*)
10334           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10335           ;;
10336         ia64*)
10337           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10338           ;;
10339         *)
10340           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10341           ;;
10342         esac
10343       fi
10344       if test "$with_gnu_ld" = no; then
10345         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10346         hardcode_libdir_separator=:
10347
10348         case $host_cpu in
10349         hppa*64*|ia64*)
10350           hardcode_libdir_flag_spec_ld='+b $libdir'
10351           hardcode_direct=no
10352           hardcode_shlibpath_var=no
10353           ;;
10354         *)
10355           hardcode_direct=yes
10356           export_dynamic_flag_spec='${wl}-E'
10357
10358           # hardcode_minus_L: Not really in the search PATH,
10359           # but as the default location of the library.
10360           hardcode_minus_L=yes
10361           ;;
10362         esac
10363       fi
10364       ;;
10365
10366     irix5* | irix6* | nonstopux*)
10367       if test "$GCC" = yes; then
10368         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'
10369       else
10370         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'
10371         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10372       fi
10373       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374       hardcode_libdir_separator=:
10375       link_all_deplibs=yes
10376       ;;
10377
10378     netbsd*)
10379       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10380         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10381       else
10382         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10383       fi
10384       hardcode_libdir_flag_spec='-R$libdir'
10385       hardcode_direct=yes
10386       hardcode_shlibpath_var=no
10387       ;;
10388
10389     newsos6)
10390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391       hardcode_direct=yes
10392       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10393       hardcode_libdir_separator=:
10394       hardcode_shlibpath_var=no
10395       ;;
10396
10397     openbsd*)
10398       if test -f /usr/libexec/ld.so; then
10399         hardcode_direct=yes
10400         hardcode_shlibpath_var=no
10401         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10402           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10403           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10404           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10405           export_dynamic_flag_spec='${wl}-E'
10406         else
10407           case $host_os in
10408            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10409              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10410              hardcode_libdir_flag_spec='-R$libdir'
10411              ;;
10412            *)
10413              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10414              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10415              ;;
10416           esac
10417         fi
10418       else
10419         ld_shlibs=no
10420       fi
10421       ;;
10422
10423     os2*)
10424       hardcode_libdir_flag_spec='-L$libdir'
10425       hardcode_minus_L=yes
10426       allow_undefined_flag=unsupported
10427       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'
10428       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10429       ;;
10430
10431     osf3*)
10432       if test "$GCC" = yes; then
10433         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10434         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'
10435       else
10436         allow_undefined_flag=' -expect_unresolved \*'
10437         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'
10438       fi
10439       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10440       hardcode_libdir_separator=:
10441       ;;
10442
10443     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10444       if test "$GCC" = yes; then
10445         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10446         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'
10447         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10448       else
10449         allow_undefined_flag=' -expect_unresolved \*'
10450         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'
10451         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10452         $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'
10453
10454         # Both c and cxx compiler support -rpath directly
10455         hardcode_libdir_flag_spec='-rpath $libdir'
10456       fi
10457       hardcode_libdir_separator=:
10458       ;;
10459
10460     solaris*)
10461       no_undefined_flag=' -z text'
10462       if test "$GCC" = yes; then
10463         wlarc='${wl}'
10464         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10465         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10466           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10467       else
10468         wlarc=''
10469         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10471         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10472       fi
10473       hardcode_libdir_flag_spec='-R$libdir'
10474       hardcode_shlibpath_var=no
10475       case $host_os in
10476       solaris2.[0-5] | solaris2.[0-5].*) ;;
10477       *)
10478         # The compiler driver will combine and reorder linker options,
10479         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10480         # but is careful enough not to reorder.
10481         # Supported since Solaris 2.6 (maybe 2.5.1?)
10482         if test "$GCC" = yes; then
10483           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10484         else
10485           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10486         fi
10487         ;;
10488       esac
10489       link_all_deplibs=yes
10490       ;;
10491
10492     sunos4*)
10493       if test "x$host_vendor" = xsequent; then
10494         # Use $CC to link under sequent, because it throws in some extra .o
10495         # files that make .init and .fini sections work.
10496         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10497       else
10498         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10499       fi
10500       hardcode_libdir_flag_spec='-L$libdir'
10501       hardcode_direct=yes
10502       hardcode_minus_L=yes
10503       hardcode_shlibpath_var=no
10504       ;;
10505
10506     sysv4)
10507       case $host_vendor in
10508         sni)
10509           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510           hardcode_direct=yes # is this really true???
10511         ;;
10512         siemens)
10513           ## LD is ld it makes a PLAMLIB
10514           ## CC just makes a GrossModule.
10515           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10516           reload_cmds='$CC -r -o $output$reload_objs'
10517           hardcode_direct=no
10518         ;;
10519         motorola)
10520           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10522         ;;
10523       esac
10524       runpath_var='LD_RUN_PATH'
10525       hardcode_shlibpath_var=no
10526       ;;
10527
10528     sysv4.3*)
10529       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10530       hardcode_shlibpath_var=no
10531       export_dynamic_flag_spec='-Bexport'
10532       ;;
10533
10534     sysv4*MP*)
10535       if test -d /usr/nec; then
10536         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537         hardcode_shlibpath_var=no
10538         runpath_var=LD_RUN_PATH
10539         hardcode_runpath_var=yes
10540         ld_shlibs=yes
10541       fi
10542       ;;
10543
10544     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10545       no_undefined_flag='${wl}-z,text'
10546       archive_cmds_need_lc=no
10547       hardcode_shlibpath_var=no
10548       runpath_var='LD_RUN_PATH'
10549
10550       if test "$GCC" = yes; then
10551         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10553       else
10554         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556       fi
10557       ;;
10558
10559     sysv5* | sco3.2v5* | sco5v6*)
10560       # Note: We can NOT use -z defs as we might desire, because we do not
10561       # link with -lc, and that would cause any symbols used from libc to
10562       # always be unresolved, which means just about no library would
10563       # ever link correctly.  If we're not using GNU ld we use -z text
10564       # though, which does catch some bad symbols but isn't as heavy-handed
10565       # as -z defs.
10566       no_undefined_flag='${wl}-z,text'
10567       allow_undefined_flag='${wl}-z,nodefs'
10568       archive_cmds_need_lc=no
10569       hardcode_shlibpath_var=no
10570       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10571       hardcode_libdir_separator=':'
10572       link_all_deplibs=yes
10573       export_dynamic_flag_spec='${wl}-Bexport'
10574       runpath_var='LD_RUN_PATH'
10575
10576       if test "$GCC" = yes; then
10577         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10578         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10579       else
10580         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10581         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10582       fi
10583       ;;
10584
10585     uts4*)
10586       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587       hardcode_libdir_flag_spec='-L$libdir'
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     *)
10592       ld_shlibs=no
10593       ;;
10594     esac
10595   fi
10596
10597 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10598 echo "${ECHO_T}$ld_shlibs" >&6; }
10599 test "$ld_shlibs" = no && can_build_shared=no
10600
10601 #
10602 # Do we need to explicitly link libc?
10603 #
10604 case "x$archive_cmds_need_lc" in
10605 x|xyes)
10606   # Assume -lc should be added
10607   archive_cmds_need_lc=yes
10608
10609   if test "$enable_shared" = yes && test "$GCC" = yes; then
10610     case $archive_cmds in
10611     *'~'*)
10612       # FIXME: we may have to deal with multi-command sequences.
10613       ;;
10614     '$CC '*)
10615       # Test whether the compiler implicitly links with -lc since on some
10616       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10617       # to ld, don't add -lc before -lgcc.
10618       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10619 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10620       $rm conftest*
10621       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10622
10623       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624   (eval $ac_compile) 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } 2>conftest.err; then
10628         soname=conftest
10629         lib=conftest
10630         libobjs=conftest.$ac_objext
10631         deplibs=
10632         wl=$lt_prog_compiler_wl
10633         pic_flag=$lt_prog_compiler_pic
10634         compiler_flags=-v
10635         linker_flags=-v
10636         verstring=
10637         output_objdir=.
10638         libname=conftest
10639         lt_save_allow_undefined_flag=$allow_undefined_flag
10640         allow_undefined_flag=
10641         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10642   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); }
10646         then
10647           archive_cmds_need_lc=no
10648         else
10649           archive_cmds_need_lc=yes
10650         fi
10651         allow_undefined_flag=$lt_save_allow_undefined_flag
10652       else
10653         cat conftest.err 1>&5
10654       fi
10655       $rm conftest*
10656       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10657 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10658       ;;
10659     esac
10660   fi
10661   ;;
10662 esac
10663
10664 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10665 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10666 library_names_spec=
10667 libname_spec='lib$name'
10668 soname_spec=
10669 shrext_cmds=".so"
10670 postinstall_cmds=
10671 postuninstall_cmds=
10672 finish_cmds=
10673 finish_eval=
10674 shlibpath_var=
10675 shlibpath_overrides_runpath=unknown
10676 version_type=none
10677 dynamic_linker="$host_os ld.so"
10678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10679
10680 if test "$GCC" = yes; then
10681   case $host_os in
10682     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10683     *) lt_awk_arg="/^libraries:/" ;;
10684   esac
10685   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10686   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10687     # if the path contains ";" then we assume it to be the separator
10688     # otherwise default to the standard path separator (i.e. ":") - it is
10689     # assumed that no part of a normal pathname contains ";" but that should
10690     # okay in the real world where ";" in dirpaths is itself problematic.
10691     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10692   else
10693     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10694   fi
10695   # Ok, now we have the path, separated by spaces, we can step through it
10696   # and add multilib dir if necessary.
10697   lt_tmp_lt_search_path_spec=
10698   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10699   for lt_sys_path in $lt_search_path_spec; do
10700     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10701       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10702     else
10703       test -d "$lt_sys_path" && \
10704         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10705     fi
10706   done
10707   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10708 BEGIN {RS=" "; FS="/|\n";} {
10709   lt_foo="";
10710   lt_count=0;
10711   for (lt_i = NF; lt_i > 0; lt_i--) {
10712     if ($lt_i != "" && $lt_i != ".") {
10713       if ($lt_i == "..") {
10714         lt_count++;
10715       } else {
10716         if (lt_count == 0) {
10717           lt_foo="/" $lt_i lt_foo;
10718         } else {
10719           lt_count--;
10720         }
10721       }
10722     }
10723   }
10724   if (lt_foo != "") { lt_freq[lt_foo]++; }
10725   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10726 }'`
10727   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10728 else
10729   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10730 fi
10731 need_lib_prefix=unknown
10732 hardcode_into_libs=no
10733
10734 # when you set need_version to no, make sure it does not cause -set_version
10735 # flags to be left without arguments
10736 need_version=unknown
10737
10738 case $host_os in
10739 aix3*)
10740   version_type=linux
10741   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10742   shlibpath_var=LIBPATH
10743
10744   # AIX 3 has no versioning support, so we append a major version to the name.
10745   soname_spec='${libname}${release}${shared_ext}$major'
10746   ;;
10747
10748 aix[4-9]*)
10749   version_type=linux
10750   need_lib_prefix=no
10751   need_version=no
10752   hardcode_into_libs=yes
10753   if test "$host_cpu" = ia64; then
10754     # AIX 5 supports IA64
10755     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10756     shlibpath_var=LD_LIBRARY_PATH
10757   else
10758     # With GCC up to 2.95.x, collect2 would create an import file
10759     # for dependence libraries.  The import file would start with
10760     # the line `#! .'.  This would cause the generated library to
10761     # depend on `.', always an invalid library.  This was fixed in
10762     # development snapshots of GCC prior to 3.0.
10763     case $host_os in
10764       aix4 | aix4.[01] | aix4.[01].*)
10765       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10766            echo ' yes '
10767            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10768         :
10769       else
10770         can_build_shared=no
10771       fi
10772       ;;
10773     esac
10774     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10775     # soname into executable. Probably we can add versioning support to
10776     # collect2, so additional links can be useful in future.
10777     if test "$aix_use_runtimelinking" = yes; then
10778       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10779       # instead of lib<name>.a to let people know that these are not
10780       # typical AIX shared libraries.
10781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782     else
10783       # We preserve .a as extension for shared libraries through AIX4.2
10784       # and later when we are not doing run time linking.
10785       library_names_spec='${libname}${release}.a $libname.a'
10786       soname_spec='${libname}${release}${shared_ext}$major'
10787     fi
10788     shlibpath_var=LIBPATH
10789   fi
10790   ;;
10791
10792 amigaos*)
10793   library_names_spec='$libname.ixlibrary $libname.a'
10794   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10795   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'
10796   ;;
10797
10798 beos*)
10799   library_names_spec='${libname}${shared_ext}'
10800   dynamic_linker="$host_os ld.so"
10801   shlibpath_var=LIBRARY_PATH
10802   ;;
10803
10804 bsdi[45]*)
10805   version_type=linux
10806   need_version=no
10807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10810   shlibpath_var=LD_LIBRARY_PATH
10811   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10812   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10813   # the default ld.so.conf also contains /usr/contrib/lib and
10814   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10815   # libtool to hard-code these into programs
10816   ;;
10817
10818 cygwin* | mingw* | pw32*)
10819   version_type=windows
10820   shrext_cmds=".dll"
10821   need_version=no
10822   need_lib_prefix=no
10823
10824   case $GCC,$host_os in
10825   yes,cygwin* | yes,mingw* | yes,pw32*)
10826     library_names_spec='$libname.dll.a'
10827     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10828     postinstall_cmds='base_file=`basename \${file}`~
10829       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10830       dldir=$destdir/`dirname \$dlpath`~
10831       test -d \$dldir || mkdir -p \$dldir~
10832       $install_prog $dir/$dlname \$dldir/$dlname~
10833       chmod a+x \$dldir/$dlname'
10834     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10835       dlpath=$dir/\$dldll~
10836        $rm \$dlpath'
10837     shlibpath_overrides_runpath=yes
10838
10839     case $host_os in
10840     cygwin*)
10841       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10842       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10843       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10844       ;;
10845     mingw*)
10846       # MinGW DLLs use traditional 'lib' prefix
10847       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10848       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10849       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10850         # It is most probably a Windows format PATH printed by
10851         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10852         # path with ; separators, and with drive letters. We can handle the
10853         # drive letters (cygwin fileutils understands them), so leave them,
10854         # especially as we might pass files found there to a mingw objdump,
10855         # which wouldn't understand a cygwinified path. Ahh.
10856         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10857       else
10858         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10859       fi
10860       ;;
10861     pw32*)
10862       # pw32 DLLs use 'pw' prefix rather than 'lib'
10863       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10864       ;;
10865     esac
10866     ;;
10867
10868   *)
10869     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10870     ;;
10871   esac
10872   dynamic_linker='Win32 ld.exe'
10873   # FIXME: first we should search . and the directory the executable is in
10874   shlibpath_var=PATH
10875   ;;
10876
10877 darwin* | rhapsody*)
10878   dynamic_linker="$host_os dyld"
10879   version_type=darwin
10880   need_lib_prefix=no
10881   need_version=no
10882   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10883   soname_spec='${libname}${release}${major}$shared_ext'
10884   shlibpath_overrides_runpath=yes
10885   shlibpath_var=DYLD_LIBRARY_PATH
10886   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10887   
10888   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
10889   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10890   ;;
10891
10892 dgux*)
10893   version_type=linux
10894   need_lib_prefix=no
10895   need_version=no
10896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10897   soname_spec='${libname}${release}${shared_ext}$major'
10898   shlibpath_var=LD_LIBRARY_PATH
10899   ;;
10900
10901 freebsd1*)
10902   dynamic_linker=no
10903   ;;
10904
10905 freebsd* | dragonfly*)
10906   # DragonFly does not have aout.  When/if they implement a new
10907   # versioning mechanism, adjust this.
10908   if test -x /usr/bin/objformat; then
10909     objformat=`/usr/bin/objformat`
10910   else
10911     case $host_os in
10912     freebsd[123]*) objformat=aout ;;
10913     *) objformat=elf ;;
10914     esac
10915   fi
10916   version_type=freebsd-$objformat
10917   case $version_type in
10918     freebsd-elf*)
10919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10920       need_version=no
10921       need_lib_prefix=no
10922       ;;
10923     freebsd-*)
10924       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10925       need_version=yes
10926       ;;
10927   esac
10928   shlibpath_var=LD_LIBRARY_PATH
10929   case $host_os in
10930   freebsd2*)
10931     shlibpath_overrides_runpath=yes
10932     ;;
10933   freebsd3.[01]* | freebsdelf3.[01]*)
10934     shlibpath_overrides_runpath=yes
10935     hardcode_into_libs=yes
10936     ;;
10937   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10938   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10939     shlibpath_overrides_runpath=no
10940     hardcode_into_libs=yes
10941     ;;
10942   *) # from 4.6 on, and DragonFly
10943     shlibpath_overrides_runpath=yes
10944     hardcode_into_libs=yes
10945     ;;
10946   esac
10947   ;;
10948
10949 gnu*)
10950   version_type=linux
10951   need_lib_prefix=no
10952   need_version=no
10953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10954   soname_spec='${libname}${release}${shared_ext}$major'
10955   shlibpath_var=LD_LIBRARY_PATH
10956   hardcode_into_libs=yes
10957   ;;
10958
10959 hpux9* | hpux10* | hpux11*)
10960   # Give a soname corresponding to the major version so that dld.sl refuses to
10961   # link against other versions.
10962   version_type=sunos
10963   need_lib_prefix=no
10964   need_version=no
10965   case $host_cpu in
10966   ia64*)
10967     shrext_cmds='.so'
10968     hardcode_into_libs=yes
10969     dynamic_linker="$host_os dld.so"
10970     shlibpath_var=LD_LIBRARY_PATH
10971     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973     soname_spec='${libname}${release}${shared_ext}$major'
10974     if test "X$HPUX_IA64_MODE" = X32; then
10975       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10976     else
10977       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10978     fi
10979     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10980     ;;
10981    hppa*64*)
10982      shrext_cmds='.sl'
10983      hardcode_into_libs=yes
10984      dynamic_linker="$host_os dld.sl"
10985      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10986      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10987      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988      soname_spec='${libname}${release}${shared_ext}$major'
10989      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10990      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10991      ;;
10992    *)
10993     shrext_cmds='.sl'
10994     dynamic_linker="$host_os dld.sl"
10995     shlibpath_var=SHLIB_PATH
10996     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
11000   esac
11001   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11002   postinstall_cmds='chmod 555 $lib'
11003   ;;
11004
11005 interix[3-9]*)
11006   version_type=linux
11007   need_lib_prefix=no
11008   need_version=no
11009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11010   soname_spec='${libname}${release}${shared_ext}$major'
11011   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11012   shlibpath_var=LD_LIBRARY_PATH
11013   shlibpath_overrides_runpath=no
11014   hardcode_into_libs=yes
11015   ;;
11016
11017 irix5* | irix6* | nonstopux*)
11018   case $host_os in
11019     nonstopux*) version_type=nonstopux ;;
11020     *)
11021         if test "$lt_cv_prog_gnu_ld" = yes; then
11022                 version_type=linux
11023         else
11024                 version_type=irix
11025         fi ;;
11026   esac
11027   need_lib_prefix=no
11028   need_version=no
11029   soname_spec='${libname}${release}${shared_ext}$major'
11030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11031   case $host_os in
11032   irix5* | nonstopux*)
11033     libsuff= shlibsuff=
11034     ;;
11035   *)
11036     case $LD in # libtool.m4 will add one of these switches to LD
11037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11038       libsuff= shlibsuff= libmagic=32-bit;;
11039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11040       libsuff=32 shlibsuff=N32 libmagic=N32;;
11041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11043     *) libsuff= shlibsuff= libmagic=never-match;;
11044     esac
11045     ;;
11046   esac
11047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11048   shlibpath_overrides_runpath=no
11049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11051   hardcode_into_libs=yes
11052   ;;
11053
11054 # No shared lib support for Linux oldld, aout, or coff.
11055 linux*oldld* | linux*aout* | linux*coff*)
11056   dynamic_linker=no
11057   ;;
11058
11059 # This must be Linux ELF.
11060 linux* | k*bsd*-gnu)
11061   version_type=linux
11062   need_lib_prefix=no
11063   need_version=no
11064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065   soname_spec='${libname}${release}${shared_ext}$major'
11066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11067   shlibpath_var=LD_LIBRARY_PATH
11068   shlibpath_overrides_runpath=no
11069   # This implies no fast_install, which is unacceptable.
11070   # Some rework will be needed to allow for fast_install
11071   # before this can be enabled.
11072   hardcode_into_libs=yes
11073
11074   # Append ld.so.conf contents to the search path
11075   if test -f /etc/ld.so.conf; then
11076     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11077     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11078   fi
11079
11080   # We used to test for /lib/ld.so.1 and disable shared libraries on
11081   # powerpc, because MkLinux only supported shared libraries with the
11082   # GNU dynamic linker.  Since this was broken with cross compilers,
11083   # most powerpc-linux boxes support dynamic linking these days and
11084   # people can always --disable-shared, the test was removed, and we
11085   # assume the GNU/Linux dynamic linker is in use.
11086   dynamic_linker='GNU/Linux ld.so'
11087   ;;
11088
11089 netbsd*)
11090   version_type=sunos
11091   need_lib_prefix=no
11092   need_version=no
11093   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11095     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11096     dynamic_linker='NetBSD (a.out) ld.so'
11097   else
11098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11099     soname_spec='${libname}${release}${shared_ext}$major'
11100     dynamic_linker='NetBSD ld.elf_so'
11101   fi
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=yes
11104   hardcode_into_libs=yes
11105   ;;
11106
11107 newsos6)
11108   version_type=linux
11109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110   shlibpath_var=LD_LIBRARY_PATH
11111   shlibpath_overrides_runpath=yes
11112   ;;
11113
11114 nto-qnx*)
11115   version_type=linux
11116   need_lib_prefix=no
11117   need_version=no
11118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119   soname_spec='${libname}${release}${shared_ext}$major'
11120   shlibpath_var=LD_LIBRARY_PATH
11121   shlibpath_overrides_runpath=yes
11122   ;;
11123
11124 openbsd*)
11125   version_type=sunos
11126   sys_lib_dlsearch_path_spec="/usr/lib"
11127   need_lib_prefix=no
11128   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11129   case $host_os in
11130     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11131     *)                         need_version=no  ;;
11132   esac
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11134   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11137     case $host_os in
11138       openbsd2.[89] | openbsd2.[89].*)
11139         shlibpath_overrides_runpath=no
11140         ;;
11141       *)
11142         shlibpath_overrides_runpath=yes
11143         ;;
11144       esac
11145   else
11146     shlibpath_overrides_runpath=yes
11147   fi
11148   ;;
11149
11150 os2*)
11151   libname_spec='$name'
11152   shrext_cmds=".dll"
11153   need_lib_prefix=no
11154   library_names_spec='$libname${shared_ext} $libname.a'
11155   dynamic_linker='OS/2 ld.exe'
11156   shlibpath_var=LIBPATH
11157   ;;
11158
11159 osf3* | osf4* | osf5*)
11160   version_type=osf
11161   need_lib_prefix=no
11162   need_version=no
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11167   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11168   ;;
11169
11170 rdos*)
11171   dynamic_linker=no
11172   ;;
11173
11174 solaris*)
11175   version_type=linux
11176   need_lib_prefix=no
11177   need_version=no
11178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179   soname_spec='${libname}${release}${shared_ext}$major'
11180   shlibpath_var=LD_LIBRARY_PATH
11181   shlibpath_overrides_runpath=yes
11182   hardcode_into_libs=yes
11183   # ldd complains unless libraries are executable
11184   postinstall_cmds='chmod +x $lib'
11185   ;;
11186
11187 sunos4*)
11188   version_type=sunos
11189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11190   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   shlibpath_overrides_runpath=yes
11193   if test "$with_gnu_ld" = yes; then
11194     need_lib_prefix=no
11195   fi
11196   need_version=yes
11197   ;;
11198
11199 sysv4 | sysv4.3*)
11200   version_type=linux
11201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202   soname_spec='${libname}${release}${shared_ext}$major'
11203   shlibpath_var=LD_LIBRARY_PATH
11204   case $host_vendor in
11205     sni)
11206       shlibpath_overrides_runpath=no
11207       need_lib_prefix=no
11208       export_dynamic_flag_spec='${wl}-Blargedynsym'
11209       runpath_var=LD_RUN_PATH
11210       ;;
11211     siemens)
11212       need_lib_prefix=no
11213       ;;
11214     motorola)
11215       need_lib_prefix=no
11216       need_version=no
11217       shlibpath_overrides_runpath=no
11218       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11219       ;;
11220   esac
11221   ;;
11222
11223 sysv4*MP*)
11224   if test -d /usr/nec ;then
11225     version_type=linux
11226     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11227     soname_spec='$libname${shared_ext}.$major'
11228     shlibpath_var=LD_LIBRARY_PATH
11229   fi
11230   ;;
11231
11232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11233   version_type=freebsd-elf
11234   need_lib_prefix=no
11235   need_version=no
11236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11237   soname_spec='${libname}${release}${shared_ext}$major'
11238   shlibpath_var=LD_LIBRARY_PATH
11239   hardcode_into_libs=yes
11240   if test "$with_gnu_ld" = yes; then
11241     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11242     shlibpath_overrides_runpath=no
11243   else
11244     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11245     shlibpath_overrides_runpath=yes
11246     case $host_os in
11247       sco3.2v5*)
11248         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11249         ;;
11250     esac
11251   fi
11252   sys_lib_dlsearch_path_spec='/usr/lib'
11253   ;;
11254
11255 uts4*)
11256   version_type=linux
11257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258   soname_spec='${libname}${release}${shared_ext}$major'
11259   shlibpath_var=LD_LIBRARY_PATH
11260   ;;
11261
11262 *)
11263   dynamic_linker=no
11264   ;;
11265 esac
11266 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11267 echo "${ECHO_T}$dynamic_linker" >&6; }
11268 test "$dynamic_linker" = no && can_build_shared=no
11269
11270 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11274 fi
11275
11276 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11277 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11281 fi
11282
11283 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11284
11285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11286 if test "$GCC" = yes; then
11287   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11288 fi
11289
11290 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11291 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11292 hardcode_action=
11293 if test -n "$hardcode_libdir_flag_spec" || \
11294    test -n "$runpath_var" || \
11295    test "X$hardcode_automatic" = "Xyes" ; then
11296
11297   # We can hardcode non-existant directories.
11298   if test "$hardcode_direct" != no &&
11299      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11300      # have to relink, otherwise we might link with an installed library
11301      # when we should be linking with a yet-to-be-installed one
11302      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11303      test "$hardcode_minus_L" != no; then
11304     # Linking always hardcodes the temporary library directory.
11305     hardcode_action=relink
11306   else
11307     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11308     hardcode_action=immediate
11309   fi
11310 else
11311   # We cannot hardcode anything, or else we can only hardcode existing
11312   # directories.
11313   hardcode_action=unsupported
11314 fi
11315 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11316 echo "${ECHO_T}$hardcode_action" >&6; }
11317
11318 if test "$hardcode_action" = relink; then
11319   # Fast installation is not supported
11320   enable_fast_install=no
11321 elif test "$shlibpath_overrides_runpath" = yes ||
11322      test "$enable_shared" = no; then
11323   # Fast installation is not necessary
11324   enable_fast_install=needless
11325 fi
11326
11327 striplib=
11328 old_striplib=
11329 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11330 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11331 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11332   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11333   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11334   { echo "$as_me:$LINENO: result: yes" >&5
11335 echo "${ECHO_T}yes" >&6; }
11336 else
11337 # FIXME - insert some real tests, host_os isn't really good enough
11338   case $host_os in
11339    darwin*)
11340        if test -n "$STRIP" ; then
11341          striplib="$STRIP -x"
11342          old_striplib="$STRIP -S"
11343          { echo "$as_me:$LINENO: result: yes" >&5
11344 echo "${ECHO_T}yes" >&6; }
11345        else
11346   { echo "$as_me:$LINENO: result: no" >&5
11347 echo "${ECHO_T}no" >&6; }
11348 fi
11349        ;;
11350    *)
11351   { echo "$as_me:$LINENO: result: no" >&5
11352 echo "${ECHO_T}no" >&6; }
11353     ;;
11354   esac
11355 fi
11356
11357 if test "x$enable_dlopen" != xyes; then
11358   enable_dlopen=unknown
11359   enable_dlopen_self=unknown
11360   enable_dlopen_self_static=unknown
11361 else
11362   lt_cv_dlopen=no
11363   lt_cv_dlopen_libs=
11364
11365   case $host_os in
11366   beos*)
11367     lt_cv_dlopen="load_add_on"
11368     lt_cv_dlopen_libs=
11369     lt_cv_dlopen_self=yes
11370     ;;
11371
11372   mingw* | pw32*)
11373     lt_cv_dlopen="LoadLibrary"
11374     lt_cv_dlopen_libs=
11375    ;;
11376
11377   cygwin*)
11378     lt_cv_dlopen="dlopen"
11379     lt_cv_dlopen_libs=
11380    ;;
11381
11382   darwin*)
11383   # if libdl is installed we need to link against it
11384     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11385 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11386 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11387   echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389   ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-ldl  $LIBS"
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397
11398 /* Override any GCC internal prototype to avoid an error.
11399    Use char because int might match the return type of a GCC
11400    builtin and then its argument prototype would still apply.  */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 char dlopen ();
11405 int
11406 main ()
11407 {
11408 return dlopen ();
11409   ;
11410   return 0;
11411 }
11412 _ACEOF
11413 rm -f conftest.$ac_objext conftest$ac_exeext
11414 if { (ac_try="$ac_link"
11415 case "(($ac_try" in
11416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417   *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420   (eval "$ac_link") 2>conftest.er1
11421   ac_status=$?
11422   grep -v '^ *+' conftest.er1 >conftest.err
11423   rm -f conftest.er1
11424   cat conftest.err >&5
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); } && {
11427          test -z "$ac_c_werror_flag" ||
11428          test ! -s conftest.err
11429        } && test -s conftest$ac_exeext &&
11430        $as_test_x conftest$ac_exeext; then
11431   ac_cv_lib_dl_dlopen=yes
11432 else
11433   echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436         ac_cv_lib_dl_dlopen=no
11437 fi
11438
11439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11440       conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11442 fi
11443 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11444 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11445 if test $ac_cv_lib_dl_dlopen = yes; then
11446   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11447 else
11448   
11449     lt_cv_dlopen="dyld"
11450     lt_cv_dlopen_libs=
11451     lt_cv_dlopen_self=yes
11452     
11453 fi
11454
11455    ;;
11456
11457   *)
11458     { echo "$as_me:$LINENO: checking for shl_load" >&5
11459 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11460 if test "${ac_cv_func_shl_load+set}" = set; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463   cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11471 #define shl_load innocuous_shl_load
11472
11473 /* System header to define __stub macros and hopefully few prototypes,
11474     which can conflict with char shl_load (); below.
11475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11476     <limits.h> exists even on freestanding compilers.  */
11477
11478 #ifdef __STDC__
11479 # include <limits.h>
11480 #else
11481 # include <assert.h>
11482 #endif
11483
11484 #undef shl_load
11485
11486 /* Override any GCC internal prototype to avoid an error.
11487    Use char because int might match the return type of a GCC
11488    builtin and then its argument prototype would still apply.  */
11489 #ifdef __cplusplus
11490 extern "C"
11491 #endif
11492 char shl_load ();
11493 /* The GNU C library defines this for functions which it implements
11494     to always fail with ENOSYS.  Some functions are actually named
11495     something starting with __ and the normal name is an alias.  */
11496 #if defined __stub_shl_load || defined __stub___shl_load
11497 choke me
11498 #endif
11499
11500 int
11501 main ()
11502 {
11503 return shl_load ();
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (ac_try="$ac_link"
11510 case "(($ac_try" in
11511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512   *) ac_try_echo=$ac_try;;
11513 esac
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515   (eval "$ac_link") 2>conftest.er1
11516   ac_status=$?
11517   grep -v '^ *+' conftest.er1 >conftest.err
11518   rm -f conftest.er1
11519   cat conftest.err >&5
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); } && {
11522          test -z "$ac_c_werror_flag" ||
11523          test ! -s conftest.err
11524        } && test -s conftest$ac_exeext &&
11525        $as_test_x conftest$ac_exeext; then
11526   ac_cv_func_shl_load=yes
11527 else
11528   echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531         ac_cv_func_shl_load=no
11532 fi
11533
11534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11535       conftest$ac_exeext conftest.$ac_ext
11536 fi
11537 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11538 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11539 if test $ac_cv_func_shl_load = yes; then
11540   lt_cv_dlopen="shl_load"
11541 else
11542   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11543 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11544 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547   ac_check_lib_save_LIBS=$LIBS
11548 LIBS="-ldld  $LIBS"
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h.  */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h.  */
11555
11556 /* Override any GCC internal prototype to avoid an error.
11557    Use char because int might match the return type of a GCC
11558    builtin and then its argument prototype would still apply.  */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 char shl_load ();
11563 int
11564 main ()
11565 {
11566 return shl_load ();
11567   ;
11568   return 0;
11569 }
11570 _ACEOF
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (ac_try="$ac_link"
11573 case "(($ac_try" in
11574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575   *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578   (eval "$ac_link") 2>conftest.er1
11579   ac_status=$?
11580   grep -v '^ *+' conftest.er1 >conftest.err
11581   rm -f conftest.er1
11582   cat conftest.err >&5
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); } && {
11585          test -z "$ac_c_werror_flag" ||
11586          test ! -s conftest.err
11587        } && test -s conftest$ac_exeext &&
11588        $as_test_x conftest$ac_exeext; then
11589   ac_cv_lib_dld_shl_load=yes
11590 else
11591   echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594         ac_cv_lib_dld_shl_load=no
11595 fi
11596
11597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11598       conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11602 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11603 if test $ac_cv_lib_dld_shl_load = yes; then
11604   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11605 else
11606   { echo "$as_me:$LINENO: checking for dlopen" >&5
11607 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11608 if test "${ac_cv_func_dlopen+set}" = set; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   cat >conftest.$ac_ext <<_ACEOF
11612 /* confdefs.h.  */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h.  */
11617 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11619 #define dlopen innocuous_dlopen
11620
11621 /* System header to define __stub macros and hopefully few prototypes,
11622     which can conflict with char dlopen (); below.
11623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11624     <limits.h> exists even on freestanding compilers.  */
11625
11626 #ifdef __STDC__
11627 # include <limits.h>
11628 #else
11629 # include <assert.h>
11630 #endif
11631
11632 #undef dlopen
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635    Use char because int might match the return type of a GCC
11636    builtin and then its argument prototype would still apply.  */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char dlopen ();
11641 /* The GNU C library defines this for functions which it implements
11642     to always fail with ENOSYS.  Some functions are actually named
11643     something starting with __ and the normal name is an alias.  */
11644 #if defined __stub_dlopen || defined __stub___dlopen
11645 choke me
11646 #endif
11647
11648 int
11649 main ()
11650 {
11651 return dlopen ();
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (ac_try="$ac_link"
11658 case "(($ac_try" in
11659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660   *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663   (eval "$ac_link") 2>conftest.er1
11664   ac_status=$?
11665   grep -v '^ *+' conftest.er1 >conftest.err
11666   rm -f conftest.er1
11667   cat conftest.err >&5
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); } && {
11670          test -z "$ac_c_werror_flag" ||
11671          test ! -s conftest.err
11672        } && test -s conftest$ac_exeext &&
11673        $as_test_x conftest$ac_exeext; then
11674   ac_cv_func_dlopen=yes
11675 else
11676   echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679         ac_cv_func_dlopen=no
11680 fi
11681
11682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11683       conftest$ac_exeext conftest.$ac_ext
11684 fi
11685 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11686 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11687 if test $ac_cv_func_dlopen = yes; then
11688   lt_cv_dlopen="dlopen"
11689 else
11690   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-ldl  $LIBS"
11697 cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h.  */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h.  */
11703
11704 /* Override any GCC internal prototype to avoid an error.
11705    Use char because int might match the return type of a GCC
11706    builtin and then its argument prototype would still apply.  */
11707 #ifdef __cplusplus
11708 extern "C"
11709 #endif
11710 char dlopen ();
11711 int
11712 main ()
11713 {
11714 return dlopen ();
11715   ;
11716   return 0;
11717 }
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (ac_try="$ac_link"
11721 case "(($ac_try" in
11722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723   *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726   (eval "$ac_link") 2>conftest.er1
11727   ac_status=$?
11728   grep -v '^ *+' conftest.er1 >conftest.err
11729   rm -f conftest.er1
11730   cat conftest.err >&5
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); } && {
11733          test -z "$ac_c_werror_flag" ||
11734          test ! -s conftest.err
11735        } && test -s conftest$ac_exeext &&
11736        $as_test_x conftest$ac_exeext; then
11737   ac_cv_lib_dl_dlopen=yes
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742         ac_cv_lib_dl_dlopen=no
11743 fi
11744
11745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11746       conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11750 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11751 if test $ac_cv_lib_dl_dlopen = yes; then
11752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11753 else
11754   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11755 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11756 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-lsvld  $LIBS"
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767
11768 /* Override any GCC internal prototype to avoid an error.
11769    Use char because int might match the return type of a GCC
11770    builtin and then its argument prototype would still apply.  */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char dlopen ();
11775 int
11776 main ()
11777 {
11778 return dlopen ();
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (ac_try="$ac_link"
11785 case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790   (eval "$ac_link") 2>conftest.er1
11791   ac_status=$?
11792   grep -v '^ *+' conftest.er1 >conftest.err
11793   rm -f conftest.er1
11794   cat conftest.err >&5
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); } && {
11797          test -z "$ac_c_werror_flag" ||
11798          test ! -s conftest.err
11799        } && test -s conftest$ac_exeext &&
11800        $as_test_x conftest$ac_exeext; then
11801   ac_cv_lib_svld_dlopen=yes
11802 else
11803   echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806         ac_cv_lib_svld_dlopen=no
11807 fi
11808
11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810       conftest$ac_exeext conftest.$ac_ext
11811 LIBS=$ac_check_lib_save_LIBS
11812 fi
11813 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11814 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11815 if test $ac_cv_lib_svld_dlopen = yes; then
11816   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11817 else
11818   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11819 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11820 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11821   echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823   ac_check_lib_save_LIBS=$LIBS
11824 LIBS="-ldld  $LIBS"
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h.  */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h.  */
11831
11832 /* Override any GCC internal prototype to avoid an error.
11833    Use char because int might match the return type of a GCC
11834    builtin and then its argument prototype would still apply.  */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 char dld_link ();
11839 int
11840 main ()
11841 {
11842 return dld_link ();
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (ac_try="$ac_link"
11849 case "(($ac_try" in
11850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851   *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854   (eval "$ac_link") 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } && {
11861          test -z "$ac_c_werror_flag" ||
11862          test ! -s conftest.err
11863        } && test -s conftest$ac_exeext &&
11864        $as_test_x conftest$ac_exeext; then
11865   ac_cv_lib_dld_dld_link=yes
11866 else
11867   echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870         ac_cv_lib_dld_dld_link=no
11871 fi
11872
11873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11874       conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11876 fi
11877 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11878 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11879 if test $ac_cv_lib_dld_dld_link = yes; then
11880   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11881 fi
11882
11883               
11884 fi
11885
11886             
11887 fi
11888
11889           
11890 fi
11891
11892         
11893 fi
11894
11895       
11896 fi
11897
11898     ;;
11899   esac
11900
11901   if test "x$lt_cv_dlopen" != xno; then
11902     enable_dlopen=yes
11903   else
11904     enable_dlopen=no
11905   fi
11906
11907   case $lt_cv_dlopen in
11908   dlopen)
11909     save_CPPFLAGS="$CPPFLAGS"
11910     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11911
11912     save_LDFLAGS="$LDFLAGS"
11913     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11914
11915     save_LIBS="$LIBS"
11916     LIBS="$lt_cv_dlopen_libs $LIBS"
11917
11918     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11919 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11920 if test "${lt_cv_dlopen_self+set}" = set; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923           if test "$cross_compiling" = yes; then :
11924   lt_cv_dlopen_self=cross
11925 else
11926   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11927   lt_status=$lt_dlunknown
11928   cat > conftest.$ac_ext <<EOF
11929 #line __oline__ "configure"
11930 #include "confdefs.h"
11931
11932 #if HAVE_DLFCN_H
11933 #include <dlfcn.h>
11934 #endif
11935
11936 #include <stdio.h>
11937
11938 #ifdef RTLD_GLOBAL
11939 #  define LT_DLGLOBAL           RTLD_GLOBAL
11940 #else
11941 #  ifdef DL_GLOBAL
11942 #    define LT_DLGLOBAL         DL_GLOBAL
11943 #  else
11944 #    define LT_DLGLOBAL         0
11945 #  endif
11946 #endif
11947
11948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11949    find out it does not work in some platform. */
11950 #ifndef LT_DLLAZY_OR_NOW
11951 #  ifdef RTLD_LAZY
11952 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11953 #  else
11954 #    ifdef DL_LAZY
11955 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11956 #    else
11957 #      ifdef RTLD_NOW
11958 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11959 #      else
11960 #        ifdef DL_NOW
11961 #          define LT_DLLAZY_OR_NOW      DL_NOW
11962 #        else
11963 #          define LT_DLLAZY_OR_NOW      0
11964 #        endif
11965 #      endif
11966 #    endif
11967 #  endif
11968 #endif
11969
11970 #ifdef __cplusplus
11971 extern "C" void exit (int);
11972 #endif
11973
11974 void fnord() { int i=42;}
11975 int main ()
11976 {
11977   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11978   int status = $lt_dlunknown;
11979
11980   if (self)
11981     {
11982       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11983       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11984       /* dlclose (self); */
11985     }
11986   else
11987     puts (dlerror ());
11988
11989     exit (status);
11990 }
11991 EOF
11992   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993   (eval $ac_link) 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11997     (./conftest; exit; ) >&5 2>/dev/null
11998     lt_status=$?
11999     case x$lt_status in
12000       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12001       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12002       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12003     esac
12004   else :
12005     # compilation failed
12006     lt_cv_dlopen_self=no
12007   fi
12008 fi
12009 rm -fr conftest*
12010
12011     
12012 fi
12013 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12014 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12015
12016     if test "x$lt_cv_dlopen_self" = xyes; then
12017       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12018       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12019 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12020 if test "${lt_cv_dlopen_self_static+set}" = set; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023           if test "$cross_compiling" = yes; then :
12024   lt_cv_dlopen_self_static=cross
12025 else
12026   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12027   lt_status=$lt_dlunknown
12028   cat > conftest.$ac_ext <<EOF
12029 #line __oline__ "configure"
12030 #include "confdefs.h"
12031
12032 #if HAVE_DLFCN_H
12033 #include <dlfcn.h>
12034 #endif
12035
12036 #include <stdio.h>
12037
12038 #ifdef RTLD_GLOBAL
12039 #  define LT_DLGLOBAL           RTLD_GLOBAL
12040 #else
12041 #  ifdef DL_GLOBAL
12042 #    define LT_DLGLOBAL         DL_GLOBAL
12043 #  else
12044 #    define LT_DLGLOBAL         0
12045 #  endif
12046 #endif
12047
12048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12049    find out it does not work in some platform. */
12050 #ifndef LT_DLLAZY_OR_NOW
12051 #  ifdef RTLD_LAZY
12052 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12053 #  else
12054 #    ifdef DL_LAZY
12055 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12056 #    else
12057 #      ifdef RTLD_NOW
12058 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12059 #      else
12060 #        ifdef DL_NOW
12061 #          define LT_DLLAZY_OR_NOW      DL_NOW
12062 #        else
12063 #          define LT_DLLAZY_OR_NOW      0
12064 #        endif
12065 #      endif
12066 #    endif
12067 #  endif
12068 #endif
12069
12070 #ifdef __cplusplus
12071 extern "C" void exit (int);
12072 #endif
12073
12074 void fnord() { int i=42;}
12075 int main ()
12076 {
12077   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12078   int status = $lt_dlunknown;
12079
12080   if (self)
12081     {
12082       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12083       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12084       /* dlclose (self); */
12085     }
12086   else
12087     puts (dlerror ());
12088
12089     exit (status);
12090 }
12091 EOF
12092   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093   (eval $ac_link) 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12097     (./conftest; exit; ) >&5 2>/dev/null
12098     lt_status=$?
12099     case x$lt_status in
12100       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12101       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12102       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12103     esac
12104   else :
12105     # compilation failed
12106     lt_cv_dlopen_self_static=no
12107   fi
12108 fi
12109 rm -fr conftest*
12110
12111       
12112 fi
12113 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12114 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12115     fi
12116
12117     CPPFLAGS="$save_CPPFLAGS"
12118     LDFLAGS="$save_LDFLAGS"
12119     LIBS="$save_LIBS"
12120     ;;
12121   esac
12122
12123   case $lt_cv_dlopen_self in
12124   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12125   *) enable_dlopen_self=unknown ;;
12126   esac
12127
12128   case $lt_cv_dlopen_self_static in
12129   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12130   *) enable_dlopen_self_static=unknown ;;
12131   esac
12132 fi
12133
12134
12135 # Report which library types will actually be built
12136 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12137 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12138 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12139 echo "${ECHO_T}$can_build_shared" >&6; }
12140
12141 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12142 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12143 test "$can_build_shared" = "no" && enable_shared=no
12144
12145 # On AIX, shared libraries and static libraries use the same namespace, and
12146 # are all built from PIC.
12147 case $host_os in
12148 aix3*)
12149   test "$enable_shared" = yes && enable_static=no
12150   if test -n "$RANLIB"; then
12151     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12152     postinstall_cmds='$RANLIB $lib'
12153   fi
12154   ;;
12155
12156 aix[4-9]*)
12157   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12158     test "$enable_shared" = yes && enable_static=no
12159   fi
12160     ;;
12161 esac
12162 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12163 echo "${ECHO_T}$enable_shared" >&6; }
12164
12165 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12166 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12167 # Make sure either enable_shared or enable_static is yes.
12168 test "$enable_shared" = yes || enable_static=yes
12169 { echo "$as_me:$LINENO: result: $enable_static" >&5
12170 echo "${ECHO_T}$enable_static" >&6; }
12171
12172 # The else clause should only fire when bootstrapping the
12173 # libtool distribution, otherwise you forgot to ship ltmain.sh
12174 # with your package, and you will get complaints that there are
12175 # no rules to generate ltmain.sh.
12176 if test -f "$ltmain"; then
12177   # See if we are running on zsh, and set the options which allow our commands through
12178   # without removal of \ escapes.
12179   if test -n "${ZSH_VERSION+set}" ; then
12180     setopt NO_GLOB_SUBST
12181   fi
12182   # Now quote all the things that may contain metacharacters while being
12183   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12184   # variables and quote the copies for generation of the libtool script.
12185   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12186     SED SHELL STRIP \
12187     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12188     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12189     deplibs_check_method reload_flag reload_cmds need_locks \
12190     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12191     lt_cv_sys_global_symbol_to_c_name_address \
12192     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12193     old_postinstall_cmds old_postuninstall_cmds \
12194     compiler \
12195     CC \
12196     LD \
12197     lt_prog_compiler_wl \
12198     lt_prog_compiler_pic \
12199     lt_prog_compiler_static \
12200     lt_prog_compiler_no_builtin_flag \
12201     export_dynamic_flag_spec \
12202     thread_safe_flag_spec \
12203     whole_archive_flag_spec \
12204     enable_shared_with_static_runtimes \
12205     old_archive_cmds \
12206     old_archive_from_new_cmds \
12207     predep_objects \
12208     postdep_objects \
12209     predeps \
12210     postdeps \
12211     compiler_lib_search_path \
12212     compiler_lib_search_dirs \
12213     archive_cmds \
12214     archive_expsym_cmds \
12215     postinstall_cmds \
12216     postuninstall_cmds \
12217     old_archive_from_expsyms_cmds \
12218     allow_undefined_flag \
12219     no_undefined_flag \
12220     export_symbols_cmds \
12221     hardcode_libdir_flag_spec \
12222     hardcode_libdir_flag_spec_ld \
12223     hardcode_libdir_separator \
12224     hardcode_automatic \
12225     module_cmds \
12226     module_expsym_cmds \
12227     lt_cv_prog_compiler_c_o \
12228     fix_srcfile_path \
12229     exclude_expsyms \
12230     include_expsyms; do
12231
12232     case $var in
12233     old_archive_cmds | \
12234     old_archive_from_new_cmds | \
12235     archive_cmds | \
12236     archive_expsym_cmds | \
12237     module_cmds | \
12238     module_expsym_cmds | \
12239     old_archive_from_expsyms_cmds | \
12240     export_symbols_cmds | \
12241     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12242     postinstall_cmds | postuninstall_cmds | \
12243     old_postinstall_cmds | old_postuninstall_cmds | \
12244     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12245       # Double-quote double-evaled strings.
12246       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12247       ;;
12248     *)
12249       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12250       ;;
12251     esac
12252   done
12253
12254   case $lt_echo in
12255   *'\$0 --fallback-echo"')
12256     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12257     ;;
12258   esac
12259
12260 cfgfile="${ofile}T"
12261   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12262   $rm -f "$cfgfile"
12263   { echo "$as_me:$LINENO: creating $ofile" >&5
12264 echo "$as_me: creating $ofile" >&6;}
12265
12266   cat <<__EOF__ >> "$cfgfile"
12267 #! $SHELL
12268
12269 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12270 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12271 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12272 #
12273 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12274 # Free Software Foundation, Inc.
12275 #
12276 # This file is part of GNU Libtool:
12277 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12278 #
12279 # This program is free software; you can redistribute it and/or modify
12280 # it under the terms of the GNU General Public License as published by
12281 # the Free Software Foundation; either version 2 of the License, or
12282 # (at your option) any later version.
12283 #
12284 # This program is distributed in the hope that it will be useful, but
12285 # WITHOUT ANY WARRANTY; without even the implied warranty of
12286 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12287 # General Public License for more details.
12288 #
12289 # You should have received a copy of the GNU General Public License
12290 # along with this program; if not, write to the Free Software
12291 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12292 #
12293 # As a special exception to the GNU General Public License, if you
12294 # distribute this file as part of a program that contains a
12295 # configuration script generated by Autoconf, you may include it under
12296 # the same distribution terms that you use for the rest of that program.
12297
12298 # A sed program that does not truncate output.
12299 SED=$lt_SED
12300
12301 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12302 Xsed="$SED -e 1s/^X//"
12303
12304 # The HP-UX ksh and POSIX shell print the target directory to stdout
12305 # if CDPATH is set.
12306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12307
12308 # The names of the tagged configurations supported by this script.
12309 available_tags=
12310
12311 # ### BEGIN LIBTOOL CONFIG
12312
12313 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12314
12315 # Shell to use when invoking shell scripts.
12316 SHELL=$lt_SHELL
12317
12318 # Whether or not to build shared libraries.
12319 build_libtool_libs=$enable_shared
12320
12321 # Whether or not to build static libraries.
12322 build_old_libs=$enable_static
12323
12324 # Whether or not to add -lc for building shared libraries.
12325 build_libtool_need_lc=$archive_cmds_need_lc
12326
12327 # Whether or not to disallow shared libs when runtime libs are static
12328 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12329
12330 # Whether or not to optimize for fast installation.
12331 fast_install=$enable_fast_install
12332
12333 # The host system.
12334 host_alias=$host_alias
12335 host=$host
12336 host_os=$host_os
12337
12338 # The build system.
12339 build_alias=$build_alias
12340 build=$build
12341 build_os=$build_os
12342
12343 # An echo program that does not interpret backslashes.
12344 echo=$lt_echo
12345
12346 # The archiver.
12347 AR=$lt_AR
12348 AR_FLAGS=$lt_AR_FLAGS
12349
12350 # A C compiler.
12351 LTCC=$lt_LTCC
12352
12353 # LTCC compiler flags.
12354 LTCFLAGS=$lt_LTCFLAGS
12355
12356 # A language-specific compiler.
12357 CC=$lt_compiler
12358
12359 # Is the compiler the GNU C compiler?
12360 with_gcc=$GCC
12361
12362 # An ERE matcher.
12363 EGREP=$lt_EGREP
12364
12365 # The linker used to build libraries.
12366 LD=$lt_LD
12367
12368 # Whether we need hard or soft links.
12369 LN_S=$lt_LN_S
12370
12371 # A BSD-compatible nm program.
12372 NM=$lt_NM
12373
12374 # A symbol stripping program
12375 STRIP=$lt_STRIP
12376
12377 # Used to examine libraries when file_magic_cmd begins "file"
12378 MAGIC_CMD=$MAGIC_CMD
12379
12380 # Used on cygwin: DLL creation program.
12381 DLLTOOL="$DLLTOOL"
12382
12383 # Used on cygwin: object dumper.
12384 OBJDUMP="$OBJDUMP"
12385
12386 # Used on cygwin: assembler.
12387 AS="$AS"
12388
12389 # The name of the directory that contains temporary libtool files.
12390 objdir=$objdir
12391
12392 # How to create reloadable object files.
12393 reload_flag=$lt_reload_flag
12394 reload_cmds=$lt_reload_cmds
12395
12396 # How to pass a linker flag through the compiler.
12397 wl=$lt_lt_prog_compiler_wl
12398
12399 # Object file suffix (normally "o").
12400 objext="$ac_objext"
12401
12402 # Old archive suffix (normally "a").
12403 libext="$libext"
12404
12405 # Shared library suffix (normally ".so").
12406 shrext_cmds='$shrext_cmds'
12407
12408 # Executable file suffix (normally "").
12409 exeext="$exeext"
12410
12411 # Additional compiler flags for building library objects.
12412 pic_flag=$lt_lt_prog_compiler_pic
12413 pic_mode=$pic_mode
12414
12415 # What is the maximum length of a command?
12416 max_cmd_len=$lt_cv_sys_max_cmd_len
12417
12418 # Does compiler simultaneously support -c and -o options?
12419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12420
12421 # Must we lock files when doing compilation?
12422 need_locks=$lt_need_locks
12423
12424 # Do we need the lib prefix for modules?
12425 need_lib_prefix=$need_lib_prefix
12426
12427 # Do we need a version for libraries?
12428 need_version=$need_version
12429
12430 # Whether dlopen is supported.
12431 dlopen_support=$enable_dlopen
12432
12433 # Whether dlopen of programs is supported.
12434 dlopen_self=$enable_dlopen_self
12435
12436 # Whether dlopen of statically linked programs is supported.
12437 dlopen_self_static=$enable_dlopen_self_static
12438
12439 # Compiler flag to prevent dynamic linking.
12440 link_static_flag=$lt_lt_prog_compiler_static
12441
12442 # Compiler flag to turn off builtin functions.
12443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12444
12445 # Compiler flag to allow reflexive dlopens.
12446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12447
12448 # Compiler flag to generate shared objects directly from archives.
12449 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12450
12451 # Compiler flag to generate thread-safe objects.
12452 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12453
12454 # Library versioning type.
12455 version_type=$version_type
12456
12457 # Format of library name prefix.
12458 libname_spec=$lt_libname_spec
12459
12460 # List of archive names.  First name is the real one, the rest are links.
12461 # The last name is the one that the linker finds with -lNAME.
12462 library_names_spec=$lt_library_names_spec
12463
12464 # The coded name of the library, if different from the real name.
12465 soname_spec=$lt_soname_spec
12466
12467 # Commands used to build and install an old-style archive.
12468 RANLIB=$lt_RANLIB
12469 old_archive_cmds=$lt_old_archive_cmds
12470 old_postinstall_cmds=$lt_old_postinstall_cmds
12471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12472
12473 # Create an old-style archive from a shared archive.
12474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12475
12476 # Create a temporary old-style archive to link instead of a shared archive.
12477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12478
12479 # Commands used to build and install a shared archive.
12480 archive_cmds=$lt_archive_cmds
12481 archive_expsym_cmds=$lt_archive_expsym_cmds
12482 postinstall_cmds=$lt_postinstall_cmds
12483 postuninstall_cmds=$lt_postuninstall_cmds
12484
12485 # Commands used to build a loadable module (assumed same as above if empty)
12486 module_cmds=$lt_module_cmds
12487 module_expsym_cmds=$lt_module_expsym_cmds
12488
12489 # Commands to strip libraries.
12490 old_striplib=$lt_old_striplib
12491 striplib=$lt_striplib
12492
12493 # Dependencies to place before the objects being linked to create a
12494 # shared library.
12495 predep_objects=$lt_predep_objects
12496
12497 # Dependencies to place after the objects being linked to create a
12498 # shared library.
12499 postdep_objects=$lt_postdep_objects
12500
12501 # Dependencies to place before the objects being linked to create a
12502 # shared library.
12503 predeps=$lt_predeps
12504
12505 # Dependencies to place after the objects being linked to create a
12506 # shared library.
12507 postdeps=$lt_postdeps
12508
12509 # The directories searched by this compiler when creating a shared
12510 # library
12511 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12512
12513 # The library search path used internally by the compiler when linking
12514 # a shared library.
12515 compiler_lib_search_path=$lt_compiler_lib_search_path
12516
12517 # Method to check whether dependent libraries are shared objects.
12518 deplibs_check_method=$lt_deplibs_check_method
12519
12520 # Command to use when deplibs_check_method == file_magic.
12521 file_magic_cmd=$lt_file_magic_cmd
12522
12523 # Flag that allows shared libraries with undefined symbols to be built.
12524 allow_undefined_flag=$lt_allow_undefined_flag
12525
12526 # Flag that forces no undefined symbols.
12527 no_undefined_flag=$lt_no_undefined_flag
12528
12529 # Commands used to finish a libtool library installation in a directory.
12530 finish_cmds=$lt_finish_cmds
12531
12532 # Same as above, but a single script fragment to be evaled but not shown.
12533 finish_eval=$lt_finish_eval
12534
12535 # Take the output of nm and produce a listing of raw symbols and C names.
12536 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12537
12538 # Transform the output of nm in a proper C declaration
12539 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12540
12541 # Transform the output of nm in a C name address pair
12542 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12543
12544 # This is the shared library runtime path variable.
12545 runpath_var=$runpath_var
12546
12547 # This is the shared library path variable.
12548 shlibpath_var=$shlibpath_var
12549
12550 # Is shlibpath searched before the hard-coded library search path?
12551 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12552
12553 # How to hardcode a shared library path into an executable.
12554 hardcode_action=$hardcode_action
12555
12556 # Whether we should hardcode library paths into libraries.
12557 hardcode_into_libs=$hardcode_into_libs
12558
12559 # Flag to hardcode \$libdir into a binary during linking.
12560 # This must work even if \$libdir does not exist.
12561 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12562
12563 # If ld is used when linking, flag to hardcode \$libdir into
12564 # a binary during linking. This must work even if \$libdir does
12565 # not exist.
12566 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12567
12568 # Whether we need a single -rpath flag with a separated argument.
12569 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12570
12571 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12572 # resulting binary.
12573 hardcode_direct=$hardcode_direct
12574
12575 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12576 # resulting binary.
12577 hardcode_minus_L=$hardcode_minus_L
12578
12579 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12580 # the resulting binary.
12581 hardcode_shlibpath_var=$hardcode_shlibpath_var
12582
12583 # Set to yes if building a shared library automatically hardcodes DIR into the library
12584 # and all subsequent libraries and executables linked against it.
12585 hardcode_automatic=$hardcode_automatic
12586
12587 # Variables whose values should be saved in libtool wrapper scripts and
12588 # restored at relink time.
12589 variables_saved_for_relink="$variables_saved_for_relink"
12590
12591 # Whether libtool must link a program against all its dependency libraries.
12592 link_all_deplibs=$link_all_deplibs
12593
12594 # Compile-time system search path for libraries
12595 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12596
12597 # Run-time system search path for libraries
12598 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12599
12600 # Fix the shell variable \$srcfile for the compiler.
12601 fix_srcfile_path=$lt_fix_srcfile_path
12602
12603 # Set to yes if exported symbols are required.
12604 always_export_symbols=$always_export_symbols
12605
12606 # The commands to list exported symbols.
12607 export_symbols_cmds=$lt_export_symbols_cmds
12608
12609 # The commands to extract the exported symbol list from a shared archive.
12610 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12611
12612 # Symbols that should not be listed in the preloaded symbols.
12613 exclude_expsyms=$lt_exclude_expsyms
12614
12615 # Symbols that must always be exported.
12616 include_expsyms=$lt_include_expsyms
12617
12618 # ### END LIBTOOL CONFIG
12619
12620 __EOF__
12621
12622
12623   case $host_os in
12624   aix3*)
12625     cat <<\EOF >> "$cfgfile"
12626
12627 # AIX sometimes has problems with the GCC collect2 program.  For some
12628 # reason, if we set the COLLECT_NAMES environment variable, the problems
12629 # vanish in a puff of smoke.
12630 if test "X${COLLECT_NAMES+set}" != Xset; then
12631   COLLECT_NAMES=
12632   export COLLECT_NAMES
12633 fi
12634 EOF
12635     ;;
12636   esac
12637
12638   # We use sed instead of cat because bash on DJGPP gets confused if
12639   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12640   # text mode, it properly converts lines to CR/LF.  This bash problem
12641   # is reportedly fixed, but why not run on old versions too?
12642   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12643
12644   mv -f "$cfgfile" "$ofile" || \
12645     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12646   chmod +x "$ofile"
12647
12648 else
12649   # If there is no Makefile yet, we rely on a make rule to execute
12650   # `config.status --recheck' to rerun these tests and create the
12651   # libtool script then.
12652   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12653   if test -f "$ltmain_in"; then
12654     test -f Makefile && make "$ltmain"
12655   fi
12656 fi
12657
12658
12659 ac_ext=c
12660 ac_cpp='$CPP $CPPFLAGS'
12661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12664
12665 CC="$lt_save_CC"
12666
12667
12668 # Check whether --with-tags was given.
12669 if test "${with_tags+set}" = set; then
12670   withval=$with_tags; tagnames="$withval"
12671 fi
12672
12673
12674 if test -f "$ltmain" && test -n "$tagnames"; then
12675   if test ! -f "${ofile}"; then
12676     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12677 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12678   fi
12679
12680   if test -z "$LTCC"; then
12681     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12682     if test -z "$LTCC"; then
12683       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12684 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12685     else
12686       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12687 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12688     fi
12689   fi
12690   if test -z "$LTCFLAGS"; then
12691     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12692   fi
12693
12694   # Extract list of available tagged configurations in $ofile.
12695   # Note that this assumes the entire list is on one line.
12696   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12697
12698   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12699   for tagname in $tagnames; do
12700     IFS="$lt_save_ifs"
12701     # Check whether tagname contains only valid characters
12702     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12703     "") ;;
12704     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12705 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12706    { (exit 1); exit 1; }; }
12707         ;;
12708     esac
12709
12710     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12711     then
12712       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12713 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12714    { (exit 1); exit 1; }; }
12715     fi
12716
12717     # Update the list of available tags.
12718     if test -n "$tagname"; then
12719       echo appending configuration tag \"$tagname\" to $ofile
12720
12721       case $tagname in
12722       CXX)
12723         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12724             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12725             (test "X$CXX" != "Xg++"))) ; then
12726           ac_ext=cpp
12727 ac_cpp='$CXXCPP $CPPFLAGS'
12728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12731
12732
12733
12734
12735 archive_cmds_need_lc_CXX=no
12736 allow_undefined_flag_CXX=
12737 always_export_symbols_CXX=no
12738 archive_expsym_cmds_CXX=
12739 export_dynamic_flag_spec_CXX=
12740 hardcode_direct_CXX=no
12741 hardcode_libdir_flag_spec_CXX=
12742 hardcode_libdir_flag_spec_ld_CXX=
12743 hardcode_libdir_separator_CXX=
12744 hardcode_minus_L_CXX=no
12745 hardcode_shlibpath_var_CXX=unsupported
12746 hardcode_automatic_CXX=no
12747 module_cmds_CXX=
12748 module_expsym_cmds_CXX=
12749 link_all_deplibs_CXX=unknown
12750 old_archive_cmds_CXX=$old_archive_cmds
12751 no_undefined_flag_CXX=
12752 whole_archive_flag_spec_CXX=
12753 enable_shared_with_static_runtimes_CXX=no
12754
12755 # Dependencies to place before and after the object being linked:
12756 predep_objects_CXX=
12757 postdep_objects_CXX=
12758 predeps_CXX=
12759 postdeps_CXX=
12760 compiler_lib_search_path_CXX=
12761 compiler_lib_search_dirs_CXX=
12762
12763 # Source file extension for C++ test sources.
12764 ac_ext=cpp
12765
12766 # Object file extension for compiled C++ test sources.
12767 objext=o
12768 objext_CXX=$objext
12769
12770 # Code to be used in simple compile tests
12771 lt_simple_compile_test_code="int some_variable = 0;"
12772
12773 # Code to be used in simple link tests
12774 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12775
12776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12777
12778 # If no C compiler was specified, use CC.
12779 LTCC=${LTCC-"$CC"}
12780
12781 # If no C compiler flags were specified, use CFLAGS.
12782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12783
12784 # Allow CC to be a program name with arguments.
12785 compiler=$CC
12786
12787
12788 # save warnings/boilerplate of simple test code
12789 ac_outfile=conftest.$ac_objext
12790 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12792 _lt_compiler_boilerplate=`cat conftest.err`
12793 $rm conftest*
12794
12795 ac_outfile=conftest.$ac_objext
12796 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12798 _lt_linker_boilerplate=`cat conftest.err`
12799 $rm -r conftest*
12800
12801
12802 # Allow CC to be a program name with arguments.
12803 lt_save_CC=$CC
12804 lt_save_LD=$LD
12805 lt_save_GCC=$GCC
12806 GCC=$GXX
12807 lt_save_with_gnu_ld=$with_gnu_ld
12808 lt_save_path_LD=$lt_cv_path_LD
12809 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12810   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12811 else
12812   $as_unset lt_cv_prog_gnu_ld
12813 fi
12814 if test -n "${lt_cv_path_LDCXX+set}"; then
12815   lt_cv_path_LD=$lt_cv_path_LDCXX
12816 else
12817   $as_unset lt_cv_path_LD
12818 fi
12819 test -z "${LDCXX+set}" || LD=$LDCXX
12820 CC=${CXX-"c++"}
12821 compiler=$CC
12822 compiler_CXX=$CC
12823 for cc_temp in $compiler""; do
12824   case $cc_temp in
12825     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12826     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12827     \-*) ;;
12828     *) break;;
12829   esac
12830 done
12831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12832
12833
12834 # We don't want -fno-exception wen compiling C++ code, so set the
12835 # no_builtin_flag separately
12836 if test "$GXX" = yes; then
12837   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12838 else
12839   lt_prog_compiler_no_builtin_flag_CXX=
12840 fi
12841
12842 if test "$GXX" = yes; then
12843   # Set up default GNU C++ configuration
12844
12845   
12846 # Check whether --with-gnu-ld was given.
12847 if test "${with_gnu_ld+set}" = set; then
12848   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12849 else
12850   with_gnu_ld=no
12851 fi
12852
12853 ac_prog=ld
12854 if test "$GCC" = yes; then
12855   # Check if gcc -print-prog-name=ld gives a path.
12856   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12857 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12858   case $host in
12859   *-*-mingw*)
12860     # gcc leaves a trailing carriage return which upsets mingw
12861     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12862   *)
12863     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12864   esac
12865   case $ac_prog in
12866     # Accept absolute paths.
12867     [\\/]* | ?:[\\/]*)
12868       re_direlt='/[^/][^/]*/\.\./'
12869       # Canonicalize the pathname of ld
12870       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12871       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12872         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12873       done
12874       test -z "$LD" && LD="$ac_prog"
12875       ;;
12876   "")
12877     # If it fails, then pretend we aren't using GCC.
12878     ac_prog=ld
12879     ;;
12880   *)
12881     # If it is relative, then search for the first ld in PATH.
12882     with_gnu_ld=unknown
12883     ;;
12884   esac
12885 elif test "$with_gnu_ld" = yes; then
12886   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12887 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12888 else
12889   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12890 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12891 fi
12892 if test "${lt_cv_path_LD+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   if test -z "$LD"; then
12896   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12897   for ac_dir in $PATH; do
12898     IFS="$lt_save_ifs"
12899     test -z "$ac_dir" && ac_dir=.
12900     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12901       lt_cv_path_LD="$ac_dir/$ac_prog"
12902       # Check to see if the program is GNU ld.  I'd rather use --version,
12903       # but apparently some variants of GNU ld only accept -v.
12904       # Break only if it was the GNU/non-GNU ld that we prefer.
12905       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12906       *GNU* | *'with BFD'*)
12907         test "$with_gnu_ld" != no && break
12908         ;;
12909       *)
12910         test "$with_gnu_ld" != yes && break
12911         ;;
12912       esac
12913     fi
12914   done
12915   IFS="$lt_save_ifs"
12916 else
12917   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12918 fi
12919 fi
12920
12921 LD="$lt_cv_path_LD"
12922 if test -n "$LD"; then
12923   { echo "$as_me:$LINENO: result: $LD" >&5
12924 echo "${ECHO_T}$LD" >&6; }
12925 else
12926   { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12928 fi
12929 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12930 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12931    { (exit 1); exit 1; }; }
12932 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12933 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12934 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12935   echo $ECHO_N "(cached) $ECHO_C" >&6
12936 else
12937   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12938 case `$LD -v 2>&1 </dev/null` in
12939 *GNU* | *'with BFD'*)
12940   lt_cv_prog_gnu_ld=yes
12941   ;;
12942 *)
12943   lt_cv_prog_gnu_ld=no
12944   ;;
12945 esac
12946 fi
12947 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12948 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12949 with_gnu_ld=$lt_cv_prog_gnu_ld
12950
12951
12952
12953   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12954   # archiving commands below assume that GNU ld is being used.
12955   if test "$with_gnu_ld" = yes; then
12956     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12957     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'
12958
12959     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12960     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12961
12962     # If archive_cmds runs LD, not CC, wlarc should be empty
12963     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12964     #     investigate it a little bit more. (MM)
12965     wlarc='${wl}'
12966
12967     # ancient GNU ld didn't support --whole-archive et. al.
12968     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12969         grep 'no-whole-archive' > /dev/null; then
12970       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12971     else
12972       whole_archive_flag_spec_CXX=
12973     fi
12974   else
12975     with_gnu_ld=no
12976     wlarc=
12977
12978     # A generic and very simple default shared library creation
12979     # command for GNU C++ for the case where it uses the native
12980     # linker, instead of GNU ld.  If possible, this setting should
12981     # overridden to take advantage of the native linker features on
12982     # the platform it is being used on.
12983     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12984   fi
12985
12986   # Commands to make compiler produce verbose output that lists
12987   # what "hidden" libraries, object files and flags are used when
12988   # linking a shared library.
12989   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12990
12991 else
12992   GXX=no
12993   with_gnu_ld=no
12994   wlarc=
12995 fi
12996
12997 # PORTME: fill in a description of your system's C++ link characteristics
12998 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13000 ld_shlibs_CXX=yes
13001 case $host_os in
13002   aix3*)
13003     # FIXME: insert proper C++ library support
13004     ld_shlibs_CXX=no
13005     ;;
13006   aix[4-9]*)
13007     if test "$host_cpu" = ia64; then
13008       # On IA64, the linker does run time linking by default, so we don't
13009       # have to do anything special.
13010       aix_use_runtimelinking=no
13011       exp_sym_flag='-Bexport'
13012       no_entry_flag=""
13013     else
13014       aix_use_runtimelinking=no
13015
13016       # Test if we are trying to use run time linking or normal
13017       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13018       # need to do runtime linking.
13019       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13020         for ld_flag in $LDFLAGS; do
13021           case $ld_flag in
13022           *-brtl*)
13023             aix_use_runtimelinking=yes
13024             break
13025             ;;
13026           esac
13027         done
13028         ;;
13029       esac
13030
13031       exp_sym_flag='-bexport'
13032       no_entry_flag='-bnoentry'
13033     fi
13034
13035     # When large executables or shared objects are built, AIX ld can
13036     # have problems creating the table of contents.  If linking a library
13037     # or program results in "error TOC overflow" add -mminimal-toc to
13038     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13039     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13040
13041     archive_cmds_CXX=''
13042     hardcode_direct_CXX=yes
13043     hardcode_libdir_separator_CXX=':'
13044     link_all_deplibs_CXX=yes
13045
13046     if test "$GXX" = yes; then
13047       case $host_os in aix4.[012]|aix4.[012].*)
13048       # We only want to do this on AIX 4.2 and lower, the check
13049       # below for broken collect2 doesn't work under 4.3+
13050         collect2name=`${CC} -print-prog-name=collect2`
13051         if test -f "$collect2name" && \
13052            strings "$collect2name" | grep resolve_lib_name >/dev/null
13053         then
13054           # We have reworked collect2
13055           :
13056         else
13057           # We have old collect2
13058           hardcode_direct_CXX=unsupported
13059           # It fails to find uninstalled libraries when the uninstalled
13060           # path is not listed in the libpath.  Setting hardcode_minus_L
13061           # to unsupported forces relinking
13062           hardcode_minus_L_CXX=yes
13063           hardcode_libdir_flag_spec_CXX='-L$libdir'
13064           hardcode_libdir_separator_CXX=
13065         fi
13066         ;;
13067       esac
13068       shared_flag='-shared'
13069       if test "$aix_use_runtimelinking" = yes; then
13070         shared_flag="$shared_flag "'${wl}-G'
13071       fi
13072     else
13073       # not using gcc
13074       if test "$host_cpu" = ia64; then
13075         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13076         # chokes on -Wl,-G. The following line is correct:
13077         shared_flag='-G'
13078       else
13079         if test "$aix_use_runtimelinking" = yes; then
13080           shared_flag='${wl}-G'
13081         else
13082           shared_flag='${wl}-bM:SRE'
13083         fi
13084       fi
13085     fi
13086
13087     # It seems that -bexpall does not export symbols beginning with
13088     # underscore (_), so it is better to generate a list of symbols to export.
13089     always_export_symbols_CXX=yes
13090     if test "$aix_use_runtimelinking" = yes; then
13091       # Warning - without using the other runtime loading flags (-brtl),
13092       # -berok will link without error, but may produce a broken library.
13093       allow_undefined_flag_CXX='-berok'
13094       # Determine the default libpath from the value encoded in an empty executable.
13095       cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h.  */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h.  */
13101
13102 int
13103 main ()
13104 {
13105
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (ac_try="$ac_link"
13112 case "(($ac_try" in
13113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114   *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117   (eval "$ac_link") 2>conftest.er1
13118   ac_status=$?
13119   grep -v '^ *+' conftest.er1 >conftest.err
13120   rm -f conftest.er1
13121   cat conftest.err >&5
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); } && {
13124          test -z "$ac_cxx_werror_flag" ||
13125          test ! -s conftest.err
13126        } && test -s conftest$ac_exeext &&
13127        $as_test_x conftest$ac_exeext; then
13128   
13129 lt_aix_libpath_sed='
13130     /Import File Strings/,/^$/ {
13131         /^0/ {
13132             s/^0  *\(.*\)$/\1/
13133             p
13134         }
13135     }'
13136 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13137 # Check for a 64-bit object if we didn't find anything.
13138 if test -z "$aix_libpath"; then
13139   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13140 fi
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145         
13146 fi
13147
13148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13149       conftest$ac_exeext conftest.$ac_ext
13150 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13151
13152       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13153
13154       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"
13155      else
13156       if test "$host_cpu" = ia64; then
13157         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13158         allow_undefined_flag_CXX="-z nodefs"
13159         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"
13160       else
13161         # Determine the default libpath from the value encoded in an empty executable.
13162         cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168
13169 int
13170 main ()
13171 {
13172
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_link") 2>conftest.er1
13185   ac_status=$?
13186   grep -v '^ *+' conftest.er1 >conftest.err
13187   rm -f conftest.er1
13188   cat conftest.err >&5
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } && {
13191          test -z "$ac_cxx_werror_flag" ||
13192          test ! -s conftest.err
13193        } && test -s conftest$ac_exeext &&
13194        $as_test_x conftest$ac_exeext; then
13195   
13196 lt_aix_libpath_sed='
13197     /Import File Strings/,/^$/ {
13198         /^0/ {
13199             s/^0  *\(.*\)$/\1/
13200             p
13201         }
13202     }'
13203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13204 # Check for a 64-bit object if we didn't find anything.
13205 if test -z "$aix_libpath"; then
13206   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13207 fi
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212         
13213 fi
13214
13215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13216       conftest$ac_exeext conftest.$ac_ext
13217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13218
13219         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13220         # Warning - without using the other run time loading flags,
13221         # -berok will link without error, but may produce a broken library.
13222         no_undefined_flag_CXX=' ${wl}-bernotok'
13223         allow_undefined_flag_CXX=' ${wl}-berok'
13224         # Exported symbols can be pulled into shared objects from archives
13225         whole_archive_flag_spec_CXX='$convenience'
13226         archive_cmds_need_lc_CXX=yes
13227         # This is similar to how AIX traditionally builds its shared libraries.
13228         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'
13229       fi
13230     fi
13231     ;;
13232
13233   beos*)
13234     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13235       allow_undefined_flag_CXX=unsupported
13236       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13237       # support --undefined.  This deserves some investigation.  FIXME
13238       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13239     else
13240       ld_shlibs_CXX=no
13241     fi
13242     ;;
13243
13244   chorus*)
13245     case $cc_basename in
13246       *)
13247         # FIXME: insert proper C++ library support
13248         ld_shlibs_CXX=no
13249         ;;
13250     esac
13251     ;;
13252
13253   cygwin* | mingw* | pw32*)
13254     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13255     # as there is no search path for DLLs.
13256     hardcode_libdir_flag_spec_CXX='-L$libdir'
13257     allow_undefined_flag_CXX=unsupported
13258     always_export_symbols_CXX=no
13259     enable_shared_with_static_runtimes_CXX=yes
13260
13261     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13262       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'
13263       # If the export-symbols file already is a .def file (1st line
13264       # is EXPORTS), use it as is; otherwise, prepend...
13265       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13266         cp $export_symbols $output_objdir/$soname.def;
13267       else
13268         echo EXPORTS > $output_objdir/$soname.def;
13269         cat $export_symbols >> $output_objdir/$soname.def;
13270       fi~
13271       $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'
13272     else
13273       ld_shlibs_CXX=no
13274     fi
13275   ;;
13276       darwin* | rhapsody*)
13277       archive_cmds_need_lc_CXX=no
13278       hardcode_direct_CXX=no
13279       hardcode_automatic_CXX=yes
13280       hardcode_shlibpath_var_CXX=unsupported
13281       whole_archive_flag_spec_CXX=''
13282       link_all_deplibs_CXX=yes
13283       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13284       if test "$GXX" = yes ; then
13285       output_verbose_link_cmd='echo'
13286       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13287       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13288       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13289       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13290       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13291         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13292         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13293       fi
13294       else
13295       case $cc_basename in
13296         xlc*)
13297          output_verbose_link_cmd='echo'
13298           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13299           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13300           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13301           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13302           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}'
13303           ;;
13304        *)
13305          ld_shlibs_CXX=no
13306           ;;
13307       esac
13308       fi
13309         ;;
13310
13311   dgux*)
13312     case $cc_basename in
13313       ec++*)
13314         # FIXME: insert proper C++ library support
13315         ld_shlibs_CXX=no
13316         ;;
13317       ghcx*)
13318         # Green Hills C++ Compiler
13319         # FIXME: insert proper C++ library support
13320         ld_shlibs_CXX=no
13321         ;;
13322       *)
13323         # FIXME: insert proper C++ library support
13324         ld_shlibs_CXX=no
13325         ;;
13326     esac
13327     ;;
13328   freebsd[12]*)
13329     # C++ shared libraries reported to be fairly broken before switch to ELF
13330     ld_shlibs_CXX=no
13331     ;;
13332   freebsd-elf*)
13333     archive_cmds_need_lc_CXX=no
13334     ;;
13335   freebsd* | dragonfly*)
13336     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13337     # conventions
13338     ld_shlibs_CXX=yes
13339     ;;
13340   gnu*)
13341     ;;
13342   hpux9*)
13343     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13344     hardcode_libdir_separator_CXX=:
13345     export_dynamic_flag_spec_CXX='${wl}-E'
13346     hardcode_direct_CXX=yes
13347     hardcode_minus_L_CXX=yes # Not in the search PATH,
13348                                 # but as the default
13349                                 # location of the library.
13350
13351     case $cc_basename in
13352     CC*)
13353       # FIXME: insert proper C++ library support
13354       ld_shlibs_CXX=no
13355       ;;
13356     aCC*)
13357       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'
13358       # Commands to make compiler produce verbose output that lists
13359       # what "hidden" libraries, object files and flags are used when
13360       # linking a shared library.
13361       #
13362       # There doesn't appear to be a way to prevent this compiler from
13363       # explicitly linking system object files so we need to strip them
13364       # from the output so that they don't get included in the library
13365       # dependencies.
13366       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'
13367       ;;
13368     *)
13369       if test "$GXX" = yes; then
13370         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'
13371       else
13372         # FIXME: insert proper C++ library support
13373         ld_shlibs_CXX=no
13374       fi
13375       ;;
13376     esac
13377     ;;
13378   hpux10*|hpux11*)
13379     if test $with_gnu_ld = no; then
13380       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13381       hardcode_libdir_separator_CXX=:
13382
13383       case $host_cpu in
13384       hppa*64*|ia64*) ;;
13385       *)
13386         export_dynamic_flag_spec_CXX='${wl}-E'
13387         ;;
13388       esac
13389     fi
13390     case $host_cpu in
13391     hppa*64*|ia64*)
13392       hardcode_direct_CXX=no
13393       hardcode_shlibpath_var_CXX=no
13394       ;;
13395     *)
13396       hardcode_direct_CXX=yes
13397       hardcode_minus_L_CXX=yes # Not in the search PATH,
13398                                               # but as the default
13399                                               # location of the library.
13400       ;;
13401     esac
13402
13403     case $cc_basename in
13404       CC*)
13405         # FIXME: insert proper C++ library support
13406         ld_shlibs_CXX=no
13407         ;;
13408       aCC*)
13409         case $host_cpu in
13410         hppa*64*)
13411           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13412           ;;
13413         ia64*)
13414           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13415           ;;
13416         *)
13417           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13418           ;;
13419         esac
13420         # Commands to make compiler produce verbose output that lists
13421         # what "hidden" libraries, object files and flags are used when
13422         # linking a shared library.
13423         #
13424         # There doesn't appear to be a way to prevent this compiler from
13425         # explicitly linking system object files so we need to strip them
13426         # from the output so that they don't get included in the library
13427         # dependencies.
13428         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'
13429         ;;
13430       *)
13431         if test "$GXX" = yes; then
13432           if test $with_gnu_ld = no; then
13433             case $host_cpu in
13434             hppa*64*)
13435               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13436               ;;
13437             ia64*)
13438               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439               ;;
13440             *)
13441               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'
13442               ;;
13443             esac
13444           fi
13445         else
13446           # FIXME: insert proper C++ library support
13447           ld_shlibs_CXX=no
13448         fi
13449         ;;
13450     esac
13451     ;;
13452   interix[3-9]*)
13453     hardcode_direct_CXX=no
13454     hardcode_shlibpath_var_CXX=no
13455     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13456     export_dynamic_flag_spec_CXX='${wl}-E'
13457     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13458     # Instead, shared libraries are loaded at an image base (0x10000000 by
13459     # default) and relocated if they conflict, which is a slow very memory
13460     # consuming and fragmenting process.  To avoid this, we pick a random,
13461     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13462     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13463     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'
13464     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'
13465     ;;
13466   irix5* | irix6*)
13467     case $cc_basename in
13468       CC*)
13469         # SGI C++
13470         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'
13471
13472         # Archives containing C++ object files must be created using
13473         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13474         # necessary to make sure instantiated templates are included
13475         # in the archive.
13476         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13477         ;;
13478       *)
13479         if test "$GXX" = yes; then
13480           if test "$with_gnu_ld" = no; then
13481             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'
13482           else
13483             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'
13484           fi
13485         fi
13486         link_all_deplibs_CXX=yes
13487         ;;
13488     esac
13489     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13490     hardcode_libdir_separator_CXX=:
13491     ;;
13492   linux* | k*bsd*-gnu)
13493     case $cc_basename in
13494       KCC*)
13495         # Kuck and Associates, Inc. (KAI) C++ Compiler
13496
13497         # KCC will only create a shared library if the output file
13498         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13499         # to its proper name (with version) after linking.
13500         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'
13501         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'
13502         # Commands to make compiler produce verbose output that lists
13503         # what "hidden" libraries, object files and flags are used when
13504         # linking a shared library.
13505         #
13506         # There doesn't appear to be a way to prevent this compiler from
13507         # explicitly linking system object files so we need to strip them
13508         # from the output so that they don't get included in the library
13509         # dependencies.
13510         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'
13511
13512         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13513         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13514
13515         # Archives containing C++ object files must be created using
13516         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13517         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13518         ;;
13519       icpc*)
13520         # Intel C++
13521         with_gnu_ld=yes
13522         # version 8.0 and above of icpc choke on multiply defined symbols
13523         # if we add $predep_objects and $postdep_objects, however 7.1 and
13524         # earlier do not add the objects themselves.
13525         case `$CC -V 2>&1` in
13526         *"Version 7."*)
13527           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13528           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'
13529           ;;
13530         *)  # Version 8.0 or newer
13531           tmp_idyn=
13532           case $host_cpu in
13533             ia64*) tmp_idyn=' -i_dynamic';;
13534           esac
13535           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13536           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'
13537           ;;
13538         esac
13539         archive_cmds_need_lc_CXX=no
13540         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13541         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13542         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13543         ;;
13544       pgCC* | pgcpp*)
13545         # Portland Group C++ compiler
13546         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13547         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'
13548
13549         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13550         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13551         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'
13552         ;;
13553       cxx*)
13554         # Compaq C++
13555         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556         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'
13557
13558         runpath_var=LD_RUN_PATH
13559         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13560         hardcode_libdir_separator_CXX=:
13561
13562         # Commands to make compiler produce verbose output that lists
13563         # what "hidden" libraries, object files and flags are used when
13564         # linking a shared library.
13565         #
13566         # There doesn't appear to be a way to prevent this compiler from
13567         # explicitly linking system object files so we need to strip them
13568         # from the output so that they don't get included in the library
13569         # dependencies.
13570         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'
13571         ;;
13572       *)
13573         case `$CC -V 2>&1 | sed 5q` in
13574         *Sun\ C*)
13575           # Sun C++ 5.9
13576           no_undefined_flag_CXX=' -zdefs'
13577           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13578           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13579           hardcode_libdir_flag_spec_CXX='-R$libdir'
13580           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13581
13582           # Not sure whether something based on
13583           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13584           # would be better.
13585           output_verbose_link_cmd='echo'
13586
13587           # Archives containing C++ object files must be created using
13588           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13589           # necessary to make sure instantiated templates are included
13590           # in the archive.
13591           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13592           ;;
13593         esac
13594         ;;
13595     esac
13596     ;;
13597   lynxos*)
13598     # FIXME: insert proper C++ library support
13599     ld_shlibs_CXX=no
13600     ;;
13601   m88k*)
13602     # FIXME: insert proper C++ library support
13603     ld_shlibs_CXX=no
13604     ;;
13605   mvs*)
13606     case $cc_basename in
13607       cxx*)
13608         # FIXME: insert proper C++ library support
13609         ld_shlibs_CXX=no
13610         ;;
13611       *)
13612         # FIXME: insert proper C++ library support
13613         ld_shlibs_CXX=no
13614         ;;
13615     esac
13616     ;;
13617   netbsd*)
13618     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13619       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13620       wlarc=
13621       hardcode_libdir_flag_spec_CXX='-R$libdir'
13622       hardcode_direct_CXX=yes
13623       hardcode_shlibpath_var_CXX=no
13624     fi
13625     # Workaround some broken pre-1.5 toolchains
13626     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13627     ;;
13628   openbsd2*)
13629     # C++ shared libraries are fairly broken
13630     ld_shlibs_CXX=no
13631     ;;
13632   openbsd*)
13633     if test -f /usr/libexec/ld.so; then
13634       hardcode_direct_CXX=yes
13635       hardcode_shlibpath_var_CXX=no
13636       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13637       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13638       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13639         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13640         export_dynamic_flag_spec_CXX='${wl}-E'
13641         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13642       fi
13643       output_verbose_link_cmd='echo'
13644     else
13645       ld_shlibs_CXX=no
13646     fi
13647     ;;
13648   osf3*)
13649     case $cc_basename in
13650       KCC*)
13651         # Kuck and Associates, Inc. (KAI) C++ Compiler
13652
13653         # KCC will only create a shared library if the output file
13654         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13655         # to its proper name (with version) after linking.
13656         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'
13657
13658         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13659         hardcode_libdir_separator_CXX=:
13660
13661         # Archives containing C++ object files must be created using
13662         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13663         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13664
13665         ;;
13666       RCC*)
13667         # Rational C++ 2.4.1
13668         # FIXME: insert proper C++ library support
13669         ld_shlibs_CXX=no
13670         ;;
13671       cxx*)
13672         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13673         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'
13674
13675         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13676         hardcode_libdir_separator_CXX=:
13677
13678         # Commands to make compiler produce verbose output that lists
13679         # what "hidden" libraries, object files and flags are used when
13680         # linking a shared library.
13681         #
13682         # There doesn't appear to be a way to prevent this compiler from
13683         # explicitly linking system object files so we need to strip them
13684         # from the output so that they don't get included in the library
13685         # dependencies.
13686         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'
13687         ;;
13688       *)
13689         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13690           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13691           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'
13692
13693           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13694           hardcode_libdir_separator_CXX=:
13695
13696           # Commands to make compiler produce verbose output that lists
13697           # what "hidden" libraries, object files and flags are used when
13698           # linking a shared library.
13699           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13700
13701         else
13702           # FIXME: insert proper C++ library support
13703           ld_shlibs_CXX=no
13704         fi
13705         ;;
13706     esac
13707     ;;
13708   osf4* | osf5*)
13709     case $cc_basename in
13710       KCC*)
13711         # Kuck and Associates, Inc. (KAI) C++ Compiler
13712
13713         # KCC will only create a shared library if the output file
13714         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13715         # to its proper name (with version) after linking.
13716         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'
13717
13718         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13719         hardcode_libdir_separator_CXX=:
13720
13721         # Archives containing C++ object files must be created using
13722         # the KAI C++ compiler.
13723         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13724         ;;
13725       RCC*)
13726         # Rational C++ 2.4.1
13727         # FIXME: insert proper C++ library support
13728         ld_shlibs_CXX=no
13729         ;;
13730       cxx*)
13731         allow_undefined_flag_CXX=' -expect_unresolved \*'
13732         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'
13733         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13734           echo "-hidden">> $lib.exp~
13735           $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~
13736           $rm $lib.exp'
13737
13738         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13739         hardcode_libdir_separator_CXX=:
13740
13741         # Commands to make compiler produce verbose output that lists
13742         # what "hidden" libraries, object files and flags are used when
13743         # linking a shared library.
13744         #
13745         # There doesn't appear to be a way to prevent this compiler from
13746         # explicitly linking system object files so we need to strip them
13747         # from the output so that they don't get included in the library
13748         # dependencies.
13749         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'
13750         ;;
13751       *)
13752         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13753           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13754          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'
13755
13756           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13757           hardcode_libdir_separator_CXX=:
13758
13759           # Commands to make compiler produce verbose output that lists
13760           # what "hidden" libraries, object files and flags are used when
13761           # linking a shared library.
13762           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13763
13764         else
13765           # FIXME: insert proper C++ library support
13766           ld_shlibs_CXX=no
13767         fi
13768         ;;
13769     esac
13770     ;;
13771   psos*)
13772     # FIXME: insert proper C++ library support
13773     ld_shlibs_CXX=no
13774     ;;
13775   sunos4*)
13776     case $cc_basename in
13777       CC*)
13778         # Sun C++ 4.x
13779         # FIXME: insert proper C++ library support
13780         ld_shlibs_CXX=no
13781         ;;
13782       lcc*)
13783         # Lucid
13784         # FIXME: insert proper C++ library support
13785         ld_shlibs_CXX=no
13786         ;;
13787       *)
13788         # FIXME: insert proper C++ library support
13789         ld_shlibs_CXX=no
13790         ;;
13791     esac
13792     ;;
13793   solaris*)
13794     case $cc_basename in
13795       CC*)
13796         # Sun C++ 4.2, 5.x and Centerline C++
13797         archive_cmds_need_lc_CXX=yes
13798         no_undefined_flag_CXX=' -zdefs'
13799         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13800         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13801         $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'
13802
13803         hardcode_libdir_flag_spec_CXX='-R$libdir'
13804         hardcode_shlibpath_var_CXX=no
13805         case $host_os in
13806           solaris2.[0-5] | solaris2.[0-5].*) ;;
13807           *)
13808             # The compiler driver will combine and reorder linker options,
13809             # but understands `-z linker_flag'.
13810             # Supported since Solaris 2.6 (maybe 2.5.1?)
13811             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13812             ;;
13813         esac
13814         link_all_deplibs_CXX=yes
13815
13816         output_verbose_link_cmd='echo'
13817
13818         # Archives containing C++ object files must be created using
13819         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13820         # necessary to make sure instantiated templates are included
13821         # in the archive.
13822         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13823         ;;
13824       gcx*)
13825         # Green Hills C++ Compiler
13826         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13827
13828         # The C++ compiler must be used to create the archive.
13829         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13830         ;;
13831       *)
13832         # GNU C++ compiler with Solaris linker
13833         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13834           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13835           if $CC --version | grep -v '^2\.7' > /dev/null; then
13836             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13837             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13838                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13839
13840             # Commands to make compiler produce verbose output that lists
13841             # what "hidden" libraries, object files and flags are used when
13842             # linking a shared library.
13843             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13844           else
13845             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13846             # platform.
13847             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13848             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13849                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13850
13851             # Commands to make compiler produce verbose output that lists
13852             # what "hidden" libraries, object files and flags are used when
13853             # linking a shared library.
13854             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13855           fi
13856
13857           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13858           case $host_os in
13859           solaris2.[0-5] | solaris2.[0-5].*) ;;
13860           *)
13861             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13862             ;;
13863           esac
13864         fi
13865         ;;
13866     esac
13867     ;;
13868   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13869     no_undefined_flag_CXX='${wl}-z,text'
13870     archive_cmds_need_lc_CXX=no
13871     hardcode_shlibpath_var_CXX=no
13872     runpath_var='LD_RUN_PATH'
13873
13874     case $cc_basename in
13875       CC*)
13876         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13877         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13878         ;;
13879       *)
13880         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13881         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13882         ;;
13883     esac
13884     ;;
13885   sysv5* | sco3.2v5* | sco5v6*)
13886     # Note: We can NOT use -z defs as we might desire, because we do not
13887     # link with -lc, and that would cause any symbols used from libc to
13888     # always be unresolved, which means just about no library would
13889     # ever link correctly.  If we're not using GNU ld we use -z text
13890     # though, which does catch some bad symbols but isn't as heavy-handed
13891     # as -z defs.
13892     # For security reasons, it is highly recommended that you always
13893     # use absolute paths for naming shared libraries, and exclude the
13894     # DT_RUNPATH tag from executables and libraries.  But doing so
13895     # requires that you compile everything twice, which is a pain.
13896     # So that behaviour is only enabled if SCOABSPATH is set to a
13897     # non-empty value in the environment.  Most likely only useful for
13898     # creating official distributions of packages.
13899     # This is a hack until libtool officially supports absolute path
13900     # names for shared libraries.
13901     no_undefined_flag_CXX='${wl}-z,text'
13902     allow_undefined_flag_CXX='${wl}-z,nodefs'
13903     archive_cmds_need_lc_CXX=no
13904     hardcode_shlibpath_var_CXX=no
13905     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13906     hardcode_libdir_separator_CXX=':'
13907     link_all_deplibs_CXX=yes
13908     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13909     runpath_var='LD_RUN_PATH'
13910
13911     case $cc_basename in
13912       CC*)
13913         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13914         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13915         ;;
13916       *)
13917         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13918         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13919         ;;
13920     esac
13921     ;;
13922   tandem*)
13923     case $cc_basename in
13924       NCC*)
13925         # NonStop-UX NCC 3.20
13926         # FIXME: insert proper C++ library support
13927         ld_shlibs_CXX=no
13928         ;;
13929       *)
13930         # FIXME: insert proper C++ library support
13931         ld_shlibs_CXX=no
13932         ;;
13933     esac
13934     ;;
13935   vxworks*)
13936     # FIXME: insert proper C++ library support
13937     ld_shlibs_CXX=no
13938     ;;
13939   *)
13940     # FIXME: insert proper C++ library support
13941     ld_shlibs_CXX=no
13942     ;;
13943 esac
13944 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13945 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13946 test "$ld_shlibs_CXX" = no && can_build_shared=no
13947
13948 GCC_CXX="$GXX"
13949 LD_CXX="$LD"
13950
13951 cat > conftest.$ac_ext <<EOF
13952 class Foo
13953 {
13954 public:
13955   Foo (void) { a = 0; }
13956 private:
13957   int a;
13958 };
13959 EOF
13960
13961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962   (eval $ac_compile) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; then
13966   # Parse the compiler output and extract the necessary
13967   # objects, libraries and library flags.
13968
13969   # Sentinel used to keep track of whether or not we are before
13970   # the conftest object file.
13971   pre_test_object_deps_done=no
13972
13973   # The `*' in the case matches for architectures that use `case' in
13974   # $output_verbose_cmd can trigger glob expansion during the loop
13975   # eval without this substitution.
13976   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13977
13978   for p in `eval $output_verbose_link_cmd`; do
13979     case $p in
13980
13981     -L* | -R* | -l*)
13982        # Some compilers place space between "-{L,R}" and the path.
13983        # Remove the space.
13984        if test $p = "-L" \
13985           || test $p = "-R"; then
13986          prev=$p
13987          continue
13988        else
13989          prev=
13990        fi
13991
13992        if test "$pre_test_object_deps_done" = no; then
13993          case $p in
13994          -L* | -R*)
13995            # Internal compiler library paths should come after those
13996            # provided the user.  The postdeps already come after the
13997            # user supplied libs so there is no need to process them.
13998            if test -z "$compiler_lib_search_path_CXX"; then
13999              compiler_lib_search_path_CXX="${prev}${p}"
14000            else
14001              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14002            fi
14003            ;;
14004          # The "-l" case would never come before the object being
14005          # linked, so don't bother handling this case.
14006          esac
14007        else
14008          if test -z "$postdeps_CXX"; then
14009            postdeps_CXX="${prev}${p}"
14010          else
14011            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14012          fi
14013        fi
14014        ;;
14015
14016     *.$objext)
14017        # This assumes that the test object file only shows up
14018        # once in the compiler output.
14019        if test "$p" = "conftest.$objext"; then
14020          pre_test_object_deps_done=yes
14021          continue
14022        fi
14023
14024        if test "$pre_test_object_deps_done" = no; then
14025          if test -z "$predep_objects_CXX"; then
14026            predep_objects_CXX="$p"
14027          else
14028            predep_objects_CXX="$predep_objects_CXX $p"
14029          fi
14030        else
14031          if test -z "$postdep_objects_CXX"; then
14032            postdep_objects_CXX="$p"
14033          else
14034            postdep_objects_CXX="$postdep_objects_CXX $p"
14035          fi
14036        fi
14037        ;;
14038
14039     *) ;; # Ignore the rest.
14040
14041     esac
14042   done
14043
14044   # Clean up.
14045   rm -f a.out a.exe
14046 else
14047   echo "libtool.m4: error: problem compiling CXX test program"
14048 fi
14049
14050 $rm -f confest.$objext
14051
14052 compiler_lib_search_dirs_CXX=
14053 if test -n "$compiler_lib_search_path_CXX"; then
14054   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14055 fi
14056
14057 # PORTME: override above test on systems where it is broken
14058 case $host_os in
14059 interix[3-9]*)
14060   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14061   # hack all around it, let's just trust "g++" to DTRT.
14062   predep_objects_CXX=
14063   postdep_objects_CXX=
14064   postdeps_CXX=
14065   ;;
14066
14067 linux*)
14068   case `$CC -V 2>&1 | sed 5q` in
14069   *Sun\ C*)
14070     # Sun C++ 5.9
14071     #
14072     # The more standards-conforming stlport4 library is
14073     # incompatible with the Cstd library. Avoid specifying
14074     # it if it's in CXXFLAGS. Ignore libCrun as
14075     # -library=stlport4 depends on it.
14076     case " $CXX $CXXFLAGS " in
14077     *" -library=stlport4 "*)
14078       solaris_use_stlport4=yes
14079       ;;
14080     esac
14081     if test "$solaris_use_stlport4" != yes; then
14082       postdeps_CXX='-library=Cstd -library=Crun'
14083     fi
14084     ;;
14085   esac
14086   ;;
14087
14088 solaris*)
14089   case $cc_basename in
14090   CC*)
14091     # The more standards-conforming stlport4 library is
14092     # incompatible with the Cstd library. Avoid specifying
14093     # it if it's in CXXFLAGS. Ignore libCrun as
14094     # -library=stlport4 depends on it.
14095     case " $CXX $CXXFLAGS " in
14096     *" -library=stlport4 "*)
14097       solaris_use_stlport4=yes
14098       ;;
14099     esac
14100
14101     # Adding this requires a known-good setup of shared libraries for
14102     # Sun compiler versions before 5.6, else PIC objects from an old
14103     # archive will be linked into the output, leading to subtle bugs.
14104     if test "$solaris_use_stlport4" != yes; then
14105       postdeps_CXX='-library=Cstd -library=Crun'
14106     fi
14107     ;;
14108   esac
14109   ;;
14110 esac
14111
14112 case " $postdeps_CXX " in
14113 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14114 esac
14115
14116 lt_prog_compiler_wl_CXX=
14117 lt_prog_compiler_pic_CXX=
14118 lt_prog_compiler_static_CXX=
14119
14120 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14121 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14122  
14123   # C++ specific cases for pic, static, wl, etc.
14124   if test "$GXX" = yes; then
14125     lt_prog_compiler_wl_CXX='-Wl,'
14126     lt_prog_compiler_static_CXX='-static'
14127
14128     case $host_os in
14129     aix*)
14130       # All AIX code is PIC.
14131       if test "$host_cpu" = ia64; then
14132         # AIX 5 now supports IA64 processor
14133         lt_prog_compiler_static_CXX='-Bstatic'
14134       fi
14135       ;;
14136     amigaos*)
14137       # FIXME: we need at least 68020 code to build shared libraries, but
14138       # adding the `-m68020' flag to GCC prevents building anything better,
14139       # like `-m68040'.
14140       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14141       ;;
14142     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14143       # PIC is the default for these OSes.
14144       ;;
14145     mingw* | cygwin* | os2* | pw32*)
14146       # This hack is so that the source file can tell whether it is being
14147       # built for inclusion in a dll (and should export symbols for example).
14148       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14149       # (--disable-auto-import) libraries
14150       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14151       ;;
14152     darwin* | rhapsody*)
14153       # PIC is the default on this platform
14154       # Common symbols not allowed in MH_DYLIB files
14155       lt_prog_compiler_pic_CXX='-fno-common'
14156       ;;
14157     *djgpp*)
14158       # DJGPP does not support shared libraries at all
14159       lt_prog_compiler_pic_CXX=
14160       ;;
14161     interix[3-9]*)
14162       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14163       # Instead, we relocate shared libraries at runtime.
14164       ;;
14165     sysv4*MP*)
14166       if test -d /usr/nec; then
14167         lt_prog_compiler_pic_CXX=-Kconform_pic
14168       fi
14169       ;;
14170     hpux*)
14171       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14172       # not for PA HP-UX.
14173       case $host_cpu in
14174       hppa*64*|ia64*)
14175         ;;
14176       *)
14177         lt_prog_compiler_pic_CXX='-fPIC'
14178         ;;
14179       esac
14180       ;;
14181     *)
14182       lt_prog_compiler_pic_CXX='-fPIC'
14183       ;;
14184     esac
14185   else
14186     case $host_os in
14187       aix[4-9]*)
14188         # All AIX code is PIC.
14189         if test "$host_cpu" = ia64; then
14190           # AIX 5 now supports IA64 processor
14191           lt_prog_compiler_static_CXX='-Bstatic'
14192         else
14193           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14194         fi
14195         ;;
14196       chorus*)
14197         case $cc_basename in
14198         cxch68*)
14199           # Green Hills C++ Compiler
14200           # _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"
14201           ;;
14202         esac
14203         ;;
14204        darwin*)
14205          # PIC is the default on this platform
14206          # Common symbols not allowed in MH_DYLIB files
14207          case $cc_basename in
14208            xlc*)
14209            lt_prog_compiler_pic_CXX='-qnocommon'
14210            lt_prog_compiler_wl_CXX='-Wl,'
14211            ;;
14212          esac
14213        ;;
14214       dgux*)
14215         case $cc_basename in
14216           ec++*)
14217             lt_prog_compiler_pic_CXX='-KPIC'
14218             ;;
14219           ghcx*)
14220             # Green Hills C++ Compiler
14221             lt_prog_compiler_pic_CXX='-pic'
14222             ;;
14223           *)
14224             ;;
14225         esac
14226         ;;
14227       freebsd* | dragonfly*)
14228         # FreeBSD uses GNU C++
14229         ;;
14230       hpux9* | hpux10* | hpux11*)
14231         case $cc_basename in
14232           CC*)
14233             lt_prog_compiler_wl_CXX='-Wl,'
14234             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14235             if test "$host_cpu" != ia64; then
14236               lt_prog_compiler_pic_CXX='+Z'
14237             fi
14238             ;;
14239           aCC*)
14240             lt_prog_compiler_wl_CXX='-Wl,'
14241             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14242             case $host_cpu in
14243             hppa*64*|ia64*)
14244               # +Z the default
14245               ;;
14246             *)
14247               lt_prog_compiler_pic_CXX='+Z'
14248               ;;
14249             esac
14250             ;;
14251           *)
14252             ;;
14253         esac
14254         ;;
14255       interix*)
14256         # This is c89, which is MS Visual C++ (no shared libs)
14257         # Anyone wants to do a port?
14258         ;;
14259       irix5* | irix6* | nonstopux*)
14260         case $cc_basename in
14261           CC*)
14262             lt_prog_compiler_wl_CXX='-Wl,'
14263             lt_prog_compiler_static_CXX='-non_shared'
14264             # CC pic flag -KPIC is the default.
14265             ;;
14266           *)
14267             ;;
14268         esac
14269         ;;
14270       linux* | k*bsd*-gnu)
14271         case $cc_basename in
14272           KCC*)
14273             # KAI C++ Compiler
14274             lt_prog_compiler_wl_CXX='--backend -Wl,'
14275             lt_prog_compiler_pic_CXX='-fPIC'
14276             ;;
14277           icpc* | ecpc*)
14278             # Intel C++
14279             lt_prog_compiler_wl_CXX='-Wl,'
14280             lt_prog_compiler_pic_CXX='-KPIC'
14281             lt_prog_compiler_static_CXX='-static'
14282             ;;
14283           pgCC* | pgcpp*)
14284             # Portland Group C++ compiler.
14285             lt_prog_compiler_wl_CXX='-Wl,'
14286             lt_prog_compiler_pic_CXX='-fpic'
14287             lt_prog_compiler_static_CXX='-Bstatic'
14288             ;;
14289           cxx*)
14290             # Compaq C++
14291             # Make sure the PIC flag is empty.  It appears that all Alpha
14292             # Linux and Compaq Tru64 Unix objects are PIC.
14293             lt_prog_compiler_pic_CXX=
14294             lt_prog_compiler_static_CXX='-non_shared'
14295             ;;
14296           *)
14297             case `$CC -V 2>&1 | sed 5q` in
14298             *Sun\ C*)
14299               # Sun C++ 5.9
14300               lt_prog_compiler_pic_CXX='-KPIC'
14301               lt_prog_compiler_static_CXX='-Bstatic'
14302               lt_prog_compiler_wl_CXX='-Qoption ld '
14303               ;;
14304             esac
14305             ;;
14306         esac
14307         ;;
14308       lynxos*)
14309         ;;
14310       m88k*)
14311         ;;
14312       mvs*)
14313         case $cc_basename in
14314           cxx*)
14315             lt_prog_compiler_pic_CXX='-W c,exportall'
14316             ;;
14317           *)
14318             ;;
14319         esac
14320         ;;
14321       netbsd*)
14322         ;;
14323       osf3* | osf4* | osf5*)
14324         case $cc_basename in
14325           KCC*)
14326             lt_prog_compiler_wl_CXX='--backend -Wl,'
14327             ;;
14328           RCC*)
14329             # Rational C++ 2.4.1
14330             lt_prog_compiler_pic_CXX='-pic'
14331             ;;
14332           cxx*)
14333             # Digital/Compaq C++
14334             lt_prog_compiler_wl_CXX='-Wl,'
14335             # Make sure the PIC flag is empty.  It appears that all Alpha
14336             # Linux and Compaq Tru64 Unix objects are PIC.
14337             lt_prog_compiler_pic_CXX=
14338             lt_prog_compiler_static_CXX='-non_shared'
14339             ;;
14340           *)
14341             ;;
14342         esac
14343         ;;
14344       psos*)
14345         ;;
14346       solaris*)
14347         case $cc_basename in
14348           CC*)
14349             # Sun C++ 4.2, 5.x and Centerline C++
14350             lt_prog_compiler_pic_CXX='-KPIC'
14351             lt_prog_compiler_static_CXX='-Bstatic'
14352             lt_prog_compiler_wl_CXX='-Qoption ld '
14353             ;;
14354           gcx*)
14355             # Green Hills C++ Compiler
14356             lt_prog_compiler_pic_CXX='-PIC'
14357             ;;
14358           *)
14359             ;;
14360         esac
14361         ;;
14362       sunos4*)
14363         case $cc_basename in
14364           CC*)
14365             # Sun C++ 4.x
14366             lt_prog_compiler_pic_CXX='-pic'
14367             lt_prog_compiler_static_CXX='-Bstatic'
14368             ;;
14369           lcc*)
14370             # Lucid
14371             lt_prog_compiler_pic_CXX='-pic'
14372             ;;
14373           *)
14374             ;;
14375         esac
14376         ;;
14377       tandem*)
14378         case $cc_basename in
14379           NCC*)
14380             # NonStop-UX NCC 3.20
14381             lt_prog_compiler_pic_CXX='-KPIC'
14382             ;;
14383           *)
14384             ;;
14385         esac
14386         ;;
14387       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14388         case $cc_basename in
14389           CC*)
14390             lt_prog_compiler_wl_CXX='-Wl,'
14391             lt_prog_compiler_pic_CXX='-KPIC'
14392             lt_prog_compiler_static_CXX='-Bstatic'
14393             ;;
14394         esac
14395         ;;
14396       vxworks*)
14397         ;;
14398       *)
14399         lt_prog_compiler_can_build_shared_CXX=no
14400         ;;
14401     esac
14402   fi
14403
14404 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14405 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14406
14407 #
14408 # Check to make sure the PIC flag actually works.
14409 #
14410 if test -n "$lt_prog_compiler_pic_CXX"; then
14411   
14412 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14413 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14414 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14415   echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417   lt_cv_prog_compiler_pic_works_CXX=no
14418   ac_outfile=conftest.$ac_objext
14419    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14420    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14421    # Insert the option either (1) after the last *FLAGS variable, or
14422    # (2) before a word containing "conftest.", or (3) at the end.
14423    # Note that $ac_compile itself does not contain backslashes and begins
14424    # with a dollar sign (not a hyphen), so the echo should work correctly.
14425    # The option is referenced via a variable to avoid confusing sed.
14426    lt_compile=`echo "$ac_compile" | $SED \
14427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14429    -e 's:$: $lt_compiler_flag:'`
14430    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14431    (eval "$lt_compile" 2>conftest.err)
14432    ac_status=$?
14433    cat conftest.err >&5
14434    echo "$as_me:__oline__: \$? = $ac_status" >&5
14435    if (exit $ac_status) && test -s "$ac_outfile"; then
14436      # The compiler can only warn and ignore the option if not recognized
14437      # So say no if there are warnings other than the usual output.
14438      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14439      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14440      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14441        lt_cv_prog_compiler_pic_works_CXX=yes
14442      fi
14443    fi
14444    $rm conftest*
14445
14446 fi
14447 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14448 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14449
14450 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14451     case $lt_prog_compiler_pic_CXX in
14452      "" | " "*) ;;
14453      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14454      esac
14455 else
14456     lt_prog_compiler_pic_CXX=
14457      lt_prog_compiler_can_build_shared_CXX=no
14458 fi
14459
14460 fi
14461 case $host_os in
14462   # For platforms which do not support PIC, -DPIC is meaningless:
14463   *djgpp*)
14464     lt_prog_compiler_pic_CXX=
14465     ;;
14466   *)
14467     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14468     ;;
14469 esac
14470
14471 #
14472 # Check to make sure the static flag actually works.
14473 #
14474 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14475 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14476 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14477 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480   lt_cv_prog_compiler_static_works_CXX=no
14481    save_LDFLAGS="$LDFLAGS"
14482    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14483    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14484    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14485      # The linker can only warn and ignore the option if not recognized
14486      # So say no if there are warnings
14487      if test -s conftest.err; then
14488        # Append any errors to the config.log.
14489        cat conftest.err 1>&5
14490        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14491        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14492        if diff conftest.exp conftest.er2 >/dev/null; then
14493          lt_cv_prog_compiler_static_works_CXX=yes
14494        fi
14495      else
14496        lt_cv_prog_compiler_static_works_CXX=yes
14497      fi
14498    fi
14499    $rm -r conftest*
14500    LDFLAGS="$save_LDFLAGS"
14501
14502 fi
14503 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14504 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14505
14506 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14507     :
14508 else
14509     lt_prog_compiler_static_CXX=
14510 fi
14511
14512
14513 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14514 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14515 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14516   echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518   lt_cv_prog_compiler_c_o_CXX=no
14519    $rm -r conftest 2>/dev/null
14520    mkdir conftest
14521    cd conftest
14522    mkdir out
14523    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524
14525    lt_compiler_flag="-o out/conftest2.$ac_objext"
14526    # Insert the option either (1) after the last *FLAGS variable, or
14527    # (2) before a word containing "conftest.", or (3) at the end.
14528    # Note that $ac_compile itself does not contain backslashes and begins
14529    # with a dollar sign (not a hyphen), so the echo should work correctly.
14530    lt_compile=`echo "$ac_compile" | $SED \
14531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533    -e 's:$: $lt_compiler_flag:'`
14534    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14535    (eval "$lt_compile" 2>out/conftest.err)
14536    ac_status=$?
14537    cat out/conftest.err >&5
14538    echo "$as_me:__oline__: \$? = $ac_status" >&5
14539    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14540    then
14541      # The compiler can only warn and ignore the option if not recognized
14542      # So say no if there are warnings
14543      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14544      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14545      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14546        lt_cv_prog_compiler_c_o_CXX=yes
14547      fi
14548    fi
14549    chmod u+w . 2>&5
14550    $rm conftest*
14551    # SGI C++ compiler will create directory out/ii_files/ for
14552    # template instantiation
14553    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14554    $rm out/* && rmdir out
14555    cd ..
14556    rmdir conftest
14557    $rm conftest*
14558
14559 fi
14560 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14561 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14562
14563
14564 hard_links="nottested"
14565 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14566   # do not overwrite the value of need_locks provided by the user
14567   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14568 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14569   hard_links=yes
14570   $rm conftest*
14571   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14572   touch conftest.a
14573   ln conftest.a conftest.b 2>&5 || hard_links=no
14574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14575   { echo "$as_me:$LINENO: result: $hard_links" >&5
14576 echo "${ECHO_T}$hard_links" >&6; }
14577   if test "$hard_links" = no; then
14578     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14579 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14580     need_locks=warn
14581   fi
14582 else
14583   need_locks=no
14584 fi
14585
14586 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14587 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14588
14589   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14590   case $host_os in
14591   aix[4-9]*)
14592     # If we're using GNU nm, then we don't want the "-C" option.
14593     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14594     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14595       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'
14596     else
14597       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'
14598     fi
14599     ;;
14600   pw32*)
14601     export_symbols_cmds_CXX="$ltdll_cmds"
14602   ;;
14603   cygwin* | mingw*)
14604     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'
14605   ;;
14606   *)
14607     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14608   ;;
14609   esac
14610   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14611
14612 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14613 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14614 test "$ld_shlibs_CXX" = no && can_build_shared=no
14615
14616 #
14617 # Do we need to explicitly link libc?
14618 #
14619 case "x$archive_cmds_need_lc_CXX" in
14620 x|xyes)
14621   # Assume -lc should be added
14622   archive_cmds_need_lc_CXX=yes
14623
14624   if test "$enable_shared" = yes && test "$GCC" = yes; then
14625     case $archive_cmds_CXX in
14626     *'~'*)
14627       # FIXME: we may have to deal with multi-command sequences.
14628       ;;
14629     '$CC '*)
14630       # Test whether the compiler implicitly links with -lc since on some
14631       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14632       # to ld, don't add -lc before -lgcc.
14633       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14634 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14635       $rm conftest*
14636       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14637
14638       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14639   (eval $ac_compile) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } 2>conftest.err; then
14643         soname=conftest
14644         lib=conftest
14645         libobjs=conftest.$ac_objext
14646         deplibs=
14647         wl=$lt_prog_compiler_wl_CXX
14648         pic_flag=$lt_prog_compiler_pic_CXX
14649         compiler_flags=-v
14650         linker_flags=-v
14651         verstring=
14652         output_objdir=.
14653         libname=conftest
14654         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14655         allow_undefined_flag_CXX=
14656         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14657   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }
14661         then
14662           archive_cmds_need_lc_CXX=no
14663         else
14664           archive_cmds_need_lc_CXX=yes
14665         fi
14666         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14667       else
14668         cat conftest.err 1>&5
14669       fi
14670       $rm conftest*
14671       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14672 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14673       ;;
14674     esac
14675   fi
14676   ;;
14677 esac
14678
14679 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14681 library_names_spec=
14682 libname_spec='lib$name'
14683 soname_spec=
14684 shrext_cmds=".so"
14685 postinstall_cmds=
14686 postuninstall_cmds=
14687 finish_cmds=
14688 finish_eval=
14689 shlibpath_var=
14690 shlibpath_overrides_runpath=unknown
14691 version_type=none
14692 dynamic_linker="$host_os ld.so"
14693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14694
14695 need_lib_prefix=unknown
14696 hardcode_into_libs=no
14697
14698 # when you set need_version to no, make sure it does not cause -set_version
14699 # flags to be left without arguments
14700 need_version=unknown
14701
14702 case $host_os in
14703 aix3*)
14704   version_type=linux
14705   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14706   shlibpath_var=LIBPATH
14707
14708   # AIX 3 has no versioning support, so we append a major version to the name.
14709   soname_spec='${libname}${release}${shared_ext}$major'
14710   ;;
14711
14712 aix[4-9]*)
14713   version_type=linux
14714   need_lib_prefix=no
14715   need_version=no
14716   hardcode_into_libs=yes
14717   if test "$host_cpu" = ia64; then
14718     # AIX 5 supports IA64
14719     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14720     shlibpath_var=LD_LIBRARY_PATH
14721   else
14722     # With GCC up to 2.95.x, collect2 would create an import file
14723     # for dependence libraries.  The import file would start with
14724     # the line `#! .'.  This would cause the generated library to
14725     # depend on `.', always an invalid library.  This was fixed in
14726     # development snapshots of GCC prior to 3.0.
14727     case $host_os in
14728       aix4 | aix4.[01] | aix4.[01].*)
14729       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14730            echo ' yes '
14731            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14732         :
14733       else
14734         can_build_shared=no
14735       fi
14736       ;;
14737     esac
14738     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14739     # soname into executable. Probably we can add versioning support to
14740     # collect2, so additional links can be useful in future.
14741     if test "$aix_use_runtimelinking" = yes; then
14742       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14743       # instead of lib<name>.a to let people know that these are not
14744       # typical AIX shared libraries.
14745       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746     else
14747       # We preserve .a as extension for shared libraries through AIX4.2
14748       # and later when we are not doing run time linking.
14749       library_names_spec='${libname}${release}.a $libname.a'
14750       soname_spec='${libname}${release}${shared_ext}$major'
14751     fi
14752     shlibpath_var=LIBPATH
14753   fi
14754   ;;
14755
14756 amigaos*)
14757   library_names_spec='$libname.ixlibrary $libname.a'
14758   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14759   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'
14760   ;;
14761
14762 beos*)
14763   library_names_spec='${libname}${shared_ext}'
14764   dynamic_linker="$host_os ld.so"
14765   shlibpath_var=LIBRARY_PATH
14766   ;;
14767
14768 bsdi[45]*)
14769   version_type=linux
14770   need_version=no
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772   soname_spec='${libname}${release}${shared_ext}$major'
14773   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14774   shlibpath_var=LD_LIBRARY_PATH
14775   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14776   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14777   # the default ld.so.conf also contains /usr/contrib/lib and
14778   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14779   # libtool to hard-code these into programs
14780   ;;
14781
14782 cygwin* | mingw* | pw32*)
14783   version_type=windows
14784   shrext_cmds=".dll"
14785   need_version=no
14786   need_lib_prefix=no
14787
14788   case $GCC,$host_os in
14789   yes,cygwin* | yes,mingw* | yes,pw32*)
14790     library_names_spec='$libname.dll.a'
14791     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14792     postinstall_cmds='base_file=`basename \${file}`~
14793       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14794       dldir=$destdir/`dirname \$dlpath`~
14795       test -d \$dldir || mkdir -p \$dldir~
14796       $install_prog $dir/$dlname \$dldir/$dlname~
14797       chmod a+x \$dldir/$dlname'
14798     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14799       dlpath=$dir/\$dldll~
14800        $rm \$dlpath'
14801     shlibpath_overrides_runpath=yes
14802
14803     case $host_os in
14804     cygwin*)
14805       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14806       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14807       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14808       ;;
14809     mingw*)
14810       # MinGW DLLs use traditional 'lib' prefix
14811       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14812       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14813       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14814         # It is most probably a Windows format PATH printed by
14815         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14816         # path with ; separators, and with drive letters. We can handle the
14817         # drive letters (cygwin fileutils understands them), so leave them,
14818         # especially as we might pass files found there to a mingw objdump,
14819         # which wouldn't understand a cygwinified path. Ahh.
14820         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14821       else
14822         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14823       fi
14824       ;;
14825     pw32*)
14826       # pw32 DLLs use 'pw' prefix rather than 'lib'
14827       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14828       ;;
14829     esac
14830     ;;
14831
14832   *)
14833     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14834     ;;
14835   esac
14836   dynamic_linker='Win32 ld.exe'
14837   # FIXME: first we should search . and the directory the executable is in
14838   shlibpath_var=PATH
14839   ;;
14840
14841 darwin* | rhapsody*)
14842   dynamic_linker="$host_os dyld"
14843   version_type=darwin
14844   need_lib_prefix=no
14845   need_version=no
14846   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14847   soname_spec='${libname}${release}${major}$shared_ext'
14848   shlibpath_overrides_runpath=yes
14849   shlibpath_var=DYLD_LIBRARY_PATH
14850   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14851    
14852   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14853   ;;
14854
14855 dgux*)
14856   version_type=linux
14857   need_lib_prefix=no
14858   need_version=no
14859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14860   soname_spec='${libname}${release}${shared_ext}$major'
14861   shlibpath_var=LD_LIBRARY_PATH
14862   ;;
14863
14864 freebsd1*)
14865   dynamic_linker=no
14866   ;;
14867
14868 freebsd* | dragonfly*)
14869   # DragonFly does not have aout.  When/if they implement a new
14870   # versioning mechanism, adjust this.
14871   if test -x /usr/bin/objformat; then
14872     objformat=`/usr/bin/objformat`
14873   else
14874     case $host_os in
14875     freebsd[123]*) objformat=aout ;;
14876     *) objformat=elf ;;
14877     esac
14878   fi
14879   version_type=freebsd-$objformat
14880   case $version_type in
14881     freebsd-elf*)
14882       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14883       need_version=no
14884       need_lib_prefix=no
14885       ;;
14886     freebsd-*)
14887       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14888       need_version=yes
14889       ;;
14890   esac
14891   shlibpath_var=LD_LIBRARY_PATH
14892   case $host_os in
14893   freebsd2*)
14894     shlibpath_overrides_runpath=yes
14895     ;;
14896   freebsd3.[01]* | freebsdelf3.[01]*)
14897     shlibpath_overrides_runpath=yes
14898     hardcode_into_libs=yes
14899     ;;
14900   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14901   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14902     shlibpath_overrides_runpath=no
14903     hardcode_into_libs=yes
14904     ;;
14905   *) # from 4.6 on, and DragonFly
14906     shlibpath_overrides_runpath=yes
14907     hardcode_into_libs=yes
14908     ;;
14909   esac
14910   ;;
14911
14912 gnu*)
14913   version_type=linux
14914   need_lib_prefix=no
14915   need_version=no
14916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14917   soname_spec='${libname}${release}${shared_ext}$major'
14918   shlibpath_var=LD_LIBRARY_PATH
14919   hardcode_into_libs=yes
14920   ;;
14921
14922 hpux9* | hpux10* | hpux11*)
14923   # Give a soname corresponding to the major version so that dld.sl refuses to
14924   # link against other versions.
14925   version_type=sunos
14926   need_lib_prefix=no
14927   need_version=no
14928   case $host_cpu in
14929   ia64*)
14930     shrext_cmds='.so'
14931     hardcode_into_libs=yes
14932     dynamic_linker="$host_os dld.so"
14933     shlibpath_var=LD_LIBRARY_PATH
14934     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936     soname_spec='${libname}${release}${shared_ext}$major'
14937     if test "X$HPUX_IA64_MODE" = X32; then
14938       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14939     else
14940       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14941     fi
14942     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14943     ;;
14944    hppa*64*)
14945      shrext_cmds='.sl'
14946      hardcode_into_libs=yes
14947      dynamic_linker="$host_os dld.sl"
14948      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14949      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14950      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951      soname_spec='${libname}${release}${shared_ext}$major'
14952      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14953      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14954      ;;
14955    *)
14956     shrext_cmds='.sl'
14957     dynamic_linker="$host_os dld.sl"
14958     shlibpath_var=SHLIB_PATH
14959     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961     soname_spec='${libname}${release}${shared_ext}$major'
14962     ;;
14963   esac
14964   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14965   postinstall_cmds='chmod 555 $lib'
14966   ;;
14967
14968 interix[3-9]*)
14969   version_type=linux
14970   need_lib_prefix=no
14971   need_version=no
14972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14973   soname_spec='${libname}${release}${shared_ext}$major'
14974   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14975   shlibpath_var=LD_LIBRARY_PATH
14976   shlibpath_overrides_runpath=no
14977   hardcode_into_libs=yes
14978   ;;
14979
14980 irix5* | irix6* | nonstopux*)
14981   case $host_os in
14982     nonstopux*) version_type=nonstopux ;;
14983     *)
14984         if test "$lt_cv_prog_gnu_ld" = yes; then
14985                 version_type=linux
14986         else
14987                 version_type=irix
14988         fi ;;
14989   esac
14990   need_lib_prefix=no
14991   need_version=no
14992   soname_spec='${libname}${release}${shared_ext}$major'
14993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14994   case $host_os in
14995   irix5* | nonstopux*)
14996     libsuff= shlibsuff=
14997     ;;
14998   *)
14999     case $LD in # libtool.m4 will add one of these switches to LD
15000     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15001       libsuff= shlibsuff= libmagic=32-bit;;
15002     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15003       libsuff=32 shlibsuff=N32 libmagic=N32;;
15004     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15005       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15006     *) libsuff= shlibsuff= libmagic=never-match;;
15007     esac
15008     ;;
15009   esac
15010   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15011   shlibpath_overrides_runpath=no
15012   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15013   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15014   hardcode_into_libs=yes
15015   ;;
15016
15017 # No shared lib support for Linux oldld, aout, or coff.
15018 linux*oldld* | linux*aout* | linux*coff*)
15019   dynamic_linker=no
15020   ;;
15021
15022 # This must be Linux ELF.
15023 linux* | k*bsd*-gnu)
15024   version_type=linux
15025   need_lib_prefix=no
15026   need_version=no
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028   soname_spec='${libname}${release}${shared_ext}$major'
15029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   shlibpath_overrides_runpath=no
15032   # This implies no fast_install, which is unacceptable.
15033   # Some rework will be needed to allow for fast_install
15034   # before this can be enabled.
15035   hardcode_into_libs=yes
15036
15037   # Append ld.so.conf contents to the search path
15038   if test -f /etc/ld.so.conf; then
15039     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15040     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15041   fi
15042
15043   # We used to test for /lib/ld.so.1 and disable shared libraries on
15044   # powerpc, because MkLinux only supported shared libraries with the
15045   # GNU dynamic linker.  Since this was broken with cross compilers,
15046   # most powerpc-linux boxes support dynamic linking these days and
15047   # people can always --disable-shared, the test was removed, and we
15048   # assume the GNU/Linux dynamic linker is in use.
15049   dynamic_linker='GNU/Linux ld.so'
15050   ;;
15051
15052 netbsd*)
15053   version_type=sunos
15054   need_lib_prefix=no
15055   need_version=no
15056   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15058     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15059     dynamic_linker='NetBSD (a.out) ld.so'
15060   else
15061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15062     soname_spec='${libname}${release}${shared_ext}$major'
15063     dynamic_linker='NetBSD ld.elf_so'
15064   fi
15065   shlibpath_var=LD_LIBRARY_PATH
15066   shlibpath_overrides_runpath=yes
15067   hardcode_into_libs=yes
15068   ;;
15069
15070 newsos6)
15071   version_type=linux
15072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073   shlibpath_var=LD_LIBRARY_PATH
15074   shlibpath_overrides_runpath=yes
15075   ;;
15076
15077 nto-qnx*)
15078   version_type=linux
15079   need_lib_prefix=no
15080   need_version=no
15081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082   soname_spec='${libname}${release}${shared_ext}$major'
15083   shlibpath_var=LD_LIBRARY_PATH
15084   shlibpath_overrides_runpath=yes
15085   ;;
15086
15087 openbsd*)
15088   version_type=sunos
15089   sys_lib_dlsearch_path_spec="/usr/lib"
15090   need_lib_prefix=no
15091   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15092   case $host_os in
15093     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15094     *)                         need_version=no  ;;
15095   esac
15096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15097   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15098   shlibpath_var=LD_LIBRARY_PATH
15099   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15100     case $host_os in
15101       openbsd2.[89] | openbsd2.[89].*)
15102         shlibpath_overrides_runpath=no
15103         ;;
15104       *)
15105         shlibpath_overrides_runpath=yes
15106         ;;
15107       esac
15108   else
15109     shlibpath_overrides_runpath=yes
15110   fi
15111   ;;
15112
15113 os2*)
15114   libname_spec='$name'
15115   shrext_cmds=".dll"
15116   need_lib_prefix=no
15117   library_names_spec='$libname${shared_ext} $libname.a'
15118   dynamic_linker='OS/2 ld.exe'
15119   shlibpath_var=LIBPATH
15120   ;;
15121
15122 osf3* | osf4* | osf5*)
15123   version_type=osf
15124   need_lib_prefix=no
15125   need_version=no
15126   soname_spec='${libname}${release}${shared_ext}$major'
15127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128   shlibpath_var=LD_LIBRARY_PATH
15129   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15130   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15131   ;;
15132
15133 rdos*)
15134   dynamic_linker=no
15135   ;;
15136
15137 solaris*)
15138   version_type=linux
15139   need_lib_prefix=no
15140   need_version=no
15141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142   soname_spec='${libname}${release}${shared_ext}$major'
15143   shlibpath_var=LD_LIBRARY_PATH
15144   shlibpath_overrides_runpath=yes
15145   hardcode_into_libs=yes
15146   # ldd complains unless libraries are executable
15147   postinstall_cmds='chmod +x $lib'
15148   ;;
15149
15150 sunos4*)
15151   version_type=sunos
15152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15153   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15154   shlibpath_var=LD_LIBRARY_PATH
15155   shlibpath_overrides_runpath=yes
15156   if test "$with_gnu_ld" = yes; then
15157     need_lib_prefix=no
15158   fi
15159   need_version=yes
15160   ;;
15161
15162 sysv4 | sysv4.3*)
15163   version_type=linux
15164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165   soname_spec='${libname}${release}${shared_ext}$major'
15166   shlibpath_var=LD_LIBRARY_PATH
15167   case $host_vendor in
15168     sni)
15169       shlibpath_overrides_runpath=no
15170       need_lib_prefix=no
15171       export_dynamic_flag_spec='${wl}-Blargedynsym'
15172       runpath_var=LD_RUN_PATH
15173       ;;
15174     siemens)
15175       need_lib_prefix=no
15176       ;;
15177     motorola)
15178       need_lib_prefix=no
15179       need_version=no
15180       shlibpath_overrides_runpath=no
15181       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15182       ;;
15183   esac
15184   ;;
15185
15186 sysv4*MP*)
15187   if test -d /usr/nec ;then
15188     version_type=linux
15189     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15190     soname_spec='$libname${shared_ext}.$major'
15191     shlibpath_var=LD_LIBRARY_PATH
15192   fi
15193   ;;
15194
15195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15196   version_type=freebsd-elf
15197   need_lib_prefix=no
15198   need_version=no
15199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15200   soname_spec='${libname}${release}${shared_ext}$major'
15201   shlibpath_var=LD_LIBRARY_PATH
15202   hardcode_into_libs=yes
15203   if test "$with_gnu_ld" = yes; then
15204     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15205     shlibpath_overrides_runpath=no
15206   else
15207     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15208     shlibpath_overrides_runpath=yes
15209     case $host_os in
15210       sco3.2v5*)
15211         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15212         ;;
15213     esac
15214   fi
15215   sys_lib_dlsearch_path_spec='/usr/lib'
15216   ;;
15217
15218 uts4*)
15219   version_type=linux
15220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221   soname_spec='${libname}${release}${shared_ext}$major'
15222   shlibpath_var=LD_LIBRARY_PATH
15223   ;;
15224
15225 *)
15226   dynamic_linker=no
15227   ;;
15228 esac
15229 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15230 echo "${ECHO_T}$dynamic_linker" >&6; }
15231 test "$dynamic_linker" = no && can_build_shared=no
15232
15233 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15234   echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15237 fi
15238
15239 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15240 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15241   echo $ECHO_N "(cached) $ECHO_C" >&6
15242 else
15243   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15244 fi
15245
15246 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15247
15248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15249 if test "$GCC" = yes; then
15250   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15251 fi
15252
15253 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15254 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15255 hardcode_action_CXX=
15256 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15257    test -n "$runpath_var_CXX" || \
15258    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15259
15260   # We can hardcode non-existant directories.
15261   if test "$hardcode_direct_CXX" != no &&
15262      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15263      # have to relink, otherwise we might link with an installed library
15264      # when we should be linking with a yet-to-be-installed one
15265      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15266      test "$hardcode_minus_L_CXX" != no; then
15267     # Linking always hardcodes the temporary library directory.
15268     hardcode_action_CXX=relink
15269   else
15270     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15271     hardcode_action_CXX=immediate
15272   fi
15273 else
15274   # We cannot hardcode anything, or else we can only hardcode existing
15275   # directories.
15276   hardcode_action_CXX=unsupported
15277 fi
15278 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15279 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15280
15281 if test "$hardcode_action_CXX" = relink; then
15282   # Fast installation is not supported
15283   enable_fast_install=no
15284 elif test "$shlibpath_overrides_runpath" = yes ||
15285      test "$enable_shared" = no; then
15286   # Fast installation is not necessary
15287   enable_fast_install=needless
15288 fi
15289
15290
15291 # The else clause should only fire when bootstrapping the
15292 # libtool distribution, otherwise you forgot to ship ltmain.sh
15293 # with your package, and you will get complaints that there are
15294 # no rules to generate ltmain.sh.
15295 if test -f "$ltmain"; then
15296   # See if we are running on zsh, and set the options which allow our commands through
15297   # without removal of \ escapes.
15298   if test -n "${ZSH_VERSION+set}" ; then
15299     setopt NO_GLOB_SUBST
15300   fi
15301   # Now quote all the things that may contain metacharacters while being
15302   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15303   # variables and quote the copies for generation of the libtool script.
15304   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15305     SED SHELL STRIP \
15306     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15307     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15308     deplibs_check_method reload_flag reload_cmds need_locks \
15309     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15310     lt_cv_sys_global_symbol_to_c_name_address \
15311     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15312     old_postinstall_cmds old_postuninstall_cmds \
15313     compiler_CXX \
15314     CC_CXX \
15315     LD_CXX \
15316     lt_prog_compiler_wl_CXX \
15317     lt_prog_compiler_pic_CXX \
15318     lt_prog_compiler_static_CXX \
15319     lt_prog_compiler_no_builtin_flag_CXX \
15320     export_dynamic_flag_spec_CXX \
15321     thread_safe_flag_spec_CXX \
15322     whole_archive_flag_spec_CXX \
15323     enable_shared_with_static_runtimes_CXX \
15324     old_archive_cmds_CXX \
15325     old_archive_from_new_cmds_CXX \
15326     predep_objects_CXX \
15327     postdep_objects_CXX \
15328     predeps_CXX \
15329     postdeps_CXX \
15330     compiler_lib_search_path_CXX \
15331     compiler_lib_search_dirs_CXX \
15332     archive_cmds_CXX \
15333     archive_expsym_cmds_CXX \
15334     postinstall_cmds_CXX \
15335     postuninstall_cmds_CXX \
15336     old_archive_from_expsyms_cmds_CXX \
15337     allow_undefined_flag_CXX \
15338     no_undefined_flag_CXX \
15339     export_symbols_cmds_CXX \
15340     hardcode_libdir_flag_spec_CXX \
15341     hardcode_libdir_flag_spec_ld_CXX \
15342     hardcode_libdir_separator_CXX \
15343     hardcode_automatic_CXX \
15344     module_cmds_CXX \
15345     module_expsym_cmds_CXX \
15346     lt_cv_prog_compiler_c_o_CXX \
15347     fix_srcfile_path_CXX \
15348     exclude_expsyms_CXX \
15349     include_expsyms_CXX; do
15350
15351     case $var in
15352     old_archive_cmds_CXX | \
15353     old_archive_from_new_cmds_CXX | \
15354     archive_cmds_CXX | \
15355     archive_expsym_cmds_CXX | \
15356     module_cmds_CXX | \
15357     module_expsym_cmds_CXX | \
15358     old_archive_from_expsyms_cmds_CXX | \
15359     export_symbols_cmds_CXX | \
15360     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15361     postinstall_cmds | postuninstall_cmds | \
15362     old_postinstall_cmds | old_postuninstall_cmds | \
15363     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15364       # Double-quote double-evaled strings.
15365       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15366       ;;
15367     *)
15368       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15369       ;;
15370     esac
15371   done
15372
15373   case $lt_echo in
15374   *'\$0 --fallback-echo"')
15375     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15376     ;;
15377   esac
15378
15379 cfgfile="$ofile"
15380
15381   cat <<__EOF__ >> "$cfgfile"
15382 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15383
15384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15385
15386 # Shell to use when invoking shell scripts.
15387 SHELL=$lt_SHELL
15388
15389 # Whether or not to build shared libraries.
15390 build_libtool_libs=$enable_shared
15391
15392 # Whether or not to build static libraries.
15393 build_old_libs=$enable_static
15394
15395 # Whether or not to add -lc for building shared libraries.
15396 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15397
15398 # Whether or not to disallow shared libs when runtime libs are static
15399 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15400
15401 # Whether or not to optimize for fast installation.
15402 fast_install=$enable_fast_install
15403
15404 # The host system.
15405 host_alias=$host_alias
15406 host=$host
15407 host_os=$host_os
15408
15409 # The build system.
15410 build_alias=$build_alias
15411 build=$build
15412 build_os=$build_os
15413
15414 # An echo program that does not interpret backslashes.
15415 echo=$lt_echo
15416
15417 # The archiver.
15418 AR=$lt_AR
15419 AR_FLAGS=$lt_AR_FLAGS
15420
15421 # A C compiler.
15422 LTCC=$lt_LTCC
15423
15424 # LTCC compiler flags.
15425 LTCFLAGS=$lt_LTCFLAGS
15426
15427 # A language-specific compiler.
15428 CC=$lt_compiler_CXX
15429
15430 # Is the compiler the GNU C compiler?
15431 with_gcc=$GCC_CXX
15432
15433 # An ERE matcher.
15434 EGREP=$lt_EGREP
15435
15436 # The linker used to build libraries.
15437 LD=$lt_LD_CXX
15438
15439 # Whether we need hard or soft links.
15440 LN_S=$lt_LN_S
15441
15442 # A BSD-compatible nm program.
15443 NM=$lt_NM
15444
15445 # A symbol stripping program
15446 STRIP=$lt_STRIP
15447
15448 # Used to examine libraries when file_magic_cmd begins "file"
15449 MAGIC_CMD=$MAGIC_CMD
15450
15451 # Used on cygwin: DLL creation program.
15452 DLLTOOL="$DLLTOOL"
15453
15454 # Used on cygwin: object dumper.
15455 OBJDUMP="$OBJDUMP"
15456
15457 # Used on cygwin: assembler.
15458 AS="$AS"
15459
15460 # The name of the directory that contains temporary libtool files.
15461 objdir=$objdir
15462
15463 # How to create reloadable object files.
15464 reload_flag=$lt_reload_flag
15465 reload_cmds=$lt_reload_cmds
15466
15467 # How to pass a linker flag through the compiler.
15468 wl=$lt_lt_prog_compiler_wl_CXX
15469
15470 # Object file suffix (normally "o").
15471 objext="$ac_objext"
15472
15473 # Old archive suffix (normally "a").
15474 libext="$libext"
15475
15476 # Shared library suffix (normally ".so").
15477 shrext_cmds='$shrext_cmds'
15478
15479 # Executable file suffix (normally "").
15480 exeext="$exeext"
15481
15482 # Additional compiler flags for building library objects.
15483 pic_flag=$lt_lt_prog_compiler_pic_CXX
15484 pic_mode=$pic_mode
15485
15486 # What is the maximum length of a command?
15487 max_cmd_len=$lt_cv_sys_max_cmd_len
15488
15489 # Does compiler simultaneously support -c and -o options?
15490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15491
15492 # Must we lock files when doing compilation?
15493 need_locks=$lt_need_locks
15494
15495 # Do we need the lib prefix for modules?
15496 need_lib_prefix=$need_lib_prefix
15497
15498 # Do we need a version for libraries?
15499 need_version=$need_version
15500
15501 # Whether dlopen is supported.
15502 dlopen_support=$enable_dlopen
15503
15504 # Whether dlopen of programs is supported.
15505 dlopen_self=$enable_dlopen_self
15506
15507 # Whether dlopen of statically linked programs is supported.
15508 dlopen_self_static=$enable_dlopen_self_static
15509
15510 # Compiler flag to prevent dynamic linking.
15511 link_static_flag=$lt_lt_prog_compiler_static_CXX
15512
15513 # Compiler flag to turn off builtin functions.
15514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15515
15516 # Compiler flag to allow reflexive dlopens.
15517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15518
15519 # Compiler flag to generate shared objects directly from archives.
15520 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15521
15522 # Compiler flag to generate thread-safe objects.
15523 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15524
15525 # Library versioning type.
15526 version_type=$version_type
15527
15528 # Format of library name prefix.
15529 libname_spec=$lt_libname_spec
15530
15531 # List of archive names.  First name is the real one, the rest are links.
15532 # The last name is the one that the linker finds with -lNAME.
15533 library_names_spec=$lt_library_names_spec
15534
15535 # The coded name of the library, if different from the real name.
15536 soname_spec=$lt_soname_spec
15537
15538 # Commands used to build and install an old-style archive.
15539 RANLIB=$lt_RANLIB
15540 old_archive_cmds=$lt_old_archive_cmds_CXX
15541 old_postinstall_cmds=$lt_old_postinstall_cmds
15542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15543
15544 # Create an old-style archive from a shared archive.
15545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15546
15547 # Create a temporary old-style archive to link instead of a shared archive.
15548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15549
15550 # Commands used to build and install a shared archive.
15551 archive_cmds=$lt_archive_cmds_CXX
15552 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15553 postinstall_cmds=$lt_postinstall_cmds
15554 postuninstall_cmds=$lt_postuninstall_cmds
15555
15556 # Commands used to build a loadable module (assumed same as above if empty)
15557 module_cmds=$lt_module_cmds_CXX
15558 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15559
15560 # Commands to strip libraries.
15561 old_striplib=$lt_old_striplib
15562 striplib=$lt_striplib
15563
15564 # Dependencies to place before the objects being linked to create a
15565 # shared library.
15566 predep_objects=$lt_predep_objects_CXX
15567
15568 # Dependencies to place after the objects being linked to create a
15569 # shared library.
15570 postdep_objects=$lt_postdep_objects_CXX
15571
15572 # Dependencies to place before the objects being linked to create a
15573 # shared library.
15574 predeps=$lt_predeps_CXX
15575
15576 # Dependencies to place after the objects being linked to create a
15577 # shared library.
15578 postdeps=$lt_postdeps_CXX
15579
15580 # The directories searched by this compiler when creating a shared
15581 # library
15582 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15583
15584 # The library search path used internally by the compiler when linking
15585 # a shared library.
15586 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15587
15588 # Method to check whether dependent libraries are shared objects.
15589 deplibs_check_method=$lt_deplibs_check_method
15590
15591 # Command to use when deplibs_check_method == file_magic.
15592 file_magic_cmd=$lt_file_magic_cmd
15593
15594 # Flag that allows shared libraries with undefined symbols to be built.
15595 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15596
15597 # Flag that forces no undefined symbols.
15598 no_undefined_flag=$lt_no_undefined_flag_CXX
15599
15600 # Commands used to finish a libtool library installation in a directory.
15601 finish_cmds=$lt_finish_cmds
15602
15603 # Same as above, but a single script fragment to be evaled but not shown.
15604 finish_eval=$lt_finish_eval
15605
15606 # Take the output of nm and produce a listing of raw symbols and C names.
15607 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15608
15609 # Transform the output of nm in a proper C declaration
15610 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15611
15612 # Transform the output of nm in a C name address pair
15613 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15614
15615 # This is the shared library runtime path variable.
15616 runpath_var=$runpath_var
15617
15618 # This is the shared library path variable.
15619 shlibpath_var=$shlibpath_var
15620
15621 # Is shlibpath searched before the hard-coded library search path?
15622 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15623
15624 # How to hardcode a shared library path into an executable.
15625 hardcode_action=$hardcode_action_CXX
15626
15627 # Whether we should hardcode library paths into libraries.
15628 hardcode_into_libs=$hardcode_into_libs
15629
15630 # Flag to hardcode \$libdir into a binary during linking.
15631 # This must work even if \$libdir does not exist.
15632 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15633
15634 # If ld is used when linking, flag to hardcode \$libdir into
15635 # a binary during linking. This must work even if \$libdir does
15636 # not exist.
15637 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15638
15639 # Whether we need a single -rpath flag with a separated argument.
15640 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15641
15642 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15643 # resulting binary.
15644 hardcode_direct=$hardcode_direct_CXX
15645
15646 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15647 # resulting binary.
15648 hardcode_minus_L=$hardcode_minus_L_CXX
15649
15650 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15651 # the resulting binary.
15652 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15653
15654 # Set to yes if building a shared library automatically hardcodes DIR into the library
15655 # and all subsequent libraries and executables linked against it.
15656 hardcode_automatic=$hardcode_automatic_CXX
15657
15658 # Variables whose values should be saved in libtool wrapper scripts and
15659 # restored at relink time.
15660 variables_saved_for_relink="$variables_saved_for_relink"
15661
15662 # Whether libtool must link a program against all its dependency libraries.
15663 link_all_deplibs=$link_all_deplibs_CXX
15664
15665 # Compile-time system search path for libraries
15666 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15667
15668 # Run-time system search path for libraries
15669 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15670
15671 # Fix the shell variable \$srcfile for the compiler.
15672 fix_srcfile_path=$lt_fix_srcfile_path
15673
15674 # Set to yes if exported symbols are required.
15675 always_export_symbols=$always_export_symbols_CXX
15676
15677 # The commands to list exported symbols.
15678 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15679
15680 # The commands to extract the exported symbol list from a shared archive.
15681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15682
15683 # Symbols that should not be listed in the preloaded symbols.
15684 exclude_expsyms=$lt_exclude_expsyms_CXX
15685
15686 # Symbols that must always be exported.
15687 include_expsyms=$lt_include_expsyms_CXX
15688
15689 # ### END LIBTOOL TAG CONFIG: $tagname
15690
15691 __EOF__
15692
15693
15694 else
15695   # If there is no Makefile yet, we rely on a make rule to execute
15696   # `config.status --recheck' to rerun these tests and create the
15697   # libtool script then.
15698   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15699   if test -f "$ltmain_in"; then
15700     test -f Makefile && make "$ltmain"
15701   fi
15702 fi
15703
15704
15705 ac_ext=c
15706 ac_cpp='$CPP $CPPFLAGS'
15707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15710
15711 CC=$lt_save_CC
15712 LDCXX=$LD
15713 LD=$lt_save_LD
15714 GCC=$lt_save_GCC
15715 with_gnu_ldcxx=$with_gnu_ld
15716 with_gnu_ld=$lt_save_with_gnu_ld
15717 lt_cv_path_LDCXX=$lt_cv_path_LD
15718 lt_cv_path_LD=$lt_save_path_LD
15719 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15720 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15721
15722         else
15723           tagname=""
15724         fi
15725         ;;
15726
15727       F77)
15728         if test -n "$F77" && test "X$F77" != "Xno"; then
15729           
15730 ac_ext=f
15731 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15732 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15733 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15734
15735
15736 archive_cmds_need_lc_F77=no
15737 allow_undefined_flag_F77=
15738 always_export_symbols_F77=no
15739 archive_expsym_cmds_F77=
15740 export_dynamic_flag_spec_F77=
15741 hardcode_direct_F77=no
15742 hardcode_libdir_flag_spec_F77=
15743 hardcode_libdir_flag_spec_ld_F77=
15744 hardcode_libdir_separator_F77=
15745 hardcode_minus_L_F77=no
15746 hardcode_automatic_F77=no
15747 module_cmds_F77=
15748 module_expsym_cmds_F77=
15749 link_all_deplibs_F77=unknown
15750 old_archive_cmds_F77=$old_archive_cmds
15751 no_undefined_flag_F77=
15752 whole_archive_flag_spec_F77=
15753 enable_shared_with_static_runtimes_F77=no
15754
15755 # Source file extension for f77 test sources.
15756 ac_ext=f
15757
15758 # Object file extension for compiled f77 test sources.
15759 objext=o
15760 objext_F77=$objext
15761
15762 # Code to be used in simple compile tests
15763 lt_simple_compile_test_code="\
15764       subroutine t
15765       return
15766       end
15767 "
15768
15769 # Code to be used in simple link tests
15770 lt_simple_link_test_code="\
15771       program t
15772       end
15773 "
15774
15775 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15776
15777 # If no C compiler was specified, use CC.
15778 LTCC=${LTCC-"$CC"}
15779
15780 # If no C compiler flags were specified, use CFLAGS.
15781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15782
15783 # Allow CC to be a program name with arguments.
15784 compiler=$CC
15785
15786
15787 # save warnings/boilerplate of simple test code
15788 ac_outfile=conftest.$ac_objext
15789 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15790 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15791 _lt_compiler_boilerplate=`cat conftest.err`
15792 $rm conftest*
15793
15794 ac_outfile=conftest.$ac_objext
15795 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15796 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15797 _lt_linker_boilerplate=`cat conftest.err`
15798 $rm -r conftest*
15799
15800
15801 # Allow CC to be a program name with arguments.
15802 lt_save_CC="$CC"
15803 CC=${F77-"f77"}
15804 compiler=$CC
15805 compiler_F77=$CC
15806 for cc_temp in $compiler""; do
15807   case $cc_temp in
15808     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15809     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15810     \-*) ;;
15811     *) break;;
15812   esac
15813 done
15814 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15815
15816
15817 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15818 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15819 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15820 echo "${ECHO_T}$can_build_shared" >&6; }
15821
15822 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15823 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15824 test "$can_build_shared" = "no" && enable_shared=no
15825
15826 # On AIX, shared libraries and static libraries use the same namespace, and
15827 # are all built from PIC.
15828 case $host_os in
15829 aix3*)
15830   test "$enable_shared" = yes && enable_static=no
15831   if test -n "$RANLIB"; then
15832     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15833     postinstall_cmds='$RANLIB $lib'
15834   fi
15835   ;;
15836 aix[4-9]*)
15837   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15838     test "$enable_shared" = yes && enable_static=no
15839   fi
15840   ;;
15841 esac
15842 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15843 echo "${ECHO_T}$enable_shared" >&6; }
15844
15845 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15846 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15847 # Make sure either enable_shared or enable_static is yes.
15848 test "$enable_shared" = yes || enable_static=yes
15849 { echo "$as_me:$LINENO: result: $enable_static" >&5
15850 echo "${ECHO_T}$enable_static" >&6; }
15851
15852 GCC_F77="$G77"
15853 LD_F77="$LD"
15854
15855 lt_prog_compiler_wl_F77=
15856 lt_prog_compiler_pic_F77=
15857 lt_prog_compiler_static_F77=
15858
15859 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15860 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15861  
15862   if test "$GCC" = yes; then
15863     lt_prog_compiler_wl_F77='-Wl,'
15864     lt_prog_compiler_static_F77='-static'
15865
15866     case $host_os in
15867       aix*)
15868       # All AIX code is PIC.
15869       if test "$host_cpu" = ia64; then
15870         # AIX 5 now supports IA64 processor
15871         lt_prog_compiler_static_F77='-Bstatic'
15872       fi
15873       ;;
15874
15875     amigaos*)
15876       # FIXME: we need at least 68020 code to build shared libraries, but
15877       # adding the `-m68020' flag to GCC prevents building anything better,
15878       # like `-m68040'.
15879       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15880       ;;
15881
15882     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15883       # PIC is the default for these OSes.
15884       ;;
15885
15886     mingw* | cygwin* | pw32* | os2*)
15887       # This hack is so that the source file can tell whether it is being
15888       # built for inclusion in a dll (and should export symbols for example).
15889       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15890       # (--disable-auto-import) libraries
15891       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15892       ;;
15893
15894     darwin* | rhapsody*)
15895       # PIC is the default on this platform
15896       # Common symbols not allowed in MH_DYLIB files
15897       lt_prog_compiler_pic_F77='-fno-common'
15898       ;;
15899
15900     interix[3-9]*)
15901       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15902       # Instead, we relocate shared libraries at runtime.
15903       ;;
15904
15905     msdosdjgpp*)
15906       # Just because we use GCC doesn't mean we suddenly get shared libraries
15907       # on systems that don't support them.
15908       lt_prog_compiler_can_build_shared_F77=no
15909       enable_shared=no
15910       ;;
15911
15912     sysv4*MP*)
15913       if test -d /usr/nec; then
15914         lt_prog_compiler_pic_F77=-Kconform_pic
15915       fi
15916       ;;
15917
15918     hpux*)
15919       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15920       # not for PA HP-UX.
15921       case $host_cpu in
15922       hppa*64*|ia64*)
15923         # +Z the default
15924         ;;
15925       *)
15926         lt_prog_compiler_pic_F77='-fPIC'
15927         ;;
15928       esac
15929       ;;
15930
15931     *)
15932       lt_prog_compiler_pic_F77='-fPIC'
15933       ;;
15934     esac
15935   else
15936     # PORTME Check for flag to pass linker flags through the system compiler.
15937     case $host_os in
15938     aix*)
15939       lt_prog_compiler_wl_F77='-Wl,'
15940       if test "$host_cpu" = ia64; then
15941         # AIX 5 now supports IA64 processor
15942         lt_prog_compiler_static_F77='-Bstatic'
15943       else
15944         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15945       fi
15946       ;;
15947       darwin*)
15948         # PIC is the default on this platform
15949         # Common symbols not allowed in MH_DYLIB files
15950        case $cc_basename in
15951          xlc*)
15952          lt_prog_compiler_pic_F77='-qnocommon'
15953          lt_prog_compiler_wl_F77='-Wl,'
15954          ;;
15955        esac
15956        ;;
15957
15958     mingw* | cygwin* | pw32* | os2*)
15959       # This hack is so that the source file can tell whether it is being
15960       # built for inclusion in a dll (and should export symbols for example).
15961       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15962       ;;
15963
15964     hpux9* | hpux10* | hpux11*)
15965       lt_prog_compiler_wl_F77='-Wl,'
15966       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15967       # not for PA HP-UX.
15968       case $host_cpu in
15969       hppa*64*|ia64*)
15970         # +Z the default
15971         ;;
15972       *)
15973         lt_prog_compiler_pic_F77='+Z'
15974         ;;
15975       esac
15976       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15977       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15978       ;;
15979
15980     irix5* | irix6* | nonstopux*)
15981       lt_prog_compiler_wl_F77='-Wl,'
15982       # PIC (with -KPIC) is the default.
15983       lt_prog_compiler_static_F77='-non_shared'
15984       ;;
15985
15986     newsos6)
15987       lt_prog_compiler_pic_F77='-KPIC'
15988       lt_prog_compiler_static_F77='-Bstatic'
15989       ;;
15990
15991     linux* | k*bsd*-gnu)
15992       case $cc_basename in
15993       icc* | ecc*)
15994         lt_prog_compiler_wl_F77='-Wl,'
15995         lt_prog_compiler_pic_F77='-KPIC'
15996         lt_prog_compiler_static_F77='-static'
15997         ;;
15998       pgcc* | pgf77* | pgf90* | pgf95*)
15999         # Portland Group compilers (*not* the Pentium gcc compiler,
16000         # which looks to be a dead project)
16001         lt_prog_compiler_wl_F77='-Wl,'
16002         lt_prog_compiler_pic_F77='-fpic'
16003         lt_prog_compiler_static_F77='-Bstatic'
16004         ;;
16005       ccc*)
16006         lt_prog_compiler_wl_F77='-Wl,'
16007         # All Alpha code is PIC.
16008         lt_prog_compiler_static_F77='-non_shared'
16009         ;;
16010       *)
16011         case `$CC -V 2>&1 | sed 5q` in
16012         *Sun\ C*)
16013           # Sun C 5.9
16014           lt_prog_compiler_pic_F77='-KPIC'
16015           lt_prog_compiler_static_F77='-Bstatic'
16016           lt_prog_compiler_wl_F77='-Wl,'
16017           ;;
16018         *Sun\ F*)
16019           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16020           lt_prog_compiler_pic_F77='-KPIC'
16021           lt_prog_compiler_static_F77='-Bstatic'
16022           lt_prog_compiler_wl_F77=''
16023           ;;
16024         esac
16025         ;;
16026       esac
16027       ;;
16028
16029     osf3* | osf4* | osf5*)
16030       lt_prog_compiler_wl_F77='-Wl,'
16031       # All OSF/1 code is PIC.
16032       lt_prog_compiler_static_F77='-non_shared'
16033       ;;
16034
16035     rdos*)
16036       lt_prog_compiler_static_F77='-non_shared'
16037       ;;
16038
16039     solaris*)
16040       lt_prog_compiler_pic_F77='-KPIC'
16041       lt_prog_compiler_static_F77='-Bstatic'
16042       case $cc_basename in
16043       f77* | f90* | f95*)
16044         lt_prog_compiler_wl_F77='-Qoption ld ';;
16045       *)
16046         lt_prog_compiler_wl_F77='-Wl,';;
16047       esac
16048       ;;
16049
16050     sunos4*)
16051       lt_prog_compiler_wl_F77='-Qoption ld '
16052       lt_prog_compiler_pic_F77='-PIC'
16053       lt_prog_compiler_static_F77='-Bstatic'
16054       ;;
16055
16056     sysv4 | sysv4.2uw2* | sysv4.3*)
16057       lt_prog_compiler_wl_F77='-Wl,'
16058       lt_prog_compiler_pic_F77='-KPIC'
16059       lt_prog_compiler_static_F77='-Bstatic'
16060       ;;
16061
16062     sysv4*MP*)
16063       if test -d /usr/nec ;then
16064         lt_prog_compiler_pic_F77='-Kconform_pic'
16065         lt_prog_compiler_static_F77='-Bstatic'
16066       fi
16067       ;;
16068
16069     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16070       lt_prog_compiler_wl_F77='-Wl,'
16071       lt_prog_compiler_pic_F77='-KPIC'
16072       lt_prog_compiler_static_F77='-Bstatic'
16073       ;;
16074
16075     unicos*)
16076       lt_prog_compiler_wl_F77='-Wl,'
16077       lt_prog_compiler_can_build_shared_F77=no
16078       ;;
16079
16080     uts4*)
16081       lt_prog_compiler_pic_F77='-pic'
16082       lt_prog_compiler_static_F77='-Bstatic'
16083       ;;
16084
16085     *)
16086       lt_prog_compiler_can_build_shared_F77=no
16087       ;;
16088     esac
16089   fi
16090
16091 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16092 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16093
16094 #
16095 # Check to make sure the PIC flag actually works.
16096 #
16097 if test -n "$lt_prog_compiler_pic_F77"; then
16098   
16099 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16101 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16102   echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104   lt_cv_prog_compiler_pic_works_F77=no
16105   ac_outfile=conftest.$ac_objext
16106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16107    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16108    # Insert the option either (1) after the last *FLAGS variable, or
16109    # (2) before a word containing "conftest.", or (3) at the end.
16110    # Note that $ac_compile itself does not contain backslashes and begins
16111    # with a dollar sign (not a hyphen), so the echo should work correctly.
16112    # The option is referenced via a variable to avoid confusing sed.
16113    lt_compile=`echo "$ac_compile" | $SED \
16114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16116    -e 's:$: $lt_compiler_flag:'`
16117    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16118    (eval "$lt_compile" 2>conftest.err)
16119    ac_status=$?
16120    cat conftest.err >&5
16121    echo "$as_me:__oline__: \$? = $ac_status" >&5
16122    if (exit $ac_status) && test -s "$ac_outfile"; then
16123      # The compiler can only warn and ignore the option if not recognized
16124      # So say no if there are warnings other than the usual output.
16125      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16126      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16127      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16128        lt_cv_prog_compiler_pic_works_F77=yes
16129      fi
16130    fi
16131    $rm conftest*
16132
16133 fi
16134 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16135 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16136
16137 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16138     case $lt_prog_compiler_pic_F77 in
16139      "" | " "*) ;;
16140      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16141      esac
16142 else
16143     lt_prog_compiler_pic_F77=
16144      lt_prog_compiler_can_build_shared_F77=no
16145 fi
16146
16147 fi
16148 case $host_os in
16149   # For platforms which do not support PIC, -DPIC is meaningless:
16150   *djgpp*)
16151     lt_prog_compiler_pic_F77=
16152     ;;
16153   *)
16154     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16155     ;;
16156 esac
16157
16158 #
16159 # Check to make sure the static flag actually works.
16160 #
16161 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16162 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16163 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16164 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16165   echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167   lt_cv_prog_compiler_static_works_F77=no
16168    save_LDFLAGS="$LDFLAGS"
16169    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16170    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16171    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16172      # The linker can only warn and ignore the option if not recognized
16173      # So say no if there are warnings
16174      if test -s conftest.err; then
16175        # Append any errors to the config.log.
16176        cat conftest.err 1>&5
16177        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16178        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16179        if diff conftest.exp conftest.er2 >/dev/null; then
16180          lt_cv_prog_compiler_static_works_F77=yes
16181        fi
16182      else
16183        lt_cv_prog_compiler_static_works_F77=yes
16184      fi
16185    fi
16186    $rm -r conftest*
16187    LDFLAGS="$save_LDFLAGS"
16188
16189 fi
16190 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16191 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16192
16193 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16194     :
16195 else
16196     lt_prog_compiler_static_F77=
16197 fi
16198
16199
16200 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16202 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16203   echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205   lt_cv_prog_compiler_c_o_F77=no
16206    $rm -r conftest 2>/dev/null
16207    mkdir conftest
16208    cd conftest
16209    mkdir out
16210    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16211
16212    lt_compiler_flag="-o out/conftest2.$ac_objext"
16213    # Insert the option either (1) after the last *FLAGS variable, or
16214    # (2) before a word containing "conftest.", or (3) at the end.
16215    # Note that $ac_compile itself does not contain backslashes and begins
16216    # with a dollar sign (not a hyphen), so the echo should work correctly.
16217    lt_compile=`echo "$ac_compile" | $SED \
16218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16220    -e 's:$: $lt_compiler_flag:'`
16221    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16222    (eval "$lt_compile" 2>out/conftest.err)
16223    ac_status=$?
16224    cat out/conftest.err >&5
16225    echo "$as_me:__oline__: \$? = $ac_status" >&5
16226    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16227    then
16228      # The compiler can only warn and ignore the option if not recognized
16229      # So say no if there are warnings
16230      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16231      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16232      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16233        lt_cv_prog_compiler_c_o_F77=yes
16234      fi
16235    fi
16236    chmod u+w . 2>&5
16237    $rm conftest*
16238    # SGI C++ compiler will create directory out/ii_files/ for
16239    # template instantiation
16240    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16241    $rm out/* && rmdir out
16242    cd ..
16243    rmdir conftest
16244    $rm conftest*
16245
16246 fi
16247 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16249
16250
16251 hard_links="nottested"
16252 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16253   # do not overwrite the value of need_locks provided by the user
16254   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16255 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16256   hard_links=yes
16257   $rm conftest*
16258   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16259   touch conftest.a
16260   ln conftest.a conftest.b 2>&5 || hard_links=no
16261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16262   { echo "$as_me:$LINENO: result: $hard_links" >&5
16263 echo "${ECHO_T}$hard_links" >&6; }
16264   if test "$hard_links" = no; then
16265     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16266 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16267     need_locks=warn
16268   fi
16269 else
16270   need_locks=no
16271 fi
16272
16273 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16274 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16275
16276   runpath_var=
16277   allow_undefined_flag_F77=
16278   enable_shared_with_static_runtimes_F77=no
16279   archive_cmds_F77=
16280   archive_expsym_cmds_F77=
16281   old_archive_From_new_cmds_F77=
16282   old_archive_from_expsyms_cmds_F77=
16283   export_dynamic_flag_spec_F77=
16284   whole_archive_flag_spec_F77=
16285   thread_safe_flag_spec_F77=
16286   hardcode_libdir_flag_spec_F77=
16287   hardcode_libdir_flag_spec_ld_F77=
16288   hardcode_libdir_separator_F77=
16289   hardcode_direct_F77=no
16290   hardcode_minus_L_F77=no
16291   hardcode_shlibpath_var_F77=unsupported
16292   link_all_deplibs_F77=unknown
16293   hardcode_automatic_F77=no
16294   module_cmds_F77=
16295   module_expsym_cmds_F77=
16296   always_export_symbols_F77=no
16297   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16298   # include_expsyms should be a list of space-separated symbols to be *always*
16299   # included in the symbol list
16300   include_expsyms_F77=
16301   # exclude_expsyms can be an extended regexp of symbols to exclude
16302   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16303   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16304   # as well as any symbol that contains `d'.
16305   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16306   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16307   # platforms (ab)use it in PIC code, but their linkers get confused if
16308   # the symbol is explicitly referenced.  Since portable code cannot
16309   # rely on this symbol name, it's probably fine to never include it in
16310   # preloaded symbol tables.
16311   # Exclude shared library initialization/finalization symbols.
16312   extract_expsyms_cmds=
16313   # Just being paranoid about ensuring that cc_basename is set.
16314   for cc_temp in $compiler""; do
16315   case $cc_temp in
16316     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16317     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16318     \-*) ;;
16319     *) break;;
16320   esac
16321 done
16322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16323
16324   case $host_os in
16325   cygwin* | mingw* | pw32*)
16326     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16327     # When not using gcc, we currently assume that we are using
16328     # Microsoft Visual C++.
16329     if test "$GCC" != yes; then
16330       with_gnu_ld=no
16331     fi
16332     ;;
16333   interix*)
16334     # we just hope/assume this is gcc and not c89 (= MSVC++)
16335     with_gnu_ld=yes
16336     ;;
16337   openbsd*)
16338     with_gnu_ld=no
16339     ;;
16340   esac
16341
16342   ld_shlibs_F77=yes
16343   if test "$with_gnu_ld" = yes; then
16344     # If archive_cmds runs LD, not CC, wlarc should be empty
16345     wlarc='${wl}'
16346
16347     # Set some defaults for GNU ld with shared library support. These
16348     # are reset later if shared libraries are not supported. Putting them
16349     # here allows them to be overridden if necessary.
16350     runpath_var=LD_RUN_PATH
16351     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16352     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16353     # ancient GNU ld didn't support --whole-archive et. al.
16354     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16355         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16356       else
16357         whole_archive_flag_spec_F77=
16358     fi
16359     supports_anon_versioning=no
16360     case `$LD -v 2>/dev/null` in
16361       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16362       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16363       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16364       *\ 2.11.*) ;; # other 2.11 versions
16365       *) supports_anon_versioning=yes ;;
16366     esac
16367
16368     # See if GNU ld supports shared libraries.
16369     case $host_os in
16370     aix[3-9]*)
16371       # On AIX/PPC, the GNU linker is very broken
16372       if test "$host_cpu" != ia64; then
16373         ld_shlibs_F77=no
16374         cat <<EOF 1>&2
16375
16376 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16377 *** to be unable to reliably create shared libraries on AIX.
16378 *** Therefore, libtool is disabling shared libraries support.  If you
16379 *** really care for shared libraries, you may want to modify your PATH
16380 *** so that a non-GNU linker is found, and then restart.
16381
16382 EOF
16383       fi
16384       ;;
16385
16386     amigaos*)
16387       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)'
16388       hardcode_libdir_flag_spec_F77='-L$libdir'
16389       hardcode_minus_L_F77=yes
16390
16391       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16392       # that the semantics of dynamic libraries on AmigaOS, at least up
16393       # to version 4, is to share data among multiple programs linked
16394       # with the same dynamic library.  Since this doesn't match the
16395       # behavior of shared libraries on other platforms, we can't use
16396       # them.
16397       ld_shlibs_F77=no
16398       ;;
16399
16400     beos*)
16401       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16402         allow_undefined_flag_F77=unsupported
16403         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16404         # support --undefined.  This deserves some investigation.  FIXME
16405         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16406       else
16407         ld_shlibs_F77=no
16408       fi
16409       ;;
16410
16411     cygwin* | mingw* | pw32*)
16412       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16413       # as there is no search path for DLLs.
16414       hardcode_libdir_flag_spec_F77='-L$libdir'
16415       allow_undefined_flag_F77=unsupported
16416       always_export_symbols_F77=no
16417       enable_shared_with_static_runtimes_F77=yes
16418       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16419
16420       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16421         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16422         # If the export-symbols file already is a .def file (1st line
16423         # is EXPORTS), use it as is; otherwise, prepend...
16424         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16425           cp $export_symbols $output_objdir/$soname.def;
16426         else
16427           echo EXPORTS > $output_objdir/$soname.def;
16428           cat $export_symbols >> $output_objdir/$soname.def;
16429         fi~
16430         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16431       else
16432         ld_shlibs_F77=no
16433       fi
16434       ;;
16435
16436     interix[3-9]*)
16437       hardcode_direct_F77=no
16438       hardcode_shlibpath_var_F77=no
16439       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16440       export_dynamic_flag_spec_F77='${wl}-E'
16441       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16442       # Instead, shared libraries are loaded at an image base (0x10000000 by
16443       # default) and relocated if they conflict, which is a slow very memory
16444       # consuming and fragmenting process.  To avoid this, we pick a random,
16445       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16446       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16447       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'
16448       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'
16449       ;;
16450
16451     gnu* | linux* | k*bsd*-gnu)
16452       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16453         tmp_addflag=
16454         case $cc_basename,$host_cpu in
16455         pgcc*)                          # Portland Group C compiler
16456           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'
16457           tmp_addflag=' $pic_flag'
16458           ;;
16459         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16460           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'
16461           tmp_addflag=' $pic_flag -Mnomain' ;;
16462         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16463           tmp_addflag=' -i_dynamic' ;;
16464         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16465           tmp_addflag=' -i_dynamic -nofor_main' ;;
16466         ifc* | ifort*)                  # Intel Fortran compiler
16467           tmp_addflag=' -nofor_main' ;;
16468         esac
16469         case `$CC -V 2>&1 | sed 5q` in
16470         *Sun\ C*)                       # Sun C 5.9
16471           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16472           tmp_sharedflag='-G' ;;
16473         *Sun\ F*)                       # Sun Fortran 8.3
16474           tmp_sharedflag='-G' ;;
16475         *)
16476           tmp_sharedflag='-shared' ;;
16477         esac
16478         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16479
16480         if test $supports_anon_versioning = yes; then
16481           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16482   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16483   $echo "local: *; };" >> $output_objdir/$libname.ver~
16484           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16485         fi
16486       else
16487         ld_shlibs_F77=no
16488       fi
16489       ;;
16490
16491     netbsd*)
16492       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16493         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16494         wlarc=
16495       else
16496         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16497         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16498       fi
16499       ;;
16500
16501     solaris*)
16502       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16503         ld_shlibs_F77=no
16504         cat <<EOF 1>&2
16505
16506 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16507 *** create shared libraries on Solaris systems.  Therefore, libtool
16508 *** is disabling shared libraries support.  We urge you to upgrade GNU
16509 *** binutils to release 2.9.1 or newer.  Another option is to modify
16510 *** your PATH or compiler configuration so that the native linker is
16511 *** used, and then restart.
16512
16513 EOF
16514       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16515         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16516         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16517       else
16518         ld_shlibs_F77=no
16519       fi
16520       ;;
16521
16522     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16523       case `$LD -v 2>&1` in
16524         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16525         ld_shlibs_F77=no
16526         cat <<_LT_EOF 1>&2
16527
16528 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16529 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16530 *** is disabling shared libraries support.  We urge you to upgrade GNU
16531 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16532 *** your PATH or compiler configuration so that the native linker is
16533 *** used, and then restart.
16534
16535 _LT_EOF
16536         ;;
16537         *)
16538           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16539             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16540             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16541             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16542           else
16543             ld_shlibs_F77=no
16544           fi
16545         ;;
16546       esac
16547       ;;
16548
16549     sunos4*)
16550       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16551       wlarc=
16552       hardcode_direct_F77=yes
16553       hardcode_shlibpath_var_F77=no
16554       ;;
16555
16556     *)
16557       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16558         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16559         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16560       else
16561         ld_shlibs_F77=no
16562       fi
16563       ;;
16564     esac
16565
16566     if test "$ld_shlibs_F77" = no; then
16567       runpath_var=
16568       hardcode_libdir_flag_spec_F77=
16569       export_dynamic_flag_spec_F77=
16570       whole_archive_flag_spec_F77=
16571     fi
16572   else
16573     # PORTME fill in a description of your system's linker (not GNU ld)
16574     case $host_os in
16575     aix3*)
16576       allow_undefined_flag_F77=unsupported
16577       always_export_symbols_F77=yes
16578       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'
16579       # Note: this linker hardcodes the directories in LIBPATH if there
16580       # are no directories specified by -L.
16581       hardcode_minus_L_F77=yes
16582       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16583         # Neither direct hardcoding nor static linking is supported with a
16584         # broken collect2.
16585         hardcode_direct_F77=unsupported
16586       fi
16587       ;;
16588
16589     aix[4-9]*)
16590       if test "$host_cpu" = ia64; then
16591         # On IA64, the linker does run time linking by default, so we don't
16592         # have to do anything special.
16593         aix_use_runtimelinking=no
16594         exp_sym_flag='-Bexport'
16595         no_entry_flag=""
16596       else
16597         # If we're using GNU nm, then we don't want the "-C" option.
16598         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16599         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16600           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'
16601         else
16602           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'
16603         fi
16604         aix_use_runtimelinking=no
16605
16606         # Test if we are trying to use run time linking or normal
16607         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16608         # need to do runtime linking.
16609         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16610           for ld_flag in $LDFLAGS; do
16611           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16612             aix_use_runtimelinking=yes
16613             break
16614           fi
16615           done
16616           ;;
16617         esac
16618
16619         exp_sym_flag='-bexport'
16620         no_entry_flag='-bnoentry'
16621       fi
16622
16623       # When large executables or shared objects are built, AIX ld can
16624       # have problems creating the table of contents.  If linking a library
16625       # or program results in "error TOC overflow" add -mminimal-toc to
16626       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16627       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16628
16629       archive_cmds_F77=''
16630       hardcode_direct_F77=yes
16631       hardcode_libdir_separator_F77=':'
16632       link_all_deplibs_F77=yes
16633
16634       if test "$GCC" = yes; then
16635         case $host_os in aix4.[012]|aix4.[012].*)
16636         # We only want to do this on AIX 4.2 and lower, the check
16637         # below for broken collect2 doesn't work under 4.3+
16638           collect2name=`${CC} -print-prog-name=collect2`
16639           if test -f "$collect2name" && \
16640            strings "$collect2name" | grep resolve_lib_name >/dev/null
16641           then
16642           # We have reworked collect2
16643           :
16644           else
16645           # We have old collect2
16646           hardcode_direct_F77=unsupported
16647           # It fails to find uninstalled libraries when the uninstalled
16648           # path is not listed in the libpath.  Setting hardcode_minus_L
16649           # to unsupported forces relinking
16650           hardcode_minus_L_F77=yes
16651           hardcode_libdir_flag_spec_F77='-L$libdir'
16652           hardcode_libdir_separator_F77=
16653           fi
16654           ;;
16655         esac
16656         shared_flag='-shared'
16657         if test "$aix_use_runtimelinking" = yes; then
16658           shared_flag="$shared_flag "'${wl}-G'
16659         fi
16660       else
16661         # not using gcc
16662         if test "$host_cpu" = ia64; then
16663         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16664         # chokes on -Wl,-G. The following line is correct:
16665           shared_flag='-G'
16666         else
16667           if test "$aix_use_runtimelinking" = yes; then
16668             shared_flag='${wl}-G'
16669           else
16670             shared_flag='${wl}-bM:SRE'
16671           fi
16672         fi
16673       fi
16674
16675       # It seems that -bexpall does not export symbols beginning with
16676       # underscore (_), so it is better to generate a list of symbols to export.
16677       always_export_symbols_F77=yes
16678       if test "$aix_use_runtimelinking" = yes; then
16679         # Warning - without using the other runtime loading flags (-brtl),
16680         # -berok will link without error, but may produce a broken library.
16681         allow_undefined_flag_F77='-berok'
16682        # Determine the default libpath from the value encoded in an empty executable.
16683        cat >conftest.$ac_ext <<_ACEOF
16684       program main
16685
16686       end
16687 _ACEOF
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (ac_try="$ac_link"
16690 case "(($ac_try" in
16691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692   *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695   (eval "$ac_link") 2>conftest.er1
16696   ac_status=$?
16697   grep -v '^ *+' conftest.er1 >conftest.err
16698   rm -f conftest.er1
16699   cat conftest.err >&5
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } && {
16702          test -z "$ac_f77_werror_flag" ||
16703          test ! -s conftest.err
16704        } && test -s conftest$ac_exeext &&
16705        $as_test_x conftest$ac_exeext; then
16706   
16707 lt_aix_libpath_sed='
16708     /Import File Strings/,/^$/ {
16709         /^0/ {
16710             s/^0  *\(.*\)$/\1/
16711             p
16712         }
16713     }'
16714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16715 # Check for a 64-bit object if we didn't find anything.
16716 if test -z "$aix_libpath"; then
16717   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16718 fi
16719 else
16720   echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16722
16723         
16724 fi
16725
16726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16727       conftest$ac_exeext conftest.$ac_ext
16728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16729
16730        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16731         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"
16732        else
16733         if test "$host_cpu" = ia64; then
16734           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16735           allow_undefined_flag_F77="-z nodefs"
16736           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"
16737         else
16738          # Determine the default libpath from the value encoded in an empty executable.
16739          cat >conftest.$ac_ext <<_ACEOF
16740       program main
16741
16742       end
16743 _ACEOF
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (ac_try="$ac_link"
16746 case "(($ac_try" in
16747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748   *) ac_try_echo=$ac_try;;
16749 esac
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751   (eval "$ac_link") 2>conftest.er1
16752   ac_status=$?
16753   grep -v '^ *+' conftest.er1 >conftest.err
16754   rm -f conftest.er1
16755   cat conftest.err >&5
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); } && {
16758          test -z "$ac_f77_werror_flag" ||
16759          test ! -s conftest.err
16760        } && test -s conftest$ac_exeext &&
16761        $as_test_x conftest$ac_exeext; then
16762   
16763 lt_aix_libpath_sed='
16764     /Import File Strings/,/^$/ {
16765         /^0/ {
16766             s/^0  *\(.*\)$/\1/
16767             p
16768         }
16769     }'
16770 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16771 # Check for a 64-bit object if we didn't find anything.
16772 if test -z "$aix_libpath"; then
16773   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16774 fi
16775 else
16776   echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779         
16780 fi
16781
16782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16783       conftest$ac_exeext conftest.$ac_ext
16784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16785
16786          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16787           # Warning - without using the other run time loading flags,
16788           # -berok will link without error, but may produce a broken library.
16789           no_undefined_flag_F77=' ${wl}-bernotok'
16790           allow_undefined_flag_F77=' ${wl}-berok'
16791           # Exported symbols can be pulled into shared objects from archives
16792           whole_archive_flag_spec_F77='$convenience'
16793           archive_cmds_need_lc_F77=yes
16794           # This is similar to how AIX traditionally builds its shared libraries.
16795           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'
16796         fi
16797       fi
16798       ;;
16799
16800     amigaos*)
16801       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)'
16802       hardcode_libdir_flag_spec_F77='-L$libdir'
16803       hardcode_minus_L_F77=yes
16804       # see comment about different semantics on the GNU ld section
16805       ld_shlibs_F77=no
16806       ;;
16807
16808     bsdi[45]*)
16809       export_dynamic_flag_spec_F77=-rdynamic
16810       ;;
16811
16812     cygwin* | mingw* | pw32*)
16813       # When not using gcc, we currently assume that we are using
16814       # Microsoft Visual C++.
16815       # hardcode_libdir_flag_spec is actually meaningless, as there is
16816       # no search path for DLLs.
16817       hardcode_libdir_flag_spec_F77=' '
16818       allow_undefined_flag_F77=unsupported
16819       # Tell ltmain to make .lib files, not .a files.
16820       libext=lib
16821       # Tell ltmain to make .dll files, not .so files.
16822       shrext_cmds=".dll"
16823       # FIXME: Setting linknames here is a bad hack.
16824       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16825       # The linker will automatically build a .lib file if we build a DLL.
16826       old_archive_From_new_cmds_F77='true'
16827       # FIXME: Should let the user specify the lib program.
16828       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16829       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16830       enable_shared_with_static_runtimes_F77=yes
16831       ;;
16832
16833     darwin* | rhapsody*)
16834       case $host_os in
16835         rhapsody* | darwin1.[012])
16836          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16837          ;;
16838        *) # Darwin 1.3 on
16839          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16840            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16841          else
16842            case ${MACOSX_DEPLOYMENT_TARGET} in
16843              10.[012])
16844                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16845                ;;
16846              10.*)
16847                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16848                ;;
16849            esac
16850          fi
16851          ;;
16852       esac
16853       archive_cmds_need_lc_F77=no
16854       hardcode_direct_F77=no
16855       hardcode_automatic_F77=yes
16856       hardcode_shlibpath_var_F77=unsupported
16857       whole_archive_flag_spec_F77=''
16858       link_all_deplibs_F77=yes
16859     if test "$GCC" = yes ; then
16860         output_verbose_link_cmd='echo'
16861         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16862         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16863         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16864         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16865     else
16866       case $cc_basename in
16867         xlc*)
16868          output_verbose_link_cmd='echo'
16869          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16870          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16871           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16872          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16873           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}'
16874           ;;
16875        *)
16876          ld_shlibs_F77=no
16877           ;;
16878       esac
16879     fi
16880       ;;
16881
16882     dgux*)
16883       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884       hardcode_libdir_flag_spec_F77='-L$libdir'
16885       hardcode_shlibpath_var_F77=no
16886       ;;
16887
16888     freebsd1*)
16889       ld_shlibs_F77=no
16890       ;;
16891
16892     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16893     # support.  Future versions do this automatically, but an explicit c++rt0.o
16894     # does not break anything, and helps significantly (at the cost of a little
16895     # extra space).
16896     freebsd2.2*)
16897       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16898       hardcode_libdir_flag_spec_F77='-R$libdir'
16899       hardcode_direct_F77=yes
16900       hardcode_shlibpath_var_F77=no
16901       ;;
16902
16903     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16904     freebsd2*)
16905       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16906       hardcode_direct_F77=yes
16907       hardcode_minus_L_F77=yes
16908       hardcode_shlibpath_var_F77=no
16909       ;;
16910
16911     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16912     freebsd* | dragonfly*)
16913       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16914       hardcode_libdir_flag_spec_F77='-R$libdir'
16915       hardcode_direct_F77=yes
16916       hardcode_shlibpath_var_F77=no
16917       ;;
16918
16919     hpux9*)
16920       if test "$GCC" = yes; then
16921         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'
16922       else
16923         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'
16924       fi
16925       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16926       hardcode_libdir_separator_F77=:
16927       hardcode_direct_F77=yes
16928
16929       # hardcode_minus_L: Not really in the search PATH,
16930       # but as the default location of the library.
16931       hardcode_minus_L_F77=yes
16932       export_dynamic_flag_spec_F77='${wl}-E'
16933       ;;
16934
16935     hpux10*)
16936       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16937         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16938       else
16939         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16940       fi
16941       if test "$with_gnu_ld" = no; then
16942         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16943         hardcode_libdir_separator_F77=:
16944
16945         hardcode_direct_F77=yes
16946         export_dynamic_flag_spec_F77='${wl}-E'
16947
16948         # hardcode_minus_L: Not really in the search PATH,
16949         # but as the default location of the library.
16950         hardcode_minus_L_F77=yes
16951       fi
16952       ;;
16953
16954     hpux11*)
16955       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16956         case $host_cpu in
16957         hppa*64*)
16958           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16959           ;;
16960         ia64*)
16961           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16962           ;;
16963         *)
16964           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16965           ;;
16966         esac
16967       else
16968         case $host_cpu in
16969         hppa*64*)
16970           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16971           ;;
16972         ia64*)
16973           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16974           ;;
16975         *)
16976           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16977           ;;
16978         esac
16979       fi
16980       if test "$with_gnu_ld" = no; then
16981         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16982         hardcode_libdir_separator_F77=:
16983
16984         case $host_cpu in
16985         hppa*64*|ia64*)
16986           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16987           hardcode_direct_F77=no
16988           hardcode_shlibpath_var_F77=no
16989           ;;
16990         *)
16991           hardcode_direct_F77=yes
16992           export_dynamic_flag_spec_F77='${wl}-E'
16993
16994           # hardcode_minus_L: Not really in the search PATH,
16995           # but as the default location of the library.
16996           hardcode_minus_L_F77=yes
16997           ;;
16998         esac
16999       fi
17000       ;;
17001
17002     irix5* | irix6* | nonstopux*)
17003       if test "$GCC" = yes; then
17004         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'
17005       else
17006         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'
17007         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17008       fi
17009       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17010       hardcode_libdir_separator_F77=:
17011       link_all_deplibs_F77=yes
17012       ;;
17013
17014     netbsd*)
17015       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17016         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17017       else
17018         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17019       fi
17020       hardcode_libdir_flag_spec_F77='-R$libdir'
17021       hardcode_direct_F77=yes
17022       hardcode_shlibpath_var_F77=no
17023       ;;
17024
17025     newsos6)
17026       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17027       hardcode_direct_F77=yes
17028       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17029       hardcode_libdir_separator_F77=:
17030       hardcode_shlibpath_var_F77=no
17031       ;;
17032
17033     openbsd*)
17034       if test -f /usr/libexec/ld.so; then
17035         hardcode_direct_F77=yes
17036         hardcode_shlibpath_var_F77=no
17037         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17038           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17039           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17040           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17041           export_dynamic_flag_spec_F77='${wl}-E'
17042         else
17043           case $host_os in
17044            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17045              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17046              hardcode_libdir_flag_spec_F77='-R$libdir'
17047              ;;
17048            *)
17049              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17050              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17051              ;;
17052           esac
17053         fi
17054       else
17055         ld_shlibs_F77=no
17056       fi
17057       ;;
17058
17059     os2*)
17060       hardcode_libdir_flag_spec_F77='-L$libdir'
17061       hardcode_minus_L_F77=yes
17062       allow_undefined_flag_F77=unsupported
17063       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'
17064       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17065       ;;
17066
17067     osf3*)
17068       if test "$GCC" = yes; then
17069         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17070         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'
17071       else
17072         allow_undefined_flag_F77=' -expect_unresolved \*'
17073         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'
17074       fi
17075       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17076       hardcode_libdir_separator_F77=:
17077       ;;
17078
17079     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17080       if test "$GCC" = yes; then
17081         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17082         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'
17083         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17084       else
17085         allow_undefined_flag_F77=' -expect_unresolved \*'
17086         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'
17087         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~
17088         $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'
17089
17090         # Both c and cxx compiler support -rpath directly
17091         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17092       fi
17093       hardcode_libdir_separator_F77=:
17094       ;;
17095
17096     solaris*)
17097       no_undefined_flag_F77=' -z text'
17098       if test "$GCC" = yes; then
17099         wlarc='${wl}'
17100         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17101         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17102           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17103       else
17104         wlarc=''
17105         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17107         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17108       fi
17109       hardcode_libdir_flag_spec_F77='-R$libdir'
17110       hardcode_shlibpath_var_F77=no
17111       case $host_os in
17112       solaris2.[0-5] | solaris2.[0-5].*) ;;
17113       *)
17114         # The compiler driver will combine and reorder linker options,
17115         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17116         # but is careful enough not to reorder.
17117         # Supported since Solaris 2.6 (maybe 2.5.1?)
17118         if test "$GCC" = yes; then
17119           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17120         else
17121           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17122         fi
17123         ;;
17124       esac
17125       link_all_deplibs_F77=yes
17126       ;;
17127
17128     sunos4*)
17129       if test "x$host_vendor" = xsequent; then
17130         # Use $CC to link under sequent, because it throws in some extra .o
17131         # files that make .init and .fini sections work.
17132         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17133       else
17134         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17135       fi
17136       hardcode_libdir_flag_spec_F77='-L$libdir'
17137       hardcode_direct_F77=yes
17138       hardcode_minus_L_F77=yes
17139       hardcode_shlibpath_var_F77=no
17140       ;;
17141
17142     sysv4)
17143       case $host_vendor in
17144         sni)
17145           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17146           hardcode_direct_F77=yes # is this really true???
17147         ;;
17148         siemens)
17149           ## LD is ld it makes a PLAMLIB
17150           ## CC just makes a GrossModule.
17151           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17152           reload_cmds_F77='$CC -r -o $output$reload_objs'
17153           hardcode_direct_F77=no
17154         ;;
17155         motorola)
17156           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17157           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17158         ;;
17159       esac
17160       runpath_var='LD_RUN_PATH'
17161       hardcode_shlibpath_var_F77=no
17162       ;;
17163
17164     sysv4.3*)
17165       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17166       hardcode_shlibpath_var_F77=no
17167       export_dynamic_flag_spec_F77='-Bexport'
17168       ;;
17169
17170     sysv4*MP*)
17171       if test -d /usr/nec; then
17172         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17173         hardcode_shlibpath_var_F77=no
17174         runpath_var=LD_RUN_PATH
17175         hardcode_runpath_var=yes
17176         ld_shlibs_F77=yes
17177       fi
17178       ;;
17179
17180     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17181       no_undefined_flag_F77='${wl}-z,text'
17182       archive_cmds_need_lc_F77=no
17183       hardcode_shlibpath_var_F77=no
17184       runpath_var='LD_RUN_PATH'
17185
17186       if test "$GCC" = yes; then
17187         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17188         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17189       else
17190         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17191         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17192       fi
17193       ;;
17194
17195     sysv5* | sco3.2v5* | sco5v6*)
17196       # Note: We can NOT use -z defs as we might desire, because we do not
17197       # link with -lc, and that would cause any symbols used from libc to
17198       # always be unresolved, which means just about no library would
17199       # ever link correctly.  If we're not using GNU ld we use -z text
17200       # though, which does catch some bad symbols but isn't as heavy-handed
17201       # as -z defs.
17202       no_undefined_flag_F77='${wl}-z,text'
17203       allow_undefined_flag_F77='${wl}-z,nodefs'
17204       archive_cmds_need_lc_F77=no
17205       hardcode_shlibpath_var_F77=no
17206       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17207       hardcode_libdir_separator_F77=':'
17208       link_all_deplibs_F77=yes
17209       export_dynamic_flag_spec_F77='${wl}-Bexport'
17210       runpath_var='LD_RUN_PATH'
17211
17212       if test "$GCC" = yes; then
17213         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17214         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17215       else
17216         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17217         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17218       fi
17219       ;;
17220
17221     uts4*)
17222       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223       hardcode_libdir_flag_spec_F77='-L$libdir'
17224       hardcode_shlibpath_var_F77=no
17225       ;;
17226
17227     *)
17228       ld_shlibs_F77=no
17229       ;;
17230     esac
17231   fi
17232
17233 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17234 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17235 test "$ld_shlibs_F77" = no && can_build_shared=no
17236
17237 #
17238 # Do we need to explicitly link libc?
17239 #
17240 case "x$archive_cmds_need_lc_F77" in
17241 x|xyes)
17242   # Assume -lc should be added
17243   archive_cmds_need_lc_F77=yes
17244
17245   if test "$enable_shared" = yes && test "$GCC" = yes; then
17246     case $archive_cmds_F77 in
17247     *'~'*)
17248       # FIXME: we may have to deal with multi-command sequences.
17249       ;;
17250     '$CC '*)
17251       # Test whether the compiler implicitly links with -lc since on some
17252       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17253       # to ld, don't add -lc before -lgcc.
17254       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17255 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17256       $rm conftest*
17257       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17258
17259       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17260   (eval $ac_compile) 2>&5
17261   ac_status=$?
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } 2>conftest.err; then
17264         soname=conftest
17265         lib=conftest
17266         libobjs=conftest.$ac_objext
17267         deplibs=
17268         wl=$lt_prog_compiler_wl_F77
17269         pic_flag=$lt_prog_compiler_pic_F77
17270         compiler_flags=-v
17271         linker_flags=-v
17272         verstring=
17273         output_objdir=.
17274         libname=conftest
17275         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17276         allow_undefined_flag_F77=
17277         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17278   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }
17282         then
17283           archive_cmds_need_lc_F77=no
17284         else
17285           archive_cmds_need_lc_F77=yes
17286         fi
17287         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17288       else
17289         cat conftest.err 1>&5
17290       fi
17291       $rm conftest*
17292       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17293 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17294       ;;
17295     esac
17296   fi
17297   ;;
17298 esac
17299
17300 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17301 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17302 library_names_spec=
17303 libname_spec='lib$name'
17304 soname_spec=
17305 shrext_cmds=".so"
17306 postinstall_cmds=
17307 postuninstall_cmds=
17308 finish_cmds=
17309 finish_eval=
17310 shlibpath_var=
17311 shlibpath_overrides_runpath=unknown
17312 version_type=none
17313 dynamic_linker="$host_os ld.so"
17314 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17315
17316 need_lib_prefix=unknown
17317 hardcode_into_libs=no
17318
17319 # when you set need_version to no, make sure it does not cause -set_version
17320 # flags to be left without arguments
17321 need_version=unknown
17322
17323 case $host_os in
17324 aix3*)
17325   version_type=linux
17326   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17327   shlibpath_var=LIBPATH
17328
17329   # AIX 3 has no versioning support, so we append a major version to the name.
17330   soname_spec='${libname}${release}${shared_ext}$major'
17331   ;;
17332
17333 aix[4-9]*)
17334   version_type=linux
17335   need_lib_prefix=no
17336   need_version=no
17337   hardcode_into_libs=yes
17338   if test "$host_cpu" = ia64; then
17339     # AIX 5 supports IA64
17340     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17341     shlibpath_var=LD_LIBRARY_PATH
17342   else
17343     # With GCC up to 2.95.x, collect2 would create an import file
17344     # for dependence libraries.  The import file would start with
17345     # the line `#! .'.  This would cause the generated library to
17346     # depend on `.', always an invalid library.  This was fixed in
17347     # development snapshots of GCC prior to 3.0.
17348     case $host_os in
17349       aix4 | aix4.[01] | aix4.[01].*)
17350       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17351            echo ' yes '
17352            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17353         :
17354       else
17355         can_build_shared=no
17356       fi
17357       ;;
17358     esac
17359     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17360     # soname into executable. Probably we can add versioning support to
17361     # collect2, so additional links can be useful in future.
17362     if test "$aix_use_runtimelinking" = yes; then
17363       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17364       # instead of lib<name>.a to let people know that these are not
17365       # typical AIX shared libraries.
17366       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367     else
17368       # We preserve .a as extension for shared libraries through AIX4.2
17369       # and later when we are not doing run time linking.
17370       library_names_spec='${libname}${release}.a $libname.a'
17371       soname_spec='${libname}${release}${shared_ext}$major'
17372     fi
17373     shlibpath_var=LIBPATH
17374   fi
17375   ;;
17376
17377 amigaos*)
17378   library_names_spec='$libname.ixlibrary $libname.a'
17379   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17380   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'
17381   ;;
17382
17383 beos*)
17384   library_names_spec='${libname}${shared_ext}'
17385   dynamic_linker="$host_os ld.so"
17386   shlibpath_var=LIBRARY_PATH
17387   ;;
17388
17389 bsdi[45]*)
17390   version_type=linux
17391   need_version=no
17392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393   soname_spec='${libname}${release}${shared_ext}$major'
17394   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17395   shlibpath_var=LD_LIBRARY_PATH
17396   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17397   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17398   # the default ld.so.conf also contains /usr/contrib/lib and
17399   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17400   # libtool to hard-code these into programs
17401   ;;
17402
17403 cygwin* | mingw* | pw32*)
17404   version_type=windows
17405   shrext_cmds=".dll"
17406   need_version=no
17407   need_lib_prefix=no
17408
17409   case $GCC,$host_os in
17410   yes,cygwin* | yes,mingw* | yes,pw32*)
17411     library_names_spec='$libname.dll.a'
17412     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17413     postinstall_cmds='base_file=`basename \${file}`~
17414       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17415       dldir=$destdir/`dirname \$dlpath`~
17416       test -d \$dldir || mkdir -p \$dldir~
17417       $install_prog $dir/$dlname \$dldir/$dlname~
17418       chmod a+x \$dldir/$dlname'
17419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17420       dlpath=$dir/\$dldll~
17421        $rm \$dlpath'
17422     shlibpath_overrides_runpath=yes
17423
17424     case $host_os in
17425     cygwin*)
17426       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17427       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17428       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17429       ;;
17430     mingw*)
17431       # MinGW DLLs use traditional 'lib' prefix
17432       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17433       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17434       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17435         # It is most probably a Windows format PATH printed by
17436         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17437         # path with ; separators, and with drive letters. We can handle the
17438         # drive letters (cygwin fileutils understands them), so leave them,
17439         # especially as we might pass files found there to a mingw objdump,
17440         # which wouldn't understand a cygwinified path. Ahh.
17441         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17442       else
17443         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17444       fi
17445       ;;
17446     pw32*)
17447       # pw32 DLLs use 'pw' prefix rather than 'lib'
17448       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17449       ;;
17450     esac
17451     ;;
17452
17453   *)
17454     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17455     ;;
17456   esac
17457   dynamic_linker='Win32 ld.exe'
17458   # FIXME: first we should search . and the directory the executable is in
17459   shlibpath_var=PATH
17460   ;;
17461
17462 darwin* | rhapsody*)
17463   dynamic_linker="$host_os dyld"
17464   version_type=darwin
17465   need_lib_prefix=no
17466   need_version=no
17467   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17468   soname_spec='${libname}${release}${major}$shared_ext'
17469   shlibpath_overrides_runpath=yes
17470   shlibpath_var=DYLD_LIBRARY_PATH
17471   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17472    
17473   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17474   ;;
17475
17476 dgux*)
17477   version_type=linux
17478   need_lib_prefix=no
17479   need_version=no
17480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17481   soname_spec='${libname}${release}${shared_ext}$major'
17482   shlibpath_var=LD_LIBRARY_PATH
17483   ;;
17484
17485 freebsd1*)
17486   dynamic_linker=no
17487   ;;
17488
17489 freebsd* | dragonfly*)
17490   # DragonFly does not have aout.  When/if they implement a new
17491   # versioning mechanism, adjust this.
17492   if test -x /usr/bin/objformat; then
17493     objformat=`/usr/bin/objformat`
17494   else
17495     case $host_os in
17496     freebsd[123]*) objformat=aout ;;
17497     *) objformat=elf ;;
17498     esac
17499   fi
17500   version_type=freebsd-$objformat
17501   case $version_type in
17502     freebsd-elf*)
17503       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17504       need_version=no
17505       need_lib_prefix=no
17506       ;;
17507     freebsd-*)
17508       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17509       need_version=yes
17510       ;;
17511   esac
17512   shlibpath_var=LD_LIBRARY_PATH
17513   case $host_os in
17514   freebsd2*)
17515     shlibpath_overrides_runpath=yes
17516     ;;
17517   freebsd3.[01]* | freebsdelf3.[01]*)
17518     shlibpath_overrides_runpath=yes
17519     hardcode_into_libs=yes
17520     ;;
17521   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17522   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17523     shlibpath_overrides_runpath=no
17524     hardcode_into_libs=yes
17525     ;;
17526   *) # from 4.6 on, and DragonFly
17527     shlibpath_overrides_runpath=yes
17528     hardcode_into_libs=yes
17529     ;;
17530   esac
17531   ;;
17532
17533 gnu*)
17534   version_type=linux
17535   need_lib_prefix=no
17536   need_version=no
17537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17538   soname_spec='${libname}${release}${shared_ext}$major'
17539   shlibpath_var=LD_LIBRARY_PATH
17540   hardcode_into_libs=yes
17541   ;;
17542
17543 hpux9* | hpux10* | hpux11*)
17544   # Give a soname corresponding to the major version so that dld.sl refuses to
17545   # link against other versions.
17546   version_type=sunos
17547   need_lib_prefix=no
17548   need_version=no
17549   case $host_cpu in
17550   ia64*)
17551     shrext_cmds='.so'
17552     hardcode_into_libs=yes
17553     dynamic_linker="$host_os dld.so"
17554     shlibpath_var=LD_LIBRARY_PATH
17555     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557     soname_spec='${libname}${release}${shared_ext}$major'
17558     if test "X$HPUX_IA64_MODE" = X32; then
17559       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17560     else
17561       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17562     fi
17563     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17564     ;;
17565    hppa*64*)
17566      shrext_cmds='.sl'
17567      hardcode_into_libs=yes
17568      dynamic_linker="$host_os dld.sl"
17569      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17570      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17572      soname_spec='${libname}${release}${shared_ext}$major'
17573      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17574      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17575      ;;
17576    *)
17577     shrext_cmds='.sl'
17578     dynamic_linker="$host_os dld.sl"
17579     shlibpath_var=SHLIB_PATH
17580     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17582     soname_spec='${libname}${release}${shared_ext}$major'
17583     ;;
17584   esac
17585   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17586   postinstall_cmds='chmod 555 $lib'
17587   ;;
17588
17589 interix[3-9]*)
17590   version_type=linux
17591   need_lib_prefix=no
17592   need_version=no
17593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17594   soname_spec='${libname}${release}${shared_ext}$major'
17595   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17596   shlibpath_var=LD_LIBRARY_PATH
17597   shlibpath_overrides_runpath=no
17598   hardcode_into_libs=yes
17599   ;;
17600
17601 irix5* | irix6* | nonstopux*)
17602   case $host_os in
17603     nonstopux*) version_type=nonstopux ;;
17604     *)
17605         if test "$lt_cv_prog_gnu_ld" = yes; then
17606                 version_type=linux
17607         else
17608                 version_type=irix
17609         fi ;;
17610   esac
17611   need_lib_prefix=no
17612   need_version=no
17613   soname_spec='${libname}${release}${shared_ext}$major'
17614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17615   case $host_os in
17616   irix5* | nonstopux*)
17617     libsuff= shlibsuff=
17618     ;;
17619   *)
17620     case $LD in # libtool.m4 will add one of these switches to LD
17621     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17622       libsuff= shlibsuff= libmagic=32-bit;;
17623     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17624       libsuff=32 shlibsuff=N32 libmagic=N32;;
17625     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17626       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17627     *) libsuff= shlibsuff= libmagic=never-match;;
17628     esac
17629     ;;
17630   esac
17631   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17632   shlibpath_overrides_runpath=no
17633   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17634   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17635   hardcode_into_libs=yes
17636   ;;
17637
17638 # No shared lib support for Linux oldld, aout, or coff.
17639 linux*oldld* | linux*aout* | linux*coff*)
17640   dynamic_linker=no
17641   ;;
17642
17643 # This must be Linux ELF.
17644 linux* | k*bsd*-gnu)
17645   version_type=linux
17646   need_lib_prefix=no
17647   need_version=no
17648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649   soname_spec='${libname}${release}${shared_ext}$major'
17650   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17651   shlibpath_var=LD_LIBRARY_PATH
17652   shlibpath_overrides_runpath=no
17653   # This implies no fast_install, which is unacceptable.
17654   # Some rework will be needed to allow for fast_install
17655   # before this can be enabled.
17656   hardcode_into_libs=yes
17657
17658   # Append ld.so.conf contents to the search path
17659   if test -f /etc/ld.so.conf; then
17660     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17661     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17662   fi
17663
17664   # We used to test for /lib/ld.so.1 and disable shared libraries on
17665   # powerpc, because MkLinux only supported shared libraries with the
17666   # GNU dynamic linker.  Since this was broken with cross compilers,
17667   # most powerpc-linux boxes support dynamic linking these days and
17668   # people can always --disable-shared, the test was removed, and we
17669   # assume the GNU/Linux dynamic linker is in use.
17670   dynamic_linker='GNU/Linux ld.so'
17671   ;;
17672
17673 netbsd*)
17674   version_type=sunos
17675   need_lib_prefix=no
17676   need_version=no
17677   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17679     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17680     dynamic_linker='NetBSD (a.out) ld.so'
17681   else
17682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17683     soname_spec='${libname}${release}${shared_ext}$major'
17684     dynamic_linker='NetBSD ld.elf_so'
17685   fi
17686   shlibpath_var=LD_LIBRARY_PATH
17687   shlibpath_overrides_runpath=yes
17688   hardcode_into_libs=yes
17689   ;;
17690
17691 newsos6)
17692   version_type=linux
17693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17694   shlibpath_var=LD_LIBRARY_PATH
17695   shlibpath_overrides_runpath=yes
17696   ;;
17697
17698 nto-qnx*)
17699   version_type=linux
17700   need_lib_prefix=no
17701   need_version=no
17702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703   soname_spec='${libname}${release}${shared_ext}$major'
17704   shlibpath_var=LD_LIBRARY_PATH
17705   shlibpath_overrides_runpath=yes
17706   ;;
17707
17708 openbsd*)
17709   version_type=sunos
17710   sys_lib_dlsearch_path_spec="/usr/lib"
17711   need_lib_prefix=no
17712   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17713   case $host_os in
17714     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17715     *)                         need_version=no  ;;
17716   esac
17717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17718   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17719   shlibpath_var=LD_LIBRARY_PATH
17720   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17721     case $host_os in
17722       openbsd2.[89] | openbsd2.[89].*)
17723         shlibpath_overrides_runpath=no
17724         ;;
17725       *)
17726         shlibpath_overrides_runpath=yes
17727         ;;
17728       esac
17729   else
17730     shlibpath_overrides_runpath=yes
17731   fi
17732   ;;
17733
17734 os2*)
17735   libname_spec='$name'
17736   shrext_cmds=".dll"
17737   need_lib_prefix=no
17738   library_names_spec='$libname${shared_ext} $libname.a'
17739   dynamic_linker='OS/2 ld.exe'
17740   shlibpath_var=LIBPATH
17741   ;;
17742
17743 osf3* | osf4* | osf5*)
17744   version_type=osf
17745   need_lib_prefix=no
17746   need_version=no
17747   soname_spec='${libname}${release}${shared_ext}$major'
17748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749   shlibpath_var=LD_LIBRARY_PATH
17750   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17751   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17752   ;;
17753
17754 rdos*)
17755   dynamic_linker=no
17756   ;;
17757
17758 solaris*)
17759   version_type=linux
17760   need_lib_prefix=no
17761   need_version=no
17762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17763   soname_spec='${libname}${release}${shared_ext}$major'
17764   shlibpath_var=LD_LIBRARY_PATH
17765   shlibpath_overrides_runpath=yes
17766   hardcode_into_libs=yes
17767   # ldd complains unless libraries are executable
17768   postinstall_cmds='chmod +x $lib'
17769   ;;
17770
17771 sunos4*)
17772   version_type=sunos
17773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17774   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17775   shlibpath_var=LD_LIBRARY_PATH
17776   shlibpath_overrides_runpath=yes
17777   if test "$with_gnu_ld" = yes; then
17778     need_lib_prefix=no
17779   fi
17780   need_version=yes
17781   ;;
17782
17783 sysv4 | sysv4.3*)
17784   version_type=linux
17785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786   soname_spec='${libname}${release}${shared_ext}$major'
17787   shlibpath_var=LD_LIBRARY_PATH
17788   case $host_vendor in
17789     sni)
17790       shlibpath_overrides_runpath=no
17791       need_lib_prefix=no
17792       export_dynamic_flag_spec='${wl}-Blargedynsym'
17793       runpath_var=LD_RUN_PATH
17794       ;;
17795     siemens)
17796       need_lib_prefix=no
17797       ;;
17798     motorola)
17799       need_lib_prefix=no
17800       need_version=no
17801       shlibpath_overrides_runpath=no
17802       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17803       ;;
17804   esac
17805   ;;
17806
17807 sysv4*MP*)
17808   if test -d /usr/nec ;then
17809     version_type=linux
17810     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17811     soname_spec='$libname${shared_ext}.$major'
17812     shlibpath_var=LD_LIBRARY_PATH
17813   fi
17814   ;;
17815
17816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17817   version_type=freebsd-elf
17818   need_lib_prefix=no
17819   need_version=no
17820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17821   soname_spec='${libname}${release}${shared_ext}$major'
17822   shlibpath_var=LD_LIBRARY_PATH
17823   hardcode_into_libs=yes
17824   if test "$with_gnu_ld" = yes; then
17825     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17826     shlibpath_overrides_runpath=no
17827   else
17828     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17829     shlibpath_overrides_runpath=yes
17830     case $host_os in
17831       sco3.2v5*)
17832         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17833         ;;
17834     esac
17835   fi
17836   sys_lib_dlsearch_path_spec='/usr/lib'
17837   ;;
17838
17839 uts4*)
17840   version_type=linux
17841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17842   soname_spec='${libname}${release}${shared_ext}$major'
17843   shlibpath_var=LD_LIBRARY_PATH
17844   ;;
17845
17846 *)
17847   dynamic_linker=no
17848   ;;
17849 esac
17850 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17851 echo "${ECHO_T}$dynamic_linker" >&6; }
17852 test "$dynamic_linker" = no && can_build_shared=no
17853
17854 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17855   echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17858 fi
17859
17860 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17861 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17862   echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17865 fi
17866
17867 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17868
17869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17870 if test "$GCC" = yes; then
17871   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17872 fi
17873
17874 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17876 hardcode_action_F77=
17877 if test -n "$hardcode_libdir_flag_spec_F77" || \
17878    test -n "$runpath_var_F77" || \
17879    test "X$hardcode_automatic_F77" = "Xyes" ; then
17880
17881   # We can hardcode non-existant directories.
17882   if test "$hardcode_direct_F77" != no &&
17883      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17884      # have to relink, otherwise we might link with an installed library
17885      # when we should be linking with a yet-to-be-installed one
17886      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17887      test "$hardcode_minus_L_F77" != no; then
17888     # Linking always hardcodes the temporary library directory.
17889     hardcode_action_F77=relink
17890   else
17891     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17892     hardcode_action_F77=immediate
17893   fi
17894 else
17895   # We cannot hardcode anything, or else we can only hardcode existing
17896   # directories.
17897   hardcode_action_F77=unsupported
17898 fi
17899 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17900 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17901
17902 if test "$hardcode_action_F77" = relink; then
17903   # Fast installation is not supported
17904   enable_fast_install=no
17905 elif test "$shlibpath_overrides_runpath" = yes ||
17906      test "$enable_shared" = no; then
17907   # Fast installation is not necessary
17908   enable_fast_install=needless
17909 fi
17910
17911
17912 # The else clause should only fire when bootstrapping the
17913 # libtool distribution, otherwise you forgot to ship ltmain.sh
17914 # with your package, and you will get complaints that there are
17915 # no rules to generate ltmain.sh.
17916 if test -f "$ltmain"; then
17917   # See if we are running on zsh, and set the options which allow our commands through
17918   # without removal of \ escapes.
17919   if test -n "${ZSH_VERSION+set}" ; then
17920     setopt NO_GLOB_SUBST
17921   fi
17922   # Now quote all the things that may contain metacharacters while being
17923   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17924   # variables and quote the copies for generation of the libtool script.
17925   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17926     SED SHELL STRIP \
17927     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17928     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17929     deplibs_check_method reload_flag reload_cmds need_locks \
17930     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17931     lt_cv_sys_global_symbol_to_c_name_address \
17932     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17933     old_postinstall_cmds old_postuninstall_cmds \
17934     compiler_F77 \
17935     CC_F77 \
17936     LD_F77 \
17937     lt_prog_compiler_wl_F77 \
17938     lt_prog_compiler_pic_F77 \
17939     lt_prog_compiler_static_F77 \
17940     lt_prog_compiler_no_builtin_flag_F77 \
17941     export_dynamic_flag_spec_F77 \
17942     thread_safe_flag_spec_F77 \
17943     whole_archive_flag_spec_F77 \
17944     enable_shared_with_static_runtimes_F77 \
17945     old_archive_cmds_F77 \
17946     old_archive_from_new_cmds_F77 \
17947     predep_objects_F77 \
17948     postdep_objects_F77 \
17949     predeps_F77 \
17950     postdeps_F77 \
17951     compiler_lib_search_path_F77 \
17952     compiler_lib_search_dirs_F77 \
17953     archive_cmds_F77 \
17954     archive_expsym_cmds_F77 \
17955     postinstall_cmds_F77 \
17956     postuninstall_cmds_F77 \
17957     old_archive_from_expsyms_cmds_F77 \
17958     allow_undefined_flag_F77 \
17959     no_undefined_flag_F77 \
17960     export_symbols_cmds_F77 \
17961     hardcode_libdir_flag_spec_F77 \
17962     hardcode_libdir_flag_spec_ld_F77 \
17963     hardcode_libdir_separator_F77 \
17964     hardcode_automatic_F77 \
17965     module_cmds_F77 \
17966     module_expsym_cmds_F77 \
17967     lt_cv_prog_compiler_c_o_F77 \
17968     fix_srcfile_path_F77 \
17969     exclude_expsyms_F77 \
17970     include_expsyms_F77; do
17971
17972     case $var in
17973     old_archive_cmds_F77 | \
17974     old_archive_from_new_cmds_F77 | \
17975     archive_cmds_F77 | \
17976     archive_expsym_cmds_F77 | \
17977     module_cmds_F77 | \
17978     module_expsym_cmds_F77 | \
17979     old_archive_from_expsyms_cmds_F77 | \
17980     export_symbols_cmds_F77 | \
17981     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17982     postinstall_cmds | postuninstall_cmds | \
17983     old_postinstall_cmds | old_postuninstall_cmds | \
17984     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17985       # Double-quote double-evaled strings.
17986       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17987       ;;
17988     *)
17989       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17990       ;;
17991     esac
17992   done
17993
17994   case $lt_echo in
17995   *'\$0 --fallback-echo"')
17996     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17997     ;;
17998   esac
17999
18000 cfgfile="$ofile"
18001
18002   cat <<__EOF__ >> "$cfgfile"
18003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18004
18005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18006
18007 # Shell to use when invoking shell scripts.
18008 SHELL=$lt_SHELL
18009
18010 # Whether or not to build shared libraries.
18011 build_libtool_libs=$enable_shared
18012
18013 # Whether or not to build static libraries.
18014 build_old_libs=$enable_static
18015
18016 # Whether or not to add -lc for building shared libraries.
18017 build_libtool_need_lc=$archive_cmds_need_lc_F77
18018
18019 # Whether or not to disallow shared libs when runtime libs are static
18020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18021
18022 # Whether or not to optimize for fast installation.
18023 fast_install=$enable_fast_install
18024
18025 # The host system.
18026 host_alias=$host_alias
18027 host=$host
18028 host_os=$host_os
18029
18030 # The build system.
18031 build_alias=$build_alias
18032 build=$build
18033 build_os=$build_os
18034
18035 # An echo program that does not interpret backslashes.
18036 echo=$lt_echo
18037
18038 # The archiver.
18039 AR=$lt_AR
18040 AR_FLAGS=$lt_AR_FLAGS
18041
18042 # A C compiler.
18043 LTCC=$lt_LTCC
18044
18045 # LTCC compiler flags.
18046 LTCFLAGS=$lt_LTCFLAGS
18047
18048 # A language-specific compiler.
18049 CC=$lt_compiler_F77
18050
18051 # Is the compiler the GNU C compiler?
18052 with_gcc=$GCC_F77
18053
18054 # An ERE matcher.
18055 EGREP=$lt_EGREP
18056
18057 # The linker used to build libraries.
18058 LD=$lt_LD_F77
18059
18060 # Whether we need hard or soft links.
18061 LN_S=$lt_LN_S
18062
18063 # A BSD-compatible nm program.
18064 NM=$lt_NM
18065
18066 # A symbol stripping program
18067 STRIP=$lt_STRIP
18068
18069 # Used to examine libraries when file_magic_cmd begins "file"
18070 MAGIC_CMD=$MAGIC_CMD
18071
18072 # Used on cygwin: DLL creation program.
18073 DLLTOOL="$DLLTOOL"
18074
18075 # Used on cygwin: object dumper.
18076 OBJDUMP="$OBJDUMP"
18077
18078 # Used on cygwin: assembler.
18079 AS="$AS"
18080
18081 # The name of the directory that contains temporary libtool files.
18082 objdir=$objdir
18083
18084 # How to create reloadable object files.
18085 reload_flag=$lt_reload_flag
18086 reload_cmds=$lt_reload_cmds
18087
18088 # How to pass a linker flag through the compiler.
18089 wl=$lt_lt_prog_compiler_wl_F77
18090
18091 # Object file suffix (normally "o").
18092 objext="$ac_objext"
18093
18094 # Old archive suffix (normally "a").
18095 libext="$libext"
18096
18097 # Shared library suffix (normally ".so").
18098 shrext_cmds='$shrext_cmds'
18099
18100 # Executable file suffix (normally "").
18101 exeext="$exeext"
18102
18103 # Additional compiler flags for building library objects.
18104 pic_flag=$lt_lt_prog_compiler_pic_F77
18105 pic_mode=$pic_mode
18106
18107 # What is the maximum length of a command?
18108 max_cmd_len=$lt_cv_sys_max_cmd_len
18109
18110 # Does compiler simultaneously support -c and -o options?
18111 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18112
18113 # Must we lock files when doing compilation?
18114 need_locks=$lt_need_locks
18115
18116 # Do we need the lib prefix for modules?
18117 need_lib_prefix=$need_lib_prefix
18118
18119 # Do we need a version for libraries?
18120 need_version=$need_version
18121
18122 # Whether dlopen is supported.
18123 dlopen_support=$enable_dlopen
18124
18125 # Whether dlopen of programs is supported.
18126 dlopen_self=$enable_dlopen_self
18127
18128 # Whether dlopen of statically linked programs is supported.
18129 dlopen_self_static=$enable_dlopen_self_static
18130
18131 # Compiler flag to prevent dynamic linking.
18132 link_static_flag=$lt_lt_prog_compiler_static_F77
18133
18134 # Compiler flag to turn off builtin functions.
18135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18136
18137 # Compiler flag to allow reflexive dlopens.
18138 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18139
18140 # Compiler flag to generate shared objects directly from archives.
18141 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18142
18143 # Compiler flag to generate thread-safe objects.
18144 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18145
18146 # Library versioning type.
18147 version_type=$version_type
18148
18149 # Format of library name prefix.
18150 libname_spec=$lt_libname_spec
18151
18152 # List of archive names.  First name is the real one, the rest are links.
18153 # The last name is the one that the linker finds with -lNAME.
18154 library_names_spec=$lt_library_names_spec
18155
18156 # The coded name of the library, if different from the real name.
18157 soname_spec=$lt_soname_spec
18158
18159 # Commands used to build and install an old-style archive.
18160 RANLIB=$lt_RANLIB
18161 old_archive_cmds=$lt_old_archive_cmds_F77
18162 old_postinstall_cmds=$lt_old_postinstall_cmds
18163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18164
18165 # Create an old-style archive from a shared archive.
18166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18167
18168 # Create a temporary old-style archive to link instead of a shared archive.
18169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18170
18171 # Commands used to build and install a shared archive.
18172 archive_cmds=$lt_archive_cmds_F77
18173 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18174 postinstall_cmds=$lt_postinstall_cmds
18175 postuninstall_cmds=$lt_postuninstall_cmds
18176
18177 # Commands used to build a loadable module (assumed same as above if empty)
18178 module_cmds=$lt_module_cmds_F77
18179 module_expsym_cmds=$lt_module_expsym_cmds_F77
18180
18181 # Commands to strip libraries.
18182 old_striplib=$lt_old_striplib
18183 striplib=$lt_striplib
18184
18185 # Dependencies to place before the objects being linked to create a
18186 # shared library.
18187 predep_objects=$lt_predep_objects_F77
18188
18189 # Dependencies to place after the objects being linked to create a
18190 # shared library.
18191 postdep_objects=$lt_postdep_objects_F77
18192
18193 # Dependencies to place before the objects being linked to create a
18194 # shared library.
18195 predeps=$lt_predeps_F77
18196
18197 # Dependencies to place after the objects being linked to create a
18198 # shared library.
18199 postdeps=$lt_postdeps_F77
18200
18201 # The directories searched by this compiler when creating a shared
18202 # library
18203 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18204
18205 # The library search path used internally by the compiler when linking
18206 # a shared library.
18207 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18208
18209 # Method to check whether dependent libraries are shared objects.
18210 deplibs_check_method=$lt_deplibs_check_method
18211
18212 # Command to use when deplibs_check_method == file_magic.
18213 file_magic_cmd=$lt_file_magic_cmd
18214
18215 # Flag that allows shared libraries with undefined symbols to be built.
18216 allow_undefined_flag=$lt_allow_undefined_flag_F77
18217
18218 # Flag that forces no undefined symbols.
18219 no_undefined_flag=$lt_no_undefined_flag_F77
18220
18221 # Commands used to finish a libtool library installation in a directory.
18222 finish_cmds=$lt_finish_cmds
18223
18224 # Same as above, but a single script fragment to be evaled but not shown.
18225 finish_eval=$lt_finish_eval
18226
18227 # Take the output of nm and produce a listing of raw symbols and C names.
18228 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18229
18230 # Transform the output of nm in a proper C declaration
18231 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18232
18233 # Transform the output of nm in a C name address pair
18234 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18235
18236 # This is the shared library runtime path variable.
18237 runpath_var=$runpath_var
18238
18239 # This is the shared library path variable.
18240 shlibpath_var=$shlibpath_var
18241
18242 # Is shlibpath searched before the hard-coded library search path?
18243 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18244
18245 # How to hardcode a shared library path into an executable.
18246 hardcode_action=$hardcode_action_F77
18247
18248 # Whether we should hardcode library paths into libraries.
18249 hardcode_into_libs=$hardcode_into_libs
18250
18251 # Flag to hardcode \$libdir into a binary during linking.
18252 # This must work even if \$libdir does not exist.
18253 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18254
18255 # If ld is used when linking, flag to hardcode \$libdir into
18256 # a binary during linking. This must work even if \$libdir does
18257 # not exist.
18258 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18259
18260 # Whether we need a single -rpath flag with a separated argument.
18261 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18262
18263 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18264 # resulting binary.
18265 hardcode_direct=$hardcode_direct_F77
18266
18267 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18268 # resulting binary.
18269 hardcode_minus_L=$hardcode_minus_L_F77
18270
18271 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18272 # the resulting binary.
18273 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18274
18275 # Set to yes if building a shared library automatically hardcodes DIR into the library
18276 # and all subsequent libraries and executables linked against it.
18277 hardcode_automatic=$hardcode_automatic_F77
18278
18279 # Variables whose values should be saved in libtool wrapper scripts and
18280 # restored at relink time.
18281 variables_saved_for_relink="$variables_saved_for_relink"
18282
18283 # Whether libtool must link a program against all its dependency libraries.
18284 link_all_deplibs=$link_all_deplibs_F77
18285
18286 # Compile-time system search path for libraries
18287 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18288
18289 # Run-time system search path for libraries
18290 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18291
18292 # Fix the shell variable \$srcfile for the compiler.
18293 fix_srcfile_path=$lt_fix_srcfile_path
18294
18295 # Set to yes if exported symbols are required.
18296 always_export_symbols=$always_export_symbols_F77
18297
18298 # The commands to list exported symbols.
18299 export_symbols_cmds=$lt_export_symbols_cmds_F77
18300
18301 # The commands to extract the exported symbol list from a shared archive.
18302 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18303
18304 # Symbols that should not be listed in the preloaded symbols.
18305 exclude_expsyms=$lt_exclude_expsyms_F77
18306
18307 # Symbols that must always be exported.
18308 include_expsyms=$lt_include_expsyms_F77
18309
18310 # ### END LIBTOOL TAG CONFIG: $tagname
18311
18312 __EOF__
18313
18314
18315 else
18316   # If there is no Makefile yet, we rely on a make rule to execute
18317   # `config.status --recheck' to rerun these tests and create the
18318   # libtool script then.
18319   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18320   if test -f "$ltmain_in"; then
18321     test -f Makefile && make "$ltmain"
18322   fi
18323 fi
18324
18325
18326 ac_ext=c
18327 ac_cpp='$CPP $CPPFLAGS'
18328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18331
18332 CC="$lt_save_CC"
18333
18334         else
18335           tagname=""
18336         fi
18337         ;;
18338
18339       GCJ)
18340         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18341           
18342
18343 # Source file extension for Java test sources.
18344 ac_ext=java
18345
18346 # Object file extension for compiled Java test sources.
18347 objext=o
18348 objext_GCJ=$objext
18349
18350 # Code to be used in simple compile tests
18351 lt_simple_compile_test_code="class foo {}"
18352
18353 # Code to be used in simple link tests
18354 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18355
18356 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18357
18358 # If no C compiler was specified, use CC.
18359 LTCC=${LTCC-"$CC"}
18360
18361 # If no C compiler flags were specified, use CFLAGS.
18362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18363
18364 # Allow CC to be a program name with arguments.
18365 compiler=$CC
18366
18367
18368 # save warnings/boilerplate of simple test code
18369 ac_outfile=conftest.$ac_objext
18370 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18372 _lt_compiler_boilerplate=`cat conftest.err`
18373 $rm conftest*
18374
18375 ac_outfile=conftest.$ac_objext
18376 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18378 _lt_linker_boilerplate=`cat conftest.err`
18379 $rm -r conftest*
18380
18381
18382 # Allow CC to be a program name with arguments.
18383 lt_save_CC="$CC"
18384 CC=${GCJ-"gcj"}
18385 compiler=$CC
18386 compiler_GCJ=$CC
18387 for cc_temp in $compiler""; do
18388   case $cc_temp in
18389     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18390     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18391     \-*) ;;
18392     *) break;;
18393   esac
18394 done
18395 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18396
18397
18398 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18399 archive_cmds_need_lc_GCJ=no
18400
18401 old_archive_cmds_GCJ=$old_archive_cmds
18402
18403
18404 lt_prog_compiler_no_builtin_flag_GCJ=
18405
18406 if test "$GCC" = yes; then
18407   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18408
18409   
18410 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18411 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18412 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18413   echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415   lt_cv_prog_compiler_rtti_exceptions=no
18416   ac_outfile=conftest.$ac_objext
18417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18418    lt_compiler_flag="-fno-rtti -fno-exceptions"
18419    # Insert the option either (1) after the last *FLAGS variable, or
18420    # (2) before a word containing "conftest.", or (3) at the end.
18421    # Note that $ac_compile itself does not contain backslashes and begins
18422    # with a dollar sign (not a hyphen), so the echo should work correctly.
18423    # The option is referenced via a variable to avoid confusing sed.
18424    lt_compile=`echo "$ac_compile" | $SED \
18425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18427    -e 's:$: $lt_compiler_flag:'`
18428    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18429    (eval "$lt_compile" 2>conftest.err)
18430    ac_status=$?
18431    cat conftest.err >&5
18432    echo "$as_me:__oline__: \$? = $ac_status" >&5
18433    if (exit $ac_status) && test -s "$ac_outfile"; then
18434      # The compiler can only warn and ignore the option if not recognized
18435      # So say no if there are warnings other than the usual output.
18436      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18439        lt_cv_prog_compiler_rtti_exceptions=yes
18440      fi
18441    fi
18442    $rm conftest*
18443
18444 fi
18445 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18446 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18447
18448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18449     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18450 else
18451     :
18452 fi
18453
18454 fi
18455
18456 lt_prog_compiler_wl_GCJ=
18457 lt_prog_compiler_pic_GCJ=
18458 lt_prog_compiler_static_GCJ=
18459
18460 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18461 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18462  
18463   if test "$GCC" = yes; then
18464     lt_prog_compiler_wl_GCJ='-Wl,'
18465     lt_prog_compiler_static_GCJ='-static'
18466
18467     case $host_os in
18468       aix*)
18469       # All AIX code is PIC.
18470       if test "$host_cpu" = ia64; then
18471         # AIX 5 now supports IA64 processor
18472         lt_prog_compiler_static_GCJ='-Bstatic'
18473       fi
18474       ;;
18475
18476     amigaos*)
18477       # FIXME: we need at least 68020 code to build shared libraries, but
18478       # adding the `-m68020' flag to GCC prevents building anything better,
18479       # like `-m68040'.
18480       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18481       ;;
18482
18483     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18484       # PIC is the default for these OSes.
18485       ;;
18486
18487     mingw* | cygwin* | pw32* | os2*)
18488       # This hack is so that the source file can tell whether it is being
18489       # built for inclusion in a dll (and should export symbols for example).
18490       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18491       # (--disable-auto-import) libraries
18492       
18493       ;;
18494
18495     darwin* | rhapsody*)
18496       # PIC is the default on this platform
18497       # Common symbols not allowed in MH_DYLIB files
18498       lt_prog_compiler_pic_GCJ='-fno-common'
18499       ;;
18500
18501     interix[3-9]*)
18502       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18503       # Instead, we relocate shared libraries at runtime.
18504       ;;
18505
18506     msdosdjgpp*)
18507       # Just because we use GCC doesn't mean we suddenly get shared libraries
18508       # on systems that don't support them.
18509       lt_prog_compiler_can_build_shared_GCJ=no
18510       enable_shared=no
18511       ;;
18512
18513     sysv4*MP*)
18514       if test -d /usr/nec; then
18515         lt_prog_compiler_pic_GCJ=-Kconform_pic
18516       fi
18517       ;;
18518
18519     hpux*)
18520       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18521       # not for PA HP-UX.
18522       case $host_cpu in
18523       hppa*64*|ia64*)
18524         # +Z the default
18525         ;;
18526       *)
18527         lt_prog_compiler_pic_GCJ='-fPIC'
18528         ;;
18529       esac
18530       ;;
18531
18532     *)
18533       lt_prog_compiler_pic_GCJ='-fPIC'
18534       ;;
18535     esac
18536   else
18537     # PORTME Check for flag to pass linker flags through the system compiler.
18538     case $host_os in
18539     aix*)
18540       lt_prog_compiler_wl_GCJ='-Wl,'
18541       if test "$host_cpu" = ia64; then
18542         # AIX 5 now supports IA64 processor
18543         lt_prog_compiler_static_GCJ='-Bstatic'
18544       else
18545         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18546       fi
18547       ;;
18548       darwin*)
18549         # PIC is the default on this platform
18550         # Common symbols not allowed in MH_DYLIB files
18551        case $cc_basename in
18552          xlc*)
18553          lt_prog_compiler_pic_GCJ='-qnocommon'
18554          lt_prog_compiler_wl_GCJ='-Wl,'
18555          ;;
18556        esac
18557        ;;
18558
18559     mingw* | cygwin* | pw32* | os2*)
18560       # This hack is so that the source file can tell whether it is being
18561       # built for inclusion in a dll (and should export symbols for example).
18562       
18563       ;;
18564
18565     hpux9* | hpux10* | hpux11*)
18566       lt_prog_compiler_wl_GCJ='-Wl,'
18567       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18568       # not for PA HP-UX.
18569       case $host_cpu in
18570       hppa*64*|ia64*)
18571         # +Z the default
18572         ;;
18573       *)
18574         lt_prog_compiler_pic_GCJ='+Z'
18575         ;;
18576       esac
18577       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18578       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18579       ;;
18580
18581     irix5* | irix6* | nonstopux*)
18582       lt_prog_compiler_wl_GCJ='-Wl,'
18583       # PIC (with -KPIC) is the default.
18584       lt_prog_compiler_static_GCJ='-non_shared'
18585       ;;
18586
18587     newsos6)
18588       lt_prog_compiler_pic_GCJ='-KPIC'
18589       lt_prog_compiler_static_GCJ='-Bstatic'
18590       ;;
18591
18592     linux* | k*bsd*-gnu)
18593       case $cc_basename in
18594       icc* | ecc*)
18595         lt_prog_compiler_wl_GCJ='-Wl,'
18596         lt_prog_compiler_pic_GCJ='-KPIC'
18597         lt_prog_compiler_static_GCJ='-static'
18598         ;;
18599       pgcc* | pgf77* | pgf90* | pgf95*)
18600         # Portland Group compilers (*not* the Pentium gcc compiler,
18601         # which looks to be a dead project)
18602         lt_prog_compiler_wl_GCJ='-Wl,'
18603         lt_prog_compiler_pic_GCJ='-fpic'
18604         lt_prog_compiler_static_GCJ='-Bstatic'
18605         ;;
18606       ccc*)
18607         lt_prog_compiler_wl_GCJ='-Wl,'
18608         # All Alpha code is PIC.
18609         lt_prog_compiler_static_GCJ='-non_shared'
18610         ;;
18611       *)
18612         case `$CC -V 2>&1 | sed 5q` in
18613         *Sun\ C*)
18614           # Sun C 5.9
18615           lt_prog_compiler_pic_GCJ='-KPIC'
18616           lt_prog_compiler_static_GCJ='-Bstatic'
18617           lt_prog_compiler_wl_GCJ='-Wl,'
18618           ;;
18619         *Sun\ F*)
18620           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18621           lt_prog_compiler_pic_GCJ='-KPIC'
18622           lt_prog_compiler_static_GCJ='-Bstatic'
18623           lt_prog_compiler_wl_GCJ=''
18624           ;;
18625         esac
18626         ;;
18627       esac
18628       ;;
18629
18630     osf3* | osf4* | osf5*)
18631       lt_prog_compiler_wl_GCJ='-Wl,'
18632       # All OSF/1 code is PIC.
18633       lt_prog_compiler_static_GCJ='-non_shared'
18634       ;;
18635
18636     rdos*)
18637       lt_prog_compiler_static_GCJ='-non_shared'
18638       ;;
18639
18640     solaris*)
18641       lt_prog_compiler_pic_GCJ='-KPIC'
18642       lt_prog_compiler_static_GCJ='-Bstatic'
18643       case $cc_basename in
18644       f77* | f90* | f95*)
18645         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18646       *)
18647         lt_prog_compiler_wl_GCJ='-Wl,';;
18648       esac
18649       ;;
18650
18651     sunos4*)
18652       lt_prog_compiler_wl_GCJ='-Qoption ld '
18653       lt_prog_compiler_pic_GCJ='-PIC'
18654       lt_prog_compiler_static_GCJ='-Bstatic'
18655       ;;
18656
18657     sysv4 | sysv4.2uw2* | sysv4.3*)
18658       lt_prog_compiler_wl_GCJ='-Wl,'
18659       lt_prog_compiler_pic_GCJ='-KPIC'
18660       lt_prog_compiler_static_GCJ='-Bstatic'
18661       ;;
18662
18663     sysv4*MP*)
18664       if test -d /usr/nec ;then
18665         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18666         lt_prog_compiler_static_GCJ='-Bstatic'
18667       fi
18668       ;;
18669
18670     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18671       lt_prog_compiler_wl_GCJ='-Wl,'
18672       lt_prog_compiler_pic_GCJ='-KPIC'
18673       lt_prog_compiler_static_GCJ='-Bstatic'
18674       ;;
18675
18676     unicos*)
18677       lt_prog_compiler_wl_GCJ='-Wl,'
18678       lt_prog_compiler_can_build_shared_GCJ=no
18679       ;;
18680
18681     uts4*)
18682       lt_prog_compiler_pic_GCJ='-pic'
18683       lt_prog_compiler_static_GCJ='-Bstatic'
18684       ;;
18685
18686     *)
18687       lt_prog_compiler_can_build_shared_GCJ=no
18688       ;;
18689     esac
18690   fi
18691
18692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18693 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18694
18695 #
18696 # Check to make sure the PIC flag actually works.
18697 #
18698 if test -n "$lt_prog_compiler_pic_GCJ"; then
18699   
18700 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18701 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18702 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18703   echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705   lt_cv_prog_compiler_pic_works_GCJ=no
18706   ac_outfile=conftest.$ac_objext
18707    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18708    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18709    # Insert the option either (1) after the last *FLAGS variable, or
18710    # (2) before a word containing "conftest.", or (3) at the end.
18711    # Note that $ac_compile itself does not contain backslashes and begins
18712    # with a dollar sign (not a hyphen), so the echo should work correctly.
18713    # The option is referenced via a variable to avoid confusing sed.
18714    lt_compile=`echo "$ac_compile" | $SED \
18715    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18716    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18717    -e 's:$: $lt_compiler_flag:'`
18718    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18719    (eval "$lt_compile" 2>conftest.err)
18720    ac_status=$?
18721    cat conftest.err >&5
18722    echo "$as_me:__oline__: \$? = $ac_status" >&5
18723    if (exit $ac_status) && test -s "$ac_outfile"; then
18724      # The compiler can only warn and ignore the option if not recognized
18725      # So say no if there are warnings other than the usual output.
18726      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18727      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18728      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18729        lt_cv_prog_compiler_pic_works_GCJ=yes
18730      fi
18731    fi
18732    $rm conftest*
18733
18734 fi
18735 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18736 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18737
18738 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18739     case $lt_prog_compiler_pic_GCJ in
18740      "" | " "*) ;;
18741      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18742      esac
18743 else
18744     lt_prog_compiler_pic_GCJ=
18745      lt_prog_compiler_can_build_shared_GCJ=no
18746 fi
18747
18748 fi
18749 case $host_os in
18750   # For platforms which do not support PIC, -DPIC is meaningless:
18751   *djgpp*)
18752     lt_prog_compiler_pic_GCJ=
18753     ;;
18754   *)
18755     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18756     ;;
18757 esac
18758
18759 #
18760 # Check to make sure the static flag actually works.
18761 #
18762 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18763 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18764 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18765 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18766   echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768   lt_cv_prog_compiler_static_works_GCJ=no
18769    save_LDFLAGS="$LDFLAGS"
18770    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18771    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18772    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18773      # The linker can only warn and ignore the option if not recognized
18774      # So say no if there are warnings
18775      if test -s conftest.err; then
18776        # Append any errors to the config.log.
18777        cat conftest.err 1>&5
18778        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18779        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18780        if diff conftest.exp conftest.er2 >/dev/null; then
18781          lt_cv_prog_compiler_static_works_GCJ=yes
18782        fi
18783      else
18784        lt_cv_prog_compiler_static_works_GCJ=yes
18785      fi
18786    fi
18787    $rm -r conftest*
18788    LDFLAGS="$save_LDFLAGS"
18789
18790 fi
18791 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18792 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18793
18794 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18795     :
18796 else
18797     lt_prog_compiler_static_GCJ=
18798 fi
18799
18800
18801 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18802 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18803 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18804   echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806   lt_cv_prog_compiler_c_o_GCJ=no
18807    $rm -r conftest 2>/dev/null
18808    mkdir conftest
18809    cd conftest
18810    mkdir out
18811    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18812
18813    lt_compiler_flag="-o out/conftest2.$ac_objext"
18814    # Insert the option either (1) after the last *FLAGS variable, or
18815    # (2) before a word containing "conftest.", or (3) at the end.
18816    # Note that $ac_compile itself does not contain backslashes and begins
18817    # with a dollar sign (not a hyphen), so the echo should work correctly.
18818    lt_compile=`echo "$ac_compile" | $SED \
18819    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18820    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18821    -e 's:$: $lt_compiler_flag:'`
18822    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18823    (eval "$lt_compile" 2>out/conftest.err)
18824    ac_status=$?
18825    cat out/conftest.err >&5
18826    echo "$as_me:__oline__: \$? = $ac_status" >&5
18827    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18828    then
18829      # The compiler can only warn and ignore the option if not recognized
18830      # So say no if there are warnings
18831      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18832      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18833      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18834        lt_cv_prog_compiler_c_o_GCJ=yes
18835      fi
18836    fi
18837    chmod u+w . 2>&5
18838    $rm conftest*
18839    # SGI C++ compiler will create directory out/ii_files/ for
18840    # template instantiation
18841    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18842    $rm out/* && rmdir out
18843    cd ..
18844    rmdir conftest
18845    $rm conftest*
18846
18847 fi
18848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18850
18851
18852 hard_links="nottested"
18853 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18854   # do not overwrite the value of need_locks provided by the user
18855   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18856 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18857   hard_links=yes
18858   $rm conftest*
18859   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18860   touch conftest.a
18861   ln conftest.a conftest.b 2>&5 || hard_links=no
18862   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18863   { echo "$as_me:$LINENO: result: $hard_links" >&5
18864 echo "${ECHO_T}$hard_links" >&6; }
18865   if test "$hard_links" = no; then
18866     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18867 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18868     need_locks=warn
18869   fi
18870 else
18871   need_locks=no
18872 fi
18873
18874 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18875 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18876
18877   runpath_var=
18878   allow_undefined_flag_GCJ=
18879   enable_shared_with_static_runtimes_GCJ=no
18880   archive_cmds_GCJ=
18881   archive_expsym_cmds_GCJ=
18882   old_archive_From_new_cmds_GCJ=
18883   old_archive_from_expsyms_cmds_GCJ=
18884   export_dynamic_flag_spec_GCJ=
18885   whole_archive_flag_spec_GCJ=
18886   thread_safe_flag_spec_GCJ=
18887   hardcode_libdir_flag_spec_GCJ=
18888   hardcode_libdir_flag_spec_ld_GCJ=
18889   hardcode_libdir_separator_GCJ=
18890   hardcode_direct_GCJ=no
18891   hardcode_minus_L_GCJ=no
18892   hardcode_shlibpath_var_GCJ=unsupported
18893   link_all_deplibs_GCJ=unknown
18894   hardcode_automatic_GCJ=no
18895   module_cmds_GCJ=
18896   module_expsym_cmds_GCJ=
18897   always_export_symbols_GCJ=no
18898   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18899   # include_expsyms should be a list of space-separated symbols to be *always*
18900   # included in the symbol list
18901   include_expsyms_GCJ=
18902   # exclude_expsyms can be an extended regexp of symbols to exclude
18903   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18904   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18905   # as well as any symbol that contains `d'.
18906   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18907   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18908   # platforms (ab)use it in PIC code, but their linkers get confused if
18909   # the symbol is explicitly referenced.  Since portable code cannot
18910   # rely on this symbol name, it's probably fine to never include it in
18911   # preloaded symbol tables.
18912   # Exclude shared library initialization/finalization symbols.
18913   extract_expsyms_cmds=
18914   # Just being paranoid about ensuring that cc_basename is set.
18915   for cc_temp in $compiler""; do
18916   case $cc_temp in
18917     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18918     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18919     \-*) ;;
18920     *) break;;
18921   esac
18922 done
18923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18924
18925   case $host_os in
18926   cygwin* | mingw* | pw32*)
18927     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18928     # When not using gcc, we currently assume that we are using
18929     # Microsoft Visual C++.
18930     if test "$GCC" != yes; then
18931       with_gnu_ld=no
18932     fi
18933     ;;
18934   interix*)
18935     # we just hope/assume this is gcc and not c89 (= MSVC++)
18936     with_gnu_ld=yes
18937     ;;
18938   openbsd*)
18939     with_gnu_ld=no
18940     ;;
18941   esac
18942
18943   ld_shlibs_GCJ=yes
18944   if test "$with_gnu_ld" = yes; then
18945     # If archive_cmds runs LD, not CC, wlarc should be empty
18946     wlarc='${wl}'
18947
18948     # Set some defaults for GNU ld with shared library support. These
18949     # are reset later if shared libraries are not supported. Putting them
18950     # here allows them to be overridden if necessary.
18951     runpath_var=LD_RUN_PATH
18952     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18953     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18954     # ancient GNU ld didn't support --whole-archive et. al.
18955     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18956         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18957       else
18958         whole_archive_flag_spec_GCJ=
18959     fi
18960     supports_anon_versioning=no
18961     case `$LD -v 2>/dev/null` in
18962       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18963       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18964       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18965       *\ 2.11.*) ;; # other 2.11 versions
18966       *) supports_anon_versioning=yes ;;
18967     esac
18968
18969     # See if GNU ld supports shared libraries.
18970     case $host_os in
18971     aix[3-9]*)
18972       # On AIX/PPC, the GNU linker is very broken
18973       if test "$host_cpu" != ia64; then
18974         ld_shlibs_GCJ=no
18975         cat <<EOF 1>&2
18976
18977 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18978 *** to be unable to reliably create shared libraries on AIX.
18979 *** Therefore, libtool is disabling shared libraries support.  If you
18980 *** really care for shared libraries, you may want to modify your PATH
18981 *** so that a non-GNU linker is found, and then restart.
18982
18983 EOF
18984       fi
18985       ;;
18986
18987     amigaos*)
18988       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)'
18989       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18990       hardcode_minus_L_GCJ=yes
18991
18992       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18993       # that the semantics of dynamic libraries on AmigaOS, at least up
18994       # to version 4, is to share data among multiple programs linked
18995       # with the same dynamic library.  Since this doesn't match the
18996       # behavior of shared libraries on other platforms, we can't use
18997       # them.
18998       ld_shlibs_GCJ=no
18999       ;;
19000
19001     beos*)
19002       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19003         allow_undefined_flag_GCJ=unsupported
19004         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19005         # support --undefined.  This deserves some investigation.  FIXME
19006         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19007       else
19008         ld_shlibs_GCJ=no
19009       fi
19010       ;;
19011
19012     cygwin* | mingw* | pw32*)
19013       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19014       # as there is no search path for DLLs.
19015       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19016       allow_undefined_flag_GCJ=unsupported
19017       always_export_symbols_GCJ=no
19018       enable_shared_with_static_runtimes_GCJ=yes
19019       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19020
19021       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19022         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19023         # If the export-symbols file already is a .def file (1st line
19024         # is EXPORTS), use it as is; otherwise, prepend...
19025         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19026           cp $export_symbols $output_objdir/$soname.def;
19027         else
19028           echo EXPORTS > $output_objdir/$soname.def;
19029           cat $export_symbols >> $output_objdir/$soname.def;
19030         fi~
19031         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19032       else
19033         ld_shlibs_GCJ=no
19034       fi
19035       ;;
19036
19037     interix[3-9]*)
19038       hardcode_direct_GCJ=no
19039       hardcode_shlibpath_var_GCJ=no
19040       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19041       export_dynamic_flag_spec_GCJ='${wl}-E'
19042       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19043       # Instead, shared libraries are loaded at an image base (0x10000000 by
19044       # default) and relocated if they conflict, which is a slow very memory
19045       # consuming and fragmenting process.  To avoid this, we pick a random,
19046       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19047       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19048       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'
19049       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'
19050       ;;
19051
19052     gnu* | linux* | k*bsd*-gnu)
19053       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19054         tmp_addflag=
19055         case $cc_basename,$host_cpu in
19056         pgcc*)                          # Portland Group C compiler
19057           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'
19058           tmp_addflag=' $pic_flag'
19059           ;;
19060         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
19061           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'
19062           tmp_addflag=' $pic_flag -Mnomain' ;;
19063         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
19064           tmp_addflag=' -i_dynamic' ;;
19065         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19066           tmp_addflag=' -i_dynamic -nofor_main' ;;
19067         ifc* | ifort*)                  # Intel Fortran compiler
19068           tmp_addflag=' -nofor_main' ;;
19069         esac
19070         case `$CC -V 2>&1 | sed 5q` in
19071         *Sun\ C*)                       # Sun C 5.9
19072           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19073           tmp_sharedflag='-G' ;;
19074         *Sun\ F*)                       # Sun Fortran 8.3
19075           tmp_sharedflag='-G' ;;
19076         *)
19077           tmp_sharedflag='-shared' ;;
19078         esac
19079         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19080
19081         if test $supports_anon_versioning = yes; then
19082           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19083   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19084   $echo "local: *; };" >> $output_objdir/$libname.ver~
19085           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19086         fi
19087       else
19088         ld_shlibs_GCJ=no
19089       fi
19090       ;;
19091
19092     netbsd*)
19093       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19094         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19095         wlarc=
19096       else
19097         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19098         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19099       fi
19100       ;;
19101
19102     solaris*)
19103       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19104         ld_shlibs_GCJ=no
19105         cat <<EOF 1>&2
19106
19107 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19108 *** create shared libraries on Solaris systems.  Therefore, libtool
19109 *** is disabling shared libraries support.  We urge you to upgrade GNU
19110 *** binutils to release 2.9.1 or newer.  Another option is to modify
19111 *** your PATH or compiler configuration so that the native linker is
19112 *** used, and then restart.
19113
19114 EOF
19115       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19116         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19117         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19118       else
19119         ld_shlibs_GCJ=no
19120       fi
19121       ;;
19122
19123     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19124       case `$LD -v 2>&1` in
19125         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19126         ld_shlibs_GCJ=no
19127         cat <<_LT_EOF 1>&2
19128
19129 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19130 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19131 *** is disabling shared libraries support.  We urge you to upgrade GNU
19132 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19133 *** your PATH or compiler configuration so that the native linker is
19134 *** used, and then restart.
19135
19136 _LT_EOF
19137         ;;
19138         *)
19139           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19140             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19141             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19142             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19143           else
19144             ld_shlibs_GCJ=no
19145           fi
19146         ;;
19147       esac
19148       ;;
19149
19150     sunos4*)
19151       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19152       wlarc=
19153       hardcode_direct_GCJ=yes
19154       hardcode_shlibpath_var_GCJ=no
19155       ;;
19156
19157     *)
19158       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19159         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19160         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19161       else
19162         ld_shlibs_GCJ=no
19163       fi
19164       ;;
19165     esac
19166
19167     if test "$ld_shlibs_GCJ" = no; then
19168       runpath_var=
19169       hardcode_libdir_flag_spec_GCJ=
19170       export_dynamic_flag_spec_GCJ=
19171       whole_archive_flag_spec_GCJ=
19172     fi
19173   else
19174     # PORTME fill in a description of your system's linker (not GNU ld)
19175     case $host_os in
19176     aix3*)
19177       allow_undefined_flag_GCJ=unsupported
19178       always_export_symbols_GCJ=yes
19179       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'
19180       # Note: this linker hardcodes the directories in LIBPATH if there
19181       # are no directories specified by -L.
19182       hardcode_minus_L_GCJ=yes
19183       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19184         # Neither direct hardcoding nor static linking is supported with a
19185         # broken collect2.
19186         hardcode_direct_GCJ=unsupported
19187       fi
19188       ;;
19189
19190     aix[4-9]*)
19191       if test "$host_cpu" = ia64; then
19192         # On IA64, the linker does run time linking by default, so we don't
19193         # have to do anything special.
19194         aix_use_runtimelinking=no
19195         exp_sym_flag='-Bexport'
19196         no_entry_flag=""
19197       else
19198         # If we're using GNU nm, then we don't want the "-C" option.
19199         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19200         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19201           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'
19202         else
19203           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'
19204         fi
19205         aix_use_runtimelinking=no
19206
19207         # Test if we are trying to use run time linking or normal
19208         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19209         # need to do runtime linking.
19210         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19211           for ld_flag in $LDFLAGS; do
19212           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19213             aix_use_runtimelinking=yes
19214             break
19215           fi
19216           done
19217           ;;
19218         esac
19219
19220         exp_sym_flag='-bexport'
19221         no_entry_flag='-bnoentry'
19222       fi
19223
19224       # When large executables or shared objects are built, AIX ld can
19225       # have problems creating the table of contents.  If linking a library
19226       # or program results in "error TOC overflow" add -mminimal-toc to
19227       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19228       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19229
19230       archive_cmds_GCJ=''
19231       hardcode_direct_GCJ=yes
19232       hardcode_libdir_separator_GCJ=':'
19233       link_all_deplibs_GCJ=yes
19234
19235       if test "$GCC" = yes; then
19236         case $host_os in aix4.[012]|aix4.[012].*)
19237         # We only want to do this on AIX 4.2 and lower, the check
19238         # below for broken collect2 doesn't work under 4.3+
19239           collect2name=`${CC} -print-prog-name=collect2`
19240           if test -f "$collect2name" && \
19241            strings "$collect2name" | grep resolve_lib_name >/dev/null
19242           then
19243           # We have reworked collect2
19244           :
19245           else
19246           # We have old collect2
19247           hardcode_direct_GCJ=unsupported
19248           # It fails to find uninstalled libraries when the uninstalled
19249           # path is not listed in the libpath.  Setting hardcode_minus_L
19250           # to unsupported forces relinking
19251           hardcode_minus_L_GCJ=yes
19252           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19253           hardcode_libdir_separator_GCJ=
19254           fi
19255           ;;
19256         esac
19257         shared_flag='-shared'
19258         if test "$aix_use_runtimelinking" = yes; then
19259           shared_flag="$shared_flag "'${wl}-G'
19260         fi
19261       else
19262         # not using gcc
19263         if test "$host_cpu" = ia64; then
19264         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19265         # chokes on -Wl,-G. The following line is correct:
19266           shared_flag='-G'
19267         else
19268           if test "$aix_use_runtimelinking" = yes; then
19269             shared_flag='${wl}-G'
19270           else
19271             shared_flag='${wl}-bM:SRE'
19272           fi
19273         fi
19274       fi
19275
19276       # It seems that -bexpall does not export symbols beginning with
19277       # underscore (_), so it is better to generate a list of symbols to export.
19278       always_export_symbols_GCJ=yes
19279       if test "$aix_use_runtimelinking" = yes; then
19280         # Warning - without using the other runtime loading flags (-brtl),
19281         # -berok will link without error, but may produce a broken library.
19282         allow_undefined_flag_GCJ='-berok'
19283        # Determine the default libpath from the value encoded in an empty executable.
19284        cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19290
19291 int
19292 main ()
19293 {
19294
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (ac_try="$ac_link"
19301 case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_link") 2>conftest.er1
19307   ac_status=$?
19308   grep -v '^ *+' conftest.er1 >conftest.err
19309   rm -f conftest.er1
19310   cat conftest.err >&5
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); } && {
19313          test -z "$ac_c_werror_flag" ||
19314          test ! -s conftest.err
19315        } && test -s conftest$ac_exeext &&
19316        $as_test_x conftest$ac_exeext; then
19317   
19318 lt_aix_libpath_sed='
19319     /Import File Strings/,/^$/ {
19320         /^0/ {
19321             s/^0  *\(.*\)$/\1/
19322             p
19323         }
19324     }'
19325 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19326 # Check for a 64-bit object if we didn't find anything.
19327 if test -z "$aix_libpath"; then
19328   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19329 fi
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334         
19335 fi
19336
19337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19338       conftest$ac_exeext conftest.$ac_ext
19339 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19340
19341        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19342         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"
19343        else
19344         if test "$host_cpu" = ia64; then
19345           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19346           allow_undefined_flag_GCJ="-z nodefs"
19347           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"
19348         else
19349          # Determine the default libpath from the value encoded in an empty executable.
19350          cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356
19357 int
19358 main ()
19359 {
19360
19361   ;
19362   return 0;
19363 }
19364 _ACEOF
19365 rm -f conftest.$ac_objext conftest$ac_exeext
19366 if { (ac_try="$ac_link"
19367 case "(($ac_try" in
19368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369   *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372   (eval "$ac_link") 2>conftest.er1
19373   ac_status=$?
19374   grep -v '^ *+' conftest.er1 >conftest.err
19375   rm -f conftest.er1
19376   cat conftest.err >&5
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); } && {
19379          test -z "$ac_c_werror_flag" ||
19380          test ! -s conftest.err
19381        } && test -s conftest$ac_exeext &&
19382        $as_test_x conftest$ac_exeext; then
19383   
19384 lt_aix_libpath_sed='
19385     /Import File Strings/,/^$/ {
19386         /^0/ {
19387             s/^0  *\(.*\)$/\1/
19388             p
19389         }
19390     }'
19391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19392 # Check for a 64-bit object if we didn't find anything.
19393 if test -z "$aix_libpath"; then
19394   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19395 fi
19396 else
19397   echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400         
19401 fi
19402
19403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19404       conftest$ac_exeext conftest.$ac_ext
19405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19406
19407          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19408           # Warning - without using the other run time loading flags,
19409           # -berok will link without error, but may produce a broken library.
19410           no_undefined_flag_GCJ=' ${wl}-bernotok'
19411           allow_undefined_flag_GCJ=' ${wl}-berok'
19412           # Exported symbols can be pulled into shared objects from archives
19413           whole_archive_flag_spec_GCJ='$convenience'
19414           archive_cmds_need_lc_GCJ=yes
19415           # This is similar to how AIX traditionally builds its shared libraries.
19416           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'
19417         fi
19418       fi
19419       ;;
19420
19421     amigaos*)
19422       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)'
19423       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19424       hardcode_minus_L_GCJ=yes
19425       # see comment about different semantics on the GNU ld section
19426       ld_shlibs_GCJ=no
19427       ;;
19428
19429     bsdi[45]*)
19430       export_dynamic_flag_spec_GCJ=-rdynamic
19431       ;;
19432
19433     cygwin* | mingw* | pw32*)
19434       # When not using gcc, we currently assume that we are using
19435       # Microsoft Visual C++.
19436       # hardcode_libdir_flag_spec is actually meaningless, as there is
19437       # no search path for DLLs.
19438       hardcode_libdir_flag_spec_GCJ=' '
19439       allow_undefined_flag_GCJ=unsupported
19440       # Tell ltmain to make .lib files, not .a files.
19441       libext=lib
19442       # Tell ltmain to make .dll files, not .so files.
19443       shrext_cmds=".dll"
19444       # FIXME: Setting linknames here is a bad hack.
19445       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19446       # The linker will automatically build a .lib file if we build a DLL.
19447       old_archive_From_new_cmds_GCJ='true'
19448       # FIXME: Should let the user specify the lib program.
19449       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19450       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19451       enable_shared_with_static_runtimes_GCJ=yes
19452       ;;
19453
19454     darwin* | rhapsody*)
19455       case $host_os in
19456         rhapsody* | darwin1.[012])
19457          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19458          ;;
19459        *) # Darwin 1.3 on
19460          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19461            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19462          else
19463            case ${MACOSX_DEPLOYMENT_TARGET} in
19464              10.[012])
19465                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19466                ;;
19467              10.*)
19468                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19469                ;;
19470            esac
19471          fi
19472          ;;
19473       esac
19474       archive_cmds_need_lc_GCJ=no
19475       hardcode_direct_GCJ=no
19476       hardcode_automatic_GCJ=yes
19477       hardcode_shlibpath_var_GCJ=unsupported
19478       whole_archive_flag_spec_GCJ=''
19479       link_all_deplibs_GCJ=yes
19480     if test "$GCC" = yes ; then
19481         output_verbose_link_cmd='echo'
19482         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19483         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19484         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19485         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19486     else
19487       case $cc_basename in
19488         xlc*)
19489          output_verbose_link_cmd='echo'
19490          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19491          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19492           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19493          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19494           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}'
19495           ;;
19496        *)
19497          ld_shlibs_GCJ=no
19498           ;;
19499       esac
19500     fi
19501       ;;
19502
19503     dgux*)
19504       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19505       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19506       hardcode_shlibpath_var_GCJ=no
19507       ;;
19508
19509     freebsd1*)
19510       ld_shlibs_GCJ=no
19511       ;;
19512
19513     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19514     # support.  Future versions do this automatically, but an explicit c++rt0.o
19515     # does not break anything, and helps significantly (at the cost of a little
19516     # extra space).
19517     freebsd2.2*)
19518       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19519       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19520       hardcode_direct_GCJ=yes
19521       hardcode_shlibpath_var_GCJ=no
19522       ;;
19523
19524     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19525     freebsd2*)
19526       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19527       hardcode_direct_GCJ=yes
19528       hardcode_minus_L_GCJ=yes
19529       hardcode_shlibpath_var_GCJ=no
19530       ;;
19531
19532     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19533     freebsd* | dragonfly*)
19534       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19535       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19536       hardcode_direct_GCJ=yes
19537       hardcode_shlibpath_var_GCJ=no
19538       ;;
19539
19540     hpux9*)
19541       if test "$GCC" = yes; then
19542         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'
19543       else
19544         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'
19545       fi
19546       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19547       hardcode_libdir_separator_GCJ=:
19548       hardcode_direct_GCJ=yes
19549
19550       # hardcode_minus_L: Not really in the search PATH,
19551       # but as the default location of the library.
19552       hardcode_minus_L_GCJ=yes
19553       export_dynamic_flag_spec_GCJ='${wl}-E'
19554       ;;
19555
19556     hpux10*)
19557       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19558         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19559       else
19560         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19561       fi
19562       if test "$with_gnu_ld" = no; then
19563         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19564         hardcode_libdir_separator_GCJ=:
19565
19566         hardcode_direct_GCJ=yes
19567         export_dynamic_flag_spec_GCJ='${wl}-E'
19568
19569         # hardcode_minus_L: Not really in the search PATH,
19570         # but as the default location of the library.
19571         hardcode_minus_L_GCJ=yes
19572       fi
19573       ;;
19574
19575     hpux11*)
19576       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19577         case $host_cpu in
19578         hppa*64*)
19579           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19580           ;;
19581         ia64*)
19582           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19583           ;;
19584         *)
19585           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19586           ;;
19587         esac
19588       else
19589         case $host_cpu in
19590         hppa*64*)
19591           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592           ;;
19593         ia64*)
19594           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19595           ;;
19596         *)
19597           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19598           ;;
19599         esac
19600       fi
19601       if test "$with_gnu_ld" = no; then
19602         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19603         hardcode_libdir_separator_GCJ=:
19604
19605         case $host_cpu in
19606         hppa*64*|ia64*)
19607           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19608           hardcode_direct_GCJ=no
19609           hardcode_shlibpath_var_GCJ=no
19610           ;;
19611         *)
19612           hardcode_direct_GCJ=yes
19613           export_dynamic_flag_spec_GCJ='${wl}-E'
19614
19615           # hardcode_minus_L: Not really in the search PATH,
19616           # but as the default location of the library.
19617           hardcode_minus_L_GCJ=yes
19618           ;;
19619         esac
19620       fi
19621       ;;
19622
19623     irix5* | irix6* | nonstopux*)
19624       if test "$GCC" = yes; then
19625         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'
19626       else
19627         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'
19628         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19629       fi
19630       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19631       hardcode_libdir_separator_GCJ=:
19632       link_all_deplibs_GCJ=yes
19633       ;;
19634
19635     netbsd*)
19636       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19637         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19638       else
19639         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19640       fi
19641       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19642       hardcode_direct_GCJ=yes
19643       hardcode_shlibpath_var_GCJ=no
19644       ;;
19645
19646     newsos6)
19647       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19648       hardcode_direct_GCJ=yes
19649       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19650       hardcode_libdir_separator_GCJ=:
19651       hardcode_shlibpath_var_GCJ=no
19652       ;;
19653
19654     openbsd*)
19655       if test -f /usr/libexec/ld.so; then
19656         hardcode_direct_GCJ=yes
19657         hardcode_shlibpath_var_GCJ=no
19658         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19659           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19660           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19661           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19662           export_dynamic_flag_spec_GCJ='${wl}-E'
19663         else
19664           case $host_os in
19665            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19666              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19667              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19668              ;;
19669            *)
19670              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19671              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19672              ;;
19673           esac
19674         fi
19675       else
19676         ld_shlibs_GCJ=no
19677       fi
19678       ;;
19679
19680     os2*)
19681       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19682       hardcode_minus_L_GCJ=yes
19683       allow_undefined_flag_GCJ=unsupported
19684       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'
19685       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19686       ;;
19687
19688     osf3*)
19689       if test "$GCC" = yes; then
19690         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19691         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'
19692       else
19693         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19694         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'
19695       fi
19696       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19697       hardcode_libdir_separator_GCJ=:
19698       ;;
19699
19700     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19701       if test "$GCC" = yes; then
19702         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19703         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'
19704         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19705       else
19706         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19707         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'
19708         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~
19709         $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'
19710
19711         # Both c and cxx compiler support -rpath directly
19712         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19713       fi
19714       hardcode_libdir_separator_GCJ=:
19715       ;;
19716
19717     solaris*)
19718       no_undefined_flag_GCJ=' -z text'
19719       if test "$GCC" = yes; then
19720         wlarc='${wl}'
19721         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19722         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19723           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19724       else
19725         wlarc=''
19726         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19727         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19728         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19729       fi
19730       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19731       hardcode_shlibpath_var_GCJ=no
19732       case $host_os in
19733       solaris2.[0-5] | solaris2.[0-5].*) ;;
19734       *)
19735         # The compiler driver will combine and reorder linker options,
19736         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19737         # but is careful enough not to reorder.
19738         # Supported since Solaris 2.6 (maybe 2.5.1?)
19739         if test "$GCC" = yes; then
19740           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19741         else
19742           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19743         fi
19744         ;;
19745       esac
19746       link_all_deplibs_GCJ=yes
19747       ;;
19748
19749     sunos4*)
19750       if test "x$host_vendor" = xsequent; then
19751         # Use $CC to link under sequent, because it throws in some extra .o
19752         # files that make .init and .fini sections work.
19753         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19754       else
19755         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19756       fi
19757       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19758       hardcode_direct_GCJ=yes
19759       hardcode_minus_L_GCJ=yes
19760       hardcode_shlibpath_var_GCJ=no
19761       ;;
19762
19763     sysv4)
19764       case $host_vendor in
19765         sni)
19766           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19767           hardcode_direct_GCJ=yes # is this really true???
19768         ;;
19769         siemens)
19770           ## LD is ld it makes a PLAMLIB
19771           ## CC just makes a GrossModule.
19772           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19773           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19774           hardcode_direct_GCJ=no
19775         ;;
19776         motorola)
19777           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19779         ;;
19780       esac
19781       runpath_var='LD_RUN_PATH'
19782       hardcode_shlibpath_var_GCJ=no
19783       ;;
19784
19785     sysv4.3*)
19786       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19787       hardcode_shlibpath_var_GCJ=no
19788       export_dynamic_flag_spec_GCJ='-Bexport'
19789       ;;
19790
19791     sysv4*MP*)
19792       if test -d /usr/nec; then
19793         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19794         hardcode_shlibpath_var_GCJ=no
19795         runpath_var=LD_RUN_PATH
19796         hardcode_runpath_var=yes
19797         ld_shlibs_GCJ=yes
19798       fi
19799       ;;
19800
19801     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19802       no_undefined_flag_GCJ='${wl}-z,text'
19803       archive_cmds_need_lc_GCJ=no
19804       hardcode_shlibpath_var_GCJ=no
19805       runpath_var='LD_RUN_PATH'
19806
19807       if test "$GCC" = yes; then
19808         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19809         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19810       else
19811         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19812         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19813       fi
19814       ;;
19815
19816     sysv5* | sco3.2v5* | sco5v6*)
19817       # Note: We can NOT use -z defs as we might desire, because we do not
19818       # link with -lc, and that would cause any symbols used from libc to
19819       # always be unresolved, which means just about no library would
19820       # ever link correctly.  If we're not using GNU ld we use -z text
19821       # though, which does catch some bad symbols but isn't as heavy-handed
19822       # as -z defs.
19823       no_undefined_flag_GCJ='${wl}-z,text'
19824       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19825       archive_cmds_need_lc_GCJ=no
19826       hardcode_shlibpath_var_GCJ=no
19827       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19828       hardcode_libdir_separator_GCJ=':'
19829       link_all_deplibs_GCJ=yes
19830       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19831       runpath_var='LD_RUN_PATH'
19832
19833       if test "$GCC" = yes; then
19834         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19835         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19836       else
19837         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19838         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19839       fi
19840       ;;
19841
19842     uts4*)
19843       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19844       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19845       hardcode_shlibpath_var_GCJ=no
19846       ;;
19847
19848     *)
19849       ld_shlibs_GCJ=no
19850       ;;
19851     esac
19852   fi
19853
19854 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19855 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19856 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19857
19858 #
19859 # Do we need to explicitly link libc?
19860 #
19861 case "x$archive_cmds_need_lc_GCJ" in
19862 x|xyes)
19863   # Assume -lc should be added
19864   archive_cmds_need_lc_GCJ=yes
19865
19866   if test "$enable_shared" = yes && test "$GCC" = yes; then
19867     case $archive_cmds_GCJ in
19868     *'~'*)
19869       # FIXME: we may have to deal with multi-command sequences.
19870       ;;
19871     '$CC '*)
19872       # Test whether the compiler implicitly links with -lc since on some
19873       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19874       # to ld, don't add -lc before -lgcc.
19875       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19876 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19877       $rm conftest*
19878       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19879
19880       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881   (eval $ac_compile) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } 2>conftest.err; then
19885         soname=conftest
19886         lib=conftest
19887         libobjs=conftest.$ac_objext
19888         deplibs=
19889         wl=$lt_prog_compiler_wl_GCJ
19890         pic_flag=$lt_prog_compiler_pic_GCJ
19891         compiler_flags=-v
19892         linker_flags=-v
19893         verstring=
19894         output_objdir=.
19895         libname=conftest
19896         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19897         allow_undefined_flag_GCJ=
19898         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19899   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }
19903         then
19904           archive_cmds_need_lc_GCJ=no
19905         else
19906           archive_cmds_need_lc_GCJ=yes
19907         fi
19908         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19909       else
19910         cat conftest.err 1>&5
19911       fi
19912       $rm conftest*
19913       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19914 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19915       ;;
19916     esac
19917   fi
19918   ;;
19919 esac
19920
19921 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19922 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19923 library_names_spec=
19924 libname_spec='lib$name'
19925 soname_spec=
19926 shrext_cmds=".so"
19927 postinstall_cmds=
19928 postuninstall_cmds=
19929 finish_cmds=
19930 finish_eval=
19931 shlibpath_var=
19932 shlibpath_overrides_runpath=unknown
19933 version_type=none
19934 dynamic_linker="$host_os ld.so"
19935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19936
19937 need_lib_prefix=unknown
19938 hardcode_into_libs=no
19939
19940 # when you set need_version to no, make sure it does not cause -set_version
19941 # flags to be left without arguments
19942 need_version=unknown
19943
19944 case $host_os in
19945 aix3*)
19946   version_type=linux
19947   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19948   shlibpath_var=LIBPATH
19949
19950   # AIX 3 has no versioning support, so we append a major version to the name.
19951   soname_spec='${libname}${release}${shared_ext}$major'
19952   ;;
19953
19954 aix[4-9]*)
19955   version_type=linux
19956   need_lib_prefix=no
19957   need_version=no
19958   hardcode_into_libs=yes
19959   if test "$host_cpu" = ia64; then
19960     # AIX 5 supports IA64
19961     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19962     shlibpath_var=LD_LIBRARY_PATH
19963   else
19964     # With GCC up to 2.95.x, collect2 would create an import file
19965     # for dependence libraries.  The import file would start with
19966     # the line `#! .'.  This would cause the generated library to
19967     # depend on `.', always an invalid library.  This was fixed in
19968     # development snapshots of GCC prior to 3.0.
19969     case $host_os in
19970       aix4 | aix4.[01] | aix4.[01].*)
19971       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19972            echo ' yes '
19973            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19974         :
19975       else
19976         can_build_shared=no
19977       fi
19978       ;;
19979     esac
19980     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19981     # soname into executable. Probably we can add versioning support to
19982     # collect2, so additional links can be useful in future.
19983     if test "$aix_use_runtimelinking" = yes; then
19984       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19985       # instead of lib<name>.a to let people know that these are not
19986       # typical AIX shared libraries.
19987       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988     else
19989       # We preserve .a as extension for shared libraries through AIX4.2
19990       # and later when we are not doing run time linking.
19991       library_names_spec='${libname}${release}.a $libname.a'
19992       soname_spec='${libname}${release}${shared_ext}$major'
19993     fi
19994     shlibpath_var=LIBPATH
19995   fi
19996   ;;
19997
19998 amigaos*)
19999   library_names_spec='$libname.ixlibrary $libname.a'
20000   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20001   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'
20002   ;;
20003
20004 beos*)
20005   library_names_spec='${libname}${shared_ext}'
20006   dynamic_linker="$host_os ld.so"
20007   shlibpath_var=LIBRARY_PATH
20008   ;;
20009
20010 bsdi[45]*)
20011   version_type=linux
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20016   shlibpath_var=LD_LIBRARY_PATH
20017   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20018   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20019   # the default ld.so.conf also contains /usr/contrib/lib and
20020   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20021   # libtool to hard-code these into programs
20022   ;;
20023
20024 cygwin* | mingw* | pw32*)
20025   version_type=windows
20026   shrext_cmds=".dll"
20027   need_version=no
20028   need_lib_prefix=no
20029
20030   case $GCC,$host_os in
20031   yes,cygwin* | yes,mingw* | yes,pw32*)
20032     library_names_spec='$libname.dll.a'
20033     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20034     postinstall_cmds='base_file=`basename \${file}`~
20035       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20036       dldir=$destdir/`dirname \$dlpath`~
20037       test -d \$dldir || mkdir -p \$dldir~
20038       $install_prog $dir/$dlname \$dldir/$dlname~
20039       chmod a+x \$dldir/$dlname'
20040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20041       dlpath=$dir/\$dldll~
20042        $rm \$dlpath'
20043     shlibpath_overrides_runpath=yes
20044
20045     case $host_os in
20046     cygwin*)
20047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20048       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20049       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20050       ;;
20051     mingw*)
20052       # MinGW DLLs use traditional 'lib' prefix
20053       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20054       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20055       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20056         # It is most probably a Windows format PATH printed by
20057         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20058         # path with ; separators, and with drive letters. We can handle the
20059         # drive letters (cygwin fileutils understands them), so leave them,
20060         # especially as we might pass files found there to a mingw objdump,
20061         # which wouldn't understand a cygwinified path. Ahh.
20062         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20063       else
20064         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20065       fi
20066       ;;
20067     pw32*)
20068       # pw32 DLLs use 'pw' prefix rather than 'lib'
20069       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20070       ;;
20071     esac
20072     ;;
20073
20074   *)
20075     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20076     ;;
20077   esac
20078   dynamic_linker='Win32 ld.exe'
20079   # FIXME: first we should search . and the directory the executable is in
20080   shlibpath_var=PATH
20081   ;;
20082
20083 darwin* | rhapsody*)
20084   dynamic_linker="$host_os dyld"
20085   version_type=darwin
20086   need_lib_prefix=no
20087   need_version=no
20088   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20089   soname_spec='${libname}${release}${major}$shared_ext'
20090   shlibpath_overrides_runpath=yes
20091   shlibpath_var=DYLD_LIBRARY_PATH
20092   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20093    
20094   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20095   ;;
20096
20097 dgux*)
20098   version_type=linux
20099   need_lib_prefix=no
20100   need_version=no
20101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20102   soname_spec='${libname}${release}${shared_ext}$major'
20103   shlibpath_var=LD_LIBRARY_PATH
20104   ;;
20105
20106 freebsd1*)
20107   dynamic_linker=no
20108   ;;
20109
20110 freebsd* | dragonfly*)
20111   # DragonFly does not have aout.  When/if they implement a new
20112   # versioning mechanism, adjust this.
20113   if test -x /usr/bin/objformat; then
20114     objformat=`/usr/bin/objformat`
20115   else
20116     case $host_os in
20117     freebsd[123]*) objformat=aout ;;
20118     *) objformat=elf ;;
20119     esac
20120   fi
20121   version_type=freebsd-$objformat
20122   case $version_type in
20123     freebsd-elf*)
20124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20125       need_version=no
20126       need_lib_prefix=no
20127       ;;
20128     freebsd-*)
20129       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20130       need_version=yes
20131       ;;
20132   esac
20133   shlibpath_var=LD_LIBRARY_PATH
20134   case $host_os in
20135   freebsd2*)
20136     shlibpath_overrides_runpath=yes
20137     ;;
20138   freebsd3.[01]* | freebsdelf3.[01]*)
20139     shlibpath_overrides_runpath=yes
20140     hardcode_into_libs=yes
20141     ;;
20142   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20143   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20144     shlibpath_overrides_runpath=no
20145     hardcode_into_libs=yes
20146     ;;
20147   *) # from 4.6 on, and DragonFly
20148     shlibpath_overrides_runpath=yes
20149     hardcode_into_libs=yes
20150     ;;
20151   esac
20152   ;;
20153
20154 gnu*)
20155   version_type=linux
20156   need_lib_prefix=no
20157   need_version=no
20158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20159   soname_spec='${libname}${release}${shared_ext}$major'
20160   shlibpath_var=LD_LIBRARY_PATH
20161   hardcode_into_libs=yes
20162   ;;
20163
20164 hpux9* | hpux10* | hpux11*)
20165   # Give a soname corresponding to the major version so that dld.sl refuses to
20166   # link against other versions.
20167   version_type=sunos
20168   need_lib_prefix=no
20169   need_version=no
20170   case $host_cpu in
20171   ia64*)
20172     shrext_cmds='.so'
20173     hardcode_into_libs=yes
20174     dynamic_linker="$host_os dld.so"
20175     shlibpath_var=LD_LIBRARY_PATH
20176     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178     soname_spec='${libname}${release}${shared_ext}$major'
20179     if test "X$HPUX_IA64_MODE" = X32; then
20180       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20181     else
20182       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20183     fi
20184     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20185     ;;
20186    hppa*64*)
20187      shrext_cmds='.sl'
20188      hardcode_into_libs=yes
20189      dynamic_linker="$host_os dld.sl"
20190      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20191      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20192      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20193      soname_spec='${libname}${release}${shared_ext}$major'
20194      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20195      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20196      ;;
20197    *)
20198     shrext_cmds='.sl'
20199     dynamic_linker="$host_os dld.sl"
20200     shlibpath_var=SHLIB_PATH
20201     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20203     soname_spec='${libname}${release}${shared_ext}$major'
20204     ;;
20205   esac
20206   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20207   postinstall_cmds='chmod 555 $lib'
20208   ;;
20209
20210 interix[3-9]*)
20211   version_type=linux
20212   need_lib_prefix=no
20213   need_version=no
20214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20215   soname_spec='${libname}${release}${shared_ext}$major'
20216   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20217   shlibpath_var=LD_LIBRARY_PATH
20218   shlibpath_overrides_runpath=no
20219   hardcode_into_libs=yes
20220   ;;
20221
20222 irix5* | irix6* | nonstopux*)
20223   case $host_os in
20224     nonstopux*) version_type=nonstopux ;;
20225     *)
20226         if test "$lt_cv_prog_gnu_ld" = yes; then
20227                 version_type=linux
20228         else
20229                 version_type=irix
20230         fi ;;
20231   esac
20232   need_lib_prefix=no
20233   need_version=no
20234   soname_spec='${libname}${release}${shared_ext}$major'
20235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20236   case $host_os in
20237   irix5* | nonstopux*)
20238     libsuff= shlibsuff=
20239     ;;
20240   *)
20241     case $LD in # libtool.m4 will add one of these switches to LD
20242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20243       libsuff= shlibsuff= libmagic=32-bit;;
20244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20245       libsuff=32 shlibsuff=N32 libmagic=N32;;
20246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20248     *) libsuff= shlibsuff= libmagic=never-match;;
20249     esac
20250     ;;
20251   esac
20252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20253   shlibpath_overrides_runpath=no
20254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20256   hardcode_into_libs=yes
20257   ;;
20258
20259 # No shared lib support for Linux oldld, aout, or coff.
20260 linux*oldld* | linux*aout* | linux*coff*)
20261   dynamic_linker=no
20262   ;;
20263
20264 # This must be Linux ELF.
20265 linux* | k*bsd*-gnu)
20266   version_type=linux
20267   need_lib_prefix=no
20268   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20272   shlibpath_var=LD_LIBRARY_PATH
20273   shlibpath_overrides_runpath=no
20274   # This implies no fast_install, which is unacceptable.
20275   # Some rework will be needed to allow for fast_install
20276   # before this can be enabled.
20277   hardcode_into_libs=yes
20278
20279   # Append ld.so.conf contents to the search path
20280   if test -f /etc/ld.so.conf; then
20281     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20282     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20283   fi
20284
20285   # We used to test for /lib/ld.so.1 and disable shared libraries on
20286   # powerpc, because MkLinux only supported shared libraries with the
20287   # GNU dynamic linker.  Since this was broken with cross compilers,
20288   # most powerpc-linux boxes support dynamic linking these days and
20289   # people can always --disable-shared, the test was removed, and we
20290   # assume the GNU/Linux dynamic linker is in use.
20291   dynamic_linker='GNU/Linux ld.so'
20292   ;;
20293
20294 netbsd*)
20295   version_type=sunos
20296   need_lib_prefix=no
20297   need_version=no
20298   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20300     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20301     dynamic_linker='NetBSD (a.out) ld.so'
20302   else
20303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20304     soname_spec='${libname}${release}${shared_ext}$major'
20305     dynamic_linker='NetBSD ld.elf_so'
20306   fi
20307   shlibpath_var=LD_LIBRARY_PATH
20308   shlibpath_overrides_runpath=yes
20309   hardcode_into_libs=yes
20310   ;;
20311
20312 newsos6)
20313   version_type=linux
20314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20315   shlibpath_var=LD_LIBRARY_PATH
20316   shlibpath_overrides_runpath=yes
20317   ;;
20318
20319 nto-qnx*)
20320   version_type=linux
20321   need_lib_prefix=no
20322   need_version=no
20323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20324   soname_spec='${libname}${release}${shared_ext}$major'
20325   shlibpath_var=LD_LIBRARY_PATH
20326   shlibpath_overrides_runpath=yes
20327   ;;
20328
20329 openbsd*)
20330   version_type=sunos
20331   sys_lib_dlsearch_path_spec="/usr/lib"
20332   need_lib_prefix=no
20333   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20334   case $host_os in
20335     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20336     *)                         need_version=no  ;;
20337   esac
20338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20339   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20340   shlibpath_var=LD_LIBRARY_PATH
20341   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20342     case $host_os in
20343       openbsd2.[89] | openbsd2.[89].*)
20344         shlibpath_overrides_runpath=no
20345         ;;
20346       *)
20347         shlibpath_overrides_runpath=yes
20348         ;;
20349       esac
20350   else
20351     shlibpath_overrides_runpath=yes
20352   fi
20353   ;;
20354
20355 os2*)
20356   libname_spec='$name'
20357   shrext_cmds=".dll"
20358   need_lib_prefix=no
20359   library_names_spec='$libname${shared_ext} $libname.a'
20360   dynamic_linker='OS/2 ld.exe'
20361   shlibpath_var=LIBPATH
20362   ;;
20363
20364 osf3* | osf4* | osf5*)
20365   version_type=osf
20366   need_lib_prefix=no
20367   need_version=no
20368   soname_spec='${libname}${release}${shared_ext}$major'
20369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20370   shlibpath_var=LD_LIBRARY_PATH
20371   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20372   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20373   ;;
20374
20375 rdos*)
20376   dynamic_linker=no
20377   ;;
20378
20379 solaris*)
20380   version_type=linux
20381   need_lib_prefix=no
20382   need_version=no
20383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384   soname_spec='${libname}${release}${shared_ext}$major'
20385   shlibpath_var=LD_LIBRARY_PATH
20386   shlibpath_overrides_runpath=yes
20387   hardcode_into_libs=yes
20388   # ldd complains unless libraries are executable
20389   postinstall_cmds='chmod +x $lib'
20390   ;;
20391
20392 sunos4*)
20393   version_type=sunos
20394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20395   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20396   shlibpath_var=LD_LIBRARY_PATH
20397   shlibpath_overrides_runpath=yes
20398   if test "$with_gnu_ld" = yes; then
20399     need_lib_prefix=no
20400   fi
20401   need_version=yes
20402   ;;
20403
20404 sysv4 | sysv4.3*)
20405   version_type=linux
20406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20407   soname_spec='${libname}${release}${shared_ext}$major'
20408   shlibpath_var=LD_LIBRARY_PATH
20409   case $host_vendor in
20410     sni)
20411       shlibpath_overrides_runpath=no
20412       need_lib_prefix=no
20413       export_dynamic_flag_spec='${wl}-Blargedynsym'
20414       runpath_var=LD_RUN_PATH
20415       ;;
20416     siemens)
20417       need_lib_prefix=no
20418       ;;
20419     motorola)
20420       need_lib_prefix=no
20421       need_version=no
20422       shlibpath_overrides_runpath=no
20423       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20424       ;;
20425   esac
20426   ;;
20427
20428 sysv4*MP*)
20429   if test -d /usr/nec ;then
20430     version_type=linux
20431     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20432     soname_spec='$libname${shared_ext}.$major'
20433     shlibpath_var=LD_LIBRARY_PATH
20434   fi
20435   ;;
20436
20437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20438   version_type=freebsd-elf
20439   need_lib_prefix=no
20440   need_version=no
20441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20442   soname_spec='${libname}${release}${shared_ext}$major'
20443   shlibpath_var=LD_LIBRARY_PATH
20444   hardcode_into_libs=yes
20445   if test "$with_gnu_ld" = yes; then
20446     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20447     shlibpath_overrides_runpath=no
20448   else
20449     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20450     shlibpath_overrides_runpath=yes
20451     case $host_os in
20452       sco3.2v5*)
20453         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20454         ;;
20455     esac
20456   fi
20457   sys_lib_dlsearch_path_spec='/usr/lib'
20458   ;;
20459
20460 uts4*)
20461   version_type=linux
20462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20463   soname_spec='${libname}${release}${shared_ext}$major'
20464   shlibpath_var=LD_LIBRARY_PATH
20465   ;;
20466
20467 *)
20468   dynamic_linker=no
20469   ;;
20470 esac
20471 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20472 echo "${ECHO_T}$dynamic_linker" >&6; }
20473 test "$dynamic_linker" = no && can_build_shared=no
20474
20475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20476   echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20479 fi
20480
20481 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20482 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20486 fi
20487
20488 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20489
20490 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20491 if test "$GCC" = yes; then
20492   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20493 fi
20494
20495 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20496 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20497 hardcode_action_GCJ=
20498 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20499    test -n "$runpath_var_GCJ" || \
20500    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20501
20502   # We can hardcode non-existant directories.
20503   if test "$hardcode_direct_GCJ" != no &&
20504      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20505      # have to relink, otherwise we might link with an installed library
20506      # when we should be linking with a yet-to-be-installed one
20507      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20508      test "$hardcode_minus_L_GCJ" != no; then
20509     # Linking always hardcodes the temporary library directory.
20510     hardcode_action_GCJ=relink
20511   else
20512     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20513     hardcode_action_GCJ=immediate
20514   fi
20515 else
20516   # We cannot hardcode anything, or else we can only hardcode existing
20517   # directories.
20518   hardcode_action_GCJ=unsupported
20519 fi
20520 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20521 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20522
20523 if test "$hardcode_action_GCJ" = relink; then
20524   # Fast installation is not supported
20525   enable_fast_install=no
20526 elif test "$shlibpath_overrides_runpath" = yes ||
20527      test "$enable_shared" = no; then
20528   # Fast installation is not necessary
20529   enable_fast_install=needless
20530 fi
20531
20532
20533 # The else clause should only fire when bootstrapping the
20534 # libtool distribution, otherwise you forgot to ship ltmain.sh
20535 # with your package, and you will get complaints that there are
20536 # no rules to generate ltmain.sh.
20537 if test -f "$ltmain"; then
20538   # See if we are running on zsh, and set the options which allow our commands through
20539   # without removal of \ escapes.
20540   if test -n "${ZSH_VERSION+set}" ; then
20541     setopt NO_GLOB_SUBST
20542   fi
20543   # Now quote all the things that may contain metacharacters while being
20544   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20545   # variables and quote the copies for generation of the libtool script.
20546   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20547     SED SHELL STRIP \
20548     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20549     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20550     deplibs_check_method reload_flag reload_cmds need_locks \
20551     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20552     lt_cv_sys_global_symbol_to_c_name_address \
20553     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20554     old_postinstall_cmds old_postuninstall_cmds \
20555     compiler_GCJ \
20556     CC_GCJ \
20557     LD_GCJ \
20558     lt_prog_compiler_wl_GCJ \
20559     lt_prog_compiler_pic_GCJ \
20560     lt_prog_compiler_static_GCJ \
20561     lt_prog_compiler_no_builtin_flag_GCJ \
20562     export_dynamic_flag_spec_GCJ \
20563     thread_safe_flag_spec_GCJ \
20564     whole_archive_flag_spec_GCJ \
20565     enable_shared_with_static_runtimes_GCJ \
20566     old_archive_cmds_GCJ \
20567     old_archive_from_new_cmds_GCJ \
20568     predep_objects_GCJ \
20569     postdep_objects_GCJ \
20570     predeps_GCJ \
20571     postdeps_GCJ \
20572     compiler_lib_search_path_GCJ \
20573     compiler_lib_search_dirs_GCJ \
20574     archive_cmds_GCJ \
20575     archive_expsym_cmds_GCJ \
20576     postinstall_cmds_GCJ \
20577     postuninstall_cmds_GCJ \
20578     old_archive_from_expsyms_cmds_GCJ \
20579     allow_undefined_flag_GCJ \
20580     no_undefined_flag_GCJ \
20581     export_symbols_cmds_GCJ \
20582     hardcode_libdir_flag_spec_GCJ \
20583     hardcode_libdir_flag_spec_ld_GCJ \
20584     hardcode_libdir_separator_GCJ \
20585     hardcode_automatic_GCJ \
20586     module_cmds_GCJ \
20587     module_expsym_cmds_GCJ \
20588     lt_cv_prog_compiler_c_o_GCJ \
20589     fix_srcfile_path_GCJ \
20590     exclude_expsyms_GCJ \
20591     include_expsyms_GCJ; do
20592
20593     case $var in
20594     old_archive_cmds_GCJ | \
20595     old_archive_from_new_cmds_GCJ | \
20596     archive_cmds_GCJ | \
20597     archive_expsym_cmds_GCJ | \
20598     module_cmds_GCJ | \
20599     module_expsym_cmds_GCJ | \
20600     old_archive_from_expsyms_cmds_GCJ | \
20601     export_symbols_cmds_GCJ | \
20602     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20603     postinstall_cmds | postuninstall_cmds | \
20604     old_postinstall_cmds | old_postuninstall_cmds | \
20605     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20606       # Double-quote double-evaled strings.
20607       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20608       ;;
20609     *)
20610       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20611       ;;
20612     esac
20613   done
20614
20615   case $lt_echo in
20616   *'\$0 --fallback-echo"')
20617     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20618     ;;
20619   esac
20620
20621 cfgfile="$ofile"
20622
20623   cat <<__EOF__ >> "$cfgfile"
20624 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20625
20626 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20627
20628 # Shell to use when invoking shell scripts.
20629 SHELL=$lt_SHELL
20630
20631 # Whether or not to build shared libraries.
20632 build_libtool_libs=$enable_shared
20633
20634 # Whether or not to build static libraries.
20635 build_old_libs=$enable_static
20636
20637 # Whether or not to add -lc for building shared libraries.
20638 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20639
20640 # Whether or not to disallow shared libs when runtime libs are static
20641 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20642
20643 # Whether or not to optimize for fast installation.
20644 fast_install=$enable_fast_install
20645
20646 # The host system.
20647 host_alias=$host_alias
20648 host=$host
20649 host_os=$host_os
20650
20651 # The build system.
20652 build_alias=$build_alias
20653 build=$build
20654 build_os=$build_os
20655
20656 # An echo program that does not interpret backslashes.
20657 echo=$lt_echo
20658
20659 # The archiver.
20660 AR=$lt_AR
20661 AR_FLAGS=$lt_AR_FLAGS
20662
20663 # A C compiler.
20664 LTCC=$lt_LTCC
20665
20666 # LTCC compiler flags.
20667 LTCFLAGS=$lt_LTCFLAGS
20668
20669 # A language-specific compiler.
20670 CC=$lt_compiler_GCJ
20671
20672 # Is the compiler the GNU C compiler?
20673 with_gcc=$GCC_GCJ
20674
20675 # An ERE matcher.
20676 EGREP=$lt_EGREP
20677
20678 # The linker used to build libraries.
20679 LD=$lt_LD_GCJ
20680
20681 # Whether we need hard or soft links.
20682 LN_S=$lt_LN_S
20683
20684 # A BSD-compatible nm program.
20685 NM=$lt_NM
20686
20687 # A symbol stripping program
20688 STRIP=$lt_STRIP
20689
20690 # Used to examine libraries when file_magic_cmd begins "file"
20691 MAGIC_CMD=$MAGIC_CMD
20692
20693 # Used on cygwin: DLL creation program.
20694 DLLTOOL="$DLLTOOL"
20695
20696 # Used on cygwin: object dumper.
20697 OBJDUMP="$OBJDUMP"
20698
20699 # Used on cygwin: assembler.
20700 AS="$AS"
20701
20702 # The name of the directory that contains temporary libtool files.
20703 objdir=$objdir
20704
20705 # How to create reloadable object files.
20706 reload_flag=$lt_reload_flag
20707 reload_cmds=$lt_reload_cmds
20708
20709 # How to pass a linker flag through the compiler.
20710 wl=$lt_lt_prog_compiler_wl_GCJ
20711
20712 # Object file suffix (normally "o").
20713 objext="$ac_objext"
20714
20715 # Old archive suffix (normally "a").
20716 libext="$libext"
20717
20718 # Shared library suffix (normally ".so").
20719 shrext_cmds='$shrext_cmds'
20720
20721 # Executable file suffix (normally "").
20722 exeext="$exeext"
20723
20724 # Additional compiler flags for building library objects.
20725 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20726 pic_mode=$pic_mode
20727
20728 # What is the maximum length of a command?
20729 max_cmd_len=$lt_cv_sys_max_cmd_len
20730
20731 # Does compiler simultaneously support -c and -o options?
20732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20733
20734 # Must we lock files when doing compilation?
20735 need_locks=$lt_need_locks
20736
20737 # Do we need the lib prefix for modules?
20738 need_lib_prefix=$need_lib_prefix
20739
20740 # Do we need a version for libraries?
20741 need_version=$need_version
20742
20743 # Whether dlopen is supported.
20744 dlopen_support=$enable_dlopen
20745
20746 # Whether dlopen of programs is supported.
20747 dlopen_self=$enable_dlopen_self
20748
20749 # Whether dlopen of statically linked programs is supported.
20750 dlopen_self_static=$enable_dlopen_self_static
20751
20752 # Compiler flag to prevent dynamic linking.
20753 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20754
20755 # Compiler flag to turn off builtin functions.
20756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20757
20758 # Compiler flag to allow reflexive dlopens.
20759 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20760
20761 # Compiler flag to generate shared objects directly from archives.
20762 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20763
20764 # Compiler flag to generate thread-safe objects.
20765 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20766
20767 # Library versioning type.
20768 version_type=$version_type
20769
20770 # Format of library name prefix.
20771 libname_spec=$lt_libname_spec
20772
20773 # List of archive names.  First name is the real one, the rest are links.
20774 # The last name is the one that the linker finds with -lNAME.
20775 library_names_spec=$lt_library_names_spec
20776
20777 # The coded name of the library, if different from the real name.
20778 soname_spec=$lt_soname_spec
20779
20780 # Commands used to build and install an old-style archive.
20781 RANLIB=$lt_RANLIB
20782 old_archive_cmds=$lt_old_archive_cmds_GCJ
20783 old_postinstall_cmds=$lt_old_postinstall_cmds
20784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20785
20786 # Create an old-style archive from a shared archive.
20787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20788
20789 # Create a temporary old-style archive to link instead of a shared archive.
20790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20791
20792 # Commands used to build and install a shared archive.
20793 archive_cmds=$lt_archive_cmds_GCJ
20794 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20795 postinstall_cmds=$lt_postinstall_cmds
20796 postuninstall_cmds=$lt_postuninstall_cmds
20797
20798 # Commands used to build a loadable module (assumed same as above if empty)
20799 module_cmds=$lt_module_cmds_GCJ
20800 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20801
20802 # Commands to strip libraries.
20803 old_striplib=$lt_old_striplib
20804 striplib=$lt_striplib
20805
20806 # Dependencies to place before the objects being linked to create a
20807 # shared library.
20808 predep_objects=$lt_predep_objects_GCJ
20809
20810 # Dependencies to place after the objects being linked to create a
20811 # shared library.
20812 postdep_objects=$lt_postdep_objects_GCJ
20813
20814 # Dependencies to place before the objects being linked to create a
20815 # shared library.
20816 predeps=$lt_predeps_GCJ
20817
20818 # Dependencies to place after the objects being linked to create a
20819 # shared library.
20820 postdeps=$lt_postdeps_GCJ
20821
20822 # The directories searched by this compiler when creating a shared
20823 # library
20824 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20825
20826 # The library search path used internally by the compiler when linking
20827 # a shared library.
20828 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20829
20830 # Method to check whether dependent libraries are shared objects.
20831 deplibs_check_method=$lt_deplibs_check_method
20832
20833 # Command to use when deplibs_check_method == file_magic.
20834 file_magic_cmd=$lt_file_magic_cmd
20835
20836 # Flag that allows shared libraries with undefined symbols to be built.
20837 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20838
20839 # Flag that forces no undefined symbols.
20840 no_undefined_flag=$lt_no_undefined_flag_GCJ
20841
20842 # Commands used to finish a libtool library installation in a directory.
20843 finish_cmds=$lt_finish_cmds
20844
20845 # Same as above, but a single script fragment to be evaled but not shown.
20846 finish_eval=$lt_finish_eval
20847
20848 # Take the output of nm and produce a listing of raw symbols and C names.
20849 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20850
20851 # Transform the output of nm in a proper C declaration
20852 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20853
20854 # Transform the output of nm in a C name address pair
20855 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20856
20857 # This is the shared library runtime path variable.
20858 runpath_var=$runpath_var
20859
20860 # This is the shared library path variable.
20861 shlibpath_var=$shlibpath_var
20862
20863 # Is shlibpath searched before the hard-coded library search path?
20864 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20865
20866 # How to hardcode a shared library path into an executable.
20867 hardcode_action=$hardcode_action_GCJ
20868
20869 # Whether we should hardcode library paths into libraries.
20870 hardcode_into_libs=$hardcode_into_libs
20871
20872 # Flag to hardcode \$libdir into a binary during linking.
20873 # This must work even if \$libdir does not exist.
20874 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20875
20876 # If ld is used when linking, flag to hardcode \$libdir into
20877 # a binary during linking. This must work even if \$libdir does
20878 # not exist.
20879 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20880
20881 # Whether we need a single -rpath flag with a separated argument.
20882 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20883
20884 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20885 # resulting binary.
20886 hardcode_direct=$hardcode_direct_GCJ
20887
20888 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20889 # resulting binary.
20890 hardcode_minus_L=$hardcode_minus_L_GCJ
20891
20892 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20893 # the resulting binary.
20894 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20895
20896 # Set to yes if building a shared library automatically hardcodes DIR into the library
20897 # and all subsequent libraries and executables linked against it.
20898 hardcode_automatic=$hardcode_automatic_GCJ
20899
20900 # Variables whose values should be saved in libtool wrapper scripts and
20901 # restored at relink time.
20902 variables_saved_for_relink="$variables_saved_for_relink"
20903
20904 # Whether libtool must link a program against all its dependency libraries.
20905 link_all_deplibs=$link_all_deplibs_GCJ
20906
20907 # Compile-time system search path for libraries
20908 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20909
20910 # Run-time system search path for libraries
20911 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20912
20913 # Fix the shell variable \$srcfile for the compiler.
20914 fix_srcfile_path=$lt_fix_srcfile_path
20915
20916 # Set to yes if exported symbols are required.
20917 always_export_symbols=$always_export_symbols_GCJ
20918
20919 # The commands to list exported symbols.
20920 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20921
20922 # The commands to extract the exported symbol list from a shared archive.
20923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20924
20925 # Symbols that should not be listed in the preloaded symbols.
20926 exclude_expsyms=$lt_exclude_expsyms_GCJ
20927
20928 # Symbols that must always be exported.
20929 include_expsyms=$lt_include_expsyms_GCJ
20930
20931 # ### END LIBTOOL TAG CONFIG: $tagname
20932
20933 __EOF__
20934
20935
20936 else
20937   # If there is no Makefile yet, we rely on a make rule to execute
20938   # `config.status --recheck' to rerun these tests and create the
20939   # libtool script then.
20940   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20941   if test -f "$ltmain_in"; then
20942     test -f Makefile && make "$ltmain"
20943   fi
20944 fi
20945
20946
20947 ac_ext=c
20948 ac_cpp='$CPP $CPPFLAGS'
20949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20952
20953 CC="$lt_save_CC"
20954
20955         else
20956           tagname=""
20957         fi
20958         ;;
20959
20960       RC)
20961         
20962
20963 # Source file extension for RC test sources.
20964 ac_ext=rc
20965
20966 # Object file extension for compiled RC test sources.
20967 objext=o
20968 objext_RC=$objext
20969
20970 # Code to be used in simple compile tests
20971 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20972
20973 # Code to be used in simple link tests
20974 lt_simple_link_test_code="$lt_simple_compile_test_code"
20975
20976 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20977
20978 # If no C compiler was specified, use CC.
20979 LTCC=${LTCC-"$CC"}
20980
20981 # If no C compiler flags were specified, use CFLAGS.
20982 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20983
20984 # Allow CC to be a program name with arguments.
20985 compiler=$CC
20986
20987
20988 # save warnings/boilerplate of simple test code
20989 ac_outfile=conftest.$ac_objext
20990 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20991 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20992 _lt_compiler_boilerplate=`cat conftest.err`
20993 $rm conftest*
20994
20995 ac_outfile=conftest.$ac_objext
20996 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20997 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20998 _lt_linker_boilerplate=`cat conftest.err`
20999 $rm -r conftest*
21000
21001
21002 # Allow CC to be a program name with arguments.
21003 lt_save_CC="$CC"
21004 CC=${RC-"windres"}
21005 compiler=$CC
21006 compiler_RC=$CC
21007 for cc_temp in $compiler""; do
21008   case $cc_temp in
21009     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21010     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21011     \-*) ;;
21012     *) break;;
21013   esac
21014 done
21015 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21016
21017 lt_cv_prog_compiler_c_o_RC=yes
21018
21019 # The else clause should only fire when bootstrapping the
21020 # libtool distribution, otherwise you forgot to ship ltmain.sh
21021 # with your package, and you will get complaints that there are
21022 # no rules to generate ltmain.sh.
21023 if test -f "$ltmain"; then
21024   # See if we are running on zsh, and set the options which allow our commands through
21025   # without removal of \ escapes.
21026   if test -n "${ZSH_VERSION+set}" ; then
21027     setopt NO_GLOB_SUBST
21028   fi
21029   # Now quote all the things that may contain metacharacters while being
21030   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21031   # variables and quote the copies for generation of the libtool script.
21032   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21033     SED SHELL STRIP \
21034     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21035     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21036     deplibs_check_method reload_flag reload_cmds need_locks \
21037     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21038     lt_cv_sys_global_symbol_to_c_name_address \
21039     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21040     old_postinstall_cmds old_postuninstall_cmds \
21041     compiler_RC \
21042     CC_RC \
21043     LD_RC \
21044     lt_prog_compiler_wl_RC \
21045     lt_prog_compiler_pic_RC \
21046     lt_prog_compiler_static_RC \
21047     lt_prog_compiler_no_builtin_flag_RC \
21048     export_dynamic_flag_spec_RC \
21049     thread_safe_flag_spec_RC \
21050     whole_archive_flag_spec_RC \
21051     enable_shared_with_static_runtimes_RC \
21052     old_archive_cmds_RC \
21053     old_archive_from_new_cmds_RC \
21054     predep_objects_RC \
21055     postdep_objects_RC \
21056     predeps_RC \
21057     postdeps_RC \
21058     compiler_lib_search_path_RC \
21059     compiler_lib_search_dirs_RC \
21060     archive_cmds_RC \
21061     archive_expsym_cmds_RC \
21062     postinstall_cmds_RC \
21063     postuninstall_cmds_RC \
21064     old_archive_from_expsyms_cmds_RC \
21065     allow_undefined_flag_RC \
21066     no_undefined_flag_RC \
21067     export_symbols_cmds_RC \
21068     hardcode_libdir_flag_spec_RC \
21069     hardcode_libdir_flag_spec_ld_RC \
21070     hardcode_libdir_separator_RC \
21071     hardcode_automatic_RC \
21072     module_cmds_RC \
21073     module_expsym_cmds_RC \
21074     lt_cv_prog_compiler_c_o_RC \
21075     fix_srcfile_path_RC \
21076     exclude_expsyms_RC \
21077     include_expsyms_RC; do
21078
21079     case $var in
21080     old_archive_cmds_RC | \
21081     old_archive_from_new_cmds_RC | \
21082     archive_cmds_RC | \
21083     archive_expsym_cmds_RC | \
21084     module_cmds_RC | \
21085     module_expsym_cmds_RC | \
21086     old_archive_from_expsyms_cmds_RC | \
21087     export_symbols_cmds_RC | \
21088     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21089     postinstall_cmds | postuninstall_cmds | \
21090     old_postinstall_cmds | old_postuninstall_cmds | \
21091     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21092       # Double-quote double-evaled strings.
21093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21094       ;;
21095     *)
21096       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21097       ;;
21098     esac
21099   done
21100
21101   case $lt_echo in
21102   *'\$0 --fallback-echo"')
21103     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21104     ;;
21105   esac
21106
21107 cfgfile="$ofile"
21108
21109   cat <<__EOF__ >> "$cfgfile"
21110 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21111
21112 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21113
21114 # Shell to use when invoking shell scripts.
21115 SHELL=$lt_SHELL
21116
21117 # Whether or not to build shared libraries.
21118 build_libtool_libs=$enable_shared
21119
21120 # Whether or not to build static libraries.
21121 build_old_libs=$enable_static
21122
21123 # Whether or not to add -lc for building shared libraries.
21124 build_libtool_need_lc=$archive_cmds_need_lc_RC
21125
21126 # Whether or not to disallow shared libs when runtime libs are static
21127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21128
21129 # Whether or not to optimize for fast installation.
21130 fast_install=$enable_fast_install
21131
21132 # The host system.
21133 host_alias=$host_alias
21134 host=$host
21135 host_os=$host_os
21136
21137 # The build system.
21138 build_alias=$build_alias
21139 build=$build
21140 build_os=$build_os
21141
21142 # An echo program that does not interpret backslashes.
21143 echo=$lt_echo
21144
21145 # The archiver.
21146 AR=$lt_AR
21147 AR_FLAGS=$lt_AR_FLAGS
21148
21149 # A C compiler.
21150 LTCC=$lt_LTCC
21151
21152 # LTCC compiler flags.
21153 LTCFLAGS=$lt_LTCFLAGS
21154
21155 # A language-specific compiler.
21156 CC=$lt_compiler_RC
21157
21158 # Is the compiler the GNU C compiler?
21159 with_gcc=$GCC_RC
21160
21161 # An ERE matcher.
21162 EGREP=$lt_EGREP
21163
21164 # The linker used to build libraries.
21165 LD=$lt_LD_RC
21166
21167 # Whether we need hard or soft links.
21168 LN_S=$lt_LN_S
21169
21170 # A BSD-compatible nm program.
21171 NM=$lt_NM
21172
21173 # A symbol stripping program
21174 STRIP=$lt_STRIP
21175
21176 # Used to examine libraries when file_magic_cmd begins "file"
21177 MAGIC_CMD=$MAGIC_CMD
21178
21179 # Used on cygwin: DLL creation program.
21180 DLLTOOL="$DLLTOOL"
21181
21182 # Used on cygwin: object dumper.
21183 OBJDUMP="$OBJDUMP"
21184
21185 # Used on cygwin: assembler.
21186 AS="$AS"
21187
21188 # The name of the directory that contains temporary libtool files.
21189 objdir=$objdir
21190
21191 # How to create reloadable object files.
21192 reload_flag=$lt_reload_flag
21193 reload_cmds=$lt_reload_cmds
21194
21195 # How to pass a linker flag through the compiler.
21196 wl=$lt_lt_prog_compiler_wl_RC
21197
21198 # Object file suffix (normally "o").
21199 objext="$ac_objext"
21200
21201 # Old archive suffix (normally "a").
21202 libext="$libext"
21203
21204 # Shared library suffix (normally ".so").
21205 shrext_cmds='$shrext_cmds'
21206
21207 # Executable file suffix (normally "").
21208 exeext="$exeext"
21209
21210 # Additional compiler flags for building library objects.
21211 pic_flag=$lt_lt_prog_compiler_pic_RC
21212 pic_mode=$pic_mode
21213
21214 # What is the maximum length of a command?
21215 max_cmd_len=$lt_cv_sys_max_cmd_len
21216
21217 # Does compiler simultaneously support -c and -o options?
21218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21219
21220 # Must we lock files when doing compilation?
21221 need_locks=$lt_need_locks
21222
21223 # Do we need the lib prefix for modules?
21224 need_lib_prefix=$need_lib_prefix
21225
21226 # Do we need a version for libraries?
21227 need_version=$need_version
21228
21229 # Whether dlopen is supported.
21230 dlopen_support=$enable_dlopen
21231
21232 # Whether dlopen of programs is supported.
21233 dlopen_self=$enable_dlopen_self
21234
21235 # Whether dlopen of statically linked programs is supported.
21236 dlopen_self_static=$enable_dlopen_self_static
21237
21238 # Compiler flag to prevent dynamic linking.
21239 link_static_flag=$lt_lt_prog_compiler_static_RC
21240
21241 # Compiler flag to turn off builtin functions.
21242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21243
21244 # Compiler flag to allow reflexive dlopens.
21245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21246
21247 # Compiler flag to generate shared objects directly from archives.
21248 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21249
21250 # Compiler flag to generate thread-safe objects.
21251 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21252
21253 # Library versioning type.
21254 version_type=$version_type
21255
21256 # Format of library name prefix.
21257 libname_spec=$lt_libname_spec
21258
21259 # List of archive names.  First name is the real one, the rest are links.
21260 # The last name is the one that the linker finds with -lNAME.
21261 library_names_spec=$lt_library_names_spec
21262
21263 # The coded name of the library, if different from the real name.
21264 soname_spec=$lt_soname_spec
21265
21266 # Commands used to build and install an old-style archive.
21267 RANLIB=$lt_RANLIB
21268 old_archive_cmds=$lt_old_archive_cmds_RC
21269 old_postinstall_cmds=$lt_old_postinstall_cmds
21270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21271
21272 # Create an old-style archive from a shared archive.
21273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21274
21275 # Create a temporary old-style archive to link instead of a shared archive.
21276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21277
21278 # Commands used to build and install a shared archive.
21279 archive_cmds=$lt_archive_cmds_RC
21280 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21281 postinstall_cmds=$lt_postinstall_cmds
21282 postuninstall_cmds=$lt_postuninstall_cmds
21283
21284 # Commands used to build a loadable module (assumed same as above if empty)
21285 module_cmds=$lt_module_cmds_RC
21286 module_expsym_cmds=$lt_module_expsym_cmds_RC
21287
21288 # Commands to strip libraries.
21289 old_striplib=$lt_old_striplib
21290 striplib=$lt_striplib
21291
21292 # Dependencies to place before the objects being linked to create a
21293 # shared library.
21294 predep_objects=$lt_predep_objects_RC
21295
21296 # Dependencies to place after the objects being linked to create a
21297 # shared library.
21298 postdep_objects=$lt_postdep_objects_RC
21299
21300 # Dependencies to place before the objects being linked to create a
21301 # shared library.
21302 predeps=$lt_predeps_RC
21303
21304 # Dependencies to place after the objects being linked to create a
21305 # shared library.
21306 postdeps=$lt_postdeps_RC
21307
21308 # The directories searched by this compiler when creating a shared
21309 # library
21310 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21311
21312 # The library search path used internally by the compiler when linking
21313 # a shared library.
21314 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21315
21316 # Method to check whether dependent libraries are shared objects.
21317 deplibs_check_method=$lt_deplibs_check_method
21318
21319 # Command to use when deplibs_check_method == file_magic.
21320 file_magic_cmd=$lt_file_magic_cmd
21321
21322 # Flag that allows shared libraries with undefined symbols to be built.
21323 allow_undefined_flag=$lt_allow_undefined_flag_RC
21324
21325 # Flag that forces no undefined symbols.
21326 no_undefined_flag=$lt_no_undefined_flag_RC
21327
21328 # Commands used to finish a libtool library installation in a directory.
21329 finish_cmds=$lt_finish_cmds
21330
21331 # Same as above, but a single script fragment to be evaled but not shown.
21332 finish_eval=$lt_finish_eval
21333
21334 # Take the output of nm and produce a listing of raw symbols and C names.
21335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21336
21337 # Transform the output of nm in a proper C declaration
21338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21339
21340 # Transform the output of nm in a C name address pair
21341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21342
21343 # This is the shared library runtime path variable.
21344 runpath_var=$runpath_var
21345
21346 # This is the shared library path variable.
21347 shlibpath_var=$shlibpath_var
21348
21349 # Is shlibpath searched before the hard-coded library search path?
21350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21351
21352 # How to hardcode a shared library path into an executable.
21353 hardcode_action=$hardcode_action_RC
21354
21355 # Whether we should hardcode library paths into libraries.
21356 hardcode_into_libs=$hardcode_into_libs
21357
21358 # Flag to hardcode \$libdir into a binary during linking.
21359 # This must work even if \$libdir does not exist.
21360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21361
21362 # If ld is used when linking, flag to hardcode \$libdir into
21363 # a binary during linking. This must work even if \$libdir does
21364 # not exist.
21365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21366
21367 # Whether we need a single -rpath flag with a separated argument.
21368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21369
21370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21371 # resulting binary.
21372 hardcode_direct=$hardcode_direct_RC
21373
21374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21375 # resulting binary.
21376 hardcode_minus_L=$hardcode_minus_L_RC
21377
21378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21379 # the resulting binary.
21380 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21381
21382 # Set to yes if building a shared library automatically hardcodes DIR into the library
21383 # and all subsequent libraries and executables linked against it.
21384 hardcode_automatic=$hardcode_automatic_RC
21385
21386 # Variables whose values should be saved in libtool wrapper scripts and
21387 # restored at relink time.
21388 variables_saved_for_relink="$variables_saved_for_relink"
21389
21390 # Whether libtool must link a program against all its dependency libraries.
21391 link_all_deplibs=$link_all_deplibs_RC
21392
21393 # Compile-time system search path for libraries
21394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21395
21396 # Run-time system search path for libraries
21397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21398
21399 # Fix the shell variable \$srcfile for the compiler.
21400 fix_srcfile_path=$lt_fix_srcfile_path
21401
21402 # Set to yes if exported symbols are required.
21403 always_export_symbols=$always_export_symbols_RC
21404
21405 # The commands to list exported symbols.
21406 export_symbols_cmds=$lt_export_symbols_cmds_RC
21407
21408 # The commands to extract the exported symbol list from a shared archive.
21409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21410
21411 # Symbols that should not be listed in the preloaded symbols.
21412 exclude_expsyms=$lt_exclude_expsyms_RC
21413
21414 # Symbols that must always be exported.
21415 include_expsyms=$lt_include_expsyms_RC
21416
21417 # ### END LIBTOOL TAG CONFIG: $tagname
21418
21419 __EOF__
21420
21421
21422 else
21423   # If there is no Makefile yet, we rely on a make rule to execute
21424   # `config.status --recheck' to rerun these tests and create the
21425   # libtool script then.
21426   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21427   if test -f "$ltmain_in"; then
21428     test -f Makefile && make "$ltmain"
21429   fi
21430 fi
21431
21432
21433 ac_ext=c
21434 ac_cpp='$CPP $CPPFLAGS'
21435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21438
21439 CC="$lt_save_CC"
21440
21441         ;;
21442
21443       *)
21444         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21445 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21446    { (exit 1); exit 1; }; }
21447         ;;
21448       esac
21449
21450       # Append the new tag name to the list of available tags.
21451       if test -n "$tagname" ; then
21452       available_tags="$available_tags $tagname"
21453     fi
21454     fi
21455   done
21456   IFS="$lt_save_ifs"
21457
21458   # Now substitute the updated list of available tags.
21459   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21460     mv "${ofile}T" "$ofile"
21461     chmod +x "$ofile"
21462   else
21463     rm -f "${ofile}T"
21464     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21465 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21466    { (exit 1); exit 1; }; }
21467   fi
21468 fi
21469
21470
21471
21472 # This can be used to rebuild libtool when needed
21473 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21474
21475 # Always use our own libtool.
21476 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21477
21478 # Prevent multiple expansion
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490   
21491
21492   
21493
21494
21495   
21496        
21497        
21498
21499
21500
21501
21502 # -Wunreachable-code can't be used with library
21503 CFLAGS="$CFLAGS -pedantic-errors -Wall -Wmissing-prototypes -Wcast-align -std=c99"
21504
21505 # set -fgnu89-inline for GCC4 compilers
21506 if test -z "$ac_cv_prog_CC"; then
21507   configure_gcc="$CC"
21508 else
21509   configure_gcc="$ac_cv_prog_CC"
21510 fi
21511 if $configure_gcc --version | sed -e 's,\..*,.,' -e q | grep -q 4.$ ; then
21512   CFLAGS="$CFLAGS -fgnu89-inline"
21513 fi
21514
21515
21516
21517
21518
21519 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21520         if test -n "$ac_tool_prefix"; then
21521   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21522 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21525 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21526   echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528   case $PKG_CONFIG in
21529   [\\/]* | ?:[\\/]*)
21530   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21531   ;;
21532   *)
21533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21534 for as_dir in $PATH
21535 do
21536   IFS=$as_save_IFS
21537   test -z "$as_dir" && as_dir=.
21538   for ac_exec_ext in '' $ac_executable_extensions; do
21539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21540     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21542     break 2
21543   fi
21544 done
21545 done
21546 IFS=$as_save_IFS
21547
21548   ;;
21549 esac
21550 fi
21551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21552 if test -n "$PKG_CONFIG"; then
21553   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21554 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21555 else
21556   { echo "$as_me:$LINENO: result: no" >&5
21557 echo "${ECHO_T}no" >&6; }
21558 fi
21559
21560
21561 fi
21562 if test -z "$ac_cv_path_PKG_CONFIG"; then
21563   ac_pt_PKG_CONFIG=$PKG_CONFIG
21564   # Extract the first word of "pkg-config", so it can be a program name with args.
21565 set dummy pkg-config; ac_word=$2
21566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21568 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   case $ac_pt_PKG_CONFIG in
21572   [\\/]* | ?:[\\/]*)
21573   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21574   ;;
21575   *)
21576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21577 for as_dir in $PATH
21578 do
21579   IFS=$as_save_IFS
21580   test -z "$as_dir" && as_dir=.
21581   for ac_exec_ext in '' $ac_executable_extensions; do
21582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21583     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21585     break 2
21586   fi
21587 done
21588 done
21589 IFS=$as_save_IFS
21590
21591   ;;
21592 esac
21593 fi
21594 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21595 if test -n "$ac_pt_PKG_CONFIG"; then
21596   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21597 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21598 else
21599   { echo "$as_me:$LINENO: result: no" >&5
21600 echo "${ECHO_T}no" >&6; }
21601 fi
21602
21603   if test "x$ac_pt_PKG_CONFIG" = x; then
21604     PKG_CONFIG=""
21605   else
21606     case $cross_compiling:$ac_tool_warned in
21607 yes:)
21608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21609 whose name does not start with the host triplet.  If you think this
21610 configuration is useful to you, please write to autoconf@gnu.org." >&5
21611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21612 whose name does not start with the host triplet.  If you think this
21613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21614 ac_tool_warned=yes ;;
21615 esac
21616     PKG_CONFIG=$ac_pt_PKG_CONFIG
21617   fi
21618 else
21619   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21620 fi
21621
21622 fi
21623 if test -n "$PKG_CONFIG"; then
21624         _pkg_min_version=0.9.0
21625         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21626 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21627         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21628                 { echo "$as_me:$LINENO: result: yes" >&5
21629 echo "${ECHO_T}yes" >&6; }
21630         else
21631                 { echo "$as_me:$LINENO: result: no" >&5
21632 echo "${ECHO_T}no" >&6; }
21633                 PKG_CONFIG=""
21634         fi
21635                 
21636 fi
21637
21638 pkg_failed=no
21639 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
21640 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
21641
21642 if test -n "$PKG_CONFIG"; then
21643     if test -n "$PACKAGE_CFLAGS"; then
21644         pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
21645     else
21646         if test -n "$PKG_CONFIG" && \
21647     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl\"") >&5
21648   ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl") 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); }; then
21652   pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl" 2>/dev/null`
21653 else
21654   pkg_failed=yes
21655 fi
21656     fi
21657 else
21658         pkg_failed=untried
21659 fi
21660 if test -n "$PKG_CONFIG"; then
21661     if test -n "$PACKAGE_LIBS"; then
21662         pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
21663     else
21664         if test -n "$PKG_CONFIG" && \
21665     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl\"") >&5
21666   ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl") 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; then
21670   pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl" 2>/dev/null`
21671 else
21672   pkg_failed=yes
21673 fi
21674     fi
21675 else
21676         pkg_failed=untried
21677 fi
21678
21679
21680
21681 if test $pkg_failed = yes; then
21682         
21683 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21684         _pkg_short_errors_supported=yes
21685 else
21686         _pkg_short_errors_supported=no
21687 fi
21688         if test $_pkg_short_errors_supported = yes; then
21689                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl"`
21690         else 
21691                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl"`
21692         fi
21693         # Put the nasty error message in config.log where it belongs
21694         echo "$PACKAGE_PKG_ERRORS" >&5
21695
21696         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl) were not met:
21697
21698 $PACKAGE_PKG_ERRORS
21699
21700 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21701 installed software in a non-standard prefix.
21702
21703 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21704 and PACKAGE_LIBS to avoid the need to call pkg-config.
21705 See the pkg-config man page for more details.
21706 " >&5
21707 echo "$as_me: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl) were not met:
21708
21709 $PACKAGE_PKG_ERRORS
21710
21711 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21712 installed software in a non-standard prefix.
21713
21714 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21715 and PACKAGE_LIBS to avoid the need to call pkg-config.
21716 See the pkg-config man page for more details.
21717 " >&2;}
21718    { (exit 1); exit 1; }; }
21719 elif test $pkg_failed = untried; then
21720         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21721 is in your PATH or set the PKG_CONFIG environment variable to the full
21722 path to pkg-config.
21723
21724 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21725 and PACKAGE_LIBS to avoid the need to call pkg-config.
21726 See the pkg-config man page for more details.
21727
21728 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21729 See \`config.log' for more details." >&5
21730 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21731 is in your PATH or set the PKG_CONFIG environment variable to the full
21732 path to pkg-config.
21733
21734 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21735 and PACKAGE_LIBS to avoid the need to call pkg-config.
21736 See the pkg-config man page for more details.
21737
21738 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21739 See \`config.log' for more details." >&2;}
21740    { (exit 1); exit 1; }; }
21741 else
21742         PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
21743         PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
21744         { echo "$as_me:$LINENO: result: yes" >&5
21745 echo "${ECHO_T}yes" >&6; }
21746         :
21747 fi
21748
21749
21750
21751
21752 pkg_failed=no
21753 { echo "$as_me:$LINENO: checking for SHARING" >&5
21754 echo $ECHO_N "checking for SHARING... $ECHO_C" >&6; }
21755
21756 if test -n "$PKG_CONFIG"; then
21757     if test -n "$SHARING_CFLAGS"; then
21758         pkg_cv_SHARING_CFLAGS="$SHARING_CFLAGS"
21759     else
21760         if test -n "$PKG_CONFIG" && \
21761     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21762   ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21763   ac_status=$?
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); }; then
21766   pkg_cv_SHARING_CFLAGS=`$PKG_CONFIG --cflags "libsharing" 2>/dev/null`
21767 else
21768   pkg_failed=yes
21769 fi
21770     fi
21771 else
21772         pkg_failed=untried
21773 fi
21774 if test -n "$PKG_CONFIG"; then
21775     if test -n "$SHARING_LIBS"; then
21776         pkg_cv_SHARING_LIBS="$SHARING_LIBS"
21777     else
21778         if test -n "$PKG_CONFIG" && \
21779     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21780   ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21781   ac_status=$?
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); }; then
21784   pkg_cv_SHARING_LIBS=`$PKG_CONFIG --libs "libsharing" 2>/dev/null`
21785 else
21786   pkg_failed=yes
21787 fi
21788     fi
21789 else
21790         pkg_failed=untried
21791 fi
21792
21793
21794
21795 if test $pkg_failed = yes; then
21796         
21797 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21798         _pkg_short_errors_supported=yes
21799 else
21800         _pkg_short_errors_supported=no
21801 fi
21802         if test $_pkg_short_errors_supported = yes; then
21803                 SHARING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsharing"`
21804         else 
21805                 SHARING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsharing"`
21806         fi
21807         # Put the nasty error message in config.log where it belongs
21808         echo "$SHARING_PKG_ERRORS" >&5
21809
21810         { { echo "$as_me:$LINENO: error: Package requirements (libsharing) were not met:
21811
21812 $SHARING_PKG_ERRORS
21813
21814 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21815 installed software in a non-standard prefix.
21816
21817 Alternatively, you may set the environment variables SHARING_CFLAGS
21818 and SHARING_LIBS to avoid the need to call pkg-config.
21819 See the pkg-config man page for more details.
21820 " >&5
21821 echo "$as_me: error: Package requirements (libsharing) were not met:
21822
21823 $SHARING_PKG_ERRORS
21824
21825 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21826 installed software in a non-standard prefix.
21827
21828 Alternatively, you may set the environment variables SHARING_CFLAGS
21829 and SHARING_LIBS to avoid the need to call pkg-config.
21830 See the pkg-config man page for more details.
21831 " >&2;}
21832    { (exit 1); exit 1; }; }
21833 elif test $pkg_failed = untried; then
21834         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21835 is in your PATH or set the PKG_CONFIG environment variable to the full
21836 path to pkg-config.
21837
21838 Alternatively, you may set the environment variables SHARING_CFLAGS
21839 and SHARING_LIBS to avoid the need to call pkg-config.
21840 See the pkg-config man page for more details.
21841
21842 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21843 See \`config.log' for more details." >&5
21844 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21845 is in your PATH or set the PKG_CONFIG environment variable to the full
21846 path to pkg-config.
21847
21848 Alternatively, you may set the environment variables SHARING_CFLAGS
21849 and SHARING_LIBS to avoid the need to call pkg-config.
21850 See the pkg-config man page for more details.
21851
21852 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21853 See \`config.log' for more details." >&2;}
21854    { (exit 1); exit 1; }; }
21855 else
21856         SHARING_CFLAGS=$pkg_cv_SHARING_CFLAGS
21857         SHARING_LIBS=$pkg_cv_SHARING_LIBS
21858         { echo "$as_me:$LINENO: result: yes" >&5
21859 echo "${ECHO_T}yes" >&6; }
21860         :
21861 fi
21862
21863
21864 pkg_failed=no
21865 { echo "$as_me:$LINENO: checking for XML" >&5
21866 echo $ECHO_N "checking for XML... $ECHO_C" >&6; }
21867
21868 if test -n "$PKG_CONFIG"; then
21869     if test -n "$XML_CFLAGS"; then
21870         pkg_cv_XML_CFLAGS="$XML_CFLAGS"
21871     else
21872         if test -n "$PKG_CONFIG" && \
21873     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
21874   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
21875   ac_status=$?
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); }; then
21878   pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
21879 else
21880   pkg_failed=yes
21881 fi
21882     fi
21883 else
21884         pkg_failed=untried
21885 fi
21886 if test -n "$PKG_CONFIG"; then
21887     if test -n "$XML_LIBS"; then
21888         pkg_cv_XML_LIBS="$XML_LIBS"
21889     else
21890         if test -n "$PKG_CONFIG" && \
21891     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
21892   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
21893   ac_status=$?
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); }; then
21896   pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
21897 else
21898   pkg_failed=yes
21899 fi
21900     fi
21901 else
21902         pkg_failed=untried
21903 fi
21904
21905
21906
21907 if test $pkg_failed = yes; then
21908         
21909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21910         _pkg_short_errors_supported=yes
21911 else
21912         _pkg_short_errors_supported=no
21913 fi
21914         if test $_pkg_short_errors_supported = yes; then
21915                 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
21916         else 
21917                 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
21918         fi
21919         # Put the nasty error message in config.log where it belongs
21920         echo "$XML_PKG_ERRORS" >&5
21921
21922         { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0) were not met:
21923
21924 $XML_PKG_ERRORS
21925
21926 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21927 installed software in a non-standard prefix.
21928
21929 Alternatively, you may set the environment variables XML_CFLAGS
21930 and XML_LIBS to avoid the need to call pkg-config.
21931 See the pkg-config man page for more details.
21932 " >&5
21933 echo "$as_me: error: Package requirements (libxml-2.0) were not met:
21934
21935 $XML_PKG_ERRORS
21936
21937 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21938 installed software in a non-standard prefix.
21939
21940 Alternatively, you may set the environment variables XML_CFLAGS
21941 and XML_LIBS to avoid the need to call pkg-config.
21942 See the pkg-config man page for more details.
21943 " >&2;}
21944    { (exit 1); exit 1; }; }
21945 elif test $pkg_failed = untried; then
21946         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21947 is in your PATH or set the PKG_CONFIG environment variable to the full
21948 path to pkg-config.
21949
21950 Alternatively, you may set the environment variables XML_CFLAGS
21951 and XML_LIBS to avoid the need to call pkg-config.
21952 See the pkg-config man page for more details.
21953
21954 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21955 See \`config.log' for more details." >&5
21956 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21957 is in your PATH or set the PKG_CONFIG environment variable to the full
21958 path to pkg-config.
21959
21960 Alternatively, you may set the environment variables XML_CFLAGS
21961 and XML_LIBS to avoid the need to call pkg-config.
21962 See the pkg-config man page for more details.
21963
21964 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21965 See \`config.log' for more details." >&2;}
21966    { (exit 1); exit 1; }; }
21967 else
21968         XML_CFLAGS=$pkg_cv_XML_CFLAGS
21969         XML_LIBS=$pkg_cv_XML_LIBS
21970         { echo "$as_me:$LINENO: result: yes" >&5
21971 echo "${ECHO_T}yes" >&6; }
21972         :
21973 fi
21974
21975
21976 pkg_failed=no
21977 { echo "$as_me:$LINENO: checking for CURL" >&5
21978 echo $ECHO_N "checking for CURL... $ECHO_C" >&6; }
21979
21980 if test -n "$PKG_CONFIG"; then
21981     if test -n "$CURL_CFLAGS"; then
21982         pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
21983     else
21984         if test -n "$PKG_CONFIG" && \
21985     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
21986   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; then
21990   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
21991 else
21992   pkg_failed=yes
21993 fi
21994     fi
21995 else
21996         pkg_failed=untried
21997 fi
21998 if test -n "$PKG_CONFIG"; then
21999     if test -n "$CURL_LIBS"; then
22000         pkg_cv_CURL_LIBS="$CURL_LIBS"
22001     else
22002         if test -n "$PKG_CONFIG" && \
22003     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
22004   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
22005   ac_status=$?
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); }; then
22008   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
22009 else
22010   pkg_failed=yes
22011 fi
22012     fi
22013 else
22014         pkg_failed=untried
22015 fi
22016
22017
22018
22019 if test $pkg_failed = yes; then
22020         
22021 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22022         _pkg_short_errors_supported=yes
22023 else
22024         _pkg_short_errors_supported=no
22025 fi
22026         if test $_pkg_short_errors_supported = yes; then
22027                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
22028         else 
22029                 CURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
22030         fi
22031         # Put the nasty error message in config.log where it belongs
22032         echo "$CURL_PKG_ERRORS" >&5
22033
22034         { { echo "$as_me:$LINENO: error: Package requirements (libcurl) were not met:
22035
22036 $CURL_PKG_ERRORS
22037
22038 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22039 installed software in a non-standard prefix.
22040
22041 Alternatively, you may set the environment variables CURL_CFLAGS
22042 and CURL_LIBS to avoid the need to call pkg-config.
22043 See the pkg-config man page for more details.
22044 " >&5
22045 echo "$as_me: error: Package requirements (libcurl) were not met:
22046
22047 $CURL_PKG_ERRORS
22048
22049 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22050 installed software in a non-standard prefix.
22051
22052 Alternatively, you may set the environment variables CURL_CFLAGS
22053 and CURL_LIBS to avoid the need to call pkg-config.
22054 See the pkg-config man page for more details.
22055 " >&2;}
22056    { (exit 1); exit 1; }; }
22057 elif test $pkg_failed = untried; then
22058         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22059 is in your PATH or set the PKG_CONFIG environment variable to the full
22060 path to pkg-config.
22061
22062 Alternatively, you may set the environment variables CURL_CFLAGS
22063 and CURL_LIBS to avoid the need to call pkg-config.
22064 See the pkg-config man page for more details.
22065
22066 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22067 See \`config.log' for more details." >&5
22068 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22069 is in your PATH or set the PKG_CONFIG environment variable to the full
22070 path to pkg-config.
22071
22072 Alternatively, you may set the environment variables CURL_CFLAGS
22073 and CURL_LIBS to avoid the need to call pkg-config.
22074 See the pkg-config man page for more details.
22075
22076 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22077 See \`config.log' for more details." >&2;}
22078    { (exit 1); exit 1; }; }
22079 else
22080         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
22081         CURL_LIBS=$pkg_cv_CURL_LIBS
22082         { echo "$as_me:$LINENO: result: yes" >&5
22083 echo "${ECHO_T}yes" >&6; }
22084         :
22085 fi
22086
22087
22088 currentdir=`pwd`
22089
22090 pluginsdir=`$PKG_CONFIG libsharing --variable=pluginsdir`
22091
22092
22093
22094 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22095         if test -n "$ac_tool_prefix"; then
22096   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22097 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22100 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   case $PKG_CONFIG in
22104   [\\/]* | ?:[\\/]*)
22105   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22106   ;;
22107   *)
22108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22109 for as_dir in $PATH
22110 do
22111   IFS=$as_save_IFS
22112   test -z "$as_dir" && as_dir=.
22113   for ac_exec_ext in '' $ac_executable_extensions; do
22114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22115     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22117     break 2
22118   fi
22119 done
22120 done
22121 IFS=$as_save_IFS
22122
22123   ;;
22124 esac
22125 fi
22126 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22127 if test -n "$PKG_CONFIG"; then
22128   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22129 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22130 else
22131   { echo "$as_me:$LINENO: result: no" >&5
22132 echo "${ECHO_T}no" >&6; }
22133 fi
22134
22135
22136 fi
22137 if test -z "$ac_cv_path_PKG_CONFIG"; then
22138   ac_pt_PKG_CONFIG=$PKG_CONFIG
22139   # Extract the first word of "pkg-config", so it can be a program name with args.
22140 set dummy pkg-config; ac_word=$2
22141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22143 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22144   echo $ECHO_N "(cached) $ECHO_C" >&6
22145 else
22146   case $ac_pt_PKG_CONFIG in
22147   [\\/]* | ?:[\\/]*)
22148   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22149   ;;
22150   *)
22151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22152 for as_dir in $PATH
22153 do
22154   IFS=$as_save_IFS
22155   test -z "$as_dir" && as_dir=.
22156   for ac_exec_ext in '' $ac_executable_extensions; do
22157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22158     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22160     break 2
22161   fi
22162 done
22163 done
22164 IFS=$as_save_IFS
22165
22166   ;;
22167 esac
22168 fi
22169 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22170 if test -n "$ac_pt_PKG_CONFIG"; then
22171   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22172 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22173 else
22174   { echo "$as_me:$LINENO: result: no" >&5
22175 echo "${ECHO_T}no" >&6; }
22176 fi
22177
22178   if test "x$ac_pt_PKG_CONFIG" = x; then
22179     PKG_CONFIG=""
22180   else
22181     case $cross_compiling:$ac_tool_warned in
22182 yes:)
22183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22184 whose name does not start with the host triplet.  If you think this
22185 configuration is useful to you, please write to autoconf@gnu.org." >&5
22186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22187 whose name does not start with the host triplet.  If you think this
22188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22189 ac_tool_warned=yes ;;
22190 esac
22191     PKG_CONFIG=$ac_pt_PKG_CONFIG
22192   fi
22193 else
22194   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22195 fi
22196
22197 fi
22198 if test -n "$PKG_CONFIG"; then
22199         _pkg_min_version=0.9.0
22200         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22201 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22202         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22203                 { echo "$as_me:$LINENO: result: yes" >&5
22204 echo "${ECHO_T}yes" >&6; }
22205         else
22206                 { echo "$as_me:$LINENO: result: no" >&5
22207 echo "${ECHO_T}no" >&6; }
22208                 PKG_CONFIG=""
22209         fi
22210                 
22211 fi
22212 servicesdir=`$PKG_CONFIG libsharing --variable=servicesdir`
22213
22214
22215
22216
22217 # Check whether --enable-debug was given.
22218 if test "${enable_debug+set}" = set; then
22219   enableval=$enable_debug; enable_debug=yes
22220 else
22221   enable_debug=no
22222 fi
22223
22224
22225 if test x$enable_debug = xyes; then
22226   DEBUG_CFLAGS="-DOSSOLOG_COMPILE"
22227   
22228 fi
22229
22230
22231
22232 DATADIRNAME="share"
22233 if test "x${prefix}" = "xNONE"; then
22234   
22235 cat >>confdefs.h <<_ACEOF
22236 @%:@define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
22237 _ACEOF
22238
22239 else
22240   
22241 cat >>confdefs.h <<_ACEOF
22242 @%:@define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
22243 _ACEOF
22244
22245 fi
22246
22247
22248
22249
22250 ac_config_files="$ac_config_files Makefile data/Makefile data/yandexfotki.service.xml src/Makefile"
22251
22252 cat >confcache <<\_ACEOF
22253 # This file is a shell script that caches the results of configure
22254 # tests run on this system so they can be shared between configure
22255 # scripts and configure runs, see configure's option --config-cache.
22256 # It is not useful on other systems.  If it contains results you don't
22257 # want to keep, you may remove or edit it.
22258 #
22259 # config.status only pays attention to the cache file if you give it
22260 # the --recheck option to rerun configure.
22261 #
22262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22264 # following values.
22265
22266 _ACEOF
22267
22268 # The following way of writing the cache mishandles newlines in values,
22269 # but we know of no workaround that is simple, portable, and efficient.
22270 # So, we kill variables containing newlines.
22271 # Ultrix sh set writes to stderr and can't be redirected directly,
22272 # and sets the high bit in the cache file unless we assign to the vars.
22273 (
22274   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22275     eval ac_val=\$$ac_var
22276     case $ac_val in #(
22277     *${as_nl}*)
22278       case $ac_var in #(
22279       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22280 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22281       esac
22282       case $ac_var in #(
22283       _ | IFS | as_nl) ;; #(
22284       *) $as_unset $ac_var ;;
22285       esac ;;
22286     esac
22287   done
22288
22289   (set) 2>&1 |
22290     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22291     *${as_nl}ac_space=\ *)
22292       # `set' does not quote correctly, so add quotes (double-quote
22293       # substitution turns \\\\ into \\, and sed turns \\ into \).
22294       sed -n \
22295         "s/'/'\\\\''/g;
22296           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22297       ;; #(
22298     *)
22299       # `set' quotes correctly as required by POSIX, so do not add quotes.
22300       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22301       ;;
22302     esac |
22303     sort
22304 ) |
22305   sed '
22306      /^ac_cv_env_/b end
22307      t clear
22308      :clear
22309      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22310      t end
22311      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22312      :end' >>confcache
22313 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22314   if test -w "$cache_file"; then
22315     test "x$cache_file" != "x/dev/null" &&
22316       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22317 echo "$as_me: updating cache $cache_file" >&6;}
22318     cat confcache >$cache_file
22319   else
22320     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22321 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22322   fi
22323 fi
22324 rm -f confcache
22325
22326 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22327 # Let make expand exec_prefix.
22328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22329
22330 DEFS=-DHAVE_CONFIG_H
22331
22332 ac_libobjs=
22333 ac_ltlibobjs=
22334 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
22335   # 1. Remove the extension, and $U if already installed.
22336   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22337   ac_i=`echo "$ac_i" | sed "$ac_script"`
22338   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22339   #    will be set to the directory where LIBOBJS objects are built.
22340   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22341   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22342 done
22343 LIB@&t@OBJS=$ac_libobjs
22344
22345 LTLIBOBJS=$ac_ltlibobjs
22346
22347
22348 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22349   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22350 Usually this means the macro was only invoked conditionally." >&5
22351 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22352 Usually this means the macro was only invoked conditionally." >&2;}
22353    { (exit 1); exit 1; }; }
22354 fi
22355 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22356   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22357 Usually this means the macro was only invoked conditionally." >&5
22358 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22359 Usually this means the macro was only invoked conditionally." >&2;}
22360    { (exit 1); exit 1; }; }
22361 fi
22362 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22363   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22364 Usually this means the macro was only invoked conditionally." >&5
22365 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22366 Usually this means the macro was only invoked conditionally." >&2;}
22367    { (exit 1); exit 1; }; }
22368 fi
22369 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22370   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22371 Usually this means the macro was only invoked conditionally." >&5
22372 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22373 Usually this means the macro was only invoked conditionally." >&2;}
22374    { (exit 1); exit 1; }; }
22375 fi
22376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22377   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22378 Usually this means the macro was only invoked conditionally." >&5
22379 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22380 Usually this means the macro was only invoked conditionally." >&2;}
22381    { (exit 1); exit 1; }; }
22382 fi
22383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22384   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22385 Usually this means the macro was only invoked conditionally." >&5
22386 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22387 Usually this means the macro was only invoked conditionally." >&2;}
22388    { (exit 1); exit 1; }; }
22389 fi
22390
22391 : ${CONFIG_STATUS=./config.status}
22392 ac_clean_files_save=$ac_clean_files
22393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22394 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22395 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22396 cat >$CONFIG_STATUS <<_ACEOF
22397 #! $SHELL
22398 # Generated by $as_me.
22399 # Run this file to recreate the current configuration.
22400 # Compiler output produced by configure, useful for debugging
22401 # configure, is in config.log if it exists.
22402
22403 debug=false
22404 ac_cs_recheck=false
22405 ac_cs_silent=false
22406 SHELL=\${CONFIG_SHELL-$SHELL}
22407 _ACEOF
22408
22409 cat >>$CONFIG_STATUS <<\_ACEOF
22410 ## --------------------- ##
22411 ## M4sh Initialization.  ##
22412 ## --------------------- ##
22413
22414 # Be more Bourne compatible
22415 DUALCASE=1; export DUALCASE # for MKS sh
22416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22417   emulate sh
22418   NULLCMD=:
22419   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22420   # is contrary to our usage.  Disable this feature.
22421   alias -g '${1+"$@"}'='"$@"'
22422   setopt NO_GLOB_SUBST
22423 else
22424   case `(set -o) 2>/dev/null` in
22425   *posix*) set -o posix ;;
22426 esac
22427
22428 fi
22429
22430
22431
22432
22433 # PATH needs CR
22434 # Avoid depending upon Character Ranges.
22435 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22436 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22437 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22438 as_cr_digits='0123456789'
22439 as_cr_alnum=$as_cr_Letters$as_cr_digits
22440
22441 # The user is always right.
22442 if test "${PATH_SEPARATOR+set}" != set; then
22443   echo "#! /bin/sh" >conf$$.sh
22444   echo  "exit 0"   >>conf$$.sh
22445   chmod +x conf$$.sh
22446   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22447     PATH_SEPARATOR=';'
22448   else
22449     PATH_SEPARATOR=:
22450   fi
22451   rm -f conf$$.sh
22452 fi
22453
22454 # Support unset when possible.
22455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22456   as_unset=unset
22457 else
22458   as_unset=false
22459 fi
22460
22461
22462 # IFS
22463 # We need space, tab and new line, in precisely that order.  Quoting is
22464 # there to prevent editors from complaining about space-tab.
22465 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22466 # splitting by setting IFS to empty value.)
22467 as_nl='
22468 '
22469 IFS=" ""        $as_nl"
22470
22471 # Find who we are.  Look in the path if we contain no directory separator.
22472 case $0 in
22473   *[\\/]* ) as_myself=$0 ;;
22474   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22475 for as_dir in $PATH
22476 do
22477   IFS=$as_save_IFS
22478   test -z "$as_dir" && as_dir=.
22479   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22480 done
22481 IFS=$as_save_IFS
22482
22483      ;;
22484 esac
22485 # We did not find ourselves, most probably we were run as `sh COMMAND'
22486 # in which case we are not to be found in the path.
22487 if test "x$as_myself" = x; then
22488   as_myself=$0
22489 fi
22490 if test ! -f "$as_myself"; then
22491   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22492   { (exit 1); exit 1; }
22493 fi
22494
22495 # Work around bugs in pre-3.0 UWIN ksh.
22496 for as_var in ENV MAIL MAILPATH
22497 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22498 done
22499 PS1='$ '
22500 PS2='> '
22501 PS4='+ '
22502
22503 # NLS nuisances.
22504 for as_var in \
22505   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22506   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22507   LC_TELEPHONE LC_TIME
22508 do
22509   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22510     eval $as_var=C; export $as_var
22511   else
22512     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22513   fi
22514 done
22515
22516 # Required to use basename.
22517 if expr a : '\(a\)' >/dev/null 2>&1 &&
22518    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22519   as_expr=expr
22520 else
22521   as_expr=false
22522 fi
22523
22524 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22525   as_basename=basename
22526 else
22527   as_basename=false
22528 fi
22529
22530
22531 # Name of the executable.
22532 as_me=`$as_basename -- "$0" ||
22533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22534          X"$0" : 'X\(//\)$' \| \
22535          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22536 echo X/"$0" |
22537     sed '/^.*\/\([^/][^/]*\)\/*$/{
22538             s//\1/
22539             q
22540           }
22541           /^X\/\(\/\/\)$/{
22542             s//\1/
22543             q
22544           }
22545           /^X\/\(\/\).*/{
22546             s//\1/
22547             q
22548           }
22549           s/.*/./; q'`
22550
22551 # CDPATH.
22552 $as_unset CDPATH
22553
22554
22555
22556   as_lineno_1=$LINENO
22557   as_lineno_2=$LINENO
22558   test "x$as_lineno_1" != "x$as_lineno_2" &&
22559   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22560
22561   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22562   # uniformly replaced by the line number.  The first 'sed' inserts a
22563   # line-number line after each line using $LINENO; the second 'sed'
22564   # does the real work.  The second script uses 'N' to pair each
22565   # line-number line with the line containing $LINENO, and appends
22566   # trailing '-' during substitution so that $LINENO is not a special
22567   # case at line end.
22568   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22569   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22570   # E. McMahon (1931-1989) for sed's syntax.  :-)
22571   sed -n '
22572     p
22573     /[$]LINENO/=
22574   ' <$as_myself |
22575     sed '
22576       s/[$]LINENO.*/&-/
22577       t lineno
22578       b
22579       :lineno
22580       N
22581       :loop
22582       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22583       t loop
22584       s/-\n.*//
22585     ' >$as_me.lineno &&
22586   chmod +x "$as_me.lineno" ||
22587     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22588    { (exit 1); exit 1; }; }
22589
22590   # Don't try to exec as it changes $[0], causing all sort of problems
22591   # (the dirname of $[0] is not the place where we might find the
22592   # original and so on.  Autoconf is especially sensitive to this).
22593   . "./$as_me.lineno"
22594   # Exit status is that of the last command.
22595   exit
22596 }
22597
22598
22599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22600   as_dirname=dirname
22601 else
22602   as_dirname=false
22603 fi
22604
22605 ECHO_C= ECHO_N= ECHO_T=
22606 case `echo -n x` in
22607 -n*)
22608   case `echo 'x\c'` in
22609   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22610   *)   ECHO_C='\c';;
22611   esac;;
22612 *)
22613   ECHO_N='-n';;
22614 esac
22615
22616 if expr a : '\(a\)' >/dev/null 2>&1 &&
22617    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22618   as_expr=expr
22619 else
22620   as_expr=false
22621 fi
22622
22623 rm -f conf$$ conf$$.exe conf$$.file
22624 if test -d conf$$.dir; then
22625   rm -f conf$$.dir/conf$$.file
22626 else
22627   rm -f conf$$.dir
22628   mkdir conf$$.dir
22629 fi
22630 echo >conf$$.file
22631 if ln -s conf$$.file conf$$ 2>/dev/null; then
22632   as_ln_s='ln -s'
22633   # ... but there are two gotchas:
22634   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22635   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22636   # In both cases, we have to default to `cp -p'.
22637   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22638     as_ln_s='cp -p'
22639 elif ln conf$$.file conf$$ 2>/dev/null; then
22640   as_ln_s=ln
22641 else
22642   as_ln_s='cp -p'
22643 fi
22644 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22645 rmdir conf$$.dir 2>/dev/null
22646
22647 if mkdir -p . 2>/dev/null; then
22648   as_mkdir_p=:
22649 else
22650   test -d ./-p && rmdir ./-p
22651   as_mkdir_p=false
22652 fi
22653
22654 if test -x / >/dev/null 2>&1; then
22655   as_test_x='test -x'
22656 else
22657   if ls -dL / >/dev/null 2>&1; then
22658     as_ls_L_option=L
22659   else
22660     as_ls_L_option=
22661   fi
22662   as_test_x='
22663     eval sh -c '\''
22664       if test -d "$1"; then
22665         test -d "$1/.";
22666       else
22667         case $1 in
22668         -*)set "./$1";;
22669         esac;
22670         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22671         ???[sx]*):;;*)false;;esac;fi
22672     '\'' sh
22673   '
22674 fi
22675 as_executable_p=$as_test_x
22676
22677 # Sed expression to map a string onto a valid CPP name.
22678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22679
22680 # Sed expression to map a string onto a valid variable name.
22681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22682
22683
22684 exec 6>&1
22685
22686 # Save the log message, to keep $[0] and so on meaningful, and to
22687 # report actual input values of CONFIG_FILES etc. instead of their
22688 # values after options handling.
22689 ac_log="
22690 This file was extended by yandex-fotki-sharing-plugin $as_me 0.1, which was
22691 generated by GNU Autoconf 2.61.  Invocation command line was
22692
22693   CONFIG_FILES    = $CONFIG_FILES
22694   CONFIG_HEADERS  = $CONFIG_HEADERS
22695   CONFIG_LINKS    = $CONFIG_LINKS
22696   CONFIG_COMMANDS = $CONFIG_COMMANDS
22697   $ $0 $@
22698
22699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22700 "
22701
22702 _ACEOF
22703
22704 cat >>$CONFIG_STATUS <<_ACEOF
22705 # Files that config.status was made for.
22706 config_files="$ac_config_files"
22707 config_headers="$ac_config_headers"
22708 config_commands="$ac_config_commands"
22709
22710 _ACEOF
22711
22712 cat >>$CONFIG_STATUS <<\_ACEOF
22713 ac_cs_usage="\
22714 \`$as_me' instantiates files from templates according to the
22715 current configuration.
22716
22717 Usage: $0 [OPTIONS] [FILE]...
22718
22719   -h, --help       print this help, then exit
22720   -V, --version    print version number and configuration settings, then exit
22721   -q, --quiet      do not print progress messages
22722   -d, --debug      don't remove temporary files
22723       --recheck    update $as_me by reconfiguring in the same conditions
22724   --file=FILE[:TEMPLATE]
22725                    instantiate the configuration file FILE
22726   --header=FILE[:TEMPLATE]
22727                    instantiate the configuration header FILE
22728
22729 Configuration files:
22730 $config_files
22731
22732 Configuration headers:
22733 $config_headers
22734
22735 Configuration commands:
22736 $config_commands
22737
22738 Report bugs to <bug-autoconf@gnu.org>."
22739
22740 _ACEOF
22741 cat >>$CONFIG_STATUS <<_ACEOF
22742 ac_cs_version="\\
22743 yandex-fotki-sharing-plugin config.status 0.1
22744 configured by $0, generated by GNU Autoconf 2.61,
22745   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22746
22747 Copyright (C) 2006 Free Software Foundation, Inc.
22748 This config.status script is free software; the Free Software Foundation
22749 gives unlimited permission to copy, distribute and modify it."
22750
22751 ac_pwd='$ac_pwd'
22752 srcdir='$srcdir'
22753 INSTALL='$INSTALL'
22754 _ACEOF
22755
22756 cat >>$CONFIG_STATUS <<\_ACEOF
22757 # If no file are specified by the user, then we need to provide default
22758 # value.  By we need to know if files were specified by the user.
22759 ac_need_defaults=:
22760 while test $# != 0
22761 do
22762   case $1 in
22763   --*=*)
22764     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22765     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22766     ac_shift=:
22767     ;;
22768   *)
22769     ac_option=$1
22770     ac_optarg=$2
22771     ac_shift=shift
22772     ;;
22773   esac
22774
22775   case $ac_option in
22776   # Handling of the options.
22777   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22778     ac_cs_recheck=: ;;
22779   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22780     echo "$ac_cs_version"; exit ;;
22781   --debug | --debu | --deb | --de | --d | -d )
22782     debug=: ;;
22783   --file | --fil | --fi | --f )
22784     $ac_shift
22785     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22786     ac_need_defaults=false;;
22787   --header | --heade | --head | --hea )
22788     $ac_shift
22789     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22790     ac_need_defaults=false;;
22791   --he | --h)
22792     # Conflict between --help and --header
22793     { echo "$as_me: error: ambiguous option: $1
22794 Try \`$0 --help' for more information." >&2
22795    { (exit 1); exit 1; }; };;
22796   --help | --hel | -h )
22797     echo "$ac_cs_usage"; exit ;;
22798   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22799   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22800     ac_cs_silent=: ;;
22801
22802   # This is an error.
22803   -*) { echo "$as_me: error: unrecognized option: $1
22804 Try \`$0 --help' for more information." >&2
22805    { (exit 1); exit 1; }; } ;;
22806
22807   *) ac_config_targets="$ac_config_targets $1"
22808      ac_need_defaults=false ;;
22809
22810   esac
22811   shift
22812 done
22813
22814 ac_configure_extra_args=
22815
22816 if $ac_cs_silent; then
22817   exec 6>/dev/null
22818   ac_configure_extra_args="$ac_configure_extra_args --silent"
22819 fi
22820
22821 _ACEOF
22822 cat >>$CONFIG_STATUS <<_ACEOF
22823 if \$ac_cs_recheck; then
22824   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22825   CONFIG_SHELL=$SHELL
22826   export CONFIG_SHELL
22827   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22828 fi
22829
22830 _ACEOF
22831 cat >>$CONFIG_STATUS <<\_ACEOF
22832 exec 5>>config.log
22833 {
22834   echo
22835   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22836 @%:@@%:@ Running $as_me. @%:@@%:@
22837 _ASBOX
22838   echo "$ac_log"
22839 } >&5
22840
22841 _ACEOF
22842 cat >>$CONFIG_STATUS <<_ACEOF
22843 #
22844 # INIT-COMMANDS
22845 #
22846 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22847
22848 _ACEOF
22849
22850 cat >>$CONFIG_STATUS <<\_ACEOF
22851
22852 # Handling of arguments.
22853 for ac_config_target in $ac_config_targets
22854 do
22855   case $ac_config_target in
22856     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22857     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22858     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22859     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22860     "data/yandexfotki.service.xml") CONFIG_FILES="$CONFIG_FILES data/yandexfotki.service.xml" ;;
22861     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22862
22863   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22865    { (exit 1); exit 1; }; };;
22866   esac
22867 done
22868
22869
22870 # If the user did not use the arguments to specify the items to instantiate,
22871 # then the envvar interface is used.  Set only those that are not.
22872 # We use the long form for the default assignment because of an extremely
22873 # bizarre bug on SunOS 4.1.3.
22874 if $ac_need_defaults; then
22875   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22876   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22877   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22878 fi
22879
22880 # Have a temporary directory for convenience.  Make it in the build tree
22881 # simply because there is no reason against having it here, and in addition,
22882 # creating and moving files from /tmp can sometimes cause problems.
22883 # Hook for its removal unless debugging.
22884 # Note that there is a small window in which the directory will not be cleaned:
22885 # after its creation but before its name has been assigned to `$tmp'.
22886 $debug ||
22887 {
22888   tmp=
22889   trap 'exit_status=$?
22890   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22891 ' 0
22892   trap '{ (exit 1); exit 1; }' 1 2 13 15
22893 }
22894 # Create a (secure) tmp directory for tmp files.
22895
22896 {
22897   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22898   test -n "$tmp" && test -d "$tmp"
22899 }  ||
22900 {
22901   tmp=./conf$$-$RANDOM
22902   (umask 077 && mkdir "$tmp")
22903 } ||
22904 {
22905    echo "$me: cannot create a temporary directory in ." >&2
22906    { (exit 1); exit 1; }
22907 }
22908
22909 #
22910 # Set up the sed scripts for CONFIG_FILES section.
22911 #
22912
22913 # No need to generate the scripts if there are no CONFIG_FILES.
22914 # This happens for instance when ./config.status config.h
22915 if test -n "$CONFIG_FILES"; then
22916
22917 _ACEOF
22918
22919
22920
22921 ac_delim='%!_!# '
22922 for ac_last_try in false false false false false :; do
22923   cat >conf$$subs.sed <<_ACEOF
22924 SHELL!$SHELL$ac_delim
22925 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22926 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22927 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22928 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22929 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22930 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22931 exec_prefix!$exec_prefix$ac_delim
22932 prefix!$prefix$ac_delim
22933 program_transform_name!$program_transform_name$ac_delim
22934 bindir!$bindir$ac_delim
22935 sbindir!$sbindir$ac_delim
22936 libexecdir!$libexecdir$ac_delim
22937 datarootdir!$datarootdir$ac_delim
22938 datadir!$datadir$ac_delim
22939 sysconfdir!$sysconfdir$ac_delim
22940 sharedstatedir!$sharedstatedir$ac_delim
22941 localstatedir!$localstatedir$ac_delim
22942 includedir!$includedir$ac_delim
22943 oldincludedir!$oldincludedir$ac_delim
22944 docdir!$docdir$ac_delim
22945 infodir!$infodir$ac_delim
22946 htmldir!$htmldir$ac_delim
22947 dvidir!$dvidir$ac_delim
22948 pdfdir!$pdfdir$ac_delim
22949 psdir!$psdir$ac_delim
22950 libdir!$libdir$ac_delim
22951 localedir!$localedir$ac_delim
22952 mandir!$mandir$ac_delim
22953 DEFS!$DEFS$ac_delim
22954 ECHO_C!$ECHO_C$ac_delim
22955 ECHO_N!$ECHO_N$ac_delim
22956 ECHO_T!$ECHO_T$ac_delim
22957 LIBS!$LIBS$ac_delim
22958 build_alias!$build_alias$ac_delim
22959 host_alias!$host_alias$ac_delim
22960 target_alias!$target_alias$ac_delim
22961 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22962 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22963 INSTALL_DATA!$INSTALL_DATA$ac_delim
22964 CYGPATH_W!$CYGPATH_W$ac_delim
22965 PACKAGE!$PACKAGE$ac_delim
22966 VERSION!$VERSION$ac_delim
22967 ACLOCAL!$ACLOCAL$ac_delim
22968 AUTOCONF!$AUTOCONF$ac_delim
22969 AUTOMAKE!$AUTOMAKE$ac_delim
22970 AUTOHEADER!$AUTOHEADER$ac_delim
22971 MAKEINFO!$MAKEINFO$ac_delim
22972 AMTAR!$AMTAR$ac_delim
22973 install_sh!$install_sh$ac_delim
22974 STRIP!$STRIP$ac_delim
22975 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22976 mkdir_p!$mkdir_p$ac_delim
22977 AWK!$AWK$ac_delim
22978 SET_MAKE!$SET_MAKE$ac_delim
22979 am__leading_dot!$am__leading_dot$ac_delim
22980 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22981 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22982 MAINT!$MAINT$ac_delim
22983 CC!$CC$ac_delim
22984 CFLAGS!$CFLAGS$ac_delim
22985 LDFLAGS!$LDFLAGS$ac_delim
22986 CPPFLAGS!$CPPFLAGS$ac_delim
22987 ac_ct_CC!$ac_ct_CC$ac_delim
22988 EXEEXT!$EXEEXT$ac_delim
22989 OBJEXT!$OBJEXT$ac_delim
22990 DEPDIR!$DEPDIR$ac_delim
22991 am__include!$am__include$ac_delim
22992 am__quote!$am__quote$ac_delim
22993 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22994 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22995 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22996 CCDEPMODE!$CCDEPMODE$ac_delim
22997 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22998 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22999 CXX!$CXX$ac_delim
23000 CXXFLAGS!$CXXFLAGS$ac_delim
23001 ac_ct_CXX!$ac_ct_CXX$ac_delim
23002 CXXDEPMODE!$CXXDEPMODE$ac_delim
23003 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23004 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23005 CPP!$CPP$ac_delim
23006 GREP!$GREP$ac_delim
23007 EGREP!$EGREP$ac_delim
23008 LN_S!$LN_S$ac_delim
23009 build!$build$ac_delim
23010 build_cpu!$build_cpu$ac_delim
23011 build_vendor!$build_vendor$ac_delim
23012 build_os!$build_os$ac_delim
23013 host!$host$ac_delim
23014 host_cpu!$host_cpu$ac_delim
23015 host_vendor!$host_vendor$ac_delim
23016 host_os!$host_os$ac_delim
23017 SED!$SED$ac_delim
23018 ECHO!$ECHO$ac_delim
23019 AR!$AR$ac_delim
23020 RANLIB!$RANLIB$ac_delim
23021 _ACEOF
23022
23023   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23024     break
23025   elif $ac_last_try; then
23026     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23027 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23028    { (exit 1); exit 1; }; }
23029   else
23030     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23031   fi
23032 done
23033
23034 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23035 if test -n "$ac_eof"; then
23036   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23037   ac_eof=`expr $ac_eof + 1`
23038 fi
23039
23040 cat >>$CONFIG_STATUS <<_ACEOF
23041 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23043 _ACEOF
23044 sed '
23045 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23046 s/^/s,@/; s/!/@,|#_!!_#|/
23047 :n
23048 t n
23049 s/'"$ac_delim"'$/,g/; t
23050 s/$/\\/; p
23051 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23052 ' >>$CONFIG_STATUS <conf$$subs.sed
23053 rm -f conf$$subs.sed
23054 cat >>$CONFIG_STATUS <<_ACEOF
23055 CEOF$ac_eof
23056 _ACEOF
23057
23058
23059 ac_delim='%!_!# '
23060 for ac_last_try in false false false false false :; do
23061   cat >conf$$subs.sed <<_ACEOF
23062 DSYMUTIL!$DSYMUTIL$ac_delim
23063 NMEDIT!$NMEDIT$ac_delim
23064 CXXCPP!$CXXCPP$ac_delim
23065 F77!$F77$ac_delim
23066 FFLAGS!$FFLAGS$ac_delim
23067 ac_ct_F77!$ac_ct_F77$ac_delim
23068 LIBTOOL!$LIBTOOL$ac_delim
23069 PKG_CONFIG!$PKG_CONFIG$ac_delim
23070 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
23071 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
23072 SHARING_CFLAGS!$SHARING_CFLAGS$ac_delim
23073 SHARING_LIBS!$SHARING_LIBS$ac_delim
23074 XML_CFLAGS!$XML_CFLAGS$ac_delim
23075 XML_LIBS!$XML_LIBS$ac_delim
23076 CURL_CFLAGS!$CURL_CFLAGS$ac_delim
23077 CURL_LIBS!$CURL_LIBS$ac_delim
23078 currentdir!$currentdir$ac_delim
23079 pluginsdir!$pluginsdir$ac_delim
23080 servicesdir!$servicesdir$ac_delim
23081 DEBUG_CFLAGS!$DEBUG_CFLAGS$ac_delim
23082 PACKAGE_LOCALE_DIR!$PACKAGE_LOCALE_DIR$ac_delim
23083 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
23084 LTLIBOBJS!$LTLIBOBJS$ac_delim
23085 _ACEOF
23086
23087   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
23088     break
23089   elif $ac_last_try; then
23090     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23092    { (exit 1); exit 1; }; }
23093   else
23094     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23095   fi
23096 done
23097
23098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23099 if test -n "$ac_eof"; then
23100   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23101   ac_eof=`expr $ac_eof + 1`
23102 fi
23103
23104 cat >>$CONFIG_STATUS <<_ACEOF
23105 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23107 _ACEOF
23108 sed '
23109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23110 s/^/s,@/; s/!/@,|#_!!_#|/
23111 :n
23112 t n
23113 s/'"$ac_delim"'$/,g/; t
23114 s/$/\\/; p
23115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23116 ' >>$CONFIG_STATUS <conf$$subs.sed
23117 rm -f conf$$subs.sed
23118 cat >>$CONFIG_STATUS <<_ACEOF
23119 :end
23120 s/|#_!!_#|//g
23121 CEOF$ac_eof
23122 _ACEOF
23123
23124
23125 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23126 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23127 # trailing colons and then remove the whole line if VPATH becomes empty
23128 # (actually we leave an empty line to preserve line numbers).
23129 if test "x$srcdir" = x.; then
23130   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23131 s/:*\$(srcdir):*/:/
23132 s/:*\${srcdir}:*/:/
23133 s/:*@srcdir@:*/:/
23134 s/^\([^=]*=[     ]*\):*/\1/
23135 s/:*$//
23136 s/^[^=]*=[       ]*$//
23137 }'
23138 fi
23139
23140 cat >>$CONFIG_STATUS <<\_ACEOF
23141 fi # test -n "$CONFIG_FILES"
23142
23143
23144 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23145 do
23146   case $ac_tag in
23147   :[FHLC]) ac_mode=$ac_tag; continue;;
23148   esac
23149   case $ac_mode$ac_tag in
23150   :[FHL]*:*);;
23151   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23152 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23153    { (exit 1); exit 1; }; };;
23154   :[FH]-) ac_tag=-:-;;
23155   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23156   esac
23157   ac_save_IFS=$IFS
23158   IFS=:
23159   set x $ac_tag
23160   IFS=$ac_save_IFS
23161   shift
23162   ac_file=$1
23163   shift
23164
23165   case $ac_mode in
23166   :L) ac_source=$1;;
23167   :[FH])
23168     ac_file_inputs=
23169     for ac_f
23170     do
23171       case $ac_f in
23172       -) ac_f="$tmp/stdin";;
23173       *) # Look for the file first in the build tree, then in the source tree
23174          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23175          # because $ac_f cannot contain `:'.
23176          test -f "$ac_f" ||
23177            case $ac_f in
23178            [\\/$]*) false;;
23179            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23180            esac ||
23181            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23182 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23183    { (exit 1); exit 1; }; };;
23184       esac
23185       ac_file_inputs="$ac_file_inputs $ac_f"
23186     done
23187
23188     # Let's still pretend it is `configure' which instantiates (i.e., don't
23189     # use $as_me), people would be surprised to read:
23190     #    /* config.h.  Generated by config.status.  */
23191     configure_input="Generated from "`IFS=:
23192           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23193     if test x"$ac_file" != x-; then
23194       configure_input="$ac_file.  $configure_input"
23195       { echo "$as_me:$LINENO: creating $ac_file" >&5
23196 echo "$as_me: creating $ac_file" >&6;}
23197     fi
23198
23199     case $ac_tag in
23200     *:-:* | *:-) cat >"$tmp/stdin";;
23201     esac
23202     ;;
23203   esac
23204
23205   ac_dir=`$as_dirname -- "$ac_file" ||
23206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23207          X"$ac_file" : 'X\(//\)[^/]' \| \
23208          X"$ac_file" : 'X\(//\)$' \| \
23209          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23210 echo X"$ac_file" |
23211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23212             s//\1/
23213             q
23214           }
23215           /^X\(\/\/\)[^/].*/{
23216             s//\1/
23217             q
23218           }
23219           /^X\(\/\/\)$/{
23220             s//\1/
23221             q
23222           }
23223           /^X\(\/\).*/{
23224             s//\1/
23225             q
23226           }
23227           s/.*/./; q'`
23228   { as_dir="$ac_dir"
23229   case $as_dir in #(
23230   -*) as_dir=./$as_dir;;
23231   esac
23232   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23233     as_dirs=
23234     while :; do
23235       case $as_dir in #(
23236       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23237       *) as_qdir=$as_dir;;
23238       esac
23239       as_dirs="'$as_qdir' $as_dirs"
23240       as_dir=`$as_dirname -- "$as_dir" ||
23241 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23242          X"$as_dir" : 'X\(//\)[^/]' \| \
23243          X"$as_dir" : 'X\(//\)$' \| \
23244          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23245 echo X"$as_dir" |
23246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23247             s//\1/
23248             q
23249           }
23250           /^X\(\/\/\)[^/].*/{
23251             s//\1/
23252             q
23253           }
23254           /^X\(\/\/\)$/{
23255             s//\1/
23256             q
23257           }
23258           /^X\(\/\).*/{
23259             s//\1/
23260             q
23261           }
23262           s/.*/./; q'`
23263       test -d "$as_dir" && break
23264     done
23265     test -z "$as_dirs" || eval "mkdir $as_dirs"
23266   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23267 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23268    { (exit 1); exit 1; }; }; }
23269   ac_builddir=.
23270
23271 case "$ac_dir" in
23272 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23273 *)
23274   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23275   # A ".." for each directory in $ac_dir_suffix.
23276   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23277   case $ac_top_builddir_sub in
23278   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23279   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23280   esac ;;
23281 esac
23282 ac_abs_top_builddir=$ac_pwd
23283 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23284 # for backward compatibility:
23285 ac_top_builddir=$ac_top_build_prefix
23286
23287 case $srcdir in
23288   .)  # We are building in place.
23289     ac_srcdir=.
23290     ac_top_srcdir=$ac_top_builddir_sub
23291     ac_abs_top_srcdir=$ac_pwd ;;
23292   [\\/]* | ?:[\\/]* )  # Absolute name.
23293     ac_srcdir=$srcdir$ac_dir_suffix;
23294     ac_top_srcdir=$srcdir
23295     ac_abs_top_srcdir=$srcdir ;;
23296   *) # Relative name.
23297     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23298     ac_top_srcdir=$ac_top_build_prefix$srcdir
23299     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23300 esac
23301 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23302
23303
23304   case $ac_mode in
23305   :F)
23306   #
23307   # CONFIG_FILE
23308   #
23309
23310   case $INSTALL in
23311   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23312   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23313   esac
23314 _ACEOF
23315
23316 cat >>$CONFIG_STATUS <<\_ACEOF
23317 # If the template does not know about datarootdir, expand it.
23318 # FIXME: This hack should be removed a few years after 2.60.
23319 ac_datarootdir_hack=; ac_datarootdir_seen=
23320
23321 case `sed -n '/datarootdir/ {
23322   p
23323   q
23324 }
23325 /@datadir@/p
23326 /@docdir@/p
23327 /@infodir@/p
23328 /@localedir@/p
23329 /@mandir@/p
23330 ' $ac_file_inputs` in
23331 *datarootdir*) ac_datarootdir_seen=yes;;
23332 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23333   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23334 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23335 _ACEOF
23336 cat >>$CONFIG_STATUS <<_ACEOF
23337   ac_datarootdir_hack='
23338   s&@datadir@&$datadir&g
23339   s&@docdir@&$docdir&g
23340   s&@infodir@&$infodir&g
23341   s&@localedir@&$localedir&g
23342   s&@mandir@&$mandir&g
23343     s&\\\${datarootdir}&$datarootdir&g' ;;
23344 esac
23345 _ACEOF
23346
23347 # Neutralize VPATH when `$srcdir' = `.'.
23348 # Shell code in configure.ac might set extrasub.
23349 # FIXME: do we really want to maintain this feature?
23350 cat >>$CONFIG_STATUS <<_ACEOF
23351   sed "$ac_vpsub
23352 $extrasub
23353 _ACEOF
23354 cat >>$CONFIG_STATUS <<\_ACEOF
23355 :t
23356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23357 s&@configure_input@&$configure_input&;t t
23358 s&@top_builddir@&$ac_top_builddir_sub&;t t
23359 s&@srcdir@&$ac_srcdir&;t t
23360 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23361 s&@top_srcdir@&$ac_top_srcdir&;t t
23362 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23363 s&@builddir@&$ac_builddir&;t t
23364 s&@abs_builddir@&$ac_abs_builddir&;t t
23365 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23366 s&@INSTALL@&$ac_INSTALL&;t t
23367 $ac_datarootdir_hack
23368 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23369
23370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23371   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23372   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23373   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23374 which seems to be undefined.  Please make sure it is defined." >&5
23375 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23376 which seems to be undefined.  Please make sure it is defined." >&2;}
23377
23378   rm -f "$tmp/stdin"
23379   case $ac_file in
23380   -) cat "$tmp/out"; rm -f "$tmp/out";;
23381   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23382   esac
23383  ;;
23384   :H)
23385   #
23386   # CONFIG_HEADER
23387   #
23388 _ACEOF
23389
23390 # Transform confdefs.h into a sed script `conftest.defines', that
23391 # substitutes the proper values into config.h.in to produce config.h.
23392 rm -f conftest.defines conftest.tail
23393 # First, append a space to every undef/define line, to ease matching.
23394 echo 's/$/ /' >conftest.defines
23395 # Then, protect against being on the right side of a sed subst, or in
23396 # an unquoted here document, in config.status.  If some macros were
23397 # called several times there might be several #defines for the same
23398 # symbol, which is useless.  But do not sort them, since the last
23399 # AC_DEFINE must be honored.
23400 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23401 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23402 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23403 # PARAMS is the parameter list in the macro definition--in most cases, it's
23404 # just an empty string.
23405 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23406 ac_dB='\\)[      (].*,\\1define\\2'
23407 ac_dC=' '
23408 ac_dD=' ,'
23409
23410 uniq confdefs.h |
23411   sed -n '
23412         t rset
23413         :rset
23414         s/^[     ]*#[    ]*define[       ][      ]*//
23415         t ok
23416         d
23417         :ok
23418         s/[\\&,]/\\&/g
23419         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23420         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23421   ' >>conftest.defines
23422
23423 # Remove the space that was appended to ease matching.
23424 # Then replace #undef with comments.  This is necessary, for
23425 # example, in the case of _POSIX_SOURCE, which is predefined and required
23426 # on some systems where configure will not decide to define it.
23427 # (The regexp can be short, since the line contains either #define or #undef.)
23428 echo 's/ $//
23429 s,^[     #]*u.*,/* & */,' >>conftest.defines
23430
23431 # Break up conftest.defines:
23432 ac_max_sed_lines=50
23433
23434 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23435 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23436 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23437 # et cetera.
23438 ac_in='$ac_file_inputs'
23439 ac_out='"$tmp/out1"'
23440 ac_nxt='"$tmp/out2"'
23441
23442 while :
23443 do
23444   # Write a here document:
23445     cat >>$CONFIG_STATUS <<_ACEOF
23446     # First, check the format of the line:
23447     cat >"\$tmp/defines.sed" <<\\CEOF
23448 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23449 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23450 b
23451 :def
23452 _ACEOF
23453   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23454   echo 'CEOF
23455     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23456   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23457   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23458   grep . conftest.tail >/dev/null || break
23459   rm -f conftest.defines
23460   mv conftest.tail conftest.defines
23461 done
23462 rm -f conftest.defines conftest.tail
23463
23464 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23465 cat >>$CONFIG_STATUS <<\_ACEOF
23466   if test x"$ac_file" != x-; then
23467     echo "/* $configure_input  */" >"$tmp/config.h"
23468     cat "$ac_result" >>"$tmp/config.h"
23469     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23470       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23471 echo "$as_me: $ac_file is unchanged" >&6;}
23472     else
23473       rm -f $ac_file
23474       mv "$tmp/config.h" $ac_file
23475     fi
23476   else
23477     echo "/* $configure_input  */"
23478     cat "$ac_result"
23479   fi
23480   rm -f "$tmp/out12"
23481 # Compute $ac_file's index in $config_headers.
23482 _am_stamp_count=1
23483 for _am_header in $config_headers :; do
23484   case $_am_header in
23485     $ac_file | $ac_file:* )
23486       break ;;
23487     * )
23488       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23489   esac
23490 done
23491 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23492 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23493          X$ac_file : 'X\(//\)[^/]' \| \
23494          X$ac_file : 'X\(//\)$' \| \
23495          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23496 echo X$ac_file |
23497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23498             s//\1/
23499             q
23500           }
23501           /^X\(\/\/\)[^/].*/{
23502             s//\1/
23503             q
23504           }
23505           /^X\(\/\/\)$/{
23506             s//\1/
23507             q
23508           }
23509           /^X\(\/\).*/{
23510             s//\1/
23511             q
23512           }
23513           s/.*/./; q'`/stamp-h$_am_stamp_count
23514  ;;
23515   
23516   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23517 echo "$as_me: executing $ac_file commands" >&6;}
23518  ;;
23519   esac
23520
23521
23522   case $ac_file$ac_mode in
23523     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23524   # Strip MF so we end up with the name of the file.
23525   mf=`echo "$mf" | sed -e 's/:.*$//'`
23526   # Check whether this is an Automake generated Makefile or not.
23527   # We used to match only the files named `Makefile.in', but
23528   # some people rename them; so instead we look at the file content.
23529   # Grep'ing the first line is not enough: some people post-process
23530   # each Makefile.in and add a new line on top of each file to say so.
23531   # So let's grep whole file.
23532   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23533     dirpart=`$as_dirname -- "$mf" ||
23534 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23535          X"$mf" : 'X\(//\)[^/]' \| \
23536          X"$mf" : 'X\(//\)$' \| \
23537          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23538 echo X"$mf" |
23539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23540             s//\1/
23541             q
23542           }
23543           /^X\(\/\/\)[^/].*/{
23544             s//\1/
23545             q
23546           }
23547           /^X\(\/\/\)$/{
23548             s//\1/
23549             q
23550           }
23551           /^X\(\/\).*/{
23552             s//\1/
23553             q
23554           }
23555           s/.*/./; q'`
23556   else
23557     continue
23558   fi
23559   grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
23560   # Extract the definition of DEP_FILES from the Makefile without
23561   # running `make'.
23562   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23563   test -z "$DEPDIR" && continue
23564   # When using ansi2knr, U may be empty or an underscore; expand it
23565   U=`sed -n 's/^U = //p' < "$mf"`
23566   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23567   # We invoke sed twice because it is the simplest approach to
23568   # changing $(DEPDIR) to its actual value in the expansion.
23569   for file in `sed -n '
23570     /^DEP_FILES = .*\\\\$/ {
23571       s/^DEP_FILES = //
23572       :loop
23573         s/\\\\$//
23574         p
23575         n
23576         /\\\\$/ b loop
23577       p
23578     }
23579     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23580        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23581     # Make sure the directory exists.
23582     test -f "$dirpart/$file" && continue
23583     fdir=`$as_dirname -- "$file" ||
23584 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23585          X"$file" : 'X\(//\)[^/]' \| \
23586          X"$file" : 'X\(//\)$' \| \
23587          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23588 echo X"$file" |
23589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23590             s//\1/
23591             q
23592           }
23593           /^X\(\/\/\)[^/].*/{
23594             s//\1/
23595             q
23596           }
23597           /^X\(\/\/\)$/{
23598             s//\1/
23599             q
23600           }
23601           /^X\(\/\).*/{
23602             s//\1/
23603             q
23604           }
23605           s/.*/./; q'`
23606     { as_dir=$dirpart/$fdir
23607   case $as_dir in #(
23608   -*) as_dir=./$as_dir;;
23609   esac
23610   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23611     as_dirs=
23612     while :; do
23613       case $as_dir in #(
23614       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23615       *) as_qdir=$as_dir;;
23616       esac
23617       as_dirs="'$as_qdir' $as_dirs"
23618       as_dir=`$as_dirname -- "$as_dir" ||
23619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23620          X"$as_dir" : 'X\(//\)[^/]' \| \
23621          X"$as_dir" : 'X\(//\)$' \| \
23622          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23623 echo X"$as_dir" |
23624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23625             s//\1/
23626             q
23627           }
23628           /^X\(\/\/\)[^/].*/{
23629             s//\1/
23630             q
23631           }
23632           /^X\(\/\/\)$/{
23633             s//\1/
23634             q
23635           }
23636           /^X\(\/\).*/{
23637             s//\1/
23638             q
23639           }
23640           s/.*/./; q'`
23641       test -d "$as_dir" && break
23642     done
23643     test -z "$as_dirs" || eval "mkdir $as_dirs"
23644   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23645 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23646    { (exit 1); exit 1; }; }; }
23647     # echo "creating $dirpart/$file"
23648     echo '# dummy' > "$dirpart/$file"
23649   done
23650 done
23651  ;;
23652
23653   esac
23654 done # for ac_tag
23655
23656
23657 { (exit 0); exit 0; }
23658 _ACEOF
23659 chmod +x $CONFIG_STATUS
23660 ac_clean_files=$ac_clean_files_save
23661
23662
23663 # configure is writing to config.log, and then calls config.status.
23664 # config.status does its own redirection, appending to config.log.
23665 # Unfortunately, on DOS this fails, as config.log is still kept open
23666 # by configure, so config.status won't be able to write to it; its
23667 # output is simply discarded.  So we exec the FD to /dev/null,
23668 # effectively closing config.log, so it can be properly (re)opened and
23669 # appended to by config.status.  When coming back to configure, we
23670 # need to make the FD available again.
23671 if test "$no_create" != yes; then
23672   ac_cs_success=:
23673   ac_config_status_args=
23674   test "$silent" = yes &&
23675     ac_config_status_args="$ac_config_status_args --quiet"
23676   exec 5>/dev/null
23677   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23678   exec 5>>config.log
23679   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23680   # would make configure fail if this is the last instruction.
23681   $ac_cs_success || { (exit 1); exit 1; }
23682 fi
23683
23684
23685
23686
23687 echo ""
23688 echo "                  $PACKAGE $VERSION"
23689 echo "                 ==================="
23690 echo ""
23691 echo "           Debug messages:   ${enable_debug}"
23692 echo "       Plug-ins directory:   ${pluginsdir}"
23693 echo "       Services directory:   ${servicesdir}"
23694 echo ""